/* OneTake: dark only, near black, white as the only accent. Colours taken from the demo. */
:root {
  color-scheme: dark;
  --bg: #0B0B0D;
  --surface: #141417;
  --surface-2: #1C1C21;
  --surface-3: #2A2A31;
  --text: #F5F5F7;
  --text-strong: #FFFFFF;
  --muted: #A1A1A8;
  --faint: #8E8E96;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --pill-bg: rgba(11, 11, 13, 0.78);
  --radius: 20px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--text); }
a:hover { color: var(--text-strong); }
h1, h2, h3 { margin: 0; color: var(--text-strong); letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 22px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--text-strong); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1280px; margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo-link { display: inline-flex; align-items: center; min-height: 44px; }
.logo { display: block; height: 30px; width: auto; }
.header-note { margin-left: auto; color: var(--muted); font-size: 14px; }

/* Page */
.page { max-width: 1280px; margin: 0 auto; padding: 48px 32px 96px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.section { margin-top: 56px; }
.section > h2 { margin-bottom: 6px; }
.section > .lead { color: var(--muted); margin-bottom: 20px; max-width: 70ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: 13px; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Buttons: white is the only accent */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--text-strong); color: var(--bg); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--bg); background: #E3E3E8; }
.btn-quiet { background: var(--surface); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.16); }
.btn-quiet:hover { background: var(--surface-2); color: var(--text-strong); }

/* Pills: price in takes, Last chance */
.pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }

/* Checks */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.mark.ok { background: var(--text-strong); color: var(--bg); }
.mark.bad { background: transparent; border: 1.5px solid var(--text-strong); color: var(--text-strong); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Title cards (preview of the catalogue look) */
.title-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); aspect-ratio: 16 / 10; display: flex; align-items: flex-end; padding: 16px; }
.title-card .pills { position: absolute; top: 12px; right: 12px; }
.title-card h3 { font-size: 18px; }
.title-card .meta { color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }

/* Hero on the holding page */
.hero { min-height: calc(100vh - 77px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; padding: 48px 16px; }
.hero p { color: var(--muted); max-width: 46ch; }

@media (max-width: 640px) {
  .site-header .inner, .page { padding-left: 16px; padding-right: 16px; }
}

/* Signed-in header */
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.balance { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 600; }
.me { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 600; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.me:hover, .me:focus-visible { transform: scale(1.08); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--c); outline: none; }
.link-btn { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.link-btn:hover { color: var(--text-strong); }
.inline { display: inline; margin: 0; }

/* Forms */
.auth { max-width: 420px; margin: 0 auto; padding: 64px 16px 96px; }
.auth h1 { font-size: 32px; margin-bottom: 8px; }
.auth .lead { color: var(--muted); margin-bottom: 28px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field .hint { font-size: 13px; color: var(--muted); }
.input { width: 100%; min-height: 48px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.input:focus { outline: none; border-color: rgba(255, 255, 255, 0.45); }
.form .btn { width: 100%; margin-top: 6px; }
.notice { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 14px; }
.notice.error { border-color: rgba(255, 255, 255, 0.35); color: var(--text-strong); }
.alt { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.alt a { color: var(--text); }

/* Profile picker */
.who { min-height: calc(100vh - 77px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; padding: 48px 16px; text-align: center; }
.who h1 { font-size: clamp(28px, 4vw, 40px); }
.profiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; }
.profile-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; }
.bubble { width: 112px; height: 112px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease; }
.bubble.add { background: var(--surface); border: 1px dashed rgba(255, 255, 255, 0.35); color: var(--muted); font-weight: 300; }
.profile-btn .name { color: var(--muted); font-size: 16px; transition: color .2s ease; }
.profile-btn:hover .bubble, .profile-btn:focus-visible .bubble { transform: scale(1.06); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--c, #FFFFFF); }
.profile-btn:hover .name, .profile-btn:focus-visible .name { color: var(--text-strong); }
.profile-btn:focus-visible { outline: none; }
.manage-row { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; }
.manage-row .bubble { width: 44px; height: 44px; font-size: 18px; flex: none; }
.manage-row form { display: flex; gap: 8px; flex: 1; flex-wrap: wrap; margin: 0; }
.manage-row .input { flex: 1 1 160px; min-height: 44px; }
.manage-row .btn { min-height: 44px; padding: 0 18px; }

@media (max-width: 640px) {
  .bubble { width: 88px; height: 88px; font-size: 34px; }
  .profiles { gap: 20px; }
  .balance { padding: 0 14px; font-size: 14px; }
}

/* Wallet */
.balance { text-decoration: none; }
.balance:hover { color: var(--text-strong); background: var(--surface-2); }
.wallet-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.big-number { font-size: clamp(44px, 7vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text-strong); }
.bundles { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.bundle { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; margin: 0; }
.bundle-takes { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--text-strong); line-height: 1.1; }
.bundle .btn { width: 100%; }
.btn:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }

/* Keep the signed-in header on one line at phone width */
.balance, .link-btn { white-space: nowrap; }
@media (max-width: 640px) {
  .site-header .inner { gap: 12px; }
  .logo { height: 26px; }
  .header-right { gap: 8px; }
  .balance svg { display: none; }
  .balance { padding: 0 12px; }
  .me { width: 40px; height: 40px; }
}

/* Catalogue */
.catalogue-head { display: flex; flex-direction: column; gap: 6px; }
.title-grid { margin-top: 32px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.title-card.link { text-decoration: none; color: inherit; transition: transform .2s ease, border-color .2s ease; }
.title-card.link:hover, .title-card.link:focus-visible { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); outline: none; }
.empty { margin-top: 48px; padding: 48px 24px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty p { max-width: 52ch; }

/* Title page */
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--text-strong); }
.title-hero { margin-top: 16px; padding: 40px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.play-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 0; }
.credit-card { margin-top: 12px; padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.credit-card p { margin: 0; }
/* A line under the card, lined up with the text inside it (22px padding + 1px border). */
.credit-note { margin-top: 10px; padding-left: 23px; }
.credit-provider { display: inline-flex; color: inherit; text-decoration: none; border-radius: 8px; }
.credit-provider img { height: 30px; width: auto; display: block; }
.credit-provider strong { font-size: 20px; color: var(--text-strong); }
.credit-link { color: var(--text-strong); text-decoration: none; opacity: 0.8; }
.credit-link:hover, .credit-link:focus-visible { opacity: 1; text-decoration: underline; }
.episodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.episode { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.ep-num { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 18px; text-align: center; }
.ep-main { display: flex; flex-direction: column; }
.episode form { margin: 0; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* Player */
/* Players are always edged in black: no light line around the video, also not at the rounded corners in Safari. */
.player { margin-top: 16px; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden; background: #000000; border: 1px solid #000000; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; background: #000000; color-scheme: normal; }
.player-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 24px; }

@media (max-width: 640px) {
  .title-hero { padding: 24px 20px; }
  .episode { grid-template-columns: 28px 1fr; }
  .ep-status { grid-column: 2; }
  .episode form { grid-column: 1 / -1; }
  .episode form .btn { width: 100%; }
}

/* Partner area */
.textarea { min-height: 110px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.select { width: auto; min-width: 160px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: #FFFFFF; }
.countries { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.country { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.country .input { min-height: 44px; }
.upload, .subs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.upload progress { width: 100%; height: 6px; accent-color: #FFFFFF; }
input[type=file] { color: var(--muted); font: inherit; font-size: 14px; max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-size: 14px; color: var(--text); background: var(--surface-2); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 8px 14px; margin-right: 10px; cursor: pointer; }
.code-input { font-size: 24px; letter-spacing: 0.3em; text-align: center; }
.header-note { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .header-note { display: none; } }
.header-note + .header-right { margin-left: 16px; }
.hint { font-size: 13px; color: var(--muted); }

/* Admin */
.admin-nav { max-width: 1280px; margin: 0 auto; padding: 8px 32px 0; display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.admin-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; }
.admin-nav a:hover { color: var(--text-strong); }
.admin-nav a.active { color: var(--text-strong); border-bottom-color: var(--text-strong); }
.stats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stat { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--text-strong); line-height: 1.1; }
tr.total td { border-top: 1px solid var(--line-strong); }
@media (max-width: 640px) { .admin-nav { padding: 8px 16px 0; overflow-x: auto; flex-wrap: nowrap; } }

/* Stills: featured header, poster cards, title header (as in the demo) */
.hero-still { position: relative; overflow: hidden; border-radius: 24px; min-height: 520px; display: flex; align-items: flex-end; background: var(--surface); }
.hero-title { min-height: 460px; margin-top: 8px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, #0B0B0D 0%, rgba(11, 11, 13, 0.55) 45%, rgba(11, 11, 13, 0.05) 100%); }
.hero-body { position: relative; padding: 40px; max-width: 680px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hero-body h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; }
.hero-synopsis { font-size: 18px; color: #E3E3E8; }
.hero-meta { font-size: 14px; color: #C9C9CF; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 0; }
.eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #C9C9CF; font-weight: 600; margin: 0; }
.from { display: flex; align-items: center; gap: 12px; }
.from img { height: 22px; width: auto; display: block; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.row-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.row-tools p { margin: 0; }
.poster-card { display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; min-width: 0; }
.poster { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-empty { position: absolute; inset: 0; background: var(--surface-2); }
/* Designed fallback poster (curated items): a dark gradient in the item's accent colour, under the thumbnail. */
.poster-accent { background: radial-gradient(120% 90% at 20% 15%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%), linear-gradient(160deg, color-mix(in srgb, var(--accent) 35%, #0B0B0D) 0%, #0B0B0D 100%); }
.poster-accent > img { position: absolute; inset: 0; }
.poster-card:hover .poster, .poster-card:focus-visible .poster { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); }
.poster-card:focus-visible { outline: none; }
.poster-text { display: flex; flex-direction: column; gap: 2px; }
.poster-text strong { color: var(--text-strong); font-size: 17px; letter-spacing: -0.01em; }
.pill-tr { position: absolute; top: 12px; right: 12px; }
.pill-tl { position: absolute; top: 12px; left: 12px; }
.pill-br { position: absolute; bottom: 12px; right: 12px; }
.pill-br img { height: 12px; width: auto; display: block; }
.pill-light { background: #FFFFFF; color: #0B0B0D; border-color: #FFFFFF; }
@media (max-width: 640px) {
  .hero-still { min-height: 440px; border-radius: 18px; }
  .hero-body { padding: 24px 20px; }
  .hero-synopsis { font-size: 16px; }
}

/* Profile circles and picker, as in the demo: dark circles, the profile colour only as a ring on hover */
.bubble { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.14); color: var(--text); font-size: 18px; font-weight: 500; transition: transform .2s ease, box-shadow .2s ease; }
.bubble.ring { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--c); }
.bubble.add { border-style: dashed; color: var(--muted); font-weight: 300; }
.me { background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.18); color: var(--text); font-size: 16px; font-weight: 500; }
.me:hover, .me:focus-visible { background: var(--surface); color: var(--text); transform: scale(1.08); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--c); outline: none; }
.who { position: relative; min-height: 84vh; max-width: 1280px; margin: 0 auto; padding: 24px 32px 6vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 48px; text-align: center; }
.who-glow { position: absolute; top: 0; left: 50%; width: 900px; max-width: 100%; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 100%); pointer-events: none; }
.who-logo { position: relative; height: 72px; width: auto; display: block; }
.who .profiles { position: relative; gap: 36px; }
.who .profile-btn { gap: 12px; }
.who .profile-btn .name { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--faint); }
.profile-btn:hover .bubble, .profile-btn:focus-visible .bubble { transform: scale(1.08); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--c); }
.profile-btn:hover .name, .profile-btn:focus-visible .name { color: var(--text-strong); }
.who-links { position: relative; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: center; font-size: 13px; }
.who-links a, .who-links .link-btn { color: var(--faint); text-decoration: none; font-size: 13px; min-height: 44px; display: inline-flex; align-items: center; }
.who-links a:hover, .who-links .link-btn:hover { color: var(--text-strong); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }
@media (max-width: 640px) { .who-logo { height: 56px; } .bubble { width: 48px; height: 48px; font-size: 18px; } .who .profiles { gap: 24px; } }
.manage-row .bubble { width: 44px; height: 44px; font-size: 17px; }

/* Search in the top bar (as in the demo) */
.header-center { flex: 1 1 260px; max-width: 520px; margin: 0 auto; }
.search { margin: 0; }
.search-input { width: 100%; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.search-input:focus { outline: none; border-color: rgba(255, 255, 255, 0.45); }
.header-center + .header-right { margin-left: 0; }
.sort { display: flex; align-items: center; gap: 10px; margin: 0; flex-wrap: wrap; }
.select-small { min-height: 40px; padding: 0 12px; font-size: 14px; min-width: 0; border-radius: 999px; }

/* Providers row and provider pages (as in the demo) */
.provider-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.provider-tile { aspect-ratio: 16 / 10; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.10); background: #000000; color: inherit; text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 12px; transition: transform .2s ease, border-color .2s ease; }
.provider-tile img { width: 74%; height: 36px; object-fit: contain; display: block; }
/* A long name may need two lines: the tile then grows instead of spilling over the next row or the footer. */
.provider-tile { align-self: start; }
.provider-tile:hover, .provider-tile:focus-visible { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.3); outline: none; }
/* Provider page: a banner in the provider's own main colour (--brand), slightly darker towards the bottom. */
.provider-banner { margin-top: 16px; min-height: 320px; padding: 48px 40px; border-radius: 28px; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.10) 100%), var(--brand); display: flex; align-items: center; justify-content: center; text-align: center; color: #FFFFFF; }
/* Every logo gets the same width; the height limit keeps squarer logos (like Disney+) from growing tall. */
.provider-banner img { width: min(260px, 56%); height: auto; max-height: 96px; object-fit: contain; display: block; }
.provider-banner-plain { background: var(--surface, #1C1C1E); border: 1px solid rgba(255, 255, 255, 0.08); }
.provider-banner.on-light { color: #000000; }
.provider-banner.on-very-dark { border: 1px solid rgba(255, 255, 255, 0.12); }
.provider-banner-name { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.provider-banner-small { margin-top: 0; min-height: 180px; padding: 28px; border-radius: 20px; }
.provider-banner-small img { width: min(160px, 56%); max-height: 60px; }
.provider-banner-small .provider-banner-name { font-size: 28px; }
.provider-summary { margin-top: 24px; font-size: 19px; color: var(--text-strong); }
.provider-page .section { margin-top: 48px; }
.brand-bar { display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--brand, #FFFFFF); margin-bottom: 18px; }
.colour-form { display: flex; flex-direction: column; gap: 10px; }
.colour-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.colour-row input[type=color] { width: 48px; height: 36px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 10px; background: none; cursor: pointer; }
.colour-row .btn { width: 150px; }
@media (max-width: 900px) { .site-header .inner { flex-wrap: wrap; } .header-center { order: 3; flex-basis: 100%; max-width: none; } }
@media (max-width: 640px) { .provider-grid { grid-template-columns: repeat(2, 1fr); } .provider-banner { min-height: 200px; padding: 32px 20px; border-radius: 20px; } .provider-banner img { width: min(180px, 60%); max-height: 72px; } .provider-banner-name { font-size: 30px; } }
.hero-body h1, .poster-text strong { overflow-wrap: anywhere; }

/* Drop-downs drawn by the site itself (Safari ignores the height of its own), so they line up with the other fields */
select.input {
  -webkit-appearance: none; appearance: none;
  height: 48px; min-height: 48px; padding: 0 44px 0 16px; line-height: normal; cursor: pointer;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23A1A1A8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
select.input.select-small { height: 40px; min-height: 40px; padding: 0 36px 0 14px; background-position: right 13px center; }
select.input option { background: var(--surface); color: var(--text); }

/* Admin: provider logo */
.logo-admin { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.logo-preview { width: 240px; flex: none; }
@media (max-width: 640px) { .logo-preview { width: 100%; } }
.form .btn.btn-small { width: auto; }
.logo-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.logo-buttons .btn { width: 150px; }

/* Admin: Curated */
.curated-edit { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.curated-preview .poster-card { pointer-events: none; }
.curated-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 980px; }
.curated-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 20px; align-items: center; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.curated-thumb .poster-text { display: none; }
.curated-thumb .poster-card { pointer-events: none; }
.curated-thumb .pill-tr, .curated-thumb .pill-br { display: none; }
.curated-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.curated-info strong { color: var(--text-strong); overflow-wrap: anywhere; }
.curated-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.curated-actions form { display: flex; gap: 8px; margin: 0; }
.btn-icon { min-width: 44px; padding: 0 12px; }
@media (max-width: 760px) {
  .curated-edit { grid-template-columns: 1fr; }
  .curated-row { grid-template-columns: 120px 1fr; }
  .curated-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.curated-link .btn { align-self: flex-start; }
.via-youtube { gap: 6px; }
.via-youtube img { height: 12px; width: auto; display: block; }
.front-page-bar { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.front-page-bar p { flex: 1 1 360px; margin: 0; }

/* Home header with several titles: the slides lie on top of each other and fade. */
.hero-rotator { display: grid; align-items: stretch; }
.hero-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; min-height: inherit; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease, visibility 0s; }
.hero-controls { position: absolute; right: 24px; bottom: 24px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.hero-controls[hidden] { display: none; }
.hero-arrow { width: 32px; height: 32px; padding: 0 0 3px; border: 0; background: none; color: rgba(255, 255, 255, 0.55); font-size: 24px; line-height: 1; cursor: pointer; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); transition: color .2s ease; }
.hero-arrow:hover { color: #FFFFFF; }
.hero-arrow:focus-visible { color: #FFFFFF; outline: 2px solid #FFFFFF; outline-offset: 2px; border-radius: 6px; }
.hero-dots { display: flex; gap: 6px; }
.hero-dot { width: 7px; height: 7px; padding: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.35); cursor: pointer; transition: background .2s ease, width .2s ease; }
.hero-dot[aria-current="true"] { width: 18px; background: #FFFFFF; }
.hero-dot:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
@media (max-width: 640px) { .hero-controls { right: 16px; bottom: auto; top: 16px; } }
@media (prefers-reduced-motion: reduce) { .hero-slide, .hero-slide.is-active { transition: none; } }

/* Contact page */
.contact { max-width: 720px; }
.contact-form { margin-top: 24px; }
.field-error { color: #FF8A8A; font-size: 14px; }
.input[aria-invalid="true"] { border-color: #FF8A8A; }
.contact-privacy { margin-top: 20px; }
/* The honeypot: off screen for people, still in the form for robots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer (more in part 2) */
/* Footer: small, quiet grey type on the near-black background. Fine print uses --faint (#8E8E96, about 6.4:1 contrast,
   still easy to read); the company details are one step brighter (--muted). No bold, no underlines. */
.site-footer { margin-top: 80px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; font-weight: 400; color: var(--faint); }
.site-footer .inner { max-width: 1280px; margin: 0 auto; padding: 28px 32px 44px; }
@media (max-width: 640px) { .site-footer { margin-top: 56px; } .site-footer .inner { padding: 22px 16px 36px; } }
.site-footer p { margin: 0; max-width: 880px; }
.site-footer a { color: inherit; text-decoration: none; transition: color .15s ease; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--muted); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.footer-links a { color: var(--faint); }
.footer-company { display: flex; flex-wrap: wrap; color: var(--muted); }
.footer-company a:hover, .footer-company a:focus-visible { color: var(--text); }
.footer-company span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--faint); }
.site-footer .footer-fine { margin-top: 8px; color: var(--faint); }
.contact-company { margin-top: 32px; font-size: 12px; line-height: 1.6; color: var(--muted); display: flex; flex-wrap: wrap; }
.contact-company a { color: inherit; text-decoration: none; }
.contact-company a:hover { color: var(--text); }
.contact-company span:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--faint); }

/* Curated video page: poster with a play button; YouTube's player loads only after a click. */
.curated-player { position: relative; display: flex; align-items: center; justify-content: center; }
.curated-player > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.curated-play { position: relative; width: 72px; height: 72px; border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; padding-left: 4px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); transition: transform .2s ease; }
.curated-play:hover, .curated-play:focus-visible { transform: scale(1.06); outline: none; }
.curated-play:focus-visible { box-shadow: 0 0 0 3px #0B0B0D, 0 0 0 5px #FFFFFF; }
/* Small grey note, in the same quiet style as the footer's fine print. */
.embed-note { margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--faint); }

/* Admin: sortable tables and small status tags */
th .sort-link { color: inherit; text-decoration: none; display: inline-flex; gap: 4px; align-items: baseline; white-space: nowrap; }
th .sort-link:hover, th .sort-link.on { color: var(--text-strong); }
th.num .sort-link { flex-direction: row-reverse; }
.sort-arrow { display: inline-block; min-width: 0.7em; font-size: 12px; }
.pills a.pill { text-decoration: none; color: var(--muted); }
.pills a.pill.active { background: #FFFFFF; color: #0B0B0D; border-color: #FFFFFF; }
.pill-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 600; color: var(--muted); vertical-align: middle; }

/* Admin: partner profiles */
.form-inline { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.form-inline .btn { flex: 0 0 auto; }
/* Fixed columns, so every row lines up under the headings whether or not it has a Remove button. */
.profiles-table { table-layout: fixed; min-width: 560px; }
.profiles-table td { vertical-align: middle; padding-top: 10px; padding-bottom: 10px; }
.profiles-table .c-share { width: 120px; }
.profiles-table .c-count { width: 90px; }
.profiles-table .c-save { width: 96px; }
.profiles-table .c-remove { width: 96px; }
.profiles-table form { margin: 0; }
.profiles-table .link-btn { padding: 0; line-height: 1; vertical-align: middle; }
.pct-field { display: inline-flex; align-items: center; gap: 6px; }
.pct-field .input { width: 76px; text-align: right; }

/* Shown on partner pages while an admin works there for a partner */
.acting-bar { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; padding: 10px 16px; background: #FFFFFF; color: #0B0B0D; font-size: 14px; text-align: center; }
.acting-bar strong { color: #0B0B0D; }
.acting-bar form { margin: 0; }
.acting-bar .btn { background: #0B0B0D; color: #FFFFFF; border-color: #0B0B0D; }

/* Browse by category */

/* Admin → Partners: changing the order */
.partner-order .order-cell { width: 96px; padding-right: 0; white-space: nowrap; vertical-align: top; line-height: 1.2; }
.partner-order .order-tools { display: flex; align-items: center; gap: 4px; min-height: 1.4em; }
.partner-order .order-tools .link-btn { min-height: 0; height: auto; }
.partner-order .drag-handle { display: none; cursor: grab; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 6px; user-select: none; }
.partner-order .drag-handle:hover { color: var(--text-strong); }
.partner-order.can-drag .drag-handle { display: inline-block; }
.partner-order .order-buttons { display: inline-flex; gap: 2px; margin: 0; }
.partner-order .order-buttons .link-btn { padding: 0 4px; line-height: 1.2; }
.partner-order tr.is-dragging { opacity: 0.4; }
.partner-order-status { min-height: 1.4em; margin-top: 4px; color: var(--muted); }

/* Title page: too few takes, buy right here and come back after paying */
.topup { margin: 16px 0 8px; padding: 20px; border-radius: 18px; border: 1px solid var(--line-strong); background: rgba(11, 11, 13, 0.78); max-width: 100%; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.topup p { margin: 0; }
.topup form { margin: 0; }
.topup-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(122px, 1fr); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -4px; padding: 4px; }
.topup-row::-webkit-scrollbar { display: none; }
.topup-row > div { scroll-snap-align: start; display: flex; }
.topup-tile { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: rgba(20, 20, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14); }
.topup-tile.is-best { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 36px -6px rgba(255, 255, 255, 0.16); }
.topup-tile-head { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
.topup-tile-head::after { content: ''; display: block; height: 22px; }
.topup-tile-head:has(.pill)::after { display: none; }
.topup-tile-head .pill { font-size: 11px; padding: 3px 9px; }
.topup-tile-takes { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--text-strong); line-height: 1.1; white-space: nowrap; }
.topup-tile-takes span { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.topup-tile .btn { margin-top: auto; width: 100%; }
@media (max-width: 640px) {
  .topup { padding: 16px; }
  .topup-row { grid-auto-columns: 62%; margin-right: -16px; padding-right: 16px; }
}

/* Wallet: voucher codes */
.code-box { margin-top: 32px; max-width: 760px; }
.code-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.code-form .input { max-width: 220px; text-transform: uppercase; letter-spacing: 0.04em; }
.code-applied { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.code-applied p { margin: 0; }
s.was { opacity: 0.55; font-weight: 400; margin-left: 4px; }

/* Pop-up for titles and free videos, over the page you were browsing. Full screen on a phone. */
.popup { padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--text);
  width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.popup::backdrop { background: rgba(0, 0, 0, 0.72); }
.popup-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: flex-end; height: 0; }
.popup-close { margin: 16px 16px 0 0; width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.16); background: var(--pill-bg); color: var(--text-strong); cursor: pointer; }
.popup-close:hover { background: var(--surface-2); }
.popup-body > .page { padding: 24px 32px 48px; }
.popup-body > .page > .back { margin-right: 64px; }
html.popup-open { overflow: hidden; }
@media (max-width: 640px) {
  .popup { width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
  .popup-body > .page { padding: 16px 16px 40px; }
}

/* Bundle tiles: the edge gets brighter and the glow behind a little stronger for each bigger bundle. */
.bundle-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; }
.bundle-label { white-space: nowrap; }
.bundle-label.is-popular { background: #FFFFFF; color: #0B0B0D; border-color: #FFFFFF; }
.bundle { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.bundle.tier-1 { border-color: rgba(255, 255, 255, 0.10); box-shadow: 0 0 40px -6px rgba(255, 255, 255, 0.03); }
.bundle.tier-2 { border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 0 44px -6px rgba(255, 255, 255, 0.06); }
.bundle.tier-3 { border-color: rgba(255, 255, 255, 0.28); box-shadow: 0 0 48px -6px rgba(255, 255, 255, 0.09); }
.bundle.tier-4 { border-color: rgba(255, 255, 255, 0.42); box-shadow: 0 0 56px -4px rgba(255, 255, 255, 0.14); }
.bundle:hover { border-color: rgba(255, 255, 255, 0.5); }

/* The partner's offer tile (in its main colour) and its bio at the bottom of its page */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.offer-tile { margin-top: 48px; padding: 28px 32px; border-radius: 24px; background: #000000; border: 1.5px solid var(--brand, rgba(255, 255, 255, 0.2)); box-shadow: 0 0 28px -12px var(--brand, transparent); color: #FFFFFF; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 100%; }
.offer-tile .eyebrow { color: var(--brand, #C9C9CF); }
.offer-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.offer-body h2 { margin: 0; font-size: 26px; letter-spacing: -0.01em; color: #FFFFFF; }
.offer-text p { margin: 0; color: var(--text); line-height: 1.5; }
.offer-text p + p { margin-top: 8px; }
.offer-btn { flex: none; }
.offer-tile.offer-plain { border-color: rgba(255, 255, 255, 0.2); box-shadow: none; }
.offer-tile.offer-plain .eyebrow { color: #C9C9CF; }
.partner-bio h2 { margin: 0 0 12px; }
.partner-bio-text { max-width: 68ch; display: flex; flex-direction: column; gap: 12px; overflow-wrap: anywhere; }
.partner-bio-text p { margin: 0; color: var(--text); line-height: 1.6; font-size: 17px; }
.counter { font-size: 13px; color: var(--muted); align-self: flex-end; }
.counter.is-over { color: #FF8A8A; }
@media (max-width: 640px) { .offer-tile { flex-direction: column; align-items: stretch; padding: 24px 20px; border-radius: 20px; } .offer-body h2 { font-size: 22px; } .offer-btn { width: 100%; } }
