/* Copper studio components shared by homepage, station pages and player frames. */
.public-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}
.public-page > footer { margin-block: auto 0; }
.studio-card.studio-card {
  border: 0; border-radius: .75rem;
  background: radial-gradient(ellipse at 65% 0%, #793d1b70, transparent 42%), linear-gradient(145deg,#2d211a,#161210 70%);
  box-shadow: inset 0 0 0 1px #a869456e, inset 0 2px #ed99534d, 0 8px 20px #0006;
}
.studio-card .studio-heading.studio-heading {
  display:flex; align-items:center; gap:.6rem; margin:0 0 .75rem;
  padding:.75rem 0 .55rem; border-bottom:1px solid #c1856033;
  color:#fff4eb; font-size:.95rem; letter-spacing:.06em; text-transform:uppercase;
}
.studio-card :is(.studio-chat-icon,.studio-meter) { color:#ff9b45; }
.studio-card .studio-chat-row { margin:0; padding:.55rem 0; border-bottom:1px solid #ffffff12; }
.studio-transport.studio-transport {
  display:flex; align-items:center; gap:clamp(.3rem, 1.4vw, 1rem);
  padding:.55rem clamp(.45rem, 1.4vw, 1rem); color:#fff;
  background:repeating-linear-gradient(0deg,transparent 0 2px,#ffffff05 2px 3px),linear-gradient(#3a2c24,#201814);
  box-shadow:inset 0 1px #a56a46;
}
.studio-transport .studio-play.studio-play {
  display:grid; place-items:center; flex:0 0 auto;
  width:clamp(48px,7vw,64px); height:clamp(48px,7vw,64px); padding:0; border:0; border-radius:50%;
  background:radial-gradient(circle at 35% 25%,#7a513a,#2c1e17 75%);
  box-shadow:inset 0 0 0 2px #e5a474,inset 0 0 0 5px #38241a,0 3px 8px #0009;
}
.studio-transport input { accent-color:#f3ad79; }
.studio-transport .studio-icon { width:44px; height:44px; flex:none; display:grid; place-items:center; }
.studio-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; }
.studio-transport :is(button,input):focus-visible { outline:2px solid #ffc093; outline-offset:2px; }
.studio-home .history-copy .studio-transport[data-video-controls]:not([hidden]),
.studio-player .player > .studio-transport { background: repeating-linear-gradient(0deg,transparent 0 2px,#ffffff05 2px 3px),linear-gradient(#3a2c24,#201814); }
.studio-home .history-copy .studio-transport .studio-play,
.studio-player .studio-transport > #play.studio-play { width:clamp(48px,7vw,64px); height:clamp(48px,7vw,64px); flex:0 0 auto; }

html:has(> body:is(.studio-home, .studio-station, .studio-management)) {
    --page-art: url("/page-backgrounds/generic.webp");
    --page-accent: #929baa;
    scrollbar-color: var(--page-accent) color-mix(in srgb, var(--page-accent) 18%, #121212);
}
body:is(.studio-home, .studio-station, .studio-management) {
    background: #121212;
    isolation: isolate;
    scrollbar-color: #c4875c #231a15;
}
html:has(> body.studio-home) { --page-art: url("/page-backgrounds/home.webp"); --page-accent: #c4875c; }
html:has(> body[data-station="garage-music"]) { --page-art: url("/page-backgrounds/garage.webp"); --page-accent: #9882bf; }
html:has(> body[data-station="house-music"]) { --page-art: url("/page-backgrounds/house.webp"); --page-accent: #ca8b78; }
html:has(> body[data-station="urban-music"]) { --page-art: url("/page-backgrounds/urban.webp"); --page-accent: #888fba; }
html:has(> body[data-station="drum-and-bass-music"]) { --page-art: url("/page-backgrounds/dnb.webp"); --page-accent: #70a699; }
html:has(> body[data-station="oldies-music"]) { --page-art: url("/page-backgrounds/oldies.webp"); --page-accent: #be9a61; }
html:has(> body[data-station="christmas-music"]) { --page-art: url("/page-backgrounds/christmas.webp"); --page-accent: #83a282; }
html:has(> body[data-station="dance-music"]) { --page-art: url("/page-backgrounds/dance.webp"); --page-accent: #ca648f; }
html:has(> body[data-station="pegslam"]) { --page-art: url("/page-backgrounds/pegslam.webp"); --page-accent: #c47579; }

@media (min-width: 64rem) {
    body:is(.studio-home, .studio-station, .studio-management)::before {
        /* Match the shared content width of min(92%, 100rem). */
        --gutter: max(4%, calc((100% - 100rem) / 2));
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: var(--page-art) center top / 100% auto no-repeat;
        mask-image: linear-gradient(90deg, #000, transparent var(--gutter),
            transparent calc(100% - var(--gutter)), #000),
            linear-gradient(#000 70%, transparent);
        mask-composite: intersect;
    }
}
body:is(.studio-home, .studio-station, .studio-management) :is(.original-hero, .stream-masthead, footer.shell) {
    background: linear-gradient(180deg, #29221fba, #181513b8);
    border-color: #333;
    box-shadow: none;
}
body:is(.studio-home, .studio-station, .studio-management) footer.shell { background: linear-gradient(0deg, #241f1bcf, #151515a6); }
.studio-management .management-main { width: min(92%, 100rem); }
@media (min-width: 64rem) {
    .studio-management .management-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.studio-management .management-grid > .studio-card {
    border: 1px solid #333;
    background: #1b1b1b;
    box-shadow: none;
    overflow-wrap: anywhere;
}
.studio-management .management-grid h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #ffd45b;
}
.studio-management .archive-portrait {
    aspect-ratio: auto;
}
#upload-gallery-photo form {
    display: grid;
    gap: .5rem;
    margin-top: .75rem;
}
#upload-gallery-photo input { min-width: 0; width: 100%; }
#upload-gallery-photo button {
    padding: .55rem;
    border: 1px solid #815439;
    border-radius: .4rem;
    background: #2a211c;
    color: #ffd45b;
    cursor: pointer;
}
.studio-management footer.shell {
    width: 100%;
    text-align: center;
}
.studio-archive .archive-photos,
.studio-archive .archive-collections {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
}
.studio-archive .archive-videos {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}
.studio-archive .archive-collections img { aspect-ratio: 11 / 16; margin-bottom: .75rem; }
.studio-archive .archive-collections a { display: block; text-decoration: none; }
.studio-archive .archive-videos h3 { margin: .75rem 0 0; font-size: 1rem; color: #ffd45b; }
body:is(.studio-public, .studio-station) :is(.original-stations, .station-card, .studio-card):not(:where(.station-interaction-cards > .station-card)) {
    background: #1b1b1b;
    border: 1px solid #333;
    box-shadow: none;
}
body:is(.studio-public, .studio-station) .station-interaction-cards > .station-shouts {
    border: 0;
}
body:is(.studio-public, .studio-station) .station-interaction-cards > .station-message-card {
    border-width: 1px 0 0;
}
body:is(.studio-public, .studio-station) :is(.studio-heading, .original-stations h2, .station-card h2, .studio-station-title span, .history-highlight, .original-app) {
    color: #f5f5f5;
}
body:is(.studio-public, .studio-station) .studio-heading { background: transparent; box-shadow: none; }

.home-session-notice { text-decoration: none; border: 1px solid #333333; max-width: 100%; overflow-wrap: anywhere; padding: .35rem .65rem; border-radius: .45rem; background: #181818; color: #fff; }
body:is(.studio-home, .studio-station, .studio-management) .stream-masthead > .home-session-notice {
    position: static;
    min-width: 0;
    margin-inline-start: auto;
    justify-self: end;
}
@media (min-width: 1200px) {
    body:is(.studio-home, .studio-station, .studio-management) .stream-masthead > .home-session-notice { grid-area: 1 / 3; }
}
@media (max-width: 760px) {
    body:is(.studio-home, .studio-station, .studio-management) .stream-masthead:has(> .home-session-notice:not([hidden])) > .original-nav { order: 1; }
    body:is(.studio-home, .studio-station, .studio-management) .stream-masthead > .home-session-notice { max-width: 42%; }
}
.studio-station h1, .home-history h1 { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
  h2 { font-size: 1.05rem; }
  .studio-station #studio-track { font-size: .95rem; }
  .studio-station :is(input,textarea,select),
  .home-listener-desk :is(input,textarea,select) { font-size: 16px; }
}
