/* =================================================================
   1. 全局基础设置 (Global Reset) & 动画定义
   ================================================================= */

/* 引入 Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

/* 定义背景流光动画 */
@keyframes auroraMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 定义封面旋转动画 (仿黑胶) */
@keyframes spinCover {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 定义播放时呼吸光效 */
@keyframes playingBreathe {
    from {
        box-shadow: 0 0 10px rgba(49, 194, 124, 0.1);
    }

    to {
        box-shadow: 0 0 25px rgba(49, 194, 124, 0.4);
    }
}

/* 定义图片加载淡入 */
@keyframes imageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 清除默认边距 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 字体平滑处理 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 全局文字选中颜色 */
::selection {
    background: rgba(49, 194, 124, 0.4);
    color: #fff;
}

/* 全局图片应用淡入效果 */
img {
    animation: imageFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================================================
   2. 页面主体 (Body) 设置
   ================================================================= */

html,
body {
    width: 100%;
    height: 100%;
    position: fixed;
    /* 防止移动端滚动穿透 */
    top: 0;
    left: 0;
    overflow: hidden;

    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #050505;

    /* 深色模式默认背景：极光弥散 */
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    background-size: 200% 200%;
    background-attachment: fixed;
    animation: auroraMove 20s ease infinite;

    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.5s ease, color 0.5s ease;
}

/* =================================================================
   3. APP 主容器 (PC端外观)
   ================================================================= */

#app {
    width: 95vw;
    max-width: 1300px;
    height: 92vh;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(50px);
    border-radius: 24px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: background 0.3s ease;
}

/* 全局光照氛围 */
#app::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(49, 194, 124, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.main-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

/* =================================================================
   4. 侧边栏样式 (Sidebar)
   ================================================================= */

.sidebar {
    width: 240px;
    height: 100%;
    background: rgba(10, 10, 10, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* 禁止侧边栏整体滚动 */
    position: relative;
    z-index: 2;
    transition: background 0.3s ease;
}

.logo {
    flex-shrink: 0;
    padding: 35px 25px;
    font-size: 26px;
    font-weight: 800;
    color: #31c27c;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.logo span {
    background: linear-gradient(135deg, #31c27c, #85e4b6);
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 30px rgba(49, 194, 124, 0.3);
}

#mobile-user-mount {
    display: none;
}

.nav-group {
    flex-shrink: 0;
    margin-bottom: 25px;
}

/* 强制中间层撑满高度 */
#my-playlist-nav {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.nav-title {
    padding: 10px 25px;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.nav-item {
    padding: 12px 20px;
    margin: 4px 15px;
    color: #999;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 12px;
    border-left: none;
    font-weight: 500;
    flex-shrink: 0;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateX(4px);
}

.nav-item.active {
    background: linear-gradient(135deg, #31c27c, #25a062);
    color: #fff;
    box-shadow: 0 4px 15px rgba(49, 194, 124, 0.3);
    font-weight: 600;
}

.nav-item:active {
    transform: scale(0.95) !important;
}

#playlist-actions {
    flex-shrink: 0;
    margin-top: 12px;
    padding: 0 15px;
    display: none;
    gap: 10px;
    justify-content: center;
}

#playlist-actions.show {
    display: flex;
}

.icon-btn-sidebar {
    background: linear-gradient(145deg, #222, #1a1a1a);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #31c27c;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.icon-btn-sidebar:hover {
    background: #31c27c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 194, 124, 0.4);
    border-color: #31c27c;
}

/* PC端侧边栏底部版权 */
.sidebar-footer {
    display: block;
    padding: 15px 0;
    text-align: center;
    font-size: 12px;
    margin-top: auto;
    color: #666;
}

.sidebar-footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-footer a:hover {
    color: #31c27c;
}

/* 移动端底部版权 (在app外部) */
.footer-info {
    display: none;
}

/* =================================================================
   5. 侧边栏歌单容器滚动逻辑
   ================================================================= */

.playlist-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    margin-top: 10px;
    padding-bottom: 5px;
}

#my-playlist-songs {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding: 5px 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 0;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s;
}

#my-playlist-songs:hover {
    scrollbar-color: #444 transparent;
}

#my-playlist-songs::-webkit-scrollbar {
    width: 4px;
}

#my-playlist-songs::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 2px;
}

#my-playlist-songs:hover::-webkit-scrollbar-thumb {
    background: #444;
}

#my-playlist-songs::-webkit-scrollbar-track {
    background: transparent;
}

.playlist-song-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 4px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.playlist-song-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.playlist-song-item.playing {
    background: rgba(49, 194, 124, 0.1);
    border: 1px solid rgba(49, 194, 124, 0.2);
}

.playlist-song-item.playing .song-name {
    color: #31c27c;
}

.song-info {
    flex: 1;
    overflow: hidden;
    margin-left: 8px;
    min-width: 0;
}

.song-name {
    font-size: 13px;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.song-artist {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-song-remove {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #444;
    background: transparent;
    color: #888;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.playlist-song-remove:hover {
    border-color: #ff4d4f;
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.1);
}

/* =================================================================
   6. 底部用户区域 & 主题切换按钮
   ================================================================= */

.user-section {
    flex-shrink: 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.8);
    z-index: 2;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.icon-sun {
    display: none;
}

.icon-moon {
    display: block;
}

#user-info {
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    padding: 5px;
    flex: 1;
}

#user-info:hover .username-text {
    color: #fff;
}

#user-info:hover .fa-user-circle {
    color: #31c27c !important;
    transition: 0.3s;
}

.username-text {
    color: #ddd;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#btn-login-trigger {
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #31c27c, #25a062);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(49, 194, 124, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

#btn-login-trigger:active {
    transform: scale(0.95);
}

#btn-login-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(49, 194, 124, 0.5);
}

.logout-popup {
    display: none;
    position: absolute;
    bottom: 65px;
    left: 10px;
    right: 10px;
    background: #222;
    border: 1px solid #444;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    overflow: hidden;
    animation: fadeInUp 0.2s ease;
}

.logout-popup.show {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logout-btn-item {
    display: block;
    width: 100%;
    padding: 14px;
    text-align: center;
    color: #ff4d4f;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.logout-btn-item:hover {
    background-color: #333;
}

/* =================================================================
   7. 右侧内容区 (Content)
   ================================================================= */

.content {
    flex: 1;
    background: transparent;
    overflow: hidden;
    padding: 30px 40px 0 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.search-bar,
.tab-header,
#charts-tabs,
#mobile-playlist-controls {
    flex-shrink: 0;
}

/* 移动端歌单控件样式 (默认深色) */
#mobile-playlist-controls {
    display: none;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 12px;
    background: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.mobile-controls-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

#mobile-playlist-select {
    flex: 1;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
}

.mobile-btn-group {
    display: flex;
    gap: 6px;
}

.mobile-btn-group button {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #2a2a2a;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.mobile-btn-group button:hover {
    background: #333;
    color: #fff;
}

.mobile-btn-group button.btn-delete {
    color: #ff4d4f;
    border-color: rgba(255, 77, 79, 0.2);
}

.mobile-btn-group button.btn-delete:hover {
    background: rgba(255, 77, 79, 0.1);
}


.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.source-select {
    padding: 0 20px;
    height: 46px;
    background-color: #1a1a1a;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 23px;
    cursor: pointer;
    min-width: 120px;
    transition: 0.3s;
    font-family: inherit;
    outline: none;
}

.source-select:hover {
    border-color: #555;
    color: #fff;
    background-color: #252525;
}

.source-select option {
    background-color: #1a1a1a;
    color: #fff;
    padding: 10px;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 23px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.search-input-group:focus-within {
    border-color: #31c27c;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0 2px rgba(49, 194, 124, 0.2);
}

.search-input {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 15px;
    font-family: inherit;
}

.search-btn {
    padding: 0 24px;
    color: #666;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:active {
    transform: scale(0.9);
}

.search-btn:hover {
    color: #31c27c;
    transform: scale(1.1);
}

.tab-header {
    display: flex;
    gap: 35px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

.tab-item {
    padding: 10px 5px;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.tab-item:hover {
    color: #fff;
}

.tab-item.active {
    color: #31c27c;
    border-bottom-color: #31c27c;
}

#tab-my-playlist {
    display: none;
}

#chart-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

#chart-tags-container .nav-item {
    padding: 8px 20px;
    background: #222;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #333;
    transition: all 0.2s;
    margin: 0;
}

#chart-tags-container .nav-item:hover {
    background: #333;
    transform: translateY(-2px);
    border-color: #555;
}

#chart-tags-container .nav-item.active {
    background: #31c27c;
    color: white;
    border-color: #31c27c;
    box-shadow: 0 4px 10px rgba(49, 194, 124, 0.3);
}

#song-list-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 130px;
    padding-right: 5px;
    margin-top: 10px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s;
}

#song-list-container:hover {
    scrollbar-color: #444 transparent;
}

#song-list-container::-webkit-scrollbar {
    width: 6px;
}

#song-list-container::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

#song-list-container:hover::-webkit-scrollbar-thumb {
    background: #444;
}

#song-list-container::-webkit-scrollbar-track {
    background: transparent;
}

/* 歌曲列表项 */
.song-item {
    display: grid;
    grid-template-columns: 50px 2fr 1.5fr 1.5fr 80px;
    gap: 15px;
    padding: 16px 20px;
    margin-bottom: 6px;
    border-radius: 16px;
    cursor: pointer;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.song-item:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(5px) scale(1.01);
    border-left: 1px solid rgba(49, 194, 124, 0.5);
}

.song-item.playing {
    background: linear-gradient(90deg, rgba(49, 194, 124, 0.15), transparent);
    border-color: rgba(49, 194, 124, 0.1);
    box-shadow: 0 0 20px rgba(49, 194, 124, 0.1);
    animation: playingBreathe 2s ease-in-out infinite alternate;
}

.song-item.playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #31c27c;
    box-shadow: 0 0 10px #31c27c;
}

.col-index {
    color: #555;
    text-align: center;
    font-family: 'Outfit', monospace;
}

/* 律动声波 */
.song-item.playing .col-index {
    font-size: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 16px;
    gap: 2px;
}

.song-item.playing .col-index::before,
.song-item.playing .col-index::after {
    content: '';
    width: 3px;
    background: #31c27c;
    border-radius: 2px;
    animation: soundWave 1s infinite ease-in-out;
}

.song-item.playing .col-index::before {
    height: 10px;
    animation-delay: 0s;
    box-shadow: 5px 0 0 #31c27c;
}

.song-item.playing .col-index::after {
    height: 14px;
    animation-delay: 0.2s;
    margin-left: 5px;
}

@keyframes soundWave {

    0%,
    100% {
        height: 6px;
        box-shadow: 5px 0 0 #31c27c;
    }

    50% {
        height: 16px;
        box-shadow: 5px -5px 0 #31c27c;
    }
}

.col-name {
    color: #eee;
    font-weight: 500;
    font-size: 15px;
}

.col-artist,
.col-album {
    color: #888;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.col-action {
    text-align: center;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #888;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:active,
.control-btn:active,
.btn-play:active,
.source-select:active {
    transform: scale(0.92) !important;
}

.icon-btn:hover {
    background: #31c27c;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(49, 194, 124, 0.4);
}

/* =================================================================
   8. 底部播放条 (Player Bar)
   ================================================================= */

.player-bar {
    position: absolute;
    bottom: 20px;
    left: 270px;
    right: 30px;
    height: 90px;
    background: rgba(30, 30, 30, 0.85);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 0 30px;
    gap: 30px;
    z-index: 100;
    overflow: hidden;
    transition: background 0.3s ease;
}

.player-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.player-cover {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spinning {
    animation: spinCover 20s linear infinite;
    border-radius: 50% !important;
}

.spinning.paused {
    animation-play-state: paused !important;
}

.player-cover:hover {
    transform: scale(1.05);
}

.player-info {
    flex: 1;
}

.player-song-name {
    color: #fff;
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.player-artist-name {
    color: #999;
    font-size: 12px;
}

.player-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

/* 默认深色模式下的控制按钮 */
.control-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.control-btn:hover {
    background: transparent !important;
    color: #31c27c;
    transform: translateY(-2px);
}

.control-btn:active {
    transform: scale(0.95);
}

.btn-play {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #31c27c, #25a062);
    border: none;
    color: white;
    font-size: 22px;
    border-radius: 50%;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 8px 20px rgba(49, 194, 124, 0.4);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-play:hover {
    background: linear-gradient(135deg, #36d688, #2bc075);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 12px 25px rgba(49, 194, 124, 0.6);
    transform: scale(1.1);
}

.btn-play:active {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(49, 194, 124, 0.3);
}

.progress-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    display: flex;
    align-items: flex-end;
    transition: height 0.2s;
    z-index: 10;
}

.progress-section:hover {
    height: 10px;
}

.time {
    display: none;
}

.progress-wrapper {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #31c27c, #85e4b6);
    width: 0;
    position: relative;
    box-shadow: 0 -2px 10px rgba(49, 194, 124, 0.5);
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: 0.2s;
}

.progress-section:hover .progress-bar::after {
    transform: translateY(-50%) scale(1);
}

.player-right {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    justify-content: flex-end;
}

.quality-select {
    padding: 5px 12px;
    background: #222;
    color: #ccc;
    border: 1px solid #333;
    border-radius: 8px;
    font-size: 12px;
    height: 30px;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

.quality-select:hover {
    border-color: #31c27c;
    color: #31c27c;
}

/* =================================================================
   9. 歌词页 & 模态弹窗
   ================================================================= */

.lyric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    display: none;
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    flex-direction: column;
}

.lyric-overlay.show {
    display: flex;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lyric-header {
    padding: 30px;
    display: flex;
    justify-content: flex-end;
}

.lyric-close-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.lyric-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lyric-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.lyric-cover {
    width: 240px;
    height: 240px;
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lyric-meta {
    text-align: center;
    margin-bottom: 40px;
}

.lyric-song-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.lyric-artist-name {
    font-size: 18px;
    color: #aaa;
    font-weight: 300;
}

.lyric-wrapper {
    flex: 1;
    width: 100%;
    max-width: 800px;
    overflow-y: auto;
    text-align: center;
    position: relative;
    mask-image: linear-gradient(transparent 0%, #000 15%, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(transparent 0%, #000 15%, #000 85%, transparent 100%);
    scrollbar-width: none;
}

.lyric-wrapper::-webkit-scrollbar {
    display: none;
}

.lrc-line {
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    min-height: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: none !important;
    -webkit-filter: none !important;
    transform: scale(0.95);
}

.lrc-line.active {
    color: #31c27c;
    font-size: 28px;
    font-weight: 700;
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(49, 194, 124, 0.6);
    filter: blur(0);
}

/* 弹窗通用样式 */
.modal-mask {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal-box {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    padding: 18px 25px;
    background: rgba(30, 30, 30, 0.9);
    border-bottom: 1px solid #282828;
    color: #31c27c;
    font-weight: bold;
    font-size: 16px;
}

.modal-header i {
    cursor: pointer;
    color: #666;
    transition: 0.2s;
}

.modal-header i:hover {
    color: #fff;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: 0.2s;
}

.form-input:focus {
    border-color: #31c27c;
    box-shadow: 0 0 0 2px rgba(49, 194, 124, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #31c27c, #25a062);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(49, 194, 124, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(49, 194, 124, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
    margin-top: 10px;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}

/* =================================================================
   10. [核心功能] 浅色模式 (Light Mode) 完整配色覆盖
   ================================================================= */

body.light-mode {
    background-image:
        radial-gradient(at 0% 0%, hsla(210, 100%, 94%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(180, 100%, 96%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(300, 100%, 95%, 1) 0, transparent 50%);
    background-color: #f7f9fc;
    color: #333;
}

/* 容器变白 */
body.light-mode #app {
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(60px);
}

body.light-mode .sidebar {
    background: rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
}

body.light-mode .user-section {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
}

/* 浅色模式下控制按钮 */
body.light-mode .control-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #555 !important;
}

body.light-mode .control-btn:hover {
    background: transparent !important;
    color: #31c27c !important;
}

/* 播放按钮 */
body.light-mode .btn-play {
    background: #ffffff !important;
    color: #31c27c !important;
    border: 1px solid rgba(49, 194, 124, 0.2) !important;
    box-shadow: 0 5px 15px rgba(49, 194, 124, 0.25) !important;
}

body.light-mode .btn-play:hover {
    background: #f0fdf5 !important;
}

/* [绝杀修复] PC端/移动端 下拉框和输入框强制白底黑字 */
html body.light-mode select,
html body.light-mode input,
html body.light-mode textarea,
html body.light-mode .source-select,
html body.light-mode .search-input-group,
html body.light-mode #playlist-select,
html body.light-mode #mobile-playlist-select {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;

    /* 关键：清除浏览器默认外观 */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 修复下拉选项背景 */
html body.light-mode option {
    background-color: #ffffff !important;
    color: #333333 !important;
}

/* 修复搜索框内部 */
html body.light-mode .search-input {
    border: none !important;
    background: transparent !important;
    color: #333333 !important;
    box-shadow: none !important;
}

html body.light-mode .search-input::placeholder {
    color: #888 !important;
}

/* 修复下拉框右侧小箭头 (重新加回来) */
html body.light-mode select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px !important;
    padding-right: 30px !important;
}

body.light-mode .search-btn {
    color: #888 !important;
}

/* 侧边栏按钮 */
body.light-mode .icon-btn-sidebar {
    background: #ffffff !important;
    color: #555 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .icon-btn-sidebar:hover {
    background: #f0fdf5 !important;
    color: #31c27c !important;
    border-color: #31c27c !important;
}

body.light-mode .theme-toggle-btn {
    background: #ffffff;
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

body.light-mode .theme-toggle-btn:hover {
    background: #f5f5f5;
    color: #000;
}

body.light-mode .icon-moon {
    display: none;
}

body.light-mode .icon-sun {
    display: block;
}

body.light-mode #chart-tags-container .nav-item {
    background-color: #ffffff;
    color: #555;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

body.light-mode #chart-tags-container .nav-item:hover {
    background-color: #f9f9f9;
    color: #000 !important;
    border-color: #ccc;
}

body.light-mode #chart-tags-container .nav-item.active {
    background: linear-gradient(135deg, #31c27c, #25a062);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(49, 194, 124, 0.3);
}

body.light-mode .tab-item:hover {
    color: #31c27c !important;
}

body.light-mode .modal-box {
    background: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.light-mode .modal-header {
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    color: #333;
}

body.light-mode .modal-header i {
    color: #888;
}

body.light-mode .modal-header i:hover {
    color: #333;
}

body.light-mode .form-input,
body.light-mode .form-textarea {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
}

body.light-mode #msg-content,
body.light-mode #confirm-content,
body.light-mode label {
    color: #666 !important;
}

body.light-mode .quality-select {
    background-color: #ffffff;
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-mode .quality-select option {
    background-color: #ffffff;
    color: #333333;
}

body.light-mode img[src*="dummyimage"] {
    filter: invert(1) hue-rotate(180deg);
    border: 1px solid #ddd;
}

body.light-mode .nav-title {
    color: #888;
}

body.light-mode .nav-item {
    color: #555;
}

body.light-mode .nav-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #000;
}

body.light-mode .username-text {
    color: #333 !important;
}

body.light-mode .fa-user-circle {
    color: #888 !important;
}

body.light-mode .sidebar-footer a {
    color: #888;
}

body.light-mode .sidebar-footer a:hover {
    color: #333;
}

body.light-mode .song-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

body.light-mode .song-item:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

body.light-mode .col-name {
    color: #333;
}

body.light-mode .col-artist,
body.light-mode .col-album,
body.light-mode .col-index {
    color: #777;
}

body.light-mode .icon-btn {
    background-color: #ffffff !important;
    color: #555 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

body.light-mode .icon-btn:hover {
    background-color: #f9f9f9 !important;
    color: #333 !important;
}

body.light-mode .player-bar {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

body.light-mode .player-song-name {
    color: #333;
}

body.light-mode .player-artist-name {
    color: #777;
}

body.light-mode .lyric-overlay {
    background: rgba(248, 250, 252, 0.96);
}

body.light-mode .lyric-song-name {
    color: #333;
    text-shadow: none;
}

body.light-mode .lyric-artist-name {
    color: #666;
}

body.light-mode .lrc-line {
    color: #aaa;
    text-shadow: none;
}

body.light-mode .lrc-line.active {
    color: #31c27c;
    text-shadow: 0 0 15px rgba(49, 194, 124, 0.4);
    font-weight: 800;
}

body.light-mode .lyric-close-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode #my-playlist-songs .song-name {
    color: #333 !important;
}

body.light-mode #my-playlist-songs .song-artist {
    color: #666 !important;
}

body.light-mode #my-playlist-songs .song-index {
    color: #555 !important;
}

body.light-mode #my-playlist-songs .playlist-song-remove {
    border-color: #ccc !important;
    color: #666 !important;
}

body.light-mode #my-playlist-songs .playlist-song-remove:hover {
    border-color: #ff4d4f !important;
    color: #ff4d4f !important;
    background: rgba(255, 77, 79, 0.1) !important;
}

body.light-mode #my-playlist-songs .playlist-song-item:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode #my-playlist-songs .playlist-song-item.playing {
    background-color: rgba(49, 194, 124, 0.15) !important;
    border: 1px solid rgba(49, 194, 124, 0.3) !important;
}

body.light-mode #my-playlist-songs .playlist-song-item.playing .song-name {
    color: #31c27c !important;
}

/* [修复] 将原本在移动端媒体查询中的浅色样式移到全局 */
body.light-mode #mobile-playlist-controls {
    background: #ffffff !important;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode #mobile-playlist-select {
    background: #ffffff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

body.light-mode #mobile-playlist-select option {
    background-color: #ffffff !important;
    color: #333 !important;
}

body.light-mode .mobile-btn-group button {
    background: #ffffff !important;
    border: 1px solid #ddd !important;
    color: #666 !important;
}

body.light-mode .mobile-btn-group button:hover {
    background: #f0f0f0 !important;
    color: #333 !important;
}

@media (max-width: 768px) {
    body.light-mode .sidebar {
        background: #fff;
        border-bottom: 1px solid #f0f0f0;
    }

    body.light-mode .user-section {
        background: transparent !important;
        border: none !important;
    }

    body.light-mode .player-right .control-btn[onclick="toggleLyricPage()"] {
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        color: #333 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }

    body.light-mode .player-right .btn-download {
        background: rgba(0, 0, 0, 0.03) !important;
        color: #555 !important;
    }
}

/* =================================================================
   11. 移动端终极适配 (Mobile Responsive)
   ================================================================= */

@media (max-width: 768px) {

    html,
    body {
        position: fixed;
        width: 100%;
        height: 100%;
    }

    #app {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    #app::before {
        display: none;
    }

    .sidebar {
        width: 100%;
        height: 60px;
        min-height: 60px;
        border-right: none;
        border-bottom: 1px solid #282828;
        flex-direction: row;
        align-items: center;
        overflow: visible;
        z-index: 20;
        background: #000;
        padding-top: env(safe-area-inset-top);
        height: calc(60px + env(safe-area-inset-top));
    }

    .logo {
        padding: 0 15px;
        font-size: 18px;
        height: 100%;
        display: flex;
        align-items: center;
        flex: 1;
        text-shadow: none;
        filter: none;
    }

    .playlist-container,
    #online-music-nav,
    .sidebar-footer {
        display: none;
    }

    .user-section {
        position: absolute;
        top: env(safe-area-inset-top);
        right: 0;
        bottom: auto;
        width: auto;
        height: 60px;
        background: transparent;
        border: none;
        padding: 0 10px;
        display: flex;
        align-items: center;
        backdrop-filter: none;
    }

    #user-info {
        display: flex;
        gap: 5px;
    }

    #btn-login-trigger {
        width: auto;
        padding: 6px 12px;
        font-size: 12px;
        box-shadow: none;
    }

    .username-text {
        display: block;
        font-size: 13px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: #fff;
    }

    .fa-user-circle {
        font-size: 20px;
        color: #666;
    }

    .theme-toggle-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
        margin-right: 5px;
    }

    .main-wrapper {
        flex-direction: column;
    }

    .content {
        padding: 10px 10px 0 10px;
    }

    .search-bar {
        gap: 8px;
        margin-bottom: 15px;
    }

    .source-select {
        min-width: 80px;
        width: 80px;
        padding: 0 5px;
        height: 40px;
        font-size: 12px;
        background: #222;
        border-radius: 10px;
    }

    .search-input-group {
        height: 40px;
        background: #222;
        border-radius: 10px;
    }

    #tab-my-playlist {
        display: block;
    }

    .tab-header {
        justify-content: space-around;
        gap: 0;
    }

    .tab-item {
        padding: 10px 0;
        font-size: 14px;
        flex: 1;
        text-align: center;
    }

    #song-list-container {
        margin-top: 5px;
        padding-right: 0;
        padding-bottom: 120px;
    }

    .song-item {
        display: flex !important;
        align-items: center;
        gap: 5px;
        padding: 12px 8px;
        box-shadow: none;
        transform: none;
        background: transparent;
        border-bottom: 1px solid #222;
        border-radius: 0;
        margin-bottom: 0;
    }

    .song-item:hover {
        background: #1a1a1a;
        transform: none;
    }

    body.light-mode .song-item {
        border-bottom: 1px solid #eee;
    }

    .col-action {
        order: -1;
        width: 30px;
        text-align: center;
    }

    .col-index {
        order: 0;
        width: 25px;
        font-size: 12px;
        text-align: center;
    }

    .col-name {
        order: 1;
        flex: 1;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .col-artist,
    .col-album {
        display: none;
    }

    .player-bar {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(85px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        border-radius: 0;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0;
        justify-content: center;
        background: rgba(20, 20, 20, 0.95);
        box-shadow: none;
        overflow: visible;
    }

    .player-left {
        display: none;
    }

    .player-center {
        width: 100%;
        padding: 0;
        justify-content: center;
        align-items: center;
    }

    .player-controls {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        gap: 12px;
        z-index: 10;
        width: auto;
        white-space: nowrap;
    }

    .player-bar .player-controls {
        top: calc(50% - env(safe-area-inset-bottom) / 2);
    }

    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .btn-play {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .quality-select {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        right: auto;
        background: rgba(0, 0, 0, 0.8);
        border: 1px solid #333;
        height: 24px;
        padding: 0 2px;
        z-index: 20;
        width: 65px;
        font-size: 11px;
        text-align: center;
        text-indent: 0;
    }

    .player-bar .quality-select {
        top: calc(50% - env(safe-area-inset-bottom) / 2);
    }

    .player-right {
        position: static;
        width: auto;
        margin: 0;
        padding: 0;
        display: contents;
    }

    .player-right .btn-download {
        display: flex !important;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        background: rgba(255, 255, 255, 0.05);
    }

    .player-bar .player-right .btn-download {
        top: calc(50% - env(safe-area-inset-bottom) / 2);
    }

    .player-right .control-btn[onclick="toggleLyricPage()"] {
        position: absolute;
        right: 15px;
        top: -25px;
        transform: translateY(-50%);
        background: rgba(30, 30, 30, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        z-index: 30;
    }

    .progress-section {
        position: absolute;
        bottom: calc(0px + env(safe-area-inset-bottom));
        left: 0;
        right: 0;
        height: 3px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .progress-bar::after {
        display: none;
    }

    .time {
        display: none;
    }

    .lyric-content {
        justify-content: flex-start;
        padding-top: 10px;
    }

    .lyric-cover {
        width: 140px;
        height: 140px;
        margin-bottom: 15px;
        border-radius: 20px;
    }

    .lyric-song-name {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .lyric-artist-name {
        font-size: 14px;
    }

    .private-tag {
        display: none;
    }

    /* [关键] 底部版权在移动端显示，并抬高位置 */
    .footer-info {
        display: block !important;
        position: fixed;
        bottom: 95px;
        /* 避开播放条 */
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 10px;
        color: rgba(255, 255, 255, 0.3);
        z-index: 1;
        pointer-events: none;
    }

    .footer-info a {
        pointer-events: auto;
    }

    /* [修复] 移动端退出弹窗位置修正 - 强制覆盖底部定位 */
    .logout-popup {
        top: 60px !important;
        /* 改为从顶部向下弹出 */
        bottom: auto !important;
        /* 取消底部定位 */
        right: 10px !important;
        /* 靠右显示 */
        left: auto !important;
        transform-origin: top right;
        /* 动画从右上角开始 */
    }
}