/* The Kinoplex (see kinoplex.js). Uses the Lobby's colour tokens; --c is the Kinoplex's red. */
.cn-screen { position: relative; aspect-ratio: 16 / 9; max-height: 64vh; width: 100%; background: #000; overflow: hidden;
  border: 1px solid var(--line-hi); box-shadow: 0 0 60px color-mix(in srgb, var(--c) 18%, transparent); }
.cn-screen.idle { background: radial-gradient(ellipse at 50% 40%, rgba(220,38,38,.18), #000 70%); }
.cn-screen:fullscreen { max-height: none; border: 0; }
.cn-video { width: 100%; height: 100%; display: block; background: #000; }
/* YouTube films play in YouTube's player; clicks go to our controls, not to it (a click there would pause only you) */
.cn-yt { position: absolute; inset: 0; background: #000; }
.cn-yt iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.cn-video[hidden], .cn-yt[hidden] { display: none; }
.cn-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 20px;
  color: var(--ink-dim); background: rgba(0,0,0,.55); font-size: 13px; }
.cn-msg[hidden], .cn-msg:empty { display: none; }
.cn-msg b { display: block; font: 900 clamp(14px, 2.4vw, 22px) var(--display); letter-spacing: .14em; color: #fff; margin-bottom: 4px; }
.cn-react-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cn-float { position: absolute; bottom: 4%; font-size: clamp(26px, 4vw, 40px); animation: cnfloat 3.2s ease-out forwards; text-align: center; }
.cn-float small { display: block; font: 600 11px var(--mono); color: #fff; text-shadow: 0 1px 3px #000; }
@keyframes cnfloat { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: 1; transform: translateY(-20px) scale(1.1); }
  100% { transform: translateY(-260px) scale(1); opacity: 0; } }

.cn-ctrl { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-top: 0; background: rgba(0,0,0,.4); }
.cn-b { border: 1px solid var(--line-hi); background: rgba(0,0,0,.35); color: #fff; cursor: pointer; min-width: 34px; height: 32px; font-size: 14px; }
.cn-b.big { min-width: 44px; font-size: 15px; }
.cn-b:hover:not(:disabled) { background: var(--c); border-color: var(--c); }
.cn-b:disabled { opacity: .4; cursor: not-allowed; }
.cn-time { font: 12px var(--mono); color: var(--ink-dim); min-width: 4ch; text-align: center; }
.cn-seek { flex: 1; min-width: 60px; accent-color: var(--c); }
.cn-vol { width: 80px; accent-color: var(--c); }
.cn-sync { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); flex: none; }
.cn-sync.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.cn-sync.off { background: var(--warn); }

.cn-now { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; margin: 14px 0 8px; }
.cn-title { display: grid; gap: 2px; }
.cn-title b { font: 900 clamp(16px, 2.2vw, 22px) var(--display); letter-spacing: .05em; color: #fff; }
.cn-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.cn-warn { color: var(--warn); font-size: 12px; }
.cn-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.cn-reacts button { font-size: 20px; line-height: 1; padding: 6px 8px; border: 1px solid var(--line); background: rgba(0,0,0,.3); cursor: pointer; transition: transform .1s; }
.cn-reacts button:hover { transform: scale(1.2); border-color: var(--c); }

.cn-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; }
.cn-cols h3 { margin-top: 6px; }
.cn-queue, .cn-lib { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cn-queue li, .cn-lib li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); background: rgba(0,0,0,.25); font-size: 13px; }
.cn-queue li.faint { border-style: dashed; }
.cn-qn { font: 900 12px var(--display); color: var(--c); min-width: 1.5ch; }
.cn-qt { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #fff; }
.cn-qt small { display: block; color: var(--ink-faint); font-size: 11px; }
.cn-lib { max-height: 340px; overflow-y: auto; scrollbar-width: thin; }
.cn-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.cn-tabs button { border: 1px solid var(--line); background: none; color: var(--ink-dim); font: 700 9px var(--display); letter-spacing: .16em; padding: 7px 10px; cursor: pointer; text-transform: uppercase; }
.cn-tabs button[aria-selected="true"] { border-color: var(--c); color: #fff; background: color-mix(in srgb, var(--c) 18%, transparent); }
.cn-form { display: flex; gap: 6px; margin-bottom: 8px; }
.cn-form input { flex: 1; min-width: 0; background: rgba(0,0,0,.45); border: 1px solid var(--line-hi); color: #fff; font: 13px var(--mono); padding: 8px 10px; }
.cn-form input:focus { outline: 1px solid var(--c); }

@media (max-width: 1100px) { .cn-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .cn-vol { display: none; } .cn-ctrl { gap: 5px; padding: 6px; } }
@media (prefers-reduced-motion: reduce) { .cn-float { animation-duration: .01s; } }

/* ---------------- round two: subtitles, votes, ratings, film nights, history ---------------- */
.cn-b.cc { font: 700 11px var(--mono); }
.cn-b.cc.on { background: var(--c); border-color: var(--c); }
.cn-video::cue { background: rgba(0,0,0,.72); color: #fff; font-family: system-ui, sans-serif; font-size: 1.05em; line-height: 1.35; }
.cn-vote { border: 1px solid var(--line); background: none; color: var(--ink-dim); cursor: pointer; font-size: 12px; padding: 3px 7px; white-space: nowrap; }
.cn-vote.on { border-color: var(--c); color: #fff; background: color-mix(in srgb, var(--c) 22%, transparent); }
.cn-rate { display: flex; align-items: center; gap: 6px; margin: -2px 0 10px; }
.star { border: 0; background: none; cursor: pointer; font-size: 17px; color: rgba(255,255,255,.22); padding: 0 1px; line-height: 1; }
.star.on { color: #f5c542; text-shadow: 0 0 8px rgba(245,197,66,.5); }
.star:hover, .star:hover ~ .star { color: rgba(245,197,66,.6); }
.cn-avg { color: #f5c542; }
.cn-stars { display: block; margin-top: 2px; }
.cn-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 360px; overflow-y: auto; scrollbar-width: thin; }
.cn-hist li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); background: rgba(0,0,0,.25); font-size: 13px; }
.cn-night { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1px solid var(--line); border-left: 3px solid var(--c);
  background: rgba(0,0,0,.25); margin-bottom: 8px; }
.cn-night-when b { display: block; font: 700 12px var(--display); letter-spacing: .06em; color: #fff; }
.cn-night-when span { font-size: 12px; color: var(--c); }
.cn-night-what b { display: block; font-size: 14px; color: #fff; }
.cn-night-what small { display: block; color: var(--ink-dim); font-size: 11.5px; margin-top: 2px; }
.cn-rsvps { color: var(--ink) !important; }
.cn-rsvp { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cn-plan { margin-top: 6px; }
.cn-plan summary { list-style: none; display: inline-flex; }
.cn-plan summary::-webkit-details-marker { display: none; }
.cn-night-f { display: grid; gap: 6px; margin-top: 8px; }
.cn-night-f input, .cn-night-f select { background: rgba(0,0,0,.45); border: 1px solid var(--line-hi); color: #fff; font: 13px var(--mono); padding: 8px 10px; color-scheme: dark; }
@media (max-width: 600px) { .cn-night { grid-template-columns: minmax(0, 1fr); } }

/* picture in picture: while a YouTube film's player is unlocked (see unlockYT in kinoplex.js) */
.cn-screen.unlocked .cn-yt iframe { pointer-events: auto; }
.cn-screen.unlocked { outline: 2px dashed var(--c); outline-offset: -2px; }
.cn-b.on { background: var(--c); border-color: var(--c); }
