* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: transparent;
    min-height: 100vh;
}
.player-container {
    position: fixed;
    top: 0;
    right: 100px;
    z-index: 9999;
    width: 280px;
    box-sizing: border-box !important;
}

/* 手机端样式 */
@media (max-width: 768px) {
    .player-container {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 90%; /* 自适应宽度 */
        max-width: 280px; /* 最大宽度 */
    }
}

/* 歌词开关按钮 */
.lyrics-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 16px !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    padding: 0 !important;
    user-select: none !important;
    transition: opacity 0.3s ease !important;
    margin: 0 5px !important;
}

.lyrics-toggle:hover {
    opacity: 0.8 !important;
}

/* 隐藏歌词的类 */
.lyrics-hidden {
    display: none !important;
}

/* 歌词开关容器 */
.lyrics-toggle-container {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important;
}
.player-container .aplayer {
    width: 280px !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: white !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
.player-container .aplayer * {
    color: white !important;
}
/* 确保播放器信息区域与歌单宽度一致 */
.player-container .aplayer-info {
    width: 100% !important;
    padding: 8px !important;
    height: 100px !important;
    position: relative !important;
    background-color: transparent !important;
    color: white !important;
    border-bottom: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 确保控制器区域宽度一致 */
.player-container .aplayer-controller {
    width: 100% !important;
    padding: 8px !important;
    height: 45px !important;
    background-color: transparent !important;
    color: white !important;
    border-top: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 确保歌单区域宽度一致 */
.player-container .aplayer-list {
    width: 100% !important;
    background-color: transparent !important;
    color: white !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
.player-container .aplayer-lrc {
    display: none !important;
}
.player-container .aplayer-lrc:before {
    display: none !important;
}
.player-container .aplayer-lrc:after {
    display: none !important;
}

/* 调整进度条样式 - 更明显 */
.player-container .aplayer-bar {
    background: rgba(255,255,255,0.2) !important;
    height: 6px !important; /* 增加高度 */
    border-radius: 3px !important; /* 添加圆角 */
    box-shadow: 0 0 3px rgba(255,255,255,0.3) !important; /* 添加阴影 */
}
.player-container .aplayer-bar .aplayer-loaded {
    background: rgba(255,255,255,0.4) !important;
    border-radius: 3px !important;
}
.player-container .aplayer-bar .aplayer-played {
    background: rgba(255,255,255,1) !important;
    border-radius: 3px !important;
    box-shadow: 0 0 5px rgba(255,255,255,0.8) !important; /* 添加发光效果 */
}

.player-container .aplayer-button {
    color: white !important;
}
.player-container .aplayer-time {
    color: white !important;
}
.player-container .aplayer-title {
    color: white !important;
}
.player-container .aplayer-author {
    color: white !important;
}
.player-container .aplayer-list {
    background-color: transparent !important;
    color: white !important;
}
.player-container .aplayer-list ol {
    color: white !important;
}
.player-container .aplayer-list ol li {
    color: white !important;
    background-color: transparent !important;
}
.player-container .aplayer-list ol li:hover {
    background-color: rgba(255,255,255,0.1) !important;
}
.player-container .aplayer-list ol li.aplayer-list-light {
    background-color: rgba(255,255,255,0.2) !important;
    color: white !important;
}
.player-container .aplayer-icon {
    color: white !important;
}
.player-container .aplayer-volume-bar-wrap {
    color: white !important;
}
.player-container .aplayer-volume-bar {
    background: rgba(255,255,255,0.3) !important;
}
.player-container .aplayer-volume-bar .aplayer-volume {
    background: rgba(255,255,255,0.8) !important;
}
.player-container .aplayer-loop {
    color: white !important;
}
.player-container .aplayer-menu {
    color: white !important;
}
.player-container .aplayer-list-button {
    color: white !important;
}
.player-container .aplayer-tooltip {
    background-color: rgba(0,0,0,0.7) !important;
    color: white !important;
    border: none !important;
}
.player-container .aplayer-music {
    color: white !important;
}
.player-container .aplayer-lrc-contents {
    color: white !important;
}
.player-container .aplayer-lrc-current {
    color: white !important;
}
.player-container .aplayer-list ol li span {
    color: white !important;
}
.player-container .aplayer-list ol li .aplayer-list-index {
    color: white !important;
}
.player-container .aplayer-list ol li .aplayer-list-author {
    color: white !important;
}
.player-container .aplayer .aplayer-icon-loop {
    color: white !important;
}
.player-container .aplayer .aplayer-icon-menu {
    color: white !important;
}
.player-container .aplayer .aplayer-icon-list {
    color: white !important;
}
.player-container .aplayer .aplayer-icon-volume-down {
    color: white !important;
}
.player-container .aplayer .aplayer-icon-volume-up {
    color: white !important;
}
.player-container .aplayer .aplayer-icon-volume-off {
    color: white !important;
}
.player-container .aplayer .aplayer-icon-prev {
    color: white !important;
}
.player-container .aplayer .aplayer-icon-play {
    color: white !important;
}
.player-container .aplayer .aplayer-icon-pause {
    color: white !important;
}
.player-container .aplayer .aplayer-icon-next {
    color: white !important;
}
.player-container .aplayer svg {
    fill: white !important;
    color: white !important;
}
.player-container .aplayer i {
    color: white !important;
}
.player-container .aplayer .aplayer-button i {
    color: white !important;
}
.player-container .aplayer .aplayer-button svg {
    fill: white !important;
}
.player-container .aplayer .aplayer-controller .aplayer-button {
    color: white !important;
}
.player-container .aplayer .aplayer-controller .aplayer-button svg {
    fill: white !important;
}
.player-container .aplayer .aplayer-controller .aplayer-button i {
    color: white !important;
}
.player-container .aplayer .aplayer-loop svg {
    fill: white !important;
}
.player-container .aplayer .aplayer-list-button svg {
    fill: white !important;
}
.player-container .aplayer .aplayer-menu svg {
    fill: white !important;
}
.player-container .aplayer .aplayer-volume-wrap svg {
    fill: white !important;
}
/* 强制所有SVG图标为白色 - 最高优先级 */
body svg,
body [class*="aplayer-icon"] {
    fill: white !important;
    stroke: white !important;
    color: white !important;
}

/* 强制APlayer所有元素为白色 */
.aplayer,
.aplayer *,
.aplayer *:before,
.aplayer *:after {
    color: white !important;
    fill: white !important;
    stroke: white !important;
}

/* 强制控制器区域 */
.aplayer .aplayer-controller,
.aplayer .aplayer-controller * {
    color: white !important;
    fill: white !important;
    stroke: white !important;
}

/* 强制按钮 */
.aplayer .aplayer-button,
.aplayer .aplayer-button * {
    color: white !important;
    fill: white !important;
    stroke: white !important;
}

/* 强制循环、列表、菜单按钮 */
.aplayer .aplayer-loop,
.aplayer .aplayer-list-button,
.aplayer .aplayer-menu,
.aplayer .aplayer-volume-wrap {
    color: white !important;
}

.aplayer .aplayer-loop svg,
.aplayer .aplayer-list-button svg,
.aplayer .aplayer-menu svg,
.aplayer .aplayer-volume-wrap svg {
    fill: white !important;
    stroke: white !important;
}

/* 强制播放/暂停/上一曲/下一曲按钮 */
.aplayer .aplayer-icon-play,
.aplayer .aplayer-icon-pause,
.aplayer .aplayer-icon-prev,
.aplayer .aplayer-icon-next {
    color: white !important;
}

.aplayer .aplayer-icon-play svg,
.aplayer .aplayer-icon-pause svg,
.aplayer .aplayer-icon-prev svg,
.aplayer .aplayer-icon-next svg {
    fill: white !important;
    stroke: white !important;
}
/* 播放器紧凑模式 - 调整为合适大小 */
.player-container .aplayer-pic {
    display: none !important;
}
.player-container .aplayer-author {
    display: none !important; /* 隐藏歌手信息 */
}
.player-container .aplayer-title {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: 100% !important;
}
.player-container .aplayer-bar {
    height: 4px !important;
    margin: 6px 0 !important;
}
.player-container .aplayer-button {
    margin: 0 4px !important;
    font-size: 16px !important;
}
.player-container .aplayer-time {
    font-size: 10px !important;
    line-height: 1 !important;
}

/* 调整歌曲信息区域的内边距，确保与播放按钮对齐并留出间距 */
.player-container .aplayer-music {
    padding-left: 48px !important; /* 调整左边距，确保与播放按钮不重合 */
    padding-right: 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important; /* 歌名水平居中显示 */
    width: calc(100% - 48px) !important; /* 宽度为播放器宽度减去左边距 */
}

/* 确保控制器区域所有元素垂直对齐 */
.player-container .aplayer-controller {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 8px !important;
    height: 45px !important;
    background-color: transparent !important;
    color: white !important;
    border-top: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 调整按钮区域 */
.player-container .aplayer-button {
    display: flex !important;
    align-items: center !important;
    margin: 0 8px !important;
    font-size: 16px !important;
}

/* 调整进度条区域 */
.player-container .aplayer-bar-wrap {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    margin: 0 8px 0 12px !important; /* 左边距12px，右边距改为8px */
    max-width: 120px !important;
}

/* 调整时间显示 */
.player-container .aplayer-time {
    display: flex !important;
    align-items: center !important;
    margin: 0 5px 0 0 !important; /* 左边距改为0，右边距保持5px */
    font-size: 10px !important;
    line-height: 1 !important;
    min-width: 50px !important;
}

/* 歌词容器 - 隐藏内部歌词，使用外部歌词 */
.lyrics-container {
    display: none !important;
}

/* 歌词隐藏状态 */
.lyrics-container.hidden {
    display: none !important;
}

/* 自定义播放按钮样式 */
#custom-play-btn {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 40px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
}

#custom-play-btn div {
    transition: all 0.3s ease !important;
}

/* 音频波形动画 - 底部固定，顶部伸缩 */
@keyframes soundwave {
    0%, 100% {
        transform: scaleY(0.3); /* 最小高度 */
        transform-origin: bottom; /* 以底部为原点缩放 */
        opacity: 0.8;
    }
    50% {
        transform: scaleY(1); /* 最大高度 */
        transform-origin: bottom; /* 以底部为原点缩放 */
        opacity: 1;
    }
}
