/* ADVERTISING LAYOUT — edit colours/spacing here; edit banners in ads.js. */
body { max-width: 800px; }
.radio-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.radio-main { min-width: 0; }
.ad-slot { min-width: 0; text-align: center; }
.ad-slot[hidden] { display: none; }
.ad-top { max-width: 728px; margin: 0 auto 24px; }
.ad-sidebar { width: 100%; max-width: 300px; justify-self: center; align-self: start; }
.ad-label { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.ad-link { display: block; border-radius: 6px; }
.ad-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
/* Preserve the image proportions; never crop or stretch a banner. */
.ad-link img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ad-placeholder { display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--soft); border: 1px dashed var(--border); border-radius: 6px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.ad-top .ad-placeholder { width: 100%; min-width: 0; aspect-ratio: 728 / 90; min-height: 72px; }
.ad-sidebar .ad-placeholder { aspect-ratio: 300 / 250; }
/* Desktop: retain room for the radio controls beside a 300px advertisement.
   Smaller screens: sidebar naturally follows the station list. */
@media (min-width: 1100px) {
    body:has(.ad-sidebar:not([hidden])) { max-width: 1124px; }
    .radio-layout:has(.ad-sidebar:not([hidden])) { grid-template-columns: minmax(0, 1fr) 300px; }
}

