/* IPN TV — shared foundation: fonts, tokens, logo, buttons, LIVE pill */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap; src: url(../fonts/vazirmatn-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap; src: url(../fonts/vazirmatn-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap; src: url(../fonts/vazirmatn-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 800; font-display: swap; src: url(../fonts/vazirmatn-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --red: #E11D2E; --red-2: #FF3346; --red-deep: #9B0D1B;
  --gold: #E8B84A; --gold-2: #F7D98B; --gold-deep: #9C6B12;
  --blue: #2F6BFF;
  --font: "Inter", "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Condensed", "Vazirmatn", "Inter", system-ui, sans-serif;
  --radius: 14px; --radius-lg: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;

  /* dark (default) */
  --bg: #070B16; --bg-2: #0C1222; --surface: #111A2E; --surface-2: #17223A; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --text: #F3F5FA; --text-2: #B7C0D4; --muted: #7D879E; --shadow: 0 18px 50px rgba(0,0,0,.45);
  --header-bg: rgba(7,11,22,.82);
  color-scheme: dark;
}
html[data-mode="light"] {
  --bg: #F4F6FA; --bg-2: #FFFFFF; --surface: #FFFFFF; --surface-2: #EEF1F6; --line: rgba(10,20,40,.10); --line-2: rgba(10,20,40,.18);
  --text: #0B1324; --text-2: #3A4660; --muted: #6A7591; --shadow: 0 14px 40px rgba(15,25,50,.12);
  --header-bg: rgba(255,255,255,.88);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html[dir="rtl"] body { font-family: "Vazirmatn", var(--font); line-height: 1.75; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 999; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; border-radius: 6px; }
.head { font-family: var(--font-head); font-weight: 800; letter-spacing: .01em; text-transform: uppercase; }
html[dir="rtl"] .head { text-transform: none; letter-spacing: 0; font-weight: 800; }

/* ---- Logo wordmark ------------------------------------------------------- */
.logo { display: inline-flex; align-items: stretch; height: 34px; font-family: "Barlow Condensed", sans-serif; font-weight: 800; letter-spacing: .02em; line-height: 1; direction: ltr; }
img.logo { width: auto; object-fit: contain; }
.logo__box { display: grid; place-items: center; padding: 0 9px; background: var(--red); color: #fff; font-size: 26px; border-radius: 6px 0 0 6px; }
.logo__tv { display: grid; place-items: center; padding: 0 8px; background: #fff; color: #0B1324; font-size: 26px; border-radius: 0 6px 6px 0; }
html[data-mode="light"] .logo__tv { background: #0B1324; color: #fff; }

/* ---- Buttons --------------------------------------------------------------- */
.btn { --b: var(--surface-2); --c: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: var(--b); color: var(--c); font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--red { --b: var(--red); --c: #fff; box-shadow: 0 8px 24px rgba(225,29,46,.35); }
.btn--red:hover { --b: var(--red-2); }
.btn--gold { --b: linear-gradient(135deg, var(--gold-2), var(--gold) 45%, #C48A22); --c: #241500; background: var(--b); box-shadow: 0 8px 24px rgba(232,184,74,.3); }
.btn--ghost { --b: transparent; border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text-2); }
.btn--glass { --b: rgba(255,255,255,.12); --c: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { --b: rgba(255,255,255,.2); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn .ic--go { transition: transform .25s var(--ease); }
.btn:hover .ic--go { transform: translateX(3px); }
html[dir="rtl"] .ic--go { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .ic--go { transform: scaleX(-1) translateX(3px); }

/* ---- LIVE pill ------------------------------------------------------------- */
.live-pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--red); color: #fff; font: 800 13px/1 "Barlow Condensed", var(--font); letter-spacing: .12em; text-transform: uppercase; }
html[dir="rtl"] .live-pill { letter-spacing: 0; font-family: "Vazirmatn", sans-serif; font-weight: 700; }
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livedot 1.4s infinite; }
.live-pill--off { background: rgba(255,255,255,.14); color: #fff; }
.live-pill--off::before { animation: none; opacity: .6; }
@keyframes livedot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
[hidden] { display: none !important; }
