:root {
    --bg: #121614;
    --bg-2: #1a1f1c;
    --fg: #f4f7f5;
    --muted: #8b978f;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #6bd16b;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
}

.listen-body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 600px at 50% -10%, #24332a 0%, transparent 55%),
        var(--bg);
    color: var(--fg);
    font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", sans-serif;
    overflow: hidden;
}

.listen-top {
    position: relative;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
}

.listen-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--fg);
    pointer-events: none;
    white-space: nowrap;
}

.listen-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.listen-home {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--fg);
    text-decoration: none;
}

.listen-home:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.listen-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.listen-brand img {
    height: 28px;
    width: auto;
    background: #fff;
    border-radius: 4px;
}

.listen-manage {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
}

.listen-manage:hover {
    color: var(--fg);
}

.listen-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
}

.listen-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.listen-nav a:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.08);
}

.listen-switch {
    display: flex;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.listen-switch button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
}

.listen-switch button.is-on {
    background: #fff;
    color: #1c2b28;
    font-weight: 600;
}

.listen-main {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 8px 24px 0;
}

.listen-stage {
    width: min(520px, 78vw);
    height: min(520px, 52vh);
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.listen-cover,
.listen-lyrics {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.listen-cover.is-on,
.listen-lyrics.is-on {
    display: flex;
}

.cover-disc {
    width: min(100%, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    position: relative;
    background: #0b0d0c;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 0 0 10px rgba(255, 255, 255, 0.04);
}

.cover-art {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, #3d8a4a, #1c2b28);
}

.cover-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cover-hole {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14%;
    height: 14%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.16);
}

.cover-disc.is-playing {
    animation: spin-cover 14s linear infinite;
}

@keyframes spin-cover {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.listen-lyrics {
    overflow: hidden;
}

.lyrics-scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

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

.lyric-line {
    font-size: 18px;
    line-height: 1.5;
    color: rgba(244, 247, 245, 0.32);
    transition:
        color 0.2s ease,
        transform 0.2s ease,
        font-size 0.2s ease;
}

.lyric-line.is-current {
    color: var(--fg);
    font-size: 28px;
    font-weight: 600;
    transform: scale(1.02);
}

.lyric-empty {
    color: var(--muted);
    font-size: 16px;
}

.listen-meta {
    text-align: center;
    min-height: 86px;
}

.listen-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.listen-meta h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.listen-meta p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.listen-bar {
    flex-shrink: 0;
    padding: 8px 24px 22px;
}

.listen-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 720px;
    margin: 0 auto 12px;
    font-size: 12px;
    color: var(--muted);
}

.listen-progress input[type="range"] {
    flex: 1;
    accent-color: var(--accent);
}

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

.listen-volume {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 12px;
    color: var(--muted);
}

.listen-volume-label {
    white-space: nowrap;
}

.listen-volume input[type="range"] {
    width: 160px;
    height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
}

.listen-volume-value {
    min-width: 28px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--fg);
}

.listen-btn,
.listen-play {
    font-family: inherit;
    cursor: pointer;
}

.listen-btn {
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--fg);
    border-radius: 20px;
    font-size: 13px;
}

.listen-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

.listen-play {
    height: 48px;
    min-width: 108px;
    padding: 0 22px;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: #121614;
    font-size: 16px;
    font-weight: 700;
}

.listen-play:hover {
    background: #e8eee9;
}

.listen-play.is-large {
    height: 56px;
    min-width: 160px;
    font-size: 18px;
}

.listen-gate {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(18, 22, 20, 0.72);
    z-index: 5;
}

.listen-gate span {
    color: var(--muted);
    font-size: 13px;
}

.listen-gate.is-hidden {
    display: none;
}

.listen-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(220, 53, 69, 0.92);
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    z-index: 10;
    animation: toast-in 0.3s ease;
}

.listen-toast.is-hidden {
    display: none;
}

.toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.toast-close {
    background: none;
    border: 0;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0 0 0 6px;
    opacity: 0.7;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 720px) {
    .listen-brand span,
    .listen-manage,
    .listen-title {
        display: none;
    }

    .listen-top {
        padding: 0 12px;
    }

    .listen-right {
        gap: 8px;
    }

    .listen-nav {
        margin-right: 0;
    }

    .listen-nav a {
        font-size: 12px;
        padding: 6px 8px;
    }

    .listen-meta h1 {
        font-size: 22px;
    }

    .lyric-line.is-current {
        font-size: 22px;
    }
}
