/* Studio edition: the live desk is part of the opening screen, not a sticky sidebar. */
:root {
    --desk-edge: clamp(12px, 1.6vw, 26px);
    --desk-bottom: max(14px, env(safe-area-inset-bottom));
    --desk-mini: 74px;
    --studio-shell: min(1312px, calc(100% - clamp(36px, 7vw, 120px)));
    --studio-border: #b88c51a6;
    --studio-bezel: inset 0 1px #ffdb9e38, 0 14px 40px #0308145c;
    --studio-metal: linear-gradient(109deg, #846038, #edc785 27%, #ffeab7 43%, #bc8c4b 70%, #8f6337);
}
.radio-player :is(button,a,input):focus-visible { outline: 2px solid #ffe3a1; outline-offset: 3px; }
.radio-player .now-playing :is(strong,[data-current-title]) {
    display: block; width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.radio-player .now-playing .player-onair { font: 13px/1.25 var(--sans); }
.radio-player .recent-song strong { font-size: 13px; }
.radio-player .recent-song :is(time,span), .radio-player .vote-reveal :is(p,.vote-reveal__scores) { font-size: 12px; }
.radio-player .listener-row, .radio-player .playback-status { font-size: 12px; }
.radio-player .recent-song__cover, .history-track__cover { background: #182943 url('../icons/station-artwork.svg') center/cover; }
.radio-player .mobile-player-expand { display: none; }
.radio-player .mobile-player-expand::before, .radio-player .mobile-player-expand::after { content: none; }
.radio-player .mobile-player-expand svg { width: 21px; height: 21px; }
.radio-player .mobile-player-expand[aria-expanded='true'] svg { transform: rotate(180deg); }
.radio-player .mobile-player-expand:focus-visible { outline-offset: 2px; }
.radio-player .recent-mini__list { scrollbar-width: thin; }
.radio-player .recent-mini__list:has(.recent-mini__placeholder) { min-height: 40px; }
.is-audio-buffering .radio-player .play-button { border-style: dashed; }

@media (min-width: 861px) {
    body[data-page='home']:not(.is-player-docked) .radio-player { position: absolute; }
    body[data-page='home']:not(.is-player-docked) .radio-player .player-cover-wrap { width: clamp(74px,7.7vw,112px); height: auto; }
    body[data-page='home']:not(.is-player-docked) .radio-player .recent-mini__list { max-height: 180px; }
    body[data-page='home']:not(.is-player-docked) .radio-player .recent-song { min-height: 44px; padding-block: 5px; }
    body[data-page='home']:not(.is-player-docked) .radio-player .now-playing strong { margin-top: 7px; }
}

/* The same audio node, artwork and controls are used in all three layouts. */
body:is(:not([data-page='home']), .is-player-docked) .radio-player {
    position: fixed; z-index: 70; inset: auto var(--desk-edge) var(--desk-bottom) auto;
    display: grid; grid-template-columns: 48px minmax(0,1fr) 44px 40px; grid-template-rows: auto;
    align-items: center; gap: 9px; width: min(360px, calc(100% - 2 * var(--desk-edge)));
    height: var(--desk-mini); min-height: 0; max-height: min(78dvh, 590px);
    padding: 9px 11px; overflow: hidden; border: 1px solid var(--studio-border); border-radius: 14px;
    background: radial-gradient(ellipse at 12% 0, #4a546a6e, transparent 68%), linear-gradient(135deg,#21334d,#0a1528 80%);
    box-shadow: var(--studio-bezel);
}
body:is(:not([data-page='home']), .is-player-docked) .radio-player .player-top { display: contents; }
body:is(:not([data-page='home']), .is-player-docked) .radio-player .player-cover-wrap { grid-column: 1; grid-row: 1; width: 48px; height: 48px; margin: 0; }
body:is(:not([data-page='home']), .is-player-docked) .radio-player .now-playing { grid-column: 2; grid-row: 1; min-width: 0; }
body:is(:not([data-page='home']), .is-player-docked) .radio-player .now-playing strong { margin: 0 0 2px; color: #ffedcd; font: 600 15px/1.3 var(--sans); }
body:is(:not([data-page='home']), .is-player-docked) .radio-player .now-playing [data-current-title] { font: 13px/1.3 var(--sans); }
body:is(:not([data-page='home']), .is-player-docked) .radio-player :is(.brand-lockup,.player-onair,.live-pill,.reaction-button,.volume-row,.vote-reveal,.playback-status,.listener-row,.service-icons,.recent-mini) { display: none; }
body:is(:not([data-page='home']), .is-player-docked) .radio-player .player-controls { display: contents; }
body:is(:not([data-page='home']), .is-player-docked) .radio-player .play-button { grid-column: 3; grid-row: 1; width: 44px; height: 44px; }
body:is(:not([data-page='home']), .is-player-docked) .radio-player .play-button__halo { display: none; }
body:is(:not([data-page='home']), .is-player-docked) .radio-player .mobile-player-expand {
    position: static; grid-column: 4; grid-row: 1; display: grid; place-items: center; margin: 0;
    width: 40px; height: 44px; padding: 0; color: #f2d497; border: 1px solid #e7bd754a; border-radius: 9px; background: #ffffff08;
}
body:is(:not([data-page='home']), .is-player-docked).is-player-expanded .radio-player {
    width: min(422px, calc(100% - 2 * var(--desk-edge))); height: auto;
    align-content: start; row-gap: 12px; padding: 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
body.is-player-expanded .radio-player :is(.volume-row,.listener-row,.service-icons) { display: flex; grid-column: 1/-1; grid-row: auto; margin: 0; padding-block: 0; }
body.is-player-expanded .radio-player .listener-row { justify-content: start; padding-top: 11px; }
body.is-player-expanded .radio-player .service-icons { justify-content: start; flex-wrap: wrap; }
body.is-player-expanded .radio-player .service-icon { width: 38px; height: 38px; }
body.is-player-expanded .radio-player :is(.playback-status,.vote-reveal,.recent-mini) { display: block; grid-column: 1/-1; grid-row: auto; margin: 0; }
body.is-player-expanded .radio-player :is(.playback-status,.vote-reveal p) { text-align: left; }
body.is-player-expanded .radio-player .vote-reveal { min-height: 0; }
body.is-player-expanded .radio-player .reaction-button { display: grid; width: 42px; height: 42px; }
body.is-player-expanded .radio-player .recent-mini__list { max-height: none; overflow: visible; }
/* Keep one visible play button and tab order stable, even when the details are open. */
body.is-player-expanded .radio-player .reaction-button--dislike { grid-column: 1; grid-row: 2; }
body.is-player-expanded .radio-player .reaction-button--like { grid-column: 2; grid-row: 2; justify-self: start; }
body.is-player-expanded .radio-player .volume-row { grid-column: 2/-1; grid-row: 2; margin-inline-start: 54px; width: calc(100% - 54px); }
body.is-player-expanded .chat-launcher { visibility: hidden; }
body:is(:not([data-page='home']), .is-player-docked) .chat-launcher { bottom: calc(var(--desk-bottom) + var(--desk-mini) + 9px); right: var(--desk-edge); }
.chat-launcher { min-width: 94px; height: 42px; padding: 0 13px; font-size: 14px; }
.chat-launcher__icon { width: 18px; height: 15px; border-width: 1.5px; }
body[data-page='chat'] .chat-launcher { display: none; }
body:is(:not([data-page='home']), .is-player-docked) { padding-bottom: 0; }
.site-footer, body:not([data-page='home']) .site-footer { padding: 33px max(24px,4vw) calc(35px + var(--desk-mini)); }
body:not([data-page='home']) .page-content { padding-right: 0; min-height: 0; }
body:not([data-page='home']) #page-content { scroll-margin-top: 112px; }
html { scroll-padding: 118px 0 calc(var(--desk-mini) + 28px); }

/* Interior reference: editorial masthead, content rail and champagne-metal accents.
   Real covers / logos lead each section; the same lightweight studio art fills image-free panels. */
.inner-hero {
    width: var(--studio-shell); margin: clamp(108px, 9vw, 138px) auto 0; min-height: 0;
    padding: clamp(27px, 3.5vw, 52px) clamp(21px, 4.3vw, 60px);
    border: 1px solid var(--studio-border); border-radius: 18px;
    background: linear-gradient(90deg,#132039 9%,#132039db 43%,#13203900 75%),
        url('../brand/broadcast-ribbon.svg') right -22px top/54% auto no-repeat,
        radial-gradient(ellipse at 86% 11%,#91623651,transparent 55%), linear-gradient(119deg,#1b2c45,#0b182d 68%,#192c43);
    box-shadow: var(--studio-bezel);
}
.inner-hero::before { display: block; inset: auto 8% -1px; height: 1px; background: linear-gradient(90deg,transparent,#ffdb93,transparent); }
.inner-hero::after { display: none; }
.inner-hero > .eyebrow { color: #ffdf9c; font-size: 13px; letter-spacing: .11em; }
.inner-hero h1 { margin: 12px 0 9px; color: #ffe5b3; font: 700 clamp(34px,4.2vw,58px)/1.07 var(--serif); letter-spacing: -.035em; }
.inner-hero > p { position: relative; color: #e2e3e7; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.58; max-width: 57ch; }
.inner-hero--requests, body[data-page='about'] .inner-hero {
    background: linear-gradient(90deg,#101e34 0,#101e34f3 45%,#101e3438 87%), url('../brand/studio-card.webp') right 43%/min(65%,580px) auto no-repeat, #131f34;
}
:is(.history-page,.artists-page,.editorial-page,.catalogs-section,.full-rating,.chat-page,.requests-page,.content-page,.article-page,.artist-profile,.account-page,.admin-page,.schedule-page,.public-chart) {
    width: var(--studio-shell); max-width: 1312px; margin: clamp(22px,3vw,42px) auto clamp(34px,4vw,60px);
}
:is(.article-page,.artist-profile,.account-page,.admin-page) { margin-top: clamp(110px,9vw,138px); }
:is(.article-page,.content-page:not(.content-page--contacts)) { max-width: 1000px; }
body:not([data-page='home']) .page-content { color: #e9e4dc; font-size: 16px; }
body:not([data-page='home']) .page-content :is(.eyebrow,time) { font-size: max(13px, .82rem); }
body:not([data-page='home']) .page-content :is(.content-page__story,.contact-form,.request-form-card,.request-history,.chat-room,.chat-sidebar section,.history-list,.rating-table,.viewer-rank-card,.account-panel,.admin-card,.admin-inbox,.article-page__body,.artist-profile__hero,.artist-track-list,.schedule-day,.public-chart__list,.content-empty,.section-placeholder) {
    border-color: var(--studio-border); box-shadow: var(--studio-bezel);
    background-color: #111f35;
}
body:not([data-page='home']) :is(.content-page__story,.contact-form,.request-form-card,.request-history,.chat-sidebar section,.viewer-rank-card,.account-panel,.admin-card) > :is(h2,h3),
body:not([data-page='home']) .section-heading h2 { color: #ffe5b2; }
:is(.content-page,.requests-page,.chat-page,.account-page,.admin-page,.schedule-page,.full-rating,.artists-page,.editorial-page,.catalogs-section,.public-chart,.article-page,.artist-profile) :is(input:not([type='range']),textarea,select) { font-size: 16px; }
:is(.section-heading,.content-page__story,.request-form-card,.request-history,.artist-profile__intro,.article-page__body,.news-card__copy,.chat-sidebar,.chat-login,.chat-message,.schedule-day,.catalogs-note,.contact-form,.viewer-rank-card,.account-panel,.account-guest,.admin-card) :is(p,li,label,small) { font-size: max(14px, .9rem); line-height: 1.58; }
:is(.content-page__story,.article-page__body,.request-form-card,.artist-profile__intro) > p { font-size: 16px; line-height: 1.72; }
.history-track__copy span, .full-rating .rating-table small, .full-rating .rating-table em,
.history-source, .history-periods button, .full-rating .period-switcher button,
.catalog-card__copy small, .artist-card__copy small, .public-chart__list small { font-size: 14px; }
.history-track__copy strong, .artist-card__copy strong, .catalog-card__copy strong, .full-rating .rating-table strong { font-size: 17px; }
.history-list, .full-rating .rating-table { display: block; }
.history-track { min-height: 83px; }
.history-source { min-height: 0; }
.history-track__cover, .artist-track-list__cover, .account-votes__cover { background-image: url('../icons/station-artwork.svg'); background-size: cover; }
.news-catalog:has(.news-card:only-child) { grid-template-columns: 1fr; }
.news-card__visual:has(.editorial-art) { background: #0d192b url('../brand/studio-card.webp') 66% center/cover; }
.news-card__visual .editorial-art { display: none; }
.news-card--featured { border-color: var(--studio-border); box-shadow: var(--studio-bezel); }
.news-card--featured .news-card__visual { min-height: clamp(205px, 24vw, 340px); }
.news-card__copy > a { font-size: 15px; }
.editorial-cover { height: clamp(120px,23vw,260px); background: #13203a url('../brand/studio-card.webp') center 48%/cover; }
.artist-profile__hero, .artist-profile__visual { min-height: 360px; }
.artist-card__visual:has(span):not(:has(img)), .artist-profile__visual:not(:has(img)) { background: #122034 url('../brand/studio-card.webp') center/cover; }
.catalog-card { border-color: var(--studio-border); }
.catalog-card__logo { background: radial-gradient(ellipse at 45% 28%,#344f6c,#0d192e); }
.catalogs-note, .content-values article { border-color: var(--studio-border); }
.chat-room__header, .schedule-day__heading, .account-header, .admin-header {
    background: radial-gradient(ellipse at 0 0,#906b3d76,transparent 60%),linear-gradient(120deg,#263045,#111d31 80%);
}
.chat-sidebar section { align-self: start; }
.chat-messages { height: auto; min-height: 145px; max-height: clamp(280px,48vh,485px); }
.request-steps { margin: 0; padding: 0; list-style: none; counter-reset: studio-step; }
.request-history .request-steps li { display: flex; align-items: center; gap: 10px; min-height: 0; margin: 0; padding: 11px 0; counter-increment: studio-step; }
.request-steps li::before {
    content: counter(studio-step); display: grid; flex: 0 0 30px; height: 30px; place-items: center; border: 1px solid #ffdf9999;
    border-radius: 50%; color: #251909; background: var(--studio-metal); font-weight: 700;
}
.request-form-card .request-current__queue {
    display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 7px; width: auto; max-width: none;
    padding: 8px 0; margin: 10px 0; border-left: 0; border-top: 1px solid var(--line-soft); text-align: left;
}
.request-form-card .request-current__queue b { color: #f9d392; }
.request-form-card .request-current__queue small { color: #c9ccd2; }
.request-login { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 13px 16px; margin-top: 16px; }
.request-login p { margin: 0; }
.request-login button, .chat-login button { min-height: 43px; font-size: 15px; }
.request-history--guide { background: linear-gradient(90deg,#111f35 0,#111f35ee 55%,#111f3580),url('../brand/studio-card.webp') 72% center/cover; }
.content-empty--chart { padding: clamp(23px,3.5vw,45px); text-align: left; background: linear-gradient(90deg,#121d32 30%,#121d32e8 56%,#121d3259),url('../brand/studio-card.webp') right center/cover; }
.content-empty--chart h2 { margin: 0 0 9px; color: #ffe0a3; font: 700 clamp(26px,3vw,41px)/1.15 var(--serif); }
.content-empty--chart p { margin: 0; max-width: 49ch; color: #e3ded2; font-size: 16px; }
.content-empty--chart > a { color: #ffe3a4; font-size: 15px; }
.content-empty--chart > button {
    margin: 16px 14px 0 0; padding: 9px 16px; min-height: 42px; border: 1px solid #f6d28a;
    border-radius: 8px; color: #24190e; background: var(--studio-metal); font-size: 15px; font-weight: 700;
}
.public-chart__list li:first-child { background: linear-gradient(95deg,#82603a40,#e9c48517 53%,transparent); }
.full-rating .rating-table li[data-rank]:is([data-rank='1'],[data-rank='2'],[data-rank='3']) {
    grid-template-columns: 40px 48px minmax(0,1fr) auto; background: linear-gradient(110deg,#92643151,transparent 71%);
}
.full-rating .viewer-rank-card { position: static; }
.rating-table .listener-avatar img { object-fit: cover; }
.full-rating .rating-table .avatar-token { width: 44px; height: 44px; }
.schedule-day__empty { margin: 0; align-self: center; }
.inner-hero + .section-placeholder { width: var(--studio-shell); margin: 30px auto 55px; min-height: 0; }
.account-guest {
    width: var(--studio-shell); max-width: 1000px; min-height: 0; margin: clamp(105px,9vw,138px) auto max(46px,7vh);
    padding: clamp(27px,4vw,64px); border: 1px solid var(--studio-border); border-radius: 17px;
    background: linear-gradient(90deg,#182b44 15%,#182b44df 56%,transparent),
        url('../brand/broadcast-ribbon.svg') right top/52% auto no-repeat,linear-gradient(120deg,#1b304b,#0b1729 80%);
    box-shadow: var(--studio-bezel);
}
.account-guest h1 { color: #ffe5b3; font-size: clamp(32px,4vw,53px); }
.site-footer :is(nav a,span), .community-strip__count, .community-strip__leaders { font-size: 14px; }
.community-strip__leaders { flex-wrap: wrap; }
.skip-link:focus { z-index: 999; }

@media (min-width: 901px) {
    body:is(:not([data-page='home']), .is-player-docked) .chat-launcher { display: none; }
    .requests-layout { grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); }
    .requests-layout:has(.request-history--guide) { align-items: stretch; }
    .content-page--contacts { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
    .chat-page { grid-template-columns: minmax(0,1fr) minmax(270px,.42fr); }
    .chat-sidebar { grid-template-columns: 1fr; align-content: start; }
    .full-rating__layout { grid-template-columns: minmax(0,1fr) minmax(255px,.47fr); }
    .full-rating .viewer-rank-card { grid-row: auto; position: sticky; top: 123px; }
    .schedule-day { grid-template-columns: minmax(155px,.33fr) minmax(0,1fr); }
    .schedule-day > header { padding: 0 20px 0 0; border-right: 1px solid var(--line); border-bottom: 0; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .artists-grid, .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 860px) {
    :root { --desk-bottom: max(10px, env(safe-area-inset-bottom)); --studio-shell: calc(100% - 28px); }
    html { scroll-padding-top: 86px; }
    body:is([data-page],.is-player-docked) .radio-player { inset-inline: var(--desk-edge); width: auto; }
    body.is-player-expanded .radio-player { inset-inline: var(--desk-edge) !important; width: auto !important; }
    .radio-player .now-playing .player-onair { display: none; }
    .inner-hero { margin-top: 94px; border-radius: 14px; background-size: cover,78% auto,cover,cover; }
    .inner-hero--requests, body[data-page='about'] .inner-hero { background-size: cover,auto 100%,cover; }
    .inner-hero > p { max-width: 47ch; }
    :is(.article-page,.artist-profile,.account-page,.admin-page) { margin-top: 94px; }
    .site-footer, body:not([data-page='home']) .site-footer { padding-bottom: calc(var(--desk-mini) + 30px); }
    .artist-profile__hero, .artist-profile__visual { min-height: 0; }
    .account-guest { margin-top: 94px; }
}
/* Already compact at first paint, before JavaScript runs. */
@media (max-width: 860px) {
    body[data-page='home']:not(.is-player-docked) .radio-player { inset: auto var(--desk-edge) var(--desk-bottom); }
}
@media (max-width: 480px) {
    .inner-hero { padding-block: 24px; }
    .inner-hero--requests, body[data-page='about'] .inner-hero { background-image: linear-gradient(90deg,#101e34 3%,#101e34ed 60%,#101e3488),url('../brand/studio-card.webp'); }
    .history-list, .full-rating .rating-table { padding-inline: 11px; }
    .full-rating .rating-table li[data-rank]:is([data-rank='1'],[data-rank='2'],[data-rank='3']) { grid-template-columns: 36px 38px minmax(0,1fr); gap: 6px; }
    .full-rating .rating-table .avatar-token { width: 34px; height: 34px; }
    .full-rating .rating-table em { font-size: 13px; }
}
