:root {
    --bg: #080b14;
    --card: rgba(15, 22, 40, 0.85);
    --text: #ffffff;
    --muted: #aab4d4;
    --accent: #22c55e;
    --border: rgba(255,255,255,0.12);
}

body.light {
    --bg: #f4f7fb;
    --card: rgba(255,255,255,0.9);
    --text: #111827;
    --muted: #4b5563;
    --accent: #2563eb;
    --border: rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

.container {
    width: min(1150px, 92%);
    margin: auto;
}

.radio-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(5, 8, 18, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

body.light .radio-header {
    background: rgba(255,255,255,0.85);
}

.nav {
    height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.radio-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.radio-logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.theme-btn {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.radio-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 140px);
    padding: 70px 20px;
    display: grid;
    gap: 28px;
    place-items: center;
}

.bg-glow {
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(34,197,94,0.35), transparent 65%);
    top: -180px;
    right: -180px;
    filter: blur(10px);
}

.player-card,
.history-card {
    position: relative;
    z-index: 2;
    width: min(720px, 100%);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
    backdrop-filter: blur(18px);
    text-align: center;
}

.station-logo img {
    width: 145px;
    height: 145px;
    object-fit: contain;
    border-radius: 50%;
    padding: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
}

h1 {
    font-size: clamp(32px, 6vw, 58px);
    margin: 20px 0 8px;
}

.subtitle {
    color: var(--muted);
    margin-bottom: 28px;
}

.now-playing {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 25px;
}

.now-playing span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 6px;
}

.now-playing strong {
    font-size: 18px;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.play-btn {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 0 35px rgba(34,197,94,0.45);
}

.volume-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-wrap input {
    width: 180px;
}

.status {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 8px;
    color: var(--muted);
}

#statusDot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #777;
    margin-top: 4px;
}

#statusDot.live {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.history-card {
    text-align: left;
}

.history-card h2 {
    text-align: center;
    margin-top: 0;
}

#songHistory {
    list-style: none;
    padding: 0;
    margin: 0;
}

#songHistory li {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
}

#songHistory li strong {
    color: var(--text);
}

.radio-footer {
    text-align: center;
    padding: 25px;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .nav {
        height: 68px;
    }

    .radio-logo span {
        font-size: 15px;
    }

    .radio-logo img {
        width: 44px;
        height: 44px;
    }

    .player-card,
    .history-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .station-logo img {
        width: 115px;
        height: 115px;
    }

    .play-btn {
        width: 72px;
        height: 72px;
    }

    .volume-wrap input {
        width: 150px;
    }
}