/* Telecine — estilos */
:root {
  --bg: #09090b;
  --bg-2: #0e0e12;
  --surface: #141419;
  --surface-2: #1b1b21;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f2eee8;
  --muted: #9c968f;
  --muted-2: #6e6a66;
  --accent: #e9a66b;
  --accent-2: #f3c391;
  --accent-dim: rgba(233, 166, 107, .13);
  --rose: #e07a8f;
  --green: #7ac9a6;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #140d06; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.is-hidden { display: none !important; }

/* ---------- Elementos compartidos ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: -.02em; }

.eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .28em;
  color: var(--accent); text-transform: uppercase; margin: 0;
}
.eyebrow-line { width: 26px; height: 1px; background: var(--accent); opacity: .5; }

.primary-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 50px; padding: 0 20px;
  border: 0; border-radius: 10px;
  background: var(--accent); color: #17100a;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s;
  box-shadow: 0 8px 28px -12px rgba(233, 166, 107, .6);
}
.primary-btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.primary-btn:active { transform: translateY(0); }
.primary-btn svg { width: 18px; height: 18px; }
.primary-btn:disabled { opacity: .5; cursor: wait; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; flex: 0 0 34px;
  border: 1px solid var(--line); border-radius: 9px;
  background: rgba(255, 255, 255, .03); color: var(--muted);
  transition: color .18s, background .18s, border-color .18s;
  font-size: 20px; line-height: 1;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .08); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }

.text-link {
  border: 0; background: none; padding: 0;
  color: var(--muted); font-size: 12px; text-decoration: underline;
  text-underline-offset: 3px; transition: color .18s;
}
.text-link:hover { color: var(--accent); }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
.field input {
  width: 100%; height: 45px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 9px;
  background: rgba(255, 255, 255, .035); color: var(--text);
  font-size: 14px; outline: none;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus { border-color: rgba(233, 166, 107, .55); background: rgba(255,255,255,.06); box-shadow: 0 0 0 3px var(--accent-dim); }

/* ---------- Portada ---------- */

.page-landing { min-height: 100vh; display: flex; flex-direction: column; position: relative; }

.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 44% at 50% -8%, rgba(233, 166, 107, .13), transparent 70%),
    radial-gradient(45% 35% at 92% 95%, rgba(224, 122, 143, .07), transparent 70%),
    linear-gradient(180deg, #0b0b0e, var(--bg) 60%);
}

.site-header {
  width: min(1120px, calc(100% - 48px)); margin: 0 auto;
  height: 88px; display: flex; align-items: center; justify-content: space-between;
}
.site-header-note { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }

.landing-main { flex: 1; display: grid; place-items: center; padding: 30px 24px 60px; }
.hero { width: min(560px, 100%); text-align: center; animation: rise .7s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 6.3vw, 62px); line-height: 1.07;
  letter-spacing: -.035em; margin: 22px 0 18px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 auto 34px; max-width: 440px; }

.entry-card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border: 1px solid var(--line); border-radius: 16px;
  padding: 10px; text-align: left;
  box-shadow: 0 24px 70px -40px rgba(0, 0, 0, .9);
  backdrop-filter: blur(12px);
}
.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(0,0,0,.25); border-radius: 10px; margin-bottom: 18px; }
.tab {
  flex: 1; height: 38px; border: 0; border-radius: 7px; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 600;
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--text); }
.tab.is-active { background: rgba(255,255,255,.09); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.entry-form { padding: 6px 14px 14px; }
.entry-form.is-hidden { display: none; }
.form-hint { margin: 12px 0 0; text-align: center; color: var(--muted-2); font-size: 11px; min-height: 14px; }
.form-hint.error { color: var(--rose); }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line);
}
.feature { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.feature-icon { color: var(--accent); font-size: 20px; line-height: 1; }
.feature strong { display: block; font-size: 12px; font-weight: 600; }
.feature small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 10.5px; line-height: 1.45; }

.site-footer {
  width: min(1120px, calc(100% - 48px)); margin: 0 auto;
  min-height: 64px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  color: var(--muted-2); font-size: 11px;
}

/* ---------- Diálogo de administración ---------- */

.admin-dialog {
  width: min(480px, calc(100% - 32px)); max-height: min(85vh, 760px);
  border: 1px solid var(--line-strong); border-radius: 18px;
  background: var(--surface); color: var(--text); padding: 28px;
  box-shadow: 0 40px 100px -30px #000; overflow-y: auto;
}
.admin-dialog::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.dialog-close-form { position: absolute; top: 16px; right: 16px; margin: 0; }
.admin-dialog h2 { font-family: var(--serif); font-size: 30px; font-weight: 400; margin: 10px 0 8px; }
.admin-dialog h3 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.dialog-lead { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 22px; }
.upload-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 24px; border: 1px dashed var(--line-strong); border-radius: 12px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.upload-drop:hover { border-color: var(--accent); background: var(--accent-dim); }
.upload-icon { font-size: 22px; color: var(--accent); }
.upload-drop strong { font-size: 13px; }
.upload-drop small { color: var(--muted-2); font-size: 11px; }
.progress-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); margin-top: 12px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.movie-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.movie-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.movie-list li small { color: var(--muted-2); font-size: 11px; white-space: nowrap; }
.movie-empty { color: var(--muted-2); font-size: 12px; justify-content: center !important; }

/* ---------- Sala ---------- */

.page-room { height: 100vh; height: 100dvh; overflow: hidden; }

.gate {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 24px;
  background: radial-gradient(70% 60% at 50% 30%, #1a1512, var(--bg) 75%);
}
.gate.is-gone { opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.gate-card { width: min(440px, 100%); text-align: center; animation: rise .6s var(--ease) both; }
.gate-card h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 46px); font-weight: 400; letter-spacing: -.03em; margin: 22px 0 14px; }
.gate-card > p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 auto 28px; max-width: 340px; }
.gate-card .primary-btn { max-width: 260px; margin: 0 auto; }
.gate-error { display: block; margin-top: 16px; color: var(--rose); font-size: 12px; min-height: 14px; }

.room-shell { height: 100%; display: flex; flex-direction: column; }

.room-header {
  flex: 0 0 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.room-header-left, .room-header-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.room-header-right { justify-content: flex-end; }
.brand-small .brand-mark { width: 24px; height: 24px; }
.brand-small .brand-name { font-size: 17px; }
.header-divider { width: 1px; height: 20px; background: var(--line); }
.code-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(255,255,255,.03); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  transition: border-color .18s, background .18s;
}
.code-chip:hover { border-color: var(--accent); background: var(--accent-dim); }
.code-chip svg { width: 14px; height: 14px; opacity: .7; }
.room-header-center { min-width: 0; }
.now-title { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 40vw; }
.people { display: flex; align-items: center; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #14100c;
  border: 2px solid var(--bg-2); margin-left: -7px;
}
.avatar:first-child { margin-left: 0; }
.avatar.waiting { opacity: .55; }
.avatar.host::after {
  content: '★'; position: absolute; transform: translate(11px, -11px);
  font-size: 9px; color: var(--accent);
}
.avatar-wrap { position: relative; }

.room-body { flex: 1; display: flex; min-height: 0; }
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 18px 22px 10px; gap: 10px; }

.player-shell {
  position: relative; flex: 1; min-height: 0;
  border-radius: 12px; overflow: hidden; background: #000;
  border: 1px solid var(--line);
}
.player-shell video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.video-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent 22%, transparent 62%, rgba(0,0,0,.78));
  opacity: .9; transition: opacity .25s;
}
.player-shell:not(.has-movie) .video-shade { opacity: 0; }

.center-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  background: rgba(12,10,9,.55); backdrop-filter: blur(8px); color: #fff;
  display: grid; place-items: center; z-index: 3;
  transition: transform .2s var(--ease), background .2s, opacity .2s;
}
.center-play:hover { transform: translate(-50%, -50%) scale(1.07); background: var(--accent); color: #17100a; }
.center-play svg { width: 34px; height: 34px; margin-left: 3px; }
.center-play.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.85); }

.spinner {
  position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px;
  border: 2px solid rgba(255,255,255,.18); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .8s linear infinite; opacity: 0; pointer-events: none; z-index: 4;
}
.spinner.is-on { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-topbar { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; z-index: 5; pointer-events: none; }
.sync-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.13); border-radius: 100px;
  background: rgba(10,10,12,.55); backdrop-filter: blur(8px);
  font-size: 11px; color: #e6e1db;
}
.sync-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.sync-pill.warn i { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.sync-pill.wait i { background: var(--rose); box-shadow: 0 0 8px var(--rose); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.reactions-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 6; }
.floating-emoji { position: absolute; bottom: 70px; font-size: 34px; animation: float-up 2.6s ease-out forwards; }
@keyframes float-up {
  0% { transform: translateY(0) scale(.5); opacity: 0; }
  15% { transform: translateY(-15px) scale(1.2); opacity: 1; }
  100% { transform: translateY(-260px) scale(1); opacity: 0; }
}

/* Selector de película */
.movie-picker {
  position: absolute; inset: 0; z-index: 8; display: grid; place-items: center;
  background: radial-gradient(70% 70% at 50% 40%, #1b1714, #070708 80%);
  overflow-y: auto; padding: 30px 24px;
}
.picker-inner { width: min(660px, 100%); }
.movie-picker h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); font-weight: 400; margin: 12px 0 8px; }
.picker-lead { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 24px; }
.movie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.movie-card {
  text-align: left; padding: 16px; min-height: 110px;
  border: 1px solid var(--line); border-radius: 11px;
  background: linear-gradient(150deg, rgba(233,166,107,.1), rgba(255,255,255,.02));
  color: var(--text); display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.movie-card:hover { border-color: var(--accent); transform: translateY(-2px); background: linear-gradient(150deg, rgba(233,166,107,.2), rgba(255,255,255,.04)); }
.movie-card .mc-title { font-family: var(--serif); font-size: 17px; line-height: 1.25; }
.movie-card .mc-size { color: var(--muted-2); font-size: 10px; margin-top: 10px; }
.picker-empty { color: var(--muted); font-size: 13px; text-align: center; line-height: 1.6; }

/* Controles */
.controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 7;
  padding: 30px 18px 14px; opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.controls.is-visible, .player-shell:hover .controls, .player-shell:focus-within .controls { opacity: 1; transform: none; pointer-events: auto; }
.seek-row { display: flex; }
.seek-wrap { position: relative; flex: 1; height: 18px; display: flex; align-items: center; }
.buffered-bar { position: absolute; left: 0; top: 7px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); width: 0; pointer-events: none; }
#seek {
  position: relative; z-index: 2; width: 100%; margin: 0; height: 18px;
  background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer;
}
#seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) var(--progress, 0%), rgba(255,255,255,.24) var(--progress, 0%));
}
#seek::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,.24); }
#seek::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
#seek::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; margin-top: -4px; box-shadow: 0 0 0 3px rgba(233,166,107,.28);
  opacity: 0; transition: opacity .2s;
}
#seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; opacity: 0; }
.seek-wrap:hover #seek::-webkit-slider-thumb, #seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
.seek-wrap:hover #seek::-moz-range-thumb, #seek:focus-visible::-moz-range-thumb { opacity: 1; }
#seek:disabled { cursor: default; }
.seek-tip {
  position: absolute; bottom: 22px; transform: translateX(-50%);
  padding: 4px 7px; border-radius: 5px; background: rgba(0,0,0,.8);
  font-size: 10px; color: #fff; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.seek-wrap:hover .seek-tip { opacity: 1; }

.controls-row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.controls-left, .controls-right { display: flex; align-items: center; gap: 8px; }
.control-btn {
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: #eee;
  transition: background .18s, color .18s;
}
.control-btn:hover { background: rgba(255,255,255,.13); color: #fff; }
.control-btn svg { width: 19px; height: 19px; }
.time-label { font-size: 11px; color: #ddd; font-variant-numeric: tabular-nums; margin-left: 4px; }
.time-sep { color: rgba(255,255,255,.4); margin: 0 5px; }
.volume { width: 74px; -webkit-appearance: none; appearance: none; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); outline: none; }
.volume::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.volume::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; }

.stage-footer { display: flex; align-items: center; justify-content: space-between; min-height: 24px; padding: 0 4px; }
.stage-footer > span { font-size: 11px; color: var(--muted-2); }
.chat-mobile-btn { display: none; }

/* Chat */
.chat-panel {
  width: 320px; flex: 0 0 320px; display: flex; flex-direction: column;
  border-left: 1px solid var(--line); background: var(--bg-2); min-height: 0;
}
.chat-panel.is-collapsed { display: none; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.chat-header strong { display: block; font-family: var(--serif); font-size: 17px; font-weight: 400; }
.chat-header small { display: block; color: var(--muted-2); font-size: 10px; margin-top: 3px; }
.chat-close { display: none; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.chat-empty { margin: auto; text-align: center; color: var(--muted-2); font-size: 12px; line-height: 1.6; max-width: 220px; }
.msg { max-width: 100%; animation: rise .3s var(--ease) both; }
.msg-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; }
.msg-from { font-size: 11px; font-weight: 700; color: var(--accent); }
.msg-time { font-size: 9px; color: var(--muted-2); }
.msg-body { font-size: 13px; line-height: 1.55; color: #e6e1dc; word-break: break-word; }
.msg.is-mine .msg-from { color: var(--rose); }
.msg-system { align-self: center; color: var(--muted-2); font-size: 11px; text-align: center; font-style: italic; }

.chat-bottom { border-top: 1px solid var(--line); padding: 12px 14px 14px; }
.reactions-bar { display: flex; justify-content: space-between; margin-bottom: 12px; }
.reactions-bar button {
  width: 34px; height: 32px; border: 1px solid transparent; border-radius: 8px;
  background: rgba(255,255,255,.035); font-size: 16px; line-height: 1;
  transition: transform .15s var(--ease), background .15s;
}
.reactions-bar button:hover { transform: translateY(-3px) scale(1.12); background: rgba(255,255,255,.09); }
.chat-form { display: flex; gap: 8px; }
.chat-form input {
  flex: 1; min-width: 0; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: rgba(255,255,255,.035); color: var(--text); font-size: 13px; outline: none;
}
.chat-form input::placeholder { color: var(--muted-2); }
.chat-form input:focus { border-color: rgba(233,166,107,.5); }
.chat-form button {
  width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 9px;
  background: var(--accent); color: #17100a; display: grid; place-items: center;
}
.chat-form button svg { width: 18px; height: 18px; }
.unread { background: var(--rose); color: #fff; border-radius: 20px; padding: 1px 6px; font-size: 10px; margin-left: 5px; }

/* Ajustes */
.settings-popover {
  position: fixed; top: 58px; right: 20px; z-index: 30; width: 290px;
  padding: 18px; border: 1px solid var(--line-strong); border-radius: 13px;
  background: var(--surface); box-shadow: 0 30px 70px -20px #000;
}
.settings-popover > strong { font-family: var(--serif); font-size: 18px; font-weight: 400; display: block; margin-bottom: 14px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.setting-row > span { font-size: 12px; }
.setting-row small { display: block; color: var(--muted-2); font-size: 10px; margin-top: 4px; }
.setting-row select { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; font-size: 12px; }
.setting-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.settings-note { color: var(--muted-2); font-size: 10px; margin: 8px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 14px);
  padding: 10px 18px; border-radius: 100px; background: rgba(20,20,24,.94);
  border: 1px solid var(--line-strong); color: var(--text); font-size: 12px;
  opacity: 0; pointer-events: none; z-index: 60; transition: opacity .25s, transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Modo cine y pantalla completa */
.player-shell.is-theater { border-radius: 0; }
.page-room.theater .chat-panel { display: none; }
.player-shell:fullscreen { border: 0; border-radius: 0; }
.player-shell:fullscreen video { object-fit: contain; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .chat-panel {
    position: fixed; z-index: 25; top: 62px; right: 0; bottom: 0;
    width: min(340px, 88vw); flex-basis: auto;
    transform: translateX(102%); transition: transform .3s var(--ease);
    box-shadow: -20px 0 60px -20px #000;
  }
  .chat-panel.is-open { transform: none; }
  .chat-close { display: inline-grid; }
  .chat-mobile-btn {
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted);
    border-radius: 8px; padding: 5px 10px; font-size: 11px;
  }
  .stage { padding: 12px 14px 8px; }
  .room-header { padding: 0 14px; }
  .room-header-center { display: none; }
}

@media (max-width: 640px) {
  .site-header { height: 70px; width: calc(100% - 32px); }
  .site-header-note { display: none; }
  .landing-main { padding: 20px 16px 40px; }
  .hero h1 { font-size: 38px; margin-top: 18px; }
  .hero-lead { font-size: 14px; margin-bottom: 26px; }
  .features { gap: 10px; margin-top: 30px; }
  .feature small { display: none; }
  .site-footer { width: calc(100% - 32px); flex-direction: column; justify-content: center; gap: 8px; text-align: center; padding: 14px 0; }
  .people .avatar:nth-child(n+3) { display: none; }
  .controls { padding: 24px 10px 10px; }
  .volume { display: none; }
  .center-play { width: 62px; height: 62px; }
  .center-play svg { width: 28px; height: 28px; }
  .movie-picker { padding: 22px 14px; }
  .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .movie-card { padding: 12px; min-height: 92px; }
  .movie-card .mc-title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
