/* binge.it — v4, after the "3 Free Video Streaming App UI" kit: one immersive app screen.
   Slim icon rail, the show's art filling the screen, title block bottom-left, tabs, a row of landscape cards. */
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

:root {
  --bg: #0B0D12; --rail: #141A28; --rail-2: #1E2639; --glass: rgba(255, 255, 255, .12); --glass-2: rgba(255, 255, 255, .2);
  --line: rgba(255, 255, 255, .16); --text: #FFFFFF; --dim: #B8BECC; --faint: #7C8496; --danger: #FF8E7A;
  --brand: linear-gradient(135deg, #FF2D6F, #FF8A3D);
  --ui: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo", "Arial Narrow", Impact, sans-serif;
  --railw: 0px; --pad: 20px;
  --lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 7V5a4 4 0 0 1 8 0v2h1v8H3V7h1zm2 0h4V5a2 2 0 0 0-4 0v2z'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (min-width: 900px) { :root { --railw: 68px; --pad: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
svg { flex: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mark { display: inline-grid; place-items: center; width: 30px; height: 30px; }
.mark svg { width: 100%; height: 100%; }

/* ---- App shell ---- */
.rail { display: none; }
.app { min-height: 100svh; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
.topnav { position: absolute; z-index: 20; left: var(--railw); right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); }
.topnav .links { display: none; }
.topnav .home { display: inline-flex; }
.round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); text-decoration: none; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.round:hover { background: var(--glass-2); }
.round svg { width: 19px; height: 19px; }
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 13, 18, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid rgba(255, 255, 255, .08); }
.tabbar a { display: grid; place-items: center; height: 46px; text-decoration: none; color: var(--dim); }
.tabbar a span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: #fff; }
.tabbar a[aria-current="page"] span { background: var(--rail-2); }
@media (min-width: 900px) {
  .app { padding-bottom: 0; padding-left: var(--railw); }
  .rail { position: fixed; z-index: 30; left: 0; top: 0; bottom: 0; width: var(--railw); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0; background: var(--rail); }
  .rail .mark { margin-bottom: 14px; width: 34px; height: 34px; }
  .rail a.ri { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--dim); text-decoration: none; }
  .rail a.ri:hover { color: #fff; background: var(--rail-2); }
  .rail a.ri[aria-current="page"] { color: #fff; background: var(--rail-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
  .rail a.ri svg { width: 20px; height: 20px; }
  .rail .grow { flex: 1; }
  .topnav { padding: 22px var(--pad); }
  .topnav .home { display: none; }
  .topnav .links { display: flex; gap: 34px; }
  .topnav .links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--dim); }
  .topnav .links a:hover, .topnav .links a[aria-current="page"] { color: #fff; }
  .topnav .links a[aria-current="page"] { font-weight: 700; }
  .tabbar { display: none; }
}

/* ---- The screen: art fills it, content sits at the bottom ---- */
.screen { position: relative; min-height: 100svh; padding-top: 84px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.art { position: absolute; inset: 0; z-index: -2; background: #000; }
.art .blur { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(46px) saturate(1.25) brightness(.7); }
.art img { transition: opacity .28s ease; }
.art.swap img { opacity: 0; }
.art .sharp { position: absolute; inset: 0; width: 100%; height: 72%; object-fit: cover; object-position: center 12%; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.screen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 13, 18, .55) 0%, rgba(11, 13, 18, 0) 14%, rgba(11, 13, 18, .45) 26%, rgba(11, 13, 18, .82) 42%, rgba(11, 13, 18, .95) 58%, var(--bg) 72%); }
.body { padding: 0 var(--pad); }
.origin { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #E7EAF2; }
.origin .mark { width: 22px; height: 22px; }
.origin b { font-weight: 700; }
.title { text-shadow: 0 2px 18px rgba(0, 0, 0, .55); margin-top: 8px; font-family: var(--display); font-weight: 800; font-stretch: 66%; text-transform: uppercase; font-size: clamp(38px, 11.5vw, 56px); line-height: .94; letter-spacing: .005em; text-wrap: balance; max-width: 13ch; }
.title.long { font-size: clamp(30px, 8.6vw, 42px); max-width: 16ch; }
.meta { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; font-weight: 600; }
.tag { padding: 2px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .7); font-size: 12px; font-weight: 600; }
.perk { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.perk svg { width: 20px; height: 20px; }
.desc { margin-top: 10px; max-width: 50ch; color: #DDE1EA; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn:hover { background: var(--glass-2); }
.btn svg { width: 17px; height: 17px; }
.btn-play { background: #fff; border-color: #fff; color: #0B0D12; }
.btn-play:hover { background: #E4E7EE; }
.btn[disabled] { opacity: .45; cursor: default; }

/* Tabs and the card row */
.tabs { margin-top: 26px; display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--pad); border-bottom: 1px solid rgba(255, 255, 255, .14); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 10px 16px 11px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font-size: 14px; font-weight: 500; color: var(--dim); cursor: pointer; white-space: nowrap; }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; font-weight: 700; border-bottom-color: #fff; }
.row { display: flex; gap: 12px; overflow-x: auto; padding: 16px var(--pad) 22px; scroll-snap-type: x proximity; scroll-padding-left: var(--pad); scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row[hidden] { display: none; }
.row > li { flex: 0 0 62%; max-width: 250px; scroll-snap-align: start; }
.tile { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .28); background: #151922; text-decoration: none; cursor: pointer; text-align: left; transition: transform .16s ease, border-color .16s ease; }
.tile:hover { transform: translateY(-3px); border-color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .78) 100%); }
.tile .mark { position: absolute; z-index: 2; left: 9px; top: 9px; width: 20px; height: 20px; }
.tile .name { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 11px; font-size: 13.5px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .sub { display: block; font-weight: 500; font-size: 12px; color: #D5D9E2; }
.tile .prog { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.tile .prog i { display: block; height: 100%; width: 0; background: #fff; }
.tile.locked img { filter: blur(6px) brightness(.45); transform: scale(1.1); }
.tile.locked .lock { position: absolute; z-index: 2; right: 10px; top: 10px; width: 16px; height: 16px; background: #fff; -webkit-mask: var(--lock) center / contain no-repeat; mask: var(--lock) center / contain no-repeat; }
.tile[aria-current="true"] { border-color: #fff; box-shadow: 0 0 0 2px #fff; }
.tile .go { position: absolute; z-index: 2; left: 50%; top: 44%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #0B0D12; opacity: 0; transform: scale(.8); transition: opacity .16s ease, transform .16s ease; }
.tile .go svg { width: 18px; height: 18px; margin-left: 2px; }
.tile:hover .go, .tile:focus-visible .go { opacity: 1; transform: none; }
.tile.active { border-color: #fff; box-shadow: 0 0 0 2px #fff; }
.tab[hidden] { display: none; }
.title, .meta, .desc { transition: opacity .2s ease; }
.body.swap .title, .body.swap .meta, .body.swap .desc { opacity: 0; }
@media (min-width: 900px) {
  .art .sharp { left: auto; right: 0; width: 62%; height: 100%; object-position: center 18%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, #000 50%, transparent 76%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%), linear-gradient(180deg, #000 50%, transparent 76%); -webkit-mask-composite: source-in; mask-composite: intersect; }
  .screen::before { background: linear-gradient(90deg, rgba(11, 13, 18, .86) 0%, rgba(11, 13, 18, .5) 38%, rgba(11, 13, 18, 0) 68%), linear-gradient(180deg, rgba(11, 13, 18, .35) 0%, rgba(11, 13, 18, 0) 18%, rgba(11, 13, 18, 0) 42%, rgba(11, 13, 18, .8) 66%, var(--bg) 92%); }
  .origin { font-size: 17px; } .origin .mark { width: 26px; height: 26px; }
  .title { margin-top: 12px; font-size: clamp(52px, min(6.4vw, 11.5vh), 104px); max-width: 12ch; }
  .title.long { font-size: clamp(40px, min(4.2vw, 7.6vh), 68px); max-width: 17ch; }
  .meta { margin-top: 18px; font-size: 14.5px; gap: 6px 20px; }
  .perk { margin-top: 18px; font-size: 17px; }
  .desc { margin-top: 14px; font-size: 16px; }
  .actions { margin-top: 26px; }
  .btn { min-height: 50px; padding: 0 26px; }
  .tabs { margin-top: 44px; gap: 14px; }
  .tab { font-size: 15px; padding: 12px 18px 13px; }
  .row { gap: 16px; padding-bottom: 30px; }
  .row > li { flex: 0 0 calc((100% - 64px) / 5); max-width: none; }
  .tile .name { font-size: 14.5px; left: 14px; bottom: 13px; }
  .tile .mark { left: 11px; top: 11px; width: 24px; height: 24px; }
}
@media (min-width: 1500px) { .row > li { flex-basis: calc((100% - 80px) / 6); } }

/* ---- Under the first screen: small print ---- */
.under { padding: 26px var(--pad) 34px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 13.5px; color: var(--faint); border-top: 1px solid rgba(255, 255, 255, .08); }
.under a { color: var(--dim); text-decoration: none; }
.under a:hover { color: #fff; }
.under .sp { flex: 1; }

/* ---- Browse page ---- */
.page { padding: 84px var(--pad) 40px; min-height: 80svh; }
.page h1 { font-family: var(--display); font-weight: 800; font-stretch: 66%; text-transform: uppercase; font-size: clamp(40px, 8vw, 72px); line-height: .95; }
.page .lead { margin-top: 10px; color: var(--dim); max-width: 56ch; }
.page .tabs { margin: 26px calc(var(--pad) * -1) 0; }
.gridtiles { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gridtiles > li[hidden] { display: none; }
@media (min-width: 700px) { .gridtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .page { padding-top: 104px; } .gridtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .gridtiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* ---- Player: a theatre over the page ---- */
dialog.theatre { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
dialog.theatre::backdrop { background: #000; }
.stage { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.stage .amb { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(60px) brightness(.35); }
.stage video { position: relative; height: 100%; max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.t-top { position: absolute; z-index: 3; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent); }
.t-top p { font-weight: 700; font-size: 15px; }
.t-top p span { color: var(--dim); font-weight: 500; }
.t-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); }
.t-nav.prev { left: 12px; } .t-nav.next { right: 12px; }
.t-nav[disabled] { opacity: .3; cursor: default; }
.stage .start { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; border: 0; background: rgba(0, 0, 0, .3); cursor: pointer; }
.stage .start span { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0B0D12; }
.stage .start svg { width: 32px; height: 32px; margin-left: 4px; }
.stage .start[hidden], .stage .fail[hidden] { display: none; }
.stage .fail { position: absolute; z-index: 2; display: grid; gap: 14px; justify-items: center; padding: 24px; background: rgba(11, 13, 18, .9); border-radius: 16px; }
@media (min-width: 900px) { .t-nav.prev { left: calc(50% - 50svh * 9 / 16 - 70px); } .t-nav.next { right: calc(50% - 50svh * 9 / 16 - 70px); } }

/* ---- Members dialog ---- */
dialog.sheet { border: 1px solid var(--line); padding: 0; background: #161B28; color: #fff; border-radius: 22px; width: min(92vw, 450px); box-shadow: 0 40px 90px -20px #000; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .75); }
.dlg { padding: 28px; }
.dlg h2 { font-weight: 800; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.dlg p { margin-top: 10px; color: var(--dim); }
.dlg form { margin-top: 18px; display: grid; gap: 10px; }
.dlg label { font-size: 13.5px; font-weight: 700; }
.dlg input[type="email"] { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.dlg .hp { position: absolute; left: -9999px; }
.dlg .msg { min-height: 21px; font-size: 13.5px; margin-top: 0; }
.dlg .msg.err { color: var(--danger); }
.dlg .choices { display: grid; gap: 10px; }
.dlg small { display: block; margin-top: 12px; font-size: 12.5px; color: var(--faint); }
.dlg small a { color: var(--dim); }

/* ---- Text pages ---- */
.doc { padding: 96px var(--pad) 40px; max-width: 820px; }
.doc h1 { font-family: var(--display); font-weight: 800; font-stretch: 66%; text-transform: uppercase; font-size: clamp(38px, 7vw, 64px); line-height: .96; margin-bottom: 22px; }
.doc h2 { font-weight: 700; font-size: 19px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--dim); margin-bottom: 12px; max-width: 66ch; font-size: 16px; }
.doc ul { list-style: disc; padding-left: 20px; }
.doc ol { list-style: decimal; padding-left: 22px; }
.doc a { color: #fff; }
.doc .updated { font-size: 13.5px; color: var(--faint); }
.doc details { border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 14px 0; }
.doc summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.doc details p { margin: 8px 0 0; }
.plans { display: grid; gap: 14px; margin: 18px 0 8px; }
.plan { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.plan h3 { font-size: 18px; font-weight: 800; }
.plan .price { font-family: var(--display); font-stretch: 66%; font-weight: 800; font-size: 44px; line-height: 1.1; text-transform: uppercase; }
.plan ul { list-style: disc; padding-left: 18px; margin: 10px 0 16px; }
.plan li { margin-bottom: 4px; font-size: 15px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { .tile, .tile .go, .art img, .title, .meta, .desc { transition: none; } .tile:hover { transform: none; } }

/* per-show spine colours */
.sp-the-dons-vanished-bride{--spine:#7A1B2B}
.sp-the-prince-is-a-girl{--spine:#4B2E83}
.sp-shifter-academy{--spine:#1F5A46}
.sp-false-weakling-true-power{--spine:#27406B}
.sp-after-erasing-his-identity{--spine:#8A4B22}
.sp-definitely-not-the-dragon-god{--spine:#0F5D66}
.sp-coaching-my-bad-boy-roommate{--spine:#2148A8}
.sp-the-dukes-hidden-wife{--spine:#6B2550}
.sp-bow-to-archmage-aldric{--spine:#8C2F1B}
