/* ==========================================================================
   VideoLite Design System — "Graphite & Champagne".
   Cool graphite surfaces layered by elevation, warm-neutral off-white type and
   a single champagne accent used only for emphasis (primary action, active
   state, progress, focus). No colour gradients, no glow: depth comes from
   hairlines and neutral shadow, and posters stay the brightest thing on screen.
   Logical properties (inline-start/end) everywhere so RTL/LTR both work.
   ========================================================================== */
:root {
  /* Surfaces: cool graphite, layered by elevation - never pure black, never gradients. */
  --bg: #0f1316;
  --bg-2: #141a1e;
  --surface: #181f24;
  --surface-2: #1e262c;
  --surface-3: #263038;
  --scrim: rgba(10, 13, 15, .78);
  --scrim-strong: rgba(10, 13, 15, .94);
  --line: #232c33;
  --line-strong: #34414b;

  /* Text: warm-neutral off-white, four steps of hierarchy. */
  --text: #eceff1;
  --text-2: #a9b4bc;
  --text-3: #78848d;
  --text-disabled: #5a656d;

  /* One accent: champagne. Emphasis only - never a page background. */
  --accent: #cfb484;
  --accent-hover: #e0c89c;
  --accent-press: #b0966a;
  --accent-soft: rgba(207, 180, 132, .12);
  --accent-line: rgba(207, 180, 132, .38);
  --accent-ring: rgba(207, 180, 132, .34);
  --on-accent: #14181b;

  /* Semantic states: muted for a dark UI, always paired with an icon or label. */
  --success: #5f9e7d;
  --success-text: #8fc2a6;
  --success-soft: rgba(95, 158, 125, .14);
  --warning: #d8822b;
  --warning-text: #f0ad68;
  --warning-soft: rgba(216, 130, 43, .16);
  --danger: #d2564c;
  --danger-text: #e79089;
  --danger-soft: rgba(210, 86, 76, .14);
  --info: #5b8fb9;
  --info-text: #95bad7;
  --info-soft: rgba(91, 143, 185, .14);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;
  /* Depth comes from neutral shadow + hairlines, not from colour. */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 18px rgba(0, 0, 0, .3);
  --shadow-2: 0 24px 64px rgba(0, 0, 0, .6);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --hdr-h: 64px;
  --bnav-h: 62px;
  --card-w: 168px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .16s var(--ease);
  --t-med: .28s var(--ease);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Light appearance.
   The same design, re-grounded: the surface ladder inverts so elevation still
   reads, the accent darkens just enough to stay legible on a pale background,
   and the semantic colours keep their hue but gain contrast. Only tokens are
   redefined - no component rule is duplicated, so the two appearances can
   never drift apart. Chosen explicitly by the viewer, never guessed from the
   system, which is why there is no prefers-color-scheme block here.
   ------------------------------------------------------------------------ */
[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-2: #eceef1;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --surface-3: #e6e9ed;
  --scrim: rgba(28, 33, 38, .46);
  --scrim-strong: rgba(28, 33, 38, .72);
  --line: #dfe3e8;
  --line-strong: #c3cad2;

  --text: #1b2126;
  --text-2: #4c565f;
  --text-3: #6d7881;
  --text-disabled: #97a1a9;

  --accent: #8a6d33;
  --accent-hover: #755c28;
  --accent-press: #5f4a1f;
  --accent-soft: rgba(138, 109, 51, .10);
  --accent-line: rgba(138, 109, 51, .34);
  --accent-ring: rgba(138, 109, 51, .32);
  --on-accent: #ffffff;

  --success: #2f7d55;
  --success-text: #246343;
  --success-soft: rgba(47, 125, 85, .12);
  --warning: #9a5714;
  --warning-text: #84490f;
  --warning-soft: rgba(154, 87, 20, .12);
  --danger: #b03a31;
  --danger-text: #922f27;
  --danger-soft: rgba(176, 58, 49, .10);
  --info: #2c6488;
  --info-text: #235273;
  --info-soft: rgba(44, 100, 136, .12);

  --shadow-1: 0 1px 2px rgba(23, 28, 33, .08), 0 6px 18px rgba(23, 28, 33, .07);
  --shadow-2: 0 24px 64px rgba(23, 28, 33, .16);
  color-scheme: light;
}
/* Posters and stills keep their own contrast; the scrims over them are darker
   than the page, so their text stays light in both appearances. */
[data-theme="light"] .hero, [data-theme="light"] .card-media { color: #f4f5f7; }
[dir="rtl"] { --font: "Noto Sans Arabic", "Segoe UI", "Tahoma", system-ui, -apple-system, Arial, sans-serif; }

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg, video, iframe { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: .85rem; }
.big { font-size: 1.35rem; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -60px; inset-inline-start: 12px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: var(--r-sm); z-index: 2000; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; inset-inline-start: -9999px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--accent); color: var(--on-accent); }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico-fill { fill: currentColor; stroke: none; }

/* ---------- layout ---------- */
.page { flex: 1; width: 100%; padding: calc(var(--hdr-h) + 20px) var(--gutter) 56px; }
.container { max-width: 1440px; margin-inline: auto; }
.narrow { max-width: 1100px; margin-inline: auto; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; height: var(--hdr-h); z-index: 500; transition: background var(--t-med), border-color var(--t-med); background: linear-gradient(to bottom, var(--scrim), transparent); border-bottom: 1px solid transparent; }
.hdr.scrolled, .hdr.solid { background: var(--bg); border-bottom-color: var(--line); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 18px; padding: 0 var(--gutter); max-width: 1440px; margin-inline: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; flex-shrink: 0; }
.logo img { height: 30px; }
.logo-mark { display: grid; place-items: center; flex-shrink: 0; color: var(--text); }
.logo-mark svg, .logo-mark img { display: block; }
.brand-lockup { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; font-size: .95rem; transition: color var(--t-fast), background var(--t-fast); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--accent-soft); }
.hdr-search { position: relative; margin-inline-start: auto; display: flex; align-items: center; }
.hdr-search input { width: 260px; max-width: 34vw; height: 40px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); padding: 0 40px 0 14px; border-radius: var(--r-full); transition: width var(--t-med), background var(--t-fast), border-color var(--t-fast); }
[dir="rtl"] .hdr-search input { padding: 0 14px 0 40px; }
.hdr-search input:focus { width: 340px; background: var(--surface); border-color: var(--accent); outline: none; }
.hdr-search button { position: absolute; inset-inline-end: 4px; top: 4px; width: 32px; height: 32px; border-radius: var(--r-full); background: transparent; border: 0; color: var(--text-2); display: grid; place-items: center; }
.hdr-search button:hover { color: var(--text); background: var(--surface-2); }
.search-suggest { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 340px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-2); overflow: hidden; z-index: 600; }
.search-suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; transition: background var(--t-fast); }
.search-suggest a:hover, .search-suggest a:focus { background: var(--surface-2); }
.search-suggest img { width: 36px; height: 54px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-suggest span { font-size: .92rem; }
.hdr-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r-full); background: transparent; border: 1px solid transparent; color: var(--text-2); transition: background var(--t-fast), color var(--t-fast); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .badge { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-full); background: var(--accent); color: var(--on-accent); font-size: .65rem; font-weight: 700; display: grid; place-items: center; }
.lang-btn { font-weight: 700; font-size: .8rem; letter-spacing: .04em; }
.profile-menu { position: relative; }
.profile-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px; border-radius: var(--r-full); background: transparent; border: 1px solid transparent; transition: background var(--t-fast); }
.profile-btn:hover { background: var(--surface-2); }
.profile-name { font-size: .9rem; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 220px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 6px; z-index: 600; animation: pop .16s var(--ease); }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; padding: 10px 12px; border-radius: var(--r-sm); background: transparent; border: 0; color: var(--text-2); font-size: .92rem; transition: background var(--t-fast), color var(--t-fast); }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); }
.dropdown .dd-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.dropdown .dd-head strong { display: block; font-size: .95rem; }
.dropdown .dd-head span { font-size: .78rem; color: var(--text-3); }
.dropdown hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.hdr .btn { height: 38px; padding-inline: 16px; }
.mobile-only { display: none !important; }

/* mobile drawer + bottom nav */
.drawer-backdrop { position: fixed; inset: 0; background: var(--scrim); z-index: 700; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(84vw, 340px); background: var(--bg-2); border-inline-start: 1px solid var(--line); z-index: 710; padding: 16px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; transform: translateX(0); animation: slide-in .24s var(--ease); }
[dir="rtl"] .drawer { animation-name: slide-in-rtl; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer a, .drawer button.link { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: var(--r-sm); color: var(--text-2); font-size: 1rem; background: transparent; border: 0; width: 100%; text-align: start; min-height: 46px; }
.drawer a:hover, .drawer a.active { background: var(--accent-soft); color: var(--text); }
.drawer .drawer-sec { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); padding: 14px 12px 4px; }
.drawer form { margin: 0; }
.drawer .profile-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border-radius: var(--r-md); margin-bottom: 8px; }
.bnav { display: none; position: fixed; inset: auto 0 0 0; height: calc(var(--bnav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg-2); border-top: 1px solid var(--line); z-index: 500; }
.bnav a, .bnav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: .68rem; font-weight: 500; background: transparent; border: 0; min-height: 44px; padding: 6px 2px; }
.bnav .ico { width: 22px; height: 22px; }
.bnav a.active, .bnav a:hover { color: var(--accent); }
.bnav .avatar { width: 22px; height: 22px; font-size: .65rem; border-radius: 7px; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slide-in-rtl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- avatars ---------- */
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 700; color: var(--text); background: var(--surface-3); text-transform: uppercase; flex-shrink: 0; }
.avatar-sm { width: 32px; height: 32px; font-size: .85rem; border-radius: 10px; }
.avatar-lg { width: 112px; height: 112px; font-size: 2.6rem; border-radius: 24px; }
.avatar-avatar1 { background: #7c6a55; }
.avatar-avatar2 { background: #4f6273; }
.avatar-avatar3 { background: #566b60; }
.avatar-avatar4 { background: #8a5d4a; }
.avatar-avatar5 { background: #5d5a6b; }
.avatar-avatar6 { background: #46606b; }
.avatar-avatar7 { background: #4d6b66; }
.avatar-avatar8 { background: #5b6068; }
.avatar-add { background: transparent; border: 2px dashed var(--line-strong); color: var(--text-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: .95rem; white-space: nowrap; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast); user-select: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--surface-3); border-color: var(--accent-line); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-soft { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.btn-soft:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-danger { background: transparent; color: var(--danger-text); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger-text); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1.05rem; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--text-disabled); border-color: var(--line); cursor: not-allowed; box-shadow: none; }
input[disabled], select[disabled], textarea[disabled], .is-disabled { color: var(--text-disabled); background: var(--surface); border-color: var(--line); cursor: not-allowed; }
::placeholder { color: var(--text-3); opacity: 1; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--text); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- alerts / tags / toasts ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 18px; border: 1px solid; font-size: .93rem; }
.alert a { text-decoration: underline; }
.alert-error { background: var(--danger-soft); border-color: var(--danger); color: var(--danger-text); }
.alert-success { background: var(--success-soft); border-color: var(--success); color: var(--success-text); }
.alert-warning { background: var(--warning-soft); border-color: var(--warning); color: var(--warning-text); }
.alert-info { background: var(--info-soft); border-color: var(--info); color: var(--info-text); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-full); font-size: .74rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); vertical-align: middle; line-height: 1.3; }
.tag-success, .tag-active, .tag-premium, .tag-available { background: var(--success-soft); color: var(--success-text); }
.tag-warning, .tag-expiring, .tag-suspended, .tag-disabled { background: var(--warning-soft); color: var(--warning-text); }
.tag-danger, .tag-expired, .tag-banned, .tag-cancelled, .tag-unavailable, .tag-error { background: var(--danger-soft); color: var(--danger-text); }
.tag-info, .tag-unused { background: var(--info-soft); color: var(--info-text); }
.tag-accent { background: var(--accent-soft); color: var(--accent); }
.toast-container { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); inset-inline-end: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 900; max-width: min(360px, calc(100vw - 40px)); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-2); animation: fade-up .2s var(--ease); font-size: .92rem; }
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.toast-error::before { background: var(--danger); }
.toast-success::before { background: var(--success); }

/* ---------- forms ---------- */
.form label { display: block; font-size: .85rem; font-weight: 500; color: var(--text-2); margin: 14px 0 6px; }
.form label.checkbox { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 400; cursor: pointer; }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea, .input { width: 100%; height: 46px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); padding: 0 14px; border-radius: var(--r-sm); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.form textarea { height: auto; padding: 12px 14px; }
.form input:focus, .form select:focus, .form textarea:focus, .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); outline: none; }
.form input[type="checkbox"], .form input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.form .btn { margin-top: 20px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-hint { font-size: .8rem; color: var(--text-3); margin-top: 6px; }
.key-input { letter-spacing: 4px; text-transform: uppercase; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; text-align: center; font-size: 1.1rem; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.input-xs { width: 84px !important; height: 36px !important; padding: 0 8px !important; }
.input-sm { width: 150px !important; }

/* auth */
.auth-page .page { display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px 32px; box-shadow: var(--shadow-2); animation: fade-up .3s var(--ease); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .lead { color: var(--text-2); margin-bottom: 20px; }
/* ---------- phone pairing page (/pair) ---------- */
.tv-pair-card { max-width: 560px; }
.pair-steps { margin: 18px 0 6px; padding-inline-start: 22px; color: var(--text-2); font-size: .92rem; line-height: 1.7; }
.pair-steps li { margin-bottom: 4px; }
.pair-code-label { text-align: center; margin-top: 18px !important; }
.pair-form .btn { margin-top: 22px; }
.pair-help { text-align: center; margin-top: 14px; }

/* ---------- six-digit pairing code ----------
   Always one horizontal row, in every width and in both text directions.
   The boxes shrink through clamp() rather than ever wrapping to a second
   line, and the row is forced LTR because a numeric code reads left to right
   even on an Arabic page. */
.code-input {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 2vw, 12px);
  direction: ltr;
  margin: 10px 0 4px;
}
.form .code-input input[type="text"],
.code-input input {
  width: clamp(44px, 12vw, 72px);
  height: clamp(56px, 15vw, 88px);
  flex: 0 1 auto;
  min-width: 0;
  padding: 0;
  text-align: center;
  font-size: clamp(1.4rem, 5.5vw, 2.2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  caret-color: var(--accent);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.form .code-input input:focus, .code-input input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  transform: scale(1.04);
  outline: none;
}
.code-input input.is-filled { border-color: var(--accent-line); background: var(--surface-3); }

.auth-links { margin-top: 16px; color: var(--text-2); font-size: .9rem; text-align: center; }
.auth-links a { color: var(--accent); font-weight: 500; }

/* ---------- hero carousel ---------- */
.hero { position: relative; margin: calc(-1 * var(--hdr-h) - 20px) calc(-1 * var(--gutter)) 36px; height: min(78vh, 720px); min-height: 460px; overflow: hidden; background: var(--bg-2); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 20%; transform: scale(1.04); transition: transform 8s linear; }
.hero-slide.active .hero-bg { transform: scale(1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, var(--scrim) 38%, rgba(10, 13, 15, .2) 72%, rgba(10, 13, 15, .4) 100%), linear-gradient(to right, var(--scrim-strong) 0%, rgba(10, 13, 15, .45) 48%, transparent 78%); }
[dir="rtl"] .hero-bg::after { background: linear-gradient(to top, var(--bg) 0%, var(--scrim) 38%, rgba(10, 13, 15, .2) 72%, rgba(10, 13, 15, .4) 100%), linear-gradient(to left, var(--scrim-strong) 0%, rgba(10, 13, 15, .45) 48%, transparent 78%); }
.hero-body { position: absolute; inset-inline-start: var(--gutter); inset-inline-end: var(--gutter); bottom: 64px; max-width: 620px; animation: fade-up .5s var(--ease); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.hero-title { font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.05; margin-bottom: 12px; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--text-2); font-size: .92rem; margin-bottom: 14px; }
.hero-meta .meta-rating { font-size: .95rem; }
.hero-desc { color: var(--text-2); font-size: 1.02rem; max-width: 560px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-nav { position: absolute; bottom: 22px; inset-inline-end: var(--gutter); display: flex; align-items: center; gap: 14px; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots button { width: 24px; height: 4px; border-radius: var(--r-full); background: var(--line-strong); border: 0; padding: 0; transition: background var(--t-fast), width var(--t-fast); }
.hero-dots button.active { background: var(--accent); width: 36px; }
.hero-arrow { width: 40px; height: 40px; border-radius: var(--r-full); background: var(--scrim); border: 1px solid var(--line-strong); color: var(--text); display: grid; place-items: center; }
.hero-arrow:hover { background: var(--surface-3); }
.hero-plain { display: grid; place-items: center; text-align: center; background: var(--bg-2); border-bottom: 1px solid var(--line); min-height: 420px; height: auto; padding: 120px var(--gutter) 60px; }
.hero-plain .hero-body { position: static; max-width: 720px; margin-inline: auto; }
.hero-plain .hero-actions { justify-content: center; }

/* ---------- sections / rows / cards ---------- */
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 3px; height: 18px; border-radius: 2px; background: var(--accent); }
.section-more { color: var(--text-2); font-size: .88rem; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.section-more:hover { color: var(--accent); }
.row-scroller { position: relative; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.row-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 0 12px; scrollbar-width: none; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
.row-track::-webkit-scrollbar { display: none; }
.row-arrow { position: absolute; top: 6px; bottom: 12px; width: 48px; background: linear-gradient(to right, var(--bg), transparent); border: 0; color: var(--text); font-size: 0; cursor: pointer; z-index: 2; opacity: 0; transition: opacity var(--t-fast); display: grid; place-items: center; }
.row-arrow .ico { width: 28px; height: 28px; background: rgba(20, 20, 32, .85); border-radius: 50%; padding: 4px; border: 1px solid var(--line-strong); }
.row-arrow.row-prev { inset-inline-start: 0; }
.row-arrow.row-next { inset-inline-end: 0; background: linear-gradient(to left, var(--bg), transparent); }
[dir="rtl"] .row-arrow.row-prev { background: linear-gradient(to left, var(--bg), transparent); }
[dir="rtl"] .row-arrow.row-next { background: linear-gradient(to right, var(--bg), transparent); }
.row-scroller:hover .row-arrow, .row-arrow:focus-visible { opacity: 1; }
.card { position: relative; flex: 0 0 var(--card-w); width: var(--card-w); scroll-snap-align: start; border-radius: var(--r-md); transition: transform var(--t-med); }
.card:hover { transform: translateY(-4px); }
.card:hover .card-poster { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.card-poster { position: relative; aspect-ratio: 2 / 3; background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.card-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.card:hover .card-poster img { transform: scale(1.04); }
.card-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--scrim), transparent 45%); opacity: 0; transition: opacity var(--t-fast); }
.card:hover .card-poster::after { opacity: 1; }
.poster-placeholder, .cast-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; color: var(--text-3); background: var(--surface-2); }
.card-badge { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--scrim-strong); border: 1px solid var(--line-strong); color: var(--success-text); font-size: .66rem; font-weight: 700; padding: 3px 8px; border-radius: var(--r-full); z-index: 1; }
.card-label { position: absolute; bottom: 10px; inset-inline-start: 8px; background: var(--scrim-strong); color: var(--text); font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; z-index: 1; }
.card-play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text); opacity: 0; transition: opacity var(--t-fast); z-index: 1; }
.card-play .ico { width: 48px; height: 48px; padding: 13px; background: var(--scrim-strong); border: 1px solid var(--line-strong); color: var(--text); border-radius: 50%; }
.card:hover .card-play, .card:focus-within .card-play { opacity: 1; }
.card-meta { display: flex; flex-direction: column; gap: 2px; padding: 10px 2px 0; }
.card-title { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { color: var(--text-3); font-size: .76rem; display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
/* one metadata component: star and value can never split, the line truncates instead of wrapping */
.card-sub > span, .meta-rating, .meta-year, .meta-type { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; line-height: 1.2; }
.card-sub .meta-type { flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.meta-rating { color: var(--warning-text); font-weight: 600; }
.meta-rating .ico { width: 1em; height: 1em; }
.meta-sep { color: var(--text-disabled); flex-shrink: 0; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--surface-3); z-index: 1; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 0 2px 2px 0; }
.progress-inline { position: relative; height: 6px; border-radius: 3px; overflow: hidden; background: var(--surface-3); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr)); gap: 18px 14px; }
.grid .card { width: auto; flex: none; }

/* continue watching: the standard card plus a progress bar and a remove button */
.card-wrap { position: relative; flex: 0 0 var(--card-w); width: var(--card-w); scroll-snap-align: start; }
.card-wrap > .card { flex: none; width: 100%; }
.grid .card-wrap { width: auto; flex: none; }
.cw-remove { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: var(--scrim); border: 1px solid var(--line-strong); color: var(--text); display: grid; place-items: center; opacity: 0; transition: opacity var(--t-fast); }
.card-wrap:hover .cw-remove, .card-wrap:focus-within .cw-remove, .cw-remove:focus-visible { opacity: 1; }
.cw-remove .ico { width: 14px; height: 14px; }
@media (hover: none) { .cw-remove { opacity: 1; } }
.watch-progress { height: 6px; background: var(--surface-3); border-radius: 0 0 var(--r-md) var(--r-md); overflow: hidden; }

/* last watched banner */
.last-watched { display: grid; grid-template-columns: 1fr; border-radius: var(--r-lg); overflow: hidden; position: relative; min-height: 200px; border: 1px solid var(--line); }
.lw-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lw-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, var(--scrim-strong) 30%, rgba(10, 13, 15, .6)); }
[dir="rtl"] .lw-bg::after { background: linear-gradient(to left, var(--scrim-strong) 30%, rgba(10, 13, 15, .6)); }
.lw-body { position: relative; padding: 28px; display: flex; flex-direction: column; gap: 8px; justify-content: center; max-width: 640px; }
.lw-body strong { font-size: 1.45rem; }
.lw-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* genre chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--line-strong); font-size: .88rem; font-weight: 500; color: var(--text-2); transition: all var(--t-fast); }
.chip:hover, .chip.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

/* cta */
.cta { text-align: center; padding: 56px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.cta .btn { margin: 4px; }

/* ---------- detail page ---------- */
.detail-hero { position: relative; margin: calc(-1 * var(--hdr-h) - 20px) calc(-1 * var(--gutter)) 0; min-height: 520px; background-size: cover; background-position: center 15%; background-color: var(--bg-2); }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, var(--scrim-strong) 32%, rgba(10, 13, 15, .4) 66%, rgba(10, 13, 15, .55) 100%); }
.detail-wrap { position: relative; z-index: 1; max-width: 1440px; margin: 0 auto; padding: calc(var(--hdr-h) + 48px) var(--gutter) 32px; display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: end; }
.detail-poster { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line-strong); aspect-ratio: 2 / 3; background: var(--surface); }
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { min-width: 0; }
.detail-title { font-size: clamp(1.7rem, 3.4vw, 2.8rem); margin-bottom: 8px; }
.detail-title .year { color: var(--text-3); font-weight: 400; }
.tagline { font-style: italic; color: var(--text-2); margin-bottom: 10px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--text-2); font-size: .92rem; margin-bottom: 14px; }
.detail-meta .meta-rating { font-weight: 700; }
.detail-meta > span, .hero-meta > span, .episode-meta > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.detail-genres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 16px; }
.availability { margin-bottom: 12px; }
.detail-progress { max-width: 460px; margin-bottom: 14px; }
.detail-progress .progress-inline { margin-top: 6px; }
.detail-content { padding-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
.overview { color: var(--text-2); max-width: 820px; font-size: 1rem; }
.cast-list { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.cast-list::-webkit-scrollbar { display: none; }
.cast-item { flex: 0 0 110px; font-size: .84rem; display: flex; flex-direction: column; gap: 4px; }
.cast-item img, .cast-placeholder { border-radius: var(--r-sm); aspect-ratio: 2 / 3; object-fit: cover; width: 100%; font-size: 1.5rem; }
.cast-item strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; display: grid; gap: 12px; align-content: start; }
.facts div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.facts div:last-child { border: 0; padding: 0; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; text-align: end; }

/* episodes */
.season-select { display: inline-flex; align-items: center; gap: 8px; }
.season-select select, .select { height: 40px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); padding: 0 36px 0 14px; border-radius: var(--r-sm); appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23b4b4c6' stroke-width='1.8'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
[dir="rtl"] .season-select select, [dir="rtl"] .select { padding: 0 14px 0 36px; background-position: left 12px center; }
.episode-list { display: grid; gap: 12px; }
.episode-card { display: grid; grid-template-columns: 220px 1fr; gap: 16px; background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); transition: border-color var(--t-fast), background var(--t-fast); }
.episode-card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.episode-card.is-current { border-color: var(--accent); }
.episode-still { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); }
.episode-still img { width: 100%; height: 100%; object-fit: cover; }
.episode-still .ep-num { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--scrim); font-weight: 700; font-size: .78rem; padding: 3px 8px; border-radius: 6px; }
.episode-body { padding: 14px 16px 14px 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
[dir="rtl"] .episode-body { padding: 14px 0 14px 16px; }
.episode-body h3 { margin: 0; font-size: 1rem; }
.episode-meta { font-size: .8rem; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.episode-overview { color: var(--text-2); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.episode-body .btn { align-self: flex-start; margin-top: auto; }

/* ---------- player page ---------- */
.watch-page .page { padding-top: var(--hdr-h); }
.watch-page .hdr { background: var(--bg); border-bottom-color: var(--line); }
.player-page { position: relative; }
.player-backdrop { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center; filter: blur(40px) brightness(.25) saturate(1.2); transform: scale(1.1); opacity: .7; }
.player-top { display: flex; align-items: center; gap: 12px; padding: 14px 0 10px; flex-wrap: wrap; }
.player-crumb { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: .85rem; min-width: 0; flex: 1; }
.player-crumb a { color: var(--text-2); }
.player-crumb a:hover { color: var(--text); }
.player-crumb .sep { opacity: .5; }
.player-crumb strong { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-stage { max-width: 1280px; margin: 0 auto; }
.player-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2), 0 0 0 1px var(--line-strong); }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-under { max-width: 1280px; margin: 18px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
.player-info h1 { font-size: 1.45rem; margin-bottom: 6px; }
.player-info .ep-line { color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.player-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.player-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.player-panel h3 { font-size: .95rem; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.ep-nav { display: flex; gap: 8px; margin-bottom: 14px; }
.ep-nav .btn { flex: 1; }
.ep-mini-list { display: grid; gap: 6px; max-height: 420px; overflow-y: auto; padding-inline-end: 4px; }
.ep-mini { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 6px; border-radius: var(--r-sm); border: 1px solid transparent; transition: background var(--t-fast); align-items: center; }
.ep-mini:hover { background: var(--surface-2); }
.ep-mini.is-current { background: var(--accent-soft); border-color: var(--accent-line); }
.ep-mini .thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.ep-mini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-mini .t { font-size: .84rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-mini .s { font-size: .74rem; color: var(--text-3); }
.next-episode { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); inset-inline-end: 24px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-2); z-index: 800; max-width: 360px; animation: fade-up .3s var(--ease); }
.next-episode h3 { font-size: .9rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.next-episode p { margin-bottom: 10px; }

/* ---------- profiles ---------- */
.profiles-page .page { display: grid; place-items: center; text-align: center; }
.profiles { width: 100%; max-width: 960px; animation: fade-up .3s var(--ease); }
.profile-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 24px; margin: 28px 0; }
.profile-tile-form { display: contents; }
.profile-tile { display: flex; flex-direction: column; align-items: center; gap: 12px; background: transparent; border: 0; color: var(--text-2); position: relative; transition: color var(--t-fast); width: 128px; }
.profile-tile:hover, .profile-tile:focus-visible { color: var(--text); }
.profile-tile .avatar { transition: transform var(--t-med), box-shadow var(--t-med); }
.profile-tile:hover .avatar { transform: scale(1.06); box-shadow: 0 0 0 3px var(--text), var(--shadow-2); }
.profile-tile-name { font-size: .98rem; font-weight: 500; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-edit-icon { position: absolute; top: 6px; inset-inline-end: 12px; background: rgba(10, 10, 18, .75); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; }
.profile-form { max-width: 480px; margin: 0 auto; text-align: start; }
.avatar-picker { border: 0; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.avatar-picker legend { color: var(--text-2); font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
.avatar-option input { position: absolute; opacity: 0; }
.avatar-option .avatar { width: 54px; height: 54px; cursor: pointer; opacity: .55; transition: all var(--t-fast); }
.avatar-option input:checked + .avatar, .avatar-option:hover .avatar { opacity: 1; }
.avatar-option input:checked + .avatar { box-shadow: 0 0 0 3px var(--text); }

/* ---------- account / panels / tables ---------- */
.account { max-width: 1100px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-bottom: 32px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.panel h2 { font-size: 1.05rem; margin-bottom: 14px; }
.panel .btn { margin-inline-end: 6px; margin-top: 8px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 12px; font-size: .92rem; }
.dl dt { color: var(--text-3); } .dl dd { margin: 0; }
.list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.list-item { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; transition: border-color var(--t-fast); }
.list-item:hover { border-color: var(--line-strong); }
.list-item.unread { border-color: var(--accent-line); background: var(--accent-soft); }
.list-icon { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--surface-2); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.list-body { flex: 1; min-width: 0; }
.list-thumb img { border-radius: 6px; width: 46px; height: 69px; object-fit: cover; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 20px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: start; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table thead th { color: var(--text-3); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; background: var(--surface); position: sticky; top: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.tabs { display: flex; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 16px; color: var(--text-2); border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; margin-bottom: -1px; }
.tabs a.active { color: var(--text); border-color: var(--accent); }
.plan-features { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; font-size: .92rem; }
.plan-features li { display: flex; gap: 8px; align-items: center; }
.plan-features li::before { content: "✓"; color: var(--success); font-weight: 800; }
.pricing { text-align: center; max-width: 1100px; margin-inline: auto; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 30px; text-align: start; }
.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; position: relative; transition: transform var(--t-med), border-color var(--t-med); }
.plan-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.plan-card .btn { margin-top: auto; }
.plan-price { font-size: 2.1rem; font-weight: 800; margin: 6px 0 0; letter-spacing: -.02em; }
.plan-price span { font-size: .95rem; color: var(--text-3); font-weight: 500; }
.plan-period { color: var(--text-3); margin-bottom: 10px; }
.search-head { margin-bottom: 18px; }
.search-head h1 { margin: 0 0 4px; }
.search-sub { color: var(--text-3); margin: 0; }
.search-sub strong { color: var(--text); font-weight: 600; }
.search-bar { position: relative; display: flex; gap: 10px; margin-bottom: 16px; max-width: 760px; }
.search-field { position: relative; flex: 1; min-width: 0; }
.search-field input { width: 100%; padding-inline-start: 42px; height: 46px; }
.search-field-ico { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; display: grid; }
.search-field-ico .ico { width: 18px; height: 18px; }
.search-bar .btn { height: 46px; flex-shrink: 0; }
.search-bar .search-suggest { inset-inline-start: 0; inset-inline-end: auto; width: min(420px, 100%); }
.seg { display: flex; gap: 6px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full); width: fit-content; max-width: 100%; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--r-full); font-size: .88rem; font-weight: 600; color: var(--text-2); white-space: nowrap; transition: background var(--t-fast), color var(--t-fast); }
.seg a .ico { width: 16px; height: 16px; }
.seg a:hover { color: var(--text); }
.seg a.active { background: var(--accent); color: var(--on-accent); }
.search-genres { margin-bottom: 22px; }
.empty-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.search-suggest .sug-note { display: block; padding: 12px; font-size: .86rem; color: var(--text-3); text-align: center; }
.sug-skel { display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
.sug-skel i { display: block; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sug-shimmer 1.1s linear infinite; border-radius: 4px; }
.sug-skel i:first-child { width: 36px; height: 54px; flex-shrink: 0; }
.sug-skel i:last-child { height: 12px; flex: 1; }
@keyframes sug-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px 0; color: var(--text-3); flex-wrap: wrap; }
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state .ico { width: 56px; height: 56px; color: var(--text-3); opacity: .7; }
.empty-state h1, .empty-state h2 { color: var(--text); margin: 0; }
.empty-state .btn { margin-top: 10px; }
.error-code { font-size: 5rem; font-weight: 900; margin: 0; color: var(--text-3); line-height: 1; letter-spacing: -.03em; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: var(--scrim-strong); display: grid; place-items: center; z-index: 950; padding: 16px; }
.modal { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 26px; max-width: 440px; width: 100%; box-shadow: var(--shadow-2); animation: fade-up .2s var(--ease); }
.modal h3 { margin-bottom: 8px; }
.modal p { color: var(--text-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* skeletons */
.skeleton { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--r-md); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--surface-2), transparent); animation: shimmer 1.3s infinite; }
.sk-poster { aspect-ratio: 2 / 3; }
.sk-line { height: 12px; border-radius: 6px; margin-top: 8px; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- footer ---------- */
.ftr { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px var(--gutter) calc(22px + env(safe-area-inset-bottom)); color: var(--text-2); }
.ftr-in { max-width: 1440px; margin-inline: auto; display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(120px, 1fr)); gap: 28px 32px; }
.ftr-lean { padding-block: 32px calc(20px + env(safe-area-inset-bottom)); }
.ftr-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2px; }
.ftr-social a { font-size: .84rem; color: var(--text-2); }
.ftr-social a:hover { color: var(--accent); }
.ftr-brand { display: flex; flex-direction: column; gap: 10px; }
.ftr-brand .logo { font-size: 1.05rem; }
.ftr-brand p { margin: 0; font-size: .86rem; color: var(--text-3); max-width: 34ch; line-height: 1.6; }
.ftr-col { display: flex; flex-direction: column; gap: 8px; }
.ftr-col h2 { margin: 0 0 2px; font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-disabled); }
.ftr-col a { font-size: .87rem; color: var(--text-2); transition: color var(--t-fast); }
.ftr-col a:hover { color: var(--accent); }
.ftr-bottom { max-width: 1440px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--text-disabled); }

/* static content page */
.prose { max-width: 800px; }
.prose h2 { margin-top: 28px; }
.prose p, .prose li { color: var(--text-2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   Rebuild additions: minimal auth layout, landing page, settings, devices,
   tabs, tickets
   ========================================================================== */
/* minimal full-screen pages */
body.minimal { display: block; min-height: 100vh; }
.minimal-bg { position: fixed; inset: 0; z-index: -1; background: var(--bg); }
.minimal-main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px var(--gutter); gap: 18px; }
.minimal-logo { font-size: 1.4rem; }
.minimal-alert { width: 100%; max-width: 460px; margin: 0; }
.auth-min-card { max-width: 460px; }
.minimal-foot { display: flex; gap: 10px; align-items: center; color: var(--text-3); font-size: .82rem; flex-wrap: wrap; justify-content: center; }
.minimal-foot a { color: var(--text-2); }
.link { color: var(--accent); font-weight: 500; }
.link-btn { background: transparent; border: 0; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: var(--r-xs); }
.link-btn:hover { color: var(--text); }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 4px; flex-wrap: wrap; }
.form-row .checkbox { margin: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.steps-mini { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 6px; counter-reset: s; }
.steps-mini li { flex: 1; text-align: center; font-size: .74rem; color: var(--text-3); padding: 8px 4px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line); counter-increment: s; }
.steps-mini li::before { content: counter(s) ". "; }
.steps-mini li.active { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.steps-mini li.done { color: var(--success); }
.account-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 18px; }
.account-chip > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.account-chip strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.activation-plans { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.plan-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* profile picker */
.picker-page .minimal-main { justify-content: center; text-align: center; }
.picker { width: 100%; max-width: 980px; animation: fade-up .3s var(--ease); }
.picker h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 8px; }
.picker-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.picker .profile-form { text-align: start; }

/* landing */
.landing .page { padding-top: var(--hdr-h); }
.hdr-spacer { margin-inline-start: auto; }
.lp-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - var(--hdr-h)); padding: 40px 0; }
.lp-hero h1 { font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.025em; margin: 10px 0 16px; color: var(--text); }
.lp-lead { font-size: 1.1rem; color: var(--text-2); max-width: 560px; margin-bottom: 26px; }
.lp-have-account { margin-top: 16px; }
.lp-art { position: relative; aspect-ratio: 16 / 11; }
.lp-screen { position: absolute; inset: 0 8% 14% 0; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow-2); overflow: hidden; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg); }
.lp-screen-bar { height: 34px; display: flex; gap: 6px; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); }
.lp-screen-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); }
.lp-screen-bar span:first-child { background: var(--accent); }
.lp-screen-body { position: relative; padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; height: calc(100% - 34px); align-content: start; }
.lp-tile { border-radius: 10px; aspect-ratio: 2 / 3; background: var(--surface-3); border: 1px solid var(--line); }
.lp-tile-a { background: #2b343b; } .lp-tile-b { background: #3a3630; }
.lp-tile-c { background: #222c33; } .lp-tile-d { background: #423a2d; }
.lp-tile-e { background: #2a332e; } .lp-tile-f { background: #2e353c; }
.lp-tile-g { background: #2b343b; aspect-ratio: 16 / 9; } .lp-tile-h { background: #3a3630; aspect-ratio: 16 / 9; }

.lp-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--on-accent); }
.lp-play .ico { width: 34px; height: 34px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.lp-progress { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; align-self: end; }
.lp-progress span { display: block; height: 100%; width: 62%; background: var(--accent); animation: grow 5s linear infinite; }
@keyframes grow { from { width: 10%; } to { width: 90%; } }
.lp-phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 26%; aspect-ratio: 9 / 18; background: #0c0c16; border: 2px solid var(--line-strong); border-radius: 22px; padding: 10px 8px; box-shadow: var(--shadow-2); transform: rotate(6deg); }
.lp-phone-screen { height: 100%; border-radius: 14px; background: var(--surface); padding: 10px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.lp-section { padding: 56px 0; border-top: 1px solid var(--line); }
.lp-section-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.lp-section-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lp-feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; transition: transform var(--t-med), border-color var(--t-med); }
.lp-feature:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.lp-feature-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.lp-feature-ico .ico { width: 22px; height: 22px; }
.lp-feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.lp-feature p { color: var(--text-2); font-size: .92rem; margin: 0; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-steps li { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.lp-step-n { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.lp-steps h3 { font-size: 1.05rem; }
.lp-steps p { color: var(--text-2); font-size: .92rem; margin: 0; }
.lp-plans .plan-card { text-align: start; }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-2); }
.plan-badge { position: absolute; top: -12px; inset-inline-start: 20px; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); }
.lp-plans-note { text-align: center; margin-top: 16px; }
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 18px; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-item summary .ico { transition: transform var(--t-fast); color: var(--text-3); }
.faq-item p { color: var(--text-2); padding-bottom: 16px; margin: 0; }
.lp-cta { margin: 20px 0 10px; }

/* settings */
.settings-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1200px; }
.settings-nav { position: sticky; top: calc(var(--hdr-h) + 16px); display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-2); font-size: .92rem; }
.settings-nav a:hover { background: var(--surface-2); color: var(--text); }
.settings-nav a .ico { flex: none; width: 18px; height: 18px; color: var(--text-3); }
.settings-nav a.is-active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.settings-nav a.is-active .ico { color: var(--accent); }
.settings-nav-list { display: flex; flex-direction: column; gap: 2px; }
/* TV mode leaves the account area, so it reads as a destination, not a tab. */
.settings-tv { margin-bottom: 8px; padding: 12px !important; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--text) !important; font-weight: 600; }
.settings-tv .ico:first-child { color: var(--accent) !important; width: 20px !important; height: 20px !important; }
.settings-tv span { flex: 1; }
.settings-tv .ico:last-child { width: 16px !important; height: 16px !important; }
.settings-content { display: grid; gap: 16px; align-content: start; }
.settings-head h1 { margin: 0 0 4px; }
.settings-head p { margin: 0; font-size: .9rem; }
.settings-sec { scroll-margin-top: calc(var(--hdr-h) + 16px); }
.settings-sec h2 { display: flex; align-items: center; gap: 10px; }
.settings-sec h2 .ico { color: var(--accent); }
.settings-content .panel-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; }
.settings-content .panel-head h2 .ico { color: var(--accent); width: 18px; height: 18px; }
.form-inline { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.form-inline input { flex: 1 1 220px; }
.profiles-manage .profile-grid { justify-content: flex-start; }
.ticket-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

/* device allowance ------------------------------------------------------- */
.usage { display: grid; gap: 8px; margin-bottom: 14px; }
.usage-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.usage-label { font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.usage-count { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.usage-bar { height: 10px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.usage-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width var(--t-mid, .25s) ease; }
.usage-bar.is-full > span { background: var(--danger); }
.usage-note { margin: 0; font-size: .86rem; color: var(--text-2); }
.usage-bar.is-full ~ .usage-note { color: var(--danger-text); }
.mini-avatars { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.list.compact .list-item { padding: 10px 12px; }

/* subscription */
.sub-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; margin-bottom: 32px; }
.sub-plan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sub-dates { display: flex; gap: 20px; flex-wrap: wrap; margin: 12px 0 6px; color: var(--text-2); font-size: .9rem; }
.sub-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); color: inherit; transition: border-color var(--t-fast); }
a.stat-tile:hover { border-color: var(--accent); }
.stat-v { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.stat-v .ico { color: var(--success); }
.stat-l { font-size: .78rem; color: var(--text-3); }

/* device change cooldown: the bar carries the progress, the sentence carries the
   number. No percentage is printed - it is only ever used to size the fill. */
.cooldown { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cooldown-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cooldown-label { font-size: .86rem; color: var(--text-2); }
.cooldown-time { font-size: .95rem; font-weight: 700; }
.cooldown.is-waiting .cooldown-time { color: var(--accent); }
.cooldown.is-ready .cooldown-time { color: var(--success); }
.cooldown-bar > span { background: var(--accent); }
.cooldown.is-ready .cooldown-bar > span { background: var(--success); }
@media (prefers-reduced-motion: reduce) { .cooldown-bar > span { transition: none; } }

/* devices */
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 32px; }
.device-card { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.device-card.is-current { border-color: var(--accent-line); }
.device-top { display: flex; align-items: center; gap: 12px; }
.device-title { min-width: 0; flex: 1; }
.device-title h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.device-badge { flex: none; }
.device-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
/* The reason comes before the button it explains, so the card reads
   "Available in 1 day  [Remove]" rather than leaving a dead control
   unexplained. order keeps the markup order (button first) intact for
   anything that ignores CSS. */
.device-wait { order: -1; margin-inline-end: auto; }
.device-ico { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.device-ico .ico { width: 24px; height: 24px; }
.device-body h3 { font-size: 1rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dl-compact { font-size: .84rem; gap: 4px 12px; margin: 0; }

/* tabs (detail pages) */
.tabs-lg { margin: 28px 0 0; gap: 0; }
.tabs-lg button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 12px 18px; color: var(--text-2); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; margin-bottom: -1px; white-space: nowrap; }
.tabs-lg button.active { color: var(--text); border-color: var(--accent); }
.tabs-lg button:hover { color: var(--text); }
.episode-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }

/* tickets */
.tag-report-open { background: var(--info-soft); color: var(--info-text); }
.tag-report-in_progress { background: var(--warning-soft); color: var(--warning-text); }
.tag-report-resolved { background: var(--success-soft); color: var(--success-text); }
.tag-report-closed { background: var(--surface-2); color: var(--text-2); }
.thread { display: grid; gap: 10px; margin: 18px 0 20px; }
.msg { padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); max-width: 760px; }
.msg-admin { border-color: var(--accent-line); background: var(--accent-soft); }
.msg-internal { border-style: dashed; border-color: var(--warning); background: var(--warning-soft); }
.msg-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.msg p { margin: 0; white-space: pre-wrap; }
.modal-wide { max-width: 520px; }
a.list-item { color: inherit; }

/* ---------- admin: site content rows ---------- */
.cms-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.cms-row:first-child { border-top: 0; }
.cms-row-n { display: grid; place-items: start center; font-weight: 800; color: var(--text-3); padding-top: 24px; }
.cms-row-n input { width: 48px; text-align: center; padding: 6px 4px; }
.cms-row .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.cms-row .cms-wide { grid-column: 1 / -1; }
@media (max-width: 720px) { .cms-row .form-grid { grid-template-columns: 1fr; } }
