:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #11171b; color: #f1f5f4; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: 1rem max(1rem, calc((100% - 68rem)/2)); background: #172127; border-bottom: 1px solid #35464d; }
header a { color: #f1f5f4; text-decoration: none; font-weight: 750; }
header span { color: #aac0c1; font-size: .9rem; }
main { max-width: 70rem; margin: auto; padding: 1.2rem; }
.entry { width: min(100%, 30rem); margin: clamp(1rem, 10vh, 6rem) auto; padding: 1.5rem; border: 1px solid #35464d; border-radius: 1rem; background: #172127; }
h1 { margin: 0; font-size: clamp(1.55rem, 3.5vw, 2.15rem); }
p { margin: .75rem 0; color: #bdd0cf; }
label { display: block; font-weight: 650; margin-bottom: .45rem; }
input, button { font: inherit; border: 1px solid #4b5d61; border-radius: .5rem; padding: .64rem .8rem; min-height: 2.75rem; }
input { flex: 1; min-width: 0; background: #11171b; color: inherit; }
.entry input { display: block; width: 100%; margin-bottom: .8rem; }
button { color: inherit; background: #222e34; cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
button:focus-visible, input:focus-visible { outline: 2px solid #79d7b6; outline-offset: 2px; }
button.primary, button[aria-pressed="true"] { background: #78d6b5; border-color: #78d6b5; color: #11231e; font-weight: 700; }
button.danger { color: #ffb8b8; border-color: #a56262; }
#entryError { color: #ffb8b8; }
.studio-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .35rem 1rem; }
.stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: #435659; border: 1px solid #435659; border-radius: .65rem; overflow: hidden; }
.stage[data-layout="host"], .stage[data-layout="guest"] { grid-template-columns: 1fr; }
.stage[data-layout="host"] #guestTile, .stage[data-layout="guest"] #hostTile { visibility: hidden; position: absolute; width: 1px; height: 1px; }
figure { position: relative; min-width: 0; aspect-ratio: 16/9; max-height: 64vh; margin: 0; overflow: hidden; display: grid; place-items: center; background: #070e13; }
figure video { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
figure figcaption { position: absolute; z-index: 1; bottom: .55rem; left: .55rem; border-radius: .3rem; padding: .25rem .45rem; background: #10191fe8; }
figure .placeholder { color: #9ab1b1; }
figure.has-video .placeholder { display: none; }
.actions, #layouts, .invite > div { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .85rem; }
.invite { border-top: 1px solid #35464d; margin-top: 1rem; padding-top: .85rem; }
.invite > div { flex-wrap: nowrap; }
@media (max-width: 480px) { header span { display: none; } .invite > div { flex-wrap: wrap; } }

.orientation-hint { display: none; }

@media (orientation: portrait) {
  .orientation-hint { display: block; margin: 0 0 .75rem; }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .stage figure[data-video-shape="portrait"] { aspect-ratio: 3/4; max-height: 42vh; }
}
