/* Ray Studio: neutral surfaces keep the film and poster art in focus. */
body.ray-studio{--bg:#0c0c10;--card:#16161d;--line:#30303c;--panel:#1b1b24;--light:#faf9ff;--dim:#b4b1c4;--key:#b5a5ff;--ice:#c3b6ff;--gold:#e7ddff;--green:#bcafff;--bad:#ffadb9;--studio-ring:#373443;background:radial-gradient(ellipse at 80% -200px,#252039 0,transparent 53rem),var(--bg);accent-color:var(--key)}
.ray-studio .wrap{max-width:1512px}
.ray-studio .top{position:relative;background:#101016e8;border-color:#FFFFFF12}
.ray-studio .top-in{min-height:68px}
.ray-studio .top nav{background:#ffffff0a;border:1px solid #ffffff13;border-radius:100px;padding:4px 9px}
.ray-studio .top nav .plain{border-radius:100px;padding:8px 10px}
.ray-studio .top nav .plain:hover,.ray-studio .control:hover{background:#ffffff10;color:white}
.ray-studio .brand .logo,.ray-studio .room-film-glyph{color:#e5d9ff;background:#27203c;border-color:#514472}
.ray-studio .btn,.ray-studio .icon-btn{background:#22222b;border-color:#363641;color:var(--light);box-shadow:none}
.ray-studio .btn,.ray-studio .icon-btn,.ray-studio #room-view-menu>summary{border-radius:999px}
.ray-studio .btn:hover,.ray-studio .icon-btn:hover,.ray-studio #room-view-menu>summary:hover{border-color:#8e7ccc;background:#2b263a;color:#fff}
.ray-studio .btn.gold,.ray-studio .icon-btn.gold{background:#eee9ff;color:#191425;border-color:#eee9ff}
.ray-studio .btn.gold:hover,.ray-studio .icon-btn.gold:hover{background:#d9caff;color:#191425}
.ray-studio .btn:disabled{opacity:.45}
.ray-studio .hero{background:radial-gradient(ellipse at 23% 35%,#403169 0,#211b33 42%,#15151e 73%);border-color:#443752}
.ray-studio .hero::before{background:radial-gradient(circle,#b7a4ff38 1px,transparent 1.4px);background-size:11px 11px;mask-image:linear-gradient(90deg,#000,transparent 83%)}
.ray-studio .hero::after{background:linear-gradient(90deg,transparent,#a38af8,transparent)}
.ray-studio .hero .orb,.ray-studio .hero .dash{border-color:#bda8ff45}
.ray-studio .hero .floating,.ray-studio .hero .wave-icon{background:#241a3f;color:#dfd4ff;border-color:#7c65b9;box-shadow:0 10px 50px #150f2e9e}
.ray-studio .hero :is(.visual,.technical,.osc,.room-signal,.room-signal span){color:#c3afff}
.ray-studio :is(.metric,.rooms .empty,.room-card,dialog,.pre,.mic-check,.room-owner-tools){background:#181821;border-color:#353442}
.ray-studio :is(.metric>span,.metrics em,.room-meta span){background:#201e2b;color:#d3c9f5;border-color:#383349}
.ray-studio :is(#setup,#devices){background:#181820;border-color:#3f3b51}
.ray-studio :is(.dialog-title,.setup-sound-check,.setup-preview .pre,.setup-preview .pre-actions button,.control.active){background:#252032;border-color:#53456d;color:#e9dfff}
.ray-studio :is(input:not([type="range"]):not([type="checkbox"]),select):not(button){border-color:#3c394a;background:#1d1b27;color:var(--light)}
.ray-studio :is(#room-people .tile,.tile .avatar,.pre .avatar){background:#221d33;border-color:#504468;color:#e2d8ff;box-shadow:none}
.ray-studio .room-people .tile.speaking{box-shadow:inset 0 0 14px #b6a5ff33}
.ray-studio :is(.tile-state,.hang-progress span,.hang-empty,.hang-note,.room-field-note){color:var(--dim)}
.ray-studio :is(.toast,#hang-reaction){background:#231d33;border-color:#65538b;color:#eee7ff}
.ray-studio .live{padding-block:20px 92px}
.ray-studio .live-top{align-items:center;margin-block-end:15px}
.ray-studio .live-top h1{line-height:1.35;margin-block:3px;font-size:clamp(22px,3vw,35px)}
.ray-studio .live-actions{flex-wrap:wrap;justify-content:end;gap:6px}
.ray-studio #room-view-menu{position:relative;z-index:8}
.ray-studio #room-view-menu>summary{padding:8px 12px;cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid #373440;background:#22222b;font-size:.78rem;font-weight:700;min-height:38px}
.ray-studio #room-view-menu>summary::-webkit-details-marker{display:none}
.ray-studio #room-view-menu svg{width:17px}
.ray-studio .room-view-options{position:absolute;inset-block-start:calc(100% + 8px);inset-inline-end:0;width:max-content;display:grid;gap:6px;z-index:9;padding:7px;border-radius:15px;border:1px solid #4a425a;background:#1a1722;box-shadow:0 12px 30px #0009}
.ray-studio #room-exit-full,.ray-studio .film-expanded-access{display:none}
.ray-studio #hangout .hang-bar{border-color:#2e2a3b;background:#15141b;padding:6px;border-radius:999px;margin-block-end:10px}
.ray-studio #hangout .hang-bar :is(.active,[aria-expanded="true"]){background:#ebe4ff;border-color:#ebe4ff;color:#201729}
.ray-studio .room-board{grid-template-columns:clamp(264px,24vw,355px) minmax(0,1fr);gap:12px}
.ray-studio .room-media-main{grid-column:2;grid-row:1}
.ray-studio .room-radio-rail{grid-column:1;grid-row:1;min-width:0;gap:8px;position:static}
.ray-studio #hangout :is(section,#hang-cinema,.room-mix-card),.ray-studio :is(#room-people,.live-grid .side){background:#14141b;border-color:#30303d;box-shadow:none}
.ray-studio #hangout #hang-cinema{border-radius:18px;padding:10px 12px}
.ray-studio .room-card-heading{gap:5px;margin:0;padding:3px 2px 9px}
.ray-studio .room-card-heading strong{line-height:1.3;color:var(--light)}
.ray-studio #film-pick{font-size:.76rem;min-height:35px;white-space:nowrap}
.ray-studio .hang-video.room-video-frame{background:#08080b;border-color:#2d2a36;width:100%;max-height:56dvh}
.ray-studio .hang-video.room-video-frame:has(#film-empty:not([hidden])){background:radial-gradient(ellipse at 47% 70%,#2a2044,#141322 60%,#101016)}
.ray-studio .hang-video.room-video-frame:has(#film-empty:not([hidden]))::before{inset:0;width:100%;height:100%;transform:none;border:none;border-radius:0;box-shadow:none;background:radial-gradient(circle,#ac95ff46 1px,transparent 1.5px) 0 0/12px 12px;mask-image:radial-gradient(ellipse,#000 10%,transparent 70%)}
.ray-studio .hang-empty{gap:6px}
.ray-studio .hang-empty strong{color:#faf7ff}
.ray-studio .hang-progress{margin:9px 0 6px}
.ray-studio .hang-progress input{flex:1;min-width:0;margin-inline:0}
.ray-studio .hang-transport{gap:5px}
.ray-studio .hang-transport .btn{min-height:34px;padding-inline:10px}
.ray-studio .hang-transport #film-play{min-inline-size:6.9em}
.ray-studio #film-cc[data-kind="embedded"]{border-color:#7967b0;color:#d9caff}
.ray-studio .room-note{margin:0}
.ray-studio :is(.room-details,.room-host-tools,.room-mix-card,.room-mixer,.hang-meta,.room-readout){background:#1a1823;border-color:#333043;margin-block-start:0;color:var(--dim)}
.ray-studio :is(.room-details,.room-host-tools,.room-mix-card)>summary{color:#eee8fa;font-size:.82rem;cursor:pointer;font-weight:700}
.ray-studio :is(.room-details,.room-host-tools,.room-mix-card)[open]>summary,.ray-studio .room-details>summary:hover{color:var(--key)}
.ray-studio #film-queue-panel{margin-block-start:8px}
.ray-studio #hangout #room-mix-card{padding:10px 13px}
.ray-studio .hang-meta{margin-block-start:8px;flex-wrap:wrap}
.ray-studio .hang-meta .hang-emojis{max-width:100%;justify-content:flex-end}
.ray-studio #side .side-head{border-color:#303043}
.ray-studio #side .side-switch .active{background:#312949;color:#eee4ff;border-color:#625184}
.ray-studio #side .chat-form,.ray-studio #side .person{border-color:#30303d}
.ray-studio #side .msg:not(.system){background:#202032;border-color:#34334a}
.ray-studio #side .msg small{color:#d6c9fd}
.ray-studio #side .msg.system,.ray-studio #side .msg.system p{color:#adabbc}
.ray-studio #side .messages{min-height:clamp(110px,32dvh,315px);max-height:clamp(120px,36dvh,365px)}
.ray-studio #side .chat-form input{min-width:0}
.ray-studio #live .controls{background:#1c1b27ef;border-color:#40374e;box-shadow:0 10px 42px #000b}
.ray-studio .control.hang{background:#522932;border-color:#75414d;color:#ffe7ee}
.ray-studio #hang-cinema[data-library="open"]>:is(#film-heading,.film-viewport,.film-tools){display:none}
.ray-studio .film-library{min-inline-size:0;padding:clamp(3px,1vw,11px)}
.ray-studio .film-library-head,.ray-studio .film-library-dialog-head,.ray-studio .film-library-actions{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap}
.ray-studio .film-library-actions .btn{min-height:33px;font-size:.73rem;padding-inline:9px}
.ray-studio .film-library h2{font-size:clamp(19px,2.5vw,30px);line-height:1.35;margin:0}
.ray-studio .film-library-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;max-width:650px;margin-block:13px 8px}
.ray-studio .film-library-search input{padding:9px 13px;border:1px solid #3b374d;border-radius:999px;min-width:0}
.ray-studio .film-library-filters{display:flex;gap:6px;margin:0 0 13px}
.ray-studio .film-library-filters .btn{font-size:.76rem;min-height:34px}
.ray-studio .film-library-filters .btn[aria-pressed="true"]{background:#eae3ff;color:#211934;border-color:#eae3ff}
.ray-studio #film-library-status{font-size:.85rem;color:var(--dim);padding:12px 0}
.ray-studio .film-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,126px),1fr));gap:clamp(7px,1.2vw,14px)}
.ray-studio .film-library-card{color:var(--light);text-align:start;background:#1b1a25;border:1px solid #333042;border-radius:13px;overflow:hidden;padding:0;display:flex;flex-direction:column;min-width:0}
.ray-studio .film-library-card:hover,.ray-studio .film-library-card:focus-visible{border-color:#a28adc;background:#272039}
.ray-studio .film-library-art{width:100%;aspect-ratio:2/3;position:relative;background:linear-gradient(145deg,#34295a,#151523);display:grid;place-items:center;overflow:hidden}
.ray-studio .film-library-art img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.ray-studio .film-library-placeholder{font-size:1.6rem;color:#bda8ff}
.ray-studio .film-library-rating{position:absolute;top:7px;left:7px;padding:2px 6px;border-radius:7px;background:#121019e8;color:#fff2c6;font-size:.72rem}
.ray-studio .film-library-copy{display:grid;gap:2px;padding:8px 9px}
.ray-studio .film-library-copy strong{line-height:1.4;font-size:.82rem;overflow-wrap:anywhere}
.ray-studio .film-library-copy small,.ray-studio .film-library-original{color:var(--dim);font-size:.7rem}
.ray-studio .film-library-original:empty{display:none}
.ray-studio #film-library-next{margin-block-start:12px}
.ray-studio #film-library-versions{width:min(624px,calc(100vw - 24px));padding:clamp(12px,3vw,22px);background:#181620;border-color:#49405d}
.ray-studio .film-library-dialog-head{padding-block-end:10px;border-block-end:1px solid #373146}
.ray-studio #film-library-version-note{font-size:.82rem;color:var(--dim)}
.ray-studio #film-library-editions{display:grid;gap:5px}
.ray-studio #film-library-editions h3{margin:10px 0 3px;font-size:.82rem;color:#d8c8ff}
.ray-studio .film-library-version{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;min-height:44px;border:1px solid #463854;border-radius:10px;background:#231d31;text-align:start;padding:6px 8px}
.ray-studio .film-library-version:hover:not(:disabled){border-color:#bca1ff;background:#34284a}
.ray-studio .film-library-version:disabled{opacity:.55}
.ray-studio .film-library-quality{font-size:.74rem;font-weight:750;max-width:33vw;overflow-wrap:anywhere;color:#f4efff}
.ray-studio .film-library-size{font-size:.73rem;color:var(--dim);text-align:center}
.ray-studio .film-library-pick{font-size:.76rem;color:#e2d3ff;font-weight:800}
.ray-studio[data-room-fullscreen]{overflow:hidden}
.ray-studio #live[data-fullscreen="room"]{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;overflow:hidden;z-index:30;background:#0d0d12;padding:6px max(10px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom));display:grid;grid-template-rows:auto auto minmax(0,1fr)}
.ray-studio #live[data-fullscreen="room"] .live-top{margin:0 0 6px}
.ray-studio #live[data-fullscreen="room"] .live-top h1{font-size:clamp(16px,2.2vw,24px)}
.ray-studio #live[data-fullscreen="room"] :is(.room-meta,#room-view-menu){display:none}
.ray-studio #live[data-fullscreen="room"] #room-exit-full{display:inline-flex}
.ray-studio #live[data-fullscreen="room"] .live-grid{display:block;min-height:0;grid-row:3}
.ray-studio #live[data-fullscreen="room"] .call-stage{display:flex;flex-direction:column;height:100%;min-height:0}
.ray-studio #live[data-fullscreen="room"] #hangout{flex:1;min-height:0;display:flex;flex-direction:column;margin:0}
.ray-studio #live[data-fullscreen="room"] .hang-bar{flex:none;margin:0 0 5px}
.ray-studio #live[data-fullscreen="room"] .room-board{flex:1;min-height:0;align-items:stretch;gap:8px}
.ray-studio #live[data-fullscreen="room"] .room-media-main{overflow:auto;min-height:0;overscroll-behavior:contain}
.ray-studio #live[data-fullscreen="room"] .room-radio-rail{display:flex;flex-direction:column;align-items:stretch;min-height:0;overflow:auto}
.ray-studio #live[data-fullscreen="room"] #side:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:110px;overflow:hidden}
.ray-studio #live[data-fullscreen="room"] #side :is(.people,.messages){flex:1;min-height:0;max-height:none}
.ray-studio #live[data-fullscreen="room"] #side :is(.side-head,.chat-form){flex:none}
.ray-studio #live[data-fullscreen="room"] #hang-mini{max-height:35dvh;overflow:auto}
.ray-studio #live[data-fullscreen="room"] #room-people{display:none}
.ray-studio #live[data-fullscreen="room"] .room-video-frame{max-height:clamp(120px,calc(100dvh - 290px),74dvh)}
.ray-studio #live[data-fullscreen="room"] .controls{position:static;width:max-content;max-width:100%;min-width:0;margin:5px auto 0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));flex:none;gap:2px;padding:3px}
.ray-studio #live[data-fullscreen="room"] .controls .control{min-height:40px}
.ray-studio .film-viewport[data-fullscreen="film"]{position:fixed;inset:0;background:black;width:100%;height:100%;z-index:40;display:grid;place-items:center;outline:0!important}
.ray-studio .film-viewport[data-fullscreen="film"] :is(.room-video-frame,#film-embed){width:100%;height:100%;max-height:none;border:0;border-radius:0;margin:0;aspect-ratio:auto;background:black}
.ray-studio .film-viewport[data-fullscreen="film"] .room-video-frame video,.ray-studio .film-viewport[data-fullscreen="film"] #film-embed iframe{display:block;width:100%;height:100%;max-height:none;border:0;aspect-ratio:auto}
.ray-studio .film-viewport[data-fullscreen="film"] .film-viewport-controls{position:absolute;inset:auto 0 0;padding:20px clamp(10px,2vw,30px) max(9px,env(safe-area-inset-bottom));background:linear-gradient(0deg,#000e 5%,#000a 66%,transparent);opacity:0;transition:opacity .2s}
.ray-studio .film-viewport[data-fullscreen="film"]:not([data-idle]) .film-viewport-controls,.ray-studio .film-viewport[data-fullscreen="film"] .film-viewport-controls:focus-within,.ray-studio .film-viewport[data-fullscreen="film"]:has(#film-embed:not([hidden])) .film-viewport-controls,.ray-studio .film-viewport[data-fullscreen="film"]:has(#film-recovery:not([hidden])) .film-viewport-controls{opacity:1}
.ray-studio .film-viewport[data-fullscreen="film"] #film-cc{display:none}
.ray-studio .film-viewport[data-fullscreen="film"] .film-expanded-access{display:flex;align-items:center;gap:7px;justify-content:flex-end;margin-block-start:5px}
@media(pointer:coarse){.ray-studio .film-viewport[data-fullscreen="film"] .film-viewport-controls{opacity:1}}
@media(max-width:899px){
 .ray-studio .room-board{grid-template-columns:minmax(0,1fr)}
 .ray-studio .room-media-main,.ray-studio .room-radio-rail{grid-column:1;grid-row:auto}
 .ray-studio .room-radio-rail{order:2}
 .ray-studio #live[data-fullscreen="room"] .room-board{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,3fr) minmax(116px,2fr)}
 .ray-studio #live[data-fullscreen="room"] .room-video-frame{max-height:max(110px,calc(50dvh - 110px))}
 .ray-studio #live[data-fullscreen="room"] #room-mix-card:not([open]){display:none}
}
@media(max-width:510px){
 .ray-studio .top-in{min-height:55px}
 .ray-studio .top nav{padding:0;border:0;background:none}
 .ray-studio #hangout #hang-cinema{padding:8px}
 .ray-studio #hangout .hang-bar{border-radius:14px}
 .ray-studio #hangout .hang-bar .btn{font-size:.72rem;padding-inline:7px;min-height:33px}
 .ray-studio .film-library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ray-studio .film-library-search input{font-size:16px}
 .ray-studio .film-library-version{column-gap:5px}
 .ray-studio #live[data-fullscreen="room"] .controls{width:100%}
 .ray-studio #live[data-fullscreen="room"] #room-exit-full{font-size:.68rem;min-height:32px;padding-inline:7px}
}

.ray-studio .film-library-providers{margin:11px 0 6px}
.ray-studio .film-library-art[data-tone="sintel"]{background:radial-gradient(ellipse at 40% 47%,#6a3a78,#292541 49%,#161421 80%)}
.ray-studio .film-library-art[data-tone="bunny"]{background:radial-gradient(ellipse at 55% 47%,#395e4e,#232e30 49%,#141824 80%)}
.ray-studio .film-library-art[data-tone] .film-library-placeholder{font-size:2.7rem;color:#f3eafd}

.ray-studio #side #chat-input,.ray-studio #hangout input:not([type="range"]),.ray-studio #hangout select,.ray-studio :is(#setup,#devices) :is(input:not([type="range"]),select){background:#1d1b27;border-color:#3c394a;color:var(--light)}
.ray-studio .room-host-tools summary,.ray-studio .room-person-audio summary{background:#242133;border-color:#464058;color:#eae5f7}
.ray-studio #side .messages{padding:10px}
.ray-studio #side .messages:empty::before{content:"هنوز پیامی نیست";display:block;text-align:center;color:var(--dim);font-size:.77rem;padding-top:14px}
.ray-studio .room-media-main,.ray-studio #side :is(.messages,.people){scrollbar-width:thin;scrollbar-color:#4c4560 #17151e}
.ray-studio .film-viewport[data-fullscreen="film"][data-idle]:not(:has(.film-viewport-controls :focus)){cursor:none}
@media(pointer:coarse){.ray-studio .film-viewport[data-fullscreen="film"][data-idle]{cursor:auto}}

/* Archive navigation follows the same layout as the film picker. */
.ray-studio .film-library-filters{flex-wrap:wrap}
.ray-studio #hangout .film2media-archive{margin-block:12px 5px;padding:clamp(12px,2.3vw,22px);background:#1a1724;border-color:#433a54}
.ray-studio .film2media-archive h3{font-size:1.15rem;margin:0 0 7px}
.ray-studio .film2media-archive p,.ray-studio .film-library-folder-note{font-size:.83rem;color:var(--dim);line-height:1.8;max-width:65ch}
.ray-studio .film2media-archive .film-library-actions,.ray-studio #film-library-provider-links{justify-content:flex-start}
.ray-studio .film-library-refine{margin:0 0 12px;max-width:650px}
.ray-studio .film-library-refine div{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:6px 10px;padding-block:5px}
.ray-studio .film-library-refine label{display:grid;gap:3px;min-width:0;font-size:.76rem}
.ray-studio .film-library-refine select,.ray-studio #film-library-season{border-radius:8px;border-width:1px;min-width:0;padding:6px}
.ray-studio .film-library-pages{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-block:12px 2px}
.ray-studio #film-library-count{font-size:.78rem;color:var(--dim);margin:0 0 0 5px}
.ray-studio #film-library-next{margin:0}
.ray-studio #film-library-jump{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.ray-studio #film-library-jump label,.ray-studio #film-library-season-label{font-size:.78rem;color:var(--dim)}
.ray-studio #film-library-page{inline-size:66px;padding:5px;border-radius:8px;border-width:1px;direction:ltr}
.ray-studio .film-library-pages button{min-height:35px}
.ray-studio #film-library-provider-links:empty{display:none}

/* Camera cards and active speakers */
.ray-studio #room-people .tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:12px;max-width:90rem}
.ray-studio #room-people .tile{min-height:84px;max-height:none;aspect-ratio:auto;isolation:isolate}
.ray-studio #room-people .tile.camera-on{width:100%;max-width:36rem;min-height:136px;max-height:330px;aspect-ratio:16/9}
.ray-studio #room-people .tile.camera-on video{cursor:zoom-in;object-fit:contain}
.ray-studio #room-people .tile-focus{z-index:5;background:#151427dd;box-shadow:0 2px 8px #0008}
.ray-studio #room-people .tile.speaking,.ray-studio #room-camera-preview.speaking,.ray-studio .room-person.speaking{border-color:#79fac0;box-shadow:0 0 0 2px #79fac099,0 0 15px #64eab644}
.ray-studio .speaker-badge{display:inline-flex;align-items:center;gap:.35rem;color:#dcffee;background:#123f34;border:1px solid #38bd84;border-radius:99px;padding:.1rem .48rem;font-size:.74rem;white-space:nowrap}
.ray-studio .speaker-badge::before{content:'';width:.44rem;height:.44rem;background:#75fac0;border-radius:50%}
.ray-studio .tile>.speaker-badge{position:absolute;inset-inline-start:.6rem;inset-block-start:.6rem;z-index:3}
.ray-studio .room-person .speaker-badge{align-self:flex-start}
.ray-studio #room-camera-preview{width:min(94vw,62rem);max-width:94vw;padding:0;border-color:#52456a;background:#171523}
.ray-studio #room-camera-preview .dialog-title{display:flex;align-items:center;gap:.75rem;padding-block:.6rem}
.ray-studio #room-camera-preview .dialog-title>h2{margin:0;font-size:1.12rem;flex:1}
.ray-studio #room-camera-video{display:block;width:100%;max-height:76vh;aspect-ratio:16/9;background:#101014;object-fit:contain}
#film-library-season-label:not([hidden]),#film-library-episode-label:not([hidden]){display:inline-flex;align-items:center;gap:.4rem;margin:0 0 .75rem .9rem}

/* Keep the cinema, room actions and call area in separate rows. */
.ray-studio #hangout .room-board { gap:clamp(14px,1.6vw,26px); }
.ray-studio #hang-cinema { padding:clamp(12px,1.45vw,24px); }
.ray-studio #hang-cinema .hang-progress { margin-block:12px 5px; }
.ray-studio #hang-cinema .hang-transport { gap:8px; }
.ray-studio #hang-cinema .film-viewport:not([data-fullscreen="film"]):has(#film-empty:not([hidden])) .film-viewport-controls { display:none; }
.ray-studio #hang-cinema #film-tools { display:block; margin-block:16px 0; }
.ray-studio #hang-cinema #film-tools .film-tool-groups { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; padding-block:0 8px; }
.ray-studio #hang-cinema #film-tools .film-tool-groups > details { background:#14141b; }
.ray-studio #hangout .hang-meta { display:flex; justify-content:space-between; align-items:flex-start; gap:10px 18px; padding:8px 0 0; margin-block:12px 0; min-height:0; background:none; border:0; }
.ray-studio .hang-room-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.ray-studio .hang-room-actions #hang-controller:empty { display:none; }
.ray-studio .hang-react .hang-emojis { display:flex; margin:3px 0 0; padding-block-end:5px; gap:6px; }
.ray-studio #live:not([data-fullscreen="room"]) .call-stage > .controls { position:static; inset:auto; z-index:auto; display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; width:min(100%,36rem); max-width:100%; min-width:0; margin:clamp(18px,2vw,32px) 0 0; padding:6px; box-shadow:none; backdrop-filter:none; }
.ray-studio #live .controls .control { min-width:0; min-height:45px; }
.ray-studio #live:not([data-fullscreen="room"]) #room-people { margin-block:12px 0; padding:clamp(12px,1.45vw,24px); }
.ray-studio #room-people .room-roster-head { gap:8px 16px; align-items:flex-start; justify-content:space-between; margin-block-end:13px; }
.ray-studio #room-people .room-voice-panel { margin:0; }
.ray-studio #room-people .room-voice-panel .room-voice { padding:2px 0 8px; }
.ray-studio #room-people #tiles:not(.focus) { grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); margin:0; gap:12px; }
.ray-studio #room-people #tiles:not(.focus):not(:has(.camera-on)) { max-inline-size:42rem; }
.ray-studio #room-people #tiles:not(.focus) .tile:not(.camera-on) { max-inline-size:20rem; }
@media(max-width:520px) {
 .ray-studio #live:not([data-fullscreen="room"]) .call-stage > .controls { gap:2px; padding:4px; }
 .ray-studio #live .controls .control { padding-inline:0; }
 .ray-studio #live .controls .control small { font-size:clamp(8px,2.45vw,11px); }
 .ray-studio #hangout .hang-meta { gap:8px; }
 .ray-studio #room-people #tiles:not(.focus) .tile:not(.camera-on) { max-inline-size:none; }
}
