/* TV Kikinda — layout: top bar, header, mega menu, ticker, footer, overlays */
/* ==========================================================================
   TOP BAR
   ========================================================================== */
.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .78); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .2); }
.topbar__clock { font: 700 .9rem/1 var(--font-display); letter-spacing: .04em; color: #fff; min-width: 4.6em; }
.topbar__weather { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.topbar__weather .ico { width: 18px; height: 18px; color: var(--orange); }
.topbar__weather:hover { color: var(--orange-300); }
.topbar__slogan { font: italic 800 .85rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.topbar__social { display: flex; gap: 2px; }
.topbar__social a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; transition: background-color .2s, color .2s; }
.topbar__social a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.topbar__social .ico { width: 16px; height: 16px; }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; transition: background-color .2s; }
.theme-toggle:hover { background: rgba(255, 255, 255, .12); }
.theme-toggle .ico { width: 18px; height: 18px; grid-area: 1 / 1; transition: transform .5s var(--ease-out), opacity .3s; }
.theme-toggle .ico--moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .ico--sun { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .ico--moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico--sun { opacity: 0; transform: rotate(90deg) scale(.5); }
  :root:not([data-theme="light"]) .theme-toggle .ico--moon { opacity: 1; transform: none; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  transition: transform .45s var(--ease-out), box-shadow .3s;
}
.header.is-hidden { transform: translateY(-100%); }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 0; } }
.header.is-scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.header__logo { flex: none; display: block; }
.header__logo img { height: 34px; width: auto; transition: transform .4s var(--ease-out); }
.header__logo:hover img { transform: skewX(-4deg) scale(1.03); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.nav { margin-left: 12px; }
.nav__list { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 12px;
  font: 700 1.04rem/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  white-space: nowrap; transition: color .2s;
}
@media (max-width: 1320px) { .nav__link { padding: 0 9px; font-size: .98rem; } .nav { margin-left: 0; } }
.nav__link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; background: var(--orange);
  transform: skewX(var(--skew)) scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-expanded="true"]::after { transform: skewX(var(--skew)) scaleX(1); }
.nav__link .ico { transition: transform .3s var(--ease-out); }
.nav__link[aria-expanded="true"] .ico { transform: rotate(180deg); }

.live-btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 20px; margin-left: 6px; color: #fff;
  font: 800 .95rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
}
.live-btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--live); border-radius: 3px;
  transform: skewX(var(--skew)); box-shadow: 0 8px 24px -8px rgba(229, 38, 43, .7); transition: transform .35s var(--ease-out);
}
.live-btn:hover::before { transform: skewX(var(--skew)) scale(1.06); }
.live-btn--lg { height: 56px; padding: 0 30px; font-size: 1.1rem; }

.burger { display: none; }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-300)); transform: scaleX(0); transform-origin: left; }

/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: var(--z-mega);
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .25s, transform .35s var(--ease-out), visibility 0s .35s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease-out), visibility 0s; }
.mega__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; padding-block: 28px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.mega__label { font: 800 .78rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mega__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
.mega__cats a {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line);
  font: 700 1.2rem/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  transition: color .2s, padding-left .3s var(--ease-out);
}
.mega__cats a::before { content: ''; width: 12px; height: 8px; background: var(--c, var(--orange)); transform: skewX(var(--skew)); }
.mega__cats a:hover { color: var(--link-hover); padding-left: 6px; }
.mega__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font: 800 .85rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.mega__more:hover { color: var(--link-hover); }
.mega__more .ico { transition: transform .3s var(--ease-out); }
.mega__more:hover .ico { transform: translateX(4px); }
.mega__feature { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 220px; color: #fff; display: block; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.mega__feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(7, 7, 26, .9)); }
.mega__feature:hover img { transform: scale(1.05); }
.mega__feature-txt { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 8px; }
.mega__feature-txt .kicker { color: #fff; }
.mega__feature-txt strong { font: 800 1.5rem/1.05 var(--font-display); }
.mega--shows .mega__inner { grid-template-columns: 1fr; }
.mega__shows { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mega__shows a {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 4 / 3; padding: 14px;
  border-radius: var(--r); overflow: hidden; color: #fff; background: linear-gradient(150deg, var(--h1), var(--h2));
  font: italic 900 1.15rem/1 var(--font-display); text-transform: uppercase;
  transition: transform .35s var(--ease-out);
}
.mega__shows a:hover { transform: translateY(-3px); }
.mega__shows a .ico { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; opacity: .45; stroke-width: 1.5; }
.mega__shows small { font: 700 .68rem/1 var(--font-display); letter-spacing: .14em; opacity: .8; font-style: normal; }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker { display: flex; align-items: stretch; height: 46px; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker__label {
  position: relative; z-index: 1; display: flex; align-items: center; flex: none;
  padding: 0 34px 0 var(--gutter); background: var(--orange); color: var(--navy-950);
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  font: italic 900 1rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
}
.ticker__viewport {
  flex: 1; overflow: hidden; display: flex; align-items: center; margin-left: -6px;
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 60px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 60px), transparent);
}
.ticker__track { display: flex; align-items: center; gap: 36px; width: max-content; padding-left: 36px; animation: marquee 70s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.ticker__item a:hover { color: var(--link-hover); }
.ticker__time { font: 800 .95rem/1 var(--font-display); color: var(--orange-ink); letter-spacing: .04em; }
.ticker__item::after { content: ''; width: 8px; height: 8px; background: var(--line-strong); transform: skewX(var(--skew)); margin-left: 24px; }
.ticker__pause { flex: none; display: grid; place-items: center; width: 46px; border-left: 1px solid var(--line); color: var(--ink-2); transition: background-color .2s, color .2s; }
.ticker__pause:hover { background: var(--surface-2); color: var(--ink); }
.ticker__pause[aria-pressed="true"] { color: var(--orange-ink); }
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-block: clamp(44px, 6vw, 72px); }
.footer__brand img { width: 220px; }
.footer__brand p { margin-top: 18px; max-width: 40ch; font-size: .95rem; }
.footer__social { display: flex; gap: 8px; margin-top: 20px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-out); }
.footer__social a:hover { background: var(--orange); border-color: var(--orange); color: var(--navy-950); transform: translateY(-3px); }
.footer__social .ico { width: 18px; height: 18px; }
.footer__col h3 { margin-bottom: 16px; font: 800 1rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.footer__col ul { display: grid; gap: 2px; }
.footer__col a { display: inline-flex; padding: 6px 0; font-size: .95rem; transition: color .2s, transform .3s var(--ease-out); }
.footer__col a:hover { color: var(--orange); transform: translateX(4px); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 800 .85rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.to-top:hover { color: var(--orange); }

/* ==========================================================================
   OVERLAYS
   ========================================================================== */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-overlay); display: flex; flex-direction: column; gap: 24px;
  padding: 16px var(--gutter) 32px; overflow-y: auto; color: #fff;
  background: repeating-linear-gradient(-74deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 26px), var(--navy-950);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mobile-menu__head img { height: 30px; width: auto; }
.mobile-menu__list { counter-reset: m; display: grid; gap: 4px; }
.mobile-menu__list li { overflow: hidden; }
.mobile-menu__list a {
  counter-increment: m; display: flex; align-items: baseline; gap: 14px; padding: 8px 0;
  font: italic 900 clamp(2.4rem, 9vw, 3.4rem)/1 var(--font-display); text-transform: uppercase; transition: color .2s;
}
.mobile-menu__list a::before { content: counter(m, decimal-leading-zero); font-size: .9rem; color: var(--orange); font-style: normal; letter-spacing: .1em; }
.mobile-menu__list a:hover { color: var(--orange); }
.mobile-menu .live-btn { align-self: flex-start; margin-left: 10px; }

.search-overlay { position: fixed; inset: 0; z-index: var(--z-overlay); background: rgba(7, 7, 26, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12vh 16px 16px; }
.search-overlay[hidden] { display: none; }
.search__panel { width: min(760px, 100%); margin-inline: auto; background: var(--surface); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.search__field { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.search__field .ico { color: var(--orange); width: 24px; height: 24px; }
.search__field input { flex: 1; min-width: 0; border: 0; background: transparent; font: 700 1.5rem/1.2 var(--font-display); outline: none; }
.search__field input::placeholder { color: var(--muted); font-weight: 600; }
.search__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 22px; font-size: .88rem; color: var(--muted); }
.search__suggest button { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; transition: background-color .2s, color .2s; }
.search__suggest button:hover { background: var(--ink); color: var(--bg); }
.search__status { padding: 0 22px 10px; font-size: .85rem; color: var(--muted); }
.search__status:empty { display: none; }
.search__field input:focus-visible { outline: none; }
.search__field:focus-within { box-shadow: inset 0 -3px 0 var(--focus); }
.search__hint { padding: 10px 22px 14px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.search__results { max-height: 52vh; overflow-y: auto; padding-bottom: 8px; }
.search__results li a { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 22px; transition: background-color .15s; }
.search__results li a:hover, .search__results li a[aria-selected="true"] { background: var(--surface-2); }
.search__results img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: 4px; }
.search__results strong { display: block; font: 700 1.08rem/1.18 var(--font-display); margin-top: 4px; }
.search__results mark { background: rgba(247, 148, 29, .35); color: inherit; border-radius: 2px; padding: 0 1px; }

.player { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; padding: 16px; background: rgba(7, 7, 26, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.player[hidden] { display: none; }
.player__frame { width: min(1120px, 100%); border-radius: var(--r-lg); overflow: hidden; background: var(--navy-950); color: #fff; box-shadow: var(--shadow-lg); }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; }
.player__title { display: inline-flex; align-items: center; gap: 10px; font: 800 1rem/1.1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; min-width: 0; }
.player__title .live-dot { background: var(--live); }
.player__title .live-dot::after { border-color: var(--live); }
.player__actions { display: flex; gap: 4px; }
.player__screen { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player__offline { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 40%, #1b2a7a, var(--navy-950)); }
.player__offline strong { font: 800 1.4rem/1.1 var(--font-display); }
.player__offline span { color: rgba(255, 255, 255, .7); }
.player__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__epg { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .08); }
.player__epg > div { padding: 14px 18px; background: var(--navy-950); }
.player__epg small { display: block; font: 800 .7rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.player__epg strong { font: 800 1.15rem/1.1 var(--font-display); }
.player__epg span { color: rgba(255, 255, 255, .6); font-size: .88rem; margin-left: 8px; }
.player.is-docked { inset: auto 20px 20px auto; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: var(--z-dock); }
.player.is-docked .player__frame { width: min(380px, calc(100vw - 40px)); }
.player.is-docked .player__epg { display: none; }
.player.is-docked .player__title { font-size: .82rem; }

.cursor {
  position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none;
  width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: var(--navy-950);
  font: 800 .82rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase;
  transform: translate3d(-200px, -200px, 0); transition: scale .35s var(--ease-out);
  scale: 0;
}
.cursor.is-active { scale: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Intro */
.intro { position: fixed; inset: 0; z-index: var(--z-intro); display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.intro__panel { position: absolute; top: -10%; bottom: -10%; width: calc(50% + 40vh); transform: skewX(var(--skew)); }
.intro__panel--a { left: -20vh; background: var(--navy-950); }
.intro__panel--b { right: -20vh; background: var(--navy); }
.intro__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #fff; transform: scaleX(0); box-shadow: 0 0 30px 4px rgba(108, 192, 245, .8); }
.intro__logo { position: relative; width: min(560px, 72vw); }
.intro__slogan { position: absolute; top: calc(50% + min(70px, 9vw)); left: 0; right: 0; text-align: center; font: italic 800 clamp(.9rem, 2vw, 1.2rem)/1 var(--font-display); letter-spacing: .3em; text-transform: uppercase; color: var(--orange); }

/* View transition for theme switch */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

