:root {
    --primary-accent: #FFFFFF;
    --brand-gold: #D4AF37;
    --dark-bg: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #FFFFFF;
    --text-dim: rgba(255, 255, 255, 0.4);
    --active-glow: rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Outfit', 'Noto Sans TC', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.glass-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #111 0%, #000 100%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border-radius: 4px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    flex-shrink: 0;
}

.logo h1 { font-size: 14px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; }
.header-tag { font-size: 10px; letter-spacing: 2px; color: var(--text-dim); }

main {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    flex: 1;
    min-height: 0;
}

.player-section { display: flex; flex-direction: column; height: 100%; }

.album-cover {
    width: 100%;
    aspect-ratio: 1/1;
    max-height: 320px;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.song-info { margin-bottom: 20px; }
.song-info h2 { font-size: 28px; font-weight: 600; margin-bottom: 8px; }

.producer-info {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.gold-text { color: var(--brand-gold); font-weight: 700; }
.sub-text { font-size: 10px; margin-left: 8px; opacity: 0.8; font-weight: 400; }

.engine-info {
    font-size: 8px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
}

.lyrics-section {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.lyrics-wrapper {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 35vh 0;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

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

.lyric-line {
    font-size: 19px;
    font-weight: 500;
    color: var(--text-dim);
    padding: 15px 0;
    transition: all 0.4s ease;
    line-height: 1.4;
}

.lyric-line.active {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 10px;
    color: var(--text-dim);
}

.progress-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.progress-fill { width: 0%; height: 100%; background: var(--brand-gold); border-radius: 3px; }

.play-btn {
    width: 60px; height: 60px;
    background: #fff; color: #000;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 22px; cursor: pointer;
    margin: 0 auto;
}

/* 【手機版優化】 */
@media (max-width: 768px) {
    body { padding: 0; }
    .container {
        height: 100vh; width: 100vw; max-width: none;
        border: none; border-radius: 0;
        padding: 20px 20px 40px 20px; /* 增加底部間距避免按鈕擠壓 */
    }
    
    header { border-bottom: none; margin-bottom: 5px; }
    header h1 { font-size: 12px; }
    .header-tag { display: none; }
    
    main { grid-template-columns: 1fr; gap: 5px; }
    
    .album-cover { max-height: 220px; margin-bottom: 10px; }
    
    .song-info { text-align: center; margin-bottom: 15px; }
    .song-info h2 { font-size: 20px; }
    
    .producer-info { font-size: 9px; line-height: 1.5; }
    .sub-text { display: block; margin-left: 0; margin-top: 1px; }
    
    .lyrics-wrapper { 
        padding: 20vh 0; /* 縮小手機版 padding 讓捲動空間更大 */
        mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    }
    
    .lyric-line { font-size: 15px; padding: 10px 0; text-align: center; }
    .lyric-line.active { font-size: 19px; }
}
