﻿/* --- STYLE.CSS (UPGRADED - TIZEN FRIENDLY, NO GRID DEPENDENCY, NO GAP REQUIRED) --- */

/* ============ THEME ============ */
:root{
  --accent: #00E5FF;
  --accentSoft: rgba(0,229,255,.14);
  --bg0: #000;
  --bg1: #050505;
  --panel: #0a0a0a;
  --panel2: #111;
  --card: rgba(255,255,255,.04);
  --card2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.16);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --hint: rgba(255,255,255,.45);
  --shadow: 0 10px 30px rgba(0,0,0,.55);
  --shadowGlow: 0 18px 60px rgba(0,229,255,.18), 0 10px 30px rgba(0,0,0,.55);
}

/* ============ GLOBAL ============ */
* { box-sizing: border-box; }

html, body {
  background-color: transparent !important;
  margin: 0;
  overflow: hidden;
  font-family: "Segoe UI", sans-serif;
  color: #fff;
  width: 1920px;
  height: 1080px;
}

::-webkit-scrollbar { display: none; }

object {
  position: absolute;
  top:0; left:0;
  width:1920px;
  height:1080px;
  z-index: -1;
}

.video-active { background: transparent !important; }
.video-active #home-screen,
.video-active #columns-view,
.video-active #search-screen,
.video-active #editor-screen { display: none !important; }

#home-screen, #settings-screen, #editor-screen { background-color: var(--bg0); }

/* Helper */
.hidden { display: none !important; }

/* ============ SPLASH ============ */
#splash {
  position: absolute;
  top:0; left:0;
  width:100%; height:100%;
  background:#000;
  z-index:9999;
  display:flex;
  justify-content:center;
  align-items:center;
}
#splash img { width: 400px; height: auto; }

/* ============ HOME SCREEN ============ */
#home-screen {
  display: none;
  width: 1920px;
  height: 1080px;
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background:
    radial-gradient(ellipse 120% 50% at 50% 0%, rgba(0,229,255,.09) 0%, transparent 55%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(0,229,255,.04) 0%, transparent 50%),
    radial-gradient(circle at center, #0d0d0d 0%, #000 70%);
  z-index: 100;
  padding-top: 130px;
}

#home-logo {
  height: 350px;
  width: auto;
  margin-bottom: 20px;
  transition: transform 0.25s;
}

#settings-icon {
  position: absolute;
  top: 50px; right: 60px;
  font-size: 50px;
  color: rgba(255,255,255,.35);
  padding: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  z-index: 10000;
  transition: transform 0.14s, color 0.14s, background 0.14s, border-color 0.14s, box-shadow 0.14s;
}
#settings-icon.focused {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,229,255,0.10);
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(0,229,255,.25);
}

/* HISTORY SECTION */
#home-history-section {
  display: none;
  width: 100%;
  height: 240px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.home-section-title {
  width: 85%;
  font-size: 30px; /* was 24 */
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 15px;
  padding-left: 12px;
  border-left: 5px solid var(--accent);
  letter-spacing: .8px;
}

#home-history-list {
  display: flex;
  justify-content: center;
  width: 100%;
  /* NO gap */
}

.home-history-item {
  width: 220px;
  height: 160px;
  background: #1b1b1b;
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  /* GPU layer â€” tylko transform+opacity animowane przez kartÄ™ graficznÄ… */
  -webkit-transform: translateZ(0) scale(1);
  transform: translateZ(0) scale(1);
  will-change: transform, opacity;
  -webkit-transition: -webkit-transform .12s ease-out, opacity .12s ease-out;
  transition: transform .12s ease-out, opacity .12s ease-out;
  opacity: 0.80;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}

.home-history-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.65;
  z-index: 1;
}

.home-history-item .history-label {
  position: relative;
  z-index: 2;
  background: rgba(0,0,0,0.78);
  color: rgba(255,255,255,.92);
  font-size: 16px; /* was 14 */
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-history-item.focused {
  -webkit-transform: translateZ(0) scale(1.08) translateY(-5px);
  transform: translateZ(0) scale(1.08) translateY(-5px);
  border-color: var(--accent);
  z-index: 10;
  opacity: 1;
  box-shadow: var(--shadowGlow);
}
.home-history-item.focused img { opacity: 0.95; }

/* MAIN TILES */
.tiles-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 180px;
  /* NO gap */
}

.tile {
  width: 260px;
  height: 200px;
  background: rgba(255,255,255,.04);
  border: 3px solid rgba(255,255,255,.12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: var(--muted);
  /* GPU â€” tylko transform+opacity */
  -webkit-transform: translateZ(0) scale(1);
  transform: translateZ(0) scale(1);
  will-change: transform, opacity;
  -webkit-transition: -webkit-transform .12s ease-out, opacity .12s ease-out;
  transition: transform .12s ease-out, opacity .12s ease-out;
  opacity: 0.80;
  box-shadow: var(--shadow);
  font-weight: 800;
  margin: 0 20px;
}

.tile i {
  font-size: 60px;
  margin-bottom: 20px;
  color: rgba(255,255,255,.80);
}

.tile.focused {
  -webkit-transform: translateZ(0) scale(1.10) translateY(-6px);
  transform: translateZ(0) scale(1.10) translateY(-6px);
  border-color: var(--accent);
  z-index: 10;
  opacity: 1;
  box-shadow: var(--shadowGlow);
}
.tile.focused i { color: var(--accent); }

/* Small info text */
#id-display {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: var(--hint) !important;
  font-size: 18px !important;
}

/* ============ SEARCH SCREEN ============ */
/* ============ SEARCH SCREEN â€” PREMIUM REDESIGN ============ */
#search-screen {
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 1920px;
  height: 1080px;
  background: #000;
  z-index: 600;
  -webkit-flex-direction: column;
  flex-direction: column;
}

/* â”€â”€ HEADER: peĹ‚na szerokoĹ›Ä‡, tytuĹ‚ + wpisywana fraza â”€â”€ */
.search-header {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  height: 84px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  align-items: center;
  padding: 0 48px;
  background: #000;
  border-bottom: 2px solid rgba(0,229,255,.25);
  box-shadow: 0 2px 24px rgba(0,229,255,.07);
}
.search-header-label {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-right: 32px;
}
.search-header-query {
  -webkit-flex: 1;
  flex: 1;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  height: 54px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 0 24px;
  overflow: hidden;
}
#search-input-display {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  min-width: 4px;
}
.search-cursor {
  color: var(--accent);
  font-size: 32px;
  font-weight: 100;
  margin-left: 2px;
  -webkit-animation: blink 1s step-end infinite;
  animation: blink 1s step-end infinite;
}
@-webkit-keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.search-header-status {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-left: 24px;
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 1px;
  min-width: 160px;
  text-align: right;
}

/* â”€â”€ GĹĂ“WNY OBSZAR: klawiatura + wyniki â”€â”€ */
.search-body {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* LEWA KOLUMNA â€” klawiatura */
.search-left {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 580px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  background: #000;
  border-right: 2px solid rgba(255,255,255,.08);
  padding: 24px 0;
}

/* PRAWA KOLUMNA â€” wyniki */
.search-right {
  -webkit-flex: 1;
  flex: 1;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}

/* KEYBOARD (NO GAP) */
.keyboard-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: center;
  justify-content: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
.kb-section {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 10px;
}
.key-btn {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.75);
  width: 76px;
  height: 62px;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  font-size: 24px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-weight: 700;
  margin: 3px;
  /* GPU layer */
  -webkit-transform: translateZ(0) scale(1);
  transform: translateZ(0) scale(1);
  will-change: transform, opacity;
  opacity: 0.75;
  -webkit-transition: none;
  transition: none;
}
.key-btn.focused {
  border-color: var(--accent);
  background: rgba(0,229,255,.18);
  color: #fff;
  -webkit-transform: translateZ(0) scale(1.1);
  transform: translateZ(0) scale(1.1);
  opacity: 1;
  z-index: 10;
}
.key-btn.action-btn {
  -webkit-flex: 1;
  flex: 1;
  min-width: 130px;
  max-width: 180px;
  background: rgba(255,255,255,.10);
  font-size: 18px;
  border-radius: 10px;
}
.kb-section-actions {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  margin-bottom: 0;
}

/* === KLAWIATURA KATEGORII (inline) === */
#cat-kb-inline {
  display: none;
  position: absolute;
  top: 110px;
  left: 0;
  width: 100%;
  padding: 10px 12px 8px;
  background: rgba(10,10,10,.95);
  border-bottom: 2px solid rgba(255,255,255,.10);
  z-index: 22;
  box-sizing: border-box;
}
.cat-kb-input-inline {
  width: 100%;
  min-height: 38px;
  background: rgba(255,255,255,.07);
  border: 2px solid var(--accent);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 24px;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 1px;
  box-sizing: border-box;
}
.cat-kb-grid-inline {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: center;
  justify-content: center;
}
.ckb-key {
  width: 58px;
  height: 52px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 22px;
  color: #ccc;
  cursor: pointer;
  margin: 2px;
  -webkit-transition: border-color .12s, background .12s;
  transition: border-color .12s, background .12s;
}
.ckb-key.focused {
  border-color: var(--accent);
  background: rgba(255,255,255,.20);
  color: #fff;
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
  box-shadow: 0 0 14px rgba(0,229,255,.35);
}

/* â”€â”€ KARTY KATEGORII â€” 3 poziomo â”€â”€ */
#search-cards-wrapper {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  padding: 40px 40px;
  -webkit-align-items: stretch;
  align-items: stretch;
  box-sizing: border-box;
  width: 100%;
}
.search-card {
  -webkit-flex: 1;
  flex: 1;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  align-items: center;
  background: linear-gradient(145deg, #151515, #1f1f1f);
  border: 3px solid rgba(255,255,255,.14);
  border-radius: 18px;
  margin: 0 20px;
  padding: 40px 20px;
  box-shadow: 0 14px 38px rgba(0,0,0,.55);
  color: rgba(255,255,255,.65);
  /* GPU â€” tylko transform+opacity */
  -webkit-transform: translateZ(0) scale(1);
  transform: translateZ(0) scale(1);
  will-change: transform, opacity;
  -webkit-transition: -webkit-transform .12s ease-out, opacity .12s ease-out;
  transition: transform .12s ease-out, opacity .12s ease-out;
  opacity: 0.78;
}
.search-card:first-child { margin-left: 0; }
.search-card:last-child  { margin-right: 0; }
.search-card.focused {
  -webkit-transform: translateZ(0) scale(1.05) translateY(-6px);
  transform: translateZ(0) scale(1.05) translateY(-6px);
  border-color: var(--accent) !important;
  z-index: 10;
  opacity: 1;
  box-shadow: var(--shadowGlow);
}
.scard-icon {
  font-size: 80px;
  color: rgba(255,255,255,.80);
  margin-bottom: 24px;
  -webkit-transition: color .14s;
  transition: color .14s;
}
.search-card.focused .scard-icon { color: var(--accent); }
.scard-info { text-align: center; }
.scard-title {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.scard-count {
  font-size: 42px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.scard-count-label {
  font-size: 16px;
  color: rgba(255,255,255,.38);
  letter-spacing: 1px;
  margin-top: 4px;
}
.scard-count-zero { color: rgba(255,255,255,.22); }

/* â”€â”€ SIATKA WYNIKĂ“W (postery) â”€â”€ */
#search-grid-view {
  -webkit-flex: 1;
  flex: 1;
  display: none;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-content: flex-start;
  align-content: flex-start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  overflow-y: auto;
  padding: 24px 32px 20px;
  -webkit-overflow-scrolling: touch;
}
.search-poster {
  width: 195px;
  height: 290px;
  background: rgba(255,255,255,.06);
  border: 2px solid transparent;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  margin: 0 10px 20px 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.55);
  /* GPU layer â€” eliminuje CPU repaint przy zmianie fokusu */
  -webkit-transform: translateZ(0) scale(1);
  transform: translateZ(0) scale(1);
  will-change: transform, opacity;
  -webkit-transition: -webkit-transform .10s ease-out, opacity .10s ease-out;
  transition: transform .10s ease-out, opacity .10s ease-out;
  opacity: 0.82;
}
.search-poster img { width: 100%; height: 100%; object-fit: cover; }
.search-poster.focused {
  border-color: var(--accent);
  -webkit-transform: translateZ(0) scale(1.07) translateY(-6px);
  transform: translateZ(0) scale(1.07) translateY(-6px);
  z-index: 100;
  opacity: 1;
  box-shadow: var(--shadowGlow);
}
.search-poster-title {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  background: rgba(0,0,0,.82);
  color: #fff;
  font-size: 14px;
  padding: 6px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ COLUMNS VIEW ============ */
#columns-view{
  display: none;
  position: absolute;
  top:0; left:0;
  width:1920px;
  height:1080px;
  overflow: hidden;
  background: #050508;
  z-index: 500;
}

/* NagĹ‚Ăłwek ekranu list â€” identyczny styl jak editor-page-header */
.columns-page-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 0 40px;
  background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0,229,255,.10);
  z-index: 30;
  box-sizing: border-box;
}
.columns-page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.columns-page-hint {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  align-items: center;
  font-size: 18px;
  color: rgba(255,255,255,.38);
  white-space: nowrap;
}
.columns-page-hint span {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}
.columns-page-hint i {
  font-size: 15px;
  color: rgba(0,229,255,.6);
  margin-right: 4px;
}

#sliding-wrapper{ position: absolute; top: 64px; left: 0; right: 0; bottom: 0; }

.col-categories{
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 520px;
  background: linear-gradient(135deg, #0c0c14 0%, #08080e 100%);
  border-right: 1px solid rgba(0,229,255,.10);
  z-index: 20;
}

.col-channels{
  position: absolute;
  top: 0; bottom: 0;
  left: 520px;
  width: 1400px;
  background: #0a0a0f;
  border-right: none;
  display: none;
}
#sliding-wrapper.show-channels .col-channels { display: block; }

.panel-header{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 90px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  box-sizing: border-box;
  z-index: 10;
}

.list-title{
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.list-viewport{
  position: absolute;
  top: 90px; bottom: 0; left: 0;
  width: 100%;
  overflow-y: auto;
  padding: 12px 0;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

.vod-grid-content{
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-start;
  padding: 0 40px;
  width: 100%;
  box-sizing: border-box;
  /* NO gap */
}

/* Lists */
#cat-list-container, #ch-list-container { padding: 6px 12px; overflow-x: visible; }

.list-item{
  padding: 12px 18px;
  font-size: 21px;
  color: rgba(255,255,255,.55);
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 3px 8px;
  /* GPU layer â€” pĹ‚ynne przesuniÄ™cie w prawo przy fokusie */
  -webkit-transform: translateZ(0) translateX(0);
  transform: translateZ(0) translateX(0);
  will-change: transform, opacity;
  -webkit-transition: -webkit-transform .10s ease-out, opacity .10s ease-out;
  transition: transform .10s ease-out, opacity .10s ease-out;
  opacity: 0.65;
}

.list-item.focused{
  background-color: rgba(0,229,255,.08) !important;
  border: 2px solid rgba(0,229,255,.35) !important;
  color: #fff !important;
  font-weight: 800;
  -webkit-transform: translateZ(0) translateX(8px);
  transform: translateZ(0) translateX(8px);
  opacity: 1;
  box-shadow: 0 0 20px rgba(0,229,255,.08);
}

.list-item.focused i,
.list-item.focused img{
  color: var(--accent);
  filter: drop-shadow(0 0 5px rgba(0,229,255,0.8));
}

.ch-icon{
  width: 50px; height: 50px;
  object-fit: contain;
  margin-right: 20px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
}
.ch-name{
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ch-epg-now{
  max-width: 460px;
  min-width: 0;
  font-size: 21px;
  color: rgba(255,255,255,0.30);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  margin-left: 12px;
  margin-right: 64px;
  font-style: italic;
}

/* Search box */
.search-box{
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 5px 15px;
  width: 240px;
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.search-box i{
  color: rgba(255,255,255,.55);
  margin-right: 10px;
  font-size: 20px;
}
.search-input{
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  width: 100%;
  outline: none;
}
.search-box.focused{
  border-color: var(--accent);
  background: rgba(0,229,255,.10);
  box-shadow: 0 0 18px rgba(0,229,255,.16);
}

/* VOD posters */
.vod-item-wrapper{
  width: 230px;
  display: flex;
  flex-direction: column;
  -webkit-transform: translateZ(0) scale(1);
  transform: translateZ(0) scale(1);
  will-change: transform, opacity;
  -webkit-transition: -webkit-transform .12s ease-out, opacity .12s ease-out;
  transition: transform .12s ease-out, opacity .12s ease-out;
  opacity: 0.75;
  margin: 0 12px 24px 12px;
}
.vod-item-wrapper > div { margin-bottom: 6px; }

.vod-poster{
  width: 230px;
  height: 345px;
  background: rgba(255,255,255,.04);
  border: 2px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,.45);
}
/* Gradient overlay at bottom of poster */
.vod-poster::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  pointer-events: none;
}
.vod-poster img{ width: 100%; height: 100%; object-fit: cover; }

.vod-title{
  font-size: 20px;
  color: rgba(255,255,255,.60);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  padding: 0 4px;
}

.vod-item-wrapper.focused{
  -webkit-transform: translateZ(0) scale(1.08) translateY(-8px);
  transform: translateZ(0) scale(1.08) translateY(-8px);
  opacity: 1;
  z-index: 10;
}
.vod-item-wrapper.focused .vod-poster{
  border-color: var(--accent);
  box-shadow: var(--shadowGlow);
}
.vod-item-wrapper.focused .vod-title{
  color: #fff;
  font-weight: 800;
}

/* ============ PLAYER UI ============ */
#subs{
  display: block;
  position: absolute;
  bottom: 80px;
  width: 100%;
  text-align: center;
  z-index: 9999;
  pointer-events: none;
}
#subs span{
  display: inline-block;
  background: transparent;
  padding: 5px 10px;
  font-size: 46px;
  font-weight: 800;
  color: #fff;
  text-shadow:
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000,
    0px 3px 6px rgba(0,0,0,1);
  line-height: 1.3;
}

#vod-ui{
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  transition: opacity 0.35s;
}

/* Top icons (NO gap, use margin) */
.vod-top-icons{
  position: absolute;
  top: 40px;
  right: 60px;
  display: flex;
}

.vod-icon{
  background: rgba(0,0,0,0.60);
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 24px;
  color: rgba(255,255,255,.72);
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  min-width: 140px;
  justify-content: center;
  margin-left: 18px; /* replaces gap */
  transition: transform .12s, background .12s, border-color .12s, box-shadow .12s, color .12s;
}

.vod-icon.focused{
  background: rgba(0,229,255,.18);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(0,229,255,.22);
}

.vod-controls{
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to top, rgba(0,0,0,1), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 50px;
}

.progress-container{
  width: 90%;
  margin: 0 auto;
  height: 10px;
  background: rgba(255,255,255,.18);
  border-radius: 6px;
  position: relative;
}

.progress-preview{
  position:absolute;
  top:0; left:0;
  height:100%;
  background: rgba(255,255,255,0.28);
  width:0%;
  border-radius:6px;
}

.progress-bar{
  height: 100%;
  background: var(--accent);
  width: 0%;
  border-radius: 6px;
  position: relative;
  z-index: 2;
}

.time-display{
  width: 90%;
  margin: 10px auto;
  display: flex;
  justify-content: space-between;
  font-size: 24px;
  color: rgba(255,255,255,.72);
}

.vod-buttons{
  text-align: center;
  margin-top: 20px;
  font-size: 50px;
  color: #fff;
}

.vod-btn-center{
  display: inline-block;
  padding: 10px 30px;
  border-radius: 50%;
  border: 3px solid transparent;
  margin: 0 10px;
  transition: transform .12s, background .12s, border-color .12s, color .12s;
}

.vod-btn-center.focused{
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,229,255,.10);
  transform: scale(1.05);
}

#seek-popup{
  display:none;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  background:rgba(0,0,0,0.72);
  padding:20px 40px;
  border-radius:15px;
  font-size:40px;
  font-weight:900;
  color:#fff;
  border:2px solid var(--accent);
  z-index:3000;
}

/* ============ POPUPS ============ */
.popup-menu{
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  background: rgba(0,0,0,0.95);
  border: 2px solid var(--accent);
  border-radius: 15px;
  padding: 30px;
  z-index: 3000;
  text-align: center;
  box-shadow: 0 20px 70px rgba(0,0,0,.65);
}

.track-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-left: 20px;
  max-height: 500px;
  overflow-y: auto;
}

#track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 10px 10px 10px 10px;
}

/* Language selector — always 4 columns to match keyboard navigation */
#lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 10px;
  max-height: none;
  overflow: visible;
}
#lang-menu .track-tile {
  width: 100%;
  margin: 0;
  height: 72px;
  font-size: 20px;
}

#track-grid .track-tile {
  width: 100%;
  margin: 0;
  font-size: 18px;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  line-height: 1.3;
  padding: 8px 6px;
  height: auto;
  min-height: 70px;
}

.track-tile{
  width: 140px;
  height: 90px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: rgba(255,255,255,.68);
  transition: transform 0.10s, background 0.10s, border-color 0.10s, box-shadow 0.10s, color 0.10s;
  margin: 10px;
}

.track-tile.focused{
  background: rgba(0,229,255,.18);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0,229,255,.18);
  transform: scale(1.04);
}

.resume-btn{
  display: block;
  width: 100%;
  padding: 20px;
  background: rgba(255,255,255,.06);
  margin: 10px 0;
  font-size: 28px;
  color: rgba(255,255,255,.78);
  border: 2px solid transparent;
  border-radius: 12px;
  transition: transform .12s, background .12s, border-color .12s, box-shadow .12s, color .12s;
}

.resume-btn.focused{
  background: rgba(0,229,255,.18);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0,229,255,.18);
  transform: scale(1.02);
}

/* ============ FAVORITES DASHBOARD ============ */
.dashboard-container{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  /* NO gap */
}

.dash-tile{
  width: 300px;
  height: 400px;
  background: linear-gradient(145deg, #151515, #1f1f1f);
  border: 3px solid rgba(255,255,255,.14);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgba(255,255,255,.65);
  margin: 0 25px;
  box-shadow: 0 14px 38px rgba(0,0,0,.55);
  /* GPU layer */
  -webkit-transform: translateZ(0) scale(1);
  transform: translateZ(0) scale(1);
  will-change: transform, opacity;
  -webkit-transition: -webkit-transform .15s ease-out, opacity .15s ease-out;
  transition: transform .15s ease-out, opacity .15s ease-out;
  opacity: 0.72;
}

.dash-tile i{ font-size: 80px; margin-bottom: 30px; color: rgba(255,255,255,.80); }
.dash-tile .dash-label{ font-size: 28px; font-weight: 900; text-align: center; }

.dash-tile.focused{
  -webkit-transform: translateZ(0) scale(1.08) translateY(-8px);
  transform: translateZ(0) scale(1.08) translateY(-8px);
  border-color: var(--accent);
  color: #fff;
  opacity: 1;
  z-index: 10;
  box-shadow: var(--shadowGlow);
}

/* ============ SETTINGS / EDITOR / LOADER ============ */
#settings-screen{
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 1920px;
  height: 1080px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,229,255,.04) 0%, transparent 60%),
              linear-gradient(180deg, #080810 0%, #0a0a0a 100%);
  z-index: 200;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

/* Settings header — left-aligned title bar */
.settings-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  padding: 0 60px;
  border-bottom: 1px solid rgba(0,229,255,.12);
  box-sizing: border-box;
}
.settings-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0;
}

/* 2x3 card grid */
.settings-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-align-content: center;
  align-content: center;
  gap: 24px;
  width: 800px;
  margin-top: 20px;
}

/* Individual card */
.settings-card {
  width: 380px;
  height: 200px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: rgba(255,255,255,.04);
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 20px;
  cursor: pointer;
  -webkit-transform: translateZ(0) scale(1);
  transform: translateZ(0) scale(1);
  will-change: transform, opacity;
  -webkit-transition: -webkit-transform .14s ease-out, opacity .14s ease-out;
  transition: transform .14s ease-out, opacity .14s ease-out;
  opacity: .7;
}
.settings-card-icon {
  font-size: 38px;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
  -webkit-transition: color .14s ease;
  transition: color .14s ease;
}
.settings-card-label {
  font-size: 22px;
  font-weight: 800;
  color: rgba(255,255,255,.75);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.settings-card-value {
  font-size: 18px;
  color: rgba(255,255,255,.35);
  margin-top: 6px;
  min-height: 22px;
}

/* Focused card */
.settings-card.focused {
  -webkit-transform: translateZ(0) scale(1.06) translateY(-6px);
  transform: translateZ(0) scale(1.06) translateY(-6px);
  opacity: 1;
  background: rgba(0,229,255,.08);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0,229,255,.15), 0 4px 20px rgba(0,0,0,.5);
}
.settings-card.focused .settings-card-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(0,229,255,.5));
}
.settings-card.focused .settings-card-label {
  color: #fff;
}
.settings-card.focused .settings-card-value {
  color: var(--accent);
}

/* Playlists screen */
#playlists-screen {
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #050505;
  z-index: 500;
  align-items: stretch;
}
[id^="pl-tile-"].focused {
  border-color: var(--accent) !important;
  box-shadow: 0 0 28px rgba(0,229,255,.25) !important;
  transform: scale(1.04);
  background: rgba(0,229,255,.06) !important;
}
#qr-overlay { display: none; }

#editor-screen{
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #050505;
  z-index: 500;
}

#loader{
  display: none;
  position: absolute;
  top:0; left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.82);
  z-index:5000;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  color: var(--accent);
  font-size:24px;
}

/* ============ PSYCHO-UX: CHANNEL PREVIEW ============ */
#channel-preview{
  display:none;
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  z-index:1500;
  background: #000;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  transition: opacity .3s ease-out;
}
#cp-bg{
  position:absolute;
  top:-10%; left:-10%;
  width:120%; height:120%;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  filter:blur(40px) brightness(.35);
}
#cp-center{
  position:relative;
  z-index:1;
  text-align:center;
}
#cp-logo{
  max-width:180px;
  max-height:120px;
  object-fit:contain;
  margin-bottom:18px;
  border-radius:12px;
  box-shadow:0 4px 30px rgba(0,0,0,.5);
}
#cp-name{
  color:rgba(255,255,255,.85);
  font-size:28px;
  font-weight:600;
  letter-spacing:.5px;
  text-shadow:0 2px 8px rgba(0,0,0,.6);
}

/* ============ PIN POPUP ============ */
#pin-popup{
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.90);
  z-index: 5000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.pin-title{
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.pin-dots-container{
  display: flex;
  margin-bottom: 30px;
  /* NO gap -> use margin on dots */
}

.pin-dot{
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: transparent;
  transition: background 0.14s, border-color 0.14s;
  margin: 0 10px; /* replaces gap */
}

.pin-dot.filled{
  background: var(--accent);
  border-color: var(--accent);
}

/* PIN KEYBOARD (keep your grid version; if old Tizen breaks it, switch to flex in JS/HTML) */
.pin-keyboard{
  display: grid;
  grid-template-columns: repeat(3, 80px);
  grid-gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.pin-key{
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.10);
  border: 2px solid transparent;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  cursor: pointer;
  margin: 0;
  transition: transform .12s, background .12s, border-color .12s, box-shadow .12s, color .12s;
}

.pin-key.focused{
  background: rgba(0,229,255,.75);
  color: #000;
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(0,229,255,.45);
  z-index: 10;
  border-color: #fff;
}

.pin-key.action-btn{
  font-size: 24px;
  background: rgba(255,0,0,0.18);
}

/* ============ FAVORITES HEARTS ============ */
.is-fav { border-color: transparent !important; position: relative; }

.vod-item-wrapper.is-fav::after,
.list-item.is-fav::after{
  content: "\f004";
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  color: red;
  position: absolute;
  z-index: 10;
}

.vod-item-wrapper.is-fav::after{
  top: 10px; right: 10px;
  font-size: 32px;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.8));
}

.list-item.is-fav::after{
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}

.search-poster.is-fav::after{
  content: "\f004";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: red;
  position: absolute;
  top: 10px; right: 10px;
  font-size: 32px;
  z-index: 200;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.8));
}

.search-poster.focused.is-fav{
  border-color: var(--accent) !important;
  transform: scale(1.08) translateZ(0);
}

/* ============ EXIT / INFO / ERRORS ============ */
#exit-popup{
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: center;
}

.exit-box{
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.14);
  padding: 40px;
  border-radius: 14px;
  text-align: center;
  width: 520px;
  box-shadow: 0 20px 70px rgba(0,0,0,.65);
}

.exit-title{
  font-size: 30px;
  color: #fff;
  margin-bottom: 30px;
  font-weight: 900;
}

.exit-buttons{ display: flex; justify-content: center; }

.exit-btn{
  padding: 15px 30px;
  font-size: 24px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.70);
  border: 3px solid transparent;
  border-radius: 10px;
  margin: 0 10px;
  transition: transform .12s, background .12s, border-color .12s, box-shadow .12s, color .12s;
}

.exit-btn.focused{
  background: rgba(0,229,255,.18);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(0,229,255,.18);
  transform: scale(1.05);
}

#info-bar{
  display: none;
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 350px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 0 60px 50px 60px;
  box-sizing: border-box;
  z-index: 2000;
  pointer-events: none;
  transition: opacity 0.35s;
}

.info-layout{ display: flex; align-items: center; width: 100%; }
#info-logo{
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: rgba(255,255,255,0.08);
  border-radius: 15px;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  margin-right: 30px;
}

.info-content{ flex: 1; display: flex; flex-direction: column; }
#info-ch-name{
  font-size: 34px;
  color: #fff;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0,0,0,1);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.info-resolution{
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0,229,255,0.12);
  border: 1px solid rgba(0,229,255,0.30);
  border-radius: 4px;
  padding: 2px 9px;
  letter-spacing: 0.5px;
  text-shadow: none;
  flex-shrink: 0;
  display: none;
}
.info-resolution:not(:empty){
  display: inline-block;
}
.vod-resolution{
  position: absolute;
  top: 52px;
  left: 60px;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.38);
  background: rgba(0,0,0,0.45);
  border-radius: 4px;
  padding: 4px 10px;
  letter-spacing: 0.5px;
  display: none;
}
#info-epg{
  font-size: 24px;
  color: rgba(255,255,255,.72);
  margin-bottom: 4px;
  text-shadow: 1px 1px 3px rgba(0,0,0,1);
}
#info-epg-next{
  font-size: 20px;
  color: rgba(255,255,255,.45);
  margin-bottom: 8px;
  text-shadow: 1px 1px 3px rgba(0,0,0,1);
}

.epg-progress-bg{
  width: 98%;
  height: 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}

.epg-progress-fill{
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0,229,255,.35);
}

/* â”€â”€ Info-bar: TV Guide hint â”€â”€ */
.info-guide-hint{
  position: absolute;
  bottom: 18px;
  right: 60px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.7;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}
.info-guide-hint i{
  font-size: 16px;
}

#no-internet-screen{
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.no-net-icon{ font-size: 100px; color: #e50914; margin-bottom: 30px; }
.no-net-text{ font-size: 36px; font-weight: 900; }
.no-net-sub{ font-size: 24px; color: rgba(255,255,255,.55); margin-top: 10px; }

#stream-error-overlay{
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.80);
  z-index: 10;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-msg{
  font-size: 28px;
  color: rgba(255,255,255,.75);
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 900;
}

.error-retry{
  font-size: 22px;
  color: var(--accent);
  margin-top: 24px;
  letter-spacing: 1px;
  animation: retryPulse 1.5s ease-in-out infinite;
}

@keyframes retryPulse{
  0%, 100%{ opacity: 0.6; }
  50%{ opacity: 1; }
}

.spinner{
  border: 6px solid rgba(255,255,255,0.10);
  border-top: 6px solid var(--accent);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin{
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.search-left-title{ display:none; }
.search-right-title{ display:none; }
/* #search-status is now inline in .search-header â€” styles via .search-header-status */
#search-status{ /* legacy rule neutralized */ }

.popup-title{ font-size:30px; color:var(--accent); margin-bottom:20px; font-weight: 900; }
.popup-small{ width: 500px; }
.resume-time{ color:#aaa; margin:20px 0; }

.screen{ display:none; position:absolute; top:0; left:0; width:100%; height:100%; }

/* ===== EDITOR KATEGORII â€” PREMIUM REDESIGN ===== */

/* GĂłrny pasek nagĹ‚Ăłwka caĹ‚ego ekranu */
.editor-page-header{
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  height: 88px;
  padding: 0 48px;
  background: #000;
  border-bottom: 2px solid rgba(0,229,255,.25);
  box-shadow: 0 2px 24px rgba(0,229,255,.07);
}
.editor-page-title{
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}
.editor-page-hint{
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  align-items: center;
  font-size: 20px;
  color: rgba(255,255,255,.42);
}
.editor-page-hint span{
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}
.editor-page-hint span i{
  margin-right: 5px;
}
.editor-hint-sep{
  margin: 0 18px;
  color: rgba(255,255,255,.18);
  font-size: 22px;
}

/* Obszar trzech kolumn */
.editor-columns-area{
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Pojedyncza kolumna */
.editor-col{
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.editor-col-border{
  border-left: 2px solid rgba(255,255,255,.08);
  border-right: 2px solid rgba(255,255,255,.08);
}

/* NagĹ‚Ăłwek kolumny (TV / MOVIES / SERIES) */
.editor-col-header{
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  height: 80px;
  border-bottom: 2px solid rgba(255,255,255,.08);
  background: rgba(0,229,255,.04);
}
.editor-col-title{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--accent);
  text-transform: uppercase;
}

/* Wrapper listy (toggle + scroll) */
.editor-list{
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Wiersz z przyciskiem TOGGLE ALL */
.editor-toggle-row{
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  padding: 10px 16px;
  background: #000;
  border-bottom: 2px solid rgba(255,255,255,.08);
}
.editor-toggle-row .list-item{
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 2px solid rgba(255,255,255,.12);
  padding: 14px 0;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  -webkit-transition: background .12s, border-color .12s, color .12s;
  transition: background .12s, border-color .12s, color .12s;
}
.editor-toggle-row .list-item.focused{
  background: rgba(0,229,255,.15);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(0,229,255,.2);
  -webkit-transform: none;
  transform: none;
}

/* Obszar przewijania listy */
.editor-list-area{
  -webkit-flex: 1;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.editor-list-inner{
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
}

/* Pozycje listy w edytorze */
.editor-list-inner .list-item{
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  padding: 14px 20px;
  font-size: 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  /* BRAK transition â€” eliminuje smugÄ™ przy szybkim scrollu */
  -webkit-transition: none;
  transition: none;
  margin: 3px 8px;
  color: rgba(255,255,255,.68);
}
.editor-list-inner .list-item:nth-child(even){
  background: rgba(255,255,255,.025);
}
.editor-list-inner .list-item.focused{
  background: rgba(0,229,255,.12) !important;
  border: 2px solid var(--accent) !important;
  border-radius: 10px !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(0,229,255,.15);
  -webkit-transform: none;
  transform: none;
}
/* Ikony stanu w edytorze â€” kolor NIE zmienia siÄ™ przy focusie
   Celujemy bezpoĹ›rednio w <i> ĹĽeby pobiÄ‡ globalnÄ… reguĹ‚Ä™ .list-item.focused i */
.editor-list-inner .list-item .editor-item-icon-on i,
.editor-list-inner .list-item.focused .editor-item-icon-on i {
  color: var(--accent) !important;
  filter: none !important;
}
.editor-list-inner .list-item .editor-item-icon-off i,
.editor-list-inner .list-item.focused .editor-item-icon-off i {
  color: #ff4444 !important;
  filter: none !important;
}

/* Aktywna kolumna â€” delikatne podĹ›wietlenie ramki */
.editor-col.active-col > .editor-col-header{
  background: rgba(0,229,255,.09);
  border-bottom-color: var(--accent);
}

/* ===== UNIVERSAL SCREEN HINT BAR ===== */
.screen-hint-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 52px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  background: rgba(5,5,5,.92);
  border-top: 1px solid rgba(0,229,255,.18);
  z-index: 50;
  padding: 0 40px;
  box-sizing: border-box;
}
.screen-hint-bar .hint-group {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  font-size: 19px;
  color: rgba(255,255,255,.42);
  white-space: nowrap;
}
.screen-hint-bar .hint-group i {
  font-size: 15px;
  color: rgba(0,229,255,.65);
  margin-right: 5px;
}
.screen-hint-bar .hint-group b {
  color: rgba(255,255,255,.62);
  font-weight: 700;
  margin-right: 4px;
}
.screen-hint-bar .hint-sep {
  margin: 0 20px;
  color: rgba(255,255,255,.15);
  font-size: 20px;
}
/* home-screen: hint bar przez margin-top:auto bo layout to flex */
#home-screen .screen-hint-bar {
  position: absolute;
  bottom: 0;
}

/* ===== LEGAL MODAL + SETUP SCREEN (MOVED FROM INLINE <style>) ===== */

/* LEGAL MODAL */
#legal-modal-tv{
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(5,5,5,.98);
  z-index: 999999;
  display: none;            /* IMPORTANT */
  justify-content: center;
  align-items: center;
  color: #fff;
}

.legal-content-tv{
  width: 80%;
  max-width: 900px;
  background: #111;
  border: 2px solid #333;
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  box-shadow: 0 0 100px rgba(0,0,0,.9);
}

.legal-title{
  font-size: 40px;
  font-weight: 900;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  color:#fff;
}

.legal-subtitle{
  font-size: 22px;
  color: rgba(255,255,255,.5);
  margin: 0 0 35px 0;
}

.legal-text{
  font-size: 24px;
  color:#ccc;
  line-height: 1.5;
  margin: 0 0 40px 0;
  text-align: left;
}

.legal-list{
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  text-align: left;
}

.legal-list li{
  font-size: 22px;
  color:#ddd;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.icon-check{
  color: #00E5FF;
  font-size: 30px;
  min-width: 40px;
  margin-right: 15px; /* Đ˛ĐĽĐµŃŃ‚Đľ gap */
}

.legal-footnote{
  font-size: 14px;
  color: #777;
  margin: -20px 0 30px 0;
}

#btn-accept-tv{
  background: #00E5FF;
  color: #000;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 20px 60px;
  border-radius: 50px;
  border: 4px solid transparent;
  cursor: pointer;
  display: inline-block;
  transition: transform .14s, box-shadow .14s, border-color .14s, background .14s;
}

#btn-accept-tv:focus,
#btn-accept-tv.focused{
  background: #fff;
  border-color: #00E5FF;
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(0,229,255,.6);
  outline: none;
}

/* SETUP / EXPIRED MODAL */
#setup-screen,
#expired-screen{
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(5,5,5,.97);
  z-index: 999900;
  display: none;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.setup-modal-box{
  display: flex;
  flex-direction: row;
  background: #111;
  border: 2px solid #333;
  border-radius: 24px;
  box-shadow: 0 0 120px rgba(0,0,0,.9);
  max-width: 1100px;
  width: 90%;
  overflow: hidden;
}

.setup-modal-left{
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.setup-modal-right{
  width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,.03);
  border-left: 1px solid #222;
  padding: 40px;
}

.setup-title{
  font-size: 38px;
  font-weight: 900;
  color:#fff;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.setup-step{
  font-size: 22px;
  color:#aaa;
  margin: 0 0 30px 0;
  line-height: 1.6;
}

.setup-url{
  color: var(--accent);
  font-weight: 800;
  border-bottom: 2px solid var(--accent);
}

.setup-info-boxes{
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.mac-box-tv{
  background: rgba(255,255,255,.04);
  border: 2px solid #333;
  border-radius: 12px;
  padding: 16px 24px;
}

.mac-label{
  font-size: 14px;
  text-transform: uppercase;
  color:#555;
  letter-spacing: 2px;
  display:block;
  margin-bottom: 8px;
}

.mac-value{
  font-family: "Courier New", monospace;
  font-size: 28px;
  color: var(--accent);
  letter-spacing: 3px;
  font-weight: 900;
}

.pin-value{
  font-family: "Courier New", monospace;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: 8px;
  font-weight: 900;
}

#btn-refresh,
#btn-expired-refresh{
  background: #222;
  color:#fff;
  border: 2px solid #444;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: background .14s, border-color .14s, color .14s, box-shadow .14s;
}

#btn-refresh:focus, #btn-refresh.focused,
#btn-expired-refresh:focus, #btn-expired-refresh.focused{
  background: var(--accent);
  color:#000;
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 40px rgba(0,229,255,.4);
}

.qr-container{
  background: #fff;
  padding: 18px;
  border-radius: 16px;
  box-shadow: 0 0 50px rgba(0,229,255,.12);
  margin-bottom: 20px;
}

.qr-label{
  font-size: 18px;
  color:#666;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.expired-title{
  font-size: 38px;
  font-weight: 900;
  color: #ff4444;
  margin: 0 0 15px 0;
  text-transform: uppercase;
}

.expired-text{
  font-size: 22px;
  color: #aaa;
  line-height: 1.6;
  margin: 0 0 30px 0;
}

/* ============ BUFFER MENU ============ */
.buf-options{
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.buf-option{
  padding: 16px 36px;
  font-size: 22px;
  font-weight: 700;
  color: #999;
  background: rgba(255,255,255,0.06);
  border: 2px solid transparent;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .15s;
}
.buf-option.focused{
  color: #fff;
  border-color: var(--accent);
  background: rgba(0,229,255,0.12);
}
.buf-option.buf-active{
  color: var(--accent);
}
.buf-option.buf-active::after{
  content: ' âś“';
}

/* ============ PLAYLIST DELETE DIALOG ============ */
#pl-delete-dialog{
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 9500;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.pl-del-box{
  background: #1a1a1a;
  border: 2px solid #e74c3c;
  border-radius: 16px;
  padding: 40px 50px;
  text-align: center;
  max-width: 560px;
  box-shadow: 0 20px 70px rgba(0,0,0,.65);
}
.pl-del-title{
  font-size: 28px;
  font-weight: 900;
  color: #e74c3c;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.pl-del-msg{
  font-size: 20px;
  color: #ccc;
  margin-bottom: 30px;
  line-height: 1.5;
}
.pl-del-buttons{
  display: flex;
  justify-content: center;
  gap: 24px;
}
.pl-del-btn{
  padding: 14px 40px;
  font-size: 20px;
  font-weight: 700;
  color: #999;
  background: rgba(255,255,255,0.06);
  border: 2px solid transparent;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .15s;
}
.pl-del-btn.focused{
  color: #fff;
  border-color: #e74c3c;
  background: rgba(231,76,60,0.15);
}

/* ============================================================
   EPG GRID â€” Premium TV Guide
   ============================================================ */
#epg-grid{
  display: none;
  position: absolute;
  top: 0; left: 0;
  width: 1920px;
  height: 1080px;
  background: rgba(0,0,0,0.92);
  z-index: 4000;
  flex-direction: column;
  font-family: inherit;
}

/* â”€â”€ Header â”€â”€ */
.epg-header{
  display: flex;
  align-items: center;
  padding: 0 30px;
  height: 60px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.epg-header-title{
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-right: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.epg-header-date{
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-right: auto;
}
.epg-header-hints{
  display: flex;
  gap: 18px;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
}
.epg-hint{
  display: flex;
  align-items: center;
  gap: 5px;
}
.epg-hint-key{
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* â”€â”€ Body layout â”€â”€ */
.epg-body{
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* â”€â”€ Channel column â”€â”€ */
.epg-channels{
  width: 270px;
  flex-shrink: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.08);
}
.epg-ch-spacer{
  height: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.epg-ch-row{
  display: flex;
  align-items: center;
  height: 135px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background .12s;
  overflow: hidden;
}
.epg-ch-focused{
  background: rgba(0,229,255,0.08);
  border-left: 3px solid var(--accent);
}
.epg-ch-icon{
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 10px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.05);
}
.epg-ch-name{
  font-size: 19px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}
.epg-ch-focused .epg-ch-name{
  color: #fff;
}

/* â”€â”€ Timeline header (time axis) â”€â”€ */
.epg-timeline-wrapper{
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.epg-time-axis{
  height: 50px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.epg-time-axis-inner{
  position: relative;
  height: 100%;
  will-change: transform;
}
.epg-time-mark{
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  border-left: 1px solid rgba(255,255,255,0.12);
  box-sizing: border-box;
}
.epg-time-tick{
  position: absolute;
  top: 35px;
  width: 1px;
  height: 15px;
  background: rgba(255,255,255,0.06);
}

/* â”€â”€ Programs area â”€â”€ */
.epg-programs-area{
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.epg-programs-inner{
  position: relative;
  height: 100%;
  will-change: transform;
}

/* â”€â”€ Program rows â”€â”€ */
.epg-prog-row{
  position: absolute;
  left: 0;
  height: 135px;
  width: 100%;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.epg-prog-row-focused{
  background: rgba(0,229,255,0.03);
}

/* â”€â”€ Program blocks â”€â”€ */
.epg-prog-block{
  position: absolute;
  top: 4px;
  height: 127px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
  cursor: default;
  transition: background .12s, border-color .12s, box-shadow .12s;
  box-sizing: border-box;
}
.epg-prog-block.epg-prog-live{
  background: rgba(0,229,255,0.06);
  border-color: rgba(0,229,255,0.15);
}
.epg-prog-block.epg-prog-past{
  opacity: 0.45;
}
.epg-prog-block.epg-prog-focused{
  background: rgba(0,229,255,0.15);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,229,255,0.15), inset 0 0 20px rgba(0,229,255,0.05);
  z-index: 2;
}
.epg-prog-block.epg-prog-empty{
  background: rgba(255,255,255,0.02);
  border-style: dashed;
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.3);
  font-size: 14px;
  text-align: center;
}
.epg-prog-title{
  font-size: 28px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
  max-height: 73px;
  word-wrap: break-word;
  line-height: 1.3;
}
.epg-prog-focused .epg-prog-title{
  color: #fff;
}
.epg-prog-time{
  font-size: 24px;
  color: rgba(255,255,255,0.4);
  margin-top: 3px;
}
.epg-live-dot{
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  margin-bottom: 4px;
  box-shadow: 0 0 8px rgba(0,229,255,0.5);
  animation: epgPulse 2s infinite;
  vertical-align: middle;
}
@keyframes epgPulse{
  0%,100%{ opacity:1; }
  50%{ opacity:0.4; }
}

/* â”€â”€ NOW line â”€â”€ */
.epg-now-line{
  position: absolute;
  top: 0;
  width: 2px;
  background: var(--accent);
  z-index: 10;
  box-shadow: 0 0 10px rgba(0,229,255,0.4);
  pointer-events: none;
}

/* â”€â”€ Detail bar â”€â”€ */
.epg-detail{
  height: 175px;
  padding: 12px 30px 0;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.epg-detail-header{
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.epg-detail-title{
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.epg-detail-time{
  font-size: 20px;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.epg-detail-desc{
  font-size: 28px;
  color: rgba(255,255,255,0.6);
  overflow: hidden;
  line-height: 1.3;
  max-height: 74px;
}
.epg-detail-progress-bg{
  width: 98%;
  height: 5px;
  background: transparent;
  border-radius: 3px;
  overflow: hidden;
  position: absolute;
  bottom: 8px;
  left: 30px;
  transition: opacity .2s;
}
.epg-detail-progress-fill{
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0,229,255,0.3);
  transition: width .3s;
}

/* ===== VOD INFO SCREEN ===== */
#vod-info-screen{
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 1920px; height: 1080px;
  z-index: 800;
  background: #0a0a0a;
  overflow: hidden;
}
/* Full-bleed backdrop image */
.vi-backdrop{
  position: absolute;
  top: 0; left: 0;
  width: 1920px; height: 1080px;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s ease;
}
.vi-backdrop.loaded{ opacity: 0.45; }
/* Strong gradient: solid black left → transparent right so text is always readable */
.vi-gradient{
  position: absolute;
  top: 0; left: 0;
  width: 1920px; height: 1080px;
  background:
    linear-gradient(to right, #0a0a0a 0%, #0a0a0a 32%, rgba(10,10,10,0.92) 45%, rgba(10,10,10,0.55) 65%, rgba(10,10,10,0.25) 80%, transparent 100%),
    linear-gradient(to top, #0a0a0a 0%, transparent 35%);
  pointer-events: none;
}
/* Two-column layout */
.vi-layout{
  position: relative;
  z-index: 2;
  display: flex;
  width: 1920px; height: 1080px;
}
/* LEFT: info */
.vi-left{
  width: 1060px;
  padding: 60px 70px 50px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* RIGHT: poster */
.vi-right{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 80px;
}
/* Back hint */
.vi-back-hint{
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.4);
  font-size: 18px;
}
.vi-back-hint i{
  font-size: 20px;
  color: var(--accent);
}
/* Title */
.vi-title{
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
/* Tags row */
.vi-tags{
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  font-size: 22px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
/* Plot */
.vi-plot{
  font-size: 26px;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  margin-bottom: 20px;
  max-height: 200px;
  overflow: hidden;
}
/* Crew */
.vi-crew{
  margin-bottom: 14px;
  font-size: 22px;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
}
/* Season info */
.vi-season-info{
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}
/* Poster */
.vi-poster-wrap{
  width: 420px;
}
.vi-poster{
  width: 420px;
  height: 600px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 80px rgba(0,229,255,0.06);
  background: #111;
  border: 2px solid rgba(255,255,255,0.08);
}
/* Buttons — inline in left column flow */
.vi-buttons{
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}
.vi-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 44px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  border: 2px solid transparent;
  outline: none;
  color: #fff;
}
/* Play button — uses app accent */
.vi-btn-play{
  background: var(--accent);
  color: #000;
  min-width: 220px;
}
.vi-btn-play.focused{
  transform: scale(1.05);
  box-shadow: var(--shadowGlow);
  background: #33EEFF;
}
.vi-btn-play i{ color: #000; }
/* Episodes button */
.vi-btn-episodes{
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.vi-btn-episodes.focused{
  background: rgba(255,255,255,0.16);
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(0,229,255,0.15);
}
/* Fav button */
.vi-btn-fav{
  padding: 18px 30px;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  font-size: 22px;
}
.vi-btn-fav .fa-star{ margin-right: 2px; }
.vi-btn-fav.focused{
  background: rgba(255,255,255,0.16);
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(0,229,255,0.15);
}
.vi-btn-fav.is-fav{
  color: #ffb400;
  border-color: rgba(255,180,0,0.4);
}
.vi-btn-fav.is-fav .fa-star{ color: #ffb400; }
.vi-btn-fav.is-fav.focused{
  box-shadow: 0 0 24px rgba(255,180,0,0.25);
  border-color: #ffb400;
}
/* Clock — bottom right */
.vi-clock{
  position: absolute;
  bottom: 28px;
  right: 40px;
  font-size: 18px;
  color: rgba(255,255,255,0.3);
  z-index: 3;
}

/* ===== COMPACT MODE (seasons/episodes view) ===== */
/* GPU-ONLY transition: opacity crossfade wraps layout changes (no CPU layout thrash) */
.vi-layout{
  -webkit-transition: opacity .22s ease;
  transition: opacity .22s ease;
  will-change: opacity;
}
/* All vi-compact layout property changes are INSTANT — wrapped in JS opacity crossfade */

/* When screen has .vi-compact — collapse info to top strip */
#vod-info-screen.vi-compact .vi-layout{
  height: 340px;
}
#vod-info-screen.vi-compact .vi-gradient{
  background:
    linear-gradient(to right, #0a0a0a 0%, #0a0a0a 25%, rgba(10,10,10,0.92) 40%, rgba(10,10,10,0.5) 60%, rgba(10,10,10,0.2) 80%, transparent 100%),
    linear-gradient(to top, #0a0a0a 0%, transparent 50%);
}
#vod-info-screen.vi-compact .vi-left{
  width: 1100px;
  padding: 35px 40px 25px 80px;
  justify-content: flex-start;
}
#vod-info-screen.vi-compact .vi-back-hint{
  margin-bottom: 12px;
  font-size: 15px;
}
#vod-info-screen.vi-compact .vi-title{
  font-size: 36px;
  margin-bottom: 8px;
}
#vod-info-screen.vi-compact .vi-tags{
  font-size: 18px;
  margin-bottom: 10px;
  gap: 12px;
}
#vod-info-screen.vi-compact .vi-plot{
  display: none;
}
#vod-info-screen.vi-compact .vi-crew{
  display: none;
}
#vod-info-screen.vi-compact .vi-season-info{
  display: none;
}
#vod-info-screen.vi-compact .vi-buttons{
  display: none;
}
/* Poster shrinks and moves to right-top */
#vod-info-screen.vi-compact .vi-right{
  align-items: flex-start;
  padding-top: 30px;
  padding-right: 60px;
}
#vod-info-screen.vi-compact .vi-poster-wrap{
  width: 190px;
}
#vod-info-screen.vi-compact .vi-poster{
  width: 190px;
  height: 270px;
  border-radius: 12px;
}

/* ===== TILES AREA (seasons & episodes) ===== */
.vi-tiles-area{
  position: absolute;
  bottom: 0; left: 0;
  width: 1920px;
  z-index: 5;
  padding: 0 80px 50px 80px;
  transform: translateY(100%);
  opacity: 0;
  -webkit-transition: -webkit-transform .32s cubic-bezier(.4,0,.2,1), opacity .28s ease;
  transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .28s ease;
  will-change: transform, opacity;
}
#vod-info-screen.vi-compact .vi-tiles-area{
  transform: translateY(0);
  opacity: 1;
}
.vi-tiles-header{
  font-size: 28px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.vi-tiles-row{
  display: flex;
  gap: 20px;
  overflow: visible;
  padding-bottom: 10px;
  transition: transform .2s ease;
}
/* Season tile */
.vi-tile{
  flex-shrink: 0;
  width: 260px;
  height: 400px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--card2);
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  opacity: 0.75;
}
.vi-tile.focused{
  border-color: var(--accent);
  transform: scale(1.06);
  box-shadow: var(--shadowGlow);
  opacity: 1;
  z-index: 10;
}
.vi-tile-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.vi-tile-label{
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 50px 16px 16px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
/* Episode tile (wider, shorter) */
.vi-tile-ep{
  flex-shrink: 0;
  width: 320px;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--card2);
  border: 3px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
  opacity: 0.75;
}
.vi-tile-ep.focused{
  border-color: var(--accent);
  transform: scale(1.06);
  box-shadow: var(--shadowGlow);
  opacity: 1;
  z-index: 10;
}
.vi-tile-ep-img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,0.04);
}
.vi-tile-ep-info{
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vi-tile-ep-num{
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.vi-tile-ep-name{
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== SCREEN TRANSITIONS (Netflix-style fade) ===== */
@-webkit-keyframes screenFadeIn {
  from { opacity: 0; -webkit-transform: scale(1.01); }
  to   { opacity: 1; -webkit-transform: scale(1); }
}
@keyframes screenFadeIn {
  from { opacity: 0; transform: scale(1.01); }
  to   { opacity: 1; transform: scale(1); }
}
.screen-fade-in {
  -webkit-animation: screenFadeIn .28s ease-out forwards;
  animation: screenFadeIn .28s ease-out forwards;
}

/* Splash smooth fade-out */
#splash {
  -webkit-transition: opacity .45s ease;
  transition: opacity .45s ease;
}
#splash.fade-out {
  opacity: 0 !important;
  pointer-events: none;
}

/* ===== AMBIENT LOGO GLOW (Home screen) ===== */
@-webkit-keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(0,0,0,0.85)); }
  50%      { filter: drop-shadow(0 0 30px rgba(0,229,255,0.15)) drop-shadow(0 0 18px rgba(0,0,0,0.85)); }
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 18px rgba(0,0,0,0.85)); }
  50%      { filter: drop-shadow(0 0 30px rgba(0,229,255,0.15)) drop-shadow(0 0 18px rgba(0,0,0,0.85)); }
}
#home-logo {
  -webkit-animation: logoGlow 4s ease-in-out infinite;
  animation: logoGlow 4s ease-in-out infinite;
}

/* ===== FOCUS DEPTH — consistent lift across app ===== */
/* Active category indicator in columns view */
.col-categories .list-item.focused {
  border-left: 4px solid var(--accent) !important;
}

/* Toast notification slide-up */
@-webkit-keyframes toastSlideUp {
  from { -webkit-transform: translateY(30px); opacity: 0; }
  to   { -webkit-transform: translateY(0); opacity: 1; }
}
@keyframes toastSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}


