/* v1.4.30: site-wide layout and usability polish. All radio and data APIs are unchanged. */
/* Empty ad slots are not advertisements. Save the width until real ad creatives are configured. */
.fd-page-grid.fd-ads-inactive{display:block!important;max-width:1440px;margin-inline:auto}
.fd-page-grid.fd-ads-inactive .fd-ad-rail{display:none!important}
.fd-page-grid.fd-ads-inactive .fd-content-shell{display:block;max-width:1440px;margin:0 auto}
@media (min-width:1320px){
 .fd-page-grid.fd-ads-inactive .fd-site-nav{left:0}
 .fd-page-grid.fd-ads-inactive .fd-rf-dock{right:0}
}
.fd-studio-spotlight .cam-frame .cam-placeholder{padding:24px;min-height:0}
/* The observatory title's quick links must never be clipped by a fixed-height hero. */
.funky-hero{height:auto!important;min-height:220px}
.funky-hero .hero-inner{height:auto;min-height:220px;gap:15px;justify-content:center;padding:22px clamp(18px,3vw,40px) 20px}
.funky-hero .hero-pills{row-gap:8px}
.funky-hero .hero-pills a{display:inline-flex;align-items:center;min-height:32px;line-height:1.3;text-wrap:balance}
/* Consistent section rhythm, readable headings and uniform panel edges. */
#fd-content-shell main{padding-left:clamp(13px,2.4vw,35px);padding-right:clamp(13px,2.4vw,35px)}
#fd-content-shell main .section-heading{margin-top:30px;margin-bottom:14px;gap:12px}
#fd-content-shell main .section-heading h2{font-size:clamp(22px,2.55vw,34px);line-height:1.17;overflow-wrap:anywhere}
#fd-content-shell main .section-desc{max-width:440px;line-height:1.45;text-align:right;overflow-wrap:anywhere}
#fd-content-shell main .panel{min-width:0}
#fd-content-shell main .section-heading,#fd-content-shell #skycam{scroll-margin-top:90px}
#fd-content-shell .fd-studio-spotlight{box-shadow:0 12px 30px #0003}
/* Interactive controls share keyboard focus treatment. */
#fd-content-shell select:focus-visible,#fd-content-shell summary:focus-visible,#fd-content-shell textarea:focus-visible{outline:2px solid #f4c975;outline-offset:3px}
#fd-content-shell .fd-map-controls button,#fd-content-shell .fd-map-controls label{min-height:37px;display:inline-flex;align-items:center}
/* Responsive spacing & tap targets: two floating side controls no longer cover article headlines. */
@media(max-width:850px){
 .funky-hero .hero-inner{min-height:235px}
 #fd-content-shell main .section-desc{text-align:left;max-width:none}
}
@media(max-width:650px){
 .fd-page-grid.fd-ads-inactive .fd-content-shell{width:100%;overflow-x:clip}
 .fd-site-nav{top:auto;bottom:14px;left:9px}
 .fd-site-nav>button{min-height:48px;border-radius:12px;padding:11px 12px;box-shadow:0 6px 22px #000a}
 .fd-rf-launcher{top:auto;bottom:14px;right:9px;width:54px;min-height:54px;border-radius:12px;box-shadow:0 6px 22px #000a}
 .fd-rf-launcher span{font-size:22px}
 .fd-rf-launcher small{font-size:10px}
 .fd-rf-drawer{right:65px;width:calc(100vw - 72px);top:8px;bottom:8px}
 .fd-rf-drawer-head{gap:6px}
 .fd-rf-drawer-head strong{font-size:12px;overflow-wrap:anywhere}
 .fd-site-nav-panel{top:auto;bottom:76px;max-height:calc(100dvh - 90px)}
 .funky-hero .hero-inner{padding:22px 17px 19px;min-height:245px}
 .funky-hero .hero-pills a{font-size:10px;min-height:34px}
 #fd-content-shell main .section-heading{margin-top:26px}
 #fd-content-shell main .section-heading h2{font-size:clamp(21px,6vw,27px)}
 .fd-map-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 #fd-content-shell .fd-map-controls label,#fd-content-shell .fd-map-controls button{width:100%;min-width:0;justify-content:center;text-align:center;padding:10px 6px;line-height:1.2}
 #fd-content-shell .fd-map-controls button:last-child{grid-column:1/-1}
 #fd-content-shell main{padding-bottom:100px}
 #fd-content-shell footer{padding-bottom:95px}
}
@media(prefers-reduced-motion:reduce){.funky-hero *{scroll-behavior:auto}}

/* v1.4.33 compact observatory layout + simplified studio controls */
.fd-compact-details{margin:9px auto 15px;max-width:1540px;border:1px solid #325f6f;border-radius:14px;background:#0d1c2ce8;overflow:hidden;}
.fd-compact-details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 17px;min-height:48px;color:#e4fff2;font-size:clamp(13px,1.6vw,17px);font-weight:800;letter-spacing:.01em;}
.fd-compact-details>summary::-webkit-details-marker{display:none;}
.fd-compact-details>summary span{font-weight:600;color:#9dcbba;font-size:12px;}
.fd-compact-details[open]>summary{border-bottom:1px solid #315469;}
.fd-compact-details[open]>summary span{font-size:0;}
.fd-compact-details[open]>summary span::after{content:'Collapse';font-size:12px;}
.fd-hero-details .hero{border-radius:0;margin:0;}
.fd-dashboard-details,.fd-duckwire-details{margin-top:18px;}
.fd-dashboard-details>.section-heading,.fd-duckwire-details>.duckwire-news-block{margin:0 12px 15px;}
.fd-mission{max-width:1540px;margin:8px auto 13px;}
.fd-mission>.radio-shack-note{margin:0 8px 12px;}
.fd-audio-quick-label{display:flex;flex-direction:column;gap:3px;margin:8px 0 10px;}
.fd-audio-quick-label strong{color:#b4f8da;}
.fd-audio-quick-label span{font-size:12px;color:#bad4d6;}
.fd-studio-quick{margin:10px 0;padding:12px;border:1px solid #3b7d77;border-radius:12px;background:#10252d;}
.fd-studio-quick h4{margin:0 0 6px;color:#9aefc0;}
.fd-studio-quick-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:9px 0;}
.fd-studio-quick meter{display:block;width:100%;height:12px;accent-color:#55dfa1;}
.fd-studio-quick small{display:block;color:#b6d1d7;margin-top:5px;}
.fd-extra-audio{margin:10px 0;padding:9px;border:1px solid #284952;border-radius:10px;}
.fd-extra-audio>summary{cursor:pointer;font-weight:700;padding:9px;color:#c9f3e2;}
.fd-svr-audio-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(95px,1fr) auto;gap:8px;padding:10px 0;align-items:end;}
.fd-svr-audio-row label{font-size:12px;}
.fd-svr-audio-row select{max-width:100%;width:100%;} 
.fd-svr-audio-row input[type=number]{max-width:85px;}
@media(max-width:700px){.fd-compact-details{margin:8px 7px 12px}.fd-compact-details>summary{padding:12px;font-size:14px}.fd-svr-audio-row{grid-template-columns:1fr 1fr}.fd-svr-audio-row>label:first-child{grid-column:1/-1}}

/* v1.4.34 — back to simple separate camera and microphone device dropdowns. */
.fd-media-device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:start;margin:12px 0}
.fd-media-device-card{border:1px solid #38667b;background:#0b1c29;border-radius:12px;padding:14px;min-width:0}
.fd-media-device-sound{border-color:#36745c;background:#0d2428}
.fd-media-device-card .fd-device-label{display:block;margin:0;color:#c6f5e7;font-weight:800;font-size:12px;line-height:1.3}
.fd-media-device-card select{display:block;width:100%;min-width:0;margin:9px 0 0;padding:11px 9px;background:#091925;color:#e5f9f2;border:1px solid #67919b;border-radius:9px;font-size:14px}
.fd-device-intro{margin:5px 0 0!important}
.fd-media-device-card .fd-device-hint{margin:6px 0!important;font-size:11px;line-height:1.45}
.fd-media-device-card .fd-input-test{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.fd-media-device-card .fd-input-test button{font-size:10px;padding:9px 10px}
.fd-media-device-card .fd-input-test meter{flex:1;min-width:65px;height:10px;accent-color:#69ecbb}
.fd-media-device-card .fd-input-test p{flex-basis:100%;margin:0!important}
.fd-media-device-card .fd-extra-audio{padding:2px 7px;margin:8px 0 0}
.fd-media-device-card .fd-extra-audio>summary{font-size:11px;padding:7px 0}
.fd-primary-level{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:9px 0}
.fd-primary-level label{font-size:11px;min-width:140px;flex:1}
.fd-primary-level label input[type=range]{display:block;width:100%;margin:4px 0}
.fd-primary-level meter{flex-basis:100%;width:100%}
.fd-media-actionbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0 15px}
.fd-media-actionbar button{min-height:40px}
.fd-device-other{margin:8px 0;border:1px solid #315263;border-radius:9px;padding:7px 11px}
.fd-device-other>summary{cursor:pointer;color:#a9d8e0;font-size:12px}
.fd-device-other select{display:block;max-width:280px;margin-top:5px}
@media(max-width:720px){.fd-media-device-grid{grid-template-columns:minmax(0,1fr);gap:9px}.fd-media-device-card{padding:11px}.fd-media-actionbar button{flex:1 1 135px}}

/* v1.4.35 — Owner Studio: simple live audio, software gain and standby slideshow */
.studio-standby-display{position:absolute;inset:0;background:radial-gradient(circle at 55% 34%,#382052,#070713 78%);display:flex;align-items:center;justify-content:center;overflow:hidden;isolation:isolate}
.studio-standby-display[hidden],.studio-standby-display img[hidden],.studio-standby-display video[hidden]{display:none!important}
.studio-standby-display img,.studio-standby-display video{display:block;width:100%;height:100%;max-height:none;object-fit:contain;background:#06050c}
.studio-standby-caption{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:10px 15px 13px;text-align:center;background:linear-gradient(transparent,#07050cda 35%);color:#f0d6ff;font-weight:800;font-size:clamp(10px,1.45vw,14px);letter-spacing:.06em;pointer-events:none;text-shadow:0 2px 8px #000}
.fd-live-audio-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.fd-live-audio-actions button{flex:1;min-width:125px}
.studio-boost-row{display:flex!important;flex-direction:column;gap:7px;margin:12px 0!important;padding:10px 13px;border-radius:9px;background:#1a2636;border:1px solid #4e6277;color:#f6e8ff!important;font-size:12px!important;font-weight:750}
.studio-boost-row strong{color:#a2f4ce;float:right}
.studio-boost-row input{width:100%;accent-color:#ad88ef}
.fd-owner-standby{border:1px solid #785c96;border-radius:12px;padding:14px;margin:14px 0;background:linear-gradient(140deg,#221332,#101a2c)}
.fd-owner-standby h4{margin:0;color:#efd2ff}
.fd-standby-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.fd-standby-controls label{font-size:12px;margin:0!important;min-width:0}
.fd-standby-controls select,.fd-standby-controls input{max-width:100%;width:100%;background:#141326;border:1px solid #735293;border-radius:7px;color:#fff;padding:9px}
.fd-owner-standby .fd-media-actionbar{margin:12px 0;gap:8px}
.fd-owner-standby .fd-media-actionbar button{flex:1;min-width:140px}
#rtc-standby-folder{overflow-wrap:anywhere;color:#b2c2d9}
@media(max-width:750px){.fd-standby-controls{grid-template-columns:1fr}.fd-owner-standby{padding:11px}}
/* v1.4.36: Chat-style Owner slide uploader, preview rows and optional live camera tile. */
.fd-slide-management{border:1px solid #6e6296;border-radius:12px;padding:12px;background:#171527;margin:12px 0}
.fd-slide-management summary{color:#defab4;font-weight:800;cursor:pointer;line-height:1.4}
.fd-slide-management label{display:block;margin:12px 0 7px;font-size:13px}
.fd-slide-management input[type=file]{display:block;width:100%;max-width:100%;margin-top:7px;padding:9px;border:1px solid #665e83;border-radius:8px;background:#131323;color:#eee}
.fd-slide-add-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}
.fd-slide-add-line select{min-width:170px;flex:1;background:#131326;color:#fff;border:1px solid #735293;border-radius:8px;padding:9px}
.fd-slide-add-line button{flex-shrink:0}
.fd-slide-list{display:grid;gap:8px;max-height:390px;overflow-y:auto;overscroll-behavior:contain;padding-right:3px}
.fd-slide-editor-row{display:grid;grid-template-columns:26px 95px minmax(0,1fr) 36px 36px 36px;align-items:center;gap:7px;padding:7px;border:1px solid #504262;border-radius:9px;background:#241e32}
.fd-slide-editor-row .fd-slide-thumb{width:100%;height:62px;object-fit:contain;background:#100c19;border-radius:7px;display:flex;align-items:center;justify-content:center;text-align:center;color:#f5ccff;font-weight:750;font-size:12px}
.fd-slide-editor-row input{width:100%;min-width:0;background:#111324;border:1px solid #695581;border-radius:7px;color:white;padding:8px}
.fd-slide-editor-row button{min-width:0;margin:0;padding:7px 5px}
@media(max-width:700px){.fd-slide-editor-row{grid-template-columns:20px 60px minmax(0,1fr) 27px 27px 29px;gap:4px;padding:5px}.fd-slide-editor-row .fd-slide-thumb{height:46px}.fd-slide-editor-row button{font-size:11px;padding:7px 3px}.fd-slide-editor-row input{font-size:12px;padding:7px 4px}.fd-slide-add-line select{min-width:100%;flex-basis:100%}}

/* v1.4.52 – compact slideshow changer above the Studio Cam frame. */
.fd-studio-slide-tools{display:inline-flex;align-items:center;justify-content:center;gap:5px;letter-spacing:0;flex-wrap:nowrap}
.fd-studio-slide-tools[hidden],.fd-studio-slide-tools button[hidden]{display:none!important}
.fd-studio-slide-tools button{min-width:28px;min-height:26px;padding:2px 7px;border:1px solid #a866ea;border-radius:7px;color:#ffe5fd;background:#341750;font-size:13px;line-height:1.1}
.fd-studio-slide-tools button:hover,.fd-studio-slide-tools button:focus-visible{border-color:#ffab4d;color:#fff;background:#64286f}
.fd-studio-slide-tools span{min-width:39px;text-align:center;font:700 10px/1.2 Consolas,monospace;color:#fbe5ff;white-space:nowrap}
@media(max-width:520px){.fd-studio-slide-tools button{min-width:25px;padding:2px 5px}.fd-studio-slide-tools span{min-width:35px}}

/* v1.4.58 — visible Owner Studio Camera preview directly below the video selector. */
.fd-camera-preview-frame{position:relative;margin-top:12px;aspect-ratio:16/9;max-height:300px;border:1px solid #5e9d8b;border-radius:11px;overflow:hidden;background:#060e19;display:flex;align-items:center;justify-content:center}
.fd-camera-preview-frame video{display:block;width:100%;height:100%;object-fit:contain;background:#050b15}
.fd-camera-preview-frame video[hidden],#rtc-camera-preview-placeholder[hidden]{display:none!important}
#rtc-camera-preview-placeholder{padding:17px;text-align:center;color:#b7dcd2;font-weight:700;font-size:13px;line-height:1.5}
#rtc-camera-preview-status{color:#b9f2de;min-height:2.2em;line-height:1.5;margin:8px 0 0;overflow-wrap:anywhere}
#browser-camera-owner .fd-media-actionbar{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}
#browser-camera-owner .fd-media-actionbar button{flex:1 1 150px;min-height:42px}
#rtc-start{box-shadow:0 0 0 1px #e8a7a660}
#rtc-return-slides{background:#273252;border-color:#9c90ef}

/* v1.4.59: owner Studio Media Center, accessible playlist reordering and visitor sound opt-in */
.fd-studio-music-control{border:1px solid #6e5f94;background:#121a2f;border-radius:12px;padding:12px;margin:12px 0;display:grid;gap:8px}
.fd-studio-music-control strong{color:#f3ddff}
.fd-studio-music-control select{width:100%;max-width:100%;background:#121322;border:1px solid #8a739c;color:#fff;padding:10px;border-radius:8px}
.fd-studio-playmodes button{flex:1 1 135px;white-space:normal;min-height:43px}
.fd-slide-editor-row[draggable="true"]{cursor:grab}
.fd-slide-editor-row.fd-slide-drag-over{outline:2px dashed #b2f5bc;outline-offset:2px}
.fd-slide-editor-row.fd-slide-dragging{opacity:.45}
#studio-music-audio{display:none}
#studio-media-sound-toggle{position:absolute;right:12px;top:12px;z-index:6;background:#1c233bdd;color:white;border:1px solid #f0c6ff;border-radius:10px;padding:9px 12px;cursor:pointer;font-size:13px;font-weight:800;max-width:75%;box-shadow:0 4px 15px #0008}
#studio-media-sound-toggle[hidden]{display:none!important}
#studio-media-sound-toggle:focus-visible{outline:3px solid #ecdeff;outline-offset:2px}

/* v1.4.60: one unified Studio library, clear exclusive output status and progress */
.fd-studio-current{display:inline-flex;align-items:center;gap:6px;border:1px solid #76d2ab;background:#163b3b;color:#e9fff4;padding:6px 12px;border-radius:20px;font-weight:750;margin:12px 0}
.fd-media-library{border:1px solid #b4a3e6;border-radius:10px;padding:13px;margin:12px 0;background:#18182d}
.fd-media-library label{display:block;font-weight:700;margin:7px 0}
.fd-media-library input[type=file]{display:block;width:100%;padding:9px;margin:8px 0;border:1px solid #a48db9;border-radius:8px;max-width:100%;background:#0b1023;color:white}
.fd-media-library progress{display:block;width:100%;height:18px;accent-color:#85d6b0;margin:9px 0}
.fd-media-library progress[hidden]{display:none}
.fd-studio-music-control select{width:100%;margin:7px 0;padding:10px;color:#fff;background:#111a30;border:1px solid #8873ac;border-radius:8px}
.fd-slide-management[open] summary{margin-bottom:10px}

/* v1.4.62 — Keep one fixed 16:9 public Studio Cam frame for all media.
   The placeholder, slideshow images, MP4 videos and WebRTC camera are
   overlaid inside a stable container; toggling hidden content cannot resize it.
   Remove old mode/viewport-dependent height rules rather than fighting them. */
#fd-studio-video-destination,#fd-studio-video-destination .camera-panel{width:100%;min-width:0}
.fd-studio-spotlight #fd-studio-video-destination .cam-frame{
 position:relative;display:block;width:100%;min-width:0;
 aspect-ratio:16 / 9!important;height:auto!important;
 min-height:0!important;max-height:none!important;overflow:hidden;
 background:#05070d;
}
.fd-studio-spotlight #fd-studio-video-destination .cam-frame #camera-video,
.fd-studio-spotlight #fd-studio-video-destination .cam-frame #camera-image,
.fd-studio-spotlight #fd-studio-video-destination .cam-frame #studio-standby-display{
 position:absolute;inset:0;width:100%;height:100%;max-height:none!important;
 box-sizing:border-box;
}
.fd-studio-spotlight #fd-studio-video-destination .cam-frame #camera-video,
.fd-studio-spotlight #fd-studio-video-destination .cam-frame #camera-image,
.fd-studio-spotlight #fd-studio-video-destination .cam-frame #studio-standby-image,
.fd-studio-spotlight #fd-studio-video-destination .cam-frame #studio-standby-video{
 object-fit:contain;object-position:center;background:#05070d;
}

/* v1.4.65: Source-specific Studio transport panels, never overlaying a live camera. */
.fd-media-device-grid.fd-media-mode{grid-template-columns:minmax(0,1fr)}
.fd-camera-preview-frame[hidden],.fd-media-device-sound[hidden],.fd-owner-standby[hidden],#rtc-source-media-transport[hidden],#rtc-source-camera-info[hidden]{display:none!important}
.fd-studio-transport{margin:14px 0 7px;border:1px solid #537c9b;border-radius:10px;background:#0a2431;padding:12px;min-width:0}
.fd-studio-transport strong{font-size:12px;color:#cdf7e8}
.fd-studio-transport .fd-media-actionbar{gap:6px;margin:10px 0}
.fd-studio-transport .fd-media-actionbar button{flex:1 1 104px;min-height:40px;white-space:normal}
.fd-studio-transport label{display:block;font-size:11px;font-weight:750;margin-top:8px}
.fd-studio-transport input[type=range]{display:block;width:100%;accent-color:#65e6b8;margin:8px 0}
#rtc-transport-state{min-height:1.2em;color:#a8dae2}

/* v1.4.66: Owner-only player source + real transport directly beneath Studio Cam. */
.fd-studio-player-owner-dock{border:1px solid #8375b3;border-radius:14px;background:linear-gradient(140deg,#1f1936,#142a35);padding:17px;margin:12px 0 16px;box-shadow:0 6px 28px #08091540}
.fd-studio-player-owner-dock[hidden]{display:none!important}
.fd-studio-player-owner-dock h3{font-size:14px;letter-spacing:.45px;margin:0 0 6px;color:#e9d9ff}
.fd-studio-player-owner-dock>.small-copy{margin:0 0 12px;color:#cbbfe0}
.fd-studio-player-owner-dock>.fd-media-device-card{display:block;max-width:none;width:100%;padding:12px;border:1px solid #655485;border-radius:11px;background:#12172b}
.fd-studio-player-owner-dock #rtc-source-media-transport{margin:13px 0 4px;padding:12px}
.fd-studio-player-owner-dock>.fd-media-actionbar{margin:12px 0 0;display:flex;flex-wrap:wrap;gap:8px}
.fd-studio-player-owner-dock>.fd-media-actionbar button{flex:1 1 160px;min-height:42px}
.fd-studio-player-owner-dock .fd-camera-preview-frame{max-width:420px}
@media(max-width:720px){.fd-studio-player-owner-dock{padding:11px}.fd-studio-player-owner-dock>.fd-media-actionbar button{flex:1 1 135px}}
