/* ==========================================================================
   《鸣潮·菲比 (Phoebe)》特调视觉主题 (根据官方建模与Q版形象深度考究)
   核心考究配色：
   1. 菲比金发星芒 (--phoebe-gold: #F59E0B / #FDE047) -> 金光流线、四角星芒、棘冠金辉
   2. 皇家宝蓝礼带 (--phoebe-cobalt: #1E40AF / #2563EB / #3B82F6) -> 菲比胸前皇家蓝礼带、蓝发夹
   3. 圣洁雪白帽袍 (--phoebe-white: #FFFFFF / #F8FAFC) -> 帽子、修女长袍、高亮边框
   4. 璀璨紫罗兰星瞳 (--phoebe-violet: #8B5CF6 / #A855F7 / #C084FC) -> 星芒眼眸、紫蓝微光
   5. 深沉星空袍底 (--phoebe-night: #0B0F19 / #111827) -> 暗夜夜空
   ========================================================================== */

:root {
    --phoebe-white: #ffffff;
    --phoebe-white-soft: #f8fafc;
    --phoebe-gold-bright: #fde047;
    --phoebe-gold: #f59e0b;
    --phoebe-gold-deep: #d97706;
    
    --phoebe-cobalt: #2563eb;
    --phoebe-cobalt-light: #60a5fa;
    --phoebe-cobalt-dark: #1e3a8a;
    
    --phoebe-violet-light: #e9d5ff;
    --phoebe-violet: #a855f7;
    --phoebe-violet-deep: #7c3aed;
    
    --bg-night: #080c16;
    --bg-gradient: radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.22) 0%, transparent 40%),
                  radial-gradient(circle at 90% 20%, rgba(245, 158, 11, 0.2) 0%, transparent 45%),
                  radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.18) 0%, transparent 50%),
                  linear-gradient(135deg, #080c16 0%, #0d1326 50%, #131229 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.16);
    --glass-hover: rgba(255, 255, 255, 0.14);
    --glass-shadow: 0 16px 48px 0 rgba(2, 6, 23, 0.65);
    --glass-backdrop: blur(24px);
    
    /* 菲比核心双重渐变：宝蓝 + 金灿 + 亮紫 */
    --phoebe-gradient-title: linear-gradient(135deg, #ffffff 0%, #fde047 35%, #60a5fa 70%, #c084fc 100%);
    --phoebe-gradient-btn: linear-gradient(135deg, #2563eb 0%, #3b82f6 40%, #f59e0b 100%);
    --phoebe-gradient-btn-hover: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #d97706 100%);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   全局基础重置与星空背景
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: var(--bg-night);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 120px;
    position: relative;
}

/* 菲比浮动星光与环形星辉 */
body::before {
    content: '';
    position: fixed;
    top: 22%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(245, 158, 11, 0.14) 35%, rgba(168, 85, 247, 0.12) 65%, transparent 75%);
    filter: blur(64px);
    z-index: -1;
    pointer-events: none;
    animation: none;
}

@keyframes phoebeGlow {
    0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50% { transform: translate(-45%, -55%) scale(1.18) rotate(8deg); }
    100% { transform: translate(-55%, -45%) scale(0.92) rotate(-8deg); }
}

/* 菲比四角金星 Sparkles 动画装饰 */
.phoebe-star-sparkle {
    position: absolute;
    color: var(--phoebe-gold-bright);
    font-size: 1.2rem;
    pointer-events: none;
    animation: starPulse 3s infinite ease-in-out alternate;
    text-shadow: 0 0 12px rgba(253, 224, 71, 0.8), 0 0 20px rgba(37, 99, 235, 0.6);
}

@keyframes starPulse {
    0% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.25) rotate(45deg); }
}

/* ==========================================================================
   顶部导航栏与品牌 LOGO
   ========================================================================== */
.top-navbar {
    width: 100%;
    background: rgba(8, 12, 22, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(96, 165, 250, 0.25);
}

.top-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 1.45rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--phoebe-gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.brand-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--phoebe-gold-bright);
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.7), 0 0 24px rgba(253, 224, 71, 0.5);
    transition: var(--transition-fast);
}

.brand-logo-img:hover {
    transform: scale(1.12) rotate(6deg);
    box-shadow: 0 0 22px rgba(37, 99, 235, 0.9), 0 0 35px rgba(253, 224, 71, 0.7);
}

/* ==========================================================================
   跑马灯公告栏 (宝蓝 + 金星风格)
   ========================================================================== */
.marquee-banner {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.15) 0%, rgba(245, 158, 11, 0.15) 50%, rgba(37, 99, 235, 0.15) 100%);
    border-bottom: 1px solid rgba(96, 165, 250, 0.25);
    backdrop-filter: blur(10px);
    overflow: hidden;
    white-space: nowrap;
    padding: 9px 0;
    font-size: 0.88rem;
    color: var(--phoebe-white-soft);
    position: relative;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-banner:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   Header 页眉与搜索框
   ========================================================================== */
.app-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 38px 24px 22px;
    text-align: center;
    position: relative;
}

.header-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 10px;
    position: relative;
}

.main-logo-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--phoebe-white);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.8), 0 0 35px rgba(253, 224, 71, 0.6), 0 0 50px rgba(168, 85, 247, 0.4);
    animation: phoebeAvatarPulse 4s infinite ease-in-out alternate;
}

@keyframes phoebeAvatarPulse {
    0% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.7), 0 0 25px rgba(253, 224, 71, 0.5); }
    100% { box-shadow: 0 0 30px rgba(37, 99, 235, 1), 0 0 45px rgba(253, 224, 71, 0.8), 0 0 65px rgba(168, 85, 247, 0.6); }
}

.app-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--phoebe-gradient-title);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 0 25px rgba(37, 99, 235, 0.35);
}

.app-subtitle {
    color: var(--phoebe-cobalt-light);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 30px;
}

/* 搜索模式切换与搜索框 */
.search-container {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

/* 搜索模式与平台选择器控制条 */
.search-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .search-controls-bar {
        justify-content: center;
    }
}

.mode-switch-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.platform-switch-capsule {
    display: inline-flex;
    align-items: center;
    background: rgba(8, 12, 22, 0.7);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: var(--radius-full);
    padding: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.platform-tab-btn {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.platform-tab-btn:hover {
    color: #ffffff;
}

.platform-tab-btn.active {
    background: var(--phoebe-gradient-btn);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5);
}

.platform-tab-btn[data-platform="netease"].active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

.text-green { color: #34d399; }
.text-red { color: #f87171; }

.badge-platform {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    margin-right: 6px;
    display: inline-block;
}

.badge-platform.qq {
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
}

.badge-platform.netease {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.mode-tab-btn {
    padding: 8px 24px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(96, 165, 250, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mode-tab-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    color: var(--phoebe-white);
    border-color: var(--phoebe-cobalt-light);
}

.mode-tab-btn.active {
    background: var(--phoebe-gradient-btn);
    color: #ffffff;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.5);
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1.5px solid rgba(96, 165, 250, 0.35);
    backdrop-filter: var(--glass-backdrop);
    border-radius: var(--radius-full);
    padding: 6px 8px 6px 24px;
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.25);
    transition: var(--transition-normal);
}

.search-bar:focus-within {
    border-color: var(--phoebe-gold-bright);
    box-shadow: 0 0 28px rgba(253, 224, 71, 0.5), 0 0 45px rgba(37, 99, 235, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--phoebe-gradient-btn);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}

.search-btn:hover {
    background: var(--phoebe-gradient-btn-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.65);
}

.my-playlists-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.35);
    backdrop-filter: var(--glass-backdrop);
    border-radius: var(--radius-full);
    padding: 8px 20px;
}

.my-playlist-label {
    font-size: 0.88rem;
    color: var(--phoebe-gold-bright);
    white-space: nowrap;
}

.user-playlist-select {
    flex: 1;
    max-width: 320px;
    background: rgba(8, 12, 22, 0.85);
    border: 1px solid var(--phoebe-cobalt-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 6px 12px;
    font-size: 0.88rem;
    outline: none;
}

.user-playlist-select option {
    background: #0d1326;
    color: #fff;
}

/* ==========================================================================
   主网格布局与玻璃卡片
   ========================================================================== */
.main-container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
}

.main-container > * {
    min-width: 0;
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-backdrop);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--glass-shadow);
    min-width: 0;
    box-sizing: border-box;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--phoebe-gold-bright);
}

/* ==========================================================================
   歌曲列表项
   ========================================================================== */
.song-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

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

.song-list::-webkit-scrollbar-thumb {
    background: rgba(96, 165, 250, 0.4);
    border-radius: var(--radius-full);
}

.song-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-fast);
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: auto 74px;
}

.song-item:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--phoebe-cobalt-light);
    transform: translateX(4px);
}

.song-cover {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-right: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    contain: strict;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

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

.song-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-meta {
    font-size: 0.85rem;
    color: var(--phoebe-cobalt-light);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.quality-select {
    background: rgba(8, 12, 22, 0.85);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: var(--phoebe-cobalt-light);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
}

.action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--phoebe-gradient-btn);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.action-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 18px rgba(96, 165, 250, 0.65);
}

/* ==========================================================================
   歌词区 (金发高亮 + 菲比宝蓝/紫光影)
   ========================================================================== */
.lyric-panel {
    display: flex;
    flex-direction: column;
    height: 660px;
}

.lyric-container {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: center;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

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

.lyric-line {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-normal);
    cursor: pointer;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.lyric-line:hover {
    color: var(--phoebe-cobalt-light);
}

.lyric-line.active {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--phoebe-gold-bright);
    text-shadow: 0 0 14px rgba(253, 224, 71, 0.8), 0 0 24px rgba(37, 99, 235, 0.6);
    transform: scale(1.06);
}

/* ==========================================================================
   底部悬浮播放控制条 (夜袍黑蓝 + 蓝金控制器)
   ========================================================================== */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: rgba(8, 12, 22, 0.93);
    backdrop-filter: blur(22px);
    border-top: 1px solid rgba(96, 165, 250, 0.35);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 900;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.65);
}

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

.player-cover {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--phoebe-gold-bright);
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.6);
}

.player-cover.playing {
    animation: spinRotate 12s linear infinite;
}

@keyframes spinRotate {
    100% { transform: rotate(360deg); }
}

.player-meta-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.player-meta-singer {
    font-size: 0.8rem;
    color: var(--phoebe-cobalt-light);
}

.player-center {
    flex: 1;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ctrl-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.ctrl-btn:hover {
    color: var(--phoebe-gold-bright);
    transform: scale(1.12);
}

.ctrl-play-main {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--phoebe-gradient-btn);
    color: #ffffff;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.55);
}

.ctrl-play-main:hover {
    transform: scale(1.08);
}

.progress-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.progress-bar-wrapper {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--phoebe-gradient-btn);
    border-radius: var(--radius-full);
    transition: width 0.1s linear;
}

/* 音量调节控制线 */
.volume-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.volume-btn {
    font-size: 1.1rem !important;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.volume-slider:hover {
    background: rgba(96, 165, 250, 0.4);
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--phoebe-gold-bright);
    box-shadow: 0 0 8px rgba(253, 224, 71, 0.8);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--phoebe-gold-bright);
    box-shadow: 0 0 8px rgba(253, 224, 71, 0.8);
    cursor: pointer;
    border: none;
}

/* ==========================================================================
   登录/凭证 Modal 弹窗
   ========================================================================== */
.vip-status-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: var(--phoebe-cobalt-light);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.vip-status-btn:hover {
    background: rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}

/* 顶栏赞助按钮 (Phoebe Pink Heart Theme) */
.sponsor-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(244, 114, 182, 0.15);
    border: 1px solid rgba(244, 114, 182, 0.4);
    color: #f472b6;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sponsor-nav-btn:hover {
    background: rgba(244, 114, 182, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(244, 114, 182, 0.45);
}

.vip-status-btn.active {
    background: var(--phoebe-gradient-btn);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.55);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: #080c16;
    border: 1px solid var(--phoebe-cobalt-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 45px rgba(37, 99, 235, 0.3);
    overflow: hidden;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 赞助弹窗卡片与二维码 CSS */
.sponsor-modal-card {
    max-width: 600px !important;
    border-color: rgba(253, 224, 71, 0.4) !important;
    box-shadow: 0 0 45px rgba(37, 99, 235, 0.4), 0 0 30px rgba(253, 224, 71, 0.25) !important;
}

.sponsor-desc-text {
    font-size: 0.9rem;
    color: var(--phoebe-white-soft);
    line-height: 1.6;
    margin-bottom: 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.25);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    text-align: left;
}

.sponsor-qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 14px;
}

@media (max-width: 560px) {
    .sponsor-qr-grid {
        grid-template-columns: 1fr;
    }
}

.sponsor-qr-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-fast);
}

.sponsor-qr-card:hover {
    border-color: var(--phoebe-gold-bright);
    background: rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.wx-card .qr-title {
    color: #34d399;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.ali-card .qr-title {
    color: #60a5fa;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.qr-img-wrapper {
    width: 220px;
    height: 220px;
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}

@media (max-width: 560px) {
    .qr-img-wrapper {
        width: 240px;
        height: 240px;
    }
}

.qr-img-wrapper img.zoomable-qr {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.25s ease;
    cursor: zoom-in;
}

.qr-img-wrapper:hover img.zoomable-qr {
    transform: scale(1.04);
}

.qr-zoom-tip {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(8, 12, 22, 0.82);
    color: var(--phoebe-gold-bright);
    border: 1px solid rgba(253, 224, 71, 0.5);
    padding: 2px 10px;
    font-size: 0.72rem;
    border-radius: var(--radius-full);
    pointer-events: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.qr-empty-box {
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
}

/* ==========================================================================
   图片 Lightbox 放大预览 Modal (全屏质感)
   ========================================================================== */
.lightbox-card {
    position: relative;
    background: #080c16;
    border: 2px solid var(--phoebe-gold-bright);
    border-radius: var(--radius-lg);
    padding: 20px;
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 60px rgba(37, 99, 235, 0.6), 0 0 35px rgba(253, 224, 71, 0.4);
    animation: modalIn 0.25s ease-out;
}

.lightbox-close-btn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.8rem;
    z-index: 10;
}

.lightbox-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 10px;
    border-radius: var(--radius-md);
    max-width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.lightbox-img-wrapper img {
    max-width: 75vw;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-tip {
    margin-top: 12px;
    color: var(--phoebe-gold-bright);
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(253, 224, 71, 0.5);
}

/* 登录弹窗平台切换选项卡 */
.login-platform-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-platform-btn {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.login-platform-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.login-platform-btn.active[data-platform="qq"] {
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.5);
    color: #34d399;
}

.login-platform-btn.active[data-platform="netease"] {
    background: rgba(248, 113, 113, 0.18);
    border-color: rgba(248, 113, 113, 0.5);
    color: #f87171;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-gold { color: var(--phoebe-gold-bright); }

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close-btn:hover { color: var(--text-primary); }

.modal-body {
    padding: 24px;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.tab-btn {
    flex: 1;
    padding: 8px;
    font-size: 0.8rem;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.tab-btn.active {
    background: rgba(37, 99, 235, 0.25);
    color: var(--phoebe-gold-bright);
    font-weight: 600;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--phoebe-gold-bright);
    background: rgba(255, 255, 255, 0.1);
}

.help-box {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.3);
    font-size: 0.8rem;
    color: var(--phoebe-cobalt-light);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.4;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.btn-primary, .btn-secondary {
    padding: 8px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--phoebe-gradient-btn);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--phoebe-gradient-btn-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.state-container {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

.spinner {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(96, 165, 250, 0.25);
    border-top-color: var(--phoebe-gold-bright);
    border-radius: 50%;
    animation: spin 1s infinite linear;
    margin: 0 auto 12px;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   页脚与访客数据统计 Badge (Phoebe Theme Footer)
   ========================================================================== */
.app-footer {
    text-align: center;
    padding: 30px 20px 100px;
    color: var(--text-muted);
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(13, 19, 38, 0.75);
    border: 1px solid var(--phoebe-cobalt-light);
    backdrop-filter: blur(12px);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    font-size: 0.88rem;
    color: var(--text-secondary);
    max-width: 92%;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-stats-badge strong {
    color: var(--phoebe-gold-bright);
    font-size: 1.05rem;
    font-weight: 700;
}

.text-online {
    color: #34d399;
    font-size: 0.7rem;
    margin-right: 4px;
    animation: pulseOnline 2s infinite alternate;
}

@keyframes pulseOnline {
    0% { opacity: 0.6; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

.stat-divider {
    color: rgba(255, 255, 255, 0.2);
}

.footer-copyright {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   响应式手机/平板端适配 (Mobile & Tablet Responsive Adaptation)
   ========================================================================== */
@media (max-width: 1024px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden !important;
    }

    .top-navbar {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }
    
    .brand-logo-img {
        width: 32px;
        height: 32px;
    }
    
    .vip-status-btn {
        padding: 4px 10px;
        font-size: 0.72rem;
    }
    
    .app-header {
        padding: 20px 16px 14px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .main-logo-avatar {
        width: 48px;
        height: 48px;
    }
    
    .app-subtitle {
        font-size: 0.82rem;
        margin-bottom: 18px;
    }
    
    .search-container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .search-bar {
        width: 100%;
        box-sizing: border-box;
        padding: 6px 6px 6px 16px;
    }
    
    .search-input {
        font-size: 0.88rem;
    }
    
    .search-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
        flex-shrink: 0;
    }
    
    .mode-tab-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
    
    .my-playlists-bar {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 10px;
    }
    
    .user-playlist-select {
        max-width: 100%;
        width: 100%;
    }
    
    .main-container {
        grid-template-columns: 1fr;
        padding: 0 16px;
        margin: 16px auto;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .main-container > * {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .glass-card {
        padding: 18px 14px;
        border-radius: var(--radius-md);
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .song-list {
        max-height: 480px;
        padding-right: 2px;
    }
    
    .song-item {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .song-cover {
        width: 40px;
        height: 40px;
        margin-right: 8px;
        flex-shrink: 0;
    }
    
    .song-info {
        flex: 1;
        min-width: 0;
        margin-right: 4px;
    }
    
    .song-title {
        font-size: 0.88rem;
    }
    
    .song-meta {
        font-size: 0.75rem;
    }

    .song-actions {
        display: flex;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }
    
    .quality-select {
        padding: 4px 4px;
        font-size: 0.72rem;
        max-width: 75px;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .lyric-panel {
        height: 360px;
    }
    
    .lyric-line {
        font-size: 0.88rem;
    }
    
    .lyric-line.active {
        font-size: 1.05rem;
    }
    
    .player-bar {
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .player-left {
        min-width: 0;
        flex: 1;
    }
    
    .player-cover {
        width: 42px;
        height: 42px;
    }
    
    .player-meta-title {
        font-size: 0.85rem;
        max-width: 130px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .player-meta-singer {
        font-size: 0.72rem;
    }
    
    .player-center {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 4px;
    }
    
    .player-controls {
        gap: 14px;
    }
    
    .ctrl-play-main {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .progress-container {
        font-size: 0.7rem;
    }
    
    .modal-overlay {
        padding: 12px;
    }
    
    .modal-card {
        max-width: 100%;
        border-radius: var(--radius-md);
    }
    
    .modal-body {
        padding: 16px;
    }
}

/* ==========================================================================
   全新重构：超级移动端 / 手机端响应式适配规则 (Mobile Ultra Responsive)
   ========================================================================== */

/* 全局防溢出 */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

*, *::before, *::after {
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    /* 1. 顶栏导航手机自适应 */
    .top-navbar-container {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
    }
    
    .nav-brand {
        font-size: 0.95rem;
    }
    
    .brand-logo-img {
        width: 24px;
        height: 24px;
    }
    
    .sponsor-nav-btn, .vip-status-btn {
        padding: 5px 10px;
        font-size: 0.76rem;
        gap: 4px;
    }

    /* 2. 标头与搜索控制 */
    .app-header {
        padding: 16px 12px;
    }

    .main-logo-avatar {
        width: 48px;
        height: 48px;
    }

    .app-title {
        font-size: 1.6rem;
    }

    .app-subtitle {
        font-size: 0.8rem;
        padding: 0 10px;
    }

    .search-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 4px;
    }

    .search-controls-bar {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        align-items: stretch;
    }

    .mode-switch-tabs, .platform-switch-capsule {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .mode-tab-btn, .platform-tab-btn {
        flex: 1;
        text-align: center;
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .search-bar {
        width: 100% !important;
        display: flex;
        gap: 4px;
        padding: 4px 4px 4px 12px;
    }

    .search-input {
        flex: 1;
        min-width: 0;
        width: 100%;
        font-size: 0.85rem;
    }

    .search-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    /* 3. 主布局与歌曲列表手机化 */
    .main-container {
        grid-template-columns: 1fr;
        padding: 0 10px;
        margin: 12px auto;
        gap: 14px;
        padding-bottom: 110px !important; /* 留出底部悬浮播放器空间 */
    }

    .glass-card {
        padding: 14px 10px;
    }

    .song-item {
        padding: 8px 6px;
        gap: 6px;
        min-width: 0;
        width: 100%;
    }

    .song-cover {
        width: 38px;
        height: 38px;
        border-radius: var(--radius-sm);
    }

    .song-info {
        flex: 1;
        min-width: 0;
        margin-right: 2px;
    }

    .song-title {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .song-meta {
        font-size: 0.72rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .song-actions {
        display: flex;
        align-items: center;
        gap: 3px;
        flex-shrink: 0;
    }

    .quality-select {
        padding: 3px 2px;
        font-size: 0.7rem;
        max-width: 68px;
        border-radius: var(--radius-sm);
    }

    .action-btn {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    /* 4. 底部播放器极简二栏悬浮卡片 (Mobile Optimized Floating Player) */
    .player-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        padding: 8px 12px !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas: 
            "meta actions"
            "progress progress" !important;
        gap: 6px 8px !important;
        border-radius: 18px 18px 0 0 !important;
        background: rgba(8, 12, 22, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        border-top: 1px solid var(--phoebe-cobalt-light) !important;
        z-index: 999 !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7) !important;
    }

    .player-left {
        grid-area: meta;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .player-cover {
        width: 36px !important;
        height: 36px !important;
        margin-right: 8px;
    }

    .player-meta-title {
        font-size: 0.8rem !important;
        max-width: 135px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .player-meta-singer {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .player-center {
        grid-area: progress;
        width: 100% !important;
        margin-top: 0 !important;
    }

    .player-controls {
        gap: 8px !important;
    }

    .ctrl-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
    }

    .ctrl-play-main {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem !important;
    }

    .progress-container {
        width: 100% !important;
        font-size: 0.68rem !important;
        gap: 6px !important;
    }

    .player-bar > div:last-child {
        grid-area: actions;
        display: flex;
        align-items: center;
        gap: 6px !important;
    }

    .volume-box {
        display: none !important; /* 手机设备隐藏滑动条，依靠手机音量硬按键 */
    }

    /* 5. 手机端 弹窗 / Modal 适配 */
    .modal-overlay {
        padding: 10px !important;
    }

    .modal-card {
        width: calc(100vw - 20px) !important;
        max-width: 100% !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        border-radius: var(--radius-md) !important;
    }

    .modal-body {
        padding: 14px 10px !important;
    }

    .sponsor-qr-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .qr-img-wrapper {
        width: 180px !important;
        height: 180px !important;
    }
}

/* Spinning Loading Icon Animation */
.spin-icon, .fa-spin {
    animation: fa-spin-custom 0.9s linear infinite !important;
    display: inline-block !important;
}

@keyframes fa-spin-custom {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
