@font-face { font-family: "Big Shoulders"; src: url("/fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken"; src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --house: #14121F;
  --house-rgb: 20,18,31; /* same colour, for fades */      /* the dark of the auditorium */
  --velvet: #211D33;     /* seats and surfaces */
  --velvet-2: #2E2848;
  --screen: #F3EEE3;     /* projector white */
  --dim: #A9A2C2;
  --bulb: #F5B83D;       /* marquee bulbs: your own drive */
  --aisle: #86D6CC;      /* aisle lights: streaming services */
  --alarm: #FF9483;
  --pad: clamp(16px, 4vw, 56px);
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --text: "Hanken", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--house); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--house); color: var(--screen); font: 400 1rem/1.5 var(--text); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--bulb); outline-offset: 3px; border-radius: 4px; }

/* ---------- top bar and tabs ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 14px var(--pad); padding-top: calc(14px + env(safe-area-inset-top)); background: linear-gradient(var(--house) 35%, transparent); }
.brand { font: 800 1.9rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; color: var(--bulb); }
.tabs { display: flex; gap: clamp(10px, 2vw, 28px); flex: 1; }
.tabs a, .gear { padding: 6px 2px; color: var(--dim); font-weight: 600; border-bottom: 3px dotted transparent; }
.tabs a[aria-current], .gear[aria-current] { color: var(--screen); border-bottom-color: var(--bulb); }
.tabs a:hover, .gear:hover { color: var(--screen); }
body[data-route="watch"] .bar { display: none; }

#view { padding-bottom: 72px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; padding: 120px var(--pad) clamp(28px, 5vw, 64px); isolation: isolate; }
.hero-art { position: absolute; inset: 0 0 0 22%; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--house) 0%, rgba(var(--house-rgb),.72) 32%, rgba(var(--house-rgb),0) 70%), linear-gradient(0deg, var(--house) 0%, rgba(var(--house-rgb),0) 38%); }
.hero-copy { max-width: min(46rem, 62vw); }
.hero-title { font: 800 clamp(3.2rem, 10.5vw, 9.5rem)/.86 var(--display); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; overflow-wrap: anywhere; }
.hero-title.long { font-size: clamp(2.6rem, 7vw, 6.2rem); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); margin-top: 18px; font-weight: 600; }
.hero-text { margin-top: 12px; max-width: 34rem; color: var(--screen); opacity: .9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border: 0; border-radius: 6px; background: var(--velvet-2); color: var(--screen); font-weight: 600; cursor: pointer; min-height: 48px; }
.btn:hover { background: #3A3358; }
.btn-main { background: var(--bulb); color: #1B1505; }
.btn-main:hover { background: #FFCB5C; }
.btn-stream { background: var(--aisle); color: #06211E; }
.btn-stream:hover { background: #A5E6DD; }
.btn-quiet { background: transparent; box-shadow: inset 0 0 0 2px var(--velvet-2); }
.btn img { width: 26px; height: 26px; border-radius: 5px; }
.btn small { font-weight: 400; opacity: .75; }

/* ---------- rails and cards ---------- */
.rail { margin-top: clamp(20px, 3vw, 36px); }
.rail h2, .page h2 { font: 600 1.55rem/1.1 var(--display); letter-spacing: .01em; padding: 0 var(--pad); }
.strip { display: flex; gap: 14px; overflow-x: auto; padding: 14px var(--pad) 10px; scroll-padding: 0 var(--pad); scroll-snap-type: x proximity; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(104px, 13vw, 180px), 1fr)); gap: 22px 14px; padding: 18px var(--pad); }

.card { flex: 0 0 auto; width: clamp(116px, 13.5vw, 188px); scroll-snap-align: start; display: block; }
.grid .card { width: auto; }
.card-wide { width: clamp(230px, 25vw, 340px); }
.art { position: relative; display: block; aspect-ratio: 2 / 3; background: var(--velvet); border-radius: 6px; overflow: hidden; transition: transform .15s ease; }
.card-wide .art { aspect-ratio: 16 / 9; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art-title { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px; font: 600 1.25rem/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.card:hover .art, .card:focus-visible .art { transform: scale(1.04); }
.card:focus-visible { outline: none; }
.card:focus-visible .art { outline: 3px solid var(--bulb); outline-offset: 3px; }
.bar-progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 2px; background: rgba(243,238,227,.3); }
.bar-progress i { display: block; height: 100%; border-radius: 2px; background: var(--bulb); }
.cap { display: block; padding-top: 8px; }
.cap-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-sub { display: block; color: var(--dim); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ticket stub: says where a title plays */
.stub { position: absolute; top: 8px; left: 0; max-width: calc(100% - 10px); padding: 3px 12px 3px 9px; font-size: .74rem; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--aisle); color: #06211E; border-radius: 0 3px 3px 0; -webkit-mask: radial-gradient(circle 5px at 100% 50%, transparent 97%, #000); mask: radial-gradient(circle 5px at 100% 50%, transparent 97%, #000); }
.stub-local { background: var(--bulb); color: #1B1505; }
.stub-none { background: var(--velvet-2); color: var(--dim); }

/* ---------- pages ---------- */
.page { padding-top: calc(92px + env(safe-area-inset-top)); }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; padding: 0 var(--pad); }
.page-title { font: 800 clamp(2.4rem, 6vw, 4.5rem)/.9 var(--display); text-transform: uppercase; }
.sorts { display: flex; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--velvet); border: 0; cursor: pointer; color: var(--dim); font-weight: 600; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--screen); color: var(--house); }
.note { margin: 18px var(--pad) 0; padding: 14px 18px; border-left: 4px solid var(--bulb); background: var(--velvet); border-radius: 0 6px 6px 0; max-width: 46rem; }
.note.bad { border-color: var(--alarm); }
.note a { color: var(--bulb); font-weight: 600; text-decoration: underline; }
.empty { padding: 40px var(--pad); max-width: 40rem; color: var(--dim); }
.empty strong { display: block; color: var(--screen); font: 600 1.6rem/1.1 var(--display); margin-bottom: 8px; }

.search-box { margin: 18px var(--pad) 0; display: block; }
.search-box input { width: min(100%, 44rem); padding: 16px 20px; font-size: 1.2rem; background: var(--velvet); border: 2px solid var(--velvet-2); border-radius: 8px; }
.search-box input:focus { border-color: var(--bulb); outline: none; }

/* ---------- title page ---------- */
.title-top { position: relative; padding: calc(110px + env(safe-area-inset-top)) var(--pad) 8px; min-height: min(62vh, 600px); display: flex; align-items: flex-end; isolation: isolate; }
.title-top .hero-art { inset: 0 0 0 30%; }
.title-top .hero-title { font-size: clamp(2.6rem, 7.5vw, 6.5rem); }
.title-body { padding: 8px var(--pad) 0; max-width: 60rem; }
.title-body p { max-width: 40rem; }
.where { margin-top: 28px; }
.where h2 { padding: 0; margin-bottom: 4px; }
.where .hint { color: var(--dim); font-size: .92rem; margin-top: 12px; max-width: 36rem; }
.others { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.seasons { display: flex; flex-wrap: wrap; gap: 8px; padding: 26px var(--pad) 4px; }
.episodes { list-style: none; margin: 0; padding: 8px var(--pad); display: grid; gap: 6px; max-width: 64rem; }
.episode a { display: grid; grid-template-columns: clamp(120px, 22vw, 220px) 1fr; gap: 16px; align-items: center; padding: 8px; border-radius: 8px; }
.episode a:hover, .episode a:focus-visible { background: var(--velvet); }
.episode .art { aspect-ratio: 16 / 9; }
.episode h3 { font-size: 1.05rem; font-weight: 600; }
.episode p { color: var(--dim); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.episode .num { color: var(--bulb); font-weight: 600; font-size: .9rem; }

/* ---------- profiles ---------- */
.who { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: clamp(110px, 16vw, 168px); height: clamp(110px, 16vw, 168px); border-radius: 10px; background: var(--velvet-2); color: #1B1505; font: 800 clamp(72px, 10vw, 110px)/1 var(--display); }
.who .avatar, .plist .avatar { border-radius: 6px; }
.who-page { display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; padding-left: var(--pad); padding-right: var(--pad); }
.who-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; max-width: 60rem; }
.who-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 1.1rem; color: var(--screen); }
.who-tile small { color: var(--dim); font-weight: 400; }
.who-tile:hover .avatar, .who-tile:focus-visible .avatar { outline: 3px solid var(--bulb); outline-offset: 3px; }
.who-tile:focus-visible { outline: none; }
.who-add { color: var(--dim); }
.who-add .avatar { background: transparent; border: 2px dashed #6E6791; color: var(--dim); }
.who-note { color: var(--dim); max-width: 30rem; }
.plist { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.plist li { display: flex; align-items: center; gap: 12px; }
.plist li > span:nth-child(2) { flex: 1; font-weight: 600; }
.plist small { color: var(--dim); }

/* ---------- where it plays ---------- */
.srcs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; max-width: 40rem; }
.src { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 8px; background: var(--velvet); }
.src-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.src-name img { width: 34px; height: 34px; border-radius: 7px; }
.src-name strong, .src-name small { display: block; }
.src-name small { color: var(--dim); }
.badge { padding: 6px 12px; border-radius: 999px; background: var(--bulb); color: #1B1505; font-size: .85rem; font-weight: 600; white-space: nowrap; }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: .92rem; white-space: nowrap; }
.btn { flex-wrap: wrap; }
.votes { display: flex; gap: 8px; margin-top: 20px; }
select { min-height: 44px; padding: 8px 12px; background: var(--house); border: 2px solid var(--velvet-2); border-radius: 6px; }
.check { justify-content: space-between; }
.check label { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1; }
.checks { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

/* ---------- live TV ---------- */
.live-art { background: var(--velvet-2); }
.live-name { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px 14px 22px; font: 800 clamp(1.5rem, 2.6vw, 2.3rem)/.95 var(--display); text-transform: uppercase; }
.live-group { margin-top: 26px; }
.live-group .srcs { padding: 0 var(--pad); max-width: calc(44rem + 2 * var(--pad)); }
.live-row .src-name { flex: 1; }
.live-row .src-name > span { flex: 1; min-width: 0; }
.live-bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: rgba(243,238,227,.2); max-width: 22rem; }
.live-bar i { display: block; height: 100%; border-radius: 2px; background: var(--aisle); }

/* ---------- settings ---------- */
.settings { display: grid; gap: 22px; padding: 22px var(--pad); max-width: 52rem; }
.panel { background: var(--velvet); border-radius: 10px; padding: clamp(18px, 3vw, 28px); }
.panel h2 { padding: 0; margin-bottom: 6px; }
.panel p { color: var(--dim); max-width: 38rem; }
.panel p a, .panel li a { color: var(--bulb); text-decoration: underline; }
.state { display: inline-block; margin: 6px 0 2px; font-weight: 600; color: var(--aisle); }
.state.off { color: var(--alarm); }
.form { display: grid; gap: 14px; margin-top: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-weight: 600; }
.field small { color: var(--dim); }
.field input { padding: 12px 14px; background: var(--house); border: 2px solid var(--velvet-2); border-radius: 6px; width: min(100%, 30rem); min-height: 48px; }
.field input:focus { border-color: var(--bulb); outline: none; }
.checks { display: grid; gap: 6px 14px; margin-top: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 6px; cursor: pointer; }
.check:hover { background: var(--velvet-2); }
.check input { width: 22px; height: 22px; accent-color: var(--bulb); }
.check img { width: 28px; height: 28px; border-radius: 6px; }
.addresses { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.addresses code { font: 600 1.15rem var(--text); color: var(--bulb); user-select: all; }
.form-msg { font-weight: 600; min-height: 1.5em; }
.form-msg.bad { color: var(--alarm); }
.form-msg.good { color: var(--aisle); }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; background: #000; z-index: 50; }
.player video { width: 100%; height: 100%; background: #000; }
.player-top { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; gap: 16px; padding: 18px var(--pad); padding-top: calc(18px + env(safe-area-inset-top)); background: linear-gradient(rgba(0,0,0,.75), transparent); transition: opacity .25s; }
.player-top h1 { font: 600 1.5rem/1.1 var(--display); }
.player-top p { color: var(--dim); font-size: .92rem; }
.player.idle .player-top { opacity: 0; pointer-events: none; }
.player-next { position: absolute; right: var(--pad); bottom: calc(96px + env(safe-area-inset-bottom)); }
.player-msg { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 16px; padding: var(--pad); }

.loading { padding: calc(140px + env(safe-area-inset-top)) var(--pad); color: var(--dim); font: 600 1.6rem var(--display); }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .bar { justify-content: space-between; }
  .tabs { position: fixed; inset: auto 0 0 0; z-index: 20; justify-content: space-around; gap: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--house); border-top: 1px solid var(--velvet-2); }
  .tabs a { padding: 10px 4px; font-size: .86rem; min-height: 44px; }
  body[data-route="watch"] .tabs { display: none; }
  #view { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .hero { min-height: 70vh; }
  .hero-art, .title-top .hero-art { inset: 0; }
  .hero-art::after { background: linear-gradient(0deg, var(--house) 4%, rgba(var(--house-rgb),.6) 45%, rgba(var(--house-rgb),.15) 100%); }
  .hero-copy { max-width: 100%; }
  .episode a { grid-template-columns: 124px 1fr; }
}

/* ---------- TV: bigger targets from the sofa ---------- */
@media (min-width: 1700px) {
  html { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}


/* ==================================================================
   Cinematic pass: artwork leads, chrome recedes, focus feels physical.
   ================================================================== */
#view.enter { animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }

/* top bar: clear over artwork, frosted once you scroll */
.bar { background: linear-gradient(rgba(var(--house-rgb),.85), rgba(var(--house-rgb),0)); transition: background-color .25s; }
body.scrolled .bar { background: rgba(var(--house-rgb),.78); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.brand { letter-spacing: .04em; }
.tabs a svg { display: none; }
.tabs a { border-bottom: 0; padding: 8px 14px; border-radius: 999px; }
.tabs a[aria-current] { background: rgba(243,238,227,.12); color: var(--screen); }
.gear { border-bottom: 0; }
.gear[aria-current] { color: var(--bulb); }

/* hero: the artwork fills the screen and the page grows out of it */
.hero { min-height: min(92vh, 900px); padding-bottom: clamp(36px, 6vw, 84px); }
.hero-art { inset: 0; overflow: hidden; }
.hero-art img { object-position: center 18%; animation: drift 26s ease-in-out infinite alternate; transform-origin: 70% 30%; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero-art::after { background:
  linear-gradient(90deg, rgba(var(--house-rgb),.94) 0%, rgba(var(--house-rgb),.62) 34%, rgba(var(--house-rgb),0) 68%),
  linear-gradient(0deg, var(--house) 0%, rgba(var(--house-rgb),.55) 18%, rgba(var(--house-rgb),0) 46%),
  linear-gradient(180deg, rgba(var(--house-rgb),.55) 0%, rgba(var(--house-rgb),0) 22%); }
.hero-copy { max-width: min(44rem, 58vw); }
.hero-title { text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.hero-text { font-size: 1.08rem; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.meta { color: rgba(243,238,227,.82); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(var(--house-rgb),.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(243,238,227,.16); font-size: .86rem; font-weight: 600; }
.chip-tag.drive::before, .chip-tag.svc::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bulb); }
.chip-tag.svc::before { background: var(--aisle); }
.ambient { position: absolute; inset: 0 0 auto 0; height: calc(var(--hero-h, 90vh) + 120vh); z-index: -2; background-size: cover; background-position: center; filter: blur(90px) saturate(1.4); opacity: .24; pointer-events: none; -webkit-mask-image: linear-gradient(transparent var(--hero-h, 90vh), #000 calc(var(--hero-h, 90vh) + 45vh), transparent 100%); mask-image: linear-gradient(transparent var(--hero-h, 90vh), #000 calc(var(--hero-h, 90vh) + 45vh), transparent 100%); }
#view { position: relative; isolation: isolate; }

/* buttons */
.btn { border-radius: 10px; transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease; }
.btn:active { transform: scale(.97); }
.btn-big { min-height: 56px; padding: 14px 30px; font-size: 1.08rem; }
.btn-main { box-shadow: 0 10px 30px -10px var(--bulb); }
.btn-glass { background: rgba(243,238,227,.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(243,238,227,.18); }
.btn-glass:hover { background: rgba(243,238,227,.24); }
.ico { width: 20px; height: 20px; }

/* rails: quiet headings, artwork with depth */
.rail { margin-top: clamp(22px, 2.6vw, 40px); }
.hero + .rail { margin-top: -18px; position: relative; }
.hero + .note { margin-top: 0; }
.rail h2 { font: 600 1.22rem/1.2 var(--text); letter-spacing: -.005em; }
.strip { gap: 16px; padding-top: 16px; padding-bottom: 26px; }
.card { width: clamp(124px, 13.5vw, 196px); }
.card-wide { width: clamp(250px, 26vw, 372px); position: relative; }
.art { border-radius: 10px; box-shadow: 0 14px 34px -14px rgba(0,0,0,.75); transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s ease; }
.art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(243,238,227,.09); pointer-events: none; }
.card:hover .art, .card:focus-visible .art { transform: scale(1.06); box-shadow: 0 0 0 3px var(--bulb), 0 26px 50px -18px rgba(0,0,0,.9); outline: none; }
.card:hover, .card:focus-visible { position: relative; z-index: 2; }
.art-title { background: linear-gradient(160deg, var(--velvet-2), var(--velvet)); }

/* source tag: a small frosted pill with a coloured dot */
.stub { top: 8px; left: 8px; padding: 3px 9px 3px 8px; border-radius: 999px; background: rgba(12,10,20,.72); color: var(--screen); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); -webkit-mask: none; mask: none; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 16px); font-size: .72rem; }
.stub::before { content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--aisle); }
.stub-local { background: rgba(12,10,20,.72); color: var(--screen); }
.stub-local::before { background: var(--bulb); }
.stub-none { background: rgba(12,10,20,.72); color: var(--dim); }
.stub-none::before { background: var(--dim); }

/* wide cards: caption sits on the artwork */
.card-wide .art::before { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, rgba(8,7,14,.88)); z-index: 1; }
.card-wide .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; padding: 0; pointer-events: none; transition: transform .18s cubic-bezier(.2,.7,.2,1); }
.card-wide .cap-title { font-size: 1.02rem; }
.card-wide .cap-sub { color: rgba(243,238,227,.78); }
.card-wide .bar-progress { left: 0; right: 0; bottom: 0; height: 4px; border-radius: 0; z-index: 2; background: rgba(243,238,227,.22); }
.card-wide .bar-progress i { border-radius: 0; }
.live-name { align-items: flex-start; padding: 40px 14px 0; font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
.live-art { background: linear-gradient(150deg, var(--velvet-2), var(--velvet)); }

/* title page */
.title-top { min-height: min(72vh, 720px); }
.title-top .hero-art { inset: 0; }
.src { border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(243,238,227,.06); }
.panel { border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(243,238,227,.06); }
.avatar { border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); transition: transform .18s cubic-bezier(.2,.7,.2,1); }
.who-tile:hover .avatar, .who-tile:focus-visible .avatar { transform: scale(1.05); }
.who .avatar, .plist .avatar { border-radius: 8px; box-shadow: none; }

/* loading skeleton */
.sk { background: linear-gradient(100deg, var(--velvet) 30%, var(--velvet-2) 50%, var(--velvet) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 10px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-hero { height: min(80vh, 760px); border-radius: 0; }
.sk-head { width: 12rem; height: 1.3rem; margin: 0 var(--pad); }
.sk-card { flex: 0 0 auto; width: clamp(124px, 13.5vw, 196px); aspect-ratio: 2 / 3; }

/* phone: a floating glass dock with icons */
@media (max-width: 720px) {
  .tabs { inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px; padding: 6px; border: 0; border-radius: 22px; background: rgba(var(--house-rgb),.72); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 18px 40px -12px rgba(0,0,0,.8), inset 0 0 0 1px rgba(243,238,227,.1); justify-content: space-between; }
  .tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; font-size: .68rem; border-radius: 16px; min-height: 50px; }
  .tabs a svg { display: block; width: 22px; height: 22px; }
  .tabs a[aria-current] { background: rgba(243,238,227,.12); color: var(--bulb); }
  #view { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .hero { min-height: 82vh; }
  .hero-art::after { background: linear-gradient(0deg, var(--house) 2%, rgba(var(--house-rgb),.78) 34%, rgba(var(--house-rgb),.1) 72%), linear-gradient(180deg, rgba(var(--house-rgb),.6) 0%, rgba(var(--house-rgb),0) 20%); }
  .hero-copy { max-width: 100%; }
  .btn-big { flex: 1; justify-content: center; padding-inline: 18px; }
  .card { width: clamp(116px, 31vw, 150px); }
  .card-wide { width: 74vw; max-width: 320px; }
  .strip { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art img, .sk, #view.enter { animation: none; }
}

/* ---------- collections ---------- */
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(clamp(230px, 24vw, 340px), 1fr)); gap: 22px 16px; }
.grid-wide .card-wide { width: auto; max-width: none; }
.rail h2 a:hover { color: var(--bulb); }
@media (max-width: 720px) { .tabs a.wide-only { display: none; } .grid-wide { grid-template-columns: 1fr 1fr; } }

/* ---------- carousel at the top of home ---------- */
.hero.carousel { display: grid; align-items: end; }
.hero-slide { grid-area: 1 / 1; min-width: 0; visibility: hidden; }
.hero-slide.on, .hero-slide.was { visibility: visible; }
.hero-slide.on { z-index: 1; }
.hero-slide.was { pointer-events: none; }
.hero-slide .hero-art { opacity: 0; transition: opacity 1.8s ease; }
.hero-slide.on .hero-art { opacity: 1; }
.hero-slide.was .hero-art { opacity: 1; transition: none; z-index: -2; }
.hero-slide .hero-copy { opacity: 0; transition: opacity .45s ease; }
.hero-slide.on .hero-copy { opacity: 1; transition: opacity 1.1s ease .6s; }
.ambient { transition: background-image 1.8s ease; }
.hero-dots { position: absolute; right: var(--pad); bottom: clamp(30px, 5vw, 72px); z-index: 2; display: flex; gap: 6px; }
.hero-dots button { width: 36px; padding: 12px 0; background: none; border: 0; cursor: pointer; }
.hero-dots .track { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45); box-shadow: 0 0 0 1px rgba(0,0,0,.18); overflow: hidden; }
.hero-dots i { display: block; height: 100%; width: 0; background: var(--bulb); border-radius: 2px; }
.hero-dots button.on i { width: 100%; }
.hero-dots button.on.run i { animation: herofill 10s linear both; }
.hero-dots button:focus-visible { outline: none; }
.hero-dots button:focus-visible .track { outline: 2px solid var(--screen); outline-offset: 3px; }
@keyframes herofill { from { width: 0; } to { width: 100%; } }
@media (max-width: 720px) { .hero-dots { bottom: 8px; } .hero-dots button { width: 24px; } }
@media (prefers-reduced-motion: reduce) { .hero-dots button.on.run i { animation: none; } }

/* ---------- sign-in ---------- */
body[data-locked="1"] .bar, body[data-locked="1"] .tabs { display: none; }
.gate { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(24px, 6vw, 80px) var(--pad); max-width: 34rem; margin: 0 auto; }
.gate-brand { font: 800 clamp(3rem, 10vw, 6rem)/.9 var(--display); text-transform: uppercase; color: var(--bulb); }
.gate-lead { font-size: 1.25rem; color: var(--screen); }
.gate .form { width: 100%; margin-top: 4px; }
.gate-code { width: 100%; display: grid; gap: 10px; justify-items: start; margin-top: 6px; }
.gate-digits { font: 800 clamp(3.4rem, 13vw, 8rem)/1 var(--display); letter-spacing: .08em; color: var(--screen); }
.gate-how { color: var(--dim); max-width: 30rem; font-size: 1.05rem; }
.gate-alt { width: 100%; color: var(--dim); }
.gate-alt summary { cursor: pointer; padding: 10px 0; }
.gate.tv { max-width: 52rem; }
.gate.tv .gate-how { font-size: 1.3rem; max-width: 40rem; }
.panel h3 { font: 600 1.05rem/1.3 var(--text); }

/* ---------- inside the Samsung TV app ---------- */
.tv-toast { position: fixed; left: 50%; bottom: 6vh; transform: translateX(-50%); z-index: 50; max-width: 70vw; padding: 16px 24px; border-radius: 10px; background: var(--velvet); color: var(--screen); font-weight: 600; box-shadow: 0 10px 40px rgba(0,0,0,.5); }

/* ---------- the mark beside the name ---------- */
.brand { display: flex; align-items: center; gap: .28em; }
.brand svg { flex: 0 0 auto; width: 1.02em; height: 1.02em; }
