/* FlixBook web — dark theme from the design: near-black navy, red "GO" accent,
   left sidebar, pill search, rounded cards. */

:root {
  --bg: #07090e;
  --bg-2: #0c0f16;
  --surface: #121620;
  --surface-2: #181d29;
  --surface-3: #202636;
  --border: #242a3a;
  --border-2: #2f3649;
  --text: #f4f5f8;
  --text-2: #c9cdd6;
  --muted: #8a92a3;
  --faint: #5d6577;
  --red: #e50914;
  --red-2: #ff2d46;
  --red-soft: rgba(229, 9, 20, 0.14);
  --grad: linear-gradient(135deg, #ff2d46 0%, #e50914 55%, #b0060f 100%);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --amber: #f5b301;
  --amber-soft: rgba(245, 179, 1, 0.14);
  --blue: #3b82f6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --sidebar: 232px;
  --topbar: 64px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Bengali", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262c3b; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- logo */
.logo {
  display: inline-flex; align-items: baseline;
  font-weight: 900; font-size: 22px; letter-spacing: -0.5px; line-height: 1;
  color: #fff; user-select: none;
}
.logo .go { color: var(--red-2); display: inline-flex; align-items: baseline; margin-left: 0.04em; }
/* the "o": a lowercase-sized play button standing on the baseline (the
   triangle is out of flow, so the circle's own bottom is its baseline) */
.logo .play-o {
  position: relative; display: inline-block;
  width: 0.56em; height: 0.56em; margin-left: 0.05em;
  border-radius: 50%; background: var(--grad);
}
.logo .play-o::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-38%, -50%);
  border-left: 0.19em solid #fff; border-top: 0.12em solid transparent; border-bottom: 0.12em solid transparent;
}
.logo.lg { font-size: 40px; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; grid-template-rows: var(--topbar) 1fr; min-height: 100vh; }
.topbar {
  grid-column: 1 / -1; position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px; padding: 0 22px;
  background: rgba(7, 9, 14, 0.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.topbar .brand { width: calc(var(--sidebar) - 22px); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar .menu-btn { display: none; }
.search {
  flex: 1; max-width: 560px; position: relative;
}
.search input {
  width: 100%; height: 40px; padding: 0 16px 0 42px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; outline: none;
  transition: border-color .15s, background .15s;
}
.search input:focus { border-color: var(--border-2); background: var(--surface-2); }
.search svg { position: absolute; left: 14px; top: 11px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.topbar .actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 0; color: var(--text-2);
}
.icon-btn:hover { background: var(--surface-2); color: #fff; }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--surface-3); display: inline-grid; place-items: center;
  font-weight: 700; color: #fff; font-size: 14px; overflow: hidden;
  border: 2px solid var(--surface-3);
}
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.lg { width: 96px; height: 96px; font-size: 34px; border-width: 3px; }
.avatar.xl { width: 120px; height: 120px; font-size: 42px; border-width: 3px; }

.sidebar {
  position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow-y: auto;
  padding: 14px 12px 24px; border-right: 1px solid rgba(255, 255, 255, 0.04); background: var(--bg);
}
.nav-section { margin-bottom: 14px; }
.nav-title { padding: 10px 12px 6px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 2px 0;
  border-radius: 10px; color: var(--text-2); font-weight: 500;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--surface); color: #fff; }
.nav-item.active { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(229, 9, 20, .28); }
.nav-item svg { flex-shrink: 0; }
.nav-item .count { margin-left: auto; font-size: 11px; background: var(--red); color: #fff; padding: 0 7px; border-radius: 999px; font-weight: 700; }
.nav-item.active .count { background: rgba(0, 0, 0, .3); }

main#view { min-width: 0; padding: 22px 26px 60px; }
/* signed out: just the sign-up / sign-in card, no way into the catalogue */
.shell.guest { grid-template-columns: 1fr; }
.shell.guest .sidebar, .shell.guest .backdrop-mobile, .shell.guest .topbar .search, .shell.guest .topbar .menu-btn { display: none; }
.page-enter { animation: fadein .18s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.backdrop-mobile { display: none; }

/* ---------------------------------------------------------------- type & layout */
h1, h2, h3 { margin: 0; line-height: 1.2; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.3px; }
.page-sub { color: var(--muted); margin-top: 4px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section { margin: 30px 0 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-size: 18px; font-weight: 700; }
.section-link { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }
.section-link:hover { color: #fff; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.row-flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; white-space: nowrap; background: var(--surface-2); color: #fff;
  transition: filter .12s, background .12s, transform .06s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn.primary { background: var(--grad); box-shadow: 0 8px 20px rgba(229, 9, 20, .25); }
.btn.ghost { background: transparent; border-color: var(--border-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.white { background: #fff; color: #0b0d12; }
.btn.success { background: var(--green); color: #04130a; }
.btn.danger { background: #3a1116; color: #ff7b86; border-color: #5a1d25; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn.pill { border-radius: 999px; }
.btn.block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center;
}
.chip:hover { color: #fff; border-color: var(--border-2); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }

.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 2px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; }
.tab:hover { color: #fff; }
.tab.active { color: #fff; border-bottom-color: var(--red); }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .2px; background: var(--surface-3); color: var(--text-2);
}
.badge.live { background: var(--red); color: #fff; }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.badge.premium { background: linear-gradient(135deg, #ffd66b, #f5a300); color: #2b1a00; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: #ff6b77; }
.badge.blue { background: rgba(59,130,246,.15); color: #7aa7ff; }
.verified { color: #3ea6ff; display: inline-flex; vertical-align: -3px; }

/* ---------------------------------------------------------------- media cards */
.rail { position: relative; }
.rail-track {
  display: grid; grid-auto-flow: column; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px; scroll-behavior: smooth;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > * { scroll-snap-align: start; }
.rail-track.posters { grid-auto-columns: 168px; }
.rail-track.wide { grid-auto-columns: 272px; }
.rail-track.tiles { grid-auto-columns: 150px; }
.rail-track.reels { grid-auto-columns: 170px; }
.rail-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-2);
  background: rgba(18, 22, 32, .92); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .15s;
}
.rail:hover .rail-btn { opacity: 1; }
.rail-btn.prev { left: -14px; } .rail-btn.next { right: -14px; }

.grid { display: grid; gap: 18px 14px; }
.grid.posters { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid.reels { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid.creators { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card { position: relative; display: block; min-width: 0; }
.card .thumb {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2);
  aspect-ratio: 2 / 3; border: 1px solid rgba(255, 255, 255, .04);
}
.card.wide .thumb { aspect-ratio: 16 / 9; }
.card.reel-card .thumb { aspect-ratio: 9 / 16; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .thumb img { transform: scale(1.05); }
.card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.75)); pointer-events: none; }
.card .overlay-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; justify-content: space-between; z-index: 2; gap: 6px; }
.card .overlay-bottom { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 2; font-size: 12px; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 6px; }
.card .play-hover {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .2s; z-index: 2;
}
.card .play-hover span { width: 48px; height: 48px; border-radius: 50%; background: rgba(229, 9, 20, .92); display: grid; place-items: center; box-shadow: var(--shadow); }
.card:hover .play-hover { opacity: 1; }
.card .meta { padding: 8px 2px 0; }
.card .title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .sub { color: var(--muted); font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.18); z-index: 3; }
.progress > i { display: block; height: 100%; background: var(--red); }

.placeholder-art {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 12px;
  font-weight: 800; font-size: 18px; line-height: 1.15; letter-spacing: -.2px; color: rgba(255,255,255,.92);
}

/* channel tiles */
.tile { display: block; }
.tile .box {
  aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden; position: relative; transition: border-color .15s, transform .15s;
}
.tile:hover .box { border-color: var(--red); transform: translateY(-2px); }
.tile .box img { max-width: 62%; max-height: 62%; object-fit: contain; }
/* ready-made logo cards (assets/img/channels) fill the box */
.tile .box .initials { font-weight: 900; font-size: 26px; color: #fff; }
.tile .name { margin-top: 8px; font-weight: 600; font-size: 13px; text-align: center; }
.tile .genre { color: var(--muted); font-size: 12px; text-align: center; }
.tile .corner { position: absolute; top: 6px; left: 6px; }

/* ---------------------------------------------------------------- home hero */
.hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; background: var(--surface);
  border: 1px solid rgba(255,255,255,.05);
}
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hero .slide.on { opacity: 1; z-index: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,14,.94) 0%, rgba(7,9,14,.6) 38%, rgba(7,9,14,0) 70%), linear-gradient(0deg, rgba(7,9,14,.85), transparent 45%); }
.hero .info { position: absolute; left: 34px; bottom: 34px; max-width: 520px; z-index: 2; }
.hero .kicker { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.hero h2 { font-size: 44px; font-weight: 900; letter-spacing: -1px; line-height: 1.04; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.hero .desc { color: var(--text-2); margin: 12px 0 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .facts { color: var(--text-2); display: flex; gap: 10px; font-size: 13px; margin-top: 8px; flex-wrap: wrap; }
.hero .dots { position: absolute; right: 24px; bottom: 24px; z-index: 3; display: flex; gap: 6px; }
.hero .dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.35); padding: 0; transition: width .25s; }
.hero .dots button.on { width: 24px; background: var(--red); }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.panel-title { font-weight: 700; font-size: 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }

.event-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 22px 26px;
  background: radial-gradient(120% 140% at 100% 0%, #3a0a12 0%, #140a14 40%, #0d1019 100%); border: 1px solid #2a1822;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 150px;
}
.event-card .league { color: var(--text-2); font-weight: 700; letter-spacing: .4px; font-size: 13px; }
.event-card h3 { font-size: 24px; font-weight: 800; margin: 8px 0 4px; }
.event-card .when { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.teams { display: flex; align-items: center; gap: 18px; }
.team { display: grid; justify-items: center; gap: 6px; font-weight: 700; font-size: 12px; width: 90px; text-align: center; }
.team .crest { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; overflow: hidden; font-weight: 900; font-size: 20px; }
.team .crest img { width: 78%; height: 78%; object-fit: contain; }
.vs { color: var(--muted); font-weight: 800; }

/* ---------------------------------------------------------------- details page */
.detail-hero { position: relative; margin: -22px -26px 0; min-height: 480px; overflow: hidden; }
.detail-hero .bg { position: absolute; inset: 0; }
.detail-hero .bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.detail-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(7,9,14,.85) 35%, rgba(7,9,14,.2) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 50%); }
.detail-hero .content { position: relative; z-index: 2; padding: 70px 40px 36px; max-width: 760px; }
.detail-hero h1 { font-size: 46px; font-weight: 900; letter-spacing: -1px; line-height: 1.05; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--text-2); margin: 14px 0; font-size: 13.5px; }
.facts .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.detail-hero .desc { color: var(--text-2); font-size: 15px; max-width: 640px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.lock-note { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(245, 179, 1, .08); border: 1px solid rgba(245, 179, 1, .25); color: #ffd66b; max-width: 560px; }
.episodes { display: flex; flex-direction: column; gap: 10px; }
.episode { display: grid; grid-template-columns: 40px 200px 1fr auto; gap: 16px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid transparent; }
.episode:hover { background: var(--surface); border-color: var(--border); }
.episode .num { font-size: 22px; font-weight: 800; color: var(--muted); text-align: center; }
.episode .t { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.episode .t img { width: 100%; height: 100%; object-fit: cover; }
.episode .nm { font-weight: 700; }
.episode .ds { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- player */
.player-page { margin: -22px -26px 0; }
.player-wrap { position: relative; background: #000; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--topbar)); }
.player-wrap video { width: 100%; height: 100%; background: #000; display: block; }
.player-top { position: absolute; top: 0; left: 0; right: 0; padding: 16px 18px; display: flex; align-items: center; gap: 12px; background: linear-gradient(180deg, rgba(0,0,0,.7), transparent); z-index: 3; transition: opacity .3s; }
.player-top .ttl { font-weight: 700; font-size: 16px; }
.player-wrap.idle .player-top, .player-wrap.idle .player-side { opacity: 0; }
.player-side { position: absolute; right: 16px; top: 64px; z-index: 3; display: flex; flex-direction: column; gap: 8px; transition: opacity .3s; }
.quality-menu { position: absolute; right: 16px; top: 110px; z-index: 4; background: rgba(18,22,32,.97); border: 1px solid var(--border-2); border-radius: 12px; padding: 6px; min-width: 150px; }
.quality-menu button { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; }
.quality-menu button:hover { background: var(--surface-3); }
.quality-menu button.on { color: var(--red-2); font-weight: 700; }
.next-up { position: absolute; right: 18px; bottom: 80px; z-index: 4; background: rgba(12,15,22,.95); border: 1px solid var(--border-2); border-radius: 14px; padding: 12px; display: flex; gap: 12px; align-items: center; max-width: 360px; box-shadow: var(--shadow); }
.next-up img { width: 110px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.player-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--text-2); z-index: 2; padding: 20px; }
.player-body { padding: 22px 26px; }

/* live */
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.live-player { border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 16/9; position: relative; }
.live-player video { width: 100%; height: 100%; display: block; }
.live-player .over { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 8px; align-items: center; }
.unmute-btn { position: absolute; top: 14px; right: 14px; z-index: 5; padding: 9px 16px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; backdrop-filter: blur(6px); box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }
.unmute-btn:hover { background: var(--red); }
.badge.off-air { background: #374151; color: #d1d5db; }
.nowbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; color: var(--text-2); flex-wrap: wrap; }
.nowbar:empty { display: none; }
.channel-list { display: flex; flex-direction: column; gap: 6px; max-height: 520px; overflow-y: auto; }
.channel-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; border: 1px solid transparent; }
.channel-row:hover { background: var(--surface-2); }
.channel-row.on { border-color: var(--red); background: var(--red-soft); }
.channel-row .lg { width: 60px; height: 38px; border-radius: 8px; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; font-weight: 800; font-size: 13px; }
.channel-row .lg img { max-width: 80%; max-height: 80%; object-fit: contain; }
.guide { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.guide table { border-collapse: collapse; width: 100%; min-width: 760px; }
.guide td, .guide th { border-bottom: 1px solid var(--border); padding: 10px; text-align: left; vertical-align: top; font-size: 13px; }
.guide th { color: var(--muted); font-weight: 600; font-size: 12px; background: var(--surface); }
.guide .prog { background: var(--surface-2); border-radius: 8px; padding: 6px 8px; margin-right: 6px; display: inline-block; min-width: 130px; }
.guide .prog.now { background: var(--red-soft); border: 1px solid rgba(229,9,20,.4); }
.guide .prog .tm { color: var(--muted); font-size: 11px; }

/* fixtures */
.fixtures { display: flex; flex-direction: column; gap: 6px; }
.fx-day { margin: 14px 0 4px; font-weight: 700; color: var(--text-2); font-size: 13px; letter-spacing: .2px; }
.fx-day:first-child { margin-top: 0; }
.fx-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 220px 110px; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
a.fx-row:hover { border-color: var(--red); }
.fx-row.live { border-color: rgba(229, 9, 20, .55); background: linear-gradient(90deg, rgba(229, 9, 20, .12), var(--surface) 40%); }
.fx-time { font-weight: 700; font-size: 13px; color: var(--text-2); }
.fx-ft { color: var(--muted); font-weight: 700; }
.fx-teams { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: center; gap: 10px; }
.fx-team { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; }
.fx-team.home { justify-content: flex-end; text-align: right; }
.fx-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fx-crest { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; flex-shrink: 0; }
.fx-vs { text-align: center; color: var(--muted); font-weight: 700; font-size: 12px; }
.fx-score { text-align: center; font-weight: 900; font-size: 16px; }
.fx-meta { color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fx-action { text-align: right; }
.rail-track.matches { grid-auto-columns: 250px; }
.match-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.match-card:hover { border-color: var(--red); }
.mc-top { display: flex; justify-content: space-between; align-items: center; }
.mc-team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mc-team span:not(.fx-crest) { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mc-when { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 4px; }
@media (max-width: 900px) {
  .fx-row { grid-template-columns: 58px minmax(0, 1fr); }
  .fx-meta, .fx-action { grid-column: 2; text-align: left; }
}

/* match artwork */
.match-card.has-art { padding: 0; overflow: hidden; gap: 0; }
.match-card.has-art > :not(.match-art) { padding-left: 14px; padding-right: 14px; }
.match-card.has-art > .mc-top { padding-top: 10px; }
.match-card.has-art > :last-child { padding-bottom: 12px; }
.match-card.has-art > * + * { margin-top: 6px; }
.match-art { position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center; display: grid; place-items: center; }
.match-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,14,.25), rgba(7,9,14,.75)); }
.match-art > * { position: relative; }
.ma-live { position: absolute !important; top: 8px; left: 8px; }
.ma-teams { display: flex; align-items: center; gap: 16px; }
.ma-teams .team-badge { width: 52px; height: 52px; }
.ma-teams .team-badge.flag { width: 60px; height: 40px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.85); }
.ma-vs { font-weight: 900; font-size: 15px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.ma-title { padding: 0 14px; text-align: center; font-weight: 900; font-size: 17px; line-height: 1.2; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.85); }
.team-badge { display: inline-block; flex-shrink: 0; }
.team-badge.shield { width: 28px; height: 32px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
.team-badge.flag { width: 30px; height: 20px; object-fit: cover; border-radius: 3px; border: 1px solid rgba(255,255,255,.35); }
.team-badge.tbd { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); color: var(--muted); display: inline-grid; place-items: center; font-weight: 800; }
.fx-crest { width: auto !important; height: auto !important; background: none !important; display: inline-flex; align-items: center; }
.mc-team .team-badge.shield { width: 22px; height: 26px; }
.mc-team .team-badge.flag { width: 26px; height: 17px; }
.event-card { background-size: cover !important; background-position: center !important; }
.event-card .crest { background: rgba(0,0,0,.35); }
.event-card .crest .team-badge.shield { width: 44px; height: 50px; }
.event-card .crest .team-badge.flag { width: 48px; height: 32px; border-radius: 4px; }

/* sports hero */
.sports-hero .slide { background-size: cover; background-position: center; }
.sports-hero .slide::after { background: linear-gradient(90deg, rgba(7,9,14,.95) 0%, rgba(7,9,14,.7) 45%, rgba(7,9,14,.15) 80%), linear-gradient(0deg, rgba(7,9,14,.85), transparent 50%); }
.sports-hero .info { max-width: 560px; }
.sports-hero h2 { font-size: 40px; }
.sports-hero .facts { font-size: 14px; color: var(--text-2); }
/* the active dot fills up until the next slide */
.sports-hero .dots button { position: relative; overflow: hidden; cursor: pointer; }
.sports-hero .dots button.on { width: 30px; background: rgba(255,255,255,.35); }
.sports-hero .dots button.on::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; animation: dot-fill var(--slide-ms, 3000ms) linear forwards; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-teams { position: absolute; z-index: 2; right: 7%; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 26px; }
.hero-teams .ht { display: grid; justify-items: center; gap: 10px; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.9); font-size: 15px; max-width: 150px; text-align: center; }
.hero-teams .team-badge.shield { width: 84px; height: 96px; }
.hero-teams .team-badge.flag { width: 110px; height: 73px; border-radius: 8px; border: 3px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.hero-teams .vs { font-weight: 900; font-size: 26px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.9); }
.tt-badges { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 4px; background: rgba(0,0,0,.35); }
.tt-badges .team-badge.flag { width: 22px; height: 15px; }
.tt-badges .team-badge.shield { width: 17px; height: 20px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 5px; animation: pulse 1.2s infinite; vertical-align: 1px; }
@media (max-width: 1100px) { .hero-teams { display: none; } }

/* reels */
.reels-page { display: flex; justify-content: center; }
.reels-feed { height: calc(100vh - var(--topbar) - 44px); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; width: 100%; max-width: 520px; }
.reels-feed::-webkit-scrollbar { display: none; }
.reels-page > .empty { flex: 1; }
.reel { height: calc(100vh - var(--topbar) - 44px); scroll-snap-align: start; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 6px 0; }
.reel .frame { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100% - 70px); border-radius: 18px; overflow: hidden; background: #000; }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 16px 16px; background: linear-gradient(0deg, rgba(0,0,0,.85), transparent); z-index: 2; }
.reel .caption .who { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.reel .caption .txt { color: var(--text-2); margin-top: 6px; font-size: 13px; cursor: pointer; max-height: 40vh; overflow-y: auto; }
.reel .caption .txt.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reel .side { display: flex; flex-direction: column; gap: 16px; align-items: center; align-self: flex-end; padding-bottom: 20px; }
.reel .act { display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--text-2); background: none; border: 0; }
.reel .act .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: #fff; }
.reel .act.on .ic { background: var(--red); }
.reel .mute { position: absolute; top: 12px; right: 12px; z-index: 3; }
.reel .tap { position: absolute; inset: 0; z-index: 1; }

/* ---------------------------------------------------------------- creators */
.creator-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.creator-card .top { display: flex; gap: 12px; align-items: center; }
.creator-card .nm { font-weight: 700; }
.creator-card .strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.creator-card .strip div { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.creator-card .strip img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { display: flex; gap: 24px; align-items: center; padding: 26px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #1a0d14, #0f1320 60%); border: 1px solid var(--border); flex-wrap: wrap; }
.profile-head .stats { display: flex; gap: 28px; margin-top: 12px; }
.profile-head .stats b { display: block; font-size: 20px; }
.profile-head .stats span { color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- studio */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat .lbl { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat .val { font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin-top: 6px; }
.stat .chg { font-size: 12px; font-weight: 700; margin-top: 2px; }
.chg.up { color: var(--green); } .chg.down { color: #ff6b77; } .chg.flat { color: var(--muted); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; margin-top: 14px; }
.chart { width: 100%; height: 240px; display: block; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis { fill: var(--faint); font-size: 10px; }
.chart .line { fill: none; stroke: #5b8cff; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { fill: #5b8cff; }
.chart .hover-line { stroke: var(--border-2); stroke-dasharray: 3 3; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 8px; padding: 6px 10px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); }
.earn-list .item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.earn-list .item:last-child { border-bottom: 0; }
.earn-list .item b { font-size: 15px; }
.bars .bar { display: grid; grid-template-columns: 90px 1fr 60px; gap: 10px; align-items: center; margin: 8px 0; font-size: 13px; }
.bars .track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bars .track i { display: block; height: 100%; background: var(--grad); }

.type-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.type-card { text-align: left; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.type-card:hover { border-color: var(--border-2); background: var(--surface-2); }
.type-card.on { border-color: var(--red); background: var(--red-soft); }
.type-card .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.type-card b { font-size: 14px; }
.type-card span { color: var(--muted); font-size: 12px; }
.dropzone { border: 2px dashed var(--border-2); border-radius: var(--radius-lg); padding: 34px; text-align: center; color: var(--muted); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone.drag, .dropzone:hover { border-color: var(--red); background: var(--red-soft); color: #fff; }
.upload-bar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.upload-bar i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .2s; }

.wallet-hero { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #2a0710 0%, #160b18 45%, #0f1320 100%); border: 1px solid #36202a; flex-wrap: wrap; }
.creator-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 30px; }
.creator-hero .type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .creator-hero { grid-template-columns: 1fr; } }
.upload-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.upload-media { display: grid; gap: 14px; position: sticky; top: calc(var(--topbar) + 16px); }
.upload-media .dropzone { min-height: 300px; display: grid; place-content: center; justify-items: center; }
@media (max-width: 1100px) { .upload-grid { grid-template-columns: 1fr; } .upload-media { position: static; } .upload-media .dropzone { min-height: 0; } }
.wallet-hero .amt { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.method { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.method .mi { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 12px; color: #fff; }
.mi.bkash { background: #e2136e; } .mi.nagad { background: #f6921e; } .mi.bank { background: #2b5dd1; } .mi.rocket { background: #8c3494; }
.tx { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.tx .ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); }
.tx .plus { color: var(--green); font-weight: 700; } .tx .minus { color: #ff6b77; font-weight: 700; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; }
table.data th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255,255,255,.015); }
.cell-media { display: flex; gap: 10px; align-items: center; min-width: 220px; }
.cell-media .t { width: 64px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--surface-3); flex-shrink: 0; }
.cell-media .t img { width: 100%; height: 100%; object-fit: cover; }
.cell-media .nm { font-weight: 600; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-dot.green { color: var(--green); } .status-dot.amber { color: var(--amber); } .status-dot.red { color: #ff6b77; } .status-dot.gray { color: var(--muted); } .status-dot.blue { color: #7aa7ff; }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 14px; }
.form.two { grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.settings-grid .panel { display: flex; flex-direction: column; }
.settings-grid .panel.wide { grid-column: 1 / -1; }
.settings-grid .panel > .mt:last-child { margin-top: auto; padding-top: 14px; } /* Save buttons line up */
@media (max-width: 1100px) { .settings-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; align-content: start; } /* a taller neighbour must not push the input down */
.field > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; outline: none;
  background: var(--bg-2); border: 1px solid var(--border); transition: border-color .15s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--red); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.switch input { display: none; }
.switch .knob { width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background .15s; flex-shrink: 0; cursor: pointer; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .knob { background: var(--green); }
.switch input:checked + .knob::after { transform: translateX(18px); }
.form-error { color: #ff7b86; font-size: 13px; min-height: 18px; }
.check-list { display: flex; flex-wrap: wrap; gap: 8px; }
.check-list label { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); font-size: 13px; cursor: pointer; }
.check-list input { accent-color: var(--red); }

/* auth */
/* Sign in / Sign up: a full-screen front door over the app shell (topbar
   included), a tilted wall of sports photos, one dark card in the middle. */
/* the page fade uses a transform, which would pin the fixed door to the page for a moment */
.page-enter:has(> .nf-auth) { animation: none; }
.nf-auth { position: fixed; inset: 0; z-index: 90; overflow-y: auto; background: #000; color: #fff; display: flex; flex-direction: column; }
.nf-wall { position: fixed; inset: -12% -8%; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; transform: rotate(-8deg) scale(1.1); opacity: .55; pointer-events: none; }
.nf-wall i { display: block; aspect-ratio: 16 / 10; border-radius: 6px; background: #111 center / cover no-repeat; }
.nf-shade { position: fixed; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 30%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.9) 100%),
  radial-gradient(ellipse at center, rgba(0,0,0,.1), rgba(0,0,0,.6)); }
.nf-top, .nf-center, .nf-foot { position: relative; z-index: 1; }
.nf-top { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(16px, 5vw, 56px); }
.nf-logo { font-size: clamp(28px, 4vw, 40px); }
.nf-switch { padding: 7px 16px; border-radius: 4px; background: var(--red); color: #fff; font-weight: 600; font-size: 15px; }
.nf-switch:hover { background: #c11119; }
.nf-center { flex: 1; display: grid; place-items: center; padding: 10px 16px 40px; }
.nf-card { width: 100%; max-width: 450px; padding: 48px 68px 44px; border-radius: 6px; background: rgba(0, 0, 0, .75); }
.nf-card h1 { font-size: 32px; font-weight: 700; margin: 0 0 26px; }
.nf-sub { color: #b3b3b3; margin: -16px 0 24px; font-size: 15px; }
.nf-form { display: grid; gap: 16px; }
.nf-field { position: relative; display: block; }
.nf-input { width: 100%; height: 56px; padding: 22px 16px 6px; border-radius: 4px; border: 1px solid rgba(128,128,128,.7); background: rgba(22, 22, 22, .7); color: #fff; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.nf-input:focus { border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.nf-field > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #b3b3b3; font-size: 16px; pointer-events: none; transition: top .15s, font-size .15s, transform .15s; }
.nf-input:focus + span, .nf-input:not(:placeholder-shown) + span { top: 8px; transform: none; font-size: 12px; }
.nf-field.reveal .nf-input { padding-right: 70px; }
.nf-field.reveal > span { right: 70px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nf-reveal { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #b3b3b3; font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px; }
.nf-reveal:hover { color: #fff; }
.nf-error { color: #ff6b6b; font-size: 14px; }
.nf-error:empty { display: none; }
.nf-btn { display: grid; place-items: center; width: 100%; height: 48px; margin-top: 8px; border: 0; border-radius: 4px; background: var(--red); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .15s; }
.nf-btn:hover { background: #c11119; }
.nf-btn:disabled { opacity: .7; cursor: default; }
.nf-note { color: #8c8c8c; font-size: 13px; text-align: center; }
.nf-alt { margin-top: 36px; color: #b3b3b3; font-size: 16px; }
.nf-alt a { color: #fff; font-weight: 600; }
.nf-alt a:hover { text-decoration: underline; }
.nf-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 24px clamp(16px, 5vw, 56px) 28px; background: rgba(0,0,0,.75); border-top: 1px solid rgba(255,255,255,.08); color: #8c8c8c; font-size: 13px; }
.nf-app { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; color: #fff; font-weight: 600; }
.nf-app:hover { border-color: #fff; }
/* phones: no card, no wall — plain black like the TV apps */
@media (max-width: 720px) {
  .nf-wall, .nf-shade { display: none; }
  .nf-top { padding: 16px; }
  .nf-center { place-items: start stretch; padding: 8px 0 24px; }
  .nf-card { max-width: none; padding: 16px 20px 24px; background: none; }
  .nf-card h1 { font-size: 28px; }
  .nf-foot { background: #0b0b0b; flex-direction: column; align-items: flex-start; }
}
a.app-badge:hover { border-color: var(--red); }
.side-foot { color: var(--faint); font-size: 11px; line-height: 1.5; padding: 6px 12px 0; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.plan.best { border-color: var(--red); background: linear-gradient(180deg, rgba(229,9,20,.1), var(--surface) 50%); }
.plan .price { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { padding: 0; margin: 6px 0 12px; list-style: none; color: var(--text-2); display: grid; gap: 8px; }
.plan li { display: flex; gap: 8px; align-items: center; }
.plan li svg { color: var(--green); }
.plan .tag { position: absolute; top: -11px; left: 20px; }

/* ---------------------------------------------------------------- overlays */
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 100; display: grid; place-items: center; padding: 20px; animation: fadein .15s; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; box-shadow: var(--shadow); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0; }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 16px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 20px 18px; }
.dropdown { position: absolute; top: calc(var(--topbar) - 6px); right: 16px; z-index: 60; width: 360px; max-height: 480px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; animation: fadein .12s; }
.dropdown .item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; align-items: flex-start; }
.dropdown .item:hover { background: var(--surface-2); }
.dropdown .item.unread { background: rgba(229,9,20,.06); }
.dropdown .head { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 8px; font-weight: 700; }
.menu { position: absolute; top: calc(var(--topbar) - 6px); right: 16px; z-index: 60; width: 250px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; animation: fadein .12s; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; background: none; border: 0; text-align: left; color: var(--text-2); }
.menu a:hover, .menu button:hover { background: var(--surface-2); color: #fff; }
.menu .me { padding: 10px; display: flex; gap: 10px; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast { padding: 11px 16px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-weight: 500; animation: fadein .15s; display: flex; gap: 8px; align-items: center; }
.toast.error { border-color: #5a1d25; background: #2a1016; }
.toast.ok { border-color: #1d5a33; background: #0f2418; }

.empty { text-align: center; padding: 54px 20px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty svg { color: var(--faint); margin-bottom: 10px; }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.notice-bar { background: var(--red-soft); border: 1px solid rgba(229,9,20,.3); color: #ffb3b9; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }
.info-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; color: var(--text-2); }
.kbd { font-family: ui-monospace, monospace; background: var(--surface-3); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.app-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.app-badge { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 12px; background: #000; border: 1px solid var(--border-2); }
.app-badge small { display: block; color: var(--muted); font-size: 10px; }

/* ---------------------------------------------------------------- my studio */
.studio-head .avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.tab svg { vertical-align: -2px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.metric { text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; color: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.metric:hover { background: var(--surface-2); }
.metric.on { border-color: var(--red); background: var(--red-soft); }
.metric .lbl { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.metric .val { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin-top: 6px; }
.metric .chg { font-size: 12px; font-weight: 700; margin-top: 2px; }
.studio-grid.one { grid-template-columns: 1fr; }
.split { margin: 6px 0 14px; }
.split-head { font-size: 13px; margin-bottom: 6px; }
.split-bar { height: 10px; border-radius: 99px; background: #7c3aed; overflow: hidden; }
.split-bar i { display: block; height: 100%; background: var(--red); }
.split-legend { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; margin-top: 6px; }
.split-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.split-legend .dot.a { background: var(--red); } .split-legend .dot.b { background: #7c3aed; }
.hour-bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 140px; }
.hour-bars .hb { height: 100%; display: flex; align-items: flex-end; }
.hour-bars .hb i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: var(--surface-3); }
.hour-bars .hb.peak i { background: var(--grad); }
.hour-axis { display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; margin-top: 6px; }
.post-head { display: flex; gap: 18px; align-items: center; margin-top: 4px; }
.post-head .t { width: 200px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-3); flex-shrink: 0; }
.post-head .t img { width: 100%; height: 100%; object-fit: cover; }
.lifetime { display: flex; gap: 22px; flex-wrap: wrap; }
.lifetime > div { display: grid; gap: 2px; }
.lifetime b { font-size: 18px; }
.earn-post { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.earn-post:last-child { border-bottom: 0; }
.earn-post .nm { font-weight: 600; }
.fg-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; background: var(--grad); color: #fff; font-weight: 900; font-size: 20px; }
.fg-avatar.sm { width: 28px; height: 28px; font-size: 14px; }

/* ---------------------------------------------------------------- videos feed */
.vpage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.vpage.solo { grid-template-columns: minmax(0, 720px); justify-content: center; }
.vfeed { display: grid; gap: 18px; }
.vcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.vwho { display: flex; gap: 10px; align-items: center; padding: 14px 16px 8px; }
.vwho .nm { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.vwho .grow { min-width: 0; }
.vtext { padding: 0 16px 12px; color: var(--text-2); }
.vtext b { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
.vdesc { white-space: pre-wrap; font-size: 14px; }
.vdesc.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-btn { background: none; border: 0; padding: 2px 0; color: var(--muted); font-weight: 600; cursor: pointer; }
.link-btn:hover { color: #fff; }
.vmedia { position: relative; background: #000; aspect-ratio: 16 / 9; }
.vmedia video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.vdur { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.7); border-radius: 6px; padding: 2px 7px; font-size: 12px; font-weight: 700; pointer-events: none; }
.vstats { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--border); }
.vactions { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px 8px; }
.vact { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px; border-radius: 10px; background: none; border: 0; color: var(--text-2); font-weight: 600; cursor: pointer; }
.vact:hover { background: var(--surface-2); color: #fff; }
.vact.on { color: var(--red-2); }
.vsentinel { height: 1px; }
.vrail { position: sticky; top: calc(var(--topbar) + 16px); display: grid; gap: 14px; }
.rail-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rail-reels .rr { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; background: var(--surface-3) center / cover no-repeat; overflow: hidden; }
.rail-reels .rr span { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 700; text-shadow: 0 1px 4px #000; }
.rail-person { display: flex; gap: 10px; align-items: center; }
.rail-person .nm { font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.rail-cta { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, #2a0710, #160b18 60%, #0f1320); }
@media (max-width: 1100px) { .vpage { grid-template-columns: 1fr; } .vrail { display: none; } }

.bottom-nav { display: none; }

/* reels: a landscape clip shows whole over a blurred copy of itself */
.reel .frame .blur { position: absolute; inset: -24px; background: center / cover no-repeat; filter: blur(24px) brightness(.55); }
.reel .frame.wide video { position: relative; object-fit: contain; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-grid, .live-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .topbar .menu-btn { display: inline-grid; }
  .topbar .brand { width: auto; }
  .sidebar { position: fixed; top: var(--topbar); left: 0; bottom: 0; width: 260px; height: auto; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow); }
  .backdrop-mobile.open { display: block; position: fixed; inset: var(--topbar) 0 0 0; background: rgba(0,0,0,.5); z-index: 45; }
  .detail-hero .content { padding: 50px 24px 30px; }
  .episode { grid-template-columns: 30px 140px 1fr; }
  .episode > :last-child { display: none; }
}
@media (max-width: 720px) {
  main#view { padding: 16px 14px 60px; }
  .detail-hero, .player-page { margin: -16px -14px 0; }
  .hero { min-height: 300px; }
  .hero h2, .detail-hero h1 { font-size: 30px; }
  .hero .info { left: 18px; bottom: 20px; right: 18px; }
  .hero .dots { top: 16px; bottom: auto; right: 16px; }
  .search { display: none; }
  .form.two { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat .val { font-size: 22px; }
  .event-card { flex-direction: column; align-items: flex-start; }
  .dropdown, .menu { right: 8px; left: 8px; width: auto; }
  main#view { padding-bottom: 84px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(7, 9, 14, .95); backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
  .shell.guest .bottom-nav { display: none; }
  .bn-item { display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
  .bn-item.active { color: #fff; }
  .bn-item.active svg { color: var(--red-2); }
  .reels-page { margin: -16px -14px -84px; }
  .reels-feed { height: calc(100dvh - var(--topbar) - 58px - env(safe-area-inset-bottom)); max-width: none; }
  .reel { position: relative; height: calc(100dvh - var(--topbar) - 58px - env(safe-area-inset-bottom)); padding: 0; gap: 0; }
  .reel .frame { width: 100%; max-width: none; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .reel .caption { padding: 60px 76px 18px 14px; }
  .reel .side { position: absolute; right: 10px; bottom: 24px; z-index: 3; padding: 0; gap: 14px; }
  .reel .act { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
  .reel .act .ic { background: rgba(0,0,0,.4); backdrop-filter: blur(6px); }
  .vfeed { margin: 0 -14px; gap: 10px; }
  .vcard { border-radius: 0; border-left: 0; border-right: 0; }
  .post-head { flex-direction: column; align-items: flex-start; }
  .post-head .t { width: 100%; }
  .studio-head .row-flex:last-child { width: 100%; }
}

/* ---------------------------------------------------------------- home: Live Now & Fixtures cards */
.home-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; margin-top: 20px; }
.home-card .hc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.home-card .section-title { display: inline-flex; align-items: center; gap: 8px; }
.live-card { border-color: rgba(229, 9, 20, .4); background: linear-gradient(135deg, rgba(229, 9, 20, .10), var(--surface) 45%); }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: pulse-ring 1.6s infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, .6); } 70% { box-shadow: 0 0 0 9px rgba(229, 9, 20, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); } }
.fx-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.fx-track { display: flex; width: max-content; animation: fx-slide var(--fx-duration, 60s) linear infinite; }
.fx-strip { display: flex; gap: 12px; padding-right: 12px; }
@keyframes fx-slide { from { transform: translateX(-50%); } to { transform: translateX(0); } }  /* left to right */
@media (hover: hover) and (pointer: fine) { .fx-viewport:hover .fx-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .fx-track { animation: none; } .fx-viewport { overflow-x: auto; } }
/* Trending: rank number + picture, Top-10 style */
.tr-card { flex: 0 0 auto; display: flex; align-items: flex-end; }
.tr-n { font-size: 104px; font-weight: 900; line-height: .8; letter-spacing: -6px; color: transparent; -webkit-text-stroke: 3px #5b5f69; margin-right: -12px; position: relative; z-index: 0; user-select: none; }
.tr-card:first-child .tr-n { -webkit-text-stroke-color: var(--red-2); }
.tr-box { position: relative; z-index: 1; width: 240px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.tr-card:hover .tr-box { border-color: var(--red); transform: translateY(-2px); }
.tr-box .t { position: absolute; inset: 0; background: center / cover no-repeat; }
.tr-box .t img { width: 100%; height: 100%; object-fit: cover; }
.tr-box .tt-badges { background: none; align-items: flex-start; justify-content: flex-end; padding: 8px; }
.tr-box .tt-badges .team-badge.flag { width: 30px; height: 20px; border-radius: 3px; }
.tr-box .tt-badges .team-badge.shield { width: 24px; height: 28px; }
.tr-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; background: linear-gradient(0deg, rgba(0,0,0,.9), transparent); }
.tr-info .nm { font-weight: 700; font-size: 13.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tr-info .sb { color: var(--text-2); font-size: 11.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .tr-n { font-size: 78px; letter-spacing: -4px; -webkit-text-stroke-width: 2px; margin-right: -9px; }
  .tr-box { width: 190px; }
}
.fx-card { flex: 0 0 250px; display: grid; gap: 8px; align-content: start; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); cursor: default; user-select: none; }
.fx-league { font-size: 12px; font-weight: 700; color: var(--red-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.fx-t { display: grid; justify-items: center; gap: 6px; text-align: center; font-weight: 700; font-size: 13px; }
.fx-t span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-t .team-badge.flag { width: 40px; height: 27px; border-radius: 4px; }
.fx-t .team-badge.shield { width: 32px; height: 37px; }
.fx-t .team-badge.tbd { width: 32px; height: 32px; }
.fx-vs { color: var(--muted); font-weight: 800; font-size: 12px; }
.fx-title { font-weight: 700; }
.fx-when { font-size: 12.5px; font-weight: 600; }
.fx-ch { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- sports categories */
.sc-bar { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.sc-tab { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); scroll-snap-align: start; transition: border-color .15s, background .15s; }
.sc-tab:hover { border-color: var(--border-2); background: var(--surface-2); }
.sc-tab.on { border-color: var(--red); background: linear-gradient(135deg, rgba(229, 9, 20, .22), var(--surface) 70%); }
.sc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: #fff; flex-shrink: 0; }
.sc-tab.on .sc-ic { background: var(--red); }
.sc-txt { display: grid; line-height: 1.3; }
.sc-txt b { font-size: 14px; white-space: nowrap; }
.sc-txt small { color: var(--muted); font-size: 12px; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.sc-live { color: #ff6b77; font-weight: 700; display: inline-flex; align-items: center; margin-left: 10px; }
.sc-txt small .sc-live { margin-left: 0; }
.sc-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.sc-ic.big { width: 56px; height: 56px; border-radius: 16px; background: var(--red); }
.sc-head h2 { font-size: 26px; font-weight: 800; margin: 0; line-height: 1.15; }
.sc-live-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.sc-live-card { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, rgba(229, 9, 20, .12), var(--surface) 55%); border: 1px solid rgba(229, 9, 20, .35); }
a.sc-live-card:hover { border-color: var(--red); }
.sc-thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sc-body { min-width: 0; display: grid; gap: 4px; justify-items: start; }
.sc-title { font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.sc-row { display: grid; grid-auto-flow: column; grid-auto-columns: 250px; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.sc-hl { display: grid; gap: 6px; align-content: start; min-width: 0; }
.sc-hl-art { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); transition: border-color .15s, transform .15s; }
a.sc-hl:hover .sc-hl-art { border-color: var(--red); transform: translateY(-2px); }
.sc-hl-art img { width: 100%; height: 100%; object-fit: cover; }
.sc-when { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 11.5px; font-weight: 700; }
.sc-when.now { background: var(--red); }
.sc-hl-t { font-weight: 700; font-size: 13.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sc-hl-s { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 720px) {
  .sc-tab { padding: 8px 12px 8px 8px; }
  .sc-ic { width: 36px; height: 36px; }
  .sc-head h2 { font-size: 22px; }
  .sc-live-list { grid-template-columns: 1fr; }
  .sc-live-card { grid-template-columns: 88px minmax(0, 1fr); }
  .sc-live-card .btn { grid-column: 1 / -1; justify-content: center; }
  .sc-thumb { width: 88px; }
  .sc-row { grid-auto-columns: 200px; }
}
.sc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: 12px; }
.sc-pick-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.sc-pick-row:hover { background: var(--surface-2); }
.sc-pick-row .lg { width: 48px; height: 27px; border-radius: 6px; overflow: hidden; background: var(--surface-3); display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.sc-pick-row .lg img { max-width: 80%; max-height: 80%; object-fit: contain; }

/* admin: push notification preview (an Android-style notification) */
.push-preview { background: #1f2430; border-radius: 18px; padding: 12px 16px 14px; max-width: 380px; box-shadow: var(--shadow); }
.push-preview .pv-head { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.push-preview .pv-ic { width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; display: inline-grid; place-items: center; }
.push-preview .pv-title { font-weight: 700; margin-top: 6px; }
.push-preview .pv-text { color: var(--text-2); font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- channel cards
   FlixBook's own art for each channel (genre colours, a shade per channel, the
   FlixBook mark, the short name); the name and "Credit: …" sit under it. */
.lc { display: block; min-width: 0; }
.lc-art {
  position: relative; container-type: inline-size; isolation: isolate; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; transition: transform .15s, box-shadow .15s;
  background:
    radial-gradient(120% 90% at 88% 6%, hsl(var(--h2) 95% 62% / .55), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, hsl(var(--h) 80% 12% / .85), transparent 60%),
    linear-gradient(135deg, hsl(var(--h) 75% 40%), hsl(var(--h2) 80% 20%));
}
.lc-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px); }
.lc-art::after { content: ""; position: absolute; right: -8%; bottom: -16%; width: 52%; aspect-ratio: 1; z-index: -1; background: url("/assets/img/fb-mark.png") center / contain no-repeat; opacity: .13; transform: rotate(-12deg); }
a.lc:hover .lc-art { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.lc-short {
  padding: 0 8%; text-align: center; color: #fff; font-weight: 900; line-height: .98; letter-spacing: -.02em; text-shadow: 0 3px 14px rgba(0, 0, 0, .35);
  overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 26px;
}
.lc-short.l1 { font-size: 34px; font-size: 16cqw; }
.lc-short.l2 { font-size: 26px; font-size: 11.5cqw; }
.lc-short.l3 { font-size: 20px; font-size: 9.5cqw; }
.lc-badge { position: absolute; right: 6%; top: 7%; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: #e50914; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.lc-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.lc-badge.off { background: rgba(0, 0, 0, .7); color: #d1d5db; }
.lc-badge.prem { background: rgba(0, 0, 0, .6); color: #f5b301; padding: 4px 7px; }
.lc-art.img > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.lc-credit { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-name { margin-top: 7px; color: var(--text-2, #c9ced8); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the same art, small: player list, live-now thumbnails, admin */
.lc-art.mini { width: 100%; height: 100%; aspect-ratio: auto; border-radius: inherit; }
.lc-art.mini::after { display: none; }
.lc-art.mini .lc-short { font-weight: 800; letter-spacing: 0; text-shadow: none; padding: 0 6%; }
.lc-art.mini .lc-short.l1 { font-size: 13px; font-size: 21cqw; }
.lc-art.mini .lc-short.l2 { font-size: 11px; font-size: 15cqw; }
.lc-art.mini .lc-short.l3 { font-size: 10px; font-size: 12.5cqw; }
.sc-hl-art > .lc-art { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.rail-track.lcards { grid-auto-columns: 250px; }
.grid.lcards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 14px; }
@media (max-width: 720px) {
  .rail-track.lcards { grid-auto-columns: 58vw; }
  .grid.lcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- ad slider (Live TV, Home, Sports) */
.ad-slider { position: relative; margin: 0 0 22px; border-radius: 16px; overflow: hidden; background: var(--surface); aspect-ratio: 3 / 1; }
.home-card + .ad-slider, .hero + .ad-slider { margin-top: 20px; }
.ad-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.ad-track::-webkit-scrollbar { display: none; }
.ad-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; position: relative; display: block; }
.ad-slide img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.ad-label { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; font-weight: 700; }
.ad-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.ad-dots button { width: 7px; height: 7px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); transition: width .25s; cursor: pointer; }
.ad-dots button.on { width: 22px; background: #fff; }

/* ---------------------------------------------------------------- Live TV schedule (slides + "next 6 hours" rows) */
.sch-slide { background: #07080d; color: #fff; overflow: hidden; }
.sch-art { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; }
.sch-art > .lc-art { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.sch-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #07080d 0%, rgba(7, 8, 13, .82) 26%, rgba(7, 8, 13, .15) 70%, transparent); }
.sch-text { position: relative; z-index: 1; height: 100%; max-width: 58%; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 4.5%; }
.sch-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.sch-now { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--red); }
.sch-now i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.sch-at { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.sch-row { color: rgba(255, 255, 255, .7); text-transform: uppercase; }
.sch-slide.k-movie .sch-row { color: #7cb4ff; }
.sch-slide.k-serial .sch-row { color: #d0a3ff; }
.sch-slide.k-natok .sch-row { color: #ffc766; }
.sch-title { font-size: clamp(17px, 2.6vw, 34px); font-weight: 800; line-height: 1.1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sch-sub { color: rgba(255, 255, 255, .78); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-btn { align-self: flex-start; margin-top: 4px; pointer-events: none; }
.sch-hours { margin-left: 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.sch-art .lc-short { display: none; }
.sch-art .lc-art.mini::after { display: block; opacity: .16; right: 4%; bottom: -30%; width: 46%; }
.pc-tags { position: absolute; right: 8px; top: 8px; display: flex; align-items: center; gap: 5px; }
.pc-tags .lc-badge { position: static; }
.sc-hl.pc .sc-when { left: auto; right: 8px; }
.pc-kind { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; color: #fff; background: #2563eb; }
.pc-kind.k-serial { background: #8b3dff; }
.pc-kind.k-natok { background: #d97706; }
.pc-kind.static, .pc-tags .pc-kind { position: static; display: inline-block; }
.sc-hl.pc.later .lc-art { filter: saturate(.85); }
.pc-details { display: grid; grid-template-columns: minmax(0, 200px) 1fr; gap: 16px; align-items: start; }
.pc-details-art { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.pc-details-art > .lc-art { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.pc-details .stack > div { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .sch-art { width: 72%; }
  .sch-text { max-width: 70%; gap: 3px; padding: 0 16px; }
  .sch-kicker { font-size: 10.5px; gap: 6px; }
  .sch-now, .sch-at { padding: 2px 7px; }
  .sch-title { font-size: 16px; -webkit-line-clamp: 1; }
  .sch-sub { font-size: 11.5px; }
  .sch-btn { display: none; }
  .sch-hours { display: none; }
  .pc-details { grid-template-columns: 1fr; }
}
@media (max-width: 720px) { .ad-slider { border-radius: 12px; margin-bottom: 18px; } }

/* ---------------------------------------------------------------- Live TV player page */
.live-solo .live-player { max-height: 74vh; margin: 0 auto; }
.live-title { margin: 14px 0 6px; }
.live-title h1 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.back-link:hover { color: #fff; }

/* the player waiting for a tap (no autoplay) */
.player-msg.offer { cursor: pointer; padding: 0; overflow: hidden; }
.player-msg.offer .offer-art { position: absolute; inset: 0; }
.player-msg.offer .offer-art .lc-art { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; filter: brightness(.55); }
.player-msg.offer .offer-body { position: relative; display: grid; justify-items: center; gap: 10px; color: #fff; text-align: center; padding: 16px; }
.offer-play { width: 74px; height: 74px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); cursor: pointer; transition: transform .15s; }
.offer-play svg { margin-left: 4px; }
.player-msg.offer:hover .offer-play { transform: scale(1.06); }
.offer-name { font-weight: 800; font-size: 20px; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.player-msg.offer .lc-short { display: none; }

/* Sports rows: the sport's icon before its name */
.sr-title { display: inline-flex; align-items: center; gap: 10px; }
.sr-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--red); color: #fff; display: inline-grid; place-items: center; flex-shrink: 0; }
.sr-title .sc-live { font-size: 13px; margin-left: 4px; }

/* what's on now, under a sports channel's card (the collector) */
.lc-now { margin-top: 9px; font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-now b { color: #ff4d5e; margin-right: 6px; font-size: 11px; letter-spacing: .04em; }
.lc-now.k-highlights b { color: #fbbf24; }
.lc-now.k-replay b { color: #9ca3af; }
.sr-ic.hl { background: #b7791f; }

/* My Clip: the Reels | Videos switch */
.clip-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(8px); }
.clip-tab { padding: 6px 18px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #e5e7eb; }
.clip-tab.on { background: var(--red); color: #fff; }
.clip-tab:not(.on):hover { color: #fff; }
.reels-page { position: relative; }
/* the same switch in the same place on both: 10px under the top bar, centred */
.reels-page > .clip-tabs { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 20; }
.clip-bar { position: relative; display: flex; justify-content: center; align-items: center; margin: 10px 0 18px; }
@media (max-width: 720px) { .clip-bar { margin-top: -6px; } }

/* channel cards v3: the live picture under the FlixBook logo; the channel as a caption */
.lc-art.pv { background: #0b0d12; }
.lc-art .lc-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lc-art.pv::before { z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .72) 100%); }
.lc-art.pv::after { display: none; }
.lc-art .lc-brand { position: absolute; left: 6%; top: 7%; font-size: 18px; font-size: clamp(13px, 8cqw, 22px); text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
.lc-art .lc-center { display: grid; justify-items: center; gap: 4px; }
.lc-art .lc-brand-big { font-size: 30px; font-size: 13cqw; text-shadow: 0 3px 14px rgba(0, 0, 0, .35); }
.lc-art .lc-center small { font-size: 11px; font-size: 4.3cqw; font-weight: 800; letter-spacing: .14em; color: rgba(255, 255, 255, .85); }
.lc-art .lc-cap { position: absolute; left: 6%; bottom: 7%; max-width: 72%; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-art.mini .lc-pic { z-index: 0; }
.lc > .lc-now { margin-top: 9px; font-size: 14px; font-weight: 600; color: var(--text); }
.lc-now + .lc-credit { margin-top: 1px; }

/* a Premium channel this member can't watch yet */
.lc-badge.lock { background: rgba(0, 0, 0, .7); color: #fbbf24; gap: 4px; border: 1px solid rgba(251, 191, 36, .5); }
.lc.locked .lc-art .lc-pic { filter: saturate(.75) brightness(.8); }

/* phones: the Go Premium button is just its crown, so the top bar fits */
@media (max-width: 720px) {
  .topbar .go-prem { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; flex-shrink: 0; }
  .topbar .go-prem .txt { display: none; }
}

.plan-total { font-size: 13px; color: var(--text-2); margin: 4px 0 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }

.nf-hint { color: #8c8c8c; font-size: 12.5px; margin: -8px 2px 0; }

/* admin users: a table on computers, a card per member on phones */
.users-cards { display: none; }
.user-card dl { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 6px 10px; margin: 12px 0 0; font-size: 13.5px; }
.user-card dt { color: var(--muted); }
.user-card dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .users-table { display: none; }
  .users-cards { display: grid; gap: 10px; }
}
