
/* V162 – one actual Cozy Room state, two independently functioning pages. */
#page-theater .olu162-movie-room{margin:0 0 18px;border:1px solid rgba(237,194,126,.55);border-radius:21px;overflow:hidden;background:linear-gradient(180deg,#231829,#160f20);box-shadow:0 16px 52px #10081477;isolation:isolate}
#page-theater .olu162-room-top{position:relative;z-index:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;background:#21152af2;border-bottom:1px solid #d7a96a7a}
#page-theater .olu162-room-top>div:first-child{display:grid;gap:1px}
#page-theater .olu162-room-top strong{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(21px,2.8vw,30px);line-height:1.15;color:#ffe8bb}
#page-theater .olu162-room-top small{color:#e6c9d6;font-size:12px}
#page-theater .olu162-eyebrow{font-size:10px;letter-spacing:.12em;color:#f0c887;font-weight:800}
#page-theater .olu162-room-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#page-theater .olu162-room-actions .btn{width:auto!important;padding:8px 12px;font-size:12px}
#page-theater .olu162-scene{position:relative;min-height:590px;overflow:hidden;background:#281b35 url('assets/v57-bare-cozy-no-egg.webp') center top / 100% auto no-repeat}
#page-theater #olu162RoomFrame{position:relative;z-index:1;display:block;width:100%;height:520px;min-height:300px;border:0;background:transparent;transition:filter .35s ease}
#page-theater .olu162-dimmer{position:absolute;z-index:2;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(8,8,26,.22),rgba(8,7,24,.20) 42%,transparent 73%);transition:opacity .5s ease}
#page-theater .olu162-projector{position:absolute;z-index:3;top:7.5%;left:29%;width:62%;display:grid;gap:7px;pointer-events:none;transition:all .25s ease}
#page-theater .olu162-projector>*{pointer-events:auto}
#page-theater .olu162-projector .link-entry{margin:0;padding:9px 10px;border-radius:13px;border:1px solid #f8d39b99;background:#1f152ce8;box-shadow:0 5px 20px #08051280}
#page-theater .olu162-projector .link-entry label{font-size:10px;letter-spacing:.1em}
#page-theater .olu162-projector .link-entry .inline-form{gap:6px}
#page-theater .olu162-projector .link-entry input{font-size:13px;min-height:34px;padding:8px}
#page-theater .olu162-projector .link-entry button{font-size:12px;padding:8px 11px;white-space:nowrap}
#page-theater .olu162-projector .link-entry p{display:none}
#page-theater .olu162-projector .cinema{background:#191324eb;border:2px solid #e5ba7d;border-radius:14px;overflow:hidden;box-shadow:0 12px 40px #090511ad}
#page-theater .olu162-projector .cinema-bar{padding:7px 11px;min-height:auto;font-size:11px}
#page-theater .olu162-projector .cinema-controls{padding:7px 9px;display:flex;flex-wrap:wrap;gap:6px}
#page-theater .olu162-projector .cinema-controls .btn{font-size:11px;padding:6px 8px}
#page-theater .olu162-projector .video-viewport{aspect-ratio:16/9;height:auto;min-height:0}
#page-theater .olu162-room-tip{position:relative;z-index:2;padding:10px 12px;background:#24172b;color:#ffe4bf;font-size:13px;line-height:1.5;text-align:center;pointer-events:none}
#page-theater .olu162-embed-status{margin:0;padding:9px 14px;color:#dcc6d1;font-size:12px}
#page-theater .olu162-movie-room.is-decorating .olu162-dimmer{opacity:0}
#page-theater .olu162-movie-room.is-decorating .olu162-projector{top:12px;right:12px;left:auto;width:min(295px,41%)}
#page-theater .olu162-movie-room.is-decorating .olu162-projector .olu162-video-link{display:none}
#page-theater .olu162-movie-room.is-decorating .olu162-projector .cinema-bar{display:none}
#page-theater .olu162-movie-room.is-decorating .olu162-projector .cinema-controls .btn:not(#cinemaPlay){display:none}
#page-theater .olu162-movie-room.is-decorating .olu162-projector .cinema-controls{padding:4px}
#page-theater .olu162-movie-room.is-decorating .olu162-projector #cinemaStatus{font-size:10px}
#page-theater .olu162-movie-room.is-decorating .olu162-room-tip{background:#3e2a44}
#page-theater .olu162-projector .video-placeholder{padding:5px}
#page-theater .olu162-projector .video-placeholder h3{font-size:clamp(13px,1.6vw,22px);margin:0}
#page-theater .olu162-projector .video-placeholder p{font-size:clamp(10px,1.2vw,15px);margin:0}
#page-theater .olu162-projector .video-placeholder>div{font-size:24px}
#page-theater .theater-layout{grid-template-columns:minmax(0,1fr)!important}
#page-theater .theater-layout>aside{max-width:100%;display:grid;gap:10px}
@media(max-width:850px){
 #page-theater .olu162-projector{top:4%;left:18%;width:78%}
 #page-theater .olu162-movie-room.is-decorating .olu162-projector{width:min(270px,52%)}
}
@media(max-width:560px){
 #page-theater .olu162-room-top{padding:10px;gap:8px}
 #page-theater .olu162-room-top strong{font-size:21px}
 #page-theater .olu162-room-actions .btn{padding:6px 9px;font-size:11px}
 #page-theater .olu162-projector{top:3%;left:3%;width:94%;gap:5px}
 #page-theater .olu162-projector .link-entry{padding:6px}
 #page-theater .olu162-projector .link-entry .inline-form{display:flex;flex-direction:row;align-items:center}
 #page-theater .olu162-projector .link-entry input{min-width:0;flex:1;font-size:11px}
 #page-theater .olu162-projector .link-entry button{width:auto;flex:0 0 auto;max-width:115px;white-space:normal;font-size:10px;line-height:1.1}
 #page-theater .olu162-projector .cinema-bar{display:none}
 #page-theater .olu162-projector .cinema-controls{gap:3px;padding:5px}
 #page-theater .olu162-projector .cinema-controls .btn{font-size:10px;padding:5px 6px}
 #page-theater .olu162-projector .cinema-controls [data-olu-call]{display:none}
 #page-theater .olu162-movie-room.is-decorating .olu162-projector{top:4px;right:4px;width:48%;max-width:210px}
 #page-theater .olu162-movie-room.is-decorating .olu162-projector .cinema-controls{display:none}
 #page-theater .olu162-scene{min-height:450px}
}
@media(prefers-reduced-motion:reduce){#page-theater .olu162-dimmer,#page-theater .olu162-projector{transition:none}}

/* V163: keep Movie Night playable and remove the oversized broken-frame gap if the room refuses to embed. */
#page-theater .olu162-movie-room.is-room-unavailable .olu162-scene {
  display:flex; flex-direction:column; min-height:0; padding:10px;
  background:linear-gradient(150deg,#312037,#18131f); overflow:visible;
}
#page-theater .olu162-movie-room.is-room-unavailable #olu162RoomFrame,
#page-theater .olu162-movie-room.is-room-unavailable .olu162-dimmer { display:none!important; }
#page-theater .olu162-movie-room.is-room-unavailable .olu162-projector {
  position:relative; inset:auto; top:auto; right:auto; left:auto;
  width:100%; max-width:100%; order:0; pointer-events:auto;
}
#page-theater .olu162-movie-room.is-room-unavailable .olu162-room-tip {
  order:1; padding:8px 10px; font-size:12px;
}
#page-theater .olu162-movie-room.is-room-unavailable .olu162-video-mount,
#page-theater .olu162-movie-room.is-room-unavailable .olu162-video-link { min-width:0; }
#page-theater .olu162-movie-room.is-room-unavailable .olu162-projector .cinema,
#page-theater .olu162-movie-room.is-room-unavailable .olu162-projector .link-entry { width:100%; box-sizing:border-box; }
/* Keep the full-screen video and controls accessible if the virtual room cannot load. */
#page-theater .olu162-movie-room.is-room-unavailable #olu162Decorate { opacity:.5; }


/* V164: The cinema and Cozy Room are two vertically stacked, independent surfaces.
   Do not overlay the YouTube controls on room artwork on small screens. */
#page-theater .olu162-scene {
  display:flex;flex-direction:column;min-height:0;overflow:visible;
  background:linear-gradient(160deg,#26172f,#1c1627);
}
#page-theater .olu162-projector,
#page-theater .olu162-movie-room.is-room-unavailable .olu162-projector {
  position:relative;inset:auto;left:auto;right:auto;top:auto;order:0;
  width:100%;max-width:none;display:grid;gap:10px;pointer-events:auto;
  padding:12px;box-sizing:border-box;transition:none;
  background:linear-gradient(180deg,#301d3a,#231829);
}
#page-theater .olu162-projector .link-entry,
#page-theater .olu162-projector .cinema {width:100%;box-sizing:border-box;}
#page-theater .olu162-projector .video-viewport{aspect-ratio:16/9;height:auto;min-height:0;}
#page-theater .olu162-movie-room.is-room-unavailable .olu162-scene {
  display:flex;flex-direction:column;min-height:0;padding:0;overflow:visible;
}
#page-theater .olu164-room-heading {
  order:1;padding:17px 14px 11px;background:#221729;
  border-top:1px solid #dab0805c;display:grid;gap:3px;text-align:center;
}
#page-theater .olu164-room-heading h3 {
  font:600 clamp(23px,3vw,32px)/1.1 'Cormorant Garamond',Georgia,serif;
  margin:0;color:#ffe7c2;
}
#page-theater .olu164-room-heading span {font-size:12px;color:#f0d5e1;}
#page-theater .olu164-room-window {
  order:2;position:relative;width:100%;background:#291b34;
  overflow:hidden;min-height:0;
}
#page-theater .olu164-room-preview {position:relative;display:block;width:100%;aspect-ratio:1/1;}
#page-theater .olu164-room-preview img {display:block;width:100%;height:100%;object-fit:contain;}
#page-theater .olu164-preview-label {
  position:absolute;bottom:10px;left:10px;max-width:calc(100% - 20px);
  padding:7px 11px;border-radius:30px;border:1px solid #e9c28dad;
  background:#21152ce0;color:#ffefd5;font:600 12px/1.35 system-ui,sans-serif;
}
#page-theater #olu162RoomFrame,
#page-theater .olu162-movie-room.is-room-unavailable #olu162RoomFrame {
  display:block!important;position:absolute;inset:0;
  width:100%;height:520px;min-height:0;border:0;
  background:transparent;opacity:0;pointer-events:none;
}
#page-theater .olu162-movie-room.is-room-ready .olu164-room-preview {display:none;}
#page-theater .olu162-movie-room.is-room-ready #olu162RoomFrame {
  display:block!important;position:relative;inset:auto;
  width:100%;height:520px;opacity:1;pointer-events:auto;
}
#page-theater .olu162-room-tip,
#page-theater .olu162-movie-room.is-room-unavailable .olu162-room-tip {
  order:3;padding:11px 13px;background:#24172b;text-align:center;
  font-size:12px;line-height:1.5;pointer-events:none;
}
#page-theater .olu162-movie-room.is-room-unavailable #olu162Decorate {opacity:1;}
#page-theater .olu162-dimmer {display:none!important;}
#page-theater .olu162-projector .cinema-controls {display:flex;flex-wrap:wrap;gap:6px;padding:8px;}
#page-theater .olu162-projector .cinema-controls .btn {font-size:11px;padding:7px 9px;}
#page-theater .olu162-projector .link-entry p {display:block;}
@media(max-width:560px){
  #page-theater .olu162-projector,
  #page-theater .olu162-movie-room.is-room-unavailable .olu162-projector {
    top:auto;left:auto;right:auto;width:100%;max-width:none;padding:9px;gap:7px;
  }
  #page-theater .olu162-scene {min-height:0;}
  #page-theater .olu162-projector .link-entry {padding:9px;}
  #page-theater .olu162-projector .link-entry .inline-form {display:flex;gap:6px;align-items:center;}
  #page-theater .olu162-projector .link-entry input {flex:1;min-width:0;font-size:12px;}
  #page-theater .olu162-projector .link-entry button {
    flex:0 0 auto;width:auto;max-width:125px;white-space:normal;
    line-height:1.15;min-height:39px;font-size:11px;
  }
  #page-theater .olu162-projector .cinema-controls {display:flex;gap:5px;padding:7px;}
  #page-theater .olu162-projector .cinema-controls .btn {font-size:11px;padding:7px 8px;}
  #page-theater .olu162-projector .cinema-controls [data-olu-call] {display:none;}
  #page-theater .olu164-room-heading {padding:15px 8px 10px;}
}
