/* ==========================================================================
   TV Kikinda — base: fonts, tokens, reset, shared atoms
   Brand: navy #262262 → blue #0f75bc, orange #f7941d, 16° slant
   ========================================================================== */

/* ---------- Fonts (self-hosted variable woff2: latin, latin-ext, cyrillic) ---------- */
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(../fonts/sofia-sans-condensed-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(../fonts/sofia-sans-condensed-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(../fonts/sofia-sans-condensed-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 1 1000; font-display: swap; src: url(../fonts/sofia-sans-condensed-latin-wght-italic.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 1 1000; font-display: swap; src: url(../fonts/sofia-sans-condensed-latin-ext-wght-italic.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans Condensed'; font-style: italic; font-weight: 1 1000; font-display: swap; src: url(../fonts/sofia-sans-condensed-cyrillic-wght-italic.woff2) format('woff2-variations'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(../fonts/sofia-sans-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(../fonts/sofia-sans-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(../fonts/sofia-sans-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #07071a;
  --navy-900: #0e0d33;
  --navy: #262262;
  --navy-mid: #1c4f97;
  --blue: #0f75bc;
  --blue-300: #6cc0f5;
  --orange: #f7941d;
  --orange-300: #ffb35c;
  --live: #e5262b;
  --grad: linear-gradient(100deg, var(--navy) 0%, var(--navy-mid) 55%, var(--blue) 100%);
  --grad-v: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, var(--blue) 100%);

  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #e9ebf3;
  --ink: #0d0e2c;
  --ink-2: #2c2f4d;
  --muted: #565b7a;
  --link-hover: #0c62a0;
  --orange-ink: #a94f08;
  --focus: var(--navy);
  --line: rgba(13, 14, 44, 0.1);
  --line-strong: rgba(13, 14, 44, 0.2);
  --header-bg: rgba(255, 255, 255, 0.82);

  --shadow-sm: 0 1px 2px rgba(13, 14, 44, 0.06), 0 2px 8px rgba(13, 14, 44, 0.05);
  --shadow-md: 0 14px 34px -14px rgba(13, 14, 44, 0.28);
  --shadow-lg: 0 34px 70px -24px rgba(13, 14, 44, 0.45);

  --r: 6px;
  --r-lg: 12px;
  --skew: -16deg;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.3, 1);

  --font-display: 'Sofia Sans Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-body: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1360px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;

  --z-header: 50;
  --z-mega: 60;
  --z-dock: 90;
  --z-overlay: 100;
  --z-cursor: 200;
  --z-intro: 300;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07071a;
    --surface: #10102e;
    --surface-2: #191940;
    --ink: #eef0ff;
    --ink-2: #cfd3f0;
    --muted: #9ea4c8;
    --link-hover: var(--blue-300);
    --orange-ink: var(--orange);
    --focus: var(--orange);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);
    --header-bg: rgba(10, 10, 34, 0.78);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 34px 70px -24px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07071a;
  --surface: #10102e;
  --surface-2: #191940;
  --ink: #eef0ff;
  --ink-2: #cfd3f0;
  --muted: #9ea4c8;
  --link-hover: var(--blue-300);
  --orange-ink: var(--orange);
  --focus: var(--orange);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --header-bg: rgba(10, 10, 34, 0.78);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 34px 70px -24px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: inherit; }
input { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--navy-950); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.topbar, .footer, .video, .shows, .mobile-menu, .player, .livecard, .lead, .widget--weather { --focus: var(--orange); }
.promo { --focus: var(--navy-950); }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
main:focus { outline: none; }

main { overflow-x: clip; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.tabular { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--xs { width: 14px; height: 14px; }
.ico--sm { width: 16px; height: 16px; }
.ico--orange { color: var(--orange); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 999;
  background: var(--orange); color: var(--navy-950); padding: 10px 16px; font-weight: 700; border-radius: var(--r);
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.kbd {
  font: 600 .7rem/1 var(--font-body); padding: 4px 6px; border-radius: 4px;
  border: 1px solid var(--line-strong); color: var(--muted); letter-spacing: .02em;
}

/* JS loading state — prevent hero flash before intro choreography */
.js.js-loading [data-hero] { opacity: 0; }

/* ---------- Shared atoms ---------- */
.live-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none;
}
.live-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8); animation: pulse 1.6s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.badge {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; color: #fff;
  font: 800 .78rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
}
.badge > span { display: inline-flex; align-items: center; gap: 6px; }
.badge::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 2px;
  background: var(--tag-bg, var(--orange)); transform: skewX(var(--skew));
}
.badge--orange { --tag-bg: var(--orange); color: var(--navy-950); }
.badge--live { --tag-bg: var(--live); }
.badge--glass { --tag-bg: rgba(255, 255, 255, .16); }
.badge--glass::before { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 .76rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
}
.kicker::before {
  content: ''; width: 14px; height: 9px; background: var(--c, var(--orange)); transform: skewX(var(--skew)); flex: none;
}

.eyebrow-bar { display: inline-block; width: 24px; height: 10px; background: var(--orange); transform: skewX(var(--skew)); }
.eyebrow-bar--navy { background: var(--navy-950); }

.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  font: 800 1rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase;
  transition: color .3s var(--ease-out);
  touch-action: manipulation;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 3px; transform: skewX(var(--skew));
  transition: transform .4s var(--ease-out), background-color .3s, border-color .3s;
}
.btn:hover::before { transform: skewX(var(--skew)) scale(1.04); }
.btn:active::before { transform: skewX(var(--skew)) scale(.97); }
.btn--ghost::before { border: 1.5px solid var(--line-strong); background: transparent; }
.btn--ghost:hover { color: var(--bg); }
.btn--ghost:hover::before { background: var(--ink); border-color: var(--ink); }
.btn--navy { color: #fff; }
.btn--navy::before { background: var(--navy-950); }
.btn--outline-navy { color: var(--navy-950); }
.btn--outline-navy::before { border: 2px solid var(--navy-950); }
.btn--outline-navy:hover { color: #fff; }
.btn--outline-navy:hover::before { background: var(--navy-950); }
.btn.is-loading { pointer-events: none; opacity: .7; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn--light { color: #fff; }
.icon-btn--light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1.5px solid var(--line-strong); color: var(--ink); transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out);
}
.round-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.round-btn:active { transform: scale(.94); }

.chip-btn {
  position: relative; isolation: isolate; height: 44px; padding: 0 18px;
  font: 800 .85rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--navy-950);
}
.chip-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--orange); transform: skewX(var(--skew)); border-radius: 3px; transition: transform .3s var(--ease-out); }
.chip-btn:hover::before { transform: skewX(var(--skew)) scale(1.06); }

.epg__day { font: 800 .95rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.segmented button {
  height: 36px; padding: 0 16px; border-radius: 999px; font: 700 .9rem/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  transition: background-color .25s, color .25s;
}
.segmented button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font: 800 .95rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.link-arrow .ico { transition: transform .3s var(--ease-out); }
.link-arrow:hover .ico:last-child { transform: translateX(4px); }
.link-arrow:hover { color: var(--link-hover); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--orange); }

/* ---------- Section heads ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px;
  font: 800 .82rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.sec-head__eyebrow--light { color: rgba(255, 255, 255, .7); }
.sec-head__eyebrow--dark { color: rgba(7, 7, 26, .75); }
.sec-head__title {
  font: italic 900 clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem)/.92 var(--font-display);
  text-transform: uppercase; letter-spacing: -.005em;
}
.sec-head--light .sec-head__title { color: #fff; }
.sec-head__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-head__hint { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }

/* split-text helpers */
.split-line { display: inline-block; overflow: hidden; vertical-align: top; padding: .3em .14em .08em 0; margin: -.3em -.14em -.08em 0; } /* top room for carons (Š, Ž, Č, Ć) above caps */
.is-split-done .split-line { overflow: visible; }
.split-word { display: inline-block; will-change: transform; }

