/* 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: 200px; /* just wide enough for the longest line (the footer links) */
  /* page side margins (the user, 2026-10-02, "like SpaceNet"): the logo, the menu and the
     page all sit 4% in from the screen edge (24–72px), 24px on tablets, 16px on phones.
     --view-l/--view-r: main#view's own side padding (full-bleed blocks undo exactly that) */
  --gutter: clamp(24px, 4vw, 72px);
  --pad-top: 24px;
  --view-l: 28px;
  --view-r: 0px;
  --strip: 0px; /* phones and tablets: the row of pages under the top bar */
  --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: center;
  font-size: 22px; line-height: 1;
  color: #fff; user-select: none;
}
/* the syncXpace logo (the user's, 2026-10-03): coloured "pace" + orbit + star; "syncX" is a mask filled
   with the text colour. 4.77 x the font size wide, as the old logo was (the top bar's sizes count on it). */
.logo .logo-art {
  position: relative; display: block; height: calc(4.77em * 259 / 800); aspect-ratio: 800 / 259;
  background: url("/assets/img/logo-pace-dark.svg") center / contain no-repeat;
}
.logo .logo-art::before {
  content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("/assets/img/logo-sync.svg") center / contain no-repeat;
  mask: url("/assets/img/logo-sync.svg") center / contain no-repeat;
}
.logo.lg { font-size: 40px; }
/* the mySync logo (MySync's own mark, the user 2026-10-04): "my" is a mask in the text colour (white on dark, black
   on light); "Sync" is syncXpace's blue (its lighter dark-theme blue on dark) with the orange orbit and star */
.mslogo { display: inline-flex; align-items: center; line-height: 1; color: #fff; vertical-align: middle; }
.mslogo .mslogo-art { position: relative; display: block; height: 1.5em; aspect-ratio: 796 / 265; background: url("/assets/img/mysync-sync-dark.svg") center / contain no-repeat; }
.mslogo .mslogo-art::before { content: ""; position: absolute; inset: 0; background: currentColor;
  -webkit-mask: url("/assets/img/mysync-my.svg") center / contain no-repeat; mask: url("/assets/img/mysync-my.svg") center / contain no-repeat; }
:root[data-theme="light"] .mslogo { color: #000; }
:root[data-theme="light"] .mslogo .mslogo-art { background-image: url("/assets/img/mysync-sync.svg"); }
.nav-title .mslogo.ms-side { font-size: 15px; margin: 2px 0 -2px; }
.page-title .mslogo.ms-page { font-size: 30px; }
.page-name .mslogo.ms-top { font-size: 22px; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--gutter) var(--sidebar) minmax(0, 1fr) var(--gutter); grid-template-rows: var(--topbar) 1fr; min-height: 100vh; }
.shell > .sidebar { grid-column: 2; }
.shell > main#view { grid-column: 3; }
.topbar {
  grid-column: 1 / -1; position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter) 0 max(16px, calc(var(--gutter) - 14px));
  background: rgba(7, 9, 14, 0.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .brand { width: var(--sidebar); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar .menu-btn { display: none; }
.topbar .brand-name { display: flex; align-items: center; min-width: 0; }
.topbar .page-name { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.2px; line-height: 1.1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .topbar .page-name { font-size: 20px; } }
.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;
  /* the line beside the page, the same as under the top bar (the user, 2026-10-02), drawn as a strip of the
     background so the open page's red mark can sit on it; no scrollbar over it (the wheel and a finger still scroll) */
  background: linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08)) right top / 1px 100% no-repeat, var(--bg);
  scrollbar-width: none;
}
.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-title.as-written { text-transform: none; letter-spacing: 0; font-size: 13px; } /* MySync: a name, as written */
.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; }
/* the open page: no colour change (the user, 2026-10-02)… */
.nav-item { position: relative; }
.nav-item.active { color: var(--text); }
/* …just the line beside the menu turns red next to it, like the top bar's line under its open page (the user, 2026-10-02) */
.sidebar::-webkit-scrollbar { display: none; }
.nav-item.active::after { content: ""; position: absolute; top: 4px; bottom: 4px; right: -12px; width: 3px; border-radius: 3px; background: var(--grad); }
.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; }

main#view { min-width: 0; padding: var(--pad-top) var(--view-r) 60px var(--view-l); }
/* signed out: just the sign-up / sign-in card, no way into the catalogue */
.shell.guest { grid-template-columns: 1fr; }
.shell.guest > main#view { grid-column: 1 / -1; }
.shell.guest .sidebar, .shell.guest .backdrop-mobile, .shell.guest .topbar { display: none; } /* their pages have their own top bar */
.topbar .brand-name { display: flex; align-items: center; min-width: 0; }
.topbar .page-name { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.2px; line-height: 1.1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 720px) { .topbar .page-name { font-size: 20px; } }
.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; padding: 8px 0; margin: -8px 0; } /* a finger-sized tap area, same look */
.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);
  white-space: nowrap; flex-shrink: 0; /* one line always: it's 22px tall ("1 Month" broke in two on phones) */
}
.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; }
/* a finger swipes the row: the arrows (shown on mouse hover only) would sit unseen over the cards' edges and catch taps */
@media (hover: none) { .rail-btn { display: none; } }

.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); }
/* a finger-sized tap area round each little dot, the same look */
.hero .dots button { position: relative; }
.hero .dots button::before { content: ""; position: absolute; inset: -10px -3px; }

.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: calc(-1 * var(--pad-top)) calc(-1 * var(--view-r)) 0 calc(-1 * var(--view-l)); 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; }
/* the title page, laid out like SpaceNet's (the user, 2026-10-03): stage on top, poster | facts table, buttons under a line */
.tl-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 60vh; min-height: 220px; border-radius: var(--radius-lg); overflow: hidden; background: #000; display: grid; place-items: center; text-align: center; }
.tl-stage .bg { position: absolute; inset: 0; }
.tl-stage .bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(22px) brightness(.32) saturate(1.2); transform: scale(1.15); }
.tl-stage .bg .placeholder-art { width: 100%; height: 100%; filter: brightness(.4); }
.tl-stage-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; max-width: 560px; padding: 20px; color: #fff; }
.tl-stage-in h2 { font-size: 26px; font-weight: 800; color: var(--red-2); }
.tl-stage-in p { color: rgba(255, 255, 255, .86); font-size: 15px; }
.tl-bigplay { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .14); transition: transform .15s; }
.tl-bigplay:hover { transform: scale(1.06); }
.tl-body { display: grid; grid-template-columns: minmax(150px, 250px) minmax(0, 1fr); gap: 26px; align-items: start; margin-top: 22px; }
.tl-poster img, .tl-poster .placeholder-art { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0, 0, 0, .35); }
.tl-info { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.tl-info td { border: 1px solid var(--border); padding: 9px 12px; vertical-align: top; color: var(--text-2); line-height: 1.5; }
.tl-info td:first-child { width: 110px; color: var(--muted); white-space: nowrap; }
.tl-info .tl-title { font-size: 28px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--text); white-space: normal; }
.tl-info a { color: var(--text); font-weight: 600; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .tl-stage { aspect-ratio: 16 / 10; border-radius: var(--radius); }
  .tl-stage-in h2 { font-size: 21px; }
  .tl-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tl-poster { width: min(300px, 80%); justify-self: center; }
  .tl-info .tl-title { font-size: 21px; }
  .tl-info td:first-child { width: 92px; white-space: normal; }
}
.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: calc(-1 * var(--pad-top)) calc(-1 * var(--view-r)) 0 calc(-1 * var(--view-l)); }
.player-wrap { position: relative; background: #000; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--topbar) - var(--strip)); }
.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 { max-height: 70vh; overflow-y: auto; }
.quality-menu .menu-h { padding: 8px 10px 2px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.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; }
/* the player's own controls (js/vcontrols.js) */
.player-wrap.idle { cursor: none; }
.vc-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 6vw, 56px); z-index: 2; pointer-events: none; transition: opacity .3s; }
.vc-center .vc-btn { pointer-events: auto; }
.vc-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: #fff; padding: 0; cursor: pointer; }
.vc-btn:hover { background: rgba(255,255,255,.16); }
.vc-big { width: clamp(56px, 9vw, 76px); height: clamp(56px, 9vw, 76px); background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.85); }
.vc-skip { width: 48px; height: 48px; background: rgba(0,0,0,.4); }
.player-wrap.is-wait .vc-big { opacity: .5; }
.vc-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 28px 14px 10px; background: linear-gradient(0deg, rgba(0,0,0,.82), transparent); transition: opacity .3s; }
.player-wrap.idle .vc-bar, .player-wrap.idle .vc-center, .player-wrap.idle .player-top { opacity: 0; pointer-events: none; }
.vc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.vc-left, .vc-right { display: flex; align-items: center; gap: 4px; min-width: 0; }
.vc-time { font-size: 13px; color: #e6e8ee; margin-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vc-seek, .vc-vol { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; outline: none; cursor: pointer; background: linear-gradient(90deg, var(--red) var(--p, 0%), rgba(255,255,255,.28) var(--p, 0%)); }
.vc-seek { display: block; width: 100%; margin: 0 0 6px; }
.vc-vol { width: 84px; background: rgba(255,255,255,.35); }
.vc-seek::-webkit-slider-thumb, .vc-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.vc-seek::-moz-range-thumb, .vc-vol::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.vc-menu { position: absolute; right: 12px; bottom: 64px; z-index: 5; width: min(300px, calc(100% - 24px)); max-height: 70%; overflow-y: auto; background: rgba(18,22,32,.97); border: 1px solid var(--border-2); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); }
.vc-menu.hidden { display: none; }
.vc-item, .vc-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; color: #fff; border-radius: 8px; text-align: left; font: inherit; cursor: pointer; }
.vc-item:hover, .vc-head:hover { background: var(--surface-3); }
.vc-item .vc-lbl { flex: 1; }
.vc-item .vc-val { color: var(--muted); font-size: 13px; }
.vc-item.on { color: var(--red-2); font-weight: 700; }
.vc-head { font-weight: 700; border-bottom: 1px solid var(--border); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.vc-toast { position: absolute; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 6; background: rgba(12,15,22,.95); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 13px; max-width: 90%; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.vc-toast.show { opacity: 1; }
.next-up { bottom: 96px; }
@media (max-width: 720px) {
  .vc-vol, .vc-sm { display: none; }
  .vc-bar { padding: 22px 8px 6px; }
  .vc-time { margin-left: 2px; font-size: 12px; }
  .vc-skip { width: 42px; height: 42px; }
  /* a phone: the menu slides up from the bottom of the screen, not squeezed into the small picture */
  .vc-menu { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 62vh; border-radius: 16px 16px 0 0; padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); z-index: 60; }
  .vc-item, .vc-head { padding: 13px 14px; }
}


/* 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; }
/* the mini player: a channel keeps playing in a corner while the viewer is on other pages (js/mini.js).
   Over the pages, under the menus and pop-ups; on a phone, just above the bottom menu */
.mini-player { position: fixed; right: 16px; bottom: 16px; z-index: 44; width: 320px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 10px 34px rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .12); animation: mini-in .18s ease-out; }
.mini-player video { width: 100%; height: 100%; display: block; object-fit: contain; }
.mini-player .mini-open { position: absolute; inset: 0; z-index: 1; }
.mini-player .mini-bar { position: absolute; top: 0; right: 0; z-index: 2; display: flex; gap: 6px; padding: 6px; }
.mini-player .mini-btn { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .62); color: #fff; cursor: pointer; }
.mini-player .mini-name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px 10px 6px; font-size: 12px; font-weight: 700; color: #fff; pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes mini-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
body.has-mini main#view { padding-bottom: 220px; } /* the page's last row never sits under it */
@media (max-width: 720px) {
  .mini-player { right: 10px; bottom: calc(58px + env(safe-area-inset-bottom) + 10px); width: min(56vw, 230px); }
  body.has-mini main#view { padding-bottom: calc(84px + min(56vw, 230px) * 9 / 16 + 16px); }
}
.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; cursor: pointer; } /* (not overflow: hidden: that cut the tap area; the fill is rounded itself) */
.sports-hero .dots button.on { width: 30px; background: rgba(255,255,255,.35); }
.sports-hero .dots button.on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; 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) - var(--strip) - 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) - var(--strip) - 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; color: #fff; } /* over the video: white in both themes */
.reel .caption .who { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; color: #fff; }
.reel .caption .who b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* the name on one line (the user, 2026-10-04) */
.reel .caption .who > :not(b) { flex-shrink: 0; }
.reel .caption .txt { color: rgba(255, 255, 255, .86); 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 .caption .credit { display: block; margin-top: 4px; font-size: 11px; color: rgba(255, 255, 255, .6); } /* "Video: <name> · Pexels" */
.reel .caption .credit.song { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: rgba(255, 255, 255, .85); font-size: 12px; } /* "♪ Title · Artist" */
.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: rgba(14, 16, 24, .78); display: grid; place-items: center; color: #fff; } /* dark, white icon: shows in both themes */
.reel .act.on .ic { background: var(--red); }
.reel .mute { position: absolute; top: 12px; right: 12px; z-index: 3; color: #fff; }
.reel .tap { position: absolute; inset: 0; z-index: 1; }
/* MySync's tab: its logo (the same as at the top of its page) is the button, as big as the tab allows, never dimmed */
.bn-item.bn-logo .mslogo.ms-tab { font-size: 17px; }
/* reels shared from Instagram (app/instagram_reels.py), like Facebook's reels (the user, 2026-10-03): Instagram's own
   player on top, scaled to fit so all of it shows (reels.js fit()), never covered (its credit stays visible); the member's
   name under it, with the original account's small logo; the buttons beside it */
.reel .frame.ig { display: flex; flex-direction: column; justify-content: center; background: #000; }
.reel .ig-box { position: relative; flex: 0 0 auto; overflow: hidden; }
.reel .ig-box iframe.ig { position: absolute; top: 0; left: 50%; transform-origin: top center; border: 0; background: #fff; border-radius: 6px; }
.reel .ig-foot { display: flex; align-items: center; gap: 10px; padding: 10px 12px; flex-shrink: 0; font-size: 14px; color: #fff; }
.reel .ig-foot .who { display: flex; align-items: center; gap: 8px; min-width: 0; color: #fff; }
.reel .ig-foot .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel .ig-foot .orig { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .78); white-space: nowrap; min-width: 0; }
.reel .ig-foot .orig img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ---------------------------------------------------------------- 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; }
.studio-grid.side-340 { grid-template-columns: minmax(0, 1fr) 340px; }
.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) + var(--strip) + 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), .page-enter:has(> .lg-page) { 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; }
/* the syncXpace logo as a watermark behind the form: in the dark card on a big screen
   (the photo wall around it would hide it), fixed behind the whole page on a phone (no card there) */
.nf-mark { display: none; position: fixed; inset: 0; pointer-events: none; background: url("/assets/img/syncxpace-logo-dark.svg") no-repeat; }
.nf-card { position: relative; isolation: isolate; }
.nf-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("/assets/img/syncxpace-logo-dark.svg") center 50% / 86% auto no-repeat; opacity: .13; }
.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: center; text-align: center; 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-foot > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } /* one line (the user's request) */
.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: center; padding-inline: 12px; }
  .nf-foot > span { font-size: clamp(10px, 3.1vw, 13px); } /* the whole line fits a small phone (it needs 3.2vw) */
  .nf-mark { display: block; background-size: 92vw auto; background-position: center 46%; opacity: .08; }
  .nf-card::before { content: none; }
}
a.app-badge:hover { border-color: var(--red); }
.side-foot { color: var(--faint); font-size: 11px; line-height: 1.5; padding: 6px 12px 0; }
.side-legal { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-bottom: 6px; }
.side-legal a { color: var(--muted); padding: 4px 0; margin: -4px 0; }
.side-legal a:hover { color: var(--text); }

/* the policies in the Sign Up / Sign In top bar (a row of their own on a phone), the 18+ box */
.nf-top { flex-wrap: wrap; gap: 10px 18px; }
.nf-legal { display: flex; flex: 1; justify-content: center; flex-wrap: wrap; gap: 6px 16px; }
.nf-legal a { color: #d9d9d9; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nf-legal a:hover { color: #fff; text-decoration: underline; }
.nf-check { display: flex; gap: 10px; align-items: flex-start; color: #b3b3b3; font-size: 13px; line-height: 1.55; cursor: pointer; }
.nf-check input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--red); cursor: pointer; }
.nf-check a, .nf-legal-note a { color: #fff; text-decoration: underline; }
.nf-legal-note { color: #8c8c8c; font-size: 12.5px; line-height: 1.55; text-align: center; }
@media (max-width: 720px) {
  .nf-legal { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nf-legal::-webkit-scrollbar { display: none; }
}

/* the legal pages (FAQ, Terms, Privacy, Data & Cookies, Rules, Copyright): over the app, like Sign In */
/* the legal pages' own layer: its own name, since .lg is also "large" (btn lg, avatar lg, logo lg) */
.lg-page { position: fixed; inset: 0; z-index: 90; overflow-y: auto; background: var(--bg); color: var(--text); display: flex; flex-direction: column; }
.lg-top { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px clamp(16px, 5vw, 56px);
  background: rgba(7, 9, 14, .94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.lg-logo { font-size: 28px; }
.lg-nav { display: flex; flex: 1; justify-content: center; flex-wrap: wrap; gap: 6px; }
.lg-nav a { padding: 6px 12px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.lg-nav a:hover { background: var(--surface-2); }
.lg-nav a.on { background: var(--red); color: #fff; }
.lg-btn { padding: 7px 16px; border-radius: 6px; background: var(--red); color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.lg-btn.ghost { background: transparent; border: 1px solid var(--border-2); color: var(--text); }
.lg-main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 28px 16px 48px; }
.lg-inlang { margin-bottom: 14px; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; }
.lg-other { display: inline-block; margin-bottom: 14px; color: var(--red-2); font-size: 13px; font-weight: 600; }
.lg-doc h1 { margin: 0 0 6px; font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.lg-date { margin-bottom: 18px; color: var(--faint); font-size: 13px; }
.lg-intro { margin: 0 0 8px; color: var(--text-2); font-size: 16px; line-height: 1.75; }
.lg-sec h2 { margin: 26px 0 8px; font-size: 18px; font-weight: 800; }
.lg-sec p, .lg-sec li, .lg-faq p { margin: 0 0 10px; color: var(--text-2); line-height: 1.75; }
.lg-sec ul { display: grid; gap: 6px; margin: 0 0 10px; padding-left: 22px; }
.lg-sec li { margin: 0; }
.lg-doc a { color: var(--red-2); font-weight: 600; }
.lg-faq { display: grid; gap: 10px; margin-top: 18px; }
.lg-faq details { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.lg-faq summary { font-weight: 700; cursor: pointer; }
.lg-faq details[open] summary { margin-bottom: 8px; }
.lg-note { margin-top: 28px; color: var(--faint); font-size: 13px; }
.lg-foot { display: grid; gap: 10px; justify-items: center; padding: 22px 16px 28px; border-top: 1px solid var(--border); color: var(--faint); font-size: 12.5px; text-align: center; }
.lg-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.lg-foot-links a { color: var(--muted); padding: 4px 0; margin: -4px 0; }
.lg-in-modal { max-height: 68vh; overflow-y: auto; }
/* a member from before the agreement: asked once, over the page (the documents open above it) */
.lg-gate { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); }
.lg-gate-card { width: 100%; max-width: 460px; display: grid; gap: 14px; padding: 26px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.lg-gate-card h2 { margin: 0; font-size: 22px; }
.lg-gate-card p { margin: 0; color: var(--text-2); line-height: 1.6; }
.lg-gate .nf-check { color: var(--text-2); font-size: 14px; }
.lg-gate .nf-check a { color: var(--text); }
.lg-gate .nf-btn:disabled { opacity: .45; cursor: not-allowed; }
.lg-gate-out { justify-self: center; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.lg-gate-out:hover { color: var(--text); }
:root[data-theme="light"] .lg-top { background: rgba(255, 255, 255, .92); }
:root[data-theme="light"] .lg-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--sp-grad); }
@media (max-width: 720px) {
  .lg-top { padding: 12px 16px; }
  .lg-logo { font-size: 24px; }
  .lg-btn { margin-left: auto; }
  .lg-nav { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .lg-nav::-webkit-scrollbar { display: none; }
}

/* Partner FTP cards (browse.js): the partner's logo with nothing behind it, and its name */
.ftp-card { display: grid; justify-items: center; align-content: center; gap: 12px; padding: 22px 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-align: center; }
.ftp-card:hover { border-color: var(--red); background: var(--surface-2); }
.ftp-logo { width: 104px; height: 104px; object-fit: contain; display: block; }
.ftp-ico { width: 104px; height: 104px; border-radius: 22px; background: var(--grad); color: #fff; font-weight: 800; font-size: 44px; display: grid; place-items: center; }
.ftp-name { font-size: 17px; font-weight: 800; }
/* Movies / Series / Music filters: category, Free & Premium, sort (two lines on a phone) */
.browse-filters select { width: 170px; }
@media (max-width: 720px) {
  .browse-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .browse-filters select { width: 100%; min-width: 0; }
  .browse-filters .bf-cat { grid-column: 1 / -1; }
}
/* Movies' moving rows (browse.js, drift.js): cards keep their size in the strip; a tap makes one bigger */
.mv-row .fx-strip { gap: 14px; padding: 6px 14px 6px 0; }
.mv-strip > * { flex: none; transition: transform .2s, box-shadow .2s; }
.mv-strip > .card { width: 168px; }
.mv-strip > .sc-hl { width: 260px; }
.mv-strip > .ftp-card { width: 220px; }
.mv-strip > .grow { flex: none; position: relative; z-index: 2; transform: scale(1.08); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
@media (max-width: 720px) {
  .mv-strip > .card { width: 136px; }
  .mv-strip > .ftp-card, .ftp-row > .ftp-card { width: 180px; }
  .mv-strip > .sc-hl { width: 230px; }
}

/* 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); flex-shrink: 0; }
.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, .studio-grid.side-340, .live-layout { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  :root { --gutter: 24px; --view-l: var(--gutter); --view-r: var(--gutter); }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .shell > main#view { grid-column: 1 / -1; } /* never wider than the screen, whatever the top bar holds */
  .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) {
  :root { --gutter: 16px; --pad-top: 16px; }
  /* a page wider than the phone gets shrunk to fit by the phone (and the app),
     which pushed the bottom tabs off the screen: the top bar fits (a long page
     name ends in …), and nothing in a page can make it wider */
  main#view { overflow-x: clip; }
  .topbar { gap: 10px; }
  .topbar .brand { flex-shrink: 1; min-width: 0; }
  .topbar .actions { gap: 6px; flex-shrink: 0; }
  .pay-box { padding: 16px 14px; }
  .btn.wa-btn { white-space: normal; height: auto; min-height: 32px; padding-top: 6px; padding-bottom: 6px; }
  .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; }
  .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, minmax(0, 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: calc(-1 * var(--pad-top)) calc(-1 * var(--view-r)) -84px calc(-1 * var(--view-l)); }
  .reels-feed { height: calc(100dvh - var(--topbar) - var(--strip) - 58px - env(safe-area-inset-bottom)); max-width: none; }
  .reel { position: relative; height: calc(100dvh - var(--topbar) - var(--strip) - 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); }
  .reel.ig-reel .frame { width: calc(100% - 64px); }
  .reel.ig-reel .side { position: static; align-self: flex-end; padding: 0 6px 14px; gap: 12px; }
  .reel.ig-reel .act { color: var(--text-2); text-shadow: none; }
  .reel.ig-reel .act .ic { background: rgba(14, 16, 24, .78); backdrop-filter: none; }
  .vfeed { margin: 0 calc(-1 * var(--view-r)) 0 calc(-1 * var(--view-l)); 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%); }
.badge.due { background: rgba(251, 191, 36, .16); color: #fbbf24; border: 1px solid rgba(251, 191, 36, .35); }
.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 */
/* Trending and Fixtures are moved by home.js drift() (right to left, draggable), not by fx-slide */
.drift-track { animation: none; will-change: transform; }
.drift-view { touch-action: pan-y; cursor: grab; padding: 24px 0 8px; margin: -24px 0 -8px; user-select: none; -webkit-user-select: none; }
.drift-view.dragging { cursor: grabbing; }
.drift-view img { -webkit-user-drag: none; }
@media (prefers-reduced-motion: reduce) { .drift-view { overflow: hidden; } }
.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 .25s ease, box-shadow .25s; transform-origin: center bottom; }
.tr-card:hover .tr-box { border-color: var(--red); transform: translateY(-2px); }
.tr-card.grow { position: relative; z-index: 3; }
.tr-card.grow .tr-box { transform: scale(1.14); border-color: var(--red); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); z-index: 2; }
.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; transition: transform .25s ease, border-color .15s, box-shadow .25s; }
.fx-card.grow { position: relative; z-index: 2; transform: scale(1.1); border-color: var(--red); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.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: -10%; bottom: -4%; width: 70%; aspect-ratio: 800 / 259; z-index: -1; background: url("/assets/img/syncxpace-logo-dark.svg") 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; }
.lc.plain > .lc-now.small { margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.lc.plain > .lc-now.small b { font-size: 10px; }
/* 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; }
/* above the slides' own text (it covered them), and a finger-sized touch area round each little dot */
.ad-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 4; pointer-events: none; }
.ad-dots button { position: relative; width: 7px; height: 7px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); transition: width .25s; cursor: pointer; pointer-events: auto; }
.ad-dots button::after { content: ""; position: absolute; inset: -12px -3px; }
.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; }
/* a channel coming up: its picture dimmed, a spinner and its name (the controls stay usable under it) */
.player-msg.starting { padding: 0; overflow: hidden; pointer-events: none; }
.player-msg.starting .offer-art { position: absolute; inset: 0; }
.player-msg.starting .offer-art .lc-art { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; filter: brightness(.4); }
.player-msg.starting .offer-body { position: relative; display: grid; justify-items: center; gap: 8px; color: #fff; text-align: center; padding: 16px; max-width: 420px; }
.starting-spin { width: 38px; height: 38px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.starting-hint:empty { display: none; }
.player-msg.starting.tap { pointer-events: auto; cursor: pointer; }
.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; }

.reels-page { position: relative; }

/* 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); filter: drop-shadow(0 2px 6px 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; filter: drop-shadow(0 3px 10px 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; }
}

/* Admin → Screen report */
.screen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.screen-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.screen-card.st-screen, .screen-card.st-down { border-color: rgba(229, 9, 20, .55); }
.screen-card.st-check { border-color: rgba(251, 191, 36, .5); }
.screen-pic { position: relative; aspect-ratio: 16 / 9; background: var(--surface-3); display: grid; place-items: center; }
.screen-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.screen-when { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 6px; }
.screen-body { padding: 10px 12px; display: grid; gap: 4px; }

.lc-badge.ad { background: rgba(251, 191, 36, .92); color: #111; }

/* Home: a film card (poster, name, year · language · genre, Watch) and a TV show slide without a picture */
.movie-card .mv-watch { margin-top: 6px; height: 26px; align-self: flex-start; }
.movie-card .meta { display: flex; flex-direction: column; }
.sports-hero .slide.tv-slide { background: linear-gradient(120deg, #1d1f3a, #3a1020 60%, #07090e); }

/* ---------------------------------------------------------------- Sports (the user's Sports spec) */
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.chip .team-badge { width: 18px; height: 18px; }
.sp-hero .slide .info h2 { font-size: clamp(22px, 4vw, 38px); }
.rail-track.matches { grid-auto-columns: 300px; }
.m-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-height: 196px; }
.m-card.st-live { border-color: rgba(229, 9, 20, .55); background: linear-gradient(160deg, rgba(229, 9, 20, .12), var(--surface) 50%); }
.m-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.m-comp { color: var(--text-2, #c9ced8); font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 4px; }
.m-status { flex-shrink: 0; }
.m-body { color: inherit; text-decoration: none; display: block; padding-block: 5px; margin-block: -5px; } /* a highlight's one-line title: finger-sized */
.m-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.m-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-weight: 700; font-size: 14px; min-width: 0; }
.m-team span { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.m-team .team-badge, .m-logo { width: 38px; height: 38px; object-fit: contain; }
.m-vs { color: var(--muted); font-weight: 700; font-size: 13px; }
.m-score { font-size: 22px; font-weight: 900; letter-spacing: .02em; }
.m-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.m-ch { font-size: 12.5px; color: var(--text-2, #c9ced8); display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.m-actions { margin-top: auto; }
.m-watch-on { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.empty-line { padding: 14px 2px; }
.comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.comp-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: inherit; text-decoration: none; }
.comp-card:hover { border-color: var(--red); }
.comp-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft, rgba(229, 9, 20, .15)); color: #ff5b66; flex-shrink: 0; }
.comp-t { display: grid; gap: 3px; min-width: 0; }
.sc-card .lc { width: 100%; }
.match-page { display: grid; gap: 16px; }
.mp-head { border-radius: 18px; padding: 26px 18px; text-align: center; background: center / cover no-repeat; display: grid; gap: 10px; border: 1px solid var(--border); }
.mp-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; max-width: 640px; margin: 8px auto 0; }
.mp-teams .m-team { font-size: 18px; }
.mp-teams .m-team .team-badge, .mp-teams .m-logo { width: 64px; height: 64px; }
.mp-score { font-size: 42px; font-weight: 900; }
.mp-vs { font-size: 22px; font-weight: 800; color: var(--muted); }
.mp-when { font-weight: 700; font-size: 16px; }
.mp-bcast { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.mp-bcast h3 { margin: 0 0 10px; font-size: 15px; }
.mp-chans { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-chan { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.standings td, .standings th { text-align: center; white-space: nowrap; }
.standings td:nth-child(2), .standings th:nth-child(2) { text-align: left; }
.live-title .np { margin-top: 4px; }
@media (max-width: 720px) {
  .rail-track.matches { grid-auto-columns: 82vw; }
  .mp-teams .m-team { font-size: 15px; }
  .mp-score { font-size: 32px; }
}
.chan-ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }

/* a back button in the top bar on the inner pages of Sports and Live TV (there's no search box: the user took it out) */
.topbar .brand-name .back-btn { margin-left: 4px; flex-shrink: 0; } /* after the logo, so the logo never moves */
/* Featured matches share the ad slider's card */
.sp-art { background: center / cover no-repeat; }
.sp-badges { position: absolute; right: 5%; bottom: 12%; z-index: 1; display: flex; gap: 8px; }
.sp-badges .team-badge { width: 38px; height: 38px; }
.sp-slide .m-status { font-size: 11px; }
.sp-slide .sp-comp { color: #ff8a93; }
@media (max-width: 720px) { .sp-badges .team-badge { width: 28px; height: 28px; } }

/* ---------------------------------------------------------------- Live TV + TV Guide (EPG) */
.tv-kind { display: inline-block; padding: 2px 7px; border-radius: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--tk, #4b5563); white-space: nowrap; }
.t-MOVIE { --tk: #2563eb; } .t-SERIES, .t-EPISODE { --tk: #8b3dff; } .t-NATOK { --tk: #d97706; } .t-DRAMA { --tk: #db2777; }
.t-NEWS { --tk: #dc2626; } .t-TALK_SHOW { --tk: #ea580c; } .t-DOCUMENTARY { --tk: #059669; } .t-MUSIC { --tk: #0891b2; }
.t-REALITY { --tk: #c026d3; } .t-KIDS { --tk: #65a30d; } .t-RELIGIOUS { --tk: #0f766e; } .t-ENTERTAINMENT { --tk: #7c3aed; }
.t-SPECIAL { --tk: #b45309; } .t-OTHER, .t-ADVERTISEMENT { --tk: #4b5563; }
.tv-live { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; }
.tv-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
.tv-live.sm { padding: 2px 7px; font-size: 10px; }
.tv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .2); z-index: 3; }
.tv-bar > i { display: block; height: 100%; background: var(--red); transition: width .6s; }
.tv-poster { position: absolute; inset: 0; background: var(--surface-3); }
.tv-poster img { width: 100%; height: 100%; object-fit: cover; }
.tv-ch-logo { display: inline-block; width: 38px; height: 22px; border-radius: 5px; overflow: hidden; flex-shrink: 0; vertical-align: middle; }
.tv-ch-logo .lc-art.mini .lc-short { font-size: 8px; }

/* a programme card (the sections) */
.rail-track.tvcards { grid-auto-columns: 250px; }
.tv-card { display: grid; gap: 6px; align-content: start; min-width: 0; }
.tv-card-art { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.tv-card-art > .lc-art { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
a.tv-card:hover .tv-card-art { border-color: var(--red); transform: translateY(-2px); }
.tv-card-art > .tv-kind { position: absolute; left: 8px; top: 8px; z-index: 2; }
.tv-card-art > .tv-live { position: absolute; right: 8px; top: 8px; z-index: 2; }
.tv-at { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 11.5px; font-weight: 700; }
.tv-lock { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 3px 6px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: var(--amber); }
.tv-card-t { font-weight: 700; font-size: 13.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tv-card-s { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Live TV sections: the language switch right of the title (under it when there's no room) */
.section-head.with-langs { flex-wrap: wrap; gap: 8px 16px; }
/* Cricket on TV: the buttons on the right of the title; on a phone they get a row of their own and scroll sideways */
.section-head.tv-head { gap: 8px 12px; flex-wrap: wrap; }
.tv-head .tv-filter { margin-left: auto; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tv-head .tv-filter::-webkit-scrollbar { display: none; }
.tv-head .tv-filter .chip { white-space: nowrap; cursor: pointer; }
@media (max-width: 720px) { .tv-head .tv-filter { order: 3; flex-basis: 100%; margin-left: 0; flex-wrap: wrap; overflow: visible; } } /* a phone: every button seen, on a 2nd line if need be */
@media (max-width: 400px) { .tv-head .tv-filter { gap: 6px; } .tv-head .tv-filter .chip { padding: 4px 9px; font-size: 12.5px; } } /* all six fit a 360 px phone */
/* Cricket's and Football's own pages: the same buttons, right of the sport's name (under it on a phone) */
.sc-head.sp-head { flex-wrap: wrap; }
.sp-head .sp-filter { margin-left: auto; }
.sp-filter .chip { cursor: pointer; white-space: nowrap; }
@media (max-width: 720px) { .sp-head .sp-filter { flex-basis: 100%; margin-left: 0; } }
@media (max-width: 400px) { .sp-filter { gap: 6px; } .sp-filter .chip { padding: 4px 9px; font-size: 12.5px; } }
.tv-langs { flex-wrap: nowrap; gap: 6px; }
.tv-langs .chip { height: 30px; padding: 0 12px; flex-shrink: 0; }

/* Up Next */
.rail-track.tvnext { grid-auto-columns: 320px; }
.tv-next { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); min-width: 0; }
.tv-next-at { display: grid; text-align: center; padding: 6px 0; border-radius: 10px; background: var(--surface-2); }
.tv-next-at b { font-size: 14px; }
.tv-next-at small { color: var(--muted); font-size: 11px; }
.tv-next-body { min-width: 0; display: grid; gap: 2px; }
.tv-next-t { font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-block: 3px; margin-block: -3px; }
.tv-next-s { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tv-next > .btn { grid-column: 1 / -1; justify-content: center; margin-top: 6px; }

/* a channel with what's on it */
.tv-chan .tv-chan-now { position: relative; margin-top: 3px; color: var(--text-2); padding-bottom: 5px; min-height: 20px; }
.tv-chan .tv-chan-t { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.tv-chan .tv-chan-now .tv-bar { height: 2px; border-radius: 2px; }
.tv-chan-next { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tv-all-title { font-size: 20px; font-weight: 800; margin: 28px 0 14px; }

/* the banner's programme slides */
.tvf .sch-art > img.tvf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tvf .sch-row { color: #fff; background: var(--tk, #4b5563); padding: 2px 8px; border-radius: 5px; font-size: 11px; }

/* a programme's details (modal and page) */
.tv-detail { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.tv-detail-art { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-3); }
.tv-detail-art > .lc-art { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.tv-detail-art > .tv-live { position: absolute; left: 10px; top: 10px; z-index: 2; }
.tv-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip.sm { padding: 3px 9px; font-size: 12px; }
.tv-detail-sub { font-weight: 600; color: var(--text-2); }
.tv-detail-desc { margin: 4px 0 0; color: var(--text-2); line-height: 1.55; }
.tv-airings { display: grid; gap: 6px; margin-top: 6px; }
.tv-airing { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.tv-airing:hover { color: #fff; text-decoration: underline; }
.tv-detail-page { max-width: 980px; }
@media (max-width: 720px) { .tv-detail { grid-template-columns: 1fr; } }

/* a channel's page: Now Playing / Up Next and its schedule */
.tv-badges { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: middle; }
.tv-nownext { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 22px; }
.tv-nownext:empty { display: none; } /* a channel without a schedule: nothing here */
.tv-np { position: relative; display: grid; gap: 5px; align-content: start; padding: 14px 16px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; min-width: 0; }
.tv-np:not(.next) { border-color: rgba(229, 9, 20, .35); background: linear-gradient(135deg, rgba(229, 9, 20, .12), var(--surface) 60%); }
.tv-np-label { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.tv-np-t { all: unset; cursor: pointer; font-size: 18px; font-weight: 800; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-np-t:hover { text-decoration: underline; }
.tv-days { margin-bottom: 10px; }
.tv-sched-box { max-height: 460px; overflow-y: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.tv-sched { list-style: none; margin: 0; padding: 4px 0; }
.tv-sched-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.tv-sched-row:last-child { border-bottom: 0; }
.tv-sched-row.finished { opacity: .5; }
.tv-sched-row.live { background: rgba(229, 9, 20, .1); box-shadow: inset 3px 0 0 var(--red); }
.tv-sched-at { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.tv-sched-t { all: unset; cursor: pointer; display: grid; min-width: 0; }
.tv-sched-t > span { font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tv-sched-t small { color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tv-sched-t:hover > span { text-decoration: underline; }
@media (max-width: 720px) {
  .tv-nownext { grid-template-columns: 1fr; }
  .tv-sched-row { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .tv-sched-row > .tv-kind { display: none; }
  .rail-track.tvnext { grid-auto-columns: 78vw; }
  .rail-track.tvcards { grid-auto-columns: 62vw; }
}

/* the page's TV Guide preview (next 3 hours) */
.tvg-mini { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.tvg-mini-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-bottom: 1px solid rgba(255, 255, 255, .05); min-height: 50px; }
.tvg-mini-row:last-child { border-bottom: 0; }
.tvg-mini-row.head { min-height: 28px; background: var(--surface-2); }
.tvg-mini-ch { display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 12.5px; font-weight: 600; overflow: hidden; white-space: nowrap; border-right: 1px solid rgba(255, 255, 255, .05); }
.tvg-mini-ch > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.tvg-mini-track { position: relative; }
.tvg-tick { position: absolute; top: 6px; font-size: 11px; color: var(--muted); padding-left: 4px; border-left: 1px solid var(--border-2); white-space: nowrap; }
.tvg-tick.half { color: var(--faint); }
@media (max-width: 720px) { .tvg-mini .tvg-tick.half { font-size: 0; } } /* "10:30 PM" is wide: a phone labels the hours, the half hours keep their line */
.tvg-p { position: absolute; top: 5px; bottom: 5px; display: grid; align-content: center; gap: 1px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border-2); border-left: 3px solid var(--tk, #4b5563);
  background: var(--surface-2); color: var(--text); text-align: left; overflow: hidden; cursor: pointer; font: inherit; min-width: 0; }
.tvg-p:hover { border-color: var(--red); z-index: 2; }
.tvg-p b { font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tvg-p small { font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tvg-p em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--tk, var(--muted)); overflow: hidden; white-space: nowrap; }
.tvg-p.on, .tvg-p.live { background: linear-gradient(90deg, rgba(229, 9, 20, .22), var(--surface-2)); border-color: rgba(229, 9, 20, .45); }
.tvg-p.finished { opacity: .5; }
@media (max-width: 720px) { .tvg-mini-row { grid-template-columns: 96px minmax(0, 1fr); } .tvg-mini-ch .tv-ch-logo { display: none; } }

/* the full TV Guide: a timeline on desktop, a list on phones */
.tvg-controls { display: grid; gap: 10px; margin-bottom: 16px; }
.tvg-controls > .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.tvg-controls > .chips::-webkit-scrollbar { display: none; }
.tvg-date { max-width: 190px; color-scheme: dark; }
.tvg-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.tvg-grid { position: relative; }
.tvg-row { display: flex; min-height: 64px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.tvg-row.head { min-height: 32px; position: sticky; top: 0; z-index: 3; background: var(--surface-2); }
.tvg-ch { position: sticky; left: 0; z-index: 2; flex: 0 0 176px; width: 176px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--surface); border-right: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.tvg-row.head .tvg-ch { background: var(--surface-2); color: var(--muted); font-size: 12px; }
.tvg-ch-name { display: grid; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tvg-ch-name small { color: var(--muted); font-size: 10px; font-weight: 800; }
.tvg-track { position: relative; flex: 0 0 auto; }
.tvg-none { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
.tvg-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); z-index: 4; pointer-events: none; box-shadow: 0 0 10px rgba(229, 9, 20, .6); }
.tvg-now::before { content: ""; position: absolute; top: 0; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.tvg-more { display: flex; justify-content: center; margin: 16px 0; }
.tvg-list { display: grid; gap: 12px; }
.tvg-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.tvg-card-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); }
.tvg-card .tv-sched-row { grid-template-columns: 62px minmax(0, 1fr) auto; }
.tvg-earlier { margin: 8px 14px 0; }
/* the live picture on a programme card: no FlixBook mark over the LIVE badge (the channel's own logo is in the picture) */
.tv-card-art .lc-brand, .tv-detail-art .lc-brand, .tvf .lc-brand { display: none; }
.tvg-later { margin: 0 14px 12px; }

/* ---------------------------------------------------------------- Premium: how to pay */
.pay-box { max-width: 760px; margin: 26px auto 0; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 12px; }
.pay-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; }
.pay-steps { margin: 0; padding-left: 20px; line-height: 2; color: var(--text-2); }
.pay-num { font-size: 17px; letter-spacing: .02em; color: #fff; white-space: nowrap; }
.pay-copy { padding: 2px 10px; vertical-align: 1px; }
.pay-warn { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); border: 1px solid rgba(245, 179, 1, .35); color: #ffd873; line-height: 1.7; }
.pay-warn > svg { flex-shrink: 0; margin-top: 4px; }
.pay-warn b { color: #fff; }
.wa-btn { background: #25d366; border-color: #25d366; color: #06290f; font-weight: 800; margin-left: 4px; }
.wa-btn:hover { background: #1ebe5a; color: #06290f; }

/* ---------------------------------------------------------------- light mode (Profile → Appearance) */
/* Light mode: the user's own SpaceNet FTP server's colours (~/projects/spacenet-ftp css/style.css) —
   a pure white page, navy ink (not near-black) and a navy -> blue -> cyan -> red -> orange brand
   strip, used the same understated way SpaceNet uses it: a thin accent line, not a general fill.
   --red/--grad (Live, Premium, primary buttons) stay FlixBook's own red: that's the wordmark's
   colour and the site's one semantic "urgent/primary" signal in both themes. */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f4f4f6;
  --surface: #ffffff;
  --surface-2: #f4f4f6;
  --surface-3: #e9eaef;
  --border: #e2e4ea;
  --border-2: #cdd1dc;
  --text: #06043d;
  --text-2: #2a2f58;
  --muted: #5a6180;
  --faint: #8890ab;
  --red-soft: rgba(229, 9, 20, 0.1);
  --green-soft: rgba(22, 163, 74, 0.12);
  --amber-soft: rgba(217, 119, 6, 0.12);
  --shadow: 0 10px 30px rgba(6, 4, 61, 0.12);
  --sp-navy: #06043d;
  --sp-blue: #0a5fa8;
  --sp-cyan: #0a92c8;
  --sp-orange: #f39a2b;
  --sp-grad: linear-gradient(90deg, var(--sp-navy), var(--sp-blue) 45%, var(--sp-cyan) 70%, var(--red) 90%, var(--sp-orange));
  color-scheme: light;
}
:root[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.92); }
:root[data-theme="light"] .topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--sp-grad); }
/* the line between the left menu and the page: the top bar's stripe, running down (the user, 2026-10-02) */
:root[data-theme="light"] .sidebar { background: linear-gradient(180deg, var(--sp-navy), var(--sp-blue) 45%, var(--sp-cyan) 70%, var(--red) 90%, var(--sp-orange)) right top / 3px 100% no-repeat, var(--bg); }
:root[data-theme="light"] .bottom-nav { background: rgba(255, 255, 255, 0.96); }
:root[data-theme="light"] .bottom-nav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sp-grad); }
:root[data-theme="light"] .logo { color: #0b2c6e; }
:root[data-theme="light"] .logo .logo-art { background-image: url("/assets/img/logo-pace.svg"); }
:root[data-theme="light"] .section-link, :root[data-theme="light"] .lg-other { color: var(--sp-blue); }
:root[data-theme="light"] .btn.primary { box-shadow: 0 8px 20px rgba(6, 4, 61, 0.18); }
/* the home banner always sits on a fixed-dark photo overlay (.hero .slide::after, not themed),
   so its own text stays light in both themes, same as the .es-art .logo pattern just below */
:root[data-theme="light"] .hero .info { color: #fff; }
:root[data-theme="light"] .hero .facts, :root[data-theme="light"] .hero .desc { color: rgba(255, 255, 255, .82); }
:root[data-theme="light"] .hero .fs-brand { color: #fff; }
/* a ghost button in a photo slide's .info (not welcome()'s plain .hero, which has no photo and
   stays var(--text)); the generic light-mode ".btn:not(...)" rule is more specific (its :not()s
   each count), so this needs !important to win here */
:root[data-theme="light"] .hero .info .btn.ghost { color: #fff !important; border-color: rgba(255, 255, 255, .35); }
:root[data-theme="light"] .hero .info .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
/* a title page's banner (.detail-hero): its overlay (.bg::after) is dark wherever the text sits
   (a backdrop photo, or a placeholder's own dark gradient when there's none), so its text stays
   light too */
:root[data-theme="light"] .detail-hero .content { color: #fff; }
:root[data-theme="light"] .detail-hero .desc, :root[data-theme="light"] .detail-hero .facts { color: rgba(255, 255, 255, .82); }
:root[data-theme="light"] .detail-hero .facts .sep { background: rgba(255, 255, 255, .5); }
/* the generic light-mode ".btn:not(...)" rule above is more specific (its :not()s each count),
   so this needs !important to win for a ghost button sitting on the hero's dark overlay */
:root[data-theme="light"] .detail-hero .btn.ghost { color: #fff !important; border-color: rgba(255, 255, 255, .35); }
:root[data-theme="light"] .detail-hero .btn.ghost:hover { background: rgba(255, 255, 255, .12); }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c5cbd6; }
/* white text that sits on the page (not on a picture or a red button) turns dark */
:root[data-theme="light"] :is(.icon-btn:hover, .nav-item:hover, .section-link:hover, .chip:hover, .tab:hover, .tab.active, .menu a:hover, .menu button:hover,
  .vtext b, .link-btn:hover, .vact:hover, .bn-item.active, .back-link:hover, .tv-airing:hover, .pay-num, .dropzone:hover, .sc-ic) { color: var(--text); }
:root[data-theme="light"] .btn:not(.primary):not(.danger):not(.success):not(.wa-btn) { color: var(--text); }
:root[data-theme="light"] .pay-warn { color: #8a5a00; }
:root[data-theme="light"] .pay-warn b { color: #4a3000; }
:root[data-theme="light"] .next-up { background: rgba(255, 255, 255, .97); }
:root[data-theme="light"] .toast.ok { background: #e8f7ee; border-color: #9fd8b4; }
:root[data-theme="light"] .avatar { color: var(--text); }
:root[data-theme="light"] .tv-np:not(.next) { background: linear-gradient(135deg, rgba(229, 9, 20, .07), var(--surface) 60%); }
:root[data-theme="light"] .tvg-p.on, :root[data-theme="light"] .tvg-p.live { background: linear-gradient(90deg, rgba(229, 9, 20, .12), var(--surface-2)); }
:root[data-theme="light"] .tv-sched-row { border-bottom-color: rgba(15, 23, 42, .06); }

/* the profile menu's Appearance and Language switches */
.menu .seg { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.menu .seg > span { color: var(--muted); font-size: 12.5px; min-width: 82px; }
.menu .seg .opts { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.menu .seg .opts button { width: auto; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: none; border: 0; }
.menu .seg .opts button.on { background: var(--red); color: #fff; }

/* the language button and its list */
.lang-btn { width: auto; padding: 0 8px; gap: 4px; display: inline-flex; align-items: center; }
.lang-btn .lang-code { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--muted); }
.menu.lang-menu { width: 230px; right: 64px; }
.menu .menu-title { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; font-weight: 800; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.menu.lang-menu button { justify-content: flex-start; }
.menu.lang-menu button .muted { margin-inline-start: auto; }
.menu.lang-menu button.on { background: var(--red-soft); color: var(--text); }
.menu.lang-menu button svg { color: var(--red); }
@media (max-width: 720px) { .menu.lang-menu { right: 10px; } .lang-btn .lang-code { display: none; } }

/* right to left (Arabic, Urdu): the page mirrors; timelines, players and pictures keep their own direction */
[dir="rtl"] .menu { right: auto; left: 16px; }
[dir="rtl"] .menu a, [dir="rtl"] .menu button { text-align: right; }
[dir="rtl"] :is(.tvg-scroll, .tvg-mini, .live-player, .player-wrap, .ad-slider, .tv-bar, .lc-art, .vmedia) { direction: ltr; }
[dir="rtl"] .pay-steps { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .tv-sched-row.live { box-shadow: inset -3px 0 0 var(--red); }
/* right to left: a line of times and names reads in its own order ("17:30 – 20:30 · Movie") */
[dir="rtl"] :is(.tv-card-s, .sch-sub, .tv-next-s, .tv-chan-next, .tv-sched-at, .tvg-p small, .tv-np .muted, .sc-hl-s, .pay-num) { unicode-bidi: plaintext; }
/* the language button: only the flag */
.lang-btn .flag { display: inline-block; width: 26px; height: 18px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.lang-btn .flag svg, .lang-menu .flag svg { display: block; width: 100%; height: 100%; }
.lang-menu .flag { display: inline-block; width: 24px; height: 16px; border-radius: 3px; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1px var(--border-2); }
:root[data-theme="light"] .lang-btn .flag { box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }

/* ---------------------------------------------------------------- esports (FlixBook's own tournaments) */
.es-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.es-games { margin: 0 0 18px; }
.es-games .chip { display: inline-flex; align-items: center; gap: 7px; }
/* game art: FlixBook's own, in the game's colour (game logos are trademarks) */
.es-art { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c), #0b0e16);
  background: radial-gradient(120% 90% at 85% 10%, color-mix(in srgb, var(--c) 85%, #fff 15%) 0%, var(--c) 35%, #0b0e16 100%); }
.es-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.es-art .es-pad { position: absolute; right: -8px; bottom: -14px; opacity: .22; transform: rotate(-12deg); }
.es-art .es-pad svg { width: 120px; height: 120px; }
.es-art .es-short { position: relative; font-weight: 900; font-size: clamp(20px, 3.2vw, 30px); letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); padding: 0 12px; text-align: center; line-height: 1.05; }
.es-art .es-short.long { font-size: clamp(16px, 2.6vw, 24px); }
.es-art .es-brand { position: absolute; top: 8px; left: 10px; font-size: 13px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5)); }
.es-art.pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 40%); }
.es-art.pic .es-brand { z-index: 1; }
.rail-track.es-cards { grid-auto-columns: 300px; }
.es-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color .15s, transform .15s; min-width: 0; }
.es-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.es-card-art { position: relative; }
.es-card-art .es-art { border-radius: 0; }
.es-card-badge { position: absolute; top: 8px; right: 8px; }
.es-card-badge .badge:not(.live) { background: rgba(7, 9, 14, .78); color: #fff; border-color: transparent; }
.es-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.es-card-name { font-size: 15px; line-height: 1.3; }
.es-when, .es-meta { color: var(--text-2); }
.es-meta { gap: 12px; }
.es-meta svg, .es-when svg, .es-mine svg { vertical-align: -2px; }
.es-prize { color: #fbbf24; }
.es-prize.big { margin-top: 8px; font-weight: 700; }
.es-mine { color: var(--green); margin-top: 2px; }
.es-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.es-step { position: relative; display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.es-step > svg { flex-shrink: 0; color: var(--red-2); margin-top: 2px; }
.es-step-n { position: absolute; top: 8px; right: 10px; font-weight: 900; font-size: 22px; color: var(--surface-3); }
.es-invites { display: grid; gap: 10px; }
.es-invite { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-color: rgba(229, 9, 20, .45); }
/* a tournament's page */
.es-head { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 18px; }
.es-head h1 { font-size: 30px; font-weight: 800; margin: 8px 0 4px; line-height: 1.15; }
.es-dates { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--text-2); }
.es-dates svg { vertical-align: -2px; }
.es-stream { position: relative; aspect-ratio: 16 / 9; max-height: 70vh; margin: 0 auto 18px; width: 100%; background: #000; border-radius: 14px; overflow: hidden; }
.es-stream iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.es-stream-offer { position: absolute; inset: 0; width: 100%; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff;
  background: radial-gradient(80% 80% at 50% 40%, rgba(229, 9, 20, .35), #05060a 75%); }
.es-play { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--red); box-shadow: 0 10px 30px rgba(229, 9, 20, .45); }
.es-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.es-myteam { margin-bottom: 18px; }
.es-players { display: grid; gap: 8px; }
.es-player { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.es-invite-row { display: flex; gap: 8px; margin: 12px 0 4px; }
.es-invite-row .input { flex: 1; min-width: 0; }
.es-in { color: var(--green); }
.es-tabs { margin-top: 6px; }
.es-text { white-space: pre-wrap; color: var(--text-2); line-height: 1.6; }
.es-team { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.es-team img, .es-tag { width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0; object-fit: cover; }
.es-tag { display: inline-grid; place-items: center; background: var(--surface-3); color: var(--text); font-size: 10px; font-weight: 800; letter-spacing: .3px; }
.es-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.es-teamcard.es-me, .es-match.mine { border-color: rgba(229, 9, 20, .55); }
tr.es-me td { background: var(--red-soft); }
.es-matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.es-match { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.es-match-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.es-vs { display: grid; gap: 6px; }
.es-side { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); min-width: 0; }
.es-side .es-team { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.es-side.win { box-shadow: inset 3px 0 0 var(--green); }
.es-side.win b { color: var(--green); }
.es-room { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--amber-soft); color: var(--text); overflow-wrap: anywhere; }
.es-room.faint { background: var(--surface-2); color: var(--muted); }
.es-copy { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0 2px; color: inherit; }
.es-copy b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .5px; }
.es-report { justify-content: space-between; }
.es-dispute { color: #ff7b86; }
tr.es-disputed td { background: rgba(229, 9, 20, .08); }
.es-table td:first-child { width: 36px; color: var(--muted); }
/* the bracket (brackets-viewer.js), in FlixBook's colours; it scrolls inside its own box, never the page */
.es-bv-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.brackets-viewer.es-bv {
  --primary-background: var(--surface); --secondary-background: var(--surface-2); --match-background: var(--surface-2);
  --font-color: var(--text); --win-color: var(--green); --loss-color: #ff6b77; --label-color: var(--muted); --hint-color: var(--faint);
  --connector-color: var(--border-2); --border-color: var(--border); --border-hover-color: var(--border-2); --border-selected-color: var(--red);
  --text-size: 13px; --match-width: 170px; --round-margin: 34px;
  font-family: var(--font); padding: 8px 18px 18px; margin: 0; align-items: flex-start; overflow: visible; width: max-content; min-width: 100%;
}
.brackets-viewer.es-bv h1 { display: none; }
.brackets-viewer.es-bv h2 { font-size: 15px; font-weight: 700; margin: 14px 0 8px; }
.brackets-viewer.es-bv h3 { border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--text-2); }
@media (max-width: 1100px) {
  .es-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .es-head { grid-template-columns: 1fr; }
  .es-head-art { max-width: 520px; }
}
@media (max-width: 720px) {
  .rail-track.es-cards { grid-auto-columns: 80vw; }
  .es-steps { grid-template-columns: 1fr; }
  .es-head h1 { font-size: 23px; }
  .es-matches, .es-teams { grid-template-columns: 1fr; }
  .brackets-viewer.es-bv { --match-width: 140px; --round-margin: 24px; --text-size: 12px; padding: 6px 10px 14px; }
}
:root[data-theme="light"] .es-art .logo { color: #fff; }
/* the sign-in pages and channel art stay dark in both themes: "syncX" stays white and "pace" the light blue there */
:root[data-theme="light"] .nf-auth .logo, :root[data-theme="light"] .lc-art .logo { color: #fff; }
:root[data-theme="light"] :is(.es-art, .nf-auth, .lc-art) .logo .logo-art { background-image: url("/assets/img/logo-pace-dark.svg"); }
:root[data-theme="light"] .es-prize { color: #b45309; }
/* esports: a tournament in the Featured banner, the entry payment, the cash prizes */
.es-slide-art > .es-art { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.es-slide-art > .es-art .es-short { font-size: clamp(22px, 4vw, 46px); transform: translateX(18%); }
.es-slide-art > .es-art .es-brand { display: none; }
.es-slide .sch-row { color: #ffb4bb; }
.es-pay { display: grid; gap: 6px; }
.es-pay .select { display: inline-block; width: auto; padding: 2px 26px 2px 8px; margin: 0 2px; }
.es-paynum { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .3px; }
.es-paid { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--amber-soft); overflow-wrap: anywhere; }
.es-paid.ok { background: var(--green-soft); }
.es-paid svg { vertical-align: -2px; }
.es-prizes { display: grid; gap: 6px; }
.es-prize-row { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.es-prize-row b { color: #fbbf24; }
:root[data-theme="light"] .es-prize-row b { color: #b45309; }
.es-art .es-logo { position: relative; max-width: 72%; max-height: 42%; object-fit: contain; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45)); }
.es-slide-art > .es-art .es-logo { max-width: 46%; max-height: 38%; transform: translateX(28%); }
.es-tm { margin: 26px 0 6px; max-width: 900px; line-height: 1.5; }
.es-where { margin-bottom: 18px; }
.es-where-rows { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.es-get { display: flex; flex-wrap: wrap; gap: 8px; }
.es-get.small { margin-top: 2px; }
.es-room-badge { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(7, 9, 14, .78); color: #fff; font-size: 12px; font-weight: 800; }
.es-rooms { margin: -8px 0 18px; }
.es-rooms .chip b { margin-left: 4px; color: #fbbf24; }
.es-rooms .chip.active b { color: #fff; }
/* Home: what FlixBook is (the banner's first slides), and Earn with FlixBook */
.sports-hero .feature-slide.tone-red { background: radial-gradient(90% 120% at 80% 30%, rgba(229, 9, 20, .55), #0b0e16 70%); }
.sports-hero .feature-slide.tone-esports { background: radial-gradient(90% 120% at 80% 30%, #7c3aed 0%, rgba(229, 9, 20, .45) 35%, #0b0e16 75%); }
.feature-slide .fs-art { position: absolute; right: 6%; top: 50%; transform: translateY(-50%) rotate(-8deg); opacity: .16; color: #fff; z-index: 1; }
.feature-slide .fs-art svg { width: clamp(120px, 22vw, 260px); height: auto; }
.feature-slide .fs-brand { font-size: 14px; margin-left: 4px; }
.earn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.earn-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, transform .15s; }
.earn-pic { position: relative; aspect-ratio: 16 / 9; background: center / cover no-repeat var(--surface-2); }
.earn-pic .earn-ic { position: absolute; left: 12px; bottom: -18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.earn-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 16px 16px; flex: 1; }
.earn-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.earn-card .earn-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; }
.earn-card .btn { margin-top: auto; }
/* a game's photo with its logo on top */
.es-art .es-over { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(7, 9, 14, .55), rgba(7, 9, 14, .15) 60%, rgba(7, 9, 14, .35)); z-index: 1; }
.es-art .es-over .es-logo { max-width: 66%; max-height: 40%; }
.sports-hero .feature-slide.tone-gold { background: radial-gradient(90% 120% at 80% 30%, rgba(245, 179, 1, .55), rgba(229, 9, 20, .25) 40%, #0b0e16 75%); }
/* rewards: the invite link, the coins bar */
.inv-link { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.coin-bar { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.coin-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f5b301, #e50914); border-radius: inherit; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the policies and the contact behind one menu button (the user's rule, 2026-09-30: not across the top bar) */
.lg-menu { position: relative; }
/* the Menu button sits left of the FlixBook name (the user, 2026-09-30); Sign In / Sign Up / Home stays on the right */
.nf-top .nf-switch, .lg-top .lg-btn { margin-left: auto; }
.nf-top { justify-content: flex-start; }
@media (max-width: 400px) {
  .nf-top, .lg-top { gap: 8px 10px; }
  .nf-logo { font-size: 24px; }
}
@media (max-width: 359px) { .lg-menu-btn span { display: none; } .lg-menu-btn { padding: 7px 9px; } }
.nf-menu .lg-menu-btn span { display: none; } /* Sign Up / Sign In: the menu icon alone, no "Menu" word (the user, 2026-09-30) */
.nf-menu .lg-menu-btn { padding: 7px 9px; } /* the smallest phones: the menu icon alone, so one row fits */
.lg-menu-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .45); color: #fff; font-weight: 700; font-size: 14px; }
.lg-menu-btn:hover { border-color: #fff; }
.lg-menu-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; min-width: 240px; max-width: calc(100vw - 32px); display: flex; flex-direction: column; padding: 8px; border-radius: 12px; background: #11141b; border: 1px solid #2f3649; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); }
.lg-menu-panel[hidden] { display: none; }
.lg-menu-panel a { padding: 9px 10px; border-radius: 8px; color: #e8eaf0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.lg-menu-panel a:hover { background: #1c2230; color: #fff; }
.lg-menu-panel a svg { vertical-align: -2px; }
.lg-menu-sep { margin: 6px 10px 2px; padding-top: 8px; border-top: 1px solid #2f3649; color: #8a92a3; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.danger-zone { border-color: rgba(229, 9, 20, .45); }
.nf-top { z-index: 20; }
.lg-top { position: relative; z-index: 20; }

/* ---------------------------------------------------------------- top bar menu + search (the user, 2026-10-02, like SpaceNet)
   Computers: logo | Home … Music | search box | bell, flag, profile; the sidebar keeps the rest.
   Tablets and phones (≤1024px): as before, the menu is the drawer and the search is an icon. */
.top-nav { display: flex; align-items: stretch; align-self: stretch; flex-shrink: 0; }
.tn-item { position: relative; display: flex; align-items: center; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: color .12s; }
.tn-item:hover { color: var(--text); }
.tn-item.active { color: var(--text); }
.tn-item.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad); z-index: 1; } /* above the light theme's brand stripe */
/* Social: its name opens /social; a mouse hover or keyboard focus shows its five pages */
.tn-menu { position: relative; display: flex; }
.tn-menu-btn { gap: 4px; }
.tn-menu-btn svg { transition: transform .15s; }
.tn-panel { display: none; position: absolute; left: 0; top: 100%; z-index: 60; min-width: 200px; padding: 6px; gap: 2px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.tn-menu:hover:not(.shut) .tn-panel { display: grid; }
.tn-menu:hover:not(.shut) .tn-menu-btn svg { transform: rotate(180deg); }
.tn-menu:focus-within:not(.shut) .tn-panel { display: grid; }
.tn-menu:focus-within:not(.shut) .tn-menu-btn svg { transform: rotate(180deg); }
.tn-sub { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.tn-sub:hover, .tn-sub:focus-visible { background: var(--surface-2); color: var(--text); }
.tn-sub.active { color: var(--text); }
.tn-sub.active svg { color: var(--red-2); }
:root[data-theme="light"] .tn-panel { box-shadow: 0 12px 30px rgba(6, 4, 61, .14); }
.top-search { display: flex; align-items: center; flex: 0 1 280px; min-width: 150px; height: 38px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); overflow: hidden; transition: border-color .12s; }
.top-search:focus-within { border-color: var(--red); }
.top-search input { flex: 1; min-width: 0; height: 100%; padding: 0 4px 0 16px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.top-search input::-webkit-search-cancel-button { display: none; }
.top-search button { display: grid; place-items: center; width: 40px; height: 100%; border: 0; background: transparent; color: var(--text-2); cursor: pointer; flex-shrink: 0; }
.top-search button:hover { color: var(--text); }
.topbar .search-btn { display: none; }
.topbar .brand-name .page-name { display: none; } /* computers: the logo always (the user, 2026-10-02) */
/* phones: every page but Home shows its name where the logo is, just the words: no logo, no icon, no back arrow (the user, 2026-10-04) */
@media (max-width: 720px) {
  .topbar .brand, .topbar .brand-name.named { min-width: 0; }
  .topbar .brand { flex: 1 1 auto; }
  .topbar .brand-name.named .logo, .topbar .brand-name.named .back-btn { display: none; }
  .topbar .brand-name.named .page-name { display: block; min-width: 0; font-size: 19px; }
}
/* computers: the main menu is in the left menu too, Sync+ with its pages under it (the user, 2026-10-05) */
/* phones and tablets: every page in one row under the top bar, swiped sideways, one tap each */
.m-strip { display: none; }
.ms-item, .so-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap; }
.ms-item:hover, .so-chip:hover { color: var(--text); }
.ms-item.active { background: var(--grad); border-color: transparent; color: #fff; }
.so-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.so-chip svg { color: var(--red-2); }
@media (max-width: 1024px) {
  :root { --strip: 50px; }
  .shell { grid-template-rows: var(--topbar) auto 1fr; }
  .m-strip { display: flex; align-items: center; gap: 8px; position: sticky; top: var(--topbar); z-index: 39; grid-column: 1 / -1; height: var(--strip); padding: 0 var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; background: rgba(7, 9, 14, .92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .05); }
  .m-strip::-webkit-scrollbar { display: none; }
  .shell.guest .m-strip { display: none; }
  .so-chips { display: none; } /* the row above already has them */
}
/* a phone on its side (short screen): no row of pages, so a player fits under the top bar */
@media (max-width: 1024px) and (max-height: 500px) {
  :root { --strip: 0px; }
  .m-strip { display: none; }
}
:root[data-theme="light"] .m-strip { background: rgba(255, 255, 255, .95); border-bottom-color: var(--border); }
.sr-box { display: none; margin-bottom: 22px; } /* computers: the top bar's box is the one */
.sr-input { height: 48px; font-size: 16px; }
:root[data-theme="light"] .top-search { background: #f3f6fb; border-color: #d9dfea; }
@media (max-width: 1500px) {
  .topbar .brand { width: auto; }
  .tn-item, .tn-menu-btn { padding: 0 9px; font-size: 14.5px; }
  .tn-item.active::after { left: 9px; right: 9px; }
  .top-search { flex-basis: 200px; }
}
/* Go Premium is just the crown on every screen (the user, 2026-10-02) */
.topbar .go-prem { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.topbar .go-prem .txt { display: none; }
/* a bigger logo (22 -> 26px); the 720px rule below makes it smaller again on phones */
.topbar .brand-name .logo { font-size: 26px; }
/* computers: the logo's F lines up with the first letter of the sidebar menu below it (gutter + sidebar 12px + item 12px) */
@media (min-width: 1025px) {
  .topbar { padding-left: calc(var(--gutter) + 24px); }
  /* and it runs from there to the line that divides the left menu from the page (the logo is 4.77 x its font size wide) */
}
@media (min-width: 1025px) and (max-width: 1200px) {
  /* narrow laptops: a smaller search box and tighter menu so the top bar fits without sideways scroll */
  .topbar { gap: 12px; }
  .top-search { flex-basis: 130px; min-width: 96px; }
  .tn-item { padding: 0 7px; font-size: 14px; }
  .tn-item.active::after { left: 7px; right: 7px; }
}
@media (min-width: 1201px) {
  .topbar .brand-name .logo { font-size: calc((var(--sidebar) - 28px) / 4.77); } /* narrower laptops keep the 26px logo: the menu and search need the room */
}
@media (max-width: 1024px) {
  .top-nav, .top-search { display: none; }
  .sr-box { display: block; }
  .topbar .search-btn { display: inline-grid; }
  .sidebar .nav-main { display: block; }
}
@media (max-width: 720px) {
  /* 17px: the syncXpace logo runs right to its star, so this keeps a gap before the buttons on a 390px phone */
  .topbar .brand-name .logo { font-size: 17px; flex-shrink: 0; }
}
/* small phones (320–380px): menu, logo, flag, search, bell and profile all fit */
@media (max-width: 380px) {
  .topbar { gap: 6px; padding: 0 10px; }
  .topbar .actions { gap: 2px; }
  .topbar .icon-btn { width: 36px; height: 36px; }
  .topbar .brand-name .logo { font-size: 15px; }
}
/* the smallest phones (320px): all five buttons still fit beside the logo */
@media (max-width: 340px) {
  .topbar .brand-name .logo { font-size: 13px; }
}

/* ---------------------------------------------------------------- MyBook (the user, 2026-10-02)
   Each member's own place, A to Z: a plain item in the left menu, the phone's last tab, and /mybook. */
/* the phone's MyBook tab: the member's own picture */
.avatar.tab { width: 24px; height: 24px; font-size: 11px; border-width: 1.5px; }
.bn-item.active .avatar.tab { border-color: var(--red-2); }

.mb-page { display: grid; gap: 6px; }
.mb-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.mb-stat { display: flex; align-items: center; gap: 10px; min-width: 132px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); }
.mb-stat:hover { border-color: var(--border-2); color: var(--text); }
.mb-stat svg { color: var(--red-2); flex-shrink: 0; }
.mb-stat span { display: grid; line-height: 1.15; }
.mb-stat b { font-size: 20px; color: var(--text); }
.mb-stat small { color: var(--muted); font-size: 12px; }
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mb-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .12s, background .12s; }
a.mb-tile:hover { border-color: var(--border-2); background: var(--surface-2); }
.mb-ic { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--red-soft); color: var(--red-2); }
.mb-tx { display: grid; gap: 3px; min-width: 0; }
.mb-tx b { font-size: 15px; }
.mb-tx small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.mb-wide { grid-column: span 2; }
.mb-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mb-opts button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.mb-opts button.on { background: var(--red); border-color: transparent; color: #fff; }
.mb-langs .flag { display: inline-block; width: 20px; height: 14px; border-radius: 2px; overflow: hidden; }
.mb-langs .flag svg { display: block; width: 100%; height: 100%; }
.mb-out { margin-top: 18px; }
@media (max-width: 720px) {
  .mb-stats { width: 100%; }
  .mb-stat { flex: 1 1 0; min-width: 0; padding: 10px 12px; }
  .mb-grid { grid-template-columns: minmax(0, 1fr); }
  .mb-wide { grid-column: auto; }
}

/* ---------------------------------------------------------------- the profile, like Facebook's (the user, 2026-10-02) */
.nav-item.mb-link { gap: 10px; }
.avatar.side { width: 26px; height: 26px; font-size: 11px; border-width: 0; }
.mb-link-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; } /* a long name wraps, never "…" */
.bn-name { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fb-page { display: grid; }
.fb-head { background: var(--surface); border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
/* no cover upload on FlixBook: FlixBook's own colours and logo */
.fb-cover { position: relative; height: clamp(150px, 24vw, 330px); background:
  radial-gradient(120% 140% at 0% 100%, rgba(229, 9, 20, .55), transparent 55%),
  radial-gradient(90% 120% at 100% 0%, rgba(8, 88, 168, .65), transparent 60%),
  linear-gradient(135deg, #0b1630, #1b0b14); }
.fb-cover::after { content: ""; position: absolute; right: 4%; bottom: 14%; width: min(42%, 420px); aspect-ratio: 800 / 259; background: url("/assets/img/syncxpace-logo-dark.svg") center / contain no-repeat; opacity: .16; }
.fb-who { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 22px; padding: 0 28px 18px; margin-top: -70px; }
.fb-pic { position: relative; flex-shrink: 0; padding: 4px; border-radius: 50%; background: var(--surface); }
.fb-pic .avatar.xl { width: 168px; height: 168px; font-size: 60px; border: 0; }
.fb-cam { position: absolute; right: 8px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); color: var(--text); border: 2px solid var(--surface); }
.fb-id { flex: 1; min-width: 220px; padding-bottom: 8px; }
.fb-name { margin: 0; font-size: 32px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.fb-counts { margin-top: 4px; color: var(--muted); font-weight: 600; }
.fb-btns { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.tabs.fb-tabs { margin: 0; padding: 0 22px; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.fb-tabs .tab { padding: 14px 14px 12px; border-bottom-width: 3px; font-size: 15px; }
.fb-tabs .tab:hover, .fb-tabs .tab.active { color: var(--text); }
.fb-body { margin-top: 16px; }
.fb-cols { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.fb-side { display: grid; gap: 16px; position: sticky; top: calc(var(--topbar) + var(--strip) + 16px); }
.fb-feed { display: grid; gap: 16px; min-width: 0; }
.fb-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.fb-card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.fb-bio { margin: 0 0 12px; text-align: center; color: var(--text-2); overflow-wrap: anywhere; }
.fb-details { display: grid; gap: 12px; margin: 14px 0; padding: 0; list-style: none; }
.fb-details li { display: flex; align-items: center; gap: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.fb-details li svg { flex-shrink: 0; color: var(--muted); }
.fb-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.fb-nums > * { display: grid; gap: 2px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: 13px; text-align: start; }
.fb-nums > button { cursor: pointer; }
.fb-nums > button:hover { color: var(--text); }
.fb-nums b { font-size: 20px; color: var(--text); }
.fb-composer-row { display: flex; align-items: center; gap: 10px; }
.fb-composer-box { flex: 1; padding: 10px 16px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.fb-composer-box:hover { color: var(--text); }
.fb-composer-acts { display: flex; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.fb-composer-acts a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border-radius: 8px; color: var(--text-2); font-weight: 600; }
.fb-composer-acts a:hover { background: var(--surface-2); }
.fb-composer-acts svg { color: var(--red-2); }
.fb-post { padding: 0; overflow: hidden; }
.fb-post-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.fb-post-head > div { display: grid; }
.fb-post-head small { color: var(--muted); font-size: 12.5px; }
.fb-post-text { margin: 4px 16px 12px; overflow-wrap: anywhere; }
.fb-post-media { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; }
.fb-post-media.tall { aspect-ratio: auto; height: min(70vh, 560px); }
.fb-post-media > img, .fb-post-media > .placeholder-art { width: 100%; height: 100%; object-fit: cover; }
.fb-post-media.tall > img { object-fit: contain; }
.fb-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; }
.fb-post-foot { display: flex; gap: 18px; padding: 10px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
.fb-post-foot span { display: inline-flex; align-items: center; gap: 6px; }
.fb-about { max-width: 760px; }
.fb-about .fb-details li { font-size: 15px; }
@media (max-width: 1000px) {
  .fb-cols { grid-template-columns: minmax(0, 1fr); }
  .fb-side { position: static; }
}
@media (max-width: 720px) {
  .fb-who { flex-direction: column; align-items: center; margin-top: -60px; padding: 0 16px 16px; text-align: center; }
  .fb-pic .avatar.xl { width: 124px; height: 124px; font-size: 44px; }
  .fb-id { min-width: 0; padding-bottom: 0; }
  .fb-name { font-size: 25px; }
  .fb-btns { width: 100%; }
  .fb-btns .btn { flex: 1; justify-content: center; }
  .tabs.fb-tabs { padding: 0 8px; gap: 0; }
  .fb-tabs .tab { padding: 12px 10px 10px; font-size: 14px; }
}
:root[data-theme="light"] .fb-cover { background:
  radial-gradient(120% 140% at 0% 100%, rgba(229, 9, 20, .35), transparent 55%),
  radial-gradient(90% 120% at 100% 0%, rgba(8, 88, 168, .40), transparent 60%),
  linear-gradient(135deg, #dfe8f7, #f6e3e6); }
:root[data-theme="light"] .fb-cover::after { background-image: url("/assets/img/syncxpace-logo.svg"); opacity: .22; }
:root[data-theme="light"] :is(.fb-pic, .mb-link, .bn-item, .fb-post-head, .fb-composer-row, .fd-head, .fd-row, .fd-c, .fr-person, .md-card, .mdv-who) .avatar { color: #fff; } /* the letter stays white on the picture's colour */
/* My Dashboard: only what the member earns, every way (the user, 2026-10-02) */
.dash { display: grid; gap: 16px; }
.dash-wallet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(135deg, rgba(229, 9, 20, .16), rgba(8, 88, 168, .14) 70%), var(--surface); }
.dash-wallet small { color: var(--muted); font-weight: 600; }
.dash-balance { font-size: 34px; font-weight: 800; line-height: 1.1; }
.dash-sub { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
.dash-ways { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.dash-way { display: flex; flex-direction: column; gap: 10px; }
.dash-way-head { display: flex; align-items: center; gap: 12px; }
.dash-way-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.dash-big { font-size: 26px; font-weight: 800; }
.dash-lines { display: grid; gap: 6px; margin: 0; padding: 0 0 0 18px; color: var(--text-2); font-size: 13.5px; flex: 1; }
.dash-way .btn { align-self: flex-start; }
.dash-tx { display: grid; margin: 0; padding: 0; list-style: none; }
.dash-tx li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.dash-tx li:first-child { border-top: 0; }
.dash-tx small { color: var(--muted); }
.dash-tx .pos { color: var(--green); }
.dash-tx .neg { color: var(--red-2); }
.dash-postbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; padding: 12px 16px; font-weight: 700; }
.fb-account { margin-top: 16px; max-width: 980px; }
:root[data-theme="light"] .dash-wallet { background: linear-gradient(135deg, rgba(229, 9, 20, .08), rgba(8, 88, 168, .08) 70%), var(--surface); }
/* phones: the search box is in the top bar itself, on every page, MySync too — nothing under the bar
   (the user, 2026-10-04): menu, the logo or the page's name, the box, then the bell */
.m-search { display: none; } /* computers and tablets: their own box / the row of pages */
@media (max-width: 720px) {
  :root { --strip: 0px; }
  .m-strip { display: none; }
  .topbar { gap: 8px; padding: 0 12px 0 10px; }
  .topbar .brand { flex: 0 0 auto; max-width: 42%; gap: 4px; } /* the name whole ("Sports"), a long one ends in … */
  .topbar .menu-btn { width: 36px; height: 36px; }
  .topbar .brand-name .logo { font-size: 15px; margin-right: 4px; } /* its star stays clear of the box */
  .topbar .brand-name.named .page-name { font-size: 18px; }
  .topbar .spacer { display: none; }
  .topbar .actions { gap: 2px; }
  .topbar .actions .icon-btn { width: 36px; height: 36px; }
  .m-search { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; height: 36px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--surface); overflow: hidden; }
  .m-search:focus-within { border-color: var(--red); }
  .m-search input { flex: 1; min-width: 0; height: 100%; padding: 0 10px 0 13px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; text-overflow: ellipsis; }
  .m-search input::placeholder { text-overflow: ellipsis; }
  .m-search input::-webkit-search-cancel-button { display: none; }
  /* the box is always there, so no search icon up top, and the search page uses it */
  .topbar .search-btn { display: none; }
  .sr-box { display: none; }
  .so-chips { display: flex; }
  /* MySync: its name isn't repeated in the page (the top bar has it); Reels and Videos are the two buttons
     at the top of the page, as there's no room beside the box any more */
  .fd > .page-head { display: none; }
  .fd > .so-chips { display: flex; margin: 0; }
  /* the top bar is fully see-through on every page, scrolled or not: the logo, the menu button and the rest
     on nothing (the user, 2026-10-04: "navbar only", the bottom tabs keep theirs); a soft shadow keeps them
     readable over whatever scrolls under */
  .topbar, :root[data-theme="light"] .topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
  .topbar .icon-btn, .topbar .logo { background: transparent; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .65)); }
  .topbar .page-name { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
  :root[data-theme="light"] :is(.topbar .icon-btn, .topbar .logo) { filter: drop-shadow(0 1px 2px rgba(255, 255, 255, .9)); }
  :root[data-theme="light"] .topbar .page-name { text-shadow: 0 1px 3px rgba(255, 255, 255, .9); }
  :root[data-theme="light"] .topbar::after { display: none; }
}
:root[data-theme="light"] .m-search { background: #f3f6fb; border-color: #d9dfea; }
/* phones: Broadcast is an icon in the top bar (its tab became Marketplace; the user, 2026-10-02) */
/* the menu's name row: the name, and on phones dark / light and the language right of it (the user, 2026-10-04) */
.mb-row { display: flex; align-items: center; gap: 4px; }
.mb-row .mb-link { flex: 1; min-width: 0; }
.side-tools { display: none; align-items: center; gap: 2px; flex-shrink: 0; }
@media (max-width: 720px) {
  .topbar .theme-btn, .topbar .lang-btn { display: none; }
  .side-tools { display: inline-flex; }
}
@media (max-width: 340px) { .bn-item { font-size: 10.5px; } } /* "Marketplace" fits a 64px tab */

/* MySync's feed, like Facebook's home (the user, 2026-10-04): what's on your mind, LIVE now, friend requests,
   then everyone's posts, reels and videos in one column */
.fd { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.fd .section, .fd .page-head { margin: 0; }
.fd .so-chips { margin: -4px 0 0; }
.fd > div:empty:not(.fd-more) { display: none; } /* LIVE now and the requests, until they have something (the end of the feed stays, it's watched) */
.fd-list { display: flex; flex-direction: column; gap: 14px; }
.fd-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.fd-compose { padding: 12px 14px 8px; }
.fd-row { display: flex; gap: 10px; align-items: flex-start; }
.fd-input { flex: 1; min-width: 0; min-height: 40px; resize: none; border: 0; outline: 0; border-radius: 20px; padding: 10px 16px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; line-height: 1.4; }
.fd-input::placeholder { color: var(--muted); }
.fd-row .avatar { width: 40px; height: 40px; }
.fd-pic { position: relative; margin-top: 10px; }
.fd-pic:empty { display: none; }
.fd-pic img { display: block; max-height: 280px; max-width: 100%; border-radius: var(--radius-sm); }
.fd-pic .icon-btn { position: absolute; top: 6px; left: 6px; background: rgba(0, 0, 0, .6); color: #fff; }
.fd-tools { display: flex; align-items: center; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.fd-tool { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fd-tool:hover { background: var(--surface-2); }
.fd-tool > svg { color: var(--green); }
.fd-aud-ic { display: inline-grid; color: #4677dd; }
.fd-tool .select.fd-who-sel { width: auto; height: 30px; padding: 0 26px 0 2px; border: 0; background-color: transparent; background-position: calc(100% - 13px) 13px, calc(100% - 8px) 13px; color: var(--text-2); font-size: 14px; font-weight: 600; cursor: pointer; }
.fd-tools .btn { margin-left: auto; min-width: 84px; }
.fd-live { display: inline-flex; align-items: center; gap: 9px; }
.fd-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 4px var(--red-soft); animation: fd-pulse 1.6s infinite; }
@keyframes fd-pulse { 50% { opacity: .35; } }
.fd-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px; }
.fd-head .avatar { width: 40px; height: 40px; }
.fd-whois { flex: 1; min-width: 0; line-height: 1.35; }
.fd-name { font-weight: 700; color: var(--text); white-space: nowrap; } /* a name never splits over two lines */
.fd-name:hover { text-decoration: underline; }
.fd-whois .verified { margin-left: 4px; vertical-align: -3px; }
.fd-what { color: var(--muted); font-weight: 500; margin-left: 5px; }
.fd-sub { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 4px; }
.fd-sub .fd-aud-ic { color: var(--muted); }
.fd-text { padding: 0 14px 10px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.fd-text.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; padding-bottom: 0; margin-bottom: 10px; } /* padding would show a 7th line */
.fd-seemore { margin: -6px 14px 10px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-weight: 700; cursor: pointer; align-self: flex-start; }
.fd-img { display: block; width: 100%; max-height: 720px; object-fit: contain; background: #000; }
.fd-counts { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px 6px; color: var(--muted); font-size: 13.5px; }
.fd-counts[hidden] { display: none; }
.fd-counts svg { color: var(--red-2); vertical-align: -2px; }
.fd-acts { display: flex; border-top: 1px solid var(--border); margin: 0 10px; padding: 4px 0; }
.fd-act { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 7px; height: 38px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-2); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.fd-act:hover { background: var(--surface-2); }
.fd-act.on { color: var(--red-2); }
.fd-link { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.fd-link:hover { text-decoration: underline; }
.fd-reel, .fd-video { position: relative; display: block; background: #000; }
.fd-reel > img, .fd-reel > .placeholder-art { display: block; height: min(560px, 72vh); max-width: 100%; aspect-ratio: 9 / 16; object-fit: cover; margin: 0 auto; }
.fd-video > img, .fd-video > .placeholder-art { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fd-credit { display: block; padding: 8px 14px 10px; color: var(--muted); font-size: 12px; }
.fd-credit:hover { color: var(--text-2); }
/* a post's / reel's own song (app/music.py): the site's sound switch, then "♪ Title · Artist CC BY" */
.fd-song { display: flex; align-items: center; gap: 8px; padding: 8px 14px 2px; min-width: 0; }
.fd-song-btn { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.fd-song-btn:hover { color: var(--text); }
.fd-songline { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 12px; }
.fd-songline:hover { color: var(--text-2); }
.fd-songline small, .reel .caption .song small { opacity: .75; }
.fd-credit.fd-songline { padding-top: 0; }
.mp-choice { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.mp-choice .fd-tool > svg { color: var(--red); }
.mp-label { min-width: 0; max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mp-x { width: 26px; height: 26px; }
.mp { display: flex; flex-direction: column; gap: 10px; }
.mp-list { display: flex; flex-direction: column; gap: 2px; max-height: min(52vh, 420px); overflow-y: auto; }
.mp-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: var(--radius-sm); }
.mp-row:hover { background: var(--surface-2); }
.mp-play { flex: none; background: var(--surface-2); }
.mp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mp-txt b, .mp-txt small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mp-none { padding: 18px 0; text-align: center; }
.mp-note { margin-top: 2px; }
@media (max-width: 720px) { .md-compose .fd-tools { flex-wrap: wrap; } .mp-label { max-width: 160px; } }
.fd-orig { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-orig img { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; }
.fd-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; }
.fd-views, .fd-dur { position: absolute; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 12px; font-weight: 600; }
.fd-views { left: 10px; }
.fd-dur { right: 10px; }
.fd-vtitle { display: block; padding: 10px 14px 2px; font-weight: 700; font-size: 15px; color: var(--text); }
.fd-vtitle:last-child { padding-bottom: 12px; }
/* a news channel's shared story (views/social.js newsCard), like a link post on Facebook */
.fd-news { display: block; margin-top: 2px; color: var(--text); text-decoration: none; }
.fd-news-img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--surface-2); }
.fd-news-box { padding: 10px 14px 12px; background: var(--surface-2); border-top: 1px solid var(--border); }
.fd-news-site { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.fd-news-title { margin-top: 3px; font-weight: 700; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fd-news-sum { margin-top: 4px; color: var(--text-2); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fd-news:hover .fd-news-title { text-decoration: underline; }
/* a story without a picture (or one that won't load): one drawn from the headline, in the page's own hue (feedacts.js newsArt) */
.fd-news-art { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 10px; aspect-ratio: 1.91 / 1; padding: 18px 22px 46px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, hsl(calc(var(--h) + 40) 80% 45% / .55), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, hsl(var(--h) 70% 30%), hsl(calc(var(--h) + 20) 75% 12%)); }
.fd-news-art::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 40px; height: 1px; background: rgba(255,255,255,.18); }
.fd-na-tag { position: absolute; top: 14px; left: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.28); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.fd-na-title { margin-top: 18px; font-size: clamp(18px, 4.6vw, 26px); line-height: 1.3; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.35);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fd-na-who { position: absolute; left: 22px; bottom: 11px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; opacity: .92; }
.fd-na-who i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: hsl(var(--h) 70% 28%); font-style: normal; font-size: 12px; font-weight: 800; }
.fd-news-art.sm { aspect-ratio: auto; width: 100%; height: 100%; padding: 0; align-items: center; gap: 0; }
.fd-news-art.sm::after { display: none; }
.fd-news-art.sm .fd-na-tag { top: 4px; left: 4px; padding: 3px; }
.fd-na-ini { font-size: 26px; font-weight: 800; }
.fd-pad { padding: 0 14px 12px; }
.fd-more { display: grid; place-items: center; min-height: 64px; }
.fd-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; }
/* comments */
.fd-cform { display: flex; gap: 8px; margin-bottom: 14px; }
.fd-cform .input { flex: 1; min-width: 0; }
.fd-comments { display: flex; flex-direction: column; gap: 12px; max-height: 60vh; overflow-y: auto; }
.fd-c { display: flex; gap: 8px; align-items: flex-start; }
.fd-cb { min-width: 0; }
.fd-bubble { background: var(--surface-2); border-radius: 16px; padding: 8px 12px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.fd-bubble .fd-name { display: block; font-size: 13px; }
.fd-cb .fd-sub { padding: 3px 12px 0; gap: 12px; }
.fd-cb .fd-link { font-weight: 600; }
/* friends: requests, people you may know, the Friends page */
.fd-asks { padding: 12px 14px 14px; }
.fd-asks-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.fr-row { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.fr-row::-webkit-scrollbar { display: none; }
.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.fr-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; min-width: 0; padding: 14px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.fd-asks .fr-person { background: var(--surface-2); }
.fr-person .avatar.lg { width: 76px; height: 76px; font-size: 28px; margin-bottom: 6px; }
.fr-person .fd-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-person .fd-friend { margin-top: 8px; flex-wrap: wrap; justify-content: center; gap: 6px; }
.fr-person .btn { height: 32px; padding: 0 12px; font-size: 13px; }
@media (max-width: 720px) {
  .fd, .fd-list { gap: 10px; }
  .fr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fr-row { grid-auto-columns: 150px; }
}

/* My Day (the user, 2026-10-04), like Facebook's stories: a row of tall cards over the feed, swiped sideways;
   the first shares a post. Tapping a card plays that person's posts of the day full screen. */
.md { padding: 12px; }
.md .rail-track.myday { grid-auto-columns: 112px; gap: 8px; padding-bottom: 0; }
.md .rail-btn.prev { left: 4px; }
.md .rail-btn.next { right: 4px; }
.md-card { position: relative; display: block; height: 196px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.md-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 32%, transparent 58%, rgba(0, 0, 0, .62)); pointer-events: none; }
.md-card:hover .md-bg { transform: scale(1.04); }
.md-bg, .md-paper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.md-blur { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; filter: blur(14px) brightness(.6); }
.md-paper { display: grid; place-items: center; padding: 34px 10px 30px; }
.md-paper > span { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.md-ring { position: absolute; top: 8px; left: 8px; z-index: 1; display: grid; padding: 2px; border-radius: 50%; background: #4677dd; }
.md-card.seen .md-ring { background: rgba(255, 255, 255, .55); }
.md-ring .avatar { width: 32px; height: 32px; border: 2px solid #111; }
.md-name { position: absolute; left: 6px; right: 6px; bottom: 9px; z-index: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 700; line-height: 1.25; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); } /* one line (the user, 2026-10-04) */
.md-new { background: var(--surface); border: 1px solid var(--border); }
.md-new::after { display: none; }
.md-new-pic { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 136px; object-fit: cover; display: grid; place-items: center; overflow: hidden; }
.md-new-pic .avatar.lg, :root[data-theme="light"] .md-new-pic .avatar.lg { width: 100%; height: 100%; border: 0; border-radius: 0; font-size: 44px; color: #fff; }
.md-plus { position: absolute; left: 50%; top: 136px; z-index: 1; transform: translate(-50%, -50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; border: 3px solid var(--surface); }
.md-new-label { position: absolute; left: 6px; right: 6px; bottom: 11px; color: var(--text); font-size: 12.5px; font-weight: 700; text-align: center; }
.md-compose { display: flex; flex-direction: column; gap: 12px; }
.md-compose .fd-row { align-items: center; }
.md-compose .fd-row b { display: block; line-height: 1.2; }
.md-compose .fd-aud { height: 28px; padding: 0 6px 0 4px; margin-left: -4px; }
.md-compose .fd-tools { margin: 0; padding-top: 10px; }
.md-text-in { min-height: 120px; font-size: 16px; }
/* the player */
body.mdv-open { overflow: hidden; }
.mdv { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; background: rgba(0, 0, 0, .94); animation: fadein .15s; }
.mdv-box { position: relative; width: min(100vw, 430px); height: min(100dvh, 820px); overflow: hidden; background: #000; touch-action: none; user-select: none; -webkit-user-select: none; }
.mdv-stage, .mdv-slide { position: absolute; inset: 0; }
.mdv-slide.from-right { animation: mdv-in-right .32s ease-out; }
.mdv-slide.from-left { animation: mdv-in-left .32s ease-out; }
@keyframes mdv-in-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes mdv-in-left { from { transform: translateX(-100%); } to { transform: none; } }
.mdv-slide img { pointer-events: none; -webkit-user-drag: none; }
.mdv-blur { position: absolute; inset: -20px; width: calc(100% + 40px); height: calc(100% + 40px); object-fit: cover; filter: blur(24px) brightness(.55); }
.mdv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mdv-caption { position: absolute; left: 0; right: 0; bottom: 64px; max-height: 32%; overflow-y: auto; padding: 14px 18px; color: #fff; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; background: linear-gradient(transparent, rgba(0, 0, 0, .7) 30%); }
.mdv-slide.words { display: grid; place-items: center; padding: 70px 26px 80px; }
.mdv-slide.words > div { max-height: 100%; overflow-y: auto; color: #fff; font-size: 24px; font-weight: 700; line-height: 1.35; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; }
.mdv-slide.words.long > div { font-size: 18px; font-weight: 600; }
.mdv-bars { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; gap: 4px; padding: 10px 10px 0; background: linear-gradient(rgba(0, 0, 0, .45), transparent); }
.mdv-bars span { flex: 1; height: 3px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .35); }
.mdv-bars i { display: block; height: 100%; background: #fff; }
.mdv-top { position: absolute; top: 18px; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 12px; }
.mdv-who { display: flex; align-items: center; gap: 9px; min-width: 0; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.mdv-who .avatar { width: 38px; height: 38px; border-color: #fff; }
.mdv-who b { display: block; font-size: 14.5px; }
.mdv-who small { display: flex; align-items: center; gap: 4px; font-size: 12px; opacity: .85; }
.mdv-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.mdv-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
.mdv-act { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 8px; height: 42px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); }
.mdv-act.on { color: #ff4d6a; border-color: rgba(255, 77, 106, .6); }
@media (min-width: 721px) { .mdv-box { border-radius: 14px; } }
@media (max-width: 720px) {
  .md { padding: 10px; }
  .md .rail-track.myday { grid-auto-columns: calc((100% - 24px) / 3.15); } /* a bit of the 4th shows: there's more sideways; wide enough for "Tamjid Ahmed" on one line */
  .md-card { height: 184px; }
  .md-new-pic { height: 126px; }
  .md-plus { top: 126px; }
}
/* MySync's cards have square corners (the user, 2026-10-04): My Day, the posts, LIVE now, friends, and the posts on
   a profile; pictures of people, buttons and chips stay round */
.fd :is(.fd-card, .md-card, .lc-art, .empty), .fr-person { border-radius: 0; }

/* ================================================================ Sync+ and Home (the user, 2026-10-05)
   Home is the feed (it was MySync); Sync+ is the Premium side with Live TV, Sports, Movies, Natok and Series. */
:root { --px-blue: #4677dd; --px-orange: #f39220; --gold: #f5b301; }
:root[data-theme="light"] { --px-blue: #2350a8; }

/* the Sync+ logo: "Sync" in syncXpace's blue with the orange orbit, star and "+" (dark theme: the lighter blue) */
.pluslogo { display: inline-flex; align-items: center; line-height: 1; vertical-align: middle; }
.pluslogo .pluslogo-art { display: block; height: 1.5em; aspect-ratio: 650 / 265; background: url("/assets/img/syncplus-logo-dark.svg") center / contain no-repeat; }
:root[data-theme="light"] .pluslogo .pluslogo-art { background-image: url("/assets/img/syncplus-logo.svg"); }
.page-title .pluslogo.px-page { font-size: 34px; }
.page-name .pluslogo.px-top { font-size: 22px; }
.nav-title .pluslogo.px-side { font-size: 16px; }
.section-link .pluslogo.px-mini { font-size: 12px; }
.nav-title.px-title { display: block; position: relative; margin: 2px 0; padding: 8px 12px 6px; border-radius: 10px; }
.nav-title.px-title:hover { background: var(--surface); }
.nav-title.px-title.active::after { content: ""; position: absolute; top: 4px; bottom: 4px; right: -12px; width: 3px; border-radius: 3px; background: var(--grad); }

/* Sync+'s pages: one row of chips on top of each, swiped sideways on phones */
.px-head { margin-bottom: 6px; }
.px-chips { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 0 20px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.px-chips::-webkit-scrollbar { display: none; }
.px-chips .chip { flex: 0 0 auto; text-decoration: none; }
.grid.tvcards { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 14px; }

/* a channel that's free for everyone says so; the rest are Premium (the lock badge) */
.lc-free { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 2px 7px; border-radius: 6px; background: rgba(22, 163, 74, .92); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .4px; }

/* Home: the feed in the middle, a right column beside it on computers */
.fd-page { display: grid; grid-template-columns: minmax(0, 680px); justify-content: center; gap: 24px; align-items: start; }
.fd-page > .fd { margin: 0; max-width: none; min-width: 0; }
.fd-side { display: none; }
.fd .so-chips { margin: 0; }
.so-chip.active { background: var(--grad); border-color: transparent; color: #fff; }
.so-chip.active svg { color: #fff; }
.fd-compose .fd-input { text-align: left; cursor: pointer; color: var(--muted); }
.fd-compose .fd-tool { text-decoration: none; }
.fd-compose .fd-tool:nth-child(2) > svg { color: var(--red-2); }
.fd-compose .fd-tool:nth-child(3) > svg { color: var(--px-blue); }
@media (min-width: 1240px) {
  .fd-page { grid-template-columns: minmax(0, 680px) 320px; }
  .fd-side { display: grid; gap: 14px; position: sticky; top: calc(var(--topbar) + var(--strip) + var(--pad-top)); max-height: calc(100vh - var(--topbar) - 32px); overflow-y: auto; scrollbar-width: none; }
  .fd-side::-webkit-scrollbar { display: none; }
  .fd-live-inline { display: none; }
}
.fd-side > div:empty { display: none; }
.fs-box { padding: 12px 14px; display: grid; gap: 10px; }
.fs-box .fd-asks-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fs-grid .lc-name { font-size: 12.5px; }
.fs-list { display: grid; gap: 4px; }
.fs-match { display: grid; gap: 2px; padding: 8px 6px; border-radius: var(--radius-sm); color: var(--text); }
.fs-match:hover { background: var(--surface-2); }
.fs-m-t { font-weight: 600; font-size: 14px; }
.fs-person { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 4px 0; }
.fs-person .avatar { width: 36px; height: 36px; }
.fs-person .fd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.fs-person .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }
.fs-person .btn + .btn { display: none; }

/* phones: the round + button to post (Post, Reel, Video); computers use the box on top of the feed */
.fd-fab { display: none; }
.fab-menu { display: grid; gap: 8px; }
.fab-opt { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fab-opt > svg { color: var(--red-2); flex: 0 0 auto; }
.fab-opt span { display: grid; gap: 2px; }
@media (max-width: 1024px) {
  .so-chips { display: flex; } /* Reels and Videos aren't in the row of pages any more */
  .fd-compose { display: none; }
}
@media (max-width: 720px) {
  .fd-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(58px + env(safe-area-inset-bottom) + 30px); z-index: 41; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(229, 9, 20, .4); cursor: pointer; }
  body.has-mini .fd-fab { bottom: calc(58px + env(safe-area-inset-bottom) + 100px); }
  .page-title .pluslogo.px-page { font-size: 28px; }
  .px-head { display: none; } /* the top bar already shows the Sync+ logo */
  .px-chips { margin: 0 calc(-1 * var(--gutter)) 16px; padding: 0 var(--gutter); }
}

/* phones: Sync+ is the big round button in the middle of the bottom tabs, raised over the bar (the bar stays
   58px high, so the reels and the mini player keep their places) */
@media (max-width: 720px) {
  .bottom-nav { overflow: visible; }
  .bn-item.bn-plus { position: relative; align-content: end; padding-bottom: 7px; }
  .bn-plus-btn { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, #d9441a, var(--px-orange)); color: #fff; border: 4px solid var(--bg); box-shadow: 0 6px 18px rgba(243, 146, 32, .38); }
  .bn-item.bn-plus .bn-plus-btn svg { color: #fff; }
  .bn-plus-name { font-weight: 800; }
  .bn-item.bn-plus.active { color: var(--px-orange); }
  .bn-item.bn-plus.active .bn-plus-btn { box-shadow: 0 0 0 2px var(--px-orange), 0 6px 18px rgba(243, 146, 32, .45); }
  :root[data-theme="light"] .bn-plus-btn { border-color: #fff; }
  :root[data-theme="light"] .bn-item.bn-plus.active { color: #c2410c; }
}
.kicker .pluslogo.px-kick { font-size: 15px; }
.fs-grid .lc-brand { display: none; } /* small cards: the badges need the room */

/* the review (2026-10-05): tablets post from the + button too and get Sync+'s pages once (the row up top has them);
   on phones the mini player sits above the raised Sync+ button, and the pen button above the mini player */
@media (max-width: 1024px) {
  .fd-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: 24px; z-index: 41; width: 54px; height: 54px; border: 0; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(229, 9, 20, .4); cursor: pointer; }
}
@media (min-width: 721px) and (max-width: 1024px) { .px-chips { display: none; } }
@media (min-width: 721px) and (max-width: 1024px) and (max-height: 500px) { .px-chips { display: flex; } } /* short landscape: no row up top */
@media (max-width: 720px) {
  .fd-fab { bottom: calc(58px + env(safe-area-inset-bottom) + 30px); }
  .mini-player { bottom: calc(58px + env(safe-area-inset-bottom) + 30px); }
  body.has-mini main#view { padding-bottom: calc(104px + min(56vw, 230px) * 9 / 16 + 16px); }
  body.has-mini .fd-fab { bottom: calc(58px + env(safe-area-inset-bottom) + 30px + min(56vw, 230px) * 9 / 16 + 12px); }
}
@media (min-width: 1240px) { .fd-narrow-only { display: none; } } /* the right column has them */
@media (min-width: 1240px) { .fd > div:has(> .fd-narrow-only) { display: none; } } /* no empty gap in the feed */
/* phones (the user, 2026-10-05): no search box in the top bar, a small round search button beside the bell;
   the search page has its own box */
@media (max-width: 720px) {
  .topbar .brand { max-width: none; flex: 0 1 auto; min-width: 0; }
  .topbar .spacer { display: block; flex: 1; }
  .topbar .search-btn { display: inline-grid; place-items: center; border-radius: 50%; }
  .sr-box { display: block; }
}
/* everything closer to the top bar (the user, 2026-10-05): a slimmer bar on phones, its items higher, and the
   page starts right under it with no extra gap */
:root { --pad-top: 12px; }
@media (max-width: 720px) {
  :root { --topbar: 52px; --pad-top: 4px; }
}

/* one card, never a card inside a card (the user, 2026-10-05), like Facebook's and Instagram's feeds:
   - My Day and People you may know / Friend requests are bare rows: their own cards are the cards
   - a reel in the feed is the full width of its post at 4:5 (the feed standard), no black bars beside it
   - phones: each post runs edge to edge, the posts a thin gap apart */
.fd .fd-card.md, .fd .fd-card.fd-asks { background: transparent; border: 0; padding: 0; overflow: visible; }
.fd .fd-asks .fr-person { background: var(--surface); }
.fd-reel > img, .fd-reel > .placeholder-art { width: 100%; height: auto; aspect-ratio: 4 / 5; max-height: min(640px, 78vh); object-fit: cover; }
@media (max-width: 720px) {
  .fd-list { gap: 8px; }
  .fd-list > .fd-card { margin: 0 calc(-1 * var(--gutter)); border-left: 0; border-right: 0; }
  .fd-reel > img, .fd-reel > .placeholder-art { max-height: none; }
  .fd .md .rail-track.myday, .fd .fr-row { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
}

/* phones, like Facebook (the user, 2026-10-05; this replaces the see-through bar of 2026-10-04): the top bar is
   solid on every page and slides away while scrolling down, back on scrolling up; only Reels has it see-through,
   floating over the video. The bottom tabs always stay. */
@media (max-width: 720px) {
  .topbar { background: rgba(7, 9, 14, .97); border-bottom: 1px solid var(--border); transition: transform .22s ease; will-change: transform; }
  :root[data-theme="light"] .topbar { background: #fff; border-bottom-color: #e2e4ea; }
  :root[data-theme="light"] .topbar::after { display: block; }
  .topbar .icon-btn, .topbar .logo, :root[data-theme="light"] :is(.topbar .icon-btn, .topbar .logo) { filter: none; }
  .topbar .page-name, :root[data-theme="light"] .topbar .page-name { text-shadow: none; }
  body.bar-hidden .topbar { transform: translateY(-100%); }
  body.bar-hidden.mdv-open .topbar { transform: none; }
  /* Reels: the bar over the video, see-through, the reels from the very top of the screen */
  body.on-reels .topbar, :root[data-theme="light"] body.on-reels .topbar { position: fixed; left: 0; right: 0; top: 0; height: var(--topbar); background: transparent; border-bottom-color: transparent; transform: none; }
  :root[data-theme="light"] body.on-reels .topbar::after { display: none; }
  body.on-reels .topbar :is(.icon-btn, .logo, .menu-btn) { color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .7)); }
  body.on-reels .topbar .page-name { color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
  /* the bar is out of the page's flow here, so the page already starts at the top: only its own gap goes */
  body.on-reels .reels-page { margin-top: calc(-1 * var(--pad-top)); }
  body.on-reels .reel .mute { top: calc(var(--topbar) + 8px); } /* under the bar, not behind it */
  body.on-reels .reels-feed, body.on-reels .reel { height: calc(100dvh - 58px - env(safe-area-inset-bottom)); }
}
@media (max-width: 720px) {
  body.on-reels .topbar, :root[data-theme="light"] body.on-reels .topbar { background: linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
}

/* ---------------------------------------------------------------- SyncChat (the user, 2026-10-05)
   Members message each other one to one, like Facebook's Messenger (views/chat.js). Its icon sits in the top bar's
   upper corner beside the bell. Computers: the list (340px) and the open chat side by side, fitted to the screen;
   phones and tablets: the list as a page, an open chat over the whole screen (body.in-chat), the box at the bottom.
   My bubbles are syncXpace blue (--px-blue: #4677dd dark, #2350a8 light), theirs the surface grey. Logical sides
   (start/end) throughout, so Urdu and Arabic mirror it. */
:root { --ch-soft: rgba(70, 119, 221, .18); --ch-ink: #8fb0ff; }
:root[data-theme="light"] { --ch-soft: rgba(35, 80, 168, .1); --ch-ink: #2350a8; }

/* the top bar's icon: lit while SyncChat is open; its red count is the bell's (.icon-btn .dot) */
.topbar .chat-btn.on { color: var(--ch-ink); }

.ch { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - var(--topbar) - var(--pad-top) - 20px); min-height: 460px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 1025px) { body.on-chat main#view { padding-bottom: 20px; } }
.ch .spin { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--border-2); border-top-color: var(--px-blue); border-radius: 50%; animation: spin .7s linear infinite; }
.ch-wait { display: grid; place-items: center; padding: 28px 0; }
.ch-none-row { padding: 18px 12px; text-align: center; }
.ch .empty { border: 0; }

/* the list */
.ch-list { display: flex; flex-direction: column; min-height: 0; border-inline-end: 1px solid var(--border); }
.ch-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 6px; }
.ch-list-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.ch-new { background: var(--surface-2); color: var(--text); }
.ch-tabs { display: flex; gap: 6px; padding: 4px 14px 8px; }
.ch-tab { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font-weight: 600; }
.ch-tab:hover { background: var(--surface-2); color: var(--text); }
.ch-tab.on { background: var(--ch-soft); color: var(--ch-ink); }
.ch-count { min-width: 18px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.ch-search { display: flex; align-items: center; gap: 8px; height: 38px; margin: 0 14px 8px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.ch-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.ch-search input::-webkit-search-cancel-button { display: none; }
.ch-rows { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; }
.ch-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--text); }
.ch-item:hover { background: var(--surface-2); }
.ch-item.on { background: var(--ch-soft); }
.ch-item .avatar { width: 52px; height: 52px; font-size: 20px; }
.ch-item-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ch-item-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ch-item-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-item-last { display: flex; gap: 4px; min-width: 0; color: var(--muted); font-size: 13px; }
.ch-item-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-item-at { flex: 0 0 auto; }
.ch-item-at::before { content: "· "; }
.ch-item.unread .ch-item-name b, .ch-item.unread .ch-item-last { color: var(--text); font-weight: 700; }
.ch-dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--px-blue); }

/* one conversation */
.ch-conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.ch-none { display: grid; place-items: center; }
.ch-head { display: flex; align-items: center; gap: 8px; min-height: 62px; padding-block: 8px; padding-inline: 14px 10px; border-bottom: 1px solid var(--border); background: var(--surface); }
.ch-back { display: none; }
[dir="rtl"] .ch-back svg { transform: scaleX(-1); }
.ch-who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); }
.ch-who-txt { display: grid; min-width: 0; line-height: 1.25; }
.ch-who-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ch-who-name b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-who small { color: var(--muted); font-size: 12px; }
.ch-who:hover .ch-who-name b { text-decoration: underline; }
.ch-grow { flex: 1; }
.ch-menu-btn { color: var(--ch-ink); }
.ch-gone { flex: 1; display: grid; place-items: center; padding: 20px; }
.ch-msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 12px; }
.ch-older { min-height: 8px; }
.ch-intro { display: grid; justify-items: center; gap: 4px; padding: 26px 10px 18px; text-align: center; }
.ch-intro .avatar { margin-bottom: 6px; }
.ch-intro-name { display: flex; align-items: center; gap: 4px; font-size: 18px; }
.ch-intro .btn { margin-top: 8px; }
.ch-day { margin: 16px 0 8px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; }

/* bubbles: mine at the end side, theirs at the start with the avatar under the last of a run */
.ch-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; }
.ch-row.first { margin-top: 10px; }
.ch-row.mine { flex-direction: row-reverse; }
.ch-av { flex: 0 0 28px; width: 28px; }
.ch-av .avatar { width: 28px; height: 28px; font-size: 12px; border-width: 0; }
.ch-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; max-width: min(70%, 520px); }
.ch-row.mine .ch-stack { align-items: flex-end; }
.ch-bub { max-width: 100%; padding: 8px 12px; border-radius: 18px; background: var(--surface-2); color: var(--text); font-size: 15px; line-height: 1.38;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-row.mine .ch-bub { background: var(--px-blue); color: #fff; }
.ch-bub a { color: inherit; text-decoration: underline; }
.ch-row.theirs .ch-stack > * { border-start-start-radius: 4px; border-end-start-radius: 4px; }
.ch-row.theirs.first .ch-stack > :first-child { border-start-start-radius: 18px; }
.ch-row.theirs.last .ch-stack > :last-child { border-end-start-radius: 18px; }
.ch-row.mine .ch-stack > * { border-start-end-radius: 4px; border-end-end-radius: 4px; }
.ch-row.mine.first .ch-stack > :first-child { border-start-end-radius: 18px; }
.ch-row.mine.last .ch-stack > :last-child { border-end-end-radius: 18px; }
.ch-row .ch-bub.big { padding: 0 2px; background: transparent; color: var(--text); font-size: 40px; line-height: 1.15; }
.ch-row .ch-bub.ch-unsent { background: transparent; border: 1px solid var(--border-2); color: var(--muted); font-style: italic; }
.ch-photo-btn { display: block; padding: 0; border: 0; background: none; border-radius: 18px; overflow: hidden; cursor: zoom-in; }
.ch-photo-btn .ch-photo { border-radius: inherit; }
.ch-photo { display: block; max-width: min(280px, 100%); max-height: 320px; min-width: 80px; min-height: 80px; object-fit: cover; background: var(--surface-2); }
.ch-time { flex: 0 0 auto; align-self: center; color: var(--faint); font-size: 11px; white-space: nowrap; opacity: 0; transition: opacity .12s; }
.ch-row.show-time .ch-time { opacity: 1; }
.ch-more { flex: 0 0 auto; align-self: center; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); opacity: 0; }
.ch-more:hover, .ch-more:focus-visible { background: var(--surface-2); color: var(--text); opacity: 1; }
@media (hover: hover) {
  .ch-row:hover .ch-time, .ch-row:hover .ch-more { opacity: 1; }
}
@media (hover: none) {
  .ch-more { display: none; } /* phones: a long press on the message */
  .ch-row.mine { -webkit-touch-callout: none; user-select: none; }
}
/* right to left: "@handle" and web addresses keep their own order */
[dir="rtl"] :is(.ch-who small, .ch-intro .muted, .ch-person small) { unicode-bidi: plaintext; }
.ch-seen { margin: 3px 4px 0; text-align: end; color: var(--muted); font-size: 11.5px; }

/* the bottom: a request's banner, the "waiting in their requests" note, the box (or why there's none) */
.ch-foot { display: grid; gap: 8px; padding: 8px 12px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.ch-request { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.ch-request-who { font-size: 15px; }
.ch-request-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.ch-pending { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: 12.5px; text-align: center; }
.ch-pending svg { flex-shrink: 0; }
.ch-blocked { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 8px; color: var(--muted); text-align: center; }
.ch-blocked b { color: var(--text); }
.ch-compose { display: flex; align-items: flex-end; gap: 6px; margin: 0; }
.ch-tool, .ch-send { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ch-ink); }
.ch-tool:hover, .ch-send:not(:disabled):hover { background: var(--ch-soft); }
.ch-send:disabled { color: var(--faint); cursor: default; }
[dir="rtl"] .ch-send svg { transform: scaleX(-1); }
.ch-field { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-2); }
.ch-field:focus-within { border-color: var(--border-2); }
.ch-text { display: block; width: 100%; height: 40px; max-height: 132px; padding: 9px 14px; border: 0; outline: 0; resize: none; background: transparent; color: var(--text); font-size: 15px; line-height: 1.4; }
.ch-text::placeholder { color: var(--muted); }
.ch-pic { display: none; }
.ch-pic.on { display: block; position: relative; width: max-content; margin: 8px 10px 0; }
.ch-pic img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.ch-pic .icon-btn { position: absolute; top: -6px; inset-inline-end: -6px; width: 24px; height: 24px; background: var(--surface-3); color: var(--text); border: 2px solid var(--surface-2); }

/* the small menus (the chat's ⋯, a message's ⋯) and the photo viewer */
.menu.ch-pop { width: auto; min-width: 200px; }
.menu.ch-pop .ch-danger { color: #ff6b78; }
.ch-viewer { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .92); animation: fadein .12s; }
.ch-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.ch-viewer-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 12px; background: rgba(255, 255, 255, .14); color: #fff; }
.ch-viewer-x:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* New message: pick a person */
.ch-new-body { display: grid; gap: 10px; }
.ch-people { display: grid; gap: 2px; max-height: 52vh; overflow-y: auto; }
.ch-person { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; color: var(--text); text-align: start; }
.ch-person:hover { background: var(--surface-2); }
.ch-person:disabled { opacity: .6; }
.ch-person-txt { display: grid; min-width: 0; line-height: 1.3; }
.ch-person-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.ch-person-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-person small { color: var(--muted); font-size: 12px; }

/* light: theirs a touch darker than the page so it reads on white, the boxes Messenger's grey */
:root[data-theme="light"] .ch-row.theirs .ch-bub:not(.big):not(.ch-unsent) { background: #eceef3; }
:root[data-theme="light"] :is(.ch-search, .ch-field, .ch-new) { background: #f0f2f5; }
:root[data-theme="light"] .ch-request { background: #f0f2f5; }
/* a letter avatar sits on its own dark gradient: its letter stays white here (the general light rule darkens it) */
:root[data-theme="light"] :is(.ch, .ch-people) span.avatar { color: #fff; }
:root[data-theme="light"] .menu.ch-pop .ch-danger { color: #c21d2b; }
:root[data-theme="light"] .ch-tab.on, :root[data-theme="light"] .topbar .chat-btn.on { color: var(--ch-ink); }

/* phones and tablets: the list is the page; an open chat covers the whole screen (top bar, row of pages and
   bottom tabs too), sized to what's visible above the keyboard (views/chat.js sets --ch-h / --ch-top) */
@media (max-width: 1024px) {
  .ch { display: block; height: auto; min-height: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .ch-list { border: 0; }
  .ch-list-head, .ch-tabs { padding-inline: 0; }
  .ch-search { margin-inline: 0; }
  .ch-rows { overflow: visible; padding: 0; margin: 0 -10px; }
  .ch-none, .ch.has-conv .ch-list { display: none; }
  .ch-conv:not(.ch-none) { position: fixed; left: 0; right: 0; top: var(--ch-top, 0px); height: var(--ch-h, 100dvh); z-index: 46; }
  body.in-chat { overflow: hidden; }
  body.in-chat main#view.page-enter { animation: none; } /* its slide-in would carry the fixed chat with it */
  .ch-head { min-height: 56px; padding-block: calc(6px + env(safe-area-inset-top)) 6px; padding-inline: 4px 8px; }
  .ch-back { display: inline-grid; }
  .ch-msgs { padding: 6px 10px 10px; }
  .ch-foot { padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .ch-stack { max-width: 76%; }
}
@media (max-width: 720px) {
  body.in-chat .bottom-nav, body.in-chat .fd-fab { display: none; }
  .ch-list-head h2 { display: none; } /* the top bar says SyncChat */
  /* the pen button on the tabs' row, at its end */
  .ch-list-head { position: relative; z-index: 1; justify-content: flex-end; padding-top: 4px; margin-bottom: -44px; pointer-events: none; }
  .ch-list-head .ch-new { pointer-events: auto; }
  .ch-tabs { padding-inline-end: 52px; }
  .ch-text { font-size: 16px; } /* 16px: the phone doesn't zoom in on the box */
}

/* phones (the user, 2026-10-05): no line under the top bar; each post divided from the next by a line, so
   where one ends and the next starts is clear (the posts sit on the page itself, no gap, no frame) */
@media (max-width: 720px) {
  .topbar, :root[data-theme="light"] .topbar { border-bottom-color: transparent; }
  :root[data-theme="light"] .topbar::after { display: none; }
  .fd-list { gap: 0; }
  .fd-list > .fd-card { background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); padding-bottom: 6px; margin-bottom: 0; }
  .fd-list > .fd-card:first-child { border-top: 1px solid rgba(255, 255, 255, .16); }
  :root[data-theme="light"] .fd-list > .fd-card { border-bottom-color: #d9dde6; }
  :root[data-theme="light"] .fd-list > .fd-card:first-child { border-top-color: #d9dde6; }
}

/* ================================================================ feed actions (the user, 2026-10-05; views/feedacts.js)
   Every feed card ends with one row: who reacted on the left, React / Comment / Share / Save on the right; under
   it the top comment, "View all N comments" and one-tap emoji replies. The row is always one line: a long "who
   reacted" ends in "…" rather than wrapping, and an empty count keeps its room, so a reaction toggled never moves
   the buttons up, down or sideways under the next tap. Hold the heart for 7 reactions; double-tap = a heart burst. */
.fa-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 0 8px; padding-block: 4px 0; padding-inline: 14px 6px; }
.fa-sum { flex: 1 1 0; min-width: 0; overflow: hidden; padding-inline-start: 2px; margin-inline-start: -2px; min-height: 40px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.fa-stack { display: inline-flex; flex: none; }
.fa-bub { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); box-shadow: 0 0 0 2px var(--fa-ring, var(--surface)); }
.fa-bub + .fa-bub { margin-inline-start: -6px; }
.fa-bub:nth-child(1) { z-index: 3; } .fa-bub:nth-child(2) { z-index: 2; } .fa-bub:nth-child(3) { z-index: 1; }
.fa-who { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text-2); }
.fa-who b { color: var(--text); font-weight: 700; }
.fa-views { flex: none; display: inline-flex; align-items: center; gap: 4px; }
.fa-sum > * + .fa-views::before { content: "·"; margin-inline-end: 2px; }
.fa-acts { display: flex; align-items: center; gap: 2px; flex: none; margin-inline-start: auto; }
.fa-act, .fa-r { -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.fa-act { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 40px; height: 40px; padding: 0 8px; border: 0; border-radius: 20px; background: transparent; color: var(--text-2); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.fa-act:hover { background: var(--surface-2); color: var(--text); }
.fa-act:focus-visible, .fa-r:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.fa-act .fa-g { line-height: 1; }
.fa-n { min-width: 2ch; font-variant-numeric: tabular-nums; text-align: start; } /* a zero keeps its room: the icons hold still */
.fa-react.on { color: var(--red-2); }
.fa-react.on:is([data-k="haha"], [data-k="wow"], [data-k="sad"]) { color: var(--amber); }
.fa-react.on[data-k="angry"] { color: #f0642d; }
.fa-react.on:is([data-k="fire"], [data-k="sync"]) { color: #f39220; }
.fa-save.on { color: var(--text); }
.fa-pop { animation: fa-bounce .42s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fa-bounce { 0% { transform: scale(1); } 30% { transform: scale(.8); } 65% { transform: scale(1.18); } 100% { transform: scale(1); } }
/* syncXpace's own reaction: the logo's orange star, its orbit spun once when picked (and while it's pointed at) */
.fa-star { display: inline-grid; line-height: 0; }
.fa-star svg { display: block; overflow: visible; }
.fa-orbit { transform-box: view-box; transform-origin: 12px 12px; }
.fa-react.fa-spin .fa-orbit { animation: fa-orbit .9s cubic-bezier(.2, .8, .3, 1); }
.fa-r:is(:hover, .hl, :focus-visible) .fa-orbit { animation: fa-orbit 1.4s linear infinite; }
@keyframes fa-orbit { to { transform: rotate(360deg); } }

/* the reaction bar: fixed over the page, kept inside the screen by feedacts.js place() */
.fa-rbar { position: fixed; left: 0; top: 0; width: max-content; z-index: 120; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); box-shadow: var(--shadow); animation: fa-rise .18s ease-out; }
@keyframes fa-rise { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.fa-r { position: relative; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform .16s cubic-bezier(.3, 1.5, .5, 1); animation: fa-in .3s cubic-bezier(.3, 1.5, .5, 1) backwards; }
@keyframes fa-in { from { opacity: 0; transform: translateY(10px) scale(.5); } }
.fa-r:is(:hover, .hl, :focus-visible) { transform: translateY(-7px) scale(1.32); outline: 0; }
.fa-r.on::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red-2); }
.fa-rl { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 9px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
.fa-r:is(:hover, .hl, :focus-visible) .fa-rl { opacity: 1; }

/* double-tap: a heart in the middle of the picture, sparks flying out */
.fa-host { position: relative; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.fa-burst { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; }
.fa-burst > svg { grid-area: 1 / 1; color: #ff2d46; stroke: #fff; stroke-width: 1; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .4)); animation: fa-heart .9s cubic-bezier(.2, .9, .3, 1.3) forwards; }
@keyframes fa-heart { 0% { transform: scale(0); opacity: 0; } 18% { transform: scale(1.25); opacity: 1; } 32% { transform: scale(.95); } 45% { transform: scale(1.05); } 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.1) translateY(-24px); opacity: 0; } }
.fa-burst i { grid-area: 1 / 1; width: 10px; height: 10px; border-radius: 50%; background: #ffb020; opacity: 0; animation: fa-spark .75s .08s ease-out forwards; }
.fa-burst i:nth-child(odd) { background: #ff2d46; width: 8px; height: 8px; }
.fa-burst i:nth-child(3n) { background: #f39220; }
@keyframes fa-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-30px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-96px) scale(.3); } }

/* under the row: the top comment, View all, quick replies */
.fa-extra { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 10px; }
.fa-extra:empty { display: none; } /* no comments yet: nothing under the row */
.fa-top { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.fa-top .fd-name, .fa-top b { color: var(--text); font-weight: 700; }
.fa-all { align-self: flex-start; padding: 2px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; text-align: start; }
.fa-all:hover { color: var(--text-2); }

/* the ⋯ menu on each card */
.fd-head .fa-menu { flex: none; margin-block: -6px; margin-inline: 0 -8px; }
.fa-mlist { display: grid; gap: 2px; }
.fa-mi { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; text-align: start; cursor: pointer; }
.fa-mi:hover { background: var(--surface-2); }
.fa-mi > svg { flex: none; color: var(--text-2); }
.fa-mi.fa-danger, .fa-mi.fa-danger > svg { color: var(--red-2); }
.fa-about p { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.fa-about p > svg { flex: none; color: var(--muted); }
.fa-about a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.fa-about .muted a { color: var(--muted); font-weight: 500; }
.fa-about-pic { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }

/* the share sheet */
.fa-share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fa-sh { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 12px 4px; border: 0; border-radius: var(--radius); background: transparent; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer; }
.fa-sh:hover { background: var(--surface-2); }
.fa-sh-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--surface-3); color: var(--text); }
.fa-c-chat .fa-sh-ic { background: linear-gradient(135deg, #2350a8, #4677dd); color: #fff; }
.fa-c-day .fa-sh-ic { background: linear-gradient(135deg, #d9441a, #f39220); color: #fff; }
.fa-c-wa .fa-sh-ic { background: #25d366; color: #fff; }
.fa-c-fb .fa-sh-ic { background: #1877f2; color: #fff; }
.fa-send { display: grid; gap: 10px; }
.fa-people { display: grid; gap: 2px; max-height: min(50vh, 380px); overflow-y: auto; }
.fa-person { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 8px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text); font: inherit; text-align: start; cursor: pointer; }
.fa-person:hover { background: var(--surface-2); }
.fa-person-tx { flex: 1; min-width: 0; display: grid; }
.fa-person-tx :is(b, small) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fa-person-tx small { color: var(--muted); }
.fa-tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-2); color: transparent; }
.fa-person.on .fa-tick { background: var(--red); border-color: var(--red); color: #fff; }
.fa-cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-inline-start: 6px; border-radius: 10px; background: rgba(255, 255, 255, .25); font-size: 12px; }
.fa-none { padding: 14px 4px; }
.fa-day { display: grid; gap: 10px; }
.fa-day .textarea { min-height: 76px; }

/* a post that shares another: the original, small, in a frame */
.fa-shared { display: block; margin: 0 14px 10px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); color: var(--text); }
.fa-day .fa-shared { margin: 0; }
.fa-sh-reel, .fa-sh-video { display: flex; align-items: center; gap: 12px; padding: 8px; }
.fa-sh-thumb { position: relative; flex: none; width: 120px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.fa-sh-reel .fa-sh-thumb { width: 72px; aspect-ratio: 9 / 16; }
.fa-sh-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fa-sh-thumb .fd-play { width: 34px; height: 34px; }
.fa-sh-body { min-width: 0; display: grid; gap: 2px; }
.fa-sh-body small { color: var(--muted); font-weight: 600; }
.fa-sh-body b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fa-sh-post { display: grid; gap: 6px; padding: 10px 12px; }
.fa-sh-who { display: flex; align-items: center; gap: 8px; }
.fa-sh-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.fa-sh-img { display: block; width: calc(100% + 24px); max-height: 360px; margin: 0 -12px -10px; object-fit: cover; }
.fa-gone { display: flex; align-items: center; gap: 8px; padding: 14px; color: var(--muted); font-size: 14px; }

/* the reel's song line once had the credit above it: it keeps its own room now */
.fd-reel + .fd-credit.fd-songline { padding-top: 8px; }
/* the left menu's foot: the Pexels credit, once for the whole site */
.side-foot .fa-pexels { display: block; margin-bottom: 6px; color: var(--muted); }
.side-foot .fa-pexels:hover { color: var(--text); }

/* phones: the share sheet and the ⋯ menu come up from the bottom; posts sit on the page, so the reaction
   bubbles are ringed in the page's colour */
@media (max-width: 720px) {
  .fd-list > .fd-card { --fa-ring: var(--bg); }
  .modal-back.fa-sheet { place-items: end stretch; padding: 0; }
  .fa-sheet .modal { max-width: none; max-height: 88vh; border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); animation: fa-up .22s ease-out; }
  .fa-sheet .modal::before { content: ""; display: block; width: 40px; height: 4px; margin: 8px auto -8px; border-radius: 2px; background: var(--border-2); }
  .fa-bar { padding-inline: 12px 4px; }
  .fa-extra { padding-inline: 12px; }
  .fa-shared { margin-inline: 12px; }
}
@keyframes fa-up { from { transform: translateY(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .fa-pop, .fa-r, .fa-rbar, .fa-burst i, .fa-orbit, .fa-sheet .modal { animation: none !important; }
  .fa-burst > svg { animation-duration: .01s; }
}
/* phones: the reaction summary gets its own line (a name is never cut to "You an…"), the icons sit under it at the
   bottom right; the line keeps its height when empty, so a tap never makes the row jump */
@media (max-width: 720px) {
  .fa-bar { flex-wrap: wrap; row-gap: 0; }
  .fa-sum { flex: 1 0 100%; min-height: 26px; order: 0; }
  .fa-acts { order: 1; }
}

/* ================================================================ 🎁 coin gifts (the user, 2026-10-05; views/feedacts.js,
   views/rewards.js, views/admin/affiliates.js): the card's Gift button, the "Send coins" sheet, the coin rain on the card,
   the gift history on Watch & Earn and the admin's Coin Gifts. Gold in both themes, darker gold on white. */
:root { --gf-gold: var(--amber); --gf-gold-soft: var(--amber-soft); }
:root[data-theme="light"] { --gf-gold: #b26a00; }
.gf-act:hover, .gf-act:focus-visible { color: var(--gf-gold); }
.gf-sum { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--gf-gold); font-weight: 700; }
.fa-sum > * + .gf-sum::before { content: "·"; margin-inline-end: 2px; color: var(--muted); font-weight: 400; }
/* five buttons on a 360px phone: a little less room around each, every one still 40px wide */
@media (max-width: 400px) {
  .fa-acts:has(.gf-act) { gap: 0; }
  .fa-acts:has(.gf-act) .fa-act { padding-inline: 5px; gap: 3px; }
}

/* the sheet (a box on computers) */
.gf { display: grid; gap: 12px; }
.gf-who { display: grid; justify-items: center; gap: 4px; text-align: center; }
.gf-who b { font-size: 16px; overflow-wrap: anywhere; }
.gf-who small { color: var(--muted); }
.avatar.gf-av { width: 56px; height: 56px; font-size: 22px; }
.gf-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gf-chip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; height: 44px; padding: 0 4px; border: 1px solid var(--border-2); border-radius: 22px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background .15s, border-color .15s; }
.gf-chip > svg { flex: none; color: var(--gf-gold); }
.gf-chip:hover:not(:disabled) { border-color: var(--gf-gold); }
.gf-chip.on { border-color: var(--gf-gold); background: var(--gf-gold-soft); box-shadow: inset 0 0 0 1px var(--gf-gold); }
.gf-chip:disabled { opacity: .45; cursor: not-allowed; }
.gf-chip:focus-visible, .gf-earn:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.input.gf-amt { font-size: 16px; text-align: center; font-variant-numeric: tabular-nums; } /* 16px: iOS doesn't zoom in */
.input.gf-amt { -moz-appearance: textfield; appearance: textfield; }
.input.gf-amt::-webkit-inner-spin-button, .input.gf-amt::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.gf-info { min-height: 20px; display: flex; justify-content: center; align-items: center; color: var(--muted); font-size: 13.5px; text-align: center; }
.gf-note { display: none; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--gf-gold-soft); color: var(--text); font-size: 13.5px; text-align: center; overflow-wrap: anywhere; }
.gf-note.on { display: block; }
.btn.gf-send { width: 100%; height: 48px; justify-content: center; font-size: 16px; }
.gf-earn { justify-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; color: var(--muted); font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; }
.gf-earn:hover { color: var(--text); }
@media (max-width: 720px) { .gf-sheet .modal-body { padding-bottom: 20px; } }

/* the thank-you on the card: a gift box pops up, coins fall */
.fd-card.gf-host { position: relative; }
.gf-rain { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.gf-box { color: var(--amber); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35)); animation: gf-box 1.5s cubic-bezier(.2, .9, .3, 1.3) forwards; }
.gf-box svg { display: block; fill: rgba(245, 179, 1, .28); }
.gf-coin { position: absolute; top: -24px; left: var(--x); width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe58a, #f5b301 55%, #c98a00); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 2px 6px rgba(0, 0, 0, .3); opacity: 0; animation: gf-fall 1.3s var(--d) cubic-bezier(.4, .1, .7, 1) forwards; }
.gf-coin:nth-child(3n) { width: 14px; height: 14px; }
@keyframes gf-box { 0% { transform: scale(.2) translateY(30px); opacity: 0; } 30% { transform: scale(1.15); opacity: 1; } 45% { transform: scale(1); } 80% { opacity: 1; } 100% { transform: scale(1.05) translateY(-24px); opacity: 0; } }
@keyframes gf-fall { 0% { top: -24px; transform: rotateY(0); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; transform: rotateY(var(--r)); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .gf-coin { display: none; }
  .gf-box { animation-duration: .9s; animation-timing-function: ease-out; }
}

/* Watch & Earn: coins in and out, the last 20 gifts */
.gf-in { color: var(--green); }
.gf-out { color: var(--red-2); }
.gf-hist { display: grid; }
.gf-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.gf-row:last-child { border-bottom: 0; }
.gf-row-ic { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gf-gold-soft); color: var(--gf-gold); }
.gf-row-tx { flex: 1; min-width: 0; }
.gf-row-tx > b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gf-row-tx a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.gf-amt-tag { flex: none; font-variant-numeric: tabular-nums; }
.gf-rev .gf-amt-tag { text-decoration: line-through; opacity: .6; }
.gf-rev-tag { color: var(--gf-gold); font-weight: 700; }

/* admin: Coin Gifts */
.gf-adm-who { gap: 8px; flex-wrap: nowrap; }
.gf-adm-item b { color: var(--text); }
tr.gf-rev > td:not(:last-child) { opacity: .6; }
.gf-neg { margin-top: 4px; color: var(--red-2); font-weight: 700; }
/* Log out at the end of the left menu (the user, 2026-10-05): a menu line like the others, in red */
.nav-item.nav-logout { width: 100%; border: 0; background: none; font: inherit; text-align: start; cursor: pointer; color: var(--red-2); }
.nav-item.nav-logout:hover { background: var(--red-soft); color: var(--red-2); }
:root[data-theme="light"] .nav-item.nav-logout { color: var(--red); }
