/*! LinkTV Net — © 2026 AlexSmartSoft. Sva prava zadržana. Kopiranje, izmena i distribucija ovog koda bez pisane dozvole su zabranjeni. */
/* Global app styles — entry point.
   Order:
   1. tokens.css — design vars (mora prvi)
   2. tv-base.css — viewport + body base
   3. @tailwind base — Tailwind reset (PRE prototype-a tako da prototype pobedjuje)
   4. prototype.css — designer's TV UI styles (override-uje sve gore)
   5. tv-focus.css — focus stilovi
   6. responsive.css — phone/tablet override-i
   7. @tailwind components/utilities — utility klase za stare komponente
*/

/* LinkTV Net Design Tokens
   Source of truth za boje, fontove, transitions iz novog dizajna.
   Sve nove komponente koriste ove varijable umesto hardkodovanih vrednosti.
*/

:root {
  /* Base colors */
  --bg-base: #050814;
  --bg-deep: #050711;
  --bg-elevated: #0b0f1a;
  --bg-card: rgba(22, 29, 48, 0.82);
  --bg-card-mute: rgba(10, 14, 24, 0.68);

  /* Accent */
  --accent-blue: #0d98ff;
  --accent-blue-soft: #3fc1ff;
  --accent-blue-deep: #12a6ff;
  --accent-cyan: #7fb5ff;

  /* Highlights */
  --highlight-gold: #ffd84f;
  --highlight-green: #6ff58a;
  --highlight-red: #ff4f4f;

  /* Text */
  --text-primary: rgba(244, 248, 255, 0.96);
  --text-secondary: rgba(237, 243, 255, 0.92);
  --text-muted: rgba(175, 196, 233, 0.72);
  --text-dim: rgba(122, 142, 168, 0.62);

  /* Borders / outlines */
  --border-default: rgba(255, 255, 255, 0.1);
  --border-active: rgba(59, 130, 246, 0.82);

  /* Shadows */
  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.34);
  --shadow-active: 0 0 24px rgba(59, 130, 246, 0.82), 0 24px 56px rgba(0, 0, 0, 0.42);
  --shadow-focus: 0 0 28px rgba(122, 178, 255, 0.92), 0 24px 56px rgba(0, 0, 0, 0.42);

  /* Transitions */
  --t-fast: 0.16s ease;
  --t-mid: 0.22s ease;
  --t-slow: 0.35s ease;

  /* Typography */
  --font-stack: 'Segoe UI', Arial, sans-serif;

  /* Layout */
  --tv-min-width: 1280px;
  --tv-min-height: 720px;
}

/* tv-base.css — Shared TV UI Foundation
   Adapted from linktv-net-dizajn/prototypes/android-tv-home/tv-base.css
   IZMENE u odnosu na prototip:
   - min-width 1280 / min-height 720 SAMO na desktop / TV (preko @media)
   - Mobile/tablet (< 1024px) ne forsira 1280×720 da bi Capacitor app radio
*/

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg-deep);
  font-family: var(--font-stack);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  cursor: default;
}

/* NEMA min-width/height floor-a — fully adaptive na svim velicinama.
   Prototype clamp() vrednosti svejedno hendlaju manje viewporte.
*/

/* App root */

#root {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Sakrij kursor na TV-u (kad nije touch device) */

@media (hover: none) {
  /* Touch device — kursor svejedno nije vidljiv */
}

@media (hover: hover) and (pointer: fine) {
  /* Desktop — kursor moze biti vidljiv u dev modu */
}

/* TV mode: ako je app pokrenut na Tizen-u ili Capacitor TV-u, sakrij kursor */

.tv-mode,
.tv-mode * {
  cursor: none !important;
}

/* TV Remote / Keyboard Focus Styles */

/* Card focus (ChannelCard, VodCard) */

.tv-focusable-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease, outline-color 0.15s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.tv-focusable-card[data-focused="true"] {
  transform: scale(1.05);
  z-index: 10;
  outline-color: #6366f1;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4), 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Button focus (CategoryFilter, Pagination, Hero buttons) */

.tv-focusable-btn {
  transition: background-color 0.15s ease, outline-color 0.15s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.tv-focusable-btn[data-focused="true"] {
  outline-color: #6366f1;
  background-color: rgba(99, 102, 241, 0.2) !important;
}

/* Nav item focus (Sidebar) */

.tv-focusable-nav {
  transition: background-color 0.15s ease, color 0.15s ease, outline-color 0.15s ease;
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.tv-focusable-nav[data-focused="true"] {
  background-color: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  outline-color: #6366f1;
}

/* EPG program focus */

.tv-focusable-epg {
  transition: outline-color 0.15s ease, background-color 0.15s ease;
  outline: 2px solid transparent;
  outline-offset: -1px;
}

.tv-focusable-epg[data-focused="true"] {
  outline-color: #6366f1;
  background-color: rgba(99, 102, 241, 0.3) !important;
}

/* Input focus for TV */

.tv-focusable-input {
  transition: outline-color 0.15s ease, border-color 0.15s ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.tv-focusable-input[data-focused="true"] {
  outline-color: #6366f1;
  border-color: #6366f1 !important;
}

body {
        font-family: 'Segoe UI', Arial, sans-serif;
        background: #050814;
      }

.app {
        position: relative;
        min-height: 100vh;
        overflow: hidden;
      }

.background {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        /* Pojednostavljen background — 4 layered gradients su bili teski
           za Tizen 6 GPU compositing. Sad: 1 linear gradient overlay +
           bg-tv.webp slika. Vizuelno blizu, dramaticno manji teret. */
        background:
          linear-gradient(180deg, rgba(2, 4, 10, 0.35), rgba(2, 4, 10, 0.7)),
          url('/bg-tv.webp');
        background-size: cover;
        background-position: center;
      }

.background::before,
      .background::after {
        content: '';
        position: absolute;
        left: -4vw;
        right: -4vw;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(0, 143, 255, 0), rgba(73, 136, 255, 0.9) 18%, rgba(98, 160, 255, 0.98) 52%, rgba(124, 96, 255, 0.55) 100%);
        box-shadow: 0 0 16px rgba(55, 136, 255, 0.55), 0 0 40px rgba(55, 136, 255, 0.2);
        z-index: 1;
      }

.background::before {
        top: 1.2vh;
        transform: perspective(1200px) rotateX(68deg);
        transform-origin: top center;
      }

.background::after {
        bottom: 4.8vh;
        transform: perspective(1200px) rotateX(-70deg);
        transform-origin: bottom center;
      }

.screen-ui {
        position: absolute;
          top: 1.2vh;
          right: 2.2vw;
          bottom: 5.2vh;
          left: 4.2vw;
        display: grid;
        grid-template-rows: auto 1fr auto;
        gap: 0.1vh;
        z-index: 2;
        pointer-events: none;
      }

.screen-ui::before {
        content: '';
        position: absolute;
          top: 0;
          right: 18vw;
          bottom: 0;
          left: 0;
        border-radius: 30px;
        background: linear-gradient(90deg, rgba(4, 9, 20, 0.36), rgba(3, 8, 18, 0.16) 34%, rgba(3, 8, 18, 0) 68%);
        z-index: -1;
      }

.header {
          position: relative;
          z-index: 1;
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 24px;
        padding: 0 1vw 0;
        color: white;
      }

.header > * + * {
  margin-left: 24px;
      }

.header h1 {
        margin: 0;
        font-size: 42px;
        font-size: clamp(28px, 2.3vw, 42px);
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

.brand {
        position: fixed;
        right: 1.2vw;
        bottom: calc(5.2vh + 2px);
        z-index: 3;
        display: flex;
        align-items: center;
        gap: 18px;
        padding-top: 0;
        pointer-events: none;
      }

.brand > * + * {
  margin-left: 18px;
      }

.brand-logo {
        width: 188px;
        width: clamp(132px, 10vw, 188px);
        height: auto;
        object-fit: contain;
        opacity: 0.94;
        filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.42));
      }

.brand-title {
        display: none;
      }

.time {
          position: relative;
          z-index: 6;
        margin-left: auto;
        text-align: right;
        align-self: flex-start;
        font-size: 32px;
        font-size: clamp(22px, 1.7vw, 32px);
        font-weight: 600;
        color: rgba(237, 243, 255, 0.92);
        padding-top: 3.6vh;
      }

/* Status blok gore desno (Wi-Fi + sat + datum) — zamenio stari .time
         sat + donji footer-status (bio dupli sat). */

.header-status {
        position: relative;
        z-index: 6;
        margin-left: auto;
        align-self: flex-start;
        display: flex;
        align-items: center;
        gap: 16px;
        padding-top: 3.6vh;
        color: rgba(237, 243, 255, 0.9);
        font-size: 26px;
        font-size: clamp(20px, 1.4vw, 26px);
        font-weight: 600;
      }

.header-status > * + * {
  margin-left: 16px;
      }

.header-status .wifi-icon {
        opacity: 0.9;
      }

.header-status .footer-divider {
        height: 24px;
      }

.home-main {
        position: relative;
        min-height: 8vh;
        /* Desni padding = rezerva za hero feature (VOD karusel) kolonu. */
        padding: 0 660px 0 1vw;
        padding: 0 min(41vw, 660px) 0 1vw;
      }

.hero-copy {
          display: none;
      }

.hero-kicker {
          color: #7fb5ff;
          font-size: 16px;
          font-size: clamp(13px, 0.9vw, 16px);
          font-weight: 700;
          letter-spacing: 0.14em;
          margin-top: 0;
          text-transform: uppercase;
      }

.menu-shell {
          display: flex;
          align-items: flex-end;
          justify-content: flex-start;
          padding: 0 1vw;
          /* FIKSNI px umesto clamp() — TV viewport je uvek 1920x1080, a
             clamp polyfill za NEGATIVNE vrednosti bira pogresnu granicu
             (-120px umesto -324px) pa je na Tizen-u menu sedeo prenisko.
             Mobile overrides su u @media blokovima. */
          margin-top: -324px;
          position: relative;
          z-index: 5;
      }

.content-shelf {
          position: relative;
          z-index: 1;
          display: flex;
          flex-direction: column;
          gap: 14px;
          /* Prosireno (user: ikonice vece) + fiksni negativan margin
             (clamp polyfill bira pogresnu granicu za negative na Tizen-u). */
          width: 940px;
          width: min(52vw, 940px);
          margin: -119px 0 0 1vw;
          pointer-events: none;
        }

.content-shelf > * + * {
  margin-top: 14px;
        }

.content-shelf-header {
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 18px;
        }

.content-shelf-header > * + * {
  margin-left: 18px;
        }

.content-shelf-title {
          margin: 0;
          color: rgba(244, 248, 255, 0.96);
          font-size: 30px;
          font-size: clamp(22px, 1.6vw, 30px);
          font-weight: 800;
          letter-spacing: -0.02em;
        }

.content-shelf-subtitle {
          color: rgba(175, 196, 233, 0.72);
          font-size: 15px;
          font-weight: 700;
          letter-spacing: 0.14em;
          text-transform: uppercase;
        }

.content-shelf-row {
          display: grid;
          grid-template-columns: repeat(3, minmax(0, 1fr));
          gap: 14px;
        }

.content-card {
          position: relative;
          min-height: 196px;
          border-radius: 26px;
          overflow: hidden;
          border: 1px solid rgba(123, 156, 214, 0.16);
          background:
            linear-gradient(180deg, rgba(8, 14, 28, 0.18), rgba(8, 14, 28, 0.74)),
            rgba(8, 12, 24, 0.72);
          box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.07),
            0 18px 38px rgba(0, 0, 0, 0.24);
          isolation: isolate;
        }

.content-card::before {
          content: '';
          position: absolute;
          top: 0;
          right: 0;
          bottom: 0;
          left: 0;
          background-image: var(--card-cover);
          background-position: center center;
          background-size: cover;
          transform: scale(1.04);
          opacity: 0.92;
          z-index: -2;
        }

.content-card::after {
          content: '';
          position: absolute;
          top: 0;
          right: 0;
          bottom: 0;
          left: 0;
          background:
            linear-gradient(180deg, rgba(6, 11, 24, 0.08) 0%, rgba(6, 11, 24, 0.28) 38%, rgba(6, 11, 24, 0.92) 100%),
            radial-gradient(circle at 50% 0%, rgba(121, 172, 255, 0.18), transparent 42%);
          z-index: -1;
        }

.content-card-copy {
          display: flex;
          flex-direction: column;
          justify-content: flex-end;
          gap: 8px;
          min-height: 196px;
          padding: 18px;
        }

.content-card-copy > * + * {
  margin-top: 8px;
        }

.content-card-kicker {
          display: inline-flex;
          align-items: center;
          width: -moz-fit-content;
          width: fit-content;
          min-height: 28px;
          padding: 0 11px;
          border-radius: 999px;
          background: rgba(14, 23, 44, 0.5);
          border: 1px solid rgba(128, 169, 255, 0.14);
          color: rgba(214, 228, 255, 0.92);
          font-size: 16px;
          font-weight: 800;
          letter-spacing: 0.1em;
          text-transform: uppercase;
        }

.content-card-title {
          margin: 0;
          color: #ffffff;
          font-size: 28px;
          font-weight: 800;
          line-height: 1.06;
          text-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
        }

.content-card-meta {
          color: rgba(228, 237, 255, 0.92);
          font-size: 19px;
          font-weight: 600;
        }

/* Fokus daljinskog na kartici "Nastavi gledanje" (beli prsten kao
           u Video klubu; senka bez zamucenja — jeftino na TV-u) */

.content-card.is-focused {
          border-color: #cfe6ff;
          box-shadow: 0 0 0 3px #cfe6ff, 0 0 0 7px rgba(63, 158, 252, 0.35);
        }

/* Jos nema pozicija: mirna recenica umesto kartica */

.content-shelf-empty {
          padding: 26px 24px;
          border-radius: 22px;
          background: rgba(8, 14, 28, 0.72);
          border: 1px solid rgba(123, 156, 214, 0.16);
          color: rgba(226, 239, 250, 0.92);
          font-size: 22px;
          line-height: 1.45;
        }

.content-card-progress {
          position: relative;
          height: 5px;
          margin-top: 2px;
          border-radius: 999px;
          background: rgba(255, 255, 255, 0.12);
          overflow: hidden;
        }

.content-card-progress > span {
          display: block;
          height: 100%;
          width: var(--progress, 50%);
          border-radius: inherit;
          background: linear-gradient(90deg, #74a8ff, #7fe3ff);
          box-shadow: 0 0 14px rgba(116, 168, 255, 0.44);
        }

.hero-visual {
        position: absolute;
          top: auto;
          bottom: 0px;
          /* Bilo right: min(-2.6vw, -34px) — bleed preko desne ivice ekrana.
             User: "carusel ide suvise u desno" — sad flush sa home-main
             desnom ivicom (screen-ui inset vec daje ~2vw od ivice ekrana). */
          right: 0;
          /* Uvecan karusel (user request): 700 -> 820px, 454 -> 540px. */
          width: 820px;
          width: min(56vw, 820px);
          min-height: 540px;
        display: flex;
        align-items: stretch;
        margin: 0;
          z-index: 4;
          pointer-events: none;
          overflow: hidden;
      }

.hero-visual::before {
        content: '';
        position: absolute;
        top: 6%;
        right: 10%;
        bottom: 18%;
        left: 24%;
        border-radius: 999px;
        background:
          radial-gradient(circle, rgba(112, 177, 255, 0.32) 0%, rgba(112, 177, 255, 0.14) 34%, rgba(112, 177, 255, 0) 72%);
        opacity: 0.85;
        z-index: 0;
        pointer-events: none;
      }

.hero-visual::after {
        content: '';
        position: absolute;
        top: 0;
        left: 4%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg, rgba(125, 174, 255, 0), rgba(125, 174, 255, 0.45) 30%, rgba(125, 174, 255, 0.16) 70%, rgba(125, 174, 255, 0));
        box-shadow: 0 0 18px rgba(103, 159, 255, 0.25);
        z-index: 5;
        pointer-events: none;
      }

.movie-feature {
        position: relative;
        width: 100%;
        min-height: 540px;
        border-radius: 0;
        overflow: hidden;
        border: none;
        box-shadow: none;
        background: transparent;
        -webkit-backdrop-filter: none;
                backdrop-filter: none;
        isolation: isolate;
      }

/* Traka sa izdvojenim naslovima u fokusu daljinskog (OK otvara naslov) */

.movie-feature.is-focused {
        outline: 4px solid #cfe6ff;
        outline-offset: -4px;
      }

.movie-feature::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        /* TIZEN: 3 layera → 2 (skinut radial). Left fade + vertical fade
           daju isti blend cover-a u pozadinu. */
        background:
          linear-gradient(180deg, rgba(1, 5, 11, 0.99) 0%, rgba(1, 5, 11, 0.84) 22%, rgba(1, 5, 11, 0.42) 42%, rgba(1, 5, 11, 0.16) 62%, rgba(1, 5, 11, 0.8) 100%),
          linear-gradient(90deg, rgba(1, 5, 11, 0.98) 0%, rgba(4, 9, 22, 0.9) 18%, rgba(4, 10, 24, 0.48) 40%, rgba(3, 8, 19, 0.14) 62%, rgba(3, 8, 19, 0) 100%);
        z-index: 0;
        pointer-events: none;
      }

.movie-feature::after {
        content: '';
        position: absolute;
        top: auto;
        right: 4%;
        bottom: 12px;
        left: 6%;
        height: 1px;
        background: linear-gradient(90deg, rgba(125, 174, 255, 0), rgba(125, 174, 255, 0.45) 30%, rgba(125, 174, 255, 0.16) 70%, rgba(125, 174, 255, 0));
        box-shadow: 0 0 18px rgba(103, 159, 255, 0.25);
        z-index: 1;
        pointer-events: none;
      }

.movie-feature-cover {
        /* TIZEN pojednostavljeno: cover slika direktno na div-u (JSX inline
           backgroundImage), BEZ mask-image compositing-a i BEZ transition-a
           na background-image (nije GPU accelerated — na TV-u jank).
           Blend u pozadinu radi ::after overlay + .movie-feature::before.
           Slike su preload-ovane u JSX-u pa je swap trenutan. */
        position: absolute;
        top: -74px;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: inherit;
        background-position: center right;
        background-size: cover;
        background-repeat: no-repeat;
        overflow: hidden;
      }

/* .movie-feature-cover::before UKLONJEN — bio mask-image compositing
         (2 maske + source-in) preko inherit background-a. Tesko za Tizen
         GPU, a vizuelno ga pokriva gradient overlay ispod. */

.movie-feature-cover::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        /* TIZEN: 4 gradient layera + 3 inset shadow-a → 2 gradient layera.
           Vertikalni fade (vrh/dno) + horizontalni fade (leva ivica ka
           sadrzaju + desna ivica ekrana). */
        background:
          linear-gradient(180deg, rgba(1, 5, 11, 1) 0%, rgba(1, 5, 11, 0.92) 14%, rgba(1, 5, 11, 0.34) 30%, rgba(1, 5, 11, 0.05) 46%, rgba(1, 5, 11, 0.14) 72%, rgba(1, 5, 11, 0.9) 100%),
          linear-gradient(90deg, rgba(1, 5, 11, 0.98) 0%, rgba(1, 5, 11, 0.86) 10%, rgba(7, 12, 24, 0.42) 22%, rgba(7, 12, 24, 0.1) 34%, rgba(7, 12, 24, 0) 50%, rgba(7, 12, 24, 0.24) 66%, rgba(1, 5, 11, 0.78) 82%, rgba(1, 5, 11, 0.98) 100%);
        pointer-events: none;
      }

.movie-feature-content {
        position: relative;
        z-index: 2;
        display: flex;
          align-items: flex-start;
        min-height: 540px;
          padding: 14px 0 36px;
          overflow: visible;
      }

.movie-feature-poster {
        display: none;
      }

.movie-feature-copy {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        min-height: 0;
        padding: 24px 24px 22px;
        border-radius: 30px;
          background: transparent;
          border: none;
          box-shadow: none;
            -webkit-backdrop-filter: none;
                    backdrop-filter: none;
        max-width: 460px;
        margin-left: 90px;
          margin-top: 4px;
        margin-right: 0;
        overflow: visible;
      }

.movie-feature-copy > * + * {
  margin-top: 0;
      }

.movie-feature-copy-top,
      .movie-feature-copy-bottom {
        position: relative;
        display: flex;
        flex-direction: column;
      }

.movie-feature-copy-top {
        gap: 8px;
      }

.movie-feature-copy-bottom {
        position: absolute;
              top: calc(100% + 2px);
        left: 0;
        width: 490px;
        width: min(33vw, 490px);
        gap: 10px;
          padding: 12px 14px 14px;
          border-radius: 20px;
            background: rgba(5, 11, 22, 0.72);
            border: 1px solid rgba(132, 182, 255, 0.05);
            box-shadow: none;
        border-top: none;
      }

.movie-feature-copy::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: inherit;
        background: transparent;
        pointer-events: none;
      }

.movie-feature-kicker {
        position: relative;
        display: inline-flex;
        align-items: center;
        width: -moz-fit-content;
        width: fit-content;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        color: #9ac6ff;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        padding: 7px 12px;
        border-radius: 999px;
        background: rgba(84, 128, 235, 0.14);
        border: 1px solid rgba(120, 164, 255, 0.22);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
      }

.movie-feature-kicker::before {
        content: '';
        flex: 0 0 auto;
        margin-right: 8px;
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: linear-gradient(180deg, #7fd1ff, #7a95ff);
        box-shadow: 0 0 10px rgba(122, 149, 255, 0.7);
      }

.movie-feature-title {
        position: relative;
        margin: 0;
        color: #ffffff;
        font-size: 52px;
        font-size: clamp(32px, 3vw, 52px);
        line-height: 0.98;
        font-weight: 900;
        letter-spacing: -0.03em;
        max-width: 400px;
        text-shadow: 0 10px 34px rgba(0, 0, 0, 0.36);
      }

.movie-feature-meta {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        color: rgba(226, 236, 255, 0.88);
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

.movie-feature-meta > * + * {
  margin-left: 10px;
      }

.movie-feature-description {
        position: relative;
        margin: 0;
        max-width: 500px;
        color: rgba(241, 246, 255, 0.8);
        font-size: 17px;
        line-height: 1.52;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.26);
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

.movie-feature-badges {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 4px;
      }

.movie-feature-badges > * + * {
  margin-left: 10px;
      }

.movie-feature-badge {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid rgba(135, 174, 255, 0.16);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(234, 241, 255, 0.92);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
      }

.movie-feature-strip {
        position: absolute;
        left: 50%;
        right: auto;
        bottom: 16px;
        transform: translateX(-50%);
        z-index: 2;
        display: flex;
        gap: 10px;
        pointer-events: auto;
      }

.movie-feature-strip > * + * {
  margin-left: 10px;
      }

/* Opis izdvojenog naslova je traka DOLE preko cele sirine slike (ranije
         kutija levo koja je prekrivala sliku), iznad tackica za smenu.
         Kutija .movie-feature-copy vise nije oslonac — traka se meri prema
         celoj kartici. Tamni preliv je linearan (pravilo #19). */

.movie-feature .movie-feature-copy { position: static; }

.movie-feature .movie-feature-copy-bottom {
        position: absolute;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        z-index: 1;
        padding: 70px 40px 52px;
        border: 0;
        border-radius: 0;
        background: linear-gradient(180deg, rgba(5, 11, 22, 0) 0%, rgba(5, 11, 22, 0.86) 42%, rgba(5, 11, 22, 0.94) 100%);
      }

.movie-feature .movie-feature-description {
        max-width: none;
        color: rgba(241, 246, 255, 0.95);
        font-size: 22px;
        line-height: 1.45;
      }

.movie-feature .movie-feature-kicker { font-size: 15px; }

.movie-feature .movie-feature-badge { font-size: 15px; }

.movie-feature .movie-feature-meta { font-size: 18px; }

.movie-feature-thumb {
        position: relative;
        width: 13px;
        height: 13px;
        flex: 0 0 auto;
        border-radius: 999px;
        border: 1px solid rgba(129, 167, 255, 0.32);
        background: rgba(255, 255, 255, 0.22);
        box-shadow: none;
        cursor: pointer;
        padding: 0;
        /* bez transform transition-a — animiralo se na hero auto-rotate
           (5.2s) i moglo da se poklopi sa navigacijom (pravilo #15b) */
        overflow: hidden;
      }

.movie-feature-thumb::before,
      .movie-feature-thumb::after {
        display: none;
      }

.movie-feature-thumb.is-active {
        background: #6c9aff;
        border-color: rgba(108, 154, 255, 0.9);
        transform: scale(1.25);
        box-shadow: 0 0 12px rgba(108, 154, 255, 0.6);
      }

.movie-feature-thumb-title {
        display: none;
      }

.menu {
        position: relative;
        display: grid;
        grid-template-columns: repeat(4, minmax(140px, 1fr));
        grid-template-areas:
          'tv tv video video'
          'divider divider divider divider'
          'radio content vote settings';
        grid-template-rows: auto auto auto;
          gap: 22px 18px;
          gap: clamp(14px, 1.2vw, 22px) clamp(12px, 1vw, 18px);
        /* Menu zauzima levu polovinu, hero VOD karusel desnu.
           Prosireno 760 -> 940px (user: ikonice vece). */
        width: 940px;
        width: min(52vw, 940px);
        pointer-events: auto;
        align-items: end;
      }

.menu-divider {
        grid-area: divider;
        position: relative;
        height: 2px;
        margin: 4px 8px;
        border-radius: 999px;
        background: linear-gradient(90deg,
          rgba(73, 136, 255, 0) 0%,
          rgba(98, 160, 255, 0.55) 22%,
          rgba(124, 96, 255, 0.85) 50%,
          rgba(98, 160, 255, 0.55) 78%,
          rgba(73, 136, 255, 0) 100%);
        box-shadow: 0 0 18px rgba(98, 160, 255, 0.45), 0 0 36px rgba(124, 96, 255, 0.25);
        /* Staticki lift, fiksni px (clamp polyfill bira pogresnu granicu
           za negativne vrednosti na Tizen-u). */
        transform: translateY(-178px);
        pointer-events: none;
      }

.menu-divider::after {
        content: '';
        position: absolute;
        top: -8px;
        right: 0;
        bottom: -8px;
        left: 0;
        background: linear-gradient(90deg, rgba(98, 160, 255, 0) 0%, rgba(98, 160, 255, 0.18) 50%, rgba(98, 160, 255, 0) 100%);
        pointer-events: none;
      }

.menu-item {
        position: relative;
        width: 100%;
        min-width: 0;
        height: 186px;
        height: clamp(140px, 10.4vw, 186px);
        background: linear-gradient(180deg, rgba(15, 22, 40, 0.92), rgba(8, 13, 26, 0.88));
        border: 1px solid rgba(117, 142, 211, 0.16);
        border-radius: 24px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 23px;
        font-size: clamp(16px, 1.2vw, 23px);
        font-weight: 800;
        letter-spacing: 0.02em;
        text-align: center;
        text-transform: uppercase;
        box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
        opacity: 1;
        /* Fokus zoom je INSTANT (bez transition-a): na Tizen 6, transform
           tranzicija elementa sa overflow:hidden + border-radius + box-shadow
           NE ide na kompozitor nego na main thread → repaint velike kartice
           svaki frame tokom animacije → input queue raste → 2s lag po
           pritisku. Instant promena = 1 repaint, zoom se i dalje vidi.
           will-change namerno NEMA (6 stalnih GPU layera guta TV memoriju). */
        cursor: pointer;
        outline: none;
        overflow: hidden;
      }

.menu-item > * + * {
  margin-top: 18px;
      }

/* .menu-item::after uklonjen — sloj 2 gradients overlay je bio
         compositing teret na Tizen 6 CPU. Vizuelno gledan menu i dalje
         deluje bogato preko bg + border-a + box-shadow-a. */

/* STATICKI translateY lift-ovi (original dizajn "arc" raspored).
         Layout box menija ostaje dole (content-shelf se uvlaci u njega),
         items su VIZUELNO podignuti. Staticki transform = computed once,
         nema runtime GPU tereta. Tizen problem su bile ANIMIRANE
         transformacije (transition + perspective + rotateY na fokus) —
         te ostaju uklonjene. */

/* Lift vrednosti su FIKSNI px — TV viewport je 1920x1080, а clamp
         polyfill za negativne vrednosti bira pogresnu granicu na Tizen-u.
         Flagship kartice uvecane (user: ikonice vece + u visini karusela). */

.menu-item[data-index='0'] {
        grid-area: tv;
        height: 264px;
        height: clamp(200px, 14.6vw, 264px);
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 8px;
        transform: translateY(-200px);
      }

.menu-item[data-index='2'] {
        grid-area: video;
        height: 264px;
        height: clamp(200px, 14.6vw, 264px);
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 8px;
        transform: translateY(-200px);
      }

.menu-item[data-index='1'] {
        grid-area: radio;
        height: 200px;
        height: clamp(160px, 11.8vw, 200px);
        transform: translateY(-166px);
      }

.menu-item[data-index='3'] {
        grid-area: content;
        height: 200px;
        height: clamp(160px, 11.8vw, 200px);
        transform: translateY(-166px);
      }

.menu-item[data-index='4'] {
        grid-area: settings;
        height: 200px;
        height: clamp(160px, 11.8vw, 200px);
        transform: translateY(-166px);
      }

.menu-item[data-index='5'] {
        grid-area: vote;
        height: 200px;
        height: clamp(160px, 11.8vw, 200px);
        transform: translateY(-166px);
      }

/* .menu-item::before uklonjen — radial + linear gradient overlay
         (2 backgrounds compositing-uju per-item) je bio cisti teret na
         Tizen 6 GPU. Bez ovoga menu items izgledaju cisce i layout je
         brzo render. */

.menu-icon {
        position: relative;
        z-index: 1;
        width: 142px;
        width: clamp(108px, 7.4vw, 142px);
        height: 142px;
        height: clamp(108px, 7.4vw, 142px);
        object-fit: contain;
        flex: 0 0 auto;
        filter: drop-shadow(0 16px 32px rgba(59, 130, 246, 0.34));
      }

.menu-item[data-index='1'],
      .menu-item[data-index='3'],
      .menu-item[data-index='4'],
      .menu-item[data-index='5'] {
        gap: 10px;
        padding: 12px 10px 14px;
      }

.menu-icon-vote {
        width: 142px;
        width: clamp(108px, 7.4vw, 142px);
        height: 142px;
        height: clamp(108px, 7.4vw, 142px);
        object-fit: contain;
        filter: drop-shadow(0 16px 34px rgba(59, 130, 246, 0.3));
      }

.menu-item[data-index='0'] .menu-icon,
      .menu-item[data-index='2'] .menu-icon {
        /* PNG-ovi su trimovani (bez praznih margina) i sadrzaj im je
           TACNO u centru platna — ikona sad zivi cela UNUTAR kartice,
           flex centriranje je savrseno bez transform trikova.
           (Ranije: 150% + overflow + necentriran sadrzaj u fajlu →
           ikona "gore-levo" na kartici.) */
        width: auto;
        height: 100%;
        max-width: 92%;
        max-height: none;
        flex: 0 0 auto;
      }

.menu-item[data-index='0'] span,
      .menu-item[data-index='2'] span {
        display: none;
      }

.menu-item.active {
        border-color: rgba(133, 181, 255, 0.72);
        background:
          linear-gradient(180deg, rgba(23, 35, 64, 0.98), rgba(9, 16, 34, 0.96));
        box-shadow:
          0 0 0 1px rgba(147, 187, 255, 0.24),
          0 0 0 4px rgba(78, 122, 255, 0.08),
          0 18px 48px rgba(0, 0, 0, 0.44),
          0 0 34px rgba(67, 123, 255, 0.44);
      }

/* Fokus/hover zoom — scale KOMPONOVAN sa translateY lift-om
         (transform zamenjuje ceo value, bez translateY kartica bi skocila
         nazad u grid poziciju). Samo transform se animira — Tizen-safe. */

.menu-item[data-index='0'].active,
      .menu-item[data-index='2'].active,
      .menu-item[data-index='0']:hover,
      .menu-item[data-index='2']:hover {
        transform: translateY(-204px) scale(1.045);
      }

.menu-item[data-index='1'].active,
      .menu-item[data-index='3'].active,
      .menu-item[data-index='4'].active,
      .menu-item[data-index='5'].active,
      .menu-item[data-index='1']:hover,
      .menu-item[data-index='3']:hover,
      .menu-item[data-index='4']:hover,
      .menu-item[data-index='5']:hover {
        transform: translateY(-170px) scale(1.045);
      }

/* .active::before/::after uklonjeni — pseudo overlay-i skinuti sa
         .menu-item (Tizen pravilo #5), pa ovi selektori nemaju base rule. */

.menu-item:focus {
        border-color: #b7d6ff;
        box-shadow:
          0 0 0 1px rgba(198, 226, 255, 0.78),
          0 0 0 4px rgba(147, 201, 255, 0.24),
          0 0 38px rgba(122, 178, 255, 0.72),
          0 24px 56px rgba(0, 0, 0, 0.42);
        color: #ffffff;
      }

.menu-item:focus-visible {
        border-color: #b7d6ff;
        box-shadow:
          0 0 0 1px rgba(198, 226, 255, 0.78),
          0 0 0 4px rgba(147, 201, 255, 0.24),
          0 0 38px rgba(122, 178, 255, 0.72),
          0 24px 56px rgba(0, 0, 0, 0.42);
        color: #ffffff;
      }

.menu-item span {
        position: relative;
        z-index: 1;
        max-width: 84%;
        line-height: 1.14;
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
      }

.menu-item[data-index='1'] span,
      .menu-item[data-index='3'] span,
      .menu-item[data-index='4'] span,
      .menu-item[data-index='5'] span {
        display: block;
        margin-top: 0;
        min-height: 2.3em;
        display: flex;
        align-items: flex-start;
        justify-content: center;
      }

.vote-panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 5;
        display: flex;
        align-items: stretch;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.24s ease;
      }

.vote-panel.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }

.vote-panel-backdrop {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background:
          linear-gradient(90deg, rgba(3, 8, 18, 0.94) 0%, rgba(3, 8, 18, 0.84) 36%, rgba(3, 8, 18, 0.4) 68%, rgba(3, 8, 18, 0.18) 100%),
          radial-gradient(circle at 78% 18%, rgba(97, 173, 255, 0.14), transparent 28%);
      }

.vote-panel-shell {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-rows: auto auto 1fr auto;
        gap: 18px;
        width: 1460px;
        width: min(95vw, 1460px);
        min-height: 100vh;
        padding: 28px 28px 24px;
        box-sizing: border-box;
      }

.vote-panel-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
      }

.vote-panel-header > * + * {
  margin-left: 20px;
      }

.vote-panel-eyebrow {
        color: rgba(155, 205, 255, 0.86);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
      }

.vote-panel-title {
        margin: 6px 0 0;
        color: #ffffff;
        font-size: 54px;
        font-size: clamp(34px, 3vw, 54px);
        font-weight: 900;
        letter-spacing: -0.04em;
      }

.vote-panel-subtitle {
        margin: 10px 0 0;
        max-width: 760px;
        color: rgba(223, 236, 255, 0.76);
        font-size: 15px;
        line-height: 1.5;
      }

.vote-live-status {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
      }

.vote-live-status > * + * {
  margin-top: 8px;
      }

.vote-live-chip,
      .vote-count-chip {
        display: inline-flex;
        align-items: center;
        min-height: 34px;
        padding: 0 14px;
        border-radius: 999px;
        border: 1px solid rgba(132, 182, 255, 0.16);
        background: rgba(13, 22, 43, 0.62);
        color: rgba(235, 242, 255, 0.92);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

.vote-flow-strip {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
      }

.vote-flow-step {
        position: relative;
        min-height: 86px;
        padding: 14px 16px;
        border-radius: 22px;
        border: 1px solid rgba(127, 156, 214, 0.14);
        background: linear-gradient(180deg, rgba(11, 18, 35, 0.82), rgba(7, 12, 24, 0.72));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
      }

.vote-flow-step.is-active {
        border-color: rgba(132, 188, 255, 0.44);
        box-shadow:
          0 0 0 1px rgba(132, 188, 255, 0.18),
          0 0 22px rgba(74, 143, 255, 0.18),
          inset 0 1px 0 rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
      }

.vote-flow-index {
        color: rgba(141, 196, 255, 0.92);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.16em;
        text-transform: uppercase;
      }

.vote-flow-title {
        margin-top: 8px;
        color: #ffffff;
        font-size: 18px;
        font-weight: 800;
      }

.vote-flow-text {
        margin-top: 6px;
        color: rgba(215, 228, 255, 0.72);
        font-size: 13px;
        line-height: 1.4;
      }

.vote-stage-layout {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(360px, 420px);
        gap: 18px;
        align-items: stretch;
      }

.vote-main-card,
      .vote-ranking-card,
      .vote-candidate-card {
        position: relative;
        border-radius: 28px;
        border: 1px solid rgba(126, 155, 214, 0.16);
        background: linear-gradient(180deg, rgba(10, 17, 33, 0.86), rgba(7, 12, 24, 0.76));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 42px rgba(0, 0, 0, 0.22);
        overflow: hidden;
      }

.vote-main-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 320px;
        min-height: 380px;
      }

.vote-main-copy {
        padding: 28px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 18px;
      }

.vote-main-copy > * + * {
  margin-top: 18px;
      }

.vote-main-kicker {
        display: inline-flex;
        align-items: center;
        width: -moz-fit-content;
        width: fit-content;
        min-height: 34px;
        padding: 0 14px;
        border-radius: 999px;
        background: rgba(64, 118, 230, 0.14);
        border: 1px solid rgba(129, 171, 255, 0.16);
        color: rgba(219, 231, 255, 0.88);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }

.vote-main-film {
        margin: 0;
        color: #ffffff;
        font-size: 48px;
        font-size: clamp(34px, 3vw, 48px);
        font-weight: 900;
        line-height: 0.98;
        letter-spacing: -0.04em;
      }

.vote-main-meta {
        color: rgba(222, 234, 255, 0.84);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

.vote-main-description {
        margin: 0;
        max-width: 560px;
        color: rgba(225, 236, 255, 0.78);
        font-size: 15px;
        line-height: 1.56;
      }

.vote-main-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
      }

.vote-main-stats > * + * {
  margin-left: 12px;
      }

.vote-stat {
        display: inline-flex;
        flex-direction: column;
        gap: 4px;
        min-width: 136px;
        padding: 12px 14px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(137, 173, 255, 0.1);
      }

.vote-stat > * + * {
  margin-top: 4px;
      }

.vote-stat-label {
        color: rgba(178, 201, 240, 0.72);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }

.vote-stat-value {
        color: #ffffff;
        font-size: 22px;
        font-weight: 900;
      }

.vote-main-visual {
        position: relative;
        overflow: hidden;
        background-image: var(--vote-feature-cover);
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
      }

.vote-main-visual::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background:
          linear-gradient(90deg, rgba(7, 12, 24, 0.96) 0%, rgba(7, 12, 24, 0.72) 12%, rgba(7, 12, 24, 0.16) 26%, rgba(7, 12, 24, 0) 42%, rgba(7, 12, 24, 0) 58%, rgba(7, 12, 24, 0.18) 74%, rgba(7, 12, 24, 0.74) 88%, rgba(7, 12, 24, 0.96) 100%),
          linear-gradient(180deg, rgba(7, 12, 24, 0.94) 0%, rgba(7, 12, 24, 0.34) 16%, rgba(7, 12, 24, 0.04) 34%, rgba(7, 12, 24, 0.04) 64%, rgba(7, 12, 24, 0.32) 82%, rgba(7, 12, 24, 0.92) 100%),
          radial-gradient(86% 82% at 50% 50%, rgba(7, 12, 24, 0) 38%, rgba(7, 12, 24, 0.1) 56%, rgba(7, 12, 24, 0.34) 74%, rgba(7, 12, 24, 0.78) 100%);
      }

.vote-main-visual::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background:
          radial-gradient(64% 86% at 50% 50%, rgba(120, 177, 255, 0.14) 0%, rgba(120, 177, 255, 0.06) 38%, rgba(120, 177, 255, 0) 64%),
          linear-gradient(90deg, rgba(20, 70, 132, 0.22) 0%, rgba(20, 70, 132, 0) 16%, rgba(20, 70, 132, 0) 84%, rgba(20, 70, 132, 0.18) 100%);
        mix-blend-mode: screen;
        opacity: 0.82;
        box-shadow: inset 0 0 42px rgba(8, 13, 26, 0.58), inset 0 0 120px rgba(8, 13, 26, 0.28);
      }

.vote-ranking-card {
        padding: 22px;
        display: flex;
        flex-direction: column;
        gap: 14px;
      }

.vote-ranking-card > * + * {
  margin-top: 14px;
      }

.vote-ranking-title {
        color: #ffffff;
        font-size: 22px;
        font-weight: 800;
      }

.vote-ranking-subtitle {
        color: rgba(188, 206, 238, 0.72);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }

.vote-ranking-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
      }

.vote-ranking-list > * + * {
  margin-top: 10px;
      }

.vote-ranking-item {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        padding: 12px 14px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(132, 173, 255, 0.08);
      }

.vote-ranking-rank {
        color: rgba(145, 198, 255, 0.92);
        font-size: 16px;
        font-weight: 900;
      }

.vote-ranking-name {
        color: #ffffff;
        font-size: 15px;
        font-weight: 700;
      }

.vote-ranking-votes {
        color: rgba(230, 240, 255, 0.84);
        font-size: 13px;
        font-weight: 700;
      }

.vote-candidates-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
      }

.vote-candidate-card {
        min-height: 230px;
        position: relative;
        border-radius: 24px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(132, 173, 255, 0.08);
        transition:
          transform 0.2s ease,
          border-color 0.2s ease,
          box-shadow 0.2s ease,
          background 0.2s ease;
      }

.vote-candidate-card.is-active {
        transform: translateY(-4px) scale(1.02);
        border-color: rgba(146, 193, 255, 0.68);
        background: linear-gradient(180deg, rgba(28, 42, 72, 0.72), rgba(10, 18, 34, 0.92));
        box-shadow:
          0 0 0 1px rgba(168, 204, 255, 0.2),
          0 18px 40px rgba(0, 0, 0, 0.34),
          0 0 32px rgba(78, 132, 255, 0.2);
      }

.vote-candidate-card.is-voted {
        border-color: rgba(111, 206, 255, 0.48);
        box-shadow:
          0 0 0 1px rgba(111, 206, 255, 0.18),
          0 18px 36px rgba(0, 0, 0, 0.28),
          0 0 26px rgba(67, 189, 255, 0.18);
      }

.vote-candidate-card.is-voted::after {
        content: 'Tvoj glas';
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 10px;
        border-radius: 999px;
        background: rgba(18, 131, 221, 0.24);
        border: 1px solid rgba(104, 199, 255, 0.26);
        color: #dff4ff;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

.vote-candidate-cover {
        position: relative;
        overflow: hidden;
        height: 140px;
        background-image: var(--candidate-cover);
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
      }

.vote-candidate-cover::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background:
          linear-gradient(90deg, rgba(10, 16, 30, 0.88) 0%, rgba(10, 16, 30, 0.32) 18%, rgba(10, 16, 30, 0) 38%, rgba(10, 16, 30, 0) 62%, rgba(10, 16, 30, 0.34) 82%, rgba(10, 16, 30, 0.88) 100%),
          linear-gradient(180deg, rgba(10, 16, 30, 0.82) 0%, rgba(10, 16, 30, 0.16) 20%, rgba(10, 16, 30, 0.02) 38%, rgba(10, 16, 30, 0.12) 70%, rgba(10, 16, 30, 0.84) 100%),
          radial-gradient(90% 86% at 50% 46%, rgba(10, 16, 30, 0) 34%, rgba(10, 16, 30, 0.16) 58%, rgba(10, 16, 30, 0.56) 82%, rgba(10, 16, 30, 0.92) 100%);
      }

.vote-candidate-copy {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 14px;
      }

.vote-candidate-copy > * + * {
  margin-top: 8px;
      }

.vote-candidate-title {
        color: #ffffff;
        font-size: 19px;
        font-weight: 800;
        line-height: 1.05;
      }

.vote-candidate-meta {
        color: rgba(211, 225, 250, 0.76);
        font-size: 12px;
        font-weight: 700;
      }

.vote-candidate-badge {
        display: inline-flex;
        align-items: center;
        width: -moz-fit-content;
        width: fit-content;
        min-height: 26px;
        padding: 0 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(136, 174, 255, 0.12);
        color: rgba(232, 240, 255, 0.88);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

.vote-panel-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        color: rgba(203, 219, 246, 0.72);
        font-size: 13px;
      }

.vote-panel-footer > * + * {
  margin-left: 18px;
      }

.vote-panel-hint {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
      }

.vote-panel-hint > * + * {
  margin-left: 12px;
      }

.vote-panel-hint span {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 0 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(132, 171, 255, 0.12);
      }

.footer-status {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 0 1vw;
        color: rgba(225, 234, 255, 0.66);
        font-size: 21px;
      }

.footer-status > * + * {
  margin-left: 24px;
      }

.footer-meta {
        display: flex;
        align-items: center;
        gap: 18px;
      }

.footer-meta > * + * {
  margin-left: 18px;
      }

.wifi-icon {
        width: 20px;
        height: 20px;
        position: relative;
      }

.wifi-icon::before,
      .wifi-icon::after,
      .wifi-icon span {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        border: 2px solid rgba(134, 176, 255, 0.72);
        border-top-color: transparent;
        border-left-color: transparent;
        border-right-color: transparent;
        border-radius: 50%;
      }

.wifi-icon::before {
        top: 1px;
        width: 18px;
        height: 10px;
      }

.wifi-icon::after {
        top: 5px;
        width: 12px;
        height: 7px;
      }

.wifi-icon span {
        top: 10px;
        width: 6px;
        height: 4px;
      }

/* Nema mreze — lukovi pocrvene (navigator.onLine false / NETWORK NONE) */

.wifi-icon.is-offline::before,
      .wifi-icon.is-offline::after,
      .wifi-icon.is-offline span {
        border-bottom-color: rgba(255, 107, 107, 0.92);
      }

/* Ethernet (RJ45) SVG ikona — ista plava kao wifi lukovi */

.net-icon {
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(134, 176, 255, 0.72);
      }

.footer-divider {
        width: 1px;
        height: 20px;
        background: rgba(160, 188, 255, 0.24);
      }

.channel-panel {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 4;
        display: flex;
        align-items: stretch;
        opacity: 0;
        /* NE koristimo visibility:hidden — Tizen 6 Chromium 76 tretira to kao
           display:none za image loading: slike u panel-u SE NE preuzimaju
           dok je hidden. Posledica: kad korisnik klikne Back iz fullscreen-a,
           burst loadovanja 12 logo image-a uzima 6s.
           Resenje: opacity:0 + off-screen translate + pointer-events:none.
           Panel ostaje "vidljiv" za browser engine pa slike loaduju u
           background-u — Back daje instant prelaz. */
        pointer-events: none;
        transform: translateX(-110%);
        transition: opacity 0.24s ease, transform 0s linear 0.24s;
      }

.channel-osd {
        position: absolute;
        /* TV safe area — podignut na 96px (bio 68) jer logo na dnu OSD-a je
           i dalje zalazio ispod overscan crop-a na nekim TV-evima. */
        left: 56px;
        right: 56px;
        bottom: 96px;
        z-index: 3;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 20px;
        align-items: stretch;
        opacity: 0;
        visibility: hidden;
        transform: translateY(22px);
        pointer-events: none;
        transition: opacity 0.22s ease, transform 0.22s ease;
      }

.channel-osd.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
      }

.channel-osd-main,
      .channel-osd-side {
        background: linear-gradient(180deg, rgba(7, 14, 28, 0.96), rgba(5, 11, 22, 0.94));
        border: 1px solid rgba(88, 153, 255, 0.24);
        box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
      }

.channel-osd-main {
        border-radius: 28px;
        display: grid;
        grid-template-columns: 184px minmax(0, 1fr);
        padding: 24px 28px;
      }

.channel-osd-logo {
        min-height: 92px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 22px;
        background: rgba(3, 8, 18, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.06);
        overflow: hidden;
      }

.channel-osd-logo .channel-logo-image {
        max-width: 132px;
        max-height: 64px;
      }

.channel-osd-copy {
        padding-left: 24px; /* umesto grid gap-a (Tizen) */
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

.channel-osd-kicker {
        color: #1fb1ff;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }

.channel-osd-title {
        margin-top: 8px;
        color: white;
        font-size: 44px;
        font-weight: 800;
        line-height: 1.08;
      }

.channel-osd-meta {
        margin-top: 12px;
        color: rgba(225, 235, 247, 0.85);
        font-size: 25px;
      }

.channel-osd-progress {
        margin-top: 14px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
      }

.channel-osd-progress .channel-osd-bar {
        margin: 0 12px; /* umesto grid gap-a (Tizen) */
      }

.channel-osd-time {
        color: rgba(255, 255, 255, 0.85);
        font-size: 18px;
        font-weight: 600;
      }

.channel-osd-bar {
        height: 8px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        overflow: hidden;
      }

.channel-osd-bar span {
        display: block;
        width: 18%;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #0f98ff, #4cc7ff);
      }

.channel-osd-side {
        border-radius: 24px;
        min-width: 240px;
        padding: 18px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
      }

.channel-osd-side > * + * {
  margin-top: 8px;
      }

.channel-osd-side-label {
        color: rgba(160, 207, 255, 0.95);
        font-size: 17px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
      }

.channel-osd-side-title {
        color: white;
        font-size: 26px;
        font-weight: 700;
        line-height: 1.18;
      }

.channel-osd-side-meta {
        color: rgba(225, 235, 247, 0.85);
        font-size: 20px;
      }

.channel-panel.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
        /* Bez delay-a kad otvara — transform odmah pomera u kadar, opacity prati. */
        transition: opacity 0.24s ease, transform 0s linear 0s;
      }

.channel-panel-backdrop {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: linear-gradient(90deg, rgba(2, 6, 14, 0.92) 0%, rgba(2, 6, 14, 0.78) 46%, rgba(2, 6, 14, 0.12) 100%);
        -webkit-backdrop-filter: blur(4px);
                backdrop-filter: blur(4px);
      }

.channel-panel-shell {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        display: grid;
        grid-template-columns: 78px minmax(520px, 620px) 0;
        gap: 10px;
        width: 820px;
        width: min(64vw, 820px);
        height: 100vh;            /* fiksna visina umesto min-height */
        max-height: 100vh;
        padding: 20px 14px;
        box-sizing: border-box;
        overflow: hidden;         /* virtual scroll spacer-i ne smeju da rastu shell */
        transition: none;
      }

.channel-panel-shell.groups-hidden {
        grid-template-columns: 78px 0 minmax(520px, 620px);
      }

.channel-panel-shell.channel-epg-inline {
        grid-template-columns: 78px 0 minmax(520px, 620px) minmax(540px, 700px);
        width: 1500px;
        width: min(98vw, 1500px);
      }

.channel-panel-shell.channel-preview-open {
        grid-template-columns: 78px 0 minmax(480px, 540px) minmax(960px, 1240px);
        width: 1860px;
        width: min(99vw, 1860px);
      }

.channel-panel-shell.list-hidden {
        /* Samo grupe vidljive (nav mode pre nego sto se uleti u listu kanala).
           Bumpa sa 360 na 520 da group-row-ovi ne deluju stesnjeni. */
        grid-template-columns: 78px minmax(420px, 520px) 0;
        width: 640px;
        width: min(54vw, 640px);
      }

.channel-panel-shell.epg-open {
        /* 1fr BEZ minmax(0,...) — Chromium 76 minmax(0,1fr) kolapsira
           kolonu (Tizen pravilo #2) pa je EPG bio sabijen/prelomljen.
           Preko cele stranice (user request). */
        grid-template-columns: 78px 1fr;
        width: 1860px;
        width: min(97vw, 1860px);
      }

.channel-panel-shell.epg-open .list-card,
      .channel-panel-shell.epg-open .groups-card {
        display: none;
      }

.channel-panel-shell:not(.groups-hidden) {
        /* Groups i channels kolone ISTE sirine — TV jednoobrazan UX.
           Pre: groups 300-360, channels 360-460 (asimetrija).
           Sad: oba 420-520, paralelne kao mirror. */
        grid-template-columns: 78px minmax(420px, 520px) minmax(420px, 520px);
        width: 1320px;
        width: min(94vw, 1320px);
      }

/* Fokus na nav koloni (panelSection === "nav") → prosirena kolona sa
         labelama pored ikonica. U nav modu shell ima tacno klase
         list-hidden + nav-expanded (3 klase = jaca specificnost od
         :not(.groups-hidden) pravila iznad). Bez transition-a — instant
         (Tizen pravilo #15b). */

.channel-panel-shell.nav-expanded.list-hidden {
        grid-template-columns: 330px minmax(420px, 520px) 0;
        width: 900px;
        width: min(66vw, 900px);
      }

.nav-expanded .nav-column {
        align-items: stretch;
        padding: 18px 14px;
      }

.nav-expanded .side-nav {
        align-items: stretch;
      }

.nav-expanded .side-nav-item {
        width: 100%;
        justify-content: flex-start;
        padding: 0 20px;
      }

.nav-expanded .side-nav-label {
        display: inline;
        /* margin umesto flex gap-a — Chromium 76 (Tizen 6) podrzava gap
           SAMO na grid-u; flex gap stize tek u Chromium 84. Na TV-u je
           gap bio ignorisan pa su ikona i tekst bili slepljeni. */
        margin-left: 38px;
        font-size: 21px;
        font-weight: 600;
        letter-spacing: 0.01em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

.nav-expanded .side-nav-icon {
        flex: 0 0 auto;
        display: inline-flex;
      }

.nav-column,
      .list-card,
      .groups-card,
      .preview-card,
      .program-card {
        background: rgba(6, 13, 24, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
      }

.nav-column {
        border-radius: 28px;
        padding: 18px 8px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
      }

.side-nav {
        display: flex;
        flex-direction: column;
        padding: 0;
        width: 100%;
        align-items: center;
      }

/* Vertikalni razmak marginom umesto flex gap-a (Chromium 76). */

.side-nav .side-nav-item + .side-nav-item {
        margin-top: 8px;
      }

.side-nav-item {
        position: relative;
        width: 52px;
        height: 52px;
        border-radius: 18px;
        border: 1px solid rgba(126, 159, 214, 0.08);
        background: linear-gradient(180deg, rgba(13, 20, 36, 0.48), rgba(10, 15, 28, 0.18));
        color: rgba(255, 255, 255, 0.82);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        cursor: pointer;
        outline: none;
        overflow: visible;
        /* BEZ transition-a — na Tizen 6 opacity transition na fokus
           promeni = ~220ms main-thread repaint po koraku strelice
           (pravilo #15b). Favorites sidebar (is-focused, bez transition-a)
           je zato bio brz a ovaj spor. Promene fokusa moraju INSTANT. */
      }

.side-nav-item::before {
        content: '';
        position: absolute;
        top: 8px;
        right: 8px;
        bottom: 8px;
        left: 8px;
        border-radius: 14px;
        background: rgba(18, 148, 255, 0.18);
        opacity: 0;
        z-index: 0;
      }

.side-nav-item::after {
        content: '';
        position: absolute;
        top: 1px;
        right: 1px;
        bottom: 1px;
        left: 1px;
        border-radius: 17px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 40%, rgba(255, 255, 255, 0));
        opacity: 0.44;
        pointer-events: none;
      }

.side-nav-item > * {
        position: relative;
        z-index: 1;
      }

.side-nav-item.is-active {
        background: linear-gradient(180deg, rgba(16, 46, 88, 0.72), rgba(10, 27, 56, 0.48));
        border-color: rgba(115, 187, 255, 0.78);
        box-shadow:
          0 0 0 1px rgba(90, 168, 255, 0.24),
          0 0 24px rgba(18, 148, 255, 0.3),
          0 12px 24px rgba(0, 0, 0, 0.2);
      }

.side-nav-item.is-active::before,
      .side-nav-item:hover::before {
        opacity: 1;
      }

.side-nav-item:focus-visible::before {
        opacity: 1;
      }

.side-nav-item:hover {
        color: white;
        border-color: rgba(162, 207, 255, 0.82);
        background: linear-gradient(180deg, rgba(18, 44, 79, 0.54), rgba(10, 23, 46, 0.32));
        box-shadow:
          0 0 0 1px rgba(165, 212, 255, 0.26),
          0 0 24px rgba(88, 160, 255, 0.24);
      }

.side-nav-item:focus-visible {
        color: white;
        border-color: rgba(162, 207, 255, 0.82);
        background: linear-gradient(180deg, rgba(18, 44, 79, 0.54), rgba(10, 23, 46, 0.32));
        box-shadow:
          0 0 0 1px rgba(165, 212, 255, 0.26),
          0 0 24px rgba(88, 160, 255, 0.24);
      }

.side-nav-icon {
        font-size: 22px;
        line-height: 1;
      }

.side-nav-label {
        display: none;
      }

.nav-footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        padding: 0;
      }

.nav-footer > * + * {
  margin-top: 10px;
      }

.footer-chip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.78);
        font-size: 0;
      }

.footer-dot {
        width: 22px;
        height: 22px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 700;
        color: white;
      }

.footer-dot.red { background: #ec3b2f; }

.footer-dot.green { background: #18b54a; }

.footer-dot.yellow { background: #efc019; color: #111827; }

.footer-dot.gray { background: rgba(255, 255, 255, 0.12); }

.list-card,
      .groups-card {
        position: relative;
        border-radius: 24px;
        padding: 0 12px 10px;
        display: flex;
        flex-direction: column;
        min-height: 0;
        min-width: 0;
        overflow: hidden;
      }

.list-card {
        padding-left: 6px;
        padding-right: 6px;
      }

.groups-card {
        padding-top: 0;
      }

.list-card::before,
      .list-card::after,
      .groups-card::before,
      .groups-card::after {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 42px;
        height: 42px;
        border-radius: 999px;
        background-color: transparent;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 26px 26px;
        border: none;
        box-shadow: none;
        filter: drop-shadow(0 0 10px rgba(28, 150, 255, 0.42)) drop-shadow(0 0 24px rgba(28, 150, 255, 0.18));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.18s ease;
        z-index: 2;
      }

.list-card::before,
      .groups-card::before {
        content: '';
        background-image: url('/up_48.png');
        top: 46px;
      }

.list-card::after,
      .groups-card::after {
        content: '';
        background-image: url('/down_48.png');
        bottom: 2px;
      }

.list-card.has-scroll-up::before,
      .list-card.has-scroll-down::after,
      .groups-card.has-scroll-up::before,
      .groups-card.has-scroll-down::after {
        opacity: 1;
      }

.groups-card {
        opacity: 1;
        transform: translateX(0);
        transition: none;
      }

.channel-panel-shell:not(.groups-hidden) .list-card {
        padding-left: 6px;
        padding-right: 6px;
      }

.channel-panel-shell:not(.groups-hidden) .list-card .card-header {
        display: grid;
      }

.channel-panel-shell.groups-hidden .groups-card {
        opacity: 0;
        transform: translateX(-12px);
        pointer-events: none;
        overflow: hidden;
        padding-left: 0;
        padding-right: 0;
        border-color: transparent;
        box-shadow: none;
      }

.channel-panel-shell.list-hidden .list-card {
        opacity: 0;
        transform: translateX(12px);
        pointer-events: none;
        overflow: hidden;
        padding-left: 0;
        padding-right: 0;
        border-color: transparent;
        box-shadow: none;
      }

.card-header {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 76px;
        align-items: center;
        margin-bottom: 5px;
        margin-left: -6px;
        margin-right: -6px;
        min-height: 54px;
        padding: 15px 18px 15px;
        border-radius: 24px 24px 0 0;
        border: 1px solid rgba(96, 177, 255, 0.16);
        border-bottom: 0;
        background:
          radial-gradient(140% 120% at 50% -18%, rgba(82, 134, 214, 0.36) 0%, rgba(53, 97, 173, 0.16) 28%, rgba(27, 53, 95, 0.06) 48%, rgba(8, 15, 26, 0) 74%),
          radial-gradient(110% 92% at 50% 0%, rgba(173, 227, 255, 0.12) 0%, rgba(173, 227, 255, 0.03) 34%, rgba(173, 227, 255, 0) 62%),
          linear-gradient(180deg, rgba(29, 43, 69, 0.9) 0%, rgba(14, 24, 40, 0.86) 52%, rgba(8, 15, 26, 0.62) 100%),
          linear-gradient(90deg, rgba(12, 152, 255, 0.08), rgba(12, 152, 255, 0));
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.14),
          inset 0 2px 0 rgba(169, 225, 255, 0.12),
          inset 0 14px 24px rgba(107, 161, 236, 0.08),
          inset 0 -10px 18px rgba(0, 0, 0, 0.18),
          0 10px 20px rgba(0, 0, 0, 0.14),
          0 0 26px rgba(26, 118, 210, 0.1);
        color: white;
        overflow: hidden;
      }

.card-header > * {
        position: relative;
        z-index: 1;
      }

.card-header::before {
        content: '';
        position: absolute;
        left: 14px;
        right: 14px;
        top: 0;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(173, 227, 255, 0.8) 18%, rgba(255, 255, 255, 0.92) 50%, rgba(173, 227, 255, 0.8) 82%, rgba(255, 255, 255, 0) 100%);
        box-shadow: 0 0 16px rgba(93, 194, 255, 0.32);
        opacity: 0.95;
      }

.card-header::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 1px;
        background: linear-gradient(90deg, rgba(59, 176, 255, 0.1) 0%, rgba(59, 176, 255, 0.28) 12%, rgba(108, 210, 255, 0.46) 50%, rgba(59, 176, 255, 0.28) 88%, rgba(59, 176, 255, 0.1) 100%);
        box-shadow: 0 0 10px rgba(59, 176, 255, 0.18);
        opacity: 0.92;
      }

.card-header .card-title,
      .card-header .card-count {
        text-shadow: 0 1px 0 rgba(6, 12, 20, 0.5), 0 0 14px rgba(103, 183, 255, 0.08);
      }

.card-header .card-title-icon {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 14px rgba(62, 172, 255, 0.08);
      }

.card-title {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.1;
        min-width: 0;
        position: relative;
        z-index: 1;
        justify-self: start;
        transform: translateY(1px);
      }

.card-title > * + * {
  margin-left: 10px;
      }

.card-title-text {
        letter-spacing: 0.01em;
        line-height: 1.1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

.card-title-text.is-group-active {
        color: #f4fbff;
        text-shadow: 0 0 18px rgba(87, 190, 255, 0.16);
      }

.card-title-icon {
        width: 28px;
        height: 28px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex: 0 0 auto;
      }

.card-title-icon img {
        width: 18px;
        height: 18px;
        object-fit: contain;
      }

.card-title-icon.is-fallback {
        background: linear-gradient(180deg, rgba(18, 148, 255, 0.22), rgba(18, 148, 255, 0.08));
      }

.card-count {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 76px;
        font-size: 12px;
        font-weight: 600;
        line-height: 1;
        color: rgba(222, 235, 248, 0.64);
        letter-spacing: 0.03em;
        position: relative;
        z-index: 1;
        text-align: right;
        justify-self: end;
        transform: translateY(1px);
      }

.channel-list,
      .groups-list {
        display: flex;
        flex-direction: column;
        gap: 4px;
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
      }

.channel-list > * + *,
      .groups-list > * + * {
  margin-top: 4px;
      }

.channel-list {
        margin-left: -4px;
        margin-right: -4px;
        margin-top: 2px;
        padding-left: 4px;
        padding-right: 4px;
        /* Virtual scroll container — virtualni spacer-i (1870 * 94px = 175kb px)
           rastu HEIGHT preko parent-a, treba overflow-y: auto da scroll-uje
           UNUTAR liste umesto da pomera ceo panel. */
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
      }

.channel-list-spacer {
        flex: 0 0 auto;
        width: 100%;
        pointer-events: none;
      }

.channel-list::-webkit-scrollbar,
      .groups-list::-webkit-scrollbar {
        width: 0;
        height: 0;
      }

.channel-row,
      .group-row {
        min-height: 90px;
        border-radius: 14px;
        border: 1px solid transparent;
        background: rgba(255, 255, 255, 0.02);
        color: white;
        position: relative;
        /* Fokus zoom (scale na row/logo) je INSTANT — transform transition
           na elementu sa border-radius + shadow = main-thread repaint po
           frame-u na Tizen 6 (pravilo #15b). */
      }

.channel-row {
        /* Flex umesto grid — Chromium 76 (Tizen 6) ima bug u CSS Grid
           implementaciji sa minmax(0, 1fr), gde svi children kolapsiraju
           na istu kolonu. Flex sa fixed width-ima daje isti vizuelan
           rezultat i radi pouzdano. */
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 8px 16px;
        text-align: left;
      }

.channel-row > * + * {
  margin-left: 0;
      }

.channel-row > .channel-brand { flex: 0 0 96px; }

.channel-row > .channel-divider { flex: 0 0 12px; margin: 0 auto; }

.channel-row > .channel-copy { flex: 1 1 auto; min-width: 0; }

.channel-row > .channel-status { flex: 0 0 72px; }

.channel-panel-shell:not(.groups-hidden) .channel-row {
        padding: 8px 16px;
      }

.channel-panel-shell:not(.groups-hidden) .channel-divider,
      .channel-panel-shell:not(.groups-hidden) .channel-copy,
      .channel-panel-shell:not(.groups-hidden) .channel-status {
        display: flex;
      }

.channel-panel-shell:not(.groups-hidden) .channel-divider {
        display: block;
      }

.group-row {
        /* Flex umesto grid — Chromium 76 (Tizen 6) ima bug u CSS Grid
           sa minmax(0, 1fr), kolapsira sve children u kolonu 1.
           Isti pattern kao channel-row (vidi gore). */
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0 16px;
        gap: 18px;
        text-align: left;
      }

.group-row > * + * {
  margin-left: 18px;
      }

.group-row > .group-row-brand { flex: 0 0 96px; }

.group-row > .group-row-name { flex: 1 1 auto; min-width: 0; }

.group-row > .group-row-count { flex: 0 0 auto; }

.group-row > .group-row-arrow { flex: 0 0 28px; text-align: center; }

.channel-panel-shell:not(.groups-hidden) .group-row {
        /* Match channel-row: min-height 90, padding 8/16 (proporcionalno
           preracunato za grid). TV-friendly redovi citljivi sa 3-4m. */
        min-height: 90px;
        padding: 8px 16px;
        gap: 18px;
      }

.group-row-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        /* Match .channel-brand: 96x64 (height postavlja parent min-height) */
        width: 96px;
        min-height: 64px;
        padding: 6px 7px;
        border-radius: 12px;
        background: linear-gradient(180deg, rgba(8, 14, 24, 0.92), rgba(4, 10, 18, 0.96));
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-sizing: border-box;
      }

.group-row-icon {
        width: 100%;
        height: 100%;
        border-radius: 8px;
        background: rgba(3, 8, 16, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.04);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
      }

.group-row-icon.is-fallback {
        background: linear-gradient(180deg, rgba(18, 148, 255, 0.22), rgba(18, 148, 255, 0.08));
      }

.group-row-icon-image {
        /* Match channel-logo-image (54px wrapper). Group icon proporcionalno
           ~54x54 da popuni brand box. */
        width: 54px;
        height: 54px;
        object-fit: contain;
        opacity: 0.95;
      }

.group-row-name {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        /* Match .channel-name 22px. */
        font-size: 22px;
        font-weight: 700;
      }

.group-row-count,
      .group-row-arrow {
        color: rgba(255, 255, 255, 0.72);
      }

.group-row-count {
        /* Match .channel-meta 16px. */
        font-size: 16px;
        font-weight: 700;
      }

.group-row-arrow {
        font-size: 22px;
        line-height: 1;
      }

.channel-row.is-active,
      .group-row.is-active {
        background: linear-gradient(90deg, rgba(13, 45, 82, 0.88), rgba(10, 24, 44, 0.82));
        border-color: rgba(49, 165, 255, 0.92);
        box-shadow: 0 0 0 1px rgba(20, 122, 216, 0.32), 0 0 24px rgba(18, 148, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
        transform: scale(1.012);
        z-index: 1;
      }

.channel-row.is-active::before,
      .group-row.is-active::before {
        content: '';
        position: absolute;
        top: -1px;
        right: -1px;
        bottom: -1px;
        left: -1px;
        border-radius: inherit;
        background: linear-gradient(90deg, rgba(86, 196, 255, 0.2), rgba(86, 196, 255, 0), rgba(86, 196, 255, 0.14));
        opacity: 0.75;
        pointer-events: none;
      }

.channel-row.is-active .channel-name {
        color: #ffffff;
        text-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
      }

.channel-row.is-active .channel-meta {
        color: rgba(214, 235, 255, 0.9);
      }

.channel-row.is-active .channel-number,
      .channel-row.is-active .channel-status-icon {
        color: rgba(235, 245, 255, 0.9);
      }

.channel-row.is-active .channel-brand {
        background: linear-gradient(180deg, rgba(20, 30, 48, 0.9), rgba(7, 13, 22, 0.94));
        border-color: rgba(76, 199, 255, 0.26);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 18px rgba(16, 122, 228, 0.1);
        transform: scale(1.045);
      }

.group-row.is-active .group-row-brand {
        background: linear-gradient(180deg, rgba(24, 39, 62, 0.96), rgba(8, 15, 27, 0.98));
        border-color: rgba(118, 214, 255, 0.34);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 22px rgba(16, 122, 228, 0.16), 0 0 0 1px rgba(65, 182, 255, 0.12);
        transform: scale(1.055);
      }

.group-row.is-active .group-row-icon-image,
      .group-row.is-active .group-row-icon {
        transform: scale(1.08);
      }

.group-row.is-active .group-row-name {
        color: #ffffff;
        text-shadow: 0 0 16px rgba(132, 209, 255, 0.16);
      }

.group-row.is-active .group-row-count,
      .group-row.is-active .group-row-arrow {
        color: rgba(236, 246, 255, 0.94);
        text-shadow: 0 0 12px rgba(110, 198, 255, 0.18);
      }

.group-row.is-active {
        box-shadow: 0 0 0 1px rgba(20, 122, 216, 0.38), 0 0 28px rgba(18, 148, 255, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        transform: none;
      }

.group-row.is-active::before {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: linear-gradient(90deg, rgba(86, 196, 255, 0.24), rgba(86, 196, 255, 0.04), rgba(86, 196, 255, 0.16));
        opacity: 0.9;
      }

.channel-row.is-active .channel-logo-image,
      .channel-row.is-active .channel-logo-fallback,
      .channel-row.is-active .channel-logo-text {
        transform: scale(1.06);
        transform-origin: center center;
      }

.channel-number {
        color: rgba(255, 255, 255, 0.62);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-align: center;
        text-transform: uppercase;
        line-height: 1;
        padding: 0 4px 1px;
      }

.channel-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 96px;
        min-height: 64px;
        padding: 6px 7px;
        border-radius: 12px;
        background: linear-gradient(180deg, rgba(8, 14, 24, 0.92), rgba(4, 10, 18, 0.96));
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-sizing: border-box;
      }

.channel-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 54px;
        padding: 4px;
        border-radius: 8px;
        background: rgba(3, 8, 16, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.04);
        box-sizing: border-box;
        overflow: hidden;
      }

.channel-logo-text {
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
        letter-spacing: 0.02em;
        text-transform: uppercase;
      }

.channel-logo-text.is-brand {
        display: inline-flex;
        align-items: baseline;
        gap: 2px;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: -0.01em;
      }

.channel-logo-text.is-brand > * + * {
  margin-left: 2px;
      }

.channel-logo-text.is-brand strong {
        color: #ffffff;
        font-weight: 800;
      }

.channel-logo-text.is-brand em {
        color: #ff4f4f;
        font-style: normal;
        font-weight: 800;
      }

.channel-logo-text.is-brand.brand-gold em {
        color: #f4c542;
      }

.channel-logo-text.is-brand.brand-blue em {
        color: #43a4ff;
      }

.channel-logo-text.is-brand.brand-pink em {
        color: #ff4fa8;
      }

.channel-logo-image {
        width: auto;
        max-width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
      }

.channel-logo-fallback,
      .program-logo-fallback {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
      }

.channel-logo-text {      }

.channel-logo-fallback[hidden],
      .program-logo-fallback[hidden] {
        display: none;
      }

.channel-copy {
        min-width: 0;
        max-width: 100%;
        padding-left: 18px;
        margin-left: 0;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        overflow: hidden;
      }

.channel-copy > * + * {
  margin-top: 6px;
      }

.channel-divider {
        width: 1px;
        height: 40px;
        justify-self: center;
        align-self: center;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(134, 214, 255, 0.42) 45%, rgba(255, 255, 255, 0.04) 100%);
        box-shadow: 0 0 6px rgba(76, 188, 255, 0.14);
        opacity: 0.8;
      }

.channel-name {
        color: rgba(220, 230, 240, 0.92);
        font-size: 22px;
        font-weight: 700;
        line-height: 1.18;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
      }

.channel-meta {
        color: rgba(180, 195, 215, 0.7);
        font-size: 16px;
        line-height: 1.2;
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
      }

.channel-progress-track {
        position: relative;
        width: 248px;
        width: min(100%, 248px);
        height: 4px;
        margin-top: 1px;
        margin-bottom: 1px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        overflow: hidden;
      }

.channel-progress-fill {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #18b9ff 0%, #4cc7ff 52%, #79f2a0 100%);
        box-shadow: 0 0 14px rgba(24, 185, 255, 0.34);
      }

.channel-row.is-active .channel-progress-track {
        background: rgba(161, 221, 255, 0.16);
      }

.channel-row.is-active .channel-progress-fill {
        box-shadow: 0 0 18px rgba(92, 214, 255, 0.46);
      }

.channel-status {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
        justify-self: end;
        width: 72px;
      }

.channel-status > * + * {
  margin-top: 6px;
      }

.channel-status-top {
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-height: 26px;
      }

.channel-status-top > * + * {
  margin-left: 8px;
      }

.channel-status-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 28px;
        min-height: 22px;
        color: rgba(255, 255, 255, 0.55);
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 0.01em;
        line-height: 1;
      }

.channel-status-favorite {
        color: rgba(255, 255, 255, 0.55);
      }

.channel-status-favorite.is-favorite {
        color: #ffd84f;
        text-shadow: 0 0 12px rgba(255, 216, 79, 0.28);
      }

.channel-system-id {
        color: rgba(210, 225, 240, 0.88);
        font-size: 20px;
        font-weight: 800;
        letter-spacing: 0.02em;
        line-height: 1;
      }

.channel-row.is-active .channel-system-id,
      .channel-row.is-epg-target .channel-system-id {
        color: #ffffff;
      }

.channel-status-icon.is-available {
        color: #6ff58a;
        text-shadow: 0 0 12px rgba(111, 245, 138, 0.24);
      }

.channel-status-icon small {
        margin-left: 3px;
        font-size: 13px;
        font-weight: 700;
      }

.preview-column {
        display: none;
        grid-template-rows: 1fr 170px;
        gap: 14px;
        opacity: 1;
        transform: translateX(0);
        transition: opacity 0.18s ease, transform 0.18s ease;
        min-width: 0;
      }

.channel-panel-shell.preview-hidden .preview-column {
        display: none;
      }

.channel-panel-shell.channel-epg-inline .preview-column {
        display: grid;
        grid-template-rows: 1fr;
        grid-column: 4;
      }

.channel-panel-shell.channel-preview-open .preview-column {
        display: grid;
        grid-template-rows: auto;
        align-content: end;
        grid-column: 4;
      }

.channel-panel-shell.channel-preview-open .preview-card {
        display: none;
      }

.channel-panel-shell.channel-preview-open .program-card {
        grid-template-columns: 140px 1fr;
        padding: 22px 26px;
        align-self: end;
        align-items: start;
      }

.channel-panel-shell.channel-preview-open .program-card > div:nth-child(2) {
        padding-left: 20px; /* logo—tekst razmak, negativni margini racunaju 140+20 */
      }

.channel-panel-shell.channel-preview-open .program-logo {
        display: flex;
        min-height: 96px;
        padding-top: 0;
        justify-content: center;
        align-items: center;
        font-size: 36px;
      }

.channel-panel-shell.channel-preview-open .program-logo img {
        max-width: 124px;
        max-height: 80px;
      }

.channel-panel-shell.channel-preview-open .program-logo small {
        font-size: 18px;
      }

.channel-panel-shell.channel-preview-open .program-aside {
        display: none;
      }

/* Opis/traka/sledece se pruzaju ulevo ispod logoa (margin-left: -160px)
         — zato pocinju tek ispod logoa (96 px), i kad je naziv u jednom redu */

.channel-panel-shell.channel-preview-open .program-head {
        min-height: 96px;
      }

.channel-panel-shell.channel-preview-open .program-name {
        font-size: 28px;
        font-weight: 800;
        line-height: 1.18;
      }

.channel-panel-shell.channel-preview-open .program-live {
        display: grid;
        grid-template-columns: 1fr auto;
        margin-top: 4px;
        align-items: start;
      }

.channel-panel-shell.channel-preview-open .program-live .program-badge {
        margin-left: 10px; /* umesto grid gap-a (Tizen) */
      }

.channel-panel-shell.channel-preview-open .program-league {
        font-size: 22px;
        font-weight: 600;
      }

.channel-panel-shell.channel-preview-open .program-description {
        margin-top: 12px;
        margin-left: -160px;          /* 140 logo + 20 gap */
        width: calc(100% + 160px);
        color: rgba(226, 239, 250, 0.88);
        font-size: 19px;
        line-height: 1.4;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
      }

.channel-panel-shell.channel-preview-open .progress-row {
        margin-top: 10px;
        margin-left: -160px;
        width: calc(100% + 160px);
        grid-template-columns: 56px 1fr 56px;
      }

.channel-panel-shell.channel-preview-open .program-next {
        display: grid;
        grid-template-columns: auto 1fr auto;
        margin-top: 10px;
        padding-top: 12px;
        margin-left: -126px;
        width: calc(100% + 126px);
      }

.channel-panel-shell.channel-preview-open .program-next .program-next-title {
        margin: 0 12px; /* umesto grid gap-a (Tizen) */
      }

.channel-panel-shell.channel-epg-inline .preview-card,
      .channel-panel-shell.channel-epg-inline .program-card {
        display: none;
      }

.channel-panel-shell.epg-open .preview-column {
        display: grid;
        grid-template-rows: 1fr;
        grid-column: 2;
      }

.channel-panel-shell.epg-open .preview-card,
      .channel-panel-shell.epg-open .program-card {
        display: none;
      }

.channel-epg-card {
        /* Flex umesto grid (Tizen pravilo #2). Puna pozadina — bila
           providna pa se video probijao kroz sadrzaj. */
        display: none;
        border-radius: 28px;
        padding: 32px 36px;
        flex-direction: column;
        min-height: 0;
        background: linear-gradient(180deg, rgba(7, 14, 27, 0.97), rgba(5, 10, 21, 0.97));
        border: 1px solid rgba(96, 154, 255, 0.22);
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
      }

/* Vertikalni razmaci marginama umesto flex gap-a — Tizen
         (Chromium 63/76) gap tiho ignorise pa su header, pilule,
         TRENUTNO i lista slepljeni na TV-u. flex-shrink: 0 sprecava
         da lista stisne header/TRENUTNO kad nema mesta. */

.channel-epg-card > * + * {
        margin-top: 16px;
      }

.channel-epg-card > .channel-epg-header,
      .channel-epg-card > .channel-epg-active {
        flex-shrink: 0;
      }

.channel-panel-shell.epg-open .channel-epg-card {
        display: flex;
      }

.channel-panel-shell.channel-epg-inline .channel-epg-card {
        display: flex;
      }

.channel-epg-card > .channel-epg-list-shell {
        flex: 1 1 auto;
        min-height: 0;
      }

.channel-epg-header {
        display: flex;
        align-items: center;
        min-width: 0;
      }

.channel-epg-logo {
        /* FIKSNA visina — bez nje visok logo PNG (npr. BHT1 ~kvadratni)
           razvuce container vertikalno pa header naraste i gurne listu
           emisija na dno (videle se samo 2 emisije). OBN sa niskim logom
           je izgledao OK — otud razlika izmedju kanala. */
        width: 132px;
        min-width: 132px;
        max-width: 132px;
        height: 84px;
        flex: 0 0 132px;
        box-sizing: border-box;
        border-radius: 14px;
        padding: 8px 10px;
        background: rgba(4, 10, 18, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
      }

.channel-epg-logo .channel-logo-image,
      .channel-epg-logo .channel-logo-fallback,
      .channel-epg-logo .channel-logo-text {
        /* Fiksni px (ne %) — % max-height ne radi bez eksplicitne visine
           containera, pa je velika slika zadrzavala prirodnu velicinu. */
        max-width: 108px;
        max-height: 64px;
        object-fit: contain;
      }

.channel-epg-copy {
        margin-left: 12px; /* umesto flex gap-a (Tizen) */
        min-width: 0;
      }

.channel-epg-kicker {
        color: rgba(114, 199, 255, 0.92);
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }

.channel-epg-title {
        margin-top: 6px;
        color: white;
        font-size: 38px;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

.channel-epg-subtitle {
        color: rgba(208, 225, 240, 0.76);
        font-size: 20px;
      }

.channel-epg-day-strip {
        margin-top: 12px;
        display: flex;
        flex-wrap: nowrap;
        overflow: hidden;
      }

.channel-epg-day-strip > * + * {
        margin-left: 12px; /* umesto flex gap-a (Tizen) */
      }

.channel-epg-day-pill {
        min-width: 130px;
        padding: 13px 20px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: rgba(196, 212, 226, 0.82);
        font-size: 19px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-align: center;
      }

.channel-epg-day-pill.is-action {
        min-width: 180px;
        background: rgba(10, 26, 49, 0.92);
        border-color: rgba(91, 164, 255, 0.22);
        color: rgba(196, 225, 255, 0.9);
      }

.channel-epg-day-pill.is-today {
        border-color: rgba(68, 187, 255, 0.42);
        color: rgba(148, 221, 255, 0.98);
      }

.channel-epg-day-pill.is-archive {
        border-color: rgba(255, 196, 108, 0.26);
        color: rgba(255, 214, 137, 0.96);
      }

.channel-epg-day-pill.is-future {
        border-color: rgba(147, 184, 255, 0.24);
        color: rgba(188, 208, 255, 0.9);
      }

.channel-epg-day-pill.is-active {
        background: linear-gradient(90deg, rgba(17, 56, 98, 0.96), rgba(11, 33, 62, 0.92));
        border-color: rgba(73, 183, 255, 0.74);
        box-shadow: 0 0 16px rgba(18, 148, 255, 0.16);
        color: white;
      }

.channel-epg-day-pill.is-active.is-action {
        background: linear-gradient(90deg, rgba(20, 70, 126, 0.98), rgba(14, 42, 79, 0.94));
        border-color: rgba(108, 201, 255, 0.78);
      }

.channel-epg-day-pill.is-active.is-archive {
        background: linear-gradient(90deg, rgba(110, 68, 14, 0.96), rgba(74, 45, 10, 0.9));
        border-color: rgba(255, 201, 108, 0.74);
        box-shadow: 0 0 18px rgba(255, 166, 41, 0.18);
      }

/* KURSOR (fokus) u day stripu — beli/svetloplavi ring, jasno razlicit
         od zutog (izabran arhivski dan) i plavog (izabran dan). Selektor sa
         .is-active.is-focused nadjacava is-active.is-archive kombinaciju. */

.channel-epg-day-pill.is-focused,
      .channel-epg-day-pill.is-active.is-focused,
      .channel-epg-day-pill.is-action.is-focused {
        border-color: #cfe6ff;
        box-shadow:
          0 0 0 3px rgba(198, 226, 255, 0.55),
          0 0 24px rgba(147, 201, 255, 0.55);
        color: #ffffff;
        background: linear-gradient(90deg, rgba(52, 108, 188, 0.96), rgba(30, 68, 128, 0.94));
      }

.channel-epg-active {
        border-radius: 18px;
        padding: 12px 18px;
        background: linear-gradient(180deg, rgba(18, 37, 64, 0.94), rgba(9, 19, 35, 0.92));
        border: 1px solid rgba(85, 191, 255, 0.2);
      }

.channel-epg-active.is-archive-selected {
        background: linear-gradient(180deg, rgba(70, 40, 8, 0.96), rgba(43, 24, 7, 0.92));
        border-color: rgba(255, 191, 92, 0.34);
        box-shadow: 0 0 22px rgba(255, 166, 41, 0.12);
      }

.channel-epg-active.is-archive-selected .channel-epg-active-label {
        color: rgba(255, 211, 124, 0.96);
      }

.channel-epg-active-label {
        color: rgba(114, 199, 255, 0.92);
        font-size: 17px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

.channel-epg-active-title {
        margin-top: 4px;
        color: white;
        font-size: 26px;
        font-weight: 800;
        line-height: 1.24;
      }

.channel-epg-active-time {
        margin-top: 4px;
        color: rgba(219, 234, 245, 0.76);
        font-size: 19px;
      }

.channel-epg-list-shell {
        min-height: 0;
        border-radius: 20px;
        padding: 10px;
        background: linear-gradient(180deg, rgba(7, 16, 31, 0.94), rgba(7, 16, 31, 0.84));
        border: 1px solid rgba(86, 186, 255, 0.14);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
        overflow: hidden;
      }

.channel-epg-list {
        min-height: 0;
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }

.channel-epg-list > * + * {
  margin-top: 8px;
      }

.channel-epg-list::-webkit-scrollbar {
        width: 0;
        height: 0;
      }

.channel-epg-item.is-spacer {
        visibility: hidden;
        pointer-events: none;
      }

.channel-epg-item {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        padding: 13px 20px;
        min-height: 92px;
        flex: 0 0 auto;
        box-sizing: border-box;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid transparent;
        text-align: left;
        color: inherit;
      }

.channel-epg-item > * + * {
  margin-left: 20px;
      }

.channel-epg-item > .channel-epg-item-time {
        flex: 0 0 150px;
      }

.channel-epg-item > div:last-child {
        flex: 1 1 auto;
        min-width: 0;
      }

.channel-epg-item.is-active {
        background: linear-gradient(90deg, rgba(13, 45, 82, 0.86), rgba(10, 24, 44, 0.8));
        border-color: rgba(49, 165, 255, 0.72);
        box-shadow: 0 0 18px rgba(18, 148, 255, 0.18);
      }

.channel-epg-item.is-archive {
        background: linear-gradient(90deg, rgba(57, 35, 10, 0.42), rgba(31, 20, 8, 0.28));
        border-color: rgba(255, 191, 92, 0.18);
      }

.channel-epg-item.is-active.is-archive {
        background: linear-gradient(90deg, rgba(100, 63, 15, 0.92), rgba(61, 38, 11, 0.86));
        border-color: rgba(255, 200, 102, 0.74);
        box-shadow: 0 0 22px rgba(255, 166, 41, 0.18);
      }

.channel-epg-item.is-current {
        border-color: rgba(111, 245, 138, 0.34);
      }

.channel-epg-item-time {
        display: flex;
        flex-direction: column;
        gap: 3px;
      }

.channel-epg-item-time > * + * {
  margin-top: 3px;
      }

.channel-epg-item-time-range {
        color: rgba(214, 229, 241, 0.74);
        font-size: 21px;
        font-weight: 700;
      }

.channel-epg-item-time-date {
        color: rgba(147, 168, 188, 0.78);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.04em;
      }

.channel-epg-item.is-archive .channel-epg-item-time-date,
      .channel-epg-item.is-active.is-archive .channel-epg-item-time-range {
        color: rgba(255, 211, 124, 0.94);
      }

.channel-epg-item-title {
        color: white;
        font-size: 25px;
        font-weight: 700;
        line-height: 1.24;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

.channel-epg-item-meta {
        margin-top: 6px;
        color: rgba(184, 199, 214, 0.66);
        font-size: 18px;
        line-height: 1.35;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

.channel-epg-footer {
        color: rgba(183, 198, 214, 0.68);
        font-size: 19px;
        text-align: right;
      }

.channel-row.is-epg-target .channel-brand {
        background: linear-gradient(180deg, rgba(17, 42, 72, 0.96), rgba(7, 17, 30, 0.98));
        border-color: rgba(76, 199, 255, 0.28);
        box-shadow: 0 0 22px rgba(18, 148, 255, 0.2), 0 0 0 1px rgba(110, 206, 255, 0.16);
      }

.channel-epg-trigger {
        display: grid;
        grid-template-columns: 26px auto;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: 100%;
        height: 38px;
        padding: 0 4px;
        border-radius: 8px;
        background: transparent;
        border: none;
        box-sizing: border-box;
        position: relative;
        isolation: isolate;
      }

.channel-row.is-epg-target .channel-epg-trigger::before {
        content: '';
        position: absolute;
        top: -6px;
        right: -14px;
        bottom: -6px;
        left: -14px;
        border-radius: 14px;
        background: radial-gradient(ellipse at center, rgba(86, 205, 255, 0.46), rgba(37, 133, 255, 0.28) 48%, rgba(12, 42, 98, 0.08) 74%, transparent 100%);
        filter: blur(16px);
        opacity: 1;
        z-index: -1;
        pointer-events: none;
      }

.channel-row.is-epg-target .channel-epg-trigger::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 8px;
        background: linear-gradient(180deg, rgba(134, 214, 255, 0.08), rgba(134, 214, 255, 0.02));
        border: 1px solid rgba(120, 210, 255, 0.42);
        box-shadow: inset 0 0 0 1px rgba(230, 247, 255, 0.08), 0 0 18px rgba(62, 173, 255, 0.16);
        z-index: -1;
        pointer-events: none;
      }

.channel-row.is-epg-target .channel-epg-trigger {
        transform: scale(1.045);
      }

.channel-epg-trigger-icon {
        width: 24px;
        height: 24px;
        object-fit: contain;
        justify-self: center;
        filter: hue-rotate(126deg) saturate(0.92) brightness(1.06) drop-shadow(0 0 8px rgba(96, 208, 255, 0.2));
      }

.channel-row.is-epg-target .channel-epg-trigger-icon {
        filter: hue-rotate(126deg) saturate(1.02) brightness(1.14) drop-shadow(0 0 10px rgba(118, 220, 255, 0.28));
      }

.channel-epg-trigger-label {
        color: rgba(238, 248, 255, 0.98);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        transform: translate(-1px, 1px);
        white-space: nowrap;
        text-shadow: 0 0 12px rgba(76, 188, 255, 0.2);
      }

.channel-row.is-epg-target .channel-epg-trigger-label {
        color: #ffffff;
        text-shadow: 0 0 14px rgba(110, 206, 255, 0.32);
      }

.preview-card {
        border-radius: 28px;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: flex-end;
        background-size: cover;
        background-position: center;
      }

.preview-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background:
          linear-gradient(180deg, rgba(5, 8, 14, 0.06), rgba(5, 8, 14, 0.12) 46%, rgba(5, 8, 14, 0.68) 100%),
          radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 26%);
      }

.preview-inner {
        position: relative;
        z-index: 1;
        width: 100%;
        padding: 22px;
        color: #ffffff;
      }

.preview-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 9px 16px;
        border-radius: 999px;
        background: rgba(255, 72, 72, 0.92);
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
      }

.preview-pill > * + * {
  margin-left: 8px;
      }

.preview-title {
        margin-top: 18px;
        font-size: 44px;
        font-weight: 800;
        line-height: 1.08;
        color: #ffffff;
        text-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
      }

.preview-subtitle {
        margin-top: 12px;
        font-size: 22px;
        font-weight: 600;
        color: #1aa8ff;
      }

.program-card {
        border-radius: 24px;
        padding: 24px 28px 22px;
        display: grid;
        grid-template-columns: 200px 1fr;
        align-items: start;
        color: #ffffff;
      }

/* Razmak logo—tekst i logo—aside marginama umesto grid gap-a
         (grid gap ne radi na Chromium 63 / Tizen 5.0 iz 2019). */

.program-card > div:nth-child(2) {
        padding-left: 24px;
      }

.program-card .program-aside {
        margin-top: 24px;
      }

.program-logo {
        font-size: 52px;
        font-weight: 800;
        line-height: 0.95;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
      }

.program-logo small {
        display: block;
        font-size: 22px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.72);
      }

.program-name {
        font-size: 30px;
        font-weight: 800;
        line-height: 1.15;
        color: #ffffff;
      }

.program-live {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-top: 10px;
      }

.program-live > * + * {
  margin-left: 12px;
      }

.program-description {
        color: rgba(219, 235, 247, 0.84);
        font-size: 20px;
        line-height: 1.45;
        margin-top: 10px;
      }

.program-league {
        color: #15a6ff;
        font-size: 22px;
        font-weight: 600;
      }

.program-badge {
        background: #f23c3c;
        color: white;
        border-radius: 8px;
        padding: 4px 12px;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
      }

.channel-panel-shell.channel-preview-open .program-badge {
        padding: 1px 7px;
        font-size: 10px;
        border-radius: 7px;
        transform: translateY(-2px);
      }

.progress-row {
        display: grid;
        grid-template-columns: 52px 1fr 52px;
        align-items: center;
        margin-top: 10px;
      }

.progress-row .progress-bar {
        margin-left: 12px; /* umesto grid gap-a (Tizen) */
        margin-right: 12px;
      }

.progress-bar {
        height: 6px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.18);
        overflow: hidden;
      }

.progress-bar span {
        display: block;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, #0d98ff, #3fc1ff);
      }

.progress-time {
        font-size: 18px;
        color: rgba(255, 255, 255, 0.84);
      }

.program-next {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
      }

.program-next-label {
        color: #0d98ff;
        font-size: 18px;
        font-weight: 700;
      }

.program-next-title,
      .program-next-time {
        color: rgba(255, 255, 255, 0.82);
        font-size: 18px;
      }

.program-aside > * + * {
        margin-top: 8px; /* umesto flex gap-a (Tizen) */
      }

.program-aside {
        border-radius: 18px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: linear-gradient(180deg, rgba(9, 18, 38, 0.92), rgba(7, 12, 24, 0.88));
        min-height: 118px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 16px 18px;
      }

.program-aside-label {
        color: #1aa8ff;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

.program-aside-title {
        color: #ffffff;
        font-size: 26px;
        font-weight: 700;
        line-height: 1.15;
      }

.program-aside-time,
      .program-aside-note {
        color: rgba(219, 235, 247, 0.88);
        font-size: 17px;
        line-height: 1.35;
      }

@media (max-width: 1024px) {
        .screen-ui {
          top: 1.8vh;
          right: 10vw;
          bottom: 6vh;
          left: 4vw;
          pointer-events: auto;
        }

        .time {
          padding-top: 2.8vh;
        }

        .screen-ui::before {
          top: 0;
          right: 10vw;
          bottom: 0;
          left: 0;
        }

        .header {
          padding: 0 1vw;
        }

        .brand {
          right: 1vw;
          bottom: calc(5.2vh + 2px);
          gap: 12px;
        }

        .brand-logo {
          width: 128px;
        }

        .header h1 {
          font-size: 28px;
        }

        .time {
          font-size: 22px;
        }

        .home-main {
          min-height: 10vh;
          padding: 0 540px 0 1vw;
          padding: 0 min(42vw, 540px) 0 1vw;
        }

        .hero-title {
          font-size: 48px;
          font-size: clamp(32px, 3vw, 48px);
        }

        .hero-text {
          font-size: 18px;
          font-size: clamp(15px, 1vw, 18px);
        }

        .movie-feature-content {
          grid-template-columns: 1fr;
          gap: 0;
          padding: 36px 16px 132px 16px;
          min-height: 372px;
        }

        .hero-visual {
          position: absolute;
          top: auto;
          bottom: -2vh;
          right: -0.6vw;
          width: 620px;
          width: min(52vw, 620px);
          min-height: 372px;
          margin: 0;
        }

        .movie-feature-copy {
          padding: 18px 18px 16px;
          margin-left: 36px;
          margin-top: 10px;
          max-width: 360px;
          min-height: 0;
        }

        .movie-feature-copy-bottom {
          top: calc(100% + 18px);
          width: 360px;
          width: min(34vw, 360px);
        }

        .movie-feature-title {
          font-size: 34px;
          font-size: clamp(24px, 2.2vw, 34px);
        }

        .movie-feature-description {
          font-size: 13px;
          line-height: 1.44;
        }

        .movie-feature-strip {
          gap: 8px;
          right: 0;
          left: 48px;
          bottom: 8px;
        }

        .movie-feature-thumb {
          height: 48px;
        }

        .menu {
          width: 520px;
          width: min(47vw, 520px);
          gap: 10px;
        }

        .menu-shell {
          margin-top: 0;
        }

        .content-shelf {
          width: 520px;
          width: min(48vw, 520px);
          margin-top: -8vh;
          gap: 12px;
        }

        .content-shelf-row {
          gap: 10px;
        }

        .content-card {
          min-height: 132px;
        }

        .content-card-copy {
          min-height: 132px;
          padding: 12px;
        }

        .content-card-title {
          font-size: 16px;
        }

        .content-card-meta {
          font-size: 11px;
        }

        .menu-item {
          width: 100%;
          height: 140px;
          height: clamp(108px, 11.2vw, 140px);
          font-size: 16px;
        }

        .menu-icon {
          width: 88px;
          height: 88px;
        }

        /* Base pravila imaju fiksne 1080p translateY lift-ove (+ zoom na
           .active/:hover) — na malim viewport-ima ih gasimo (layout je vec
           vertikalan/kompaktan). !important pobedjuje specificnije
           [data-index].active selektore iz base pravila. */
        .menu-item,
        .menu-divider {
          transform: none !important;
        }

        .menu-item[data-index='0'],
        .menu-item[data-index='2'] {
          height: 176px;
          height: clamp(140px, 14vw, 176px);
          padding: 6px;
          gap: 0;
          justify-content: center;
        }

        .vote-panel-shell {
          width: 1180px;
          width: min(96vw, 1180px);
          padding: 22px 20px 20px;
        }

        .vote-stage-layout {
          grid-template-columns: 1fr;
        }

        .vote-main-card {
          grid-template-columns: minmax(0, 1fr) 260px;
        }

        .vote-candidates-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .menu-item[data-index='0'] .menu-icon,
        .menu-item[data-index='2'] .menu-icon {
          width: 92%;
          height: 92%;
        }

        .menu-item[data-index='0'] span,
        .menu-item[data-index='2'] span {
          display: none;
        }

        .channel-panel-shell {
          grid-template-columns: 92px 1fr;
          grid-template-rows: auto auto;
        }

        .channel-osd {
          left: 20px;
          right: 20px;
          bottom: 20px;
          grid-template-columns: 1fr;
        }

        .channel-osd-main {
          grid-template-columns: 132px minmax(0, 1fr);
        }

        .channel-osd-side {
          min-width: 0;
        }

        .groups-card {
          grid-column: span 2;
        }
      }

@media (max-width: 640px) {
        .screen-ui {
          top: 3.4vh;
          right: 3.4vw;
          bottom: 4vh;
          left: 3.4vw;
          gap: 16px;
        }

        .brand-logo {
          width: 166px;
          width: clamp(118px, 28vw, 166px);
        }

        .brand {
          right: 0;
          bottom: 10px;
        }

        .screen-ui::before {
          top: 0;
          right: 0;
          bottom: 0;
          left: 0;
        }

        .header {
          padding: 0;
          flex-wrap: wrap;
        }

        .home-main {
          min-height: 0;
          padding: 0;
        }

        .account-corner {
          position: static;
          width: 100%;
          margin-top: 12px;
        }

        .account-panel {
          max-width: none;
        }

        .hero-visual {
          position: relative;
          top: auto;
          right: auto;
          min-height: 286px;
          margin-top: 0.4vh;
          margin-left: 0;
          width: 100%;
          pointer-events: auto;
          overflow: visible;
        }

        .movie-feature {
          min-height: 286px;
        }

        .movie-feature-content {
          min-height: 286px;
          gap: 10px;
          padding: 18px 0 10px;
          align-items: flex-end;
        }

        .movie-feature-copy {
          padding: 16px 16px 14px;
          max-width: none;
          margin-left: 0;
          margin-top: 0;
          border-radius: 24px;
          -webkit-backdrop-filter: blur(14px) saturate(1.08);
                  backdrop-filter: blur(14px) saturate(1.08);
          min-height: 0;
        }

        .movie-feature-copy-bottom {
          position: static;
          width: auto;
          margin-top: 14px;
          padding: 12px 12px 14px;
        }

        .movie-feature-poster {
          width: 104px;
          height: 144px;
        }

        .movie-feature-copy {
          gap: 8px;
        }

        .movie-feature-title {
          font-size: 30px;
          max-width: none;
        }

        .movie-feature-meta {
          gap: 8px;
          font-size: 11px;
        }

        .movie-feature-description {
          font-size: 14px;
          max-width: none;
        }

        .movie-feature-strip {
          position: static;
          padding-top: 2px;
          padding-bottom: 2px;
          left: auto;
          right: auto;
        }

        .movie-feature-thumb {
          height: 42px;
        }

        .menu {
          width: 100%;
          grid-template-columns: repeat(2, minmax(0, 1fr));
          grid-template-areas:
            'tv video'
            'radio content'
            'vote settings';
        }

        .menu-shell {
          margin-top: 0;
        }

        .content-shelf {
          width: 100%;
          margin: 1.6vh 0 0;
        }

        .content-shelf-header {
          align-items: flex-start;
          flex-direction: column;
          gap: 4px;
        }

        .content-shelf-row {
          grid-template-columns: 1fr;
        }

        .content-card,
        .content-card-copy {
          min-height: 124px;
        }

        .vote-panel-shell {
          grid-template-rows: auto auto auto 1fr auto;
          width: 100%;
          padding: 18px 14px 16px;
        }

        .vote-panel-header {
          flex-direction: column;
          align-items: flex-start;
        }

        .vote-live-status {
          align-items: flex-start;
        }

        .vote-flow-strip,
        .vote-candidates-grid {
          grid-template-columns: 1fr;
        }

        .vote-main-card {
          grid-template-columns: 1fr;
        }

        .vote-main-visual {
          min-height: 220px;
        }

        .menu-item,
        .menu-item[data-index='0'],
        .menu-item[data-index='2'] {
          --tilt: 0deg;
          --lift: 0px;
          height: 168px;
          padding-left: 0;
        }

        .menu-item {
          width: 100%;
          max-width: none;
          height: 192px;
          height: clamp(148px, 30vw, 192px);
          border-radius: 22px;
          font-size: 15px;
          gap: 10px;
        }

        .menu-icon {
          width: 112px;
          height: 112px;
        }

        .menu-icon-tv {
          width: 136px;
          width: clamp(88px, 17vw, 136px);
          height: 136px;
          height: clamp(88px, 17vw, 136px);
        }

        .footer-status {
          padding: 0;
          font-size: 14px;
          flex-wrap: wrap;
        }
      }

/* favorites.css — Favorites Manager TV UI */

:root {
  --fav-grid-seed: 7afc01c8;
  --bg:            #0c0c18;
  --surface:       rgba(255, 255, 255, 0.045);
  --surface2:      rgba(255, 255, 255, 0.07);
  --border:        rgba(255, 255, 255, 0.09);
  --border-focus:  rgba(108, 70, 255, 0.65);
  --accent:        #7c4fff;
  --accent-light:  #a78bfa;
  --add-color:     #3b82f6;
  --add-bg:        rgba(59, 130, 246, 0.22);
  --add-glow:      0 0 0 2px rgba(59, 130, 246, 0.55), 0 0 20px rgba(59, 130, 246, 0.25);
  --del-color:     #f87171;
  --del-bg:        rgba(239, 68, 68, 0.18);
  --del-glow:      0 0 0 2px rgba(239, 68, 68, 0.55), 0 0 20px rgba(239, 68, 68, 0.2);
  --reorder-color: #4ade80;
  --reorder-bg:    rgba(74, 222, 128, 0.15);
  --reorder-glow:  0 0 0 2px rgba(74, 222, 128, 0.5), 0 0 20px rgba(74, 222, 128, 0.2);
  --focus-glow:    0 0 0 2px rgba(108, 70, 255, 0.6), 0 0 22px rgba(108, 70, 255, 0.2);
  --text:          #e6e6f0;
  --text-dim:      rgba(230, 230, 240, 0.48);
  --sidebar-w:     84px;
  --groups-w:      400px;
  --header-h:      88px;
  --colhead-h:     58px;
  --helpbar-h:     84px;
  --item-h:        78px;
  --font:          'Segoe UI', 'Trebuchet MS', Arial, sans-serif;
  --radius:        10px;
  --trans:         0.15s ease;
}

html, body {
  background: #050814;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
}

/* ── Background (matches index.html .background) ── */

.fav-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.55), rgba(2, 4, 10, 0.78)),
    url('/bg-tv.webp');
  background-size: cover;
  background-position: center;
  /* TIZEN: fullscreen filter (brightness/saturate) + 4 gradient layera
     skinuti — filter procesira 2M piksela na TV GPU (pravilo #5). */
  pointer-events: none;
}

.fav-bg::before,
.fav-bg::after {
  content: '';
  position: absolute;
  left: -4vw;
  right: -4vw;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 143, 255, 0), rgba(73, 136, 255, 0.9) 18%, rgba(98, 160, 255, 0.98) 52%, rgba(124, 96, 255, 0.55) 100%);
  box-shadow: 0 0 16px rgba(55, 136, 255, 0.55), 0 0 40px rgba(55, 136, 255, 0.2);
  z-index: 1;
}

.fav-bg::before {
  top: 1.2vh;
  transform: perspective(1200px) rotateX(68deg);
  transform-origin: top center;
}

.fav-bg::after {
  /* Iznad helpbar-a (84px) — bilo 4.8vh (~52px) pa je secalo dugmice. */
  bottom: calc(var(--helpbar-h) + 14px);
  transform: perspective(1200px) rotateX(-70deg);
  transform-origin: bottom center;
}

/* ── Page wrapper ── */

.fav-page {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  outline: none;
  position: relative;
  z-index: 1;
  background: transparent;
}

.fav-page > * {
  position: relative;
  z-index: 1;
}

/* Meni levo iznad spiska: natpis stavke u fokusu (.nav-tip) viri udesno
   preko kolone sa logoima kanala — inace bi se crtao ispod njih */

.fav-page > .app-side-nav {
  z-index: 3;
}

/* Meni levo je AppSideNav (isti kao Live TV, Video klub, Podesavanja) —
   stari .fav-sidebar je uklonjen 05.11.2026.
   Stranica Omiljeni: bez flex gap-a (TV Chromium 63/76 ga ne zna, elementi
   su se lepili) — razmaci su margine izmedju dece (pravilo #16) */

/* ── Main ── */

.fav-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── Header ── */

.fav-header {
  height: var(--header-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.fav-header > * + * {
  margin-left: 24px;
}

.fav-header-title {
  display: flex;
  align-items: center;
}

.fav-header-title > * + * {
  margin-left: 11px;
}

.fav-header-title h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.025em;
  color: var(--text);
  white-space: nowrap;
}

/* Mode toggle */

.fav-mode-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  padding: 4px;
  border: 1px solid var(--border);
}

.fav-mode-toggle > * + * {
  margin-left: 3px;
}

.fav-mode-btn {
  display: flex;
  align-items: center;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(230, 230, 240, 0.78);
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
}

.fav-mode-btn > * + * {
  margin-left: 14px;
}

.fav-mode-btn[data-mode="add"].is-active {
  background: var(--add-bg);
  color: #93c5fd;
  box-shadow: var(--add-glow);
}

.fav-mode-btn[data-mode="delete"].is-active {
  background: var(--del-bg);
  color: #fca5a5;
  box-shadow: var(--del-glow);
}

.fav-mode-btn[data-mode="reorder"].is-active {
  background: var(--reorder-bg);
  color: #86efac;
  box-shadow: var(--reorder-glow);
}

.fav-mode-btn.is-header-focused {
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.9), 0 0 20px rgba(55, 136, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.14) !important;
}

.fav-header-meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.fav-header-meta > * + * {
  margin-top: 3px;
}

.fav-header-group {
  font-size: 19px;
  font-weight: 500;
  color: var(--accent-light);
}

.fav-header-count {
  font-size: 16px;
  color: var(--text-dim);
}

/* ── Content area ── */

.fav-content {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

/* ── Groups panel ── */

.fav-groups-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--groups-w);
  /* TIZEN: backdrop-filter blur(28px) skinut — fullscreen filter. */
  background: rgba(12, 10, 28, 0.98);
  border-right: 1px solid rgba(120, 80, 255, 0.28);
  display: flex;
  flex-direction: column;
  z-index: 20;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  box-shadow: 6px 0 40px rgba(0, 0, 0, 0.55);
}

.fav-groups-panel.is-open {
  transform: translateX(0);
}

.fav-groups-header {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-light);
  border-bottom: 1px solid rgba(120, 80, 255, 0.18);
  flex-shrink: 0;
}

.fav-groups-header svg {
  margin-right: 10px;
}

.fav-groups-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px 0;
}

.fav-groups-list::-webkit-scrollbar {
  display: none;
}

.fav-group-item,
.fav-group-row {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  cursor: pointer;
  position: relative;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  text-align: left;
}

.fav-group-row > * + * {
  margin-left: 16px;
}

.fav-group-item::before,
.fav-group-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity var(--trans);
}

.fav-group-item.is-focused,
.fav-group-row.is-focused {
  background: rgba(108, 70, 255, 0.24);
  box-shadow: inset 0 0 0 2px rgba(108, 70, 255, 0.5);
}

.fav-group-item.is-focused::before,
.fav-group-row.is-focused::before {
  opacity: 1;
}

.fav-group-item.is-current,
.fav-group-row.is-current {
  color: var(--accent-light);
}

.fav-group-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.fav-group-icon.is-fallback {
  background: rgba(108, 70, 255, 0.18);
}

.fav-group-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.fav-group-name,
.fav-group-label {
  flex: 1;
  font-size: 21px;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-group-count {
  font-size: 16px;
  color: rgba(230, 230, 240, 0.7);
  background: rgba(255, 255, 255, 0.09);
  padding: 4px 12px;
  border-radius: 20px;
  flex-shrink: 0;
}

/* ── Columns ── */

.fav-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  transition: opacity var(--trans);
}

.fav-col-right {
  border-left: 1px solid var(--border);
}

.fav-col.is-dimmed {
  opacity: 0.35;
  pointer-events: none;
}

.fav-col-header {
  height: var(--colhead-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.fav-col-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(230, 230, 240, 0.88);
}

.fav-col-hint {
  font-size: 18px;
  color: rgba(230, 230, 240, 0.6);
}

/* ── Scroll container ── */

.fav-list-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fav-list-scroll::-webkit-scrollbar {
  display: none;
}

.fav-list {
  width: 100%;
}

/* ── Empty state ── */

.fav-empty {
  padding: 48px 24px;
  text-align: center;
  color: rgba(230, 230, 240, 0.6);
  font-size: 20px;
  font-style: italic;
}

/* ── Channel item ── */

.fav-ch-item {
  height: var(--item-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  -webkit-user-select: none;
          user-select: none;
}

.fav-ch-item > * + * {
  margin-left: 14px;
}

.fav-ch-item:last-child {
  border-bottom: none;
}

.fav-ch-item.is-focused {
  background: rgba(108, 70, 255, 0.15);
  box-shadow: inset 0 0 0 1.5px rgba(108, 70, 255, 0.5), 0 0 18px rgba(108, 70, 255, 0.1);
}

/* In ADD mode, focused already-fav item gets orange tint */

.fav-ch-item.is-in-fav.is-focused {
  background: rgba(234, 179, 8, 0.1);
  box-shadow: inset 0 0 0 1.5px rgba(234, 179, 8, 0.4);
}

/* Logo placeholder */

.fav-ch-logo {
  width: 66px;
  height: 46px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.fav-ch-logo img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fav-ch-logo--text {
  background: rgba(255,255,255,0.12);
}

/* Logo je sama <img class="fav-ch-logo"> (66x46) — bez object-fit se
   razvlacio (deformisan). Ceo logo u okviru, sa malo vazduha. */

img.fav-ch-logo {
  object-fit: contain;
  padding: 4px;
  box-sizing: border-box;
}

.fav-ch-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.fav-ch-info > * + * {
  margin-top: 4px;
}

.fav-ch-name {
  font-size: 21px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}

.fav-ch-epg {
  font-size: 15px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-ch-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  min-width: 30px;
  text-align: right;
  flex-shrink: 0;
}

.fav-ch-star {
  width: 28px;
  flex-shrink: 0;
  margin-right: 10px;
}

.fav-ch-star svg {
  display: block;
  width: 26px;
  height: 26px;
}

/* Star colors */

.fav-ch-item .fav-ch-star {
  color: var(--text-dim);
  opacity: 0.35;
}

.fav-ch-item.is-in-fav .fav-ch-star {
  color: #facc15;
  opacity: 1;
}

/* Favorites list in delete mode: focused item star turns red */

.fav-list.mode-delete .fav-ch-item.is-focused .fav-ch-star {
  color: #f87171;
  opacity: 1;
}

/* ── Reorder mode ── */

.fav-ch-drag {
  width: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  opacity: 0.4;
}

.fav-list.mode-reorder .fav-ch-item.is-focused .fav-ch-drag {
  color: #86efac;
  opacity: 1;
}

.fav-ch-item.is-grabbed {
  background: rgba(74, 222, 128, 0.14) !important;
  box-shadow: inset 0 0 0 2px rgba(74, 222, 128, 0.6), 0 0 24px rgba(74, 222, 128, 0.18) !important;
  z-index: 1;
}

.fav-ch-item.is-grabbed .fav-ch-drag {
  color: #4ade80;
  opacity: 1;
}

#help-right.mode-reorder {
  color: #86efac !important;
}

/* ── Help bar ── */

/* Bez gap-a (TV Chromium 63/76 ga ne zna — ikonice su se lepile uz tekst):
   razmaci su margine (pravilo #16) */

.fav-helpbar {
  height: var(--helpbar-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--border);
}

.fav-helpbar > span {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: rgba(230, 230, 240, 0.82);
  white-space: nowrap;
}

.fav-helpbar > span + span {
  margin-left: 24px;
}

.fav-helpbar kbd {
  margin-right: 12px;
}

/* Obojeni tasteri u legendi: razmak do teksta i izmedju grupa */

.fav-help-mode .fav-key-yellow,
.fav-help-mode .fav-key-blue,
.fav-help-mode .fav-key-green {
  margin-right: 10px;
}

.fav-help-mode .fav-key-blue,
.fav-help-mode .fav-key-green {
  margin-left: 16px;
}

.fav-helpbar kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 22px;
  font-style: normal;
  color: rgba(235, 240, 250, 0.92);
}

.fav-help-sep {
  color: rgba(255, 255, 255, 0.14) !important;
  font-size: 24px !important;
}

.fav-help-mode {
  color: rgba(230, 230, 240, 0.66) !important;
}

.fav-key-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  background: rgba(234, 179, 8, 0.55);
  border-radius: 6px;
  font-size: 19px;
  font-weight: 700;
  color: #000;
}

.fav-key-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  background: rgba(59, 130, 246, 0.7);
  border-radius: 6px;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.fav-key-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 30px;
  background: rgba(74, 222, 128, 0.65);
  border-radius: 6px;
  font-size: 19px;
  font-weight: 700;
  color: #000;
}

#help-right.mode-delete {
  color: #fca5a5 !important;
}

/* ── Toast ── */

.fav-toast {
  position: fixed;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(22, 16, 46, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(108, 70, 255, 0.4);
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
}

.fav-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fav-toast.is-warn {
  border-color: rgba(234, 179, 8, 0.5);
}

.fav-toast.is-error {
  border-color: rgba(239, 68, 68, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #e8eefc;
  background: #050814;
}

.set-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* TIZEN: 2 radial layera skinuta (pravilo #5). */
  background: linear-gradient(120deg, rgba(5, 10, 21, 0.97), rgba(8, 14, 28, 0.94));
}

.set-page {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  /* Flex umesto grid — Chromium 76 (Tizen) sporo re-layoutuje grid sa
     minmax(0,1fr) na svaki focus recalc (pravilo #2). Kao Favorites. */
  display: flex;
  z-index: 1;
}

.set-sidebar {
  flex: 0 0 94px;
  border-radius: 28px;
  padding: 18px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border-right: 1px solid rgba(125, 161, 229, 0.16);
  background: rgba(8, 14, 28, 0.85);
  /* backdrop-filter skinut — Chromium 76 ga ionako ne podrzava. */
}

.side-nav {
  display: flex;
  flex-direction: column;
  /* bez flex gap-a — Chromium 76 ga ignorise; razmak daje margin-top
     na .side-nav-item + .side-nav-item (vidi Live blok iznad) */
  padding: 0;
  width: 100%;
  align-items: center;
}

.side-nav-item {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(126, 159, 214, 0.08);
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.48), rgba(10, 15, 28, 0.18));
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  outline: none;
  overflow: visible;
}

.side-nav-item::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  bottom: 8px;
  left: 8px;
  border-radius: 14px;
  background: rgba(18, 148, 255, 0.22);
  /* TIZEN: blur(12px) filter skinut — skup per-item filter. */
  opacity: 0;
  z-index: 0;
}

.side-nav-item::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  left: 1px;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01) 40%, rgba(255, 255, 255, 0));
  opacity: 0.44;
  pointer-events: none;
}

.side-nav-item > * {
  position: relative;
  z-index: 1;
}

.side-nav-item.is-active {
  background: linear-gradient(180deg, rgba(16, 46, 88, 0.72), rgba(10, 27, 56, 0.48));
  border-color: rgba(115, 187, 255, 0.78);
  box-shadow:
    0 0 0 1px rgba(90, 168, 255, 0.24),
    0 0 24px rgba(18, 148, 255, 0.3),
    0 12px 24px rgba(0, 0, 0, 0.2);
}

.side-nav-item.is-active::before,
.side-nav-item:hover::before {
  opacity: 1;
}

.side-nav-item:focus-visible::before {
  opacity: 1;
}

.side-nav-item:hover {
  color: white;
  border-color: rgba(162, 207, 255, 0.82);
  background: linear-gradient(180deg, rgba(18, 44, 79, 0.54), rgba(10, 23, 46, 0.32));
  box-shadow:
    0 0 0 1px rgba(165, 212, 255, 0.26),
    0 0 24px rgba(88, 160, 255, 0.24);
}

.side-nav-item:focus-visible {
  color: white;
  border-color: rgba(162, 207, 255, 0.82);
  background: linear-gradient(180deg, rgba(18, 44, 79, 0.54), rgba(10, 23, 46, 0.32));
  box-shadow:
    0 0 0 1px rgba(165, 212, 255, 0.26),
    0 0 24px rgba(88, 160, 255, 0.24);
}

/* Fokus preko daljinskog (zone=sidebar) — jak plavi ring da se jasno vidi. */

.side-nav-item.is-focused {
  color: #fff;
  border-color: rgba(120, 190, 255, 0.95);
  background: linear-gradient(180deg, rgba(24, 54, 96, 0.8), rgba(12, 30, 60, 0.6));
  box-shadow:
    0 0 0 3px rgba(63, 158, 252, 0.5),
    0 0 28px rgba(63, 158, 252, 0.35);
}

.side-nav-icon {
  font-size: 22px;
  line-height: 1;
}

.side-nav-label {
  display: none;
}

.set-main {
  flex: 1 1 auto;
  min-width: 0;
  /* Cela stranica mora da stane na 1080 i sa karticom clanstva (QR) —
     razmaci su zbijeni, slova ostaju ista */
  padding: 22px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.set-main > * + * {
  margin-top: 14px;
}

.set-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.set-header h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.set-header p {
  margin: 10px 0 0;
  color: rgba(194, 212, 248, 0.9);
  font-size: 24px;
}

.set-clock {
  font-size: 34px;
  font-weight: 700;
  color: rgba(238, 246, 255, 0.96);
}

.set-grid {
  /* Flex umesto grid minmax (Tizen pravilo #2). 2 kartice, svaka 1/2. */
  display: flex;
  gap: 20px;
}

.set-grid > * + * {
  margin-left: 20px;
}

.set-grid > .set-card {
  flex: 1 1 0;
  min-width: 0;
}

.set-card {
  border: 1px solid rgba(116, 151, 221, 0.2);
  border-radius: 24px;
  padding: 18px 22px;
  background:
    linear-gradient(180deg, rgba(12, 20, 37, 0.88), rgba(9, 16, 30, 0.9)),
    rgba(8, 14, 28, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 36px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.set-card > * + * {
  margin-top: 10px;
}

.set-card h2 {
  margin: 0 0 4px;
  font-size: 30px;
  color: #f4f8ff;
}

.set-row {
  /* Flex umesto grid minmax (Tizen pravilo #2). Label raste, kontrola fiksna. */
  display: flex;
  align-items: center;
  gap: 14px;
}

.set-row > * + * {
  margin-left: 14px;
}

.set-row > span { flex: 1 1 auto; min-width: 0; }

.set-row > .set-select-trigger { flex: 0 0 360px; }

.set-row span {
  font-size: 26px;
  color: rgba(208, 223, 248, 0.95);
}

.set-row select,
.set-select-trigger,
.set-btn {
  border: 1px solid rgba(138, 170, 233, 0.3);
  border-radius: 14px;
  background: rgba(12, 20, 38, 0.82);
  color: #edf4ff;
  font-size: 25px;
  padding: 11px 20px;
}

.set-select-trigger {
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.set-check {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  border: 1px solid rgba(134, 168, 232, 0.12);
  padding: 11px 18px;
  background: rgba(12, 20, 38, 0.48);
  cursor: pointer;
}

.set-check > * + * {
  margin-left: 12px;
}

.set-check input {
  width: 32px;
  height: 32px;
}

.set-check span {
  color: rgba(220, 233, 255, 0.95);
  font-size: 25px;
}

/* Fokus daljinskog: isti beli prsten i plava podloga kao u Video klubu
   (inset senka umesto deblje ivice — bez pomeranja rasporeda) */

.set-focusable.is-focused {
  outline: none;
  border-color: #cfe6ff;
  background-color: rgba(42, 90, 158, 0.95);
  box-shadow: inset 0 0 0 2px #cfe6ff, 0 0 0 3px rgba(198, 226, 255, 0.45);
  color: #fff;
}

.set-focusable:focus-visible,
.set-row select:focus-visible,
.set-btn:focus-visible {
  outline: none;
  border-color: #cfe6ff;
  background-color: rgba(42, 90, 158, 0.95);
  box-shadow: inset 0 0 0 2px #cfe6ff, 0 0 0 3px rgba(198, 226, 255, 0.45);
  color: #fff;
}

/* Titlovi u Video klubu: dva izbora u redu + primer u stvarnoj velicini
   (bez gap-a — margin, Tizen pravilo #16) */

.set-subs-row {
  display: flex;
}

.set-subs-col {
  flex: 1 1 0;
  min-width: 0;
}

.set-subs-col + .set-subs-col {
  margin-left: 44px;
}

.set-subs-preview {
  border-radius: 14px;
  padding: 8px 20px;
  background: #000;
  text-align: center;
}

.set-subs-sample {
  color: #fff;
  font-size: 54px;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 0 4px #000, 0 2px 4px #000, 2px 0 4px #000, -2px 0 4px #000;
}

.set-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.set-footer > * + * {
  margin-left: 12px;
}

.set-btn {
  min-width: 240px;
  cursor: pointer;
}

.set-btn-primary {
  background: linear-gradient(145deg, #1f7ceb, #1aa083);
  border-color: rgba(94, 198, 255, 0.48);
  color: #f4fbff;
  font-weight: 700;
}

.set-status {
  margin-left: 8px;
  color: rgba(187, 206, 240, 0.92);
  font-size: 22px;
}

.set-select-menu {
  /* Na sredini ekrana (ranije bez koordinata — iskakao je preko naslova) */
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  min-width: 420px;
  border-radius: 16px;
  border: 1px solid rgba(125, 180, 255, 0.5);
  background: linear-gradient(180deg, rgba(9, 17, 33, 0.96), rgba(8, 14, 28, 0.96));
  box-shadow:
    0 0 0 1px rgba(125, 180, 255, 0.2),
    0 24px 42px rgba(0, 0, 0, 0.45),
    0 0 34px rgba(70, 144, 246, 0.24);
  overflow: hidden;
}

.set-select-menu-title {
  padding: 14px 18px;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(185, 211, 255, 0.88);
  border-bottom: 1px solid rgba(130, 175, 247, 0.2);
}

.set-select-menu-options {
  display: flex;
  flex-direction: column;
  max-height: 520px;
  overflow-y: auto;
}

.set-select-option {
  border: 0;
  background: transparent;
  color: rgba(224, 236, 255, 0.9);
  text-align: left;
  padding: 16px 22px;
  font-size: 26px;
  cursor: pointer;
}

/* Kursor u otvorenom izboru (JSX koristi is-focused — ranije bez stila,
   pa se u meniju za temu/jezik nije videlo gde je kursor) */

.set-select-option.is-focused {
  color: #fff;
  background-color: rgba(42, 90, 158, 0.95);
  box-shadow: inset 0 0 0 2px #cfe6ff;
}

.set-select-option.is-active {
  background: linear-gradient(90deg, rgba(48, 132, 246, 0.3), rgba(48, 132, 246, 0.06));
  color: #ffffff;
}

.set-select-option.is-selected::after {
  content: ' ✓';
  color: rgba(142, 216, 173, 0.96);
}

@media (max-width: 1400px) {
  .set-grid {
    flex-direction: column;
  }
}

html, body {
        background: #050813;
        color: #fff;
        font-family: 'Segoe UI', 'Trebuchet MS', Arial, sans-serif;
      }

/* TIZEN: pozadina je PUNA boja. Dva radijalna preliva (ostatak starog
         prototipa Video kluba) TV je racunao za svaki ponovo iscrtan deo
         ekrana, ispod svih stranica: na 65" AU7 otvaranje spiska 2,8 s
         umesto 0,26 s, korak 0,27 s umesto 0,03 s (mereno 03.11.2026). */

body {
        background: #050813;
      }

/* ===== Activate Page ===== */

.activate-page {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-stack, 'Segoe UI', Arial, sans-serif);
  color: var(--text-primary, #fff);
}

.activate-bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #05070d;
  background-image:
    radial-gradient(circle at 12% 74%, rgba(0, 120, 255, 0.2), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(120, 76, 255, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(2, 4, 10, 0.42), rgba(2, 4, 10, 0.86)),
    url('/bg-tv.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
  z-index: 0;
}

/* TV/desktop default — direktne vrednosti jer Tizen 6.0 Chromium 76
   NE razume clamp()/min()/max() (te CSS funkcije su Chrome 79+).
   Mobile/phone overrides idu kroz @media query niže. */

.activate-card {
  position: relative;
  z-index: 1;
  width: 960px;
  max-width: 92vw;
  padding: 64px 88px 50px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(22, 29, 48, 0.92), rgba(10, 14, 24, 0.86));
  border: 1px solid rgba(123, 156, 214, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 32px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.activate-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.activate-logo {
  width: 240px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.activate-title {
  margin: 0 0 12px;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(244, 248, 255, 0.96);
}

.activate-subtitle {
  margin: 0 0 40px;
  font-size: 22px;
  color: rgba(175, 196, 233, 0.78);
}

.activate-code-row {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
}

.activate-code-row > * + * {
  margin-left: 18px;
}

.activate-digit {
  width: 96px;
  height: 120px;
  border-radius: 16px;
  border: 2px solid rgba(132, 182, 255, 0.18);
  background: rgba(8, 12, 24, 0.7);
  color: rgba(244, 248, 255, 0.96);
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
  font-family: inherit;
}

.activate-digit.is-filled {
  border-color: rgba(132, 182, 255, 0.45);
  background: rgba(20, 30, 60, 0.85);
}

.activate-digit.is-focused {
  border-color: #3b82f6;
  background: rgba(30, 50, 100, 0.92);
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.35),
    0 0 28px rgba(59, 130, 246, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.activate-error {
  margin: 0 0 22px;
  padding: 14px 22px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #ff8888;
  font-size: 18px;
  font-weight: 600;
}

/* Zeleno dugme kad su ukucane sve cifre — OK (Enter) ga potvrdjuje, pa je
   uvek u fokus izgledu (daljinski nema drugi element na ekranu) */

.activate-submit {
  display: block;
  margin: 0 auto 22px;
  padding: 16px 44px;
  border-radius: 14px;
  border: 2px solid #4ade80;
  background: #16a34a;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3), 0 0 28px rgba(22, 163, 74, 0.45);
}

.activate-submit.is-retry {
  border-color: #60a5fa;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3), 0 0 28px rgba(37, 99, 235, 0.45);
}

.activate-submit:disabled {
  opacity: 0.75;
  cursor: default;
}

/* "Čeka aktivaciju" — uparen uređaj koji provajder još ne pušta */

.activate-wait {
  margin: 0 0 22px;
  padding: 18px 22px 4px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.activate-wait-text {
  margin: 0 0 16px;
  color: #dbeafe;
  font-size: 20px;
  font-weight: 600;
}

.activate-wait-note {
  margin: -8px 0 16px;
  color: #fde68a;
  font-size: 18px;
}

.activate-status {
  margin: 0 0 22px;
  font-size: 20px;
  color: rgba(175, 196, 233, 0.78);
}

.activate-help {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin-bottom: 36px;
  font-size: 18px;
  color: rgba(175, 196, 233, 0.62);
  letter-spacing: 0.06em;
}

.activate-help > * + * {
  margin-left: 22px;
}

.activate-help kbd {
  display: inline-block;
  padding: 4px 12px;
  margin-right: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(220, 235, 255, 0.86);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
}

.activate-meta {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  font-size: 16px;
}

.activate-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  color: rgba(175, 196, 233, 0.62);
}

.activate-meta-row > * + * {
  margin-left: 12px;
}

.activate-meta-label {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activate-meta-value {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  color: rgba(220, 235, 255, 0.78);
  word-break: break-all;
  text-align: right;
}

.activate-duid {
  font-size: 14px;
  max-width: 60%;
}

/* TV mode (Tizen) — sakri dev/debug info iz produkcijskog UI-ja.
   Aktivira se preko `.activate-page.is-tv` modifikatora iz ActivatePage.tsx. */

.activate-page.is-tv .activate-meta {
  display: none;
}

/* Phone/tablet overrides — kad ekran nije TV velicine */

@media (max-width: 720px) {
  .activate-card { width: auto; padding: 28px 24px 24px; border-radius: 20px; }
  .activate-logo { width: 140px; }
  .activate-title { font-size: 24px; }
  .activate-subtitle { font-size: 14px; margin-bottom: 24px; }
  .activate-digit { width: 48px; height: 60px; font-size: 26px; }
  .activate-code-row { gap: 10px; margin-bottom: 22px; }
  .activate-help { font-size: 12px; gap: 12px; margin-bottom: 22px; }
  .activate-help kbd { font-size: 11px; padding: 2px 7px; }
}

/* ===== Live TV: fullscreen TV mode (kad gleda kanal, OSD nestaje) =====
   Channel panel je VEC sakriven iz base .channel-panel rule-a kad !panelOpen
   (opacity:0 + translateX(-110%)). Background je iza video-a (zIndex 0) i
   nije vidljiv. Ne treba override ovde — samo sklanjamo OSD.

   VAZNO: NE koristimo visibility:hidden ni display:none na panelu nigde.
   Tizen 6 Chromium 76 ne preuzima image-e dok je element tako sakriven.
   Posledica bi bila burst loadovanja 12 logo-a (6s) kad Back vrati panel.
   Sad panel iz browser perspektive uvek "vidljiv" (samo off-screen), pa
   slike loaduju u background-u — Back daje instant prelaz. */

.app.is-watching > .channel-osd {
  display: none !important;
}

.app.is-watching {
  background: #000 !important;
}

/* ===== Admin Page (read-only DB pregled) ===== */

/* Admin radi u browseru: tekst MORA da se selektuje i kopira (tv-base.css
   globalno gasi selekciju za TV UI). */

.admin-page,
.admin-page *,
.admin-login-page,
.admin-login-page * {
  -webkit-user-select: text;
  user-select: text;
  cursor: auto;
}

.admin-page button,
.admin-page a {
  cursor: pointer;
}

.admin-page {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, #0a0e1a 0%, #050711 100%);
  color: #e6ebf2;
  font-family: var(--font-stack, 'Segoe UI', Arial, sans-serif);
  padding: 24px 32px;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.admin-link-back {
  color: rgba(180, 200, 230, 0.78);
  font-size: 14px;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-link-back:hover { background: rgba(255, 255, 255, 0.1); }

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-tabs > * + * {
  margin-left: 4px;
}

.admin-tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: rgba(180, 200, 230, 0.62);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  font-family: inherit;
}

.admin-tab:hover { color: white; background: rgba(255, 255, 255, 0.04); }

.admin-tab.is-active { color: #3fc1ff; border-bottom-color: #3fc1ff; }

.admin-dash-title {
  margin: 26px 0 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 186, 233, 0.85);
}

.admin-dash .admin-dash-title:first-child {
  margin-top: 4px;
}

.admin-resource-bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.admin-resource-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.admin-resource-extra {
  margin-top: 8px;
  font-size: 13px;
  color: rgba(205, 222, 240, 0.72);
}

.admin-offset-row {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.admin-offset-input {
  width: 90px;
  padding: 8px 10px;
  margin-right: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(5, 12, 24, 0.9);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(10, 20, 38, 0.8);
  border: 1px solid rgba(96, 154, 255, 0.18);
}

.admin-toggle-label {
  font-weight: 700;
  font-size: 16px;
}

.admin-toggle-hint {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(205, 222, 240, 0.65);
}

.admin-switch {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(80, 90, 110, 0.5);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.admin-switch .admin-switch-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-right: 10px;
}

.admin-switch.is-on {
  background: rgba(16, 130, 80, 0.55);
  border-color: rgba(52, 211, 153, 0.5);
}

.admin-switch.is-on .admin-switch-knob {
  background: #34d399;
}

.admin-switch:disabled {
  opacity: 0.6;
  cursor: default;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat-card {
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
}

.admin-stat-label {
  color: rgba(180, 200, 230, 0.7);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.admin-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: white;
}

.admin-table-wrap {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: auto;
  max-height: calc(100vh - 240px);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead {
  position: sticky;
  top: 0;
  background: #0e1324;
  z-index: 1;
}

.admin-table th {
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  color: rgba(180, 200, 230, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.admin-table tr:hover td { background: rgba(255, 255, 255, 0.03); }

.admin-cell-mono {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
  color: rgba(190, 210, 240, 0.78);
  word-break: break-all;
  max-width: 380px;
}

.admin-empty {
  text-align: center;
  padding: 30px;
  color: rgba(180, 200, 230, 0.5);
}

.admin-loading {
  text-align: center;
  padding: 40px;
  color: rgba(180, 200, 230, 0.6);
  font-size: 14px;
}

.admin-error {
  padding: 14px 18px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 8px;
  color: #ff8888;
  font-size: 13px;
}

.admin-section-hint {
  margin: 0 0 12px;
  padding: 0 4px;
  color: rgba(180, 200, 230, 0.6);
  font-size: 12px;
}

/* ===== Admin Login Page (odvojen od webtv user login-a) ===== */

.admin-login-page {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0e1a 0%, #050711 60%, #0c0a1e 100%);
  font-family: var(--font-stack, 'Segoe UI', Arial, sans-serif);
  color: #e6ebf2;
}

.admin-login-card {
  width: 420px;
  width: min(420px, 92vw);
  padding: 40px 36px 28px;
  background: rgba(15, 22, 40, 0.92);
  border: 1px solid rgba(132, 182, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-login-card > * + * {
  margin-top: 14px;
}

.admin-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.admin-login-brand > * + * {
  margin-top: 6px;
}

.admin-login-logo {
  width: 100px;
  height: auto;
  margin-bottom: 4px;
}

.admin-login-title {
  font-size: 20px;
  font-weight: 800;
  color: white;
  letter-spacing: 0.02em;
}

.admin-login-subtitle {
  font-size: 12px;
  color: rgba(180, 200, 230, 0.6);
}

.admin-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-login-field > * + * {
  margin-top: 6px;
}

.admin-login-field span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(180, 200, 230, 0.7);
}

.admin-login-field input {
  padding: 11px 14px;
  background: rgba(8, 12, 24, 0.7);
  border: 1px solid rgba(132, 182, 255, 0.18);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-login-field input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.28);
}

.admin-login-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  border-radius: 8px;
  color: #ff8888;
  font-size: 13px;
}

.admin-login-btn {
  margin-top: 8px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.admin-login-btn:hover { transform: translateY(-1px); }

.admin-login-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.admin-login-foot {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: rgba(180, 200, 230, 0.5);
}

.admin-header-actions {
  display: flex;
  gap: 10px;
}

.admin-header-actions > * + * {
  margin-left: 10px;
}

/* ===== Program logo (preview-card) — uniformna velicina za sve kanale =====
   Prototype CSS samo MAX-uje (46x30) ali nema MIN. Mali logoi (npr. 24x24
   ikone) ostaju mali. Sad ih svaki "stretchuje" na pun box sa object-fit
   contain (nema distorzije).
   TV: box krupan (140x96) — logo citljiv sa 3-4m, ne deluje sabijeno.
   Override-uje 110px iz grid-template-columns kroz min-width !important. */

.channel-panel-shell.channel-preview-open .program-logo {
  width: 140px !important;
  height: 96px !important;
  min-width: 140px !important;
  flex: 0 0 140px !important;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px;
}

.channel-panel-shell.channel-preview-open .program-logo img,
.channel-panel-shell.channel-preview-open .program-logo .channel-logo-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

/* VAZNO: [hidden] attribute na fallback span-u (kad je logo image OK)
   mora da pobedi `display: flex`. Bez !important, display:flex u rule-u
   ispod override-uje user-agent default display:none za [hidden], pa
   fallback text "FT" / "TV" iskace iza slike. */

.channel-panel-shell.channel-preview-open .program-logo .channel-logo-text[hidden],
.channel-panel-shell.channel-preview-open .program-logo .channel-logo-fallback[hidden] {
  display: none !important;
}

.channel-panel-shell.channel-preview-open .program-logo .channel-logo-text,
.channel-panel-shell.channel-preview-open .program-logo .channel-logo-fallback {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Live overlay chrome — sat gore desno + logo dole desno ===== */

.live-top-clock {
  position: fixed;
  top: 1.6vh;
  right: 1.8vw;
  z-index: 30;
  text-align: right;
  color: rgba(237, 243, 255, 0.92);
  pointer-events: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.live-top-clock-time {
  font-size: 28px;
  font-size: clamp(20px, 1.55vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.live-top-clock-date {
  margin-top: 2px;
  font-size: 13px;
  font-size: clamp(11px, 0.78vw, 13px);
  font-weight: 600;
  color: rgba(200, 215, 240, 0.78);
  letter-spacing: 0.05em;
}

.live-bottom-brand {
  position: fixed;
  right: 1.4vw;
  bottom: 1.6vh;
  z-index: 30;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.live-brand-logo {
  width: 132px;
  width: clamp(96px, 7vw, 132px);
  height: auto;
  object-fit: contain;
  opacity: 0.92;
}

/* ===== Volume OSD ===== */

/* Prikazuje se gornje-desno kad korisnik promeni jacinu zvuka.
   Pozicija + sirina bara, font-i — sve direktni px (Chromium 76 friendly). */

.volume-osd {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  background: rgba(8, 12, 24, 0.88);
  border: 1px solid rgba(120, 158, 220, 0.22);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: rgba(244, 250, 255, 0.95);
  font-family: 'Segoe UI', Arial, sans-serif;
  animation: volume-osd-in 0.18s ease-out;
  pointer-events: none;
}

.volume-osd > * + * {
  margin-left: 18px;
}

/* Gap polyfill — Chromium 76 ne razume gap u flex */

.volume-osd > * + * { margin-left: 18px; }

.volume-osd-icon {
  font-size: 32px;
  line-height: 1;
  flex: 0 0 auto;
}

.volume-osd-bar {
  width: 260px;
  height: 10px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}

.volume-osd-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f9eff, #7ab8ff);
  border-radius: 999px;
  transition: width 0.12s ease-out;
}

.volume-osd-label {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  min-width: 72px;
  text-align: right;
  color: #ffffff;
  flex: 0 0 auto;
}

@keyframes volume-osd-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Exit-confirm dialog (Home + Back) ===== */

.exit-confirm-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 5, 12, 0.72);
}

.exit-confirm-card {
  width: 720px;
  width: min(52vw, 720px);
  padding: 48px 56px 40px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 24, 44, 0.98), rgba(9, 15, 30, 0.98));
  border: 1px solid rgba(120, 160, 255, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(60, 120, 255, 0.12);
  text-align: center;
}

.exit-confirm-title {
  font-size: 40px;
  font-weight: 800;
  color: #f4f8ff;
  letter-spacing: -0.01em;
}

.exit-confirm-text {
  margin-top: 16px;
  font-size: 24px;
  color: rgba(210, 224, 248, 0.82);
}

.exit-confirm-actions {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.exit-confirm-actions > * + * {
  margin-left: 20px;
}

.exit-confirm-btn {
  min-width: 220px;
  padding: 20px 32px;
  border-radius: 18px;
  border: 2px solid rgba(140, 170, 230, 0.28);
  background: rgba(14, 22, 40, 0.9);
  color: #edf4ff;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
}

.exit-confirm-btn.is-focused {
  border-color: rgba(120, 190, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(63, 158, 252, 0.32), 0 0 30px rgba(63, 158, 252, 0.28);
  background: rgba(24, 40, 72, 0.96);
}

.exit-confirm-btn-danger.is-focused {
  border-color: rgba(255, 120, 120, 0.95);
  box-shadow: 0 0 0 4px rgba(244, 80, 80, 0.32), 0 0 30px rgba(244, 80, 80, 0.28);
  background: linear-gradient(145deg, rgba(180, 40, 40, 0.9), rgba(120, 24, 24, 0.9));
  color: #fff;
}

/* ===== AVPlay hibridna ljuska (Faza 3) — punch-through =====
   Kad AVPlay ljuska pusta video (hardverski sloj ISPOD naseg iframe-a),
   VideoPlayer doda "avplay-video-active" na <html>. Sve pozadine na putu
   do videa moraju biti PROVIDNE — inace korisnik vidi bg-tv pozadinu
   umesto kanala. OSD/panel/dijalozi normalno stoje preko videa. */

html.avplay-video-active,
html.avplay-video-active body,
html.avplay-video-active #root,
html.avplay-video-active .app {
  background: transparent !important;
}

html.avplay-video-active .background {
  display: none !important;
}

html.avplay-video-active .video-player-wrapper {
  background: transparent !important;
}

/* ===== Admin tab "Ugovori" (pravila iz admin-dizajn: 16px, pune boje,
   bez providnosti na tekstu, status tackom) ===== */

.adm-c { font-size: 16px; }

.adm-c-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.adm-c-head > * + * { margin-left: 16px; }

.adm-c-title { font-size: 28px; font-weight: 700; margin: 0 0 4px; color: #e6ebf2; }

.adm-c-muted { color: #b4b7cc; font-size: 16px; }

.adm-c-strong { color: #e6ebf2; font-weight: 600; }

.adm-c-search {
  width: 360px;
  max-width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  color: #e6ebf2;
  background: #0f1526;
  border: 1px solid #2a3350;
  border-radius: 10px;
}

.adm-c-search::placeholder { color: #8f93a8; }

.adm-c-card {
  background: #10162a;
  border: 1px solid #1f2a44;
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 16px;
}

.adm-c-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.adm-c-card-title { font-size: 20px; font-weight: 600; margin: 0 0 2px; color: #e6ebf2; }

.adm-c-badges > * + * { margin-left: 8px; }

.adm-c-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 16px;
  background: #1e293b;
  color: #e6ebf2;
}

.adm-c-badge.is-on { background: #064e3b; color: #a7f3d0; }

.adm-c-empty { padding: 8px 0; }

.adm-c-table-wrap { overflow-x: auto; }

.adm-c-table { width: 100%; border-collapse: collapse; font-size: 16px; }

.adm-c-table th {
  text-align: left;
  font-weight: 600;
  color: #b4b7cc;
  padding: 10px 12px;
  white-space: nowrap;
}

.adm-c-table td {
  padding: 12px;
  border-top: 1px solid #1f2a44;
  color: #e6ebf2;
  vertical-align: middle;
}

.adm-c-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.adm-c-dot.is-on { background: #22c55e; }

.adm-c-dot.is-off { background: #94a3b8; }

.adm-c-dot.is-bad { background: #ef4444; }

.adm-c-actions { width: 48px; text-align: right; }

.adm-c-more {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #2a3350;
  background: transparent;
  color: #e6ebf2;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.adm-c-more:hover { background: #1e293b; }

.adm-c-menu {
  position: fixed;
  z-index: 1000;
  min-width: 240px;
  background: #111827;
  border: 1px solid #2a3350;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 6px;
}

.adm-c-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 16px;
  color: #e6ebf2;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.adm-c-menu-item:hover { background: #1e293b; }

.adm-c-menu-item.is-danger { color: #f87171; }

/* Clanstvo u klubu: QR kod, zid za placanje, podsetnik */

.club-qr {
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  margin: 20px auto;
}

.club-dialog .club-qr { margin: 16px auto 24px; }

.club-wall { text-align: center; padding-top: 24px; padding-bottom: 24px; }

.club-wall .activate-brand { margin-bottom: 8px; }

.club-wall .activate-logo { width: auto; height: 96px; }

.club-wall .activate-title { margin-top: 0; }

.club-wall .club-qr { margin: 16px auto; }

.club-card-text { font-size: 20px; line-height: 1.4; margin: 8px 0; color: rgba(238, 246, 255, 0.96); }

/* Razmak marginom: TV-ovi do Chromium 84 ne znaju flex gap (RAZVOJ.md, pravilo 16) */

.set-card.club-card { flex-direction: row; align-items: center; gap: 0; }

.club-card-body { margin-left: 24px; min-width: 0; }

.club-qr-wait { display: flex; align-items: center; justify-content: center; text-align: center; color: #111827; font-size: 16px; }

.club-card .club-qr { margin: 0; flex: none; }

/* ===== Video klub (VodPage) =====
   Isti jezik kao Live TV i Podesavanja: tamne kartice rgba(6,13,24,.78),
   plavi kursor, beli prsten na dugmadi, slova od 16 px navise.
   TIZEN (Chromium 63/76): bez gap-a, bez grid minmax, bez transition-a i
   will-change, bez pseudo-elemenata na redovima (docs/RAZVOJ.md). */

.vod-page {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  padding: 30px 40px 24px 28px;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.vod-main {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 28px;
  display: flex;
  flex-direction: column;
}

.vod-header {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.vod-kicker {
  color: rgba(114, 199, 255, 0.92);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vod-heading {
  margin: 4px 0 0;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.vod-columns {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  margin-top: 20px;
}

.vod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(6, 13, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Bez velike zamucene senke: na TV-u se racuna pri svakom precrtavanju */
}

/* Kategorije same (kao grupe na Live-u); spisak + detalji posle OK */

.vod-cats { flex: 0 0 540px; }

/* Spisak uzi (fiksno), detalji siri — veca slika i opis */

.vod-list { flex: 0 0 700px; }

.vod-details { flex: 1 1 auto; min-width: 0; margin-left: 18px; }

.vod-card-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(96, 177, 255, 0.16);
  background: linear-gradient(180deg, rgba(29, 43, 69, 0.9), rgba(8, 15, 26, 0.62));
}

.vod-card-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-card-count {
  flex: 0 0 auto;
  margin-left: 12px;
  color: rgba(205, 222, 240, 0.78);
  font-size: 17px;
  font-weight: 700;
}

.vod-rows {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 8px 10px;
}

.vod-rows::-webkit-scrollbar { width: 0; height: 0; }

/* Kategorije i naslovi ne skroluju — uvek isti redovi (VISIBLE_ROWS) */

.vod-rows.is-static { overflow: hidden; }

/* Red: kategorija ili naslov. Kursor = is-focused (plavo), izabrana
   kategorija kad kursor nije na njoj = is-selected. */

.vod-row {
  display: flex;
  align-items: center;
  min-height: 70px;
  padding: 6px 14px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  text-align: left;
}

.vod-row + .vod-row { margin-top: 6px; }

/* Izabrana kategorija dok je kursor drugde: samo plava crta levo —
   jedini jak okvir na ekranu je kursor (is-focused) */

.vod-row.is-selected {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 5px 0 0 #3fc1ff;
}

.vod-row.is-focused {
  background: linear-gradient(90deg, rgba(52, 108, 188, 0.96), rgba(30, 68, 128, 0.94));
  border-color: #cfe6ff;
  box-shadow: 0 0 0 3px rgba(198, 226, 255, 0.35);
}

.vod-cat-icon {
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(114, 199, 255, 0.95);
}

.vod-row.is-focused .vod-cat-icon { color: #fff; }

.vod-cat-name {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 14px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.vod-row-arrow {
  flex: 0 0 24px;
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  text-align: center;
}

.vod-row.is-focused .vod-row-arrow { color: #fff; }

/* Naslov: ikonica zanra levo (bez kvadrata), veca slova */

.vod-item { min-height: 88px; }

.vod-item-icon {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(114, 199, 255, 0.95);
}

.vod-row.is-focused .vod-item-icon { color: #fff; }

.vod-item-copy {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 16px;
}

/* Zapamcena pozicija: linija napretka umesto teksta */

.vod-item-progress {
  display: flex;
  align-items: center;
  margin-top: 8px;
  color: rgba(205, 222, 240, 0.9);
  font-size: 20px;
  white-space: nowrap;
}

.vod-item-progress-ep {
  flex: 0 0 auto;
  margin-right: 14px;
  font-weight: 700;
  color: #ffd689;
}

.vod-progress {
  flex: 1 1 auto;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.vod-progress-fill {
  height: 100%;
  background: #3fc1ff;
}

.vod-row.is-focused .vod-progress { background: rgba(255, 255, 255, 0.3); }

.vod-row.is-focused .vod-progress-fill { background: #fff; }

.vod-item-progress-left {
  flex: 0 0 auto;
  margin-left: 14px;
}

.vod-item-name {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-item-meta {
  margin-top: 6px;
  color: rgba(205, 222, 240, 0.9);
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-row.is-focused .vod-item-meta { color: rgba(214, 235, 255, 0.92); }

.vod-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #cfe6ff;
  background: rgba(18, 148, 255, 0.18);
  border: 1px solid rgba(96, 177, 255, 0.4);
}

.vod-badge.is-series {
  color: #ffd689;
  background: rgba(255, 214, 137, 0.12);
  border-color: rgba(255, 196, 108, 0.5);
}

.vod-empty {
  padding: 48px 28px;
  text-align: center;
  color: rgba(226, 239, 250, 0.88);
  font-size: 22px;
  line-height: 1.5;
}

.vod-empty-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.vod-empty-sub {
  color: rgba(205, 222, 240, 0.72);
  font-size: 18px;
}

/* Pilula (zanr u zaglavlju, pilule u detaljima) */

.vod-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  color: rgba(225, 235, 247, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

/* Pilule u zaglavlju spiska (zanr, redosled) — bez gap-a (TV) */

.vod-card-head .vod-pill {
  margin-left: 12px;
}

/* Redosled: ikonica strelica ispred naziva */

.vod-pill-sort svg {
  vertical-align: -3px;
  margin-right: 6px;
}

/* Fokus na dugmetu/piluli — isti prsten kao ProgramDetails i EPG dani */

.vod-pill.is-focused,
.vod-btn.is-focused,
.vod-key.is-focused {
  color: #fff;
  border: 2px solid #cfe6ff;
  background: linear-gradient(90deg, rgba(52, 108, 188, 0.96), rgba(30, 68, 128, 0.94));
  box-shadow: 0 0 0 3px rgba(198, 226, 255, 0.45);
}

/* ===== Detalji ===== */

.vod-details-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 26px 22px;
}

/* Sve osim opisa zadrzava svoju visinu; opis dobija samo ostatak */

.vod-details-body > * { flex-shrink: 0; }

/* Gore: velika uspravna naslovna levo, tekst desno; dugmad dole */

.vod-details-body > .vod-details-top {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.vod-art {
  position: relative;
  flex: 0 0 360px;
  width: 360px;
  height: 540px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(114, 199, 255, 0.45);
  background: #0e1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vod-art img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vod-details-text {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin-left: 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vod-details-text > * { flex-shrink: 0; }

.vod-details-text > .vod-detail-kicker { margin-top: 0; }

.vod-detail-kicker {
  margin-top: 18px;
  color: rgba(114, 199, 255, 0.92);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vod-detail-title {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  max-height: 92px;
  overflow: hidden;
}

.vod-detail-original {
  margin-top: 6px;
  color: rgba(205, 222, 240, 0.85);
  font-size: 21px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-pills {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
}

.vod-pills .vod-pill {
  margin: 0 10px 8px 0;
  font-size: 19px;
}

.vod-pill.is-hd {
  color: #cfe6ff;
  border-color: rgba(96, 177, 255, 0.5);
  background: rgba(18, 148, 255, 0.16);
}

/* ★ U omiljenima (Video klub) — zlatna kao zvezdica na Live TV-u */

.vod-pill.is-fav {
  color: #ffd84f;
  border-color: rgba(255, 216, 79, 0.6);
  background: rgba(255, 216, 79, 0.12);
}

.vod-fav-star {
  color: #ffd84f;
}

/* Opis: najvise 7 celih redova (bez reda presecenog na pola) */

.vod-details-body > .vod-detail-desc,
.vod-details-text > .vod-detail-desc {
  flex: 0 1 auto;
  min-height: 0;
  margin-top: 10px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  color: rgba(226, 239, 250, 0.92);
  font-size: 24px;
  line-height: 1.45;
}

/* Rezija i uloge: po jedan red, visak tackice */

.vod-detail-credit {
  margin-top: 10px;
  color: rgba(226, 239, 250, 0.92);
  font-size: 21px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-detail-credit b {
  color: rgba(114, 199, 255, 0.95);
  font-weight: 700;
}

.vod-actions {
  flex: 0 0 auto;
  display: flex;
  margin-top: 18px;
}

.vod-btn {
  flex: 1 1 auto;
  min-height: 64px;
  padding: 12px 18px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 800;
  color: #e2eefa;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.vod-btn + .vod-btn { margin-left: 12px; }

.vod-btn.is-primary:not(.is-focused) {
  background: rgba(22, 163, 74, 0.2);
  border-color: rgba(34, 197, 94, 0.6);
  color: #c9f7d8;
}

.vod-episode {
  flex: 0 0 auto;
  display: flex;
  margin-top: 18px;
}

.vod-episode .vod-btn { flex: 1 1 auto; }

/* ===== Pretraga: polje + ekranska tastatura ===== */

.vod-search {
  flex: 0 0 auto;
  /* Bez tastature (kursor u rezultatima) ispod mora da stane 8 redova */
  padding: 10px 14px 0;
}

.vod-search-field {
  min-height: 62px;
  padding: 10px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: rgba(3, 8, 18, 0.9);
  border: 1px solid rgba(96, 177, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
}

.vod-search-field.is-empty {
  color: rgba(205, 222, 240, 0.7);
  font-size: 22px;
  font-weight: 600;
}

.vod-caret {
  display: inline-block;
  width: 3px;
  height: 34px;
  margin-left: 4px;
  background: #3fc1ff;
}

.vod-kb { margin-top: 10px; }

.vod-kb-row { display: flex; }

.vod-kb-row + .vod-kb-row { margin-top: 8px; }

.vod-key {
  flex: 1 1 0;
  min-width: 0;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #e2eefa;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.vod-key + .vod-key { margin-left: 8px; }

.vod-key.is-space { flex: 3 1 0; font-size: 20px; }

/* ===== Izbor zanra (kao padajuci meni u Podesavanjima) ===== */

.vod-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 14, 0.72);
}

.vod-select {
  width: 560px;
  max-height: 820px;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 14, 27, 0.98), rgba(5, 10, 21, 0.98));
  border: 1px solid rgba(96, 154, 255, 0.28);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.vod-select .vod-row { min-height: 60px; }

.vod-select .vod-cat-name { margin-left: 0; font-size: 21px; }

/* ===== Podnozje sa tasterima ===== */

.vod-footer {
  flex: 0 0 auto;
  margin-top: 14px;
  color: rgba(205, 222, 240, 0.85);
  font-size: 19px;
}

/* ===== Gledanje ===== */

.vod-player {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
}

.vod-player .video-player-wrapper {
  width: 100%;
  height: 100%;
}

.vod-osd {
  position: fixed;
  left: 60px;
  right: 60px;
  top: 48px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  border-radius: 22px;
  background: rgba(4, 10, 22, 0.88);
  border: 1px solid rgba(96, 154, 255, 0.24);
  color: #fff;
}

.vod-osd-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
}

.vod-osd-sub {
  margin-top: 8px;
  color: rgba(205, 222, 240, 0.9);
  font-size: 24px;
}

.vod-osd-subs {
  flex: 0 0 auto;
  margin-left: 24px;
  font-size: 26px;
  font-weight: 700;
  color: #cfe6ff;
}

.vod-subtitle {
  position: fixed;
  left: 100px;
  right: 100px;
  bottom: 60px;
  z-index: 15;
  text-align: center;
  color: #fff;
  font-size: 54px;
  font-weight: 600;
  line-height: 1.25;
  white-space: pre-line;
  text-shadow: 0 0 4px #000, 0 2px 4px #000, 2px 0 4px #000, -2px 0 4px #000;
}

/* Poruka (greska, nova verzija aplikacije) */

.vod-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 40;
  width: 860px;
  margin-left: -430px;
  margin-top: -110px;
  padding: 30px 40px;
  border-radius: 18px;
  text-align: center;
  background: rgba(4, 10, 22, 0.94);
  border: 1px solid rgba(96, 154, 255, 0.3);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.vod-toast-title {
  font-size: 32px;
  font-weight: 700;
}

.vod-toast-sub {
  margin-top: 10px;
  color: rgba(205, 222, 240, 0.85);
  font-size: 21px;
}

/* Meni levo (AppSideNav: Video klub, Podesavanja): fokus mora da se vidi i
   na ikonici aktivne stranice, pa beli prsten + natpis pored ikonice */

.app-side-nav .side-nav-item.is-focused {
  color: #fff;
  border: 2px solid #cfe6ff;
  background: linear-gradient(180deg, rgba(52, 108, 188, 0.96), rgba(30, 68, 128, 0.94));
  box-shadow: 0 0 0 3px rgba(198, 226, 255, 0.45);
}

.nav-tip {
  position: absolute;
  left: 66px;
  top: 50%;
  margin-top: -21px;
  z-index: 5;
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: rgba(30, 68, 128, 0.98);
  border: 2px solid #cfe6ff;
}

/* Ikonice u dugmadima (SVG, ne znakovi iz fonta — na TV-u se lepe uz tekst) */

.vod-btn-ico {
  display: inline-flex;
  align-items: center;
}

.vod-btn-ico.is-left { margin-right: 12px; }

.vod-btn-ico.is-right { margin-left: 12px; }

.vod-osd-subs {
  display: flex;
  align-items: center;
}

/* ===== Traka tokom filma (ljuska 2.5.0 / Android 1.0.5) =====
   Pune boje, bez preliva (pravilo #19); menja se samo sirina linije
   napretka i tekst vremena, jednom u sekundi. */

.vod-bar {
  position: fixed;
  left: 60px;
  right: 60px;
  bottom: 40px;
  z-index: 20;
  padding: 24px 32px 26px;
  border-radius: 22px;
  background: rgba(4, 10, 22, 0.92);
  border: 1px solid rgba(96, 154, 255, 0.28);
  color: #fff;
}

.vod-bar-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.vod-bar-info { min-width: 0; }

.vod-bar-time {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-left: 24px;
  font-size: 30px;
  font-weight: 700;
  color: #cfe6ff;
}

/* Linija napretka; u fokusu (premotavanje) deblja, sa klizacem */

.vod-bar-line {
  position: relative;
  margin-top: 16px;
  padding: 6px 0;
}

.vod-bar-line.is-focused .vod-bar-track {
  height: 14px;
  border-radius: 7px;
  box-shadow: 0 0 0 3px rgba(198, 226, 255, 0.45);
}

.vod-bar-knob {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 14px;
  background: #fff;
  border: 3px solid #3fc1ff;
}

.vod-bar-speed {
  display: inline-flex;
  align-items: center;
  margin-right: 18px;
  padding: 2px 12px;
  border-radius: 10px;
  color: #041021;
  background: #3fc1ff;
}

.vod-bar-speed-x {
  margin-left: 6px;
  font-weight: 800;
}

.vod-bar-hint {
  margin-top: 10px;
  color: rgba(205, 222, 240, 0.9);
  font-size: 20px;
}

.vod-bar-track {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.vod-bar-fill {
  height: 100%;
  background: #3fc1ff;
}

.vod-bar-btns {
  display: flex;
  margin-top: 14px;
}

.vod-bar-btns .vod-btn {
  flex: 0 0 auto;
  min-width: 190px;
  font-size: 24px;
}

/* Titl se podigne iznad trake dok je prikazana */

.vod-subtitle.is-raised { bottom: 330px; }

/* Velicina i boja titla (Podesavanja → Titlovi u Video klubu) — isto za
   titl preko filma i primer u Podesavanjima. Klase na samom titlu, ne na
   korenu stranice (Tizen pravilo #1). */

.vod-subtitle.sub-size-1,
.set-subs-sample.sub-size-1 { font-size: 62px; }

.vod-subtitle.sub-size-2,
.set-subs-sample.sub-size-2 { font-size: 72px; }

.vod-subtitle.sub-yellow,
.set-subs-sample.sub-yellow { color: #ffe033; }

/* ===== Glavni ekran Video kluba (VodBrowse): izdvojeno + 2 reda karusela =====
   Visina je racunata za 1920x1080: izdvojeno 240 + 2 reda po 329 px.
   Pune boje i linearni prelivi (pravilo #19); senke bez zamucenja. */

.vod-browse {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 18px;
  display: flex;
  flex-direction: column;
}

.vod-hero {
  position: relative;
  flex: 0 0 240px;
  height: 240px;
  border-radius: 22px;
  overflow: hidden;
  background: #0b1322;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vod-hero.is-focused { box-shadow: 0 0 0 3px #cfe6ff, 0 0 0 7px rgba(63, 158, 252, 0.35); }

.vod-hero-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vod-hero-shade {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(6, 11, 22, 0.95) 0%, rgba(6, 11, 22, 0.8) 45%, rgba(6, 11, 22, 0.2) 100%);
}

.vod-hero-text {
  position: absolute;
  left: 32px;
  top: 24px;
  right: 240px;
  bottom: 20px;
  overflow: hidden;
}

.vod-hero-kicker {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(114, 199, 255, 0.95);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vod-hero-title {
  margin-top: 6px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-hero-meta {
  margin-top: 6px;
  color: rgba(214, 235, 255, 0.92);
  font-size: 20px;
}

.vod-hero-desc {
  margin-top: 10px;
  color: rgba(226, 239, 250, 0.92);
  font-size: 22px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.vod-hero-poster {
  position: absolute;
  right: 28px;
  top: 15px;
  width: 140px;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(114, 199, 255, 0.5);
  background: #0e1a2e;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.vod-hero-poster img,
.vod-tile img,
.vod-full-art img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Visina: izdvojeno 240 + 2 x (20 + 40 + 8 + 261) = 898 od 899 px */

.vod-carousel {
  flex: 0 0 auto;
  height: 309px;
  margin-top: 20px;
}

/* Naziv kategorije levo, izabrani film na sredini ostatka linije */

.vod-carousel-head {
  display: flex;
  align-items: center;
  height: 40px;
}

.vod-carousel-title {
  flex: 0 1 auto;
  max-width: 45%;
  font-size: 26px;
  font-weight: 700;
  line-height: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-carousel-row {
  display: flex;
  margin-top: 8px;
  height: 261px;
}

.vod-carousel-empty {
  color: rgba(205, 222, 240, 0.85);
  font-size: 22px;
  padding-top: 20px;
}

/* Izabrani film: istaknuta traka kao izabrano dugme (.vod-pill.is-focused) */

.vod-carousel-caption {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 24px;
  text-align: center;
}

.vod-carousel-caption span {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
  padding: 2px 24px;
  border: 2px solid #cfe6ff;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(52, 108, 188, 0.96), rgba(30, 68, 128, 0.94));
  box-shadow: 0 0 0 3px rgba(198, 226, 255, 0.45);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-tile {
  position: relative;
  flex: 0 0 174px;
  width: 174px;
  height: 261px;
  border-radius: 12px;
  overflow: hidden;
  background: #0e1a2e;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

/* 6 x 174 + 5 x 25 = 1169 — poravnato sa desnim rubom izdvojenog */

.vod-tile + .vod-tile { margin-left: 25px; }

/* Kursor: beli okvir + prsten (bez zamucenja) */

.vod-tile.is-focused {
  border-color: #cfe6ff;
  box-shadow: 0 0 0 3px #cfe6ff, 0 0 0 7px rgba(63, 158, 252, 0.35);
}

.vod-tile-fallback {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 26px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: rgba(114, 199, 255, 0.85);
}

.vod-tile-name {
  margin-top: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  max-height: 92px;
  overflow: hidden;
}

.vod-tile-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.6);
}

.vod-tile-progress > div {
  height: 100%;
  background: #3fc1ff;
}

.vod-tile.is-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #12203a;
}

.vod-tile-more {
  padding: 0 12px;
  text-align: center;
  color: #cfe6ff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

/* ===== Detalji preko celog ekrana (VodDetailsFull) ===== */

.vod-full {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  overflow: hidden;
  background: #070d19;
  color: #fff;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.vod-full-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vod-full-shade {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(7, 13, 25, 0.97) 0%, rgba(7, 13, 25, 0.9) 50%, rgba(7, 13, 25, 0.55) 100%);
}

.vod-full-body {
  position: absolute;
  left: 110px;
  right: 110px;
  top: 110px;
  bottom: 80px;
  display: flex;
}

.vod-full-art {
  position: relative;
  flex: 0 0 380px;
  width: 380px;
  height: 570px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(114, 199, 255, 0.45);
  background: #0e1a2e;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.vod-full-text {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 56px;
  display: flex;
  flex-direction: column;
}

.vod-full-text > * { flex-shrink: 0; }

.vod-full-kicker {
  color: rgba(114, 199, 255, 0.95);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vod-full-title {
  margin-top: 8px;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.08;
  max-height: 122px;
  overflow: hidden;
}

.vod-full-original {
  margin-top: 6px;
  color: rgba(205, 222, 240, 0.9);
  font-size: 24px;
}

.vod-full-pills {
  display: flex;
  flex-wrap: wrap;
  margin-top: 16px;
}

.vod-full-pills .vod-pill {
  margin: 0 12px 10px 0;
  font-size: 21px;
}

.vod-full-text > .vod-full-desc {
  flex: 0 1 auto;
  min-height: 0;
  margin-top: 12px;
  color: rgba(232, 242, 252, 0.95);
  font-size: 28px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.vod-full-credit {
  margin-top: 12px;
  color: rgba(226, 239, 250, 0.95);
  font-size: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vod-full-credit b {
  color: rgba(114, 199, 255, 0.95);
  font-weight: 700;
}

.vod-full-row {
  display: flex;
  margin-top: 24px;
}

.vod-full-row .vod-btn {
  flex: 0 0 auto;
  min-width: 280px;
  min-height: 72px;
  font-size: 26px;
}

/* Traka epizoda (spisak od provajdera): plocice sa brojem, bez gap-a i
   tranzicija (TV). Izabrana a nije pod kursorom: samo okvir. */

.vod-full-row.vod-ep-strip { align-items: center; }

.vod-full-row .vod-ep-chip {
  flex: 0 0 88px;
  width: 88px;
  min-width: 0;
  padding: 0;
  font-size: 28px;
}

.vod-full-row .vod-ep-chip + .vod-ep-chip { margin-left: 10px; }

.vod-ep-chip.is-selected {
  color: #fff;
  border: 2px solid #cfe6ff;
  background: rgba(52, 108, 188, 0.35);
}

.vod-ep-more {
  flex: 0 0 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2eefa;
}

/* Leva strelica visi u razmaku pored naslovne, da se plocice poravnaju
   sa tekstom i dugmadima ispod */

.vod-ep-more:first-child { margin-left: -46px; margin-right: 10px; }

.vod-ep-chip + .vod-ep-more { margin-left: 10px; }

.vod-ep-more.is-off { visibility: hidden; }

.vod-ep-count {
  flex: 0 0 auto;
  margin-left: 18px;
  color: #e2eefa;
  font-size: 24px;
  font-weight: 700;
  white-space: nowrap;
}

.vod-full-hint {
  margin-top: 18px;
  color: rgba(205, 222, 240, 0.9);
  font-size: 20px;
}

/* responsive.css — breakpoints za multi-platform support
   - TV / Desktop: >= 1280px (default, optimizovan za 1920x1080)
   - Tablet: 768-1279px
   - Phone: < 768px

   Cilj: isti CSS radi na Tizen TV-u (1920x1080), Android phone-u,
   iPad-u, web browseru. Komponentama koje treba touch-friendly variante
   dodajemo override-e ovde.
*/

/* Tablet portrait + phone landscape */

@media (max-width: 1279px) and (min-width: 768px) {
  /* Smanji 3D perspective scale za manje ekrane */
  .home-menu {
    perspective: 1200px;
  }
  .home-menu-item {
    width: 200px;
    width: clamp(140px, 18vw, 200px);
    height: 260px;
    height: clamp(180px, 22vw, 260px);
  }
}

/* Phone portrait */

@media (max-width: 767px) {
  /* Reset 3D efekta na phone-u — fallback na 2D grid */
  .home-menu {
    perspective: none;
    flex-wrap: wrap;
    gap: 12px;
  }
  .home-menu-item {
    width: calc(50% - 6px);
    height: 180px;
    transform: none !important;
    opacity: 1 !important;
  }

  /* Channel panel postaje full-screen na phone-u */
  .channel-panel-shell {
    width: 100vw !important;
    grid-template-columns: 1fr !important;
  }
}

/* Touch-first: vidljivi hit targeti minimum 44x44 (Apple/Google guidelines) */

@media (hover: none) and (pointer: coarse) {
  button,
  [role="button"],
  .menu-item,
  .channel-row,
  .group-row,
  .fav-ch-item,
  .fav-mode-btn,
  .set-btn,
  .set-focusable {
    min-height: 44px;
  }

  /* Disable hover-based scaling/glow na touch device-ima da ne bi
     ostalo "stuck active" stanje posle tap-a */
  *:hover {
    transform: none !important;
  }
}

/* Hardware acceleration hints za smooth animacije na slabijim Android uredjajima.
   NEMA "transform: translateZ(0)" — to overrides prototype-ov 3D transform.
   `will-change` je dovoljan signal GPU-u bez menjanja transform vrednosti. */

.menu-item,
.channel-row,
.fav-ch-item,
.movie-feature-cover {
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

/* Smanjenje motion za korisnike koji preferiraju (iOS accessibility) */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mali Android phone-i (< 380px) — extra compact */

@media (max-width: 379px) {
  .home-menu-item {
    height: 140px;
    font-size: 12px;
  }
  .home-menu-icon {
    width: 60px;
    height: 60px;
  }
}

.container {
  width: 100%;
}

@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}

.\!visible {
  visibility: visible !important;
}

.visible {
  visibility: visible;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.bottom-0 {
  bottom: 0px;
}

.bottom-20 {
  bottom: 5rem;
}

.left-0 {
  left: 0px;
}

.right-0 {
  right: 0px;
}

.right-4 {
  right: 1rem;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-10 {
  margin-top: 2.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.block {
  display: block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.aspect-video {
  padding-bottom: 56.25%;
  aspect-ratio: 16 / 9;
}

.h-16 {
  height: 4rem;
}

.h-4 {
  height: 1rem;
}

.h-7 {
  height: 1.75rem;
}

.h-full {
  height: 100%;
}

.min-h-\[60vh\] {
  min-height: 60vh;
}

.min-h-screen {
  min-height: 100vh;
}

.w-4 {
  width: 1rem;
}

.w-72 {
  width: 18rem;
}

.w-auto {
  width: auto;
}

.w-full {
  width: 100%;
}

.min-w-\[28px\] {
  min-width: 28px;
}

.max-w-md {
  max-width: 28rem;
}

.flex-1 {
  flex: 1 1 0%;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-6 {
  gap: 1.5rem;
}

.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.overflow-hidden {
  overflow: hidden;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.break-all {
  word-break: break-all;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.border {
  border-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgba(0, 0, 0, var(--tw-bg-opacity, 1));
}

.bg-black\/80 {
  background-color: rgba(0, 0, 0, 0.8);
}

.bg-gray-900 {
  --tw-bg-opacity: 1;
  background-color: rgba(17, 24, 39, var(--tw-bg-opacity, 1));
}

.bg-gray-950 {
  --tw-bg-opacity: 1;
  background-color: rgba(3, 7, 18, var(--tw-bg-opacity, 1));
}

.bg-primary-600 {
  --tw-bg-opacity: 1;
  background-color: rgba(79, 70, 229, var(--tw-bg-opacity, 1));
}

.bg-surface-200 {
  --tw-bg-opacity: 1;
  background-color: rgba(18, 18, 38, var(--tw-bg-opacity, 1));
}

.bg-surface-400 {
  --tw-bg-opacity: 1;
  background-color: rgba(10, 10, 30, var(--tw-bg-opacity, 1));
}

.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}

.p-1\.5 {
  padding: 0.375rem;
}

.p-2 {
  padding: 0.5rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.italic {
  font-style: italic;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgba(209, 213, 219, var(--tw-text-opacity, 1));
}

.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgba(156, 163, 175, var(--tw-text-opacity, 1));
}

.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgba(107, 114, 128, var(--tw-text-opacity, 1));
}

.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgba(75, 85, 99, var(--tw-text-opacity, 1));
}

.text-primary-500 {
  --tw-text-opacity: 1;
  color: rgba(99, 102, 241, var(--tw-text-opacity, 1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgba(255, 255, 255, var(--tw-text-opacity, 1));
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.outline {
  outline-style: solid;
}

.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.backdrop-blur-md {
  --tw-backdrop-blur: blur(12px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:bg-primary-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(67, 56, 202, var(--tw-bg-opacity, 1));
}

.hover\:bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {

  .md\:bottom-4 {
    bottom: 1rem;
  }
}