/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 40%, #f9f5f0 0%, #f0ebe6 100%);
    padding: 24px;
    -webkit-font-smoothing: antialiased;
}

.app {
    width: 100%;
    max-width: 500px;
}

/* ===== 卡片 ===== */
.card {
    background: #ffffff;
    border-radius: 32px;
    padding: 36px 30px 30px;
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.08), 0 8px 24px -6px rgba(0, 0, 0, 0.02);
    transition: box-shadow 0.2s;
}

/* ===== 封面抽象 ===== */
.cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 24px;
    background: linear-gradient(135deg, #f7d6c0 0%, #f5b8a0 100%);
    overflow: hidden;
    margin-bottom: 28px;
}

.cover-glow {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 215, 180, 0.6) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9) translate(0, 0); opacity: 0.5; }
    100% { transform: scale(1.3) translate(10%, 10%); opacity: 1; }
}

.cover-ring {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
}

.cover-dot {
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, 0.1));
    filter: blur(12px);
    opacity: 0.5;
}

/* ===== 歌曲信息 ===== */
.song-info {
    text-align: center;
    margin-bottom: 28px;
}

.song-title {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.song-artist {
    font-size: 0.9rem;
    font-weight: 400;
    color: #86868b;
    letter-spacing: 0.02em;
}

.song-remix {
    font-size: 0.75rem;
    font-weight: 400;
    color: #a1a1a6;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* ===== 播放器 ===== */
.player {
    margin-bottom: 28px;
}

.time-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.time {
    font-size: 0.75rem;
    font-weight: 500;
    color: #86868b;
    min-width: 36px;
    letter-spacing: 0.02em;
}

.progress-bar {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border-radius: 2px;
    background: #e5e5ea;
    outline: none;
    transition: background 0.2s;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1d1d1f;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 2px solid #ffffff;
}

.progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1d1d1f;
    cursor: pointer;
    border: 2px solid #ffffff;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ctrl-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #1d1d1f;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 30px;
    transition: background 0.15s, transform 0.1s;
    font-weight: 300;
    line-height: 1;
}

.ctrl-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

.ctrl-btn:active {
    transform: scale(0.92);
}

.play-btn {
    font-size: 2.4rem;
    padding: 0 8px;
}

.volume-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vol-icon {
    font-size: 0.9rem;
    color: #86868b;
    transform: rotate(0deg);
}

.volume-bar {
    -webkit-appearance: none;
    appearance: none;
    width: 64px;
    height: 3px;
    border-radius: 2px;
    background: #e5e5ea;
    outline: none;
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1d1d1f;
    cursor: pointer;
    border: 2px solid #ffffff;
}

.volume-bar::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1d1d1f;
    cursor: pointer;
    border: 2px solid #ffffff;
}

.loop-btn {
    font-size: 1.3rem;
    color: #86868b;
    transition: color 0.2s;
}

.loop-btn.active {
    color: #1d1d1f;
    font-weight: 600;
}

/* ===== 歌词 ===== */
.lyrics {
    border-top: 1px solid #f0f0f2;
    padding-top: 20px;
    max-height: 220px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.lyrics::-webkit-scrollbar {
    width: 3px;
}
.lyrics::-webkit-scrollbar-track {
    background: transparent;
}
.lyrics::-webkit-scrollbar-thumb {
    background: #d1d1d6;
    border-radius: 2px;
}

.lyric-line {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #3a3a3c;
    text-align: center;
    letter-spacing: 0.01em;
    padding: 2px 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lyric-line.highlight {
    opacity: 1;
    font-weight: 500;
    color: #1d1d1f;
}

/* ===== 响应式 ===== */
@media (max-width: 420px) {
    .card { padding: 24px 18px 22px; }
    .song-title { font-size: 1.5rem; }
    .play-btn { font-size: 2rem; }
    .volume-bar { width: 48px; }
}
