/* Club Mode: the options sheet (Let's Rage) and the full-screen clip player. Loaded by mode.html at /club. */

/* ---------- Options sheet ---------- */
#club-options { --accent: #b57bff; width: min(420px, calc(100vw - 32px)); max-height: calc(100svh - 32px); box-sizing: border-box;
  padding: 22px 20px 20px; border-radius: 22px; color: #fff; text-align: left; font-family: Outfit, system-ui, sans-serif;
  background: rgba(14, 14, 20, .86); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
#club-options::backdrop { background: rgba(0, 0, 0, .55); }
#club-options[open] { animation: club-in .22s ease; }
@keyframes club-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
#club-options .bar { width: 28px; height: 4px; border-radius: 2px; background: var(--accent); margin-bottom: 10px; }
#club-options h2 { margin: 0; font-size: 24px; font-weight: 800; }
#club-options .sub { margin: 4px 0 14px; font-size: 14px; color: rgba(255, 255, 255, .62); }
#club-options .close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; font-size: 18px; line-height: 1; }
/* OG Mode / New Mode: which set of clips, picked before the switches */
#club-options .sets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 10px; }
#club-options .sets button { display: flex; flex-direction: column; gap: 3px; min-height: 66px; padding: 11px 12px; box-sizing: border-box; text-align: left;
  border-radius: 14px; cursor: pointer; color: #fff; font: inherit; background: rgba(255, 255, 255, .05); border: 1.5px solid rgba(255, 255, 255, .14);
  transition: border-color .15s ease, background .15s ease; }
#club-options .sets button[aria-checked=true] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
#club-options .sets button:disabled { cursor: default; opacity: .45; }
#club-options .sets button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#club-options .sets .opt { font-size: 16px; font-weight: 800; }
#club-options .sets .hint { margin: 0; font-size: 13px; }
/* Quit: out of Club Mode, back to the main page */
#club-options .quit { display: block; width: 100%; margin-top: 10px; min-height: 48px; border-radius: 16px; cursor: pointer;
  font: 700 16px/1 Outfit, system-ui, sans-serif; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); }
#club-options .quit:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
#club-options ul { list-style: none; margin: 0; padding: 0; }
#club-options li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
#club-options label { display: flex; align-items: center; gap: 14px; padding: 12px 2px; cursor: pointer; }
#club-options label.off { cursor: default; opacity: .5; }
#club-options .txt { flex: 1; }
#club-options .opt { display: block; font-size: 16px; font-weight: 700; }
#club-options .hint { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, .55); }
#club-options input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: none; position: relative; margin: 0; cursor: pointer;
  width: 46px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .16); transition: background .2s ease; }
#club-options input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .2s ease; }
#club-options input[type=checkbox]:checked { background: var(--accent); }
#club-options input[type=checkbox]:checked::after { transform: translateX(18px); }
#club-options input[type=checkbox]:disabled { cursor: default; }
#club-options input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Screen: full screen / window / corner, a segmented row under its label */
#club-options li.view { display: flex; flex-direction: column; gap: 10px; padding: 12px 2px; }
#club-options .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
#club-options .seg button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 52px; padding: 7px 4px; border: 0;
  border-radius: 10px; cursor: pointer; color: rgba(255, 255, 255, .75); background: transparent; font: 700 14px/1.1 Outfit, system-ui, sans-serif;
  transition: background .15s ease, color .15s ease; }
#club-options .seg button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
#club-options .seg button[aria-checked=true] { color: #12061f; background: var(--accent); }
#club-options .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#club-options .seg svg { width: 26px; height: 20px; fill: currentColor; }
#club-options .seg svg .frame { fill: none; stroke: currentColor; stroke-width: 1.6; }
#club-options li.source .seg button { min-height: 40px; justify-content: center; }
#club-options .dev { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 11px;
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #12061f; background: #ffcf5c; }
#club-options .go { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 100%; margin-top: 16px;
  min-height: 54px; border: 0; border-radius: 16px; cursor: pointer; font: 800 18px/1 Outfit, system-ui, sans-serif; color: #12061f; background: var(--accent); }
#club-options .go small { font-weight: 500; font-size: 13px; opacity: .75; }
#club-options .go:active { transform: scale(.98); }
#club-options .go:disabled { opacity: .55; cursor: default; transform: none; }
#club-options .over { display: block; margin: 10px auto 0; padding: 6px 10px; border: 0; background: none; cursor: pointer;
  font: 500 14px Outfit, system-ui, sans-serif; color: rgba(255, 255, 255, .7); text-decoration: underline; text-underline-offset: 3px; }
#club-options .over[hidden] { display: none; }
#club-options .note { margin: 12px 0 0; font-size: 14px; text-align: center; color: #ffb3b3; }

/* ---------- Player ---------- */
#club-player { position: fixed; inset: 0; z-index: 100; background: #000; color: #fff; font-family: Outfit, system-ui, sans-serif; text-align: left;
  overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
#club-player[hidden] { display: none; }
#club-player.idle { cursor: none; }
/* The picture and everything over it (caption, controls, gate, toast). Fills the player unless the view is Corner. */
#club-player .stage { position: absolute; inset: 0; overflow: hidden; background: #000; }
#club-player .side, #club-player .below { display: none; }
/* The whole picture, never cropped: black bars when the shape doesn't match the screen. */
#club-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000;
  opacity: 0; transition: opacity .35s ease; }
#club-player video.on { opacity: 1; }

/* Spinner while a clip loads or the network catches up */
#club-player .spin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .18); border-top-color: #fff; animation: club-spin .8s linear infinite;
  opacity: 0; transition: opacity .3s ease .4s; pointer-events: none; }
#club-player.loading .spin { opacity: 1; }
@keyframes club-spin { to { transform: rotate(360deg); } }

/* What's playing: shows when a clip starts, then fades; comes back with the controls. */
#club-player .now { position: absolute; left: 0; bottom: 0; max-width: min(720px, 80vw); box-sizing: border-box;
  padding: 0 clamp(20px, 4vw, 56px) clamp(22px, 5vh, 56px); pointer-events: none;
  opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
/* a soft dark band behind the caption and the controls, so white text reads over any picture */
#club-player .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 45vh; pointer-events: none; opacity: 0; transition: opacity .6s ease;
  background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, 0)); }
#club-player.show-now .shade, #club-player.controls .shade { opacity: 1; }
#club-player.show-now .now { opacity: 1; transform: none; }
#club-player .now .count { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(13px, 1.4vw, 17px); font-weight: 700;
  letter-spacing: .12em; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
#club-player .now .count::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: #b57bff; }
#club-player .now .count[hidden] { display: none; }
#club-player .now h3 { margin: 8px 0 0; font-size: clamp(26px, 4vw, 52px); font-weight: 800; line-height: 1.05; text-shadow: 0 2px 18px rgba(0, 0, 0, .6); }
#club-player .now .meta { margin: 6px 0 0; font-size: clamp(14px, 1.6vw, 20px); color: rgba(255, 255, 255, .78); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
/* With the controls up, the caption sits above them. */
#club-player.controls .now { bottom: 96px; }
#club-player .now { transition: opacity .6s ease, transform .6s ease, bottom .25s ease; }

/* Up next: the last seconds of a clip (autoplay), or a card when autoplay is off */
#club-player .next { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(22px, 5vh, 56px); display: flex; align-items: center; gap: 12px;
  max-width: min(380px, 70vw); padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(14, 14, 20, .72);
  border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease, bottom .25s ease; pointer-events: none; }
#club-player.show-next .next { opacity: 1; transform: none; }
#club-player.controls .next { bottom: 96px; }
#club-player .next img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #222; flex: none; }
#club-player .next .lbl { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
#club-player .next .t { font-size: 16px; font-weight: 700; line-height: 1.15; }

/* Paused between clips (autoplay off), or the browser wants a tap before sound */
#club-player .gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 24px; text-align: center; background: rgba(0, 0, 0, .55) center / cover no-repeat; }
#club-player .gate[hidden] { display: none; }
#club-player .gate .lbl { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
#club-player .gate h3 { margin: 0; font-size: clamp(28px, 5vw, 56px); font-weight: 800; line-height: 1.05; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
#club-player .gate button { margin-top: 8px; min-width: 180px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 16px; cursor: pointer;
  font: 800 18px/1 Outfit, system-ui, sans-serif; color: #12061f; background: #b57bff; }

/* Controls: appear on mouse move, tap or a key; hide after a few seconds of playing. */
#club-player .top, #club-player .bottom { position: absolute; left: 0; right: 0; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
#club-player.controls .top, #club-player.controls .bottom { opacity: 1; pointer-events: auto; }
#club-player .top { top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) clamp(14px, 3vw, 32px) 30px; background: linear-gradient(to bottom, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
#club-player .top .where { font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
#club-player .bottom { bottom: 0; padding: 34px clamp(14px, 3vw, 32px) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); }
#club-player .row { display: flex; align-items: center; gap: 6px; }
#club-player .row .time { margin-left: 8px; font-size: 14px; color: rgba(255, 255, 255, .8); font-variant-numeric: tabular-nums; white-space: nowrap; }
#club-player .row .grow { flex: 1; }
#club-player .ib { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .15s ease; }
#club-player .ib:hover { background: rgba(255, 255, 255, .12); }
#club-player .ib:focus-visible { outline: 2px solid #b57bff; outline-offset: 1px; }
#club-player .ib svg { width: 26px; height: 26px; fill: currentColor; }
#club-player .ib.big svg { width: 32px; height: 32px; }
#club-player .ib:disabled { opacity: .35; cursor: default; background: transparent; }
#club-player .x { background: rgba(14, 14, 20, .55); border: 1px solid rgba(255, 255, 255, .14); }

/* Progress bar of the current clip: tap or drag to move through it */
#club-player .seek { position: relative; height: 22px; margin-bottom: 4px; cursor: pointer; touch-action: none; }
#club-player .seek .track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22);
  transition: height .15s ease, top .15s ease; }
#club-player .seek:hover .track, #club-player .seek.drag .track { top: 8px; height: 6px; }
#club-player .seek .buf, #club-player .seek .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; }
#club-player .seek .buf { background: rgba(255, 255, 255, .3); }
#club-player .seek .fill { background: #b57bff; }
#club-player .seek .knob { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .5); transform: scale(0); transition: transform .15s ease; }
#club-player .seek:hover .knob, #club-player .seek.drag .knob { transform: scale(1); }

/* A short message (a clip that couldn't play, the end) */
#club-player .toast { position: absolute; left: 50%; top: calc(24px + env(safe-area-inset-top)); transform: translate(-50%, -8px); max-width: 80vw;
  padding: 10px 16px; border-radius: 12px; font-size: 15px; background: rgba(14, 14, 20, .85); border: 1px solid rgba(255, 255, 255, .14);
  opacity: 0; transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
#club-player .toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Trivia along the way: over the picture, bottom right (where "Up next" goes; they never overlap in time) */
#club-player .quiz { position: absolute; right: clamp(16px, 3vw, 40px); bottom: clamp(22px, 5vh, 56px); width: min(460px, 46vw); box-sizing: border-box;
  padding: 14px 16px 16px; border-radius: 16px; background: rgba(14, 14, 20, .8); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease, bottom .25s ease; pointer-events: none; }
#club-player.show-quiz .quiz { opacity: 1; transform: none; }
/* the director under the title could be the answer: hidden until the reveal */
#club-player.quiz-ask .now .meta, #club-player.quiz-ask .side .meta { visibility: hidden; }
#club-player.controls .quiz { bottom: 96px; }
#club-player .quiz .qhead { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
#club-player .quiz .qn::before { content: ""; display: inline-block; vertical-align: middle; width: 22px; height: 4px; margin: -2px 10px 0 0; border-radius: 2px; background: #b57bff; }
#club-player .quiz .qt { font-variant-numeric: tabular-nums; font-size: 15px; color: #fff; letter-spacing: .04em; }
#club-player .quiz h4 { margin: 8px 0 12px; font-size: clamp(18px, 1.7vw, 26px); font-weight: 800; line-height: 1.15; }
#club-player .quiz .ch { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#club-player .quiz .ch li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 10px; box-sizing: border-box; border-radius: 10px;
  font-size: clamp(14px, 1.2vw, 18px); font-weight: 600; line-height: 1.15; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  transition: background .3s ease, opacity .3s ease, border-color .3s ease; }
#club-player .quiz .ch b { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 13px;
  background: rgba(255, 255, 255, .14); }
#club-player .quiz.reveal .ch li { opacity: .38; }
#club-player .quiz.reveal .ch li.right { opacity: 1; background: rgba(78, 214, 140, .22); border-color: #4ed68c; }
#club-player .quiz.reveal .ch li.right b { background: #4ed68c; color: #062012; }
#club-player .quiz .qbar { height: 4px; margin-top: 12px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
#club-player .quiz .qbar i { display: block; height: 100%; background: #b57bff; transform-origin: left; transition: transform .3s linear; }
#club-player .quiz.reveal .qbar { visibility: hidden; }
/* after the reveal: the interesting bit behind the answer (researched questions have one) */
#club-player .quiz .qx { margin: 10px 0 0; font-size: clamp(13px, 1.05vw, 16px); line-height: 1.35; color: rgba(255, 255, 255, .85); }
#club-player .quiz .qx[hidden] { display: none; }
#club-player .quiz .qx:not([hidden]) + .qbar { display: none; }

/* on a laptop or TV the card is about twice the size, so it reads from the sofa */
@media (min-width: 900px) and (min-height: 560px) {
  #club-player .quiz { width: clamp(460px, 60vw, 1100px); padding: clamp(16px, 1.6vw, 30px) clamp(18px, 1.9vw, 34px); border-radius: 22px; }
  #club-player .quiz .qhead { font-size: clamp(13px, 1.1vw, 20px); }
  #club-player .quiz .qn::before { width: 32px; height: 5px; }
  #club-player .quiz .qt { font-size: clamp(16px, 1.6vw, 30px); }
  #club-player .quiz h4 { margin: .3em 0 .45em; font-size: clamp(26px, 3vw, 56px); }
  #club-player .quiz .ch { gap: clamp(8px, .9vw, 16px); }
  #club-player .quiz .ch li { min-height: clamp(46px, 4.8vw, 92px); padding: .3em .55em; gap: .5em; border-radius: 14px; font-size: clamp(17px, 1.9vw, 36px); }
  #club-player .quiz .ch b { width: 1.4em; height: 1.4em; border-radius: .3em; font-size: .8em; }
  #club-player .quiz .qbar { height: 6px; margin-top: clamp(12px, 1.2vw, 22px); border-radius: 3px; }
  #club-player .quiz .qx { margin-top: clamp(10px, 1vw, 18px); font-size: clamp(15px, 1.35vw, 26px); }
}
@media (max-width: 560px) {
  #club-player .row .time { display: none; }
  #club-player .quiz { left: 12px; right: 12px; width: auto; }
  #club-player.show-quiz .now { opacity: 0; }
  #club-player .next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #club-player video, #club-player .now, #club-player .next { transition-duration: .01s; }
}
/* Phones held sideways and other short screens: tighter sheet, smaller caption, no "Up next" over the controls */
@media (max-height: 500px) {
  #club-options { padding: 16px 18px 16px; }
  #club-options .sub { margin-bottom: 6px; }
  #club-options label { padding: 7px 2px; }
  #club-options .go { margin-top: 10px; min-height: 48px; }
  #club-options .quit { min-height: 42px; margin-top: 8px; }
  #club-options .sets button { min-height: 54px; padding: 8px 10px; }
  #club-player .now h3 { font-size: 26px; }
  #club-player.controls .next { display: none; }
  #club-player.controls .now { bottom: 84px; }
  #club-player .quiz { width: min(420px, 52vw); padding: 10px 12px 12px; }
  #club-player .quiz h4 { font-size: 17px; margin: 4px 0 8px; }
  #club-player .quiz .ch li { min-height: 32px; padding: 5px 8px; }
  #club-player.controls .quiz { bottom: 84px; }
}

/* ---------- Corner view: the clip top left, what's playing on the right, trivia underneath ---------- */
#club-player.corner { --g: clamp(12px, 1.8vw, 28px);
  /* as wide as leaves about a third of the width for the side panel and a third of the height for the trivia below */
  --w: min(calc(100vw - 3 * var(--g) - max(320px, 30vw)), calc((100vh - 3 * var(--g) - max(220px, 34vh)) * 16 / 9));
  display: grid; grid-template-columns: var(--w) minmax(0, 1fr); grid-template-rows: calc(var(--w) * 9 / 16) minmax(0, 1fr);
  grid-template-areas: "stage side" "below side"; gap: var(--g);
  padding: calc(var(--g) + env(safe-area-inset-top)) calc(var(--g) + env(safe-area-inset-right)) calc(var(--g) + env(safe-area-inset-bottom)) calc(var(--g) + env(safe-area-inset-left));
  box-sizing: border-box; background: radial-gradient(120% 90% at 0 0, #1a1228, #08080c 60%); }
#club-player.corner[hidden] { display: none; }
#club-player.corner .stage { position: relative; inset: auto; grid-area: stage; border-radius: 16px; box-shadow: 0 16px 50px rgba(0, 0, 0, .6); }
#club-player.corner .side { grid-area: side; }
#club-player.corner .below { grid-area: below; }
#club-player.corner .side { --pad: clamp(14px, 1.6vw, 22px); }
#club-player.corner .side, #club-player.corner .below { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow: auto;
  padding: clamp(14px, 1.6vw, 22px); box-sizing: border-box; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
#club-player.corner :is(.side, .below) .lbl { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
#club-player.corner :is(.side, .below) .lbl::before { content: ""; display: inline-block; vertical-align: middle; width: 22px; height: 4px; margin: -2px 10px 0 0; border-radius: 2px; background: #b57bff; }
#club-player.corner .side .count { font-variant-numeric: tabular-nums; }
#club-player.corner .side .count[hidden] { display: none; }
#club-player.corner .side .film { display: flex; flex-direction: column; gap: 12px; }
#club-player.corner .side > .film { flex: 1 1 auto; min-height: 0; }
#club-player.corner .side .poster { flex: 1 1 0; min-height: 0; width: auto; max-width: 100%; align-self: flex-start; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; background: #1a1a22; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
#club-player.corner .side h3 { margin: 0; font-size: clamp(20px, 2vw, 30px); font-weight: 800; line-height: 1.1; }
#club-player.corner .side .meta { margin: 6px 0 0; font-size: 15px; color: rgba(255, 255, 255, .7); }
#club-player.corner .side .up { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-direction: column; gap: 10px; }
#club-player.corner .side .up[hidden] { display: none; }
#club-player.corner .side .up { padding-top: var(--pad); }
#club-player.corner .side .up .film { gap: 10px; }
#club-player.corner .side .still { width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); aspect-ratio: 16 / 9; max-height: 26vh; object-fit: cover;
  background: #1a1a22; flex: none; display: block; }   /* capped, so the poster above keeps most of the room */
#club-player.corner .side .t { font-size: clamp(16px, 1.4vw, 24px); font-weight: 700; line-height: 1.15; }
#club-player.corner .side img[hidden] { display: none; }
/* in the corner view the trivia lives in the panel under the clip */
#club-player.corner .quiz { position: static; width: auto; padding: 0; background: none; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; transform: none; }
#club-player.corner:not(.asking) .below .quiz, #club-player.corner.asking .below > .lbl, #club-player.corner.asking .below .idle { display: none; }
#club-player.corner .below .quiz { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#club-player.corner .quiz .qhead { font-size: clamp(13px, 1vw, 18px); }
#club-player.corner .quiz .qt { font-size: clamp(15px, 1.3vw, 26px); }
#club-player.corner .quiz h4 { margin: .2em 0 .4em; font-size: clamp(26px, 3.3vw, 64px); }
#club-player.corner .quiz .ch { flex: 1 1 auto; min-height: 0; grid-auto-rows: minmax(0, 1fr); gap: clamp(8px, .8vw, 14px); }
#club-player.corner .quiz .ch li { min-height: 36px; padding: .25em .6em; gap: .5em; font-size: clamp(20px, 2.4vw, 46px); border-radius: 12px; }
#club-player.corner .quiz .qx { flex: none; font-size: clamp(15px, 1.4vw, 26px); }
/* answers that don't fit are made smaller by fitChoices() in club-player.js */
#club-player .quiz .ch li { overflow: hidden; }
#club-player .quiz .ch li span { min-width: 0; overflow-wrap: anywhere; line-height: 1.12; }
#club-player.corner .quiz .ch b { width: 1.4em; height: 1.4em; border-radius: .3em; font-size: .8em; }
#club-player.corner .quiz .qbar { flex: none; height: 5px; margin-top: clamp(8px, 1vw, 16px); }
#club-player.corner .below { padding-top: 12px; padding-bottom: 12px; }
#club-player.corner .below > .lbl { font-size: clamp(13px, 1vw, 18px); }
#club-player.corner .below p { margin: 0; font-size: clamp(20px, 2.2vw, 40px); color: rgba(255, 255, 255, .72); max-width: 40ch; line-height: 1.2; }
/* the side panel already says what's playing and what's next, so the picture keeps only the controls */
#club-player.corner .now, #club-player.corner .next { display: none; }
#club-player.corner.show-now:not(.controls) .shade { opacity: 0; }
#club-player.corner .shade { height: 40%; }
/* Tall screens (a phone held upright): the clip across the top, the panels stacked under it */
@media (max-aspect-ratio: 1 / 1) {
  #club-player.corner { --w: calc(100vw - 2 * var(--g)); grid-template-columns: minmax(0, 1fr);
    grid-template-rows: calc(var(--w) * 9 / 16) auto minmax(0, 1fr); grid-template-areas: "stage" "side" "below"; }
  #club-player.corner .side { overflow: visible; }
  #club-player.corner .side > .film { flex-direction: row; align-items: center; }
  #club-player.corner .side > .film { flex: none; }
  #club-player.corner .side .poster { flex: none; width: 72px; height: auto; border-radius: 8px; }
  #club-player.corner .side .up .film { flex-direction: row; align-items: center; }
  #club-player.corner .side .still { width: 96px; max-height: none; margin: 0; border-radius: 8px; }
  #club-player.corner .side .t { font-size: 16px; }
  #club-player.corner .quiz .ch li { min-height: 44px; }
  #club-player.corner .side .up { margin-top: 0; }
}
