/* 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;
      }

.home-main {
        position: relative;
        min-height: 8vh;
        /* padding-right uklonjen — bio rezerva za hero feature kolone.
           Bez hero, menu se centrira normalno. */
        padding: 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: center;
          justify-content: center;
          padding: 0 1vw;
          /* Hero feature uklonjen — menu sad popunjava sredinu home-main grid row-a.
             Bez negative margin-a koji bi ga gurao u nepostojeci hero prostor. */
          margin-top: 0;
          position: relative;
          z-index: 5;
      }

.content-shelf {
          position: relative;
          z-index: 1;
          display: flex;
          flex-direction: column;
          gap: 14px;
          width: 720px;
          width: min(46vw, 720px);
          /* Clamp da content-shelf ne preklapa menu items na malim viewport-ima */
          margin: -40px 0 0 1vw;
          margin: clamp(-119px, -11vh, -40px) 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: 24px;
          font-size: clamp(18px, 1.3vw, 24px);
          font-weight: 800;
          letter-spacing: -0.02em;
        }

.content-shelf-subtitle {
          color: rgba(175, 196, 233, 0.72);
          font-size: 12px;
          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: 156px;
          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: 156px;
          padding: 16px;
        }

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

.content-card-kicker {
          display: inline-flex;
          align-items: center;
          width: -moz-fit-content;
          width: fit-content;
          min-height: 24px;
          padding: 0 9px;
          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.84);
          font-size: 10px;
          font-weight: 800;
          letter-spacing: 0.12em;
          text-transform: uppercase;
        }

.content-card-title {
          margin: 0;
          color: #ffffff;
          font-size: 20px;
          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.78);
          font-size: 12px;
          font-weight: 600;
        }

.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;
          right: -34px;
          right: min(-2.6vw, -34px);
          width: 700px;
          width: min(52vw, 700px);
          min-height: 454px;
        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: 454px;
        border-radius: 0;
        overflow: hidden;
        border: none;
        box-shadow: none;
        background: transparent;
        -webkit-backdrop-filter: none;
                backdrop-filter: none;
        isolation: isolate;
      }

.movie-feature::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background:
          radial-gradient(circle at 72% 28%, rgba(84, 132, 210, 0.16), transparent 24%),
          linear-gradient(180deg, rgba(1, 5, 11, 0.99) 0%, rgba(1, 5, 11, 0.95) 10%, 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 {
        position: absolute;
        top: -74px;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: inherit;
        background-repeat: no-repeat;
        transform: translateZ(0);
        transform-origin: top right;
        transition: background-image 0.32s ease, opacity 0.32s ease;
        overflow: hidden;
        box-shadow: 0 28px 42px rgba(0, 0, 0, 0.18);
        background:
          linear-gradient(180deg, rgba(8, 14, 30, 0.26), rgba(8, 14, 30, 0.64)),
          rgba(7, 12, 24, 0.72);
        background-size: 0 0;
        background-position: 200% 200%;
      }

.movie-feature-cover::before {
        content: '';
        position: absolute;
        top: -4%;
        right: -8%;
        bottom: -6%;
        left: 0%;
        background-image: inherit;
        background-position: center right;
        background-repeat: no-repeat;
        background-size: cover;
        min-height: 454px;
        -webkit-mask-image:
          linear-gradient(180deg, transparent 0%, #000 22%),
          linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.25) 18%, rgba(0,0,0,0.72) 36%, #000 52%, #000 100%);
        -webkit-mask-composite: source-in;
        mask-image:
          linear-gradient(180deg, transparent 0%, #000 22%),
          linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.25) 18%, rgba(0,0,0,0.72) 36%, #000 52%, #000 100%);
        -webkit-mask-composite: source-in, xor;
                mask-composite: intersect;
      }

.movie-feature-cover::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background:
          linear-gradient(180deg, rgba(1, 5, 11, 0.96) 0%, rgba(1, 5, 11, 0.82) 12%, rgba(1, 5, 11, 0.24) 26%, rgba(1, 5, 11, 0.04) 42%, 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%),
          radial-gradient(108% 98% at 74% 48%, rgba(1, 5, 11, 0) 18%, rgba(1, 5, 11, 0.2) 42%, rgba(1, 5, 11, 0.58) 68%, rgba(1, 5, 11, 0.98) 100%),
          linear-gradient(90deg, rgba(1, 5, 11, 0) 58%, rgba(1, 5, 11, 0.18) 68%, rgba(1, 5, 11, 0.54) 80%, rgba(1, 5, 11, 0.92) 92%, rgba(1, 5, 11, 1) 100%);
        pointer-events: none;
        box-shadow: inset 0 0 72px rgba(1, 5, 11, 0.56), inset -82px 0 180px rgba(1, 5, 11, 0.42), inset 0 0 200px rgba(1, 5, 11, 0.3);
      }

.movie-feature-content {
        position: relative;
        z-index: 2;
        display: flex;
          align-items: flex-start;
        min-height: 454px;
          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: 380px;
        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: 430px;
        width: min(30vw, 430px);
        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;
        gap: 8px;
        width: -moz-fit-content;
        width: fit-content;
        color: #9ac6ff;
        font-size: 11px;
        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 > * + * {
  margin-left: 8px;
      }

.movie-feature-kicker::before {
        content: '';
        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: 44px;
        font-size: clamp(28px, 2.6vw, 44px);
        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: 12px;
        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: 430px;
        color: rgba(241, 246, 255, 0.8);
        font-size: 14px;
        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: 30px;
        padding: 0 12px;
        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: 11px;
        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;
      }

.movie-feature-thumb {
        position: relative;
        width: 10px;
        height: 10px;
        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;
        transition: transform 0.22s ease;
        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: 24px 22px;
          gap: clamp(16px, 1.4vw, 24px) clamp(14px, 1.2vw, 22px);
        /* TV viewing distance (3-4m) — kartice moraju da budu krupne.
           Stari max 760px je davao premale TV/VOD (~380px sirine). */
        width: 1500px;
        width: min(82vw, 1500px);
        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);
        /* translateY uklonjen — bio za hero feature alignment. */
        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 {
        --offset: 0;
        --abs-offset: 0;
        --tilt: 0deg;
        --lift: 0px;
        --stack-shift: 6px;
        position: relative;
        width: 100%;
        min-width: 0;
        height: 260px;
        height: clamp(200px, 14vw, 260px);
        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;
        /* TV-friendly font — citljiv sa 3-4m. */
        font-size: 32px;
        font-size: clamp(22px, 1.5vw, 32px);
        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;
        /* Sve transformacije UKLONJENE za TV performance — bez translateY,
           scale, perspective, rotateY, transition. Statican grid layout.
           Sliku 3D "depth" simulira sami grid-template-areas + height
           razlike izmedju items (tv/video veci, radio/content/vote/settings
           manji). */
        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. */

.menu-item[data-index='0'] {
        grid-area: tv;
        --tilt: -8deg;
        --lift: -18vh;
        /* TV i VIDEO KLUB su flagship kartice — najvise 360px (Tizen TV
           native 1920x1080). */
        height: 380px;
        height: clamp(280px, 22vw, 380px);
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 12px;
      }

.menu-item[data-index='2'] {
        grid-area: video;
        --tilt: 8deg;
        --lift: -18vh;
        height: 380px;
        height: clamp(280px, 22vw, 380px);
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 12px;
      }

.menu-item[data-index='1'] {
        grid-area: radio;
        --lift: -15vh;
        --stack-shift: 0px;
        height: 280px;
        height: clamp(220px, 16vw, 280px);
      }

.menu-item[data-index='3'] {
        grid-area: content;
        --lift: -15vh;
        --stack-shift: 0px;
        height: 280px;
        height: clamp(220px, 16vw, 280px);
      }

.menu-item[data-index='4'] {
        grid-area: settings;
        --lift: -15vh;
        --stack-shift: 0px;
        height: 280px;
        height: clamp(220px, 16vw, 280px);
      }

.menu-item[data-index='5'] {
        grid-area: vote;
        --lift: -15vh;
        --stack-shift: 0px;
        height: 280px;
        height: clamp(220px, 16vw, 280px);
      }

/* .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: 180px;
        width: clamp(140px, 9vw, 180px);
        height: 180px;
        height: clamp(140px, 9vw, 180px);
        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: 18px;
        padding: 22px 16px 24px;
      }

.menu-icon-vote {
        width: 180px;
        width: clamp(140px, 9vw, 180px);
        height: 180px;
        height: clamp(140px, 9vw, 180px);
        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 {
        width: 150%;
        height: 150%;
        max-width: none;
        max-height: none;
        flex: 0 0 auto;
        transform: scale(1);
      }

.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);
        transform: translateY(calc(var(--lift) - 6px)) perspective(960px) rotateY(var(--tilt)) scale(1.035);
      }

.menu-item.active::before {
        background:
          radial-gradient(circle at 50% 8%, rgba(120, 176, 255, 0.34), transparent 46%),
          linear-gradient(180deg, rgba(111, 171, 255, 0.14), rgba(111, 171, 255, 0) 48%);
      }

.menu-item.active::after {
        opacity: 1;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 28%, rgba(255, 255, 255, 0) 70%),
          linear-gradient(135deg, rgba(124, 180, 255, 0.2), rgba(124, 180, 255, 0) 38%);
      }

.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: 16px;
      }

.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;
      }

.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;
        left: 36px;
        right: 36px;
        bottom: 32px;
        z-index: 3;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px;
        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: 156px minmax(0, 1fr);
        gap: 20px;
        padding: 18px 22px;
      }

.channel-osd-logo {
        min-height: 88px;
        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: 118px;
        max-height: 54px;
      }

.channel-osd-copy {
        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: 38px;
        font-weight: 800;
        line-height: 1.08;
      }

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

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

.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 {
        grid-template-columns: 78px minmax(0, 1fr);
        width: 1180px;
        width: min(84vw, 1180px);
      }

.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);
      }

.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;
        gap: 8px;
        padding: 0;
        width: 100%;
        align-items: center;
      }

.side-nav > * + * {
  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;
        transition: opacity 0.22s ease;
      }

.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;
        transition: opacity 0.22s ease;
        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;
        transition: transform 0.16s ease;
      }

.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;
        transition: transform 0.16s ease;
      }

.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;
        transition: transform 0.16s ease;
      }

.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;
        transition: transform 0.16s ease;
      }

.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;
        transition: transform 0.16s ease;
      }

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

.channel-logo-text {
        transition: transform 0.16s ease;
      }

.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;
        gap: 20px;
        padding: 22px 26px;
        align-self: end;
        align-items: start;
      }

.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;
      }

.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;
        gap: 10px;
        margin-top: 4px;
        align-items: start;
      }

.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;
        gap: 12px;
      }

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

.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 {
        display: none;
        border-radius: 24px;
        padding: 18px;
        grid-template-rows: auto auto 1fr auto;
        gap: 14px;
        min-height: 0;
      }

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

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

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

.channel-epg-header > * + * {
  margin-left: 12px;
      }

.channel-epg-logo {
        min-width: 84px;
        min-height: 52px;
        max-width: 84px;
        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 {
        max-width: 100%;
        max-height: 100%;
      }

.channel-epg-copy {
        min-width: 0;
      }

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

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

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

.channel-epg-day-strip {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

.channel-epg-day-strip > * + * {
  margin-left: 8px;
      }

.channel-epg-day-pill {
        min-width: 84px;
        padding: 7px 10px;
        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: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-align: center;
      }

.channel-epg-day-pill.is-action {
        min-width: 112px;
        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);
      }

.channel-epg-active {
        border-radius: 18px;
        padding: 14px 16px;
        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: 11px;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
      }

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

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

.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;
        overflow: hidden;
        display: grid;
        gap: 8px;
        grid-auto-rows: minmax(82px, 82px);
      }

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

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

.channel-epg-item {
        display: grid;
        grid-template-columns: 84px 1fr;
        gap: 12px;
        align-items: start;
        padding: 10px 12px;
        min-height: 82px;
        box-sizing: border-box;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid transparent;
      }

.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: grid;
        gap: 3px;
      }

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

.channel-epg-item-time-date {
        color: rgba(147, 168, 188, 0.78);
        font-size: 11px;
        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: 15px;
        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: 4px;
        color: rgba(184, 199, 214, 0.66);
        font-size: 12px;
        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: 12px;
        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;
        gap: 24px;
        color: #ffffff;
      }

.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;
        gap: 12px;
        margin-top: 10px;
      }

.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 {
        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;
        gap: 8px;
        padding: 16px 18px;
      }

.program-aside > * + * {
  margin-top: 8px;
      }

.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;
        }

        .menu-item[data-index='0'],
        .menu-item[data-index='2'] {
          --lift: -108px;
          height: 176px;
          height: clamp(140px, 14vw, 176px);
          padding: 6px;
          gap: 0;
          justify-content: center;
        }

        .menu-item[data-index='1'],
        .menu-item[data-index='3'],
        .menu-item[data-index='5'],
        .menu-item[data-index='4'] {
          --lift: -34px;
        }

        .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 {
  --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:     72px;
  --groups-w:      276px;
  --header-h:      74px;
  --colhead-h:     46px;
  --helpbar-h:     46px;
  --item-h:        72px;
  --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:
    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(90deg, rgba(2, 6, 18, 0.94) 0%, rgba(2, 7, 20, 0.86) 34%, rgba(2, 6, 18, 0.28) 62%, rgba(2, 5, 12, 0.5) 100%),
    linear-gradient(180deg, rgba(2, 4, 10, 0.12) 0%, rgba(2, 4, 10, 0.42) 100%),
    url('/bg-tv.webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.84) saturate(1.08);
  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 {
  bottom: 4.8vh;
  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;
}

/* ── Sidebar ── */

.fav-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 14px;
  background: rgba(255, 255, 255, 0.025);
  border-right: 1px solid var(--border);
  z-index: 2;
}

.fav-sidebar-logo {
  margin-bottom: 18px;
}

.fav-sidebar-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 0 7px;
}

.fav-sidebar-items > * + * {
  margin-top: 4px;
}

.fav-sidebar-item {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--trans), color var(--trans);
}

.fav-sidebar-item:hover,
.fav-sidebar-item.is-active {
  background: rgba(120, 80, 255, 0.18);
  color: var(--accent-light);
}

.fav-sidebar-item.is-nav-focused {
  background: rgba(55, 136, 255, 0.22);
  color: #93c5fd;
  box-shadow: 0 0 0 2px rgba(55, 136, 255, 0.55);
}

/* ── 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;
  gap: 24px;
  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;
  gap: 11px;
}

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

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

/* Mode toggle */

.fav-mode-toggle {
  display: flex;
  gap: 3px;
  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;
  gap: 7px;
  padding: 7px 18px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background var(--trans), color var(--trans), box-shadow var(--trans);
  white-space: nowrap;
}

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

.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;
  gap: 3px;
}

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

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

.fav-header-count {
  font-size: 12px;
  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);
  background: rgba(14, 11, 32, 0.97);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  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: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  font-size: 11px;
  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 > * + * {
  margin-left: 9px;
}

.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 {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 18px;
  cursor: pointer;
  position: relative;
  transition: background var(--trans);
}

.fav-group-item > * + * {
  margin-left: 13px;
}

.fav-group-item::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 {
  background: rgba(108, 70, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(108, 70, 255, 0.35);
}

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

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

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

.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 {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fav-group-count {
  font-size: 12px;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 8px;
  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: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

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

/* ── 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: 40px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
  font-style: italic;
}

/* ── Channel item ── */

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

.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: 48px;
  height: 34px;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  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);
}

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

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

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

.fav-ch-epg {
  font-size: 12px;
  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: 18px;
  flex-shrink: 0;
  transition: color var(--trans), opacity var(--trans);
}

.fav-ch-star svg {
  display: block;
}

/* 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;
  transition: color var(--trans), opacity var(--trans);
}

.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 ── */

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

.fav-helpbar > * + * {
  margin-left: 20px;
}

.fav-helpbar span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}

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

.fav-helpbar kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 11px;
  font-style: normal;
  color: rgba(230, 230, 240, 0.75);
}

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

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

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

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

.fav-key-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 15px;
  background: rgba(74, 222, 128, 0.65);
  border-radius: 3px;
  font-size: 10px;
  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;
  background:
    radial-gradient(circle at 18% 22%, rgba(57, 111, 230, 0.26), transparent 35%),
    radial-gradient(circle at 88% 12%, rgba(31, 169, 136, 0.18), transparent 28%),
    linear-gradient(120deg, rgba(5, 10, 21, 0.95), rgba(8, 14, 28, 0.9));
}

.set-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 94px 1fr;
  z-index: 1;
}

.set-sidebar {
  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.64);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

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

.side-nav > * + * {
  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;
  transition: border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.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);
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.22s ease;
  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;
}

.set-main {
  padding: 34px 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

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

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

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

.set-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.set-card {
  border: 1px solid rgba(116, 151, 221, 0.2);
  border-radius: 24px;
  padding: 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: 14px;
}

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

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

.set-row {
  display: grid;
  grid-template-columns: 1fr minmax(230px, 280px);
  align-items: center;
  gap: 14px;
}

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

.set-row select,
.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: 17px;
  padding: 12px 14px;
}

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

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

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

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

.set-focusable.is-focused {
  outline: none;
  border-color: rgba(97, 184, 252, 0.9);
  box-shadow: 0 0 0 3px rgba(63, 158, 252, 0.35), 0 0 26px rgba(63, 158, 252, 0.24);
}

.set-focusable:focus-visible,
.set-row select:focus-visible,
.set-btn:focus-visible {
  outline: none;
  border-color: rgba(97, 184, 252, 0.9);
  box-shadow: 0 0 0 3px rgba(63, 158, 252, 0.35), 0 0 26px rgba(63, 158, 252, 0.24);
}

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

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

.set-btn {
  min-width: 210px;
  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.88);
  font-size: 16px;
}

.set-select-menu {
  position: fixed;
  z-index: 40;
  min-width: 280px;
  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: 12px 14px;
  font-size: 13px;
  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: 320px;
  overflow-y: auto;
}

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

.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 {
    grid-template-columns: 1fr;
  }
}

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

body {
        background:
          radial-gradient(ellipse at 22% -10%, rgba(34, 126, 236, 0.2), transparent 55%),
          radial-gradient(ellipse at 92% 110%, rgba(18, 168, 148, 0.14), transparent 60%),
          linear-gradient(180deg, #050813 0%, #07091c 100%);
      }

.vclub-page {
        position: relative;
        width: 100vw;
        height: 100vh;
        padding: 36px 56px;
        padding: clamp(20px, 2.4vh, 36px) clamp(28px, 2.6vw, 56px);
        display: flex;
        flex-direction: column;
        gap: 22px;
        gap: clamp(12px, 1.4vh, 22px);
        overflow: hidden;
        isolation: isolate;
      }

.vclub-page > * + * {
  margin-top: 22px;
  margin-top: clamp(12px, 1.4vh, 22px);
      }

.vclub-page::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-image: var(--vclub2-page-poster);
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        filter: blur(32px) brightness(0.42);
        z-index: 0;
        pointer-events: none;
      }

.vclub-page::after { content: none; }

.vclub-page.has-poster-bg::before { opacity: 1; }

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

.vclub-page.has-detail .vclub2-topbar,
      .vclub-page.has-detail .vclub2-menu,
      .vclub-page.has-detail .vclub2-hero,
      .vclub-page.has-detail .vclub2-filters,
      .vclub-page.has-detail .vclub2-rail,
      .vclub-page.has-detail .vclub2-hint {
        filter: blur(8px) brightness(0.56);
        pointer-events: none;
      }

.vclub2 {
        display: flex;
        flex-direction: column;
        gap: 10px;
        min-height: 0;
        height: 100%;
      }

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

.vclub2-topbar { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; min-height: 42px; }

.vclub2-brand { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border-radius: 18px; background: transparent; border: none; box-shadow: none; }

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

.vclub2-brand-mark { width: 90px; height: 56px; border-radius: 0; background: url('/vclub.png') center/contain no-repeat; position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }

.vclub2-brand-text { display: flex; flex-direction: column; justify-content: center; }

.vclub2-brand-title { color: #fff; font-size: 15px; font-weight: 900; letter-spacing: 0.08em; line-height: 1; text-transform: uppercase; }

.vclub2-brand-sub:empty { display: none; }

.vclub2-brand-sub { margin-top: 4px; color: rgba(176, 208, 252, 0.86); font-size: 10px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; }

.vclub2-clock {
        position: absolute;
        bottom: 24px;
        right: 24px;
        text-align: right;
        z-index: 8;
      }

.vclub2-clock-time { color: #fff; font-size: 28px; font-weight: 800; line-height: 1; }

.vclub2-clock-date { margin-top: 6px; color: rgba(220, 230, 255, 0.6); font-size: 11px; font-weight: 700; letter-spacing: 0.2em; }

.vclub2-grid {
        position: relative;
        display: grid;
        grid-template-columns: 238px minmax(0, 1fr);
        gap: 32px;
        gap: clamp(22px, 1.8vw, 32px);
        flex: 1 1 auto;
        min-height: 0;
        min-width: 0;
        align-items: stretch;
      }

.vclub2-grid::before { content: ''; position: absolute; left: -24px; top: 8px; width: 336px; height: 500px; border-radius: 46px; background: radial-gradient(circle at 24% 14%, rgba(190, 206, 255, 0.13), transparent 18%), radial-gradient(circle at 32% 28%, rgba(166, 126, 255, 0.13), transparent 22%), radial-gradient(circle at 60% 38%, rgba(132, 104, 255, 0.1), transparent 28%), radial-gradient(circle at 32% 82%, rgba(74, 126, 255, 0.06), transparent 24%); filter: blur(30px); opacity: 0.52; z-index: 0; pointer-events: none; }

.vclub2-grid > .vclub2-menu {
        z-index: 2;
      }

/* Glassmorphism sidebar shell with a beveled 3D frame and controlled neon edge glow. */

.vclub2-menu {
        position: relative;
        width: 248px;
        min-width: 248px;
        max-width: 248px;
        min-height: 392px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 18px 10px;
        border-radius: 28px;
        background: rgba(6, 13, 24, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
        align-self: start;
        overflow: visible;
        isolation: isolate;
        transform: translateZ(0);
      }

.vclub2-menu > * + * {
  margin-top: 8px;
      }

.vclub2-menu::before {
        content: '';
        position: absolute;
        top: 1px;
        right: 1px;
        bottom: 1px;
        left: 1px;
        border-radius: 27px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
        pointer-events: none;
        z-index: 0;
      }

.vclub2-menu::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 28px;
        box-shadow: inset 0 0 0 1px rgba(130, 176, 246, 0.08);
        pointer-events: none;
        z-index: 0;
      }

.vclub2-menu > * { position: relative; z-index: 1; }

.vclub2-menu-crumb { display: flex; align-items: center; gap: 8px; padding: 10px 14px 14px; margin-bottom: 6px; border-bottom: 1px solid rgba(122, 172, 255, 0.2); color: rgba(196, 218, 255, 0.86); font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }

.vclub2-menu-crumb > * + * {
  margin-left: 8px; }

.vclub2-menu-crumb-arrow { color: rgba(186, 224, 255, 0.96); font-size: 14px; line-height: 1; }

.vclub2-menu-item {
        position: relative;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 13px 16px;
        border-radius: 14px;
        color: rgba(237, 242, 255, 0.9);
        font-size: 14px;
        font-weight: 900;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        transition: border-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
        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));
        overflow: visible;
        isolation: isolate;
      }

.vclub2-menu-item > * + * {
  margin-left: 14px;
      }

.vclub2-menu-item::before {
        content: '';
        position: absolute;
        top: 8px;
        right: 8px;
        bottom: 8px;
        left: 8px;
        border-radius: 11px;
        background: rgba(18, 148, 255, 0.18);
        filter: blur(12px);
        opacity: 0;
        transition: opacity 0.22s ease;
        z-index: 0;
      }

.vclub2-menu-item::after {
        content: '';
        position: absolute;
        top: 1px;
        right: 1px;
        bottom: 1px;
        left: 1px;
        border-radius: 13px;
        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;
        z-index: 0;
      }

.vclub2-menu-item .vclub2-menu-cursor-glow {
        position: absolute;
        top: -5px;
        right: -6px;
        bottom: -5px;
        left: -6px;
        border-radius: 15px;
        background: radial-gradient(circle at 20% 50%, rgba(194, 220, 255, 0.2), rgba(194, 220, 255, 0.08) 22%, rgba(70, 160, 245, 0.14) 42%, rgba(70, 160, 245, 0) 68%);
        filter: blur(14px);
        opacity: 0;
        transform: scale(0.97);
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 0;
        pointer-events: none;
      }

@keyframes vclub2CursorPulse {
        0% { opacity: 0.82; transform: scale(1); }
        50% { opacity: 1; transform: scale(1.03); }
        100% { opacity: 0.82; transform: scale(1); }
      }

.vclub2-menu-item > * { position: relative; z-index: 1; }

.vclub2-menu-item:hover {
        color: #fff;
        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);
      }

.vclub2-menu-item:focus-visible {
        color: #fff;
        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);
      }

.vclub2-menu-item:hover::before {
        opacity: 1;
      }

.vclub2-menu-item:focus-visible::before {
        opacity: 1;
      }

.vclub2-menu-icon { width: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: rgba(0, 196, 255, 0.88); }

.vclub2-menu-label { line-height: 1; }

.vclub2-menu-item.is-selected {
        color: #fff;
        background: linear-gradient(180deg, rgba(18, 44, 79, 0.5), rgba(10, 23, 46, 0.3));
        border-color: rgba(128, 192, 246, 0.34);
        box-shadow: 0 0 0 1px rgba(90, 168, 255, 0.16), 0 8px 16px rgba(11, 16, 34, 0.12);
      }

.vclub2-menu-item.is-selected::before { opacity: 0.72; }

.vclub2-menu-item.is-selected .vclub2-menu-cursor-glow { opacity: 0.6; transform: scale(1); }

/* Active item gradient: vibrant purple-to-indigo fill, rounded corners, and a soft outer glow. */

.vclub2-menu-item.is-active {
        background: linear-gradient(180deg, rgba(16, 46, 88, 0.72), rgba(10, 27, 56, 0.48));
        color: #fff;
        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);
      }

.vclub2-menu-item.is-active::before { opacity: 1; }

.vclub2-menu-item.is-active .vclub2-menu-cursor-glow { opacity: 0.7; transform: scale(1.005); animation: vclub2CursorPulse 2.6s ease-in-out infinite; }

.vclub2-menu-item.is-active .vclub2-menu-icon { color: #fff; }

.vclub2-stage { position: relative; z-index: 2; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 24px; gap: clamp(16px, 2vh, 24px); padding-top: 0; margin-top: -56px; }

.vclub2-stage > * + * {
  margin-top: 24px;
  margin-top: clamp(16px, 2vh, 24px); }

.vclub2-hero {
        position: relative;
        min-height: 396px;
        width: 100%;
        border-radius: 20px;
        background: rgba(6, 12, 24, 0.64);
        border: 1px solid rgba(74, 168, 255, 0.78);
        box-shadow: inset 0 0 0 1px rgba(148, 214, 255, 0.18), 0 0 28px rgba(48, 146, 255, 0.42), 0 20px 48px rgba(0, 0, 0, 0.42);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-width: 0;
        overflow: hidden;
        isolation: isolate;
        visibility: visible;
        pointer-events: auto;
      }

.vclub2-hero.has-poster::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-image: var(--vclub2-hero-poster);
        background-size: cover;
        background-position: center 22%;
        filter: saturate(1.06) brightness(0.82);
        -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 54%, rgba(0, 0, 0, 0.64) 76%, rgba(0, 0, 0, 0.2) 92%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.96) 54%, rgba(0, 0, 0, 0.64) 76%, rgba(0, 0, 0, 0.2) 92%, rgba(0, 0, 0, 0) 100%);
        z-index: 0;
      }

.vclub2-hero::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background:
          linear-gradient(90deg, rgba(4, 10, 22, 0.9) 0%, rgba(4, 10, 22, 0.7) 34%, rgba(4, 10, 22, 0.3) 56%, rgba(4, 10, 22, 0.08) 78%, rgba(4, 10, 22, 0) 100%),
          linear-gradient(180deg, rgba(4, 10, 22, 0.1) 0%, rgba(4, 10, 22, 0.04) 46%, rgba(4, 10, 22, 0.6) 100%);
        z-index: 1;
        pointer-events: none;
      }

.vclub2-hero > * { position: relative; z-index: 2; }

.vclub2-hero.is-detail-open { border-color: rgba(122, 194, 255, 0.92); box-shadow: inset 0 0 0 1px rgba(168, 226, 255, 0.22), 0 0 34px rgba(74, 176, 255, 0.52), 0 22px 56px rgba(0, 0, 0, 0.48); }

.vclub2-hero.is-detail-open::before { filter: saturate(1.08) brightness(0.88); }

.vclub2-hero-action.is-active { box-shadow: 0 0 0 2px rgba(96, 186, 255, 0.82), 0 10px 24px rgba(34, 124, 222, 0.38); transform: translateY(-1px); }

.vclub2-hero-info {
        position: relative;
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 8px;
        width: 640px;
        width: min(640px, 58%);
        margin: 0;
        padding: 56px 0 24px 56px;
        border: 0;
        background: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
                backdrop-filter: none;
      }

.vclub2-hero-info > * + * {
  margin-top: 8px;
      }

.vclub2-hero-title { margin: 0; max-width: 100%; font-size: 38px; font-size: clamp(24px, 2.8vw, 38px); font-weight: 900; letter-spacing: 0.014em; color: #fff; line-height: 0.94; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vclub2-hero-subtitle { color: #8bc9ff; font-size: 12px; font-weight: 800; letter-spacing: 0.24em; }

.vclub2-hero-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: rgba(230, 235, 255, 0.9); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }

.vclub2-hero-meta > * + * {
  margin-left: 10px; }

.vclub2-hero-rating { color: #ffb732; }

.vclub2-hero-genre { padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.22); font-size: 10px; letter-spacing: 0.14em; }

.vclub2-hero-desc { margin: 0; max-width: 52ch; color: rgba(232, 238, 255, 0.82); font-size: 16px; line-height: 1.55; height: calc(1.55em * 5); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }

.vclub2-hero-actions { display: flex; gap: 12px; margin-top: auto; padding-top: 16px; }

.vclub2-hero-actions > * + * {
  margin-left: 12px; }

.vclub2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-size: 12px; font-weight: 900; letter-spacing: 0.1em; border: none; cursor: pointer; text-transform: uppercase; }

.vclub2-btn > * + * {
  margin-left: 8px; }

.vclub2-btn-primary {
        background: linear-gradient(135deg, #19a866, #12895a);
        color: #fff;
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.16),
          0 0 0 1px rgba(8, 56, 38, 0.82),
          0 8px 22px rgba(8, 86, 58, 0.34);
      }

.vclub2-btn-primary:hover {
        background: linear-gradient(135deg, #20bc73, #159b66);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.16),
          0 0 0 1px rgba(72, 220, 152, 0.42),
          0 10px 24px rgba(8, 98, 64, 0.42),
          0 0 26px rgba(44, 186, 116, 0.22);
      }

.vclub2-btn-primary:focus-visible {
        background: linear-gradient(135deg, #20bc73, #159b66);
        box-shadow:
          inset 0 1px 0 rgba(255, 255, 255, 0.16),
          0 0 0 1px rgba(72, 220, 152, 0.42),
          0 10px 24px rgba(8, 98, 64, 0.42),
          0 0 26px rgba(44, 186, 116, 0.22);
      }

.vclub2-btn-secondary { background: rgba(20, 24, 40, 0.7); border: 1px solid rgba(255,255,255,0.18); color: #fff; }

.vclub2-btn-fav { background: rgba(20, 18, 8, 0.7); border: 1px solid rgba(255, 210, 60, 0.28); color: rgba(255, 210, 60, 0.8); }

.vclub2-btn-fav.is-active { border-color: rgba(255, 210, 60, 0.7); box-shadow: 0 0 0 2px rgba(255, 210, 60, 0.18), 0 6px 18px rgba(255, 180, 0, 0.22); color: rgba(255, 220, 80, 1); }

.vclub2-btn-fav.is-faved { background: rgba(40, 32, 4, 0.82); border-color: rgba(255, 210, 60, 0.6); color: rgba(255, 220, 80, 1); }

.vclub2-btn-fav.is-faved.is-active { box-shadow: 0 0 0 2px rgba(255, 210, 60, 0.3), 0 0 16px rgba(255, 180, 0, 0.3); }

.vclub2-btn-icon { font-size: 14px; }

.vclub2-detail-layer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 40; display: none; align-items: stretch; justify-content: stretch; padding: 34px 56px; padding: clamp(22px, 2.4vh, 34px) clamp(28px, 2.6vw, 56px); }

.vclub2-detail-layer.is-open { display: flex; }

.vclub2-detail-backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(3, 5, 14, 0.55), rgba(3, 5, 14, 0.88)); }

.vclub2-detail-panel { position: relative; width: 100%; min-height: 100%; padding: 44px 48px 40px; border-radius: 36px; border: 1px solid rgba(190, 140, 255, 0.22); background: linear-gradient(145deg, rgba(8, 11, 24, 0.94), rgba(7, 10, 20, 0.92)); box-shadow: 0 30px 70px rgba(0,0,0,0.42), 0 0 0 1px rgba(140, 112, 255, 0.08); overflow: hidden; }

.vclub2-detail-panel::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-image: var(--vclub2-detail-poster); background-size: cover; background-position: right center; opacity: 0.28; pointer-events: none; }

.vclub2-detail-panel::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(circle at 18% 16%, rgba(174, 198, 255, 0.12), transparent 20%), radial-gradient(circle at 66% 12%, rgba(168, 116, 255, 0.18), transparent 24%), linear-gradient(90deg, rgba(7, 10, 22, 0.98) 0%, rgba(7, 10, 22, 0.92) 36%, rgba(7, 10, 22, 0.52) 60%, rgba(7, 10, 22, 0.18) 100%), linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0) 28%); pointer-events: none; }

.vclub2-detail-panel > * { position: relative; z-index: 1; }

.vclub2-detail-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 36px; min-height: calc(100vh - 160px); align-items: stretch; }

.vclub2-detail-copy { max-width: 820px; display: flex; flex-direction: column; justify-content: flex-end; padding-right: 12px; }

.vclub2-detail-art { align-self: stretch; border-radius: 30px; background-image: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)), var(--vclub2-detail-poster); background-size: cover; background-position: center top; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 38px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255,255,255,0.06); min-height: 540px; }

.vclub2-detail-eyebrow { color: #c59aff; font-size: 11px; font-weight: 900; letter-spacing: 0.24em; text-transform: uppercase; }

.vclub2-detail-backhint { margin-top: 14px; color: rgba(206, 217, 255, 0.72); font-size: 11px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }

.vclub2-detail-title { margin: 18px 0 0; max-width: 92%; font-size: 78px; font-size: clamp(40px, 4.8vw, 78px); font-weight: 900; line-height: 0.96; letter-spacing: 0.01em; }

.vclub2-detail-meta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; color: rgba(230, 235, 255, 0.9); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.vclub2-detail-meta > * + * {
  margin-left: 12px; }

.vclub2-detail-rating { color: #ffb732; }

.vclub2-detail-content { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr); gap: 28px; align-items: start; }

.vclub2-detail-description { color: rgba(236, 240, 255, 0.92); font-size: 20px; line-height: 1.72; white-space: pre-wrap; }

.vclub2-detail-facts { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border-radius: 24px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }

.vclub2-detail-facts > * + * {
  margin-top: 14px; }

.vclub2-detail-fact { display: flex; flex-direction: column; gap: 6px; }

.vclub2-detail-fact > * + * {
  margin-top: 6px; }

.vclub2-detail-fact-label { color: rgba(182, 192, 226, 0.72); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }

.vclub2-detail-fact-value { color: #fff; font-size: 16px; font-weight: 800; line-height: 1.45; }

.vclub2-detail-actions { display: flex; gap: 12px; margin-top: 32px; }

.vclub2-detail-actions > * + * {
  margin-left: 12px; }

.vclub2-detail-action.is-active { box-shadow: 0 0 0 2px rgba(190, 140, 255, 0.72), 0 10px 24px rgba(110, 60, 220, 0.34); transform: translateY(-1px); }

.vclub2-player-layer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 55; display: none; }

.vclub2-player-layer.is-open { display: block; }

.vclub2-player-backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background-image: var(--vclub2-player-poster); background-size: cover; background-position: center center; opacity: 0.28; }

.vclub2-player-screen { position: relative; width: 100%; height: 100%; overflow: hidden; }

.vclub2-player-screen::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(4, 7, 18, 0.38), rgba(4, 7, 18, 0.12) 24%, rgba(4, 7, 18, 0.08) 56%, rgba(4, 7, 18, 0.86) 100%); }

.vclub2-player-screen::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), transparent 18%), radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04), transparent 32%); pointer-events: none; }

.vclub2-player-topline { position: absolute; top: 34px; left: 42px; right: 42px; z-index: 1; display: flex; justify-content: space-between; align-items: center; }

.vclub2-player-badge { color: #fff; font-size: 12px; font-weight: 900; letter-spacing: 0.24em; text-transform: uppercase; }

.vclub2-player-returnhint { color: rgba(224, 232, 255, 0.84); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }

.vclub2-player-centerplay { position: absolute; top: 50%; left: 50%; z-index: 1; width: 106px; height: 106px; margin: -53px 0 0 -53px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 36px; background: rgba(10,14,30,0.82); border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 18px 40px rgba(0,0,0,0.28); }

.vclub2-player-osd { position: absolute; left: 42px; right: 42px; bottom: 34px; z-index: 1; }

.vclub2-player-kicker { color: rgba(205, 188, 255, 0.96); font-size: 11px; font-weight: 900; letter-spacing: 0.22em; text-transform: uppercase; }

.vclub2-player-title { margin: 10px 0 0; max-width: 70%; font-size: 64px; font-size: clamp(34px, 4vw, 64px); font-weight: 900; line-height: 0.96; }

.vclub2-player-meta { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; color: rgba(232, 238, 255, 0.88); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

.vclub2-player-meta > * + * {
  margin-left: 12px; }

.vclub2-player-progress { margin-top: 26px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.16); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }

.vclub2-player-progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffffff 0%, #b794ff 46%, #7b3fe0 100%); }

.vclub2-player-times { margin-top: 10px; display: flex; justify-content: space-between; color: rgba(224, 232, 255, 0.82); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; }

.vclub2-filters { display: flex; gap: 14px; padding-left: 0; align-items: stretch; }

.vclub2-filters > * + * {
  margin-left: 14px; }

.vclub2-filter { position: relative; min-width: 0; width: 260px; width: min(260px, 23vw); padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(110, 126, 188, 0.18); background: rgba(10, 14, 30, 0.78); box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }

.vclub2-filter.is-active { border-color: rgba(110, 188, 255, 0.82); box-shadow: 0 0 0 2px rgba(110, 188, 255, 0.2), 0 14px 24px rgba(10, 30, 58, 0.3); transform: translateY(-1px); }

.vclub2-filter.is-open { overflow: visible; z-index: 12; }

.vclub2-filter.is-reset { width: auto; min-width: 0; padding: 13px 20px; display: flex; align-items: center; justify-content: center; border-radius: 14px; 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)); }

.vclub2-filter.is-reset .vclub2-filter-label { display: none; }

.vclub2-filter.is-reset .vclub2-filter-value { margin-top: 0; justify-content: center; font-size: 14px; font-weight: 900; letter-spacing: 0.12em; color: rgba(237, 242, 255, 0.9); }

.vclub2-filter.is-reset.is-enabled { border-color: rgba(0, 196, 255, 0.28); background: linear-gradient(180deg, rgba(13, 20, 36, 0.48), rgba(10, 15, 28, 0.18)); }

.vclub2-filter.is-reset.is-active { border-color: rgba(0, 196, 255, 0.72); box-shadow: 0 0 0 1px rgba(0, 196, 255, 0.18), 0 0 18px rgba(0, 196, 255, 0.22); }

.vclub2-filter-label { color: rgba(181, 190, 224, 0.72); font-size: 10px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; }

.vclub2-filter-value { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #fff; font-size: 15px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }

.vclub2-filter-value > * + * {
  margin-left: 12px; }

.vclub2-filter-arrow { color: rgba(142, 202, 255, 0.94); font-size: 14px; }

.vclub2-filter-dropdown {
        position: absolute;
        top: calc(100% + 10px);
        left: -2px;
        right: -2px;
        min-width: 280px;
        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;
      }

.vclub2-filter-dropdown-title {
        padding: 12px 14px;
        font-size: 13px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(185, 211, 255, 0.88);
        border-bottom: 1px solid rgba(130, 175, 247, 0.2);
      }

.vclub2-filter-dropdown-options {
        display: flex;
        flex-direction: column;
        max-height: 320px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(96, 176, 255, 0.86) rgba(7, 15, 30, 0.82);
      }

.vclub2-filter-dropdown-options::-webkit-scrollbar {
        width: 10px;
      }

.vclub2-filter-dropdown-options::-webkit-scrollbar-track {
        background: rgba(7, 15, 30, 0.82);
        border-left: 1px solid rgba(112, 166, 245, 0.16);
      }

.vclub2-filter-dropdown-options::-webkit-scrollbar-thumb {
        border-radius: 999px;
        border: 2px solid rgba(7, 15, 30, 0.82);
        background: linear-gradient(180deg, rgba(132, 209, 255, 0.94), rgba(66, 145, 240, 0.94));
        box-shadow: 0 0 0 1px rgba(121, 198, 255, 0.28);
      }

.vclub2-filter-dropdown-options::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(148, 223, 255, 0.98), rgba(74, 160, 252, 0.98));
      }

.vclub2-filter-dropdown-options::-webkit-scrollbar-corner {
        background: rgba(7, 15, 30, 0.82);
      }

.vclub2-filter-option {
        border: 0;
        background: transparent;
        color: rgba(224, 236, 255, 0.9);
        text-align: left;
        padding: 12px 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.02em;
        text-transform: none;
      }

.vclub2-filter-option.is-selected::after {
        content: ' \2713';
        color: rgba(142, 216, 173, 0.96);
      }

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

.vclub2-rail { position: relative; overflow: hidden; padding: 16px 0 10px 0; min-width: 0; width: 100%; align-self: stretch; display: flex; align-items: flex-start; }

.vclub2-rail-track { display: flex; gap: 22px; align-items: flex-start; width: max-content; will-change: transform; transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1); }

.vclub2-rail-track > * + * {
  margin-left: 22px; }

.vclub2-rail-card {
        width: 168px;
        flex: 0 0 168px;
        display: flex;
        flex-direction: column;
        gap: 0;
        transition: opacity 220ms ease, transform 220ms ease;
        filter: brightness(0.62) saturate(0.84);
        position: relative;
        opacity: 0.84;
      }

.vclub2-rail-card > * + * {
  margin-top: 0;
      }

.vclub2-rail-card.is-active {
        width: 168px;
        flex-basis: 168px;
        filter: brightness(1.06) saturate(1.02);
        z-index: 5;
        opacity: 1;
        transform: none;
      }

.vclub2-rail-card.is-active::before {
        content: '';
        position: absolute;
        top: -6px;
        right: -6px;
        bottom: -6px;
        left: -6px;
        border-radius: 24px;
        background: rgba(18, 148, 255, 0.16);
        filter: blur(12px);
        z-index: 0;
        pointer-events: none;
      }

.vclub2-rail-poster {
        position: relative;
        padding-bottom: 150.00%;
        aspect-ratio: 2 / 3;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 14px 30px rgba(0,0,0,0.48);
        transition: opacity 220ms ease;
        border: 1px solid rgba(126, 159, 214, 0.14);
        background: linear-gradient(180deg, rgba(13, 20, 36, 0.48), rgba(10, 15, 28, 0.18));
        z-index: 1;
      }

.vclub2-rail-poster::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.12), transparent 50%), linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.6) 100%); }

.vclub2-rail-card.is-active .vclub2-rail-poster {
        border-color: rgba(115, 187, 255, 0.78);
        background: linear-gradient(180deg, rgba(16, 46, 88, 0.62), rgba(10, 27, 56, 0.34));
        box-shadow:
          0 0 0 1px rgba(90, 168, 255, 0.24),
          0 0 24px rgba(18, 148, 255, 0.3),
          0 14px 32px rgba(0, 0, 0, 0.28);
      }

.vclub2-rail-poster-label { position: absolute; left: 12px; right: 12px; bottom: 22px; text-align: center; color: #fff; font-size: 15px; font-weight: 900; letter-spacing: 0.03em; text-shadow: 0 2px 10px rgba(0,0,0,0.6); z-index: 1; transition: opacity 180ms ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vclub2-rail-poster-sub { position: absolute; left: 12px; right: 12px; bottom: 8px; text-align: center; color: rgba(255,255,255,0.78); font-size: 9px; font-weight: 800; letter-spacing: 0.22em; z-index: 1; transition: opacity 180ms ease; }

.vclub2-rail-poster.has-image::after { background: linear-gradient(180deg, transparent 44%, rgba(0,0,0,0.84) 100%); }

.vclub2-rail-card:not(.is-active) .vclub2-rail-poster-label,
      .vclub2-rail-card:not(.is-active) .vclub2-rail-poster-sub { opacity: 1; }

.vclub2-rail-card.is-active .vclub2-rail-poster-label,
      .vclub2-rail-card.is-active .vclub2-rail-poster-sub { opacity: 1; }

.vclub2-hint { display: flex; gap: 22px; justify-content: center; align-items: center; padding: 2px 0 2px; margin-top: auto; }

.vclub2-hint > * + * {
  margin-left: 22px; }

.vclub2-hint span { display: inline-flex; align-items: center; gap: 8px; color: rgba(220,230,255,0.68); font-size: 11px; font-weight: 800; letter-spacing: 0.22em; }

.vclub2-hint span > * + * {
  margin-left: 8px; }

.vclub2-hint span b { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; border: 1px solid rgba(220,230,255,0.32); color: #fff; font-weight: 900; font-size: 11px; }

/* ── Recently added sidebar section ─────────────────── */

.vclub2-menu-recent {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(122, 172, 255, 0.14);
      }

.vclub2-menu-recent-header {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0 10px 8px;
        color: rgba(0, 196, 255, 0.7);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.22em;
        text-transform: uppercase;
      }

.vclub2-menu-recent-header > * + * {
  margin-left: 6px;
      }

.vclub2-menu-recent-item {
        padding: 5px 10px;
        border-radius: 8px;
        transition: background 140ms ease;
      }

.vclub2-menu-recent-item:hover {
        background: rgba(255, 255, 255, 0.04);
      }

.vclub2-menu-recent-item-title {
        color: rgba(218, 230, 255, 0.88);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.03em;
        line-height: 1.3;
        position: relative;
        overflow: visible;
        display: flex;
        align-items: center;
        gap: 6px;
        width: 100%;
      }

.vclub2-menu-recent-item-title > * + * {
  margin-left: 6px;
      }

.vclub2-menu-recent-item-title-text {
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }

.vclub2-menu-recent-new {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        margin-left: auto;
        padding: 2px 6px;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(0,180,255,0.22), rgba(0,100,200,0.18));
        border: 1px solid rgba(0,196,255,0.55);
        color: rgba(0,230,255,1);
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 0.18em;
        line-height: 1.4;
        text-shadow: 0 0 8px rgba(0,196,255,1), 0 0 2px rgba(0,196,255,0.6);
        box-shadow: 0 0 6px rgba(0,196,255,0.2), inset 0 1px 0 rgba(255,255,255,0.07);
      }

.vclub2-menu-recent-item-meta {
        margin-top: 1px;
        color: rgba(255, 200, 80, 0.76);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }

/* ── Search filter chip ───────────────────────────────── */

.vclub2-filter-search { min-width: 260px; cursor: pointer; }

.vclub2-filter-search .vclub2-filter-value { gap: 10px; }

.vclub2-filter-search-icon { color: rgba(0, 196, 255, 0.9); font-size: 14px; flex: 0 0 auto; }

.vclub2-filter-search-text { flex: 1; color: #fff; font-size: 15px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.vclub2-filter-search-placeholder { color: rgba(200, 216, 255, 0.42); font-style: normal; }

.vclub2-filter-search-clear { color: rgba(255, 100, 100, 0.82); font-size: 13px; flex: 0 0 auto; }

.vclub2-filter-search.has-query { border-color: rgba(0, 196, 255, 0.5); }

.vclub2-filter-search.is-active { border-color: rgba(0, 196, 255, 0.9); box-shadow: 0 0 0 2px rgba(0, 196, 255, 0.22), 0 0 22px rgba(0, 196, 255, 0.28); }

/* ── On-screen keyboard overlay ──────────────────────── */

.vclub2-keyboard-layer {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 60;
        display: none;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 20px;
      }

.vclub2-keyboard-layer.is-open { display: flex; }

.vclub2-kb-backdrop {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(3, 5, 14, 0.92);
      }

.vclub2-kb-panel {
        position: relative;
        width: 1080px;
        width: min(1080px, 90vw);
        padding: 20px 24px 16px;
        border-radius: 28px 28px 20px 20px;
        border: 1px solid rgba(100, 180, 255, 0.22);
        background: linear-gradient(180deg, rgba(8, 14, 30, 0.96), rgba(6, 11, 24, 0.98));
        box-shadow: 0 -8px 40px rgba(0, 100, 255, 0.18), 0 0 0 1px rgba(100, 180, 255, 0.12);
      }

.vclub2-kb-query {
        display: flex;
        align-items: baseline;
        gap: 14px;
        padding: 10px 16px;
        margin-bottom: 16px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(100, 200, 255, 0.2);
        min-height: 52px;
      }

.vclub2-kb-query > * + * {
  margin-left: 14px;
      }

.vclub2-kb-query-label {
        color: rgba(0, 196, 255, 0.9);
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.24em;
        text-transform: uppercase;
        white-space: nowrap;
        flex: 0 0 auto;
      }

.vclub2-kb-query-text {
        color: #fff;
        font-size: 22px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        flex: 1;
        word-break: break-all;
      }

.vclub2-kb-cursor {
        display: inline-block;
        color: rgba(0, 196, 255, 0.9);
        font-weight: 300;
        animation: vclubKbBlink 0.9s step-end infinite;
      }

@keyframes vclubKbBlink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0; }
      }

.vclub2-kb-grid {
        display: flex;
        flex-direction: column;
        gap: 7px;
        align-items: center;
      }

.vclub2-kb-grid > * + * {
  margin-top: 7px;
      }

.vclub2-kb-row {
        display: flex;
        gap: 7px;
        justify-content: center;
      }

.vclub2-kb-row > * + * {
  margin-left: 7px;
      }

.vclub2-kb-key {
        min-width: 54px;
        height: 54px;
        padding: 0 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        color: rgba(230, 238, 255, 0.88);
        font-size: 18px;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        cursor: pointer;
        transition: transform 140ms ease;
        -webkit-user-select: none;
                user-select: none;
      }

.vclub2-kb-key.is-special {
        min-width: 80px;
        font-size: 13px;
        letter-spacing: 0.1em;
      }

.vclub2-kb-key.is-active {
        background: linear-gradient(180deg, rgba(18, 148, 255, 0.58), rgba(10, 90, 200, 0.48));
        border-color: rgba(96, 200, 255, 0.9);
        color: #fff;
        box-shadow: 0 0 0 2px rgba(96, 200, 255, 0.24), 0 6px 18px rgba(0, 100, 255, 0.32);
        transform: scale(1.1);
      }

.vclub2-kb-hint {
        display: flex;
        gap: 22px;
        justify-content: center;
        margin-top: 14px;
      }

.vclub2-kb-hint > * + * {
  margin-left: 22px;
      }

.vclub2-kb-hint span { display: inline-flex; align-items: center; gap: 8px; color: rgba(200,218,255,0.62); font-size: 11px; font-weight: 800; letter-spacing: 0.2em; }

.vclub2-kb-hint span > * + * {
  margin-left: 8px; }

.vclub2-kb-hint span b { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; border: 1px solid rgba(200,218,255,0.28); color: #fff; font-weight: 900; font-size: 11px; }

/* ===== 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;
}

.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%;
}

.activate-demo-hint {
  margin-top: 20px;
  padding: 14px 22px;
  border-radius: 10px;
  background: rgba(255, 216, 79, 0.08);
  border: 1px dashed rgba(255, 216, 79, 0.32);
  color: rgba(255, 235, 159, 0.86);
  font-size: 16px;
  text-align: center;
}

/* 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,
.activate-page.is-tv .activate-demo-hint {
  display: none;
}

.activate-demo-hint code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  font-family: 'SF Mono', Menlo, monospace;
  font-weight: 700;
  color: #ffd84f;
}

/* 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-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-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); }
}

/* 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,
  .vclub2-menu-item,
  .vclub2-rail-item,
  .vclub2-filter,
  .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,
.vclub2-rail-item,
.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;
  }
}

.pointer-events-none {
  pointer-events: none;
}

.\!visible {
  visibility: visible !important;
}

.visible {
  visibility: visible;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}

.inset-y-0 {
  top: 0px;
  bottom: 0px;
}

.bottom-0 {
  bottom: 0px;
}

.bottom-20 {
  bottom: 5rem;
}

.left-0 {
  left: 0px;
}

.left-3 {
  left: 0.75rem;
}

.right-0 {
  right: 0px;
}

.right-2 {
  right: 0.5rem;
}

.right-4 {
  right: 1rem;
}

.right-8 {
  right: 2rem;
}

.top-0 {
  top: 0px;
}

.top-1\/2 {
  top: 50%;
}

.top-2 {
  top: 0.5rem;
}

.top-4 {
  top: 1rem;
}

.top-8 {
  top: 2rem;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.z-\[60\] {
  z-index: 60;
}

.-mt-12 {
  margin-top: -3rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-1\.5 {
  margin-bottom: 0.375rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.ml-4 {
  margin-left: 1rem;
}

.ml-\[100px\] {
  margin-left: 100px;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.block {
  display: block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.aspect-\[2\/3\] {
  padding-bottom: 150.00%;
  aspect-ratio: 2/3;
}

.aspect-video {
  padding-bottom: 56.25%;
  aspect-ratio: 16 / 9;
}

.h-0\.5 {
  height: 0.125rem;
}

.h-1 {
  height: 0.25rem;
}

.h-1\.5 {
  height: 0.375rem;
}

.h-10 {
  height: 2.5rem;
}

.h-16 {
  height: 4rem;
}

.h-2 {
  height: 0.5rem;
}

.h-20 {
  height: 5rem;
}

.h-3 {
  height: 0.75rem;
}

.h-4 {
  height: 1rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-64 {
  height: 16rem;
}

.h-7 {
  height: 1.75rem;
}

.h-8 {
  height: 2rem;
}

.h-\[80vh\] {
  height: 80vh;
}

.h-full {
  height: 100%;
}

.h-screen {
  height: 100vh;
}

.max-h-\[90vh\] {
  max-height: 90vh;
}

.max-h-\[calc\(100vh-220px\)\] {
  max-height: calc(100vh - 220px);
}

.max-h-full {
  max-height: 100%;
}

.min-h-\[60vh\] {
  min-height: 60vh;
}

.min-h-\[70vh\] {
  min-height: 70vh;
}

.min-h-screen {
  min-height: 100vh;
}

.w-1\/2 {
  width: 50%;
}

.w-10 {
  width: 2.5rem;
}

.w-16 {
  width: 4rem;
}

.w-2 {
  width: 0.5rem;
}

.w-20 {
  width: 5rem;
}

.w-3\/4 {
  width: 75%;
}

.w-32 {
  width: 8rem;
}

.w-36 {
  width: 9rem;
}

.w-4 {
  width: 1rem;
}

.w-40 {
  width: 10rem;
}

.w-44 {
  width: 11rem;
}

.w-48 {
  width: 12rem;
}

.w-5 {
  width: 1.25rem;
}

.w-52 {
  width: 13rem;
}

.w-56 {
  width: 14rem;
}

.w-6 {
  width: 1.5rem;
}

.w-60 {
  width: 15rem;
}

.w-7 {
  width: 1.75rem;
}

.w-72 {
  width: 18rem;
}

.w-8 {
  width: 2rem;
}

.w-9 {
  width: 2.25rem;
}

.w-full {
  width: 100%;
}

.w-screen {
  width: 100vw;
}

.min-w-0 {
  min-width: 0px;
}

.min-w-\[200px\] {
  min-width: 200px;
}

.min-w-\[28px\] {
  min-width: 28px;
}

.min-w-\[80px\] {
  min-width: 80px;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-full {
  max-width: 100%;
}

.max-w-md {
  max-width: 28rem;
}

.flex-1 {
  flex: 1 1 0%;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.shrink-0 {
  flex-shrink: 0;
}

.-translate-x-full {
  --tw-translate-x: -100%;
  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));
}

.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  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));
}

.translate-x-0 {
  --tw-translate-x: 0px;
  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));
}

.translate-y-0 {
  --tw-translate-y: 0px;
  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));
}

.translate-y-4 {
  --tw-translate-y: 1rem;
  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));
}

.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));
}

@keyframes pulse {

  50% {
    opacity: .5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.cursor-none {
  cursor: none;
}

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

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-end {
  align-items: flex-end;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-2\.5 {
  gap: 0.625rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-6 {
  gap: 1.5rem;
}

.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.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));
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-l-\[3px\] {
  border-left-width: 3px;
}

.border-r {
  border-right-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.\!border-primary-400 {
  --tw-border-opacity: 1 !important;
  border-color: rgba(129, 140, 248, var(--tw-border-opacity, 1)) !important;
}

.border-primary-400 {
  --tw-border-opacity: 1;
  border-color: rgba(129, 140, 248, var(--tw-border-opacity, 1));
}

.border-primary-500 {
  --tw-border-opacity: 1;
  border-color: rgba(99, 102, 241, var(--tw-border-opacity, 1));
}

.border-primary-500\/60 {
  border-color: rgba(99, 102, 241, 0.6);
}

.border-red-500\/20 {
  border-color: rgba(239, 68, 68, 0.2);
}

.border-transparent {
  border-color: transparent;
}

.border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1);
}

.border-white\/5 {
  border-color: rgba(255, 255, 255, 0.05);
}

.border-t-transparent {
  border-top-color: transparent;
}

.\!bg-primary-600\/30 {
  background-color: rgba(79, 70, 229, 0.3) !important;
}

.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgba(0, 0, 0, var(--tw-bg-opacity, 1));
}

.bg-black\/25 {
  background-color: rgba(0, 0, 0, 0.25);
}

.bg-black\/50 {
  background-color: rgba(0, 0, 0, 0.5);
}

.bg-black\/60 {
  background-color: rgba(0, 0, 0, 0.6);
}

.bg-black\/70 {
  background-color: rgba(0, 0, 0, 0.7);
}

.bg-black\/80 {
  background-color: rgba(0, 0, 0, 0.8);
}

.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgba(34, 197, 94, var(--tw-bg-opacity, 1));
}

.bg-primary-500 {
  --tw-bg-opacity: 1;
  background-color: rgba(99, 102, 241, var(--tw-bg-opacity, 1));
}

.bg-primary-500\/0 {
  background-color: rgba(99, 102, 241, 0);
}

.bg-primary-600 {
  --tw-bg-opacity: 1;
  background-color: rgba(79, 70, 229, var(--tw-bg-opacity, 1));
}

.bg-primary-600\/20 {
  background-color: rgba(79, 70, 229, 0.2);
}

.bg-primary-600\/25 {
  background-color: rgba(79, 70, 229, 0.25);
}

.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgba(239, 68, 68, var(--tw-bg-opacity, 1));
}

.bg-red-500\/10 {
  background-color: rgba(239, 68, 68, 0.1);
}

.bg-red-500\/20 {
  background-color: rgba(239, 68, 68, 0.2);
}

.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgba(220, 38, 38, var(--tw-bg-opacity, 1));
}

.bg-surface-100 {
  --tw-bg-opacity: 1;
  background-color: rgba(22, 22, 42, 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-300 {
  --tw-bg-opacity: 1;
  background-color: rgba(14, 14, 34, var(--tw-bg-opacity, 1));
}

.bg-surface-300\/80 {
  background-color: rgba(14, 14, 34, 0.8);
}

.bg-surface-400 {
  --tw-bg-opacity: 1;
  background-color: rgba(10, 10, 30, var(--tw-bg-opacity, 1));
}

.bg-transparent {
  background-color: transparent;
}

.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}

.bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05);
}

.bg-yellow-500\/90 {
  background-color: rgba(234, 179, 8, 0.9);
}

.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/70 {
  --tw-gradient-from: rgba(0, 0, 0, 0.7) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-black\/80 {
  --tw-gradient-from: rgba(0, 0, 0, 0.8) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-black\/90 {
  --tw-gradient-from: rgba(0, 0, 0, 0.9) var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-surface-200 {
  --tw-gradient-from: #121226 var(--tw-gradient-from-position);
  --tw-gradient-to: rgba(18, 18, 38, 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-black\/75 {
  --tw-gradient-to: rgba(0, 0, 0, 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.75) var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.via-transparent {
  --tw-gradient-to: rgba(0, 0, 0, 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.to-transparent {
  --tw-gradient-to: transparent var(--tw-gradient-to-position);
}

.object-contain {
  object-fit: contain;
}

.object-cover {
  object-fit: cover;
}

.p-1\.5 {
  padding: 0.375rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-2\.5 {
  padding: 0.625rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-20 {
  padding-bottom: 5rem;
}

.pb-3 {
  padding-bottom: 0.75rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pb-6 {
  padding-bottom: 1.5rem;
}

.pl-10 {
  padding-left: 2.5rem;
}

.pr-4 {
  padding-right: 1rem;
}

.pt-12 {
  padding-top: 3rem;
}

.pt-16 {
  padding-top: 4rem;
}

.pt-3 {
  padding-top: 0.75rem;
}

.pt-4 {
  padding-top: 1rem;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.text-\[10px\] {
  font-size: 10px;
}

.text-\[11px\] {
  font-size: 11px;
}

.text-\[9px\] {
  font-size: 9px;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-tight {
  line-height: 1.25;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.\!text-white {
  --tw-text-opacity: 1 !important;
  color: rgba(255, 255, 255, var(--tw-text-opacity, 1)) !important;
}

.text-black {
  --tw-text-opacity: 1;
  color: rgba(0, 0, 0, var(--tw-text-opacity, 1));
}

.text-gray-200 {
  --tw-text-opacity: 1;
  color: rgba(229, 231, 235, var(--tw-text-opacity, 1));
}

.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-300 {
  --tw-text-opacity: 1;
  color: rgba(165, 180, 252, var(--tw-text-opacity, 1));
}

.text-primary-400 {
  --tw-text-opacity: 1;
  color: rgba(129, 140, 248, var(--tw-text-opacity, 1));
}

.text-primary-500 {
  --tw-text-opacity: 1;
  color: rgba(99, 102, 241, var(--tw-text-opacity, 1));
}

.text-red-300 {
  --tw-text-opacity: 1;
  color: rgba(252, 165, 165, var(--tw-text-opacity, 1));
}

.text-red-400 {
  --tw-text-opacity: 1;
  color: rgba(248, 113, 113, var(--tw-text-opacity, 1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgba(255, 255, 255, var(--tw-text-opacity, 1));
}

.text-white\/60 {
  color: rgba(255, 255, 255, 0.6);
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.placeholder-gray-500::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgba(107, 114, 128, var(--tw-placeholder-opacity, 1));
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.opacity-40 {
  opacity: 0.4;
}

.opacity-70 {
  opacity: 0.7;
}

.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-1 {
  --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(1px + 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);
}

.ring-primary-500\/50 {
  --tw-ring-color: rgba(99, 102, 241, 0.5);
}

.blur {
  --tw-blur: blur(8px);
  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);
}

.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);
}

.backdrop-blur-sm {
  --tw-backdrop-blur: blur(4px);
  -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);
}

.backdrop-blur-xl {
  --tw-backdrop-blur: blur(24px);
  -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-all {
  transition-property: all;
  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;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-1000 {
  transition-duration: 1000ms;
}

.duration-150 {
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.hover\:bg-black\/70:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.hover\:bg-black\/80:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.hover\:bg-primary-600\/30:hover {
  background-color: rgba(79, 70, 229, 0.3);
}

.hover\:bg-primary-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgba(67, 56, 202, var(--tw-bg-opacity, 1));
}

.hover\:bg-red-500\/30:hover {
  background-color: rgba(239, 68, 68, 0.3);
}

.hover\:bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-white\/20:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hover\:bg-white\/5:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgba(255, 255, 255, var(--tw-text-opacity, 1));
}

.focus\:border-primary-500\/50:focus {
  border-color: rgba(99, 102, 241, 0.5);
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-1:focus {
  --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(1px + 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);
}

.focus\:ring-primary-500\/25:focus {
  --tw-ring-color: rgba(99, 102, 241, 0.25);
}

.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.disabled\:opacity-30:disabled {
  opacity: 0.3;
}

.group:hover .group-hover\:bg-primary-500\/5 {
  background-color: rgba(99, 102, 241, 0.05);
}

.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}

.group:hover .group-hover\:opacity-70 {
  opacity: 0.7;
}

@media (min-width: 640px) {

  .sm\:ml-\[120px\] {
    margin-left: 120px;
  }

  .sm\:block {
    display: block;
  }

  .sm\:h-20 {
    height: 5rem;
  }

  .sm\:h-24 {
    height: 6rem;
  }

  .sm\:w-20 {
    width: 5rem;
  }

  .sm\:w-24 {
    width: 6rem;
  }

  .sm\:w-40 {
    width: 10rem;
  }

  .sm\:w-48 {
    width: 12rem;
  }

  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sm\:px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .sm\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .sm\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .sm\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .sm\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 768px) {

  .md\:bottom-4 {
    bottom: 1rem;
  }

  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:pb-4 {
    padding-bottom: 1rem;
  }
}

@media (min-width: 1024px) {

  .lg\:block {
    display: block;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:w-56 {
    width: 14rem;
  }

  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lg\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1280px) {

  .xl\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 1536px) {

  .\32xl\:grid-cols-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}