:root {
    --navy: #050918;
    --ink: #fbfdff;
    --muted: #c5c9dc;
    --cyan: #12f5ff;
    --pink: #ff247f;
    --violet: #8d58ff;
    --sun: #ffb84d;
    --glass: rgba(8, 13, 36, 0.66);
    --glass-soft: rgba(12, 18, 48, 0.48);
    --stroke: rgba(255, 255, 255, 0.24);
    --shadow: 0 26px 74px rgba(0, 0, 0, 0.48);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--navy);
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 20;
    transform: translateY(-140%);
    background: var(--cyan);
    color: #04101f;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    font-weight: 900;
}

.skip-link:focus {
    transform: translateY(0);
}

.page-bg,
.page-bg::after {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.page-bg {
    z-index: -2;
    background-image: var(--page-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.page-bg::after {
    content: "";
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 7, 22, 0.36), rgba(3, 7, 22, 0.12) 46%, rgba(3, 7, 22, 0.34)),
        linear-gradient(180deg, rgba(3, 7, 22, 0.06), rgba(3, 7, 22, 0.72));
}

.site-shell {
    width: min(1450px, calc(100% - 44px));
    margin: 0 auto;
    padding: clamp(18px, 3vw, 46px) 0 28px;
}

.glass {
    border: 1px solid var(--stroke);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
        var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(420px, 0.86fr) minmax(780px, 1.34fr);
    gap: clamp(22px, 3vw, 44px);
    align-items: center;
    min-height: clamp(315px, 42vh, 390px);
}

.brand-block {
    display: grid;
    justify-items: center;
    padding: 0;
    text-align: center;
}

.station-logo {
    display: block;
    width: min(430px, 100%);
    height: auto;
    margin: 0 auto 12px;
    filter: drop-shadow(0 22px 32px rgba(0, 0, 0, 0.58));
    mix-blend-mode: screen;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin: 0 0 6px;
    font-size: clamp(2.25rem, 3.55vw, 3.35rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.62);
}

h1 span {
    color: var(--pink);
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-weight: 700;
}

.hero-copy {
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.54);
}

.hero-tagline-rotator {
    position: relative;
    min-height: 3.2em;
    max-width: 640px;
    width: 100%;
}

.hero-tagline {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 420ms ease, transform 420ms ease;
    pointer-events: none;
}

.hero-tagline.is-active {
    opacity: 1;
    transform: translateY(0);
}

.player-card {
    padding: clamp(16px, 1.65vw, 22px);
}

.player-main {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr) minmax(180px, 220px);
    gap: 18px;
    align-items: start;
}

.player-stage {
    display: contents;
}

.player-left {
    display: grid;
    align-content: start;
    gap: 10px;
}

.album-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(18, 245, 255, 0.28), rgba(255, 36, 127, 0.22)),
        linear-gradient(180deg, rgba(3, 7, 22, 0.12), rgba(3, 7, 22, 0.52)),
        var(--page-bg);
    background-position: center;
    background-size: cover;
}

.album-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: inherit;
    pointer-events: none;
}

.artwork {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 28px;
    mix-blend-mode: screen;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.48));
}

.artwork.has-track-artwork {
    padding: 0;
    object-fit: cover;
    mix-blend-mode: normal;
    filter: none;
}

.orb-engine {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%);
    white-space: nowrap;
}

.player-center {
    display: grid;
    align-content: start;
    min-width: 0;
}

.player-head,
.weather-top,
.section-head,
.player-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.player-head {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.player-head p {
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff347e, #ff5d9c);
    color: white;
    padding: 0 10px;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.live-dot {
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.4rem;
    border-radius: 999px;
    background: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}

.listener-badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(18, 245, 255, 0.34);
    border-radius: 999px;
    background: rgba(18, 245, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    padding: 0 10px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.listener-badge strong {
    color: var(--cyan);
    font-size: 0.78rem;
}

.song {
    margin: 18px 0 2px;
    font-size: clamp(1.7rem, 2vw, 2.35rem);
    font-weight: 850;
    line-height: 1.05;
}

.artist {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.playlist-panel li,
.weather-card p {
    color: var(--muted);
}

.player-controls {
    display: grid;
    grid-template-columns: auto auto minmax(110px, 1fr);
    align-items: center;
    gap: 8px;
    margin: 18px 0 10px;
    width: min(300px, 100%);
    max-width: 100%;
    padding: 0;
}

.play-button,
.icon-button,
.listen-card {
    border: 0;
    cursor: pointer;
}

.play-button {
    min-width: 68px;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 0 14px;
    font-size: 0.76rem;
    font-weight: 800;
    box-shadow: none;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.play-button:hover,
.play-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
}

.icon-button {
    min-width: 58px;
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--ink);
    font-weight: 800;
}

.mute-button {
    min-width: 68px;
    min-height: 38px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.09);
    padding: 0 14px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.play-button,
.mute-button {
    min-width: 68px;
    min-height: 38px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.mute-button:hover,
.mute-button:focus-visible {
    background: rgba(255, 255, 255, 0.17);
}

.mute-button.is-muted {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
}

.volume {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    gap: 4px;
    color: var(--muted);
    padding: 0;
}

.volume input {
    width: 100%;
    accent-color: #cbd5e1;
}

.volume-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.waveform {
    display: flex;
    width: 100%;
    height: 20px;
    align-items: center;
    gap: 2px;
    overflow: hidden;
    margin-top: 2px;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 320ms ease, transform 320ms ease;
}

.waveform span {
    flex: 1 1 3px;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan), var(--pink));
    opacity: 0.42;
    transform: scaleY(0.16);
    animation: waveform-pulse 760ms ease-in-out infinite alternate;
    animation-play-state: paused;
}

.waveform.is-active {
    opacity: 1;
    transform: translateY(0);
}

.waveform.is-active span {
    opacity: 0.95;
    animation-play-state: running;
}

.waveform span:nth-child(3n) { animation-duration: 540ms; }
.waveform span:nth-child(4n) { animation-duration: 920ms; }
.waveform span:nth-child(5n) { animation-duration: 680ms; }
.waveform span:nth-child(7n) { animation-duration: 1100ms; }

@keyframes waveform-pulse {
    0% { transform: scaleY(0.14); }
    45% { transform: scaleY(0.88); }
    100% { transform: scaleY(0.34); }
}

.playlist-panel {
    grid-column: 1 / -1;
    min-width: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 14px;
}

.playlist-tabs {
    display: flex;
    align-items: end;
    gap: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    margin-bottom: 8px;
}

.playlist-tabs h2,
.playlist-tabs p {
    margin: 0;
    padding-bottom: 8px;
    font-size: 0.84rem;
    font-weight: 850;
    text-transform: uppercase;
}

.playlist-tabs h2 {
    border-bottom: 3px solid var(--pink);
}

.playlist-tabs p {
    color: var(--muted);
}

.playlist-panel ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 14px;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.playlist-panel li {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    align-items: start;
    min-height: 38px;
    gap: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 0;
    font-size: 0.84rem;
}

.playlist-panel li time {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    white-space: nowrap;
}

.playlist-panel li img {
    width: 34px;
    height: 34px;
    border-radius: 5px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.playlist-panel li span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-link {
    display: inline-flex;
    margin-top: 10px;
    color: white;
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
    text-transform: uppercase;
}

.playlist-panel .playlist-link,
.playlist-panel .playlist-source {
    margin-right: 14px;
}

.playlist-source {
    display: block;
    width: fit-content;
    margin-top: 5px;
    color: var(--cyan);
    font-size: 0.68rem;
    font-weight: 750;
    text-decoration: none;
}

.playlist-modal {
    width: min(680px, calc(100% - 28px));
    max-height: min(82vh, 760px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: #171733;
    color: var(--ink);
    padding: 0;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

.playlist-modal::backdrop {
    background: rgba(3, 5, 18, 0.72);
    backdrop-filter: blur(5px);
}

.playlist-modal-shell {
    display: grid;
    max-height: min(82vh, 760px);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.playlist-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 22px 16px;
}

.playlist-modal-head p,
.playlist-modal-head h2,
.playlist-modal-current p {
    margin: 0;
}

.playlist-modal-head p,
.playlist-modal-current > span {
    color: var(--pink);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.playlist-modal-head h2 {
    margin-top: 2px;
    font-size: 1.45rem;
}

.playlist-modal-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: white;
    padding: 0;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.playlist-modal-current {
    display: grid;
    gap: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(100deg, rgba(255, 36, 127, 0.13), rgba(18, 245, 255, 0.04));
    padding: 16px 22px;
}

.playlist-modal-current strong {
    font-size: 1.12rem;
}

.playlist-modal-current p {
    color: var(--muted);
    font-size: 0.86rem;
}

.playlist-modal-list {
    overflow-y: auto;
    margin: 0;
    padding: 4px 22px;
    list-style: none;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.playlist-modal-list li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 0;
}

.playlist-modal-list time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.playlist-modal-list li div,
.playlist-modal-list li strong,
.playlist-modal-list li span {
    display: block;
    min-width: 0;
}

.playlist-modal-list li strong {
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-modal-list li span {
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.playlist-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 13px 22px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
}

.playlist-modal-foot a {
    color: var(--cyan);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 520px) {
    .playlist-modal-head,
    .playlist-modal-current,
    .playlist-modal-foot {
        padding-right: 16px;
        padding-left: 16px;
    }

    .playlist-modal-list {
        padding-right: 16px;
        padding-left: 16px;
    }

    .playlist-modal-list li {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 10px;
    }

    .playlist-modal-foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

.listen-section {
    margin-top: 0;
    padding: 10px 0;
}

.listen-grid {
    display: grid;
    grid-template-columns: repeat(var(--listen-count, 5), minmax(0, 1fr));
    gap: 12px;
    justify-content: start;
}

.listen-card {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 76px;
    padding: 13px 34px 13px 70px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
        var(--glass-soft);
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.listen-card::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    width: 36px;
    height: 36px;
    border: 4px solid var(--pink);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0.92;
}

.listen-card::after {
    content: ">";
    position: absolute;
    right: 18px;
    top: 50%;
    color: white;
    transform: translateY(-50%);
    font-size: 1.6rem;
    line-height: 1;
}

.listen-card span,
.listen-card strong {
    display: block;
}

.listen-card span {
    color: white;
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.listen-card strong {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 600;
}

.listen-card:hover,
.listen-card:focus-visible,
.icon-button:hover,
.icon-button:focus-visible,
.play-button:hover,
.play-button:focus-visible,
.playlist-link:focus-visible,
.weather-card a:focus-visible {
    border-color: rgba(18, 245, 255, 0.72);
    outline: 3px solid rgba(18, 245, 255, 0.26);
    outline-offset: 2px;
    transform: translateY(-2px);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 0;
    align-items: stretch;
}

.player-weather {
    display: grid;
    grid-auto-rows: 56px;
    align-self: start;
    align-content: start;
    min-width: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.13);
    padding-left: 16px;
}

.weather-card {
    --weather-image: none;
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-width: 0;
    overflow: hidden;
    padding: 7px 6px;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.7);
    transition: background-color 150ms ease;
}

.weather-card::before,
.weather-card::after {
    content: "";
    position: absolute;
    inset: 2px 0;
    border-radius: inherit;
    pointer-events: none;
}

.weather-card::before {
    z-index: 0;
    background-image: var(--weather-image);
    background-position: center right;
    background-size: cover;
    opacity: 1;
}

.weather-card::after {
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(7, 9, 30, 0.88) 0%, rgba(10, 17, 45, 0.67) 44%, rgba(10, 17, 45, 0.2) 78%, rgba(10, 17, 45, 0.06) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(5, 7, 24, 0.08));
}

.weather-card > :not(.weather-link) {
    position: relative;
    z-index: 1;
}

.weather-card[data-weather="clear"] {
    --weather-image: url("../images/weather/clear.webp");
}

.weather-card[data-weather="partly-cloudy"] {
    --weather-image: url("../images/weather/partly-cloudy.webp");
}

.weather-card[data-weather="cloudy"] {
    --weather-image: url("../images/weather/cloudy.webp");
}

.weather-card[data-weather="fog"] {
    --weather-image: url("../images/weather/fog.webp");
}

.weather-card[data-weather="rain"] {
    --weather-image: url("../images/weather/rain.webp");
}

.weather-card[data-weather="storm"] {
    --weather-image: url("../images/weather/storm.webp");
}

.weather-card[data-weather="snow"] {
    --weather-image: url("../images/weather/snow.webp");
}

.weather-card + .weather-card {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.weather-link {
    position: absolute;
    z-index: 2;
    inset: 3px -6px;
    border-radius: 6px;
}

.weather-card:has(.weather-link[href]):hover,
.weather-card.is-actionable:hover {
    background-color: rgba(255, 255, 255, 0.055);
}

.weather-card:has(.weather-link[href]):hover::before,
.weather-card.is-actionable:hover::before {
    filter: brightness(1.08) saturate(1.06);
}

.weather-link:focus-visible {
    outline: 2px solid rgba(18, 245, 255, 0.65);
    outline-offset: 1px;
}

.weather-copy {
    min-width: 0;
}

.weather-copy h3 {
    overflow: hidden;
    margin: 0 0 2px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.weather-copy p {
    overflow: hidden;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(18, 245, 255, 0.18);
    background: rgba(18, 245, 255, 0.07);
    color: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 12px rgba(18, 245, 255, 0.04);
}

.weather-icon svg {
    display: block;
    width: 19px;
    height: 19px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.weather-icon svg .accent {
    stroke: var(--pink);
}

.temperature {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
}

.sponsor-section {
    position: relative;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.section-head {
    justify-content: flex-end;
    margin-bottom: 6px;
}

.section-head h2 {
    margin: 0;
}

.sponsor-controls {
    display: flex;
    gap: 8px;
}

.sponsor-controls .icon-button {
    min-width: 56px;
    min-height: 30px;
    font-size: 0.72rem;
}

.sponsor-viewport {
    overflow: hidden;
}

.sponsor-track {
    --visible: 3;
    display: flex;
    transition: transform 420ms ease;
}

.sponsor-track.is-jumping {
    transition: none;
}

.sponsor-slide {
    flex: 0 0 calc(100% / var(--visible));
    padding: 0 6px;
}

.sponsor-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: #080d23;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
}

.site-footer {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
    text-align: center;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.62);
}

.site-footer p {
    margin: 0;
}

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 10px;
}

.footer-socials a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(8, 12, 34, 0.32);
    color: rgba(255, 255, 255, 0.82);
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    border-color: rgba(18, 245, 255, 0.72);
    background: rgba(18, 245, 255, 0.13);
    color: #fff;
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 1180px) {
    .hero,
    .info-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .player-main {
        grid-template-columns: 200px minmax(0, 1fr) minmax(190px, 220px);
    }

    .playlist-panel {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding: 20px 0 0;
    }

    .listen-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sponsor-track {
        --visible: 2;
    }
}

@media (min-width: 1000px) and (max-height: 820px) {
    .site-shell {
        width: min(1450px, calc(100% - 32px));
        padding-top: 14px;
        padding-bottom: 16px;
    }

    .hero {
        min-height: 292px;
        gap: 28px;
    }

    .station-logo {
        width: min(360px, 100%);
        margin-bottom: 8px;
    }

    h1 {
        font-size: clamp(2rem, 3.1vw, 2.75rem);
        line-height: 1;
    }

    .hero-copy {
        font-size: 0.98rem;
    }

    .player-card {
        padding: 14px 18px;
    }

    .player-main {
        grid-template-columns: 145px minmax(0, 1fr) minmax(170px, 190px);
        gap: 14px;
    }

    .artwork {
        padding: 22px;
    }

    .song {
        margin-top: 12px;
        font-size: clamp(1.45rem, 1.8vw, 2rem);
    }

    .artist {
        margin-bottom: 4px;
        font-size: 0.98rem;
    }

    .player-controls {
        margin: 16px 0 8px;
    }

    .play-button {
        font-size: 0.78rem;
    }

    .icon-button {
        min-height: 32px;
        font-size: 0.78rem;
    }

    .volume input {
        width: 94px;
    }

    .playlist-panel {
        padding-left: 0;
    }

    .playlist-tabs {
        gap: 24px;
        margin-bottom: 6px;
    }

    .playlist-tabs h2,
    .playlist-tabs p {
        padding-bottom: 6px;
        font-size: 0.76rem;
    }

    .playlist-panel li {
        grid-template-columns: 1fr;
        min-height: 34px;
        padding: 4px 0;
        font-size: 0.76rem;
    }

    .playlist-panel li img {
        width: 28px;
        height: 28px;
    }

    .playlist-link {
        margin-top: 7px;
        font-size: 0.74rem;
    }

    .listen-section {
        margin-top: 0;
        padding: 8px 0;
    }

    .listen-grid {
        gap: 10px;
    }

    .listen-card {
        min-height: 64px;
        padding: 10px 28px 10px 58px;
    }

    .listen-card::before {
        left: 14px;
        width: 30px;
        height: 30px;
        border-width: 3px;
    }

    .listen-card::after {
        right: 12px;
        font-size: 1.25rem;
    }

    .listen-card span {
        font-size: 0.75rem;
    }

    .listen-card strong {
        font-size: 0.66rem;
    }

    .info-grid {
        gap: 12px;
        margin-top: 0;
    }

    .weather-card {
        grid-template-columns: 24px minmax(0, 1fr) auto;
        gap: 7px;
        padding: 7px 6px;
    }

    .weather-icon {
        width: 24px;
        height: 24px;
    }

    .weather-icon svg {
        width: 16px;
        height: 16px;
    }

    .weather-copy h3,
    .weather-copy p {
        font-size: 0.62rem;
    }

    .temperature {
        font-size: 0.8rem;
    }

    .section-head {
        margin-bottom: 4px;
    }

    .sponsor-controls .icon-button {
        min-height: 28px;
        min-width: 48px;
        padding: 0.3rem 0.5rem;
    }

    .site-footer {
        margin-top: 8px;
        font-size: 0.68rem;
    }
}

/* Sponsor navigation overlays the slider without taking up layout space. */
.sponsor-section .section-head {
    position: absolute;
    z-index: 5;
    inset: 0;
    margin: 0;
    pointer-events: none;
}

.sponsor-section .sponsor-controls {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.sponsor-section .sponsor-arrow {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    margin: 0 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(7, 10, 28, 0.28);
    color: rgba(255, 255, 255, 0.9);
    padding: 0;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

.sponsor-section .sponsor-arrow:hover,
.sponsor-section .sponsor-arrow:focus-visible {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(7, 10, 28, 0.58);
    color: #fff;
    transform: none;
}

.sponsor-arrow svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 760px) {
    .sponsor-section .sponsor-arrow {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
        margin: 0 5px;
    }
}

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 22px, 1360px);
        padding-top: 20px;
    }

    .station-logo {
        width: min(330px, 100%);
    }

    h1 {
        font-size: clamp(2.05rem, 10vw, 3.1rem);
    }

    .player-card {
        padding: 16px;
    }

    .player-main {
        grid-template-columns: 1fr;
    }

    .player-weather {
        grid-template-columns: 1fr;
        grid-auto-rows: 54px;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.13);
        border-left: 0;
        padding-top: 6px;
        padding-left: 0;
    }

    .weather-card + .weather-card {
        border-top: 1px solid rgba(255, 255, 255, 0.09);
    }

    .playlist-panel ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-left {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .artwork {
        padding: 16px;
    }

    .song {
        margin-top: 18px;
        font-size: 1.8rem;
    }

    .listen-grid {
        grid-template-columns: 1fr;
    }

    .listen-card {
        min-height: 86px;
    }

    .sponsor-track {
        --visible: 1;
    }
}

@media (max-width: 430px) {
    .player-weather {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .weather-card {
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 7px 8px;
    }

    .weather-card + .weather-card {
        border-top: 1px solid rgba(255, 255, 255, 0.09);
    }

    .weather-icon {
        width: 32px;
        height: 32px;
        border-color: rgba(18, 245, 255, 0.38);
        background: rgba(18, 245, 255, 0.13);
        color: #fff;
        box-shadow: inset 0 0 14px rgba(18, 245, 255, 0.08), 0 0 10px rgba(18, 245, 255, 0.08);
    }

    .weather-icon svg {
        width: 21px;
        height: 21px;
        stroke-width: 2;
    }

    .weather-copy h3 {
        font-size: 0.68rem;
    }

    .weather-copy p {
        font-size: 0.7rem;
    }

    .temperature {
        font-size: 0.9rem;
    }

    .player-stage {
        position: relative;
        display: block;
        min-width: 0;
    }

    .player-stage::after {
        content: "";
        position: absolute;
        z-index: 1;
        right: 0;
        bottom: 30px;
        left: 0;
        height: 72%;
        border-radius: 0 0 8px 8px;
        background: linear-gradient(180deg, transparent 0%, rgba(6, 7, 24, 0.38) 28%, rgba(6, 7, 24, 0.94) 100%);
        pointer-events: none;
    }

    .player-left {
        position: relative;
        grid-template-columns: 1fr;
    }

    .album-wrap {
        width: 100%;
        max-width: none;
    }

    .player-center {
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0;
        bottom: 30px;
        left: 0;
        display: block;
        padding: 0;
    }

    .player-center .player-head {
        position: absolute;
        top: 14px;
        right: 14px;
        left: 14px;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .player-center .listener-badge {
        border-color: rgba(255, 255, 255, 0.9);
        background: #fff;
        color: var(--pink);
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    }

    .player-center .listener-badge strong {
        color: var(--pink);
    }

    .player-center .track-copy {
        position: absolute;
        top: auto;
        right: 16px;
        bottom: 66px;
        left: 16px;
        transform: none;
    }

    .player-center .song {
        margin-top: 0;
        font-size: clamp(1.45rem, 7.5vw, 1.8rem);
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
    }

    .player-center .artist {
        margin-bottom: 0;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }

    .player-center .player-controls {
        position: absolute;
        right: 16px;
        bottom: 14px;
        left: 16px;
        margin: 0;
        width: auto;
    }

    .player-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .playlist-panel ol {
        grid-template-columns: 1fr;
    }

    .play-button,
    .mute-button {
        min-height: 44px;
    }
}

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