/* ============================================================
   PowerSports GO — Pluto-style EPG  (Round 4)
   Frozen-column layout — zero position:sticky in guide code.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Now-rail palette (from snippet) */
  --night:       #0A0A0C;
  --night-2:     #16161A;
  --sand:        #EFE6D3;
  --sand-dim:    #A7A49D;
  --gold:        #E2A12D;
  --lagoon-soft: #06A3B3;
  --live:        #E23B2B;

  --bg-page:        #000000;
  --bg-cell:        #1B1B1B;
  --bg-cell-hover:  #2B2B2B;
  --bg-skeleton:    #242424;
  --text-primary:   #FFFFFF;
  --text-secondary: #A5A5A5;
  --text-muted:     #6E6E6E;
  --line:           #3D3D3D;
  --border-subtle:  #2E2E2E;
  --accent:         #FFE045;
  --radius-cell:    8px;
  --radius-pill:    20px;

  /* Frozen-column constants — must be identical in both panes */
  --pinned-w:   419px;   /* 32 num + 2 gap + 186 text + 199 image (16:9) */
  --row-h:      112px;
  --row-gap:    8px;
  --cell-gap:   0px;   /* 0 = panes flush; border lines connect across all 3 pieces */
}

/* ── Page shell ─────────────────────────────────────────── */
body {
  /* Radial purple/red accents start from page-top so the header shares the
     same cinematic look as the player section — no dark break at the top. */
  background:
    radial-gradient(ellipse 80% 40% at 50%  0%,  rgba(90,25,130,0.42),  transparent),
    radial-gradient(ellipse 80% 40% at 50%  100%, rgba(190,20,55,0.32), transparent),
    radial-gradient(ellipse 60% 25% at 50%  48%, rgba(70,15,100,0.18),  transparent),
    linear-gradient(180deg, #0d0820 0%, #080618 55%, #000000 100%);
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-primary);
}

/* ── Voyage Banner V3 "The Ninth Island" (Live TV page) ──────────── */
.voyage-banner-ni {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 84px;
  overflow: hidden;
  background: linear-gradient(100deg,
    #0A2A33 0%, #145A62 22%, #E2A12D 38%,
    #2a1a3a 62%, #120a20 82%, #04060F 100%
  );
}
.voyage-banner-ni svg { width:100%; height:100%; display:block; }

/* flight-path lights — HNL→LAS and LAS→HNL simultaneously */
.ni-flyer  { offset-path:path('M120,30 Q720,-14 1330,26'); animation:niFlyTo 12s linear infinite; }
.ni-flyer2 { offset-path:path('M1330,26 Q720,-14 120,30'); animation:niFlyTo 14s linear infinite; animation-delay:-6s; }
@keyframes niFlyTo {
  0%  { offset-distance:0%;   opacity:0; }
  6%  { opacity:1; }
  94% { opacity:1; }
  100%{ offset-distance:100%; opacity:0; }
}

/* stars over desert sky */
.ni-star    { animation:niTwinkle 3.2s ease-in-out infinite; }
.ni-star.d1 { animation-delay:1s; }
.ni-star.d2 { animation-delay:2.1s; }
@keyframes niTwinkle { 0%,100%{opacity:.95} 50%{opacity:.3} }

/* neon flicker, Vegas side */
.ni-neon    { animation:niNeon 2.4s ease-in-out infinite; }
.ni-neon.n2 { animation-delay:.6s; }
.ni-neon.n3 { animation-delay:1.2s; }
.ni-neon.n4 { animation-delay:1.8s; }
@keyframes niNeon { 0%,100%{opacity:1} 45%{opacity:.55} 55%{opacity:.9} 70%{opacity:.5} }

/* wa'a sailing */
.ni-canoe { animation:niSail 26s ease-in-out infinite alternate; }
@keyframes niSail { from{transform:translateX(30px)} to{transform:translateX(360px)} }
.ni-bob { animation:niBob 3.4s ease-in-out infinite; transform-box:fill-box; transform-origin:center; }
@keyframes niBob { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-2px) rotate(-.8deg)} }

/* ocean waves */
.ni-wave  { animation:niWave 9s ease-in-out infinite alternate; }
.ni-wave2 { animation:niWave 12s ease-in-out infinite alternate-reverse; }
@keyframes niWave { from{transform:translateX(0)} to{transform:translateX(-30px)} }

/* palm sway */
.ni-palm    { animation:niPalm 5s ease-in-out infinite alternate; transform-box:fill-box; transform-origin:bottom center; }
.ni-palm.p2 { animation-delay:-2.4s; }
@keyframes niPalm { from{transform:rotate(-2deg)} to{transform:rotate(2.5deg)} }

@media (prefers-reduced-motion:reduce) {
  .voyage-banner-ni * { animation:none !important; }
  .ni-flyer,.ni-flyer2 { display:none; }
}
@media (max-width:760px) { .voyage-banner-ni { height:60px; } }

/* Header must be transparent so the body gradient shows through */
/* ── Header: mirrors the HawaiiGo.tv Home page nav exactly ── */
#epg-header {
  position: fixed !important;
  top: 84px; left: 0; right: 0;
  z-index: 50;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 10px 5vw !important;
  background: rgba(7, 36, 46, 0.97) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243,236,221,.08);
  box-sizing: border-box;
  gap: 0 !important;
}

.epg-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.epg-logo-img {
  height: 85px;
  width: auto;
  display: block;
}

/* ── Page section label — "Live TV" sits right of the logo ── */
.epg-page-label {
  font-family: 'Archivo', 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-left: 1px solid rgba(255,224,69,.3);
  padding-left: 14px;
  margin-left: 16px;
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
}

.epg-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: .92rem;
  font-weight: 500;
  font-family: 'Archivo', 'Inter', system-ui, sans-serif;
  list-style: none;
  margin: 0 0 0 auto;   /* push nav to the right */
  padding: 0;
  flex-wrap: nowrap;
}

.epg-nav-links a:not(.epg-join-btn) {
  color: rgba(255,255,255,.85) !important;
  text-decoration: none !important;
  transition: opacity .2s;
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: .85;
}

.epg-nav-links a:not(.epg-join-btn):hover {
  color: #fff !important;
  opacity: 1;
}

/* Active nav link — full white */
.epg-nav-links a.epg-nav-active:not(.epg-join-btn) {
  color: #fff !important;
  opacity: 1;
  font-weight: 600;
}

/* ── Join Free pill — mirrors the Home page "Watch Live" btn exactly ── */
.epg-join-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: max-content !important;
  flex: 0 0 auto !important;
  align-self: center;
  background: linear-gradient(135deg, #E2A12D, #B8871A) !important;
  color: #06131A !important;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700 !important;
  font-size: .92rem;
  letter-spacing: .02em;
  text-decoration: none !important;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 4px 18px rgba(226,161,45,.3);
  white-space: nowrap;
  opacity: 1 !important;
  position: relative;
  overflow: hidden;
}

/* Sheen sweep — identical to Home page */
.epg-join-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: epg-sheen 4.5s ease-in-out infinite;
}
@keyframes epg-sheen {
  0%, 60% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

.epg-join-btn:hover,
.epg-join-btn--active {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(226,161,45,.42) !important;
  color: #06131A !important;
}

/* Legacy — kept for any stale markup */
.epg-watch-btn { display: none !important; }

/* Live-channel EPG cell dot indicator */
.epg-live-dot {
  color: #ff4444;
  margin-right: 4px;
}

/* LIVE NOW cell in EPG rail */
.epg-live-now-cell {
  cursor: pointer;
}
.epg-live-now-cell .epg-up-title {
  font-weight: 700;
  letter-spacing: .3px;
}
.epg-live-now-cell .epg-up-time {
  opacity: .8;
}
.epg-live-now-cell .epg-progress-fill {
  background: #ff4444;
  animation: epg-live-pulse 2s ease-in-out infinite;
}
@keyframes epg-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

/* ── Mobile hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(239,230,211,.88);
  border-radius: 2px;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }

  .epg-nav-links {
    /* Hidden drawer */
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4,16,31,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 90px 28px 40px;
    z-index: 200;
    overflow-y: auto;
    margin: 0;
  }

  .epg-nav-links.is-open { display: flex; }

  .epg-nav-links a:not(.epg-join-btn) {
    padding: 17px 0;
    border-bottom: 1px solid rgba(239,230,211,.09);
    font-size: 1.1rem !important;
    display: block;
  }

  .epg-nav-links a:not(.epg-join-btn):last-of-type {
    border-bottom: none;
  }

  .epg-join-btn {
    display: block !important;
    text-align: center;
    margin-top: 28px;
    padding: 10px 20px !important;
    font-size: .88rem !important;
    border-radius: 999px !important;
  }
}

/* Push page content below banner (84px) + fixed header (~105px) */
#body_div {
  padding-top: 189px;
}
@media (max-width:760px) {
  #body_div { padding-top: 165px; }
}

/* Hide legacy elements no longer in the header HTML */
#logo        { display: none !important; }
.nav         { display: none !important; }
.epg-nav-item { display: none !important; }

#epg-page {
  min-height: 100vh;
  background: transparent;
  padding: 0 24px 40px;
  box-sizing: border-box;
}

/* ── Player hero section ─────────────────────────────────── */
#epg-player-section {
  position: relative;
  display: flex;
  justify-content: center;
  /* Break out of #epg-page's 24px side padding → full-width bg */
  margin-left: -24px;
  margin-right: -24px;
  margin-top: -18px;
  margin-bottom: -16px;
  /* Side padding matches #epg-page so the player-stage fills the full content area */
  padding: 32px 24px 36px;
  /* clip only horizontal overflow (decorative gradients/patterns);
     keep overflow-y visible so the now-rail grid column is never cut */
  overflow-x: clip;
  overflow-y: visible;

  /* Light teal ombré from each side fading toward the player in the centre */
  background:
    radial-gradient(ellipse 55% 100% at 0%   50%, rgba(32,178,170,0.38), transparent),
    radial-gradient(ellipse 55% 100% at 100% 50%, rgba(32,178,170,0.38), transparent),
    radial-gradient(ellipse 60% 50%  at 50%  0%,  rgba(0,200,180,0.12),  transparent),
    transparent;
}

/* Dotted texture overlay */
#epg-player-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* Diagonal geometric line overlay */
#epg-player-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -48deg,
    transparent,
    transparent 72px,
    rgba(255,255,255,0.028) 72px,
    rgba(255,255,255,0.028) 73px
  );
  pointer-events: none;
  z-index: 0;
}

/* Soft teal bloom centred behind the player */
#epg-player-section .player-bloom {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 56%,
    rgba(32,178,170,0.18) 0%,
    rgba(0,200,180,0.08) 40%,
    transparent 68%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.epg-player-box {
  /* Cap at 26% of viewport height — smaller footprint, more room for the EPG guide. */
  width: min(100%, calc(26vh * 16 / 9));
  max-width: 720px;
  aspect-ratio: 16 / 9;
  min-width: 0;
  border-radius: 16px;
  /* overflow: visible so the VJS control bar at bottom: 0 is never clipped */
  overflow: visible;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    0 12px 48px rgba(0,0,0,0.80),
    0 0  80px rgba(128,35,140,0.22),
    0 0  52px rgba(210,25,60,0.15);
  background: #111;
}

.epg-player-box #player,
.epg-player-box iframe,
.epg-player-box video {
  width: 100% !important;
  height: 100% !important;
  border-radius: 16px;
}

.epg-player-box #player_controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  border-radius: 0 0 16px 16px;
}

/* ── Now Playing Rail — player-stage grid ─────────────────
   CSS from snippet, used verbatim. Only integration glue
   (.player-stage width + epg-player-box override) added below.
   ---------------------------------------------------------- */
.player-stage {
  display: grid;
  grid-template-columns: minmax(0,1fr) 280px;
  gap: 16px;
  max-width: 1100px; margin: 0 auto;
  align-items: stretch;
  width: 100%;   /* fill the flex-centred #epg-player-section */
  position: relative; z-index: 1;
}
/* Two-column layout all the way down to 760 px; below that the rail stacks */
@media (max-width:760px) { .player-stage { grid-template-columns: 1fr; } }

/* Inside the grid the column width controls sizing — drop the min() cap */
.player-stage > .epg-player-box {
  width: 100%;
  max-width: none;
}

.now-rail {
  background: rgba(20, 40, 62, 0.96);
  border: 1px solid rgba(32,178,170,.28);
  border-left: 4px solid rgba(32,178,170,.75);
  border-radius: 16px;
  padding: 24px 24px 20px;
  display: flex; flex-direction: column;
  font-family: 'Archivo', sans-serif; color: var(--sand);
  min-width: 0;
  min-height: 260px;       /* prevents height-collapse from aspect-ratio vs stretch */
  box-shadow:
    0 4px 28px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  z-index: 2;              /* render above player-box within player-stage context */
}
.nr-label { font-size:.68rem;font-weight:700;letter-spacing:.24em;text-transform:uppercase;color:var(--lagoon-soft);margin-bottom:10px }
.nr-live {
  display:inline-flex;align-items:center;gap:7px;width:fit-content;
  background:var(--live);color:#fff;border-radius:4px;
  padding:3px 10px;font-size:.66rem;font-weight:700;letter-spacing:.16em;
  margin-bottom:14px;
}
.nr-live::before { content:"";width:7px;height:7px;border-radius:50%;background:#fff;animation:nrPulse 1.6s ease-in-out infinite }
@keyframes nrPulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.nr-channel { display:flex;align-items:center;gap:10px;margin-bottom:14px;font-size:.85rem;color:var(--sand-dim);font-weight:600 }
.nr-channel img { height:26px;width:auto;border-radius:4px }
.nr-title { font-family:'Fraunces',serif;font-size:1.45rem;font-weight:700;line-height:1.18;margin-bottom:8px }
.nr-cat { font-size:.72rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--lagoon-soft);margin-bottom:10px }
.nr-desc {
  font-size:.92rem;color:var(--sand-dim);line-height:1.55;margin-bottom:16px;
  display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;
}
.nr-timebar { margin-bottom:6px;height:4px;border-radius:2px;background:rgba(239,230,211,.15);overflow:hidden }
.nr-timebar i { display:block;height:100%;background:linear-gradient(90deg,var(--gold),#F5D278);width:var(--pct,0%);transition:width 1s linear }
.nr-times { display:flex;justify-content:space-between;font-size:.75rem;color:var(--sand-dim);margin-bottom:20px }
.nr-times .left { color:var(--gold);font-weight:700 }
.nr-next { border-top:1px solid rgba(239,230,211,.08);padding-top:16px;margin-top:auto }
.nr-next-item { display:flex;gap:12px;align-items:baseline;margin-bottom:10px;font-size:.9rem }
.nr-next-item time { color:var(--lagoon-soft);font-weight:700;font-size:.8rem;flex:none;width:64px }
.nr-next-item span { color:var(--sand);font-weight:500 }
.nr-next-item:last-child span { color:var(--sand-dim) }

/* When rail stacks under player — give it a sensible min-height */
@media (max-width:760px) {
  .now-rail { min-height: 220px; }
}
/* On very narrow screens hide rail entirely so player stays full-width */
@media (max-width:600px) {
  .now-rail { display: none; }
}

/* ── Category tab bar ───────────────────────────────────── */
#epg-tabs-bar {
  display: flex;
  align-items: center;
  height: 48px;
  margin-bottom: 16px;
  gap: 0;
  position: relative;
}

#epg-tabs-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

#epg-tabs-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px;
  white-space: nowrap;
}
#epg-tabs-inner::-webkit-scrollbar { display: none; }

.epg-tab {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  cursor: pointer;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  user-select: none;
  transition: color .15s;
  flex-shrink: 0;
}
.epg-tab:hover { color: #fff; }
.epg-tab.active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.epg-tab-chevron {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: color .15s;
}
.epg-tab-chevron:hover { color: #fff; }

#epg-jump-btn {
  flex-shrink: 0;
  height: 36px;
  padding: 0 16px;
  margin-left: 16px;
  border-radius: var(--radius-pill);
  background: #17181C;
  border: 1px solid #2A2C33;
  color: var(--text-secondary);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: color .15s;
  white-space: nowrap;
}
#epg-jump-btn:hover { color: #fff; }

/* ── Guide outer — no overflow here; page handles vertical ─ */
#epg-guide-outer {
  overflow: visible;
}

/* ── Guide inner — frozen-column: pinned-pane ║ epg-pane ── */
#channel_list {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  outline: none;
}

/* ── Pinned pane — fixed 356px, no horizontal scroll ─────── */
.pinned-pane {
  flex: 0 0 var(--pinned-w);
  width: var(--pinned-w);
  display: flex;
  flex-direction: column;
  gap: var(--row-gap);
}

/* ── Now Playing poster pane ────────────────────────────── */
.epg-now-poster-pane {
  flex: 0 0 199px;
  width: 199px;
  display: flex;
  flex-direction: column;
  gap: var(--row-gap);
  margin-left: var(--cell-gap);
}

.epg-now-poster-row {
  height: var(--row-h);
  flex-shrink: 0;
  border-radius: 0;   /* flat both sides: pinned-pane on left, epg-pane on right, no gap */
  overflow: hidden;
  position: relative;
  isolation: isolate; /* creates stacking context so ::after z-index:2 wins over image children */
  cursor: pointer;
  background: #111;
  transition: opacity .15s;
}
.epg-now-poster-row:hover { opacity: 0.85; }
.epg-now-poster-row.hide_ch_cat { display: none !important; }

.epg-now-poster-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}

.epg-now-poster-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;  /* left-align — spare space on right, not both sides */
  display: block;
  background: #000;
}

/* Logo fallback */
.epg-now-poster-logo {
  object-fit: contain;
  object-position: left center;
  background: #111;
}

/* No-schedule dimmed poster */
.epg-now-poster-dim {
  object-fit: contain;
  object-position: left center;
  background: #111;
  opacity: 0.35;
}

/* Entirely empty cell (no logo, no schedule) */
.epg-now-poster-noimg {
  width: 100%;
  height: 100%;
  background: #111;
}

/* Active state — top + bottom stripes bridge Piece A ↔ Piece B.
   Cannot use box-shadow directly: the full-bleed image child paints over it.
   Use ::after (z-index:2) so the lines sit above the image, same technique
   as epg-pinned-content.epg-active-content::after on the left card. */
.epg-now-poster-row.epg-active-poster {
  border-radius: 0;
}
.epg-now-poster-row.epg-active-poster::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 0;
  box-shadow:
    inset 0  2px 0 0 var(--accent),
    inset 0 -2px 0 0 var(--accent);
  pointer-events: none;
  z-index: 10;
}

/* LIVE badge — top-left corner */
.epg-now-poster-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(210, 28, 28, 0.90);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
  pointer-events: none;
  line-height: 1.5;
  text-transform: uppercase;
}

/* ── EPG pane — takes remaining width, horizontal scroll ─── */
.epg-pane {
  flex: 1;
  overflow-x: auto;
  overflow-y: visible;
  margin-left: var(--cell-gap);
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: var(--row-gap);
}
.epg-pane::-webkit-scrollbar { display: none; }

/* ── Pinned row — height FIXED, overflow hidden ──────────── */
.pinned-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: var(--row-h);
  overflow: hidden;
  flex-shrink: 0;
}

.pinned-row.hide_ch_cat { display: none !important; }

/* Column 1: channel number (32px) */
.epg-ch-num-col {
  flex: 0 0 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-size: 12px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Columns 2+3: text block + image (385px total, joined, rounded as one unit).
   Right side is flat: poster pane sits flush with no gap. */
.epg-pinned-content {
  display: flex;
  flex-direction: row;
  width: 385px;        /* 186 text + 199 image (16:9) */
  height: var(--row-h);
  border-radius: var(--radius-cell) 0 0 var(--radius-cell);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
  transition: border-color .15s;
  position: relative;  /* needed so ::after is positioned relative to this block */
  isolation: isolate;  /* creates stacking context so ::after always paints above image children */
}

/* Active — Piece A: ::after overlay sits above child divs so it can't be painted over.
   Extended 4px past the right edge; parent overflow:hidden clips the right shadow line
   so the seam stays open. */
.epg-pinned-content.epg-active-content {
  border-radius: 8px 0 0 8px;
}
.epg-pinned-content.epg-active-content::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  right: -4px;          /* overshoot → parent clips the right shadow line away */
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--accent);
  pointer-events: none;
  z-index: 10;          /* raised above any child stacking context */
}

/* Column 2: text block (186px, left rounded corners) */
.epg-pinned-text {
  flex: 0 0 186px;
  width: 186px;
  height: 100%;
  background: var(--bg-cell);
  border-radius: var(--radius-cell) 0 0 var(--radius-cell);
  padding: 12px 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Eyebrow: category name */
.epg-now-eyebrow {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
  line-height: 1;
}

/* Program title: max 2 lines */
.epg-now-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  margin-bottom: 5px;
}

/* Time left */
.epg-now-timeleft {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 7px;
  white-space: nowrap;
}

/* Progress bar */
.epg-progress {
  width: 100%;
  height: 2px;
  background: #3D3D3D;
  border-radius: 1px;
  overflow: hidden;
}
.epg-progress-fill {
  height: 100%;
  background: #fff;
  border-radius: 1px;
  transition: width .5s linear;
}

/* Column 3: image (199px, right side is flat — poster pane sits flush against it) */
.epg-pinned-img {
  flex: 0 0 199px;
  width: 199px;
  height: var(--row-h);
  border-radius: 0;   /* right side flat: poster pane is flush with no gap */
  overflow: hidden;
  background: #111;
  position: relative;
  flex-shrink: 0;
}

/* Poster — contain keeps true aspect ratio, left-anchored */
.epg-pinned-img .epg-pi-poster {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
  background: #000;
}

/* Logo fallback — same treatment */
.epg-pinned-img .epg-pi-logo {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  background: #111;
  display: block;
}

/* Equalizer: 3 yellow bars, bottom-right of text column */
.epg-equalizer {
  position: absolute;
  bottom: 8px;
  right: 10px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
  pointer-events: none;
}
.epg-equalizer span {
  display: block;
  width: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: epg-eq 0.8s ease-in-out infinite alternate;
}
.epg-equalizer span:nth-child(1) { height: 16px; animation-delay: 0s; }
.epg-equalizer span:nth-child(2) { height: 28px; animation-delay: .2s; }
.epg-equalizer span:nth-child(3) { height: 12px; animation-delay: .4s; }

@keyframes epg-eq {
  from { opacity: .6; transform: scaleY(.6); }
  to   { opacity: 1;  transform: scaleY(1); }
}

/* ── EPG row (upcoming cells in epg-pane) ────────────────── */
.epg-row {
  display: flex;
  flex-direction: row;
  gap: var(--cell-gap);
  height: var(--row-h);     /* fixed — must match pinned-row exactly */
  overflow: hidden;
  flex-shrink: 0;
}

.epg-row.hide_ch_cat { display: none !important; }

/* Upcoming cell — 320px × 112px */
.epg-up-cell.all_prog {
  position: relative !important;
  height: var(--row-h) !important;
  outline: none !important;
  padding-top: 0 !important;
  white-space: normal !important;
  left: auto !important;
  width: 320px !important;
}

.epg-up-cell {
  flex: 0 0 320px;
  width: 320px;
  height: var(--row-h);
  background: var(--bg-cell);
  border-radius: var(--radius-cell);
  padding: 14px 16px;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
  transition: background .15s;
  /* Override .all_prog horizontal flex from style.css */
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center;
}
.epg-up-cell:hover { background: var(--bg-cell-hover); }

.epg-up-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 4px;
  /* Room for the ⓘ button — title never flows under it */
  padding-right: 32px;
  /* Must fill the full cell width on its own line */
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}

.epg-up-time {
  font-size: 13px;
  color: #A5A5A5;
  margin: 0 0 8px;
  /* Time string must never wrap ("12:01 AM" stays on one line) */
  white-space: nowrap;
  flex-shrink: 0;
}

.epg-up-rule {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.epg-up-cell.epg-prog-active { background: #222329 !important; }

/* All now-playing cells have left-flat / right-rounded corners (poster pane sits flush left) */
.epg-up-cell--now {
  border-radius: 0 var(--radius-cell) var(--radius-cell) 0;
}

/* Active — Piece B: right + top + bottom borders only.
   No left border — it would appear as an internal dividing line inside the
   rectangle; the top/bottom lines from the poster bridge already close the gap. */
.epg-now-cell--active {
  box-shadow:
    inset -2px  0   0 0 var(--accent),   /* right  */
    inset  0    2px 0 0 var(--accent),   /* top    */
    inset  0   -2px 0 0 var(--accent);  /* bottom */
  border-radius: 0 8px 8px 0;
}

/* Progress bar inside the now-playing EPG cell (first cell only) */
.epg-up-progress {
  width: 100%;
  height: 2px;
  background: #3D3D3D;
  border-radius: 1px;
  overflow: hidden;
  margin-top: 2px;
}

/* ── Popover ─────────────────────────────────────────────── */
#epg-popover {
  position: fixed;
  width: 320px;
  background: #17181C;
  border: 1px solid #2A2C33;
  border-radius: 12px;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,.8);
  display: none;
}
#epg-popover.visible { display: block; }
.epg-popover-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.epg-popover-time  { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.epg-popover-desc  { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.epg-popover-watch {
  width: 100%; height: 36px;
  background: var(--accent); color: #000;
  border: none; border-radius: 6px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.epg-popover-watch:hover { opacity: .9; }
.epg-popover-close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: none;
  color: var(--text-muted); font-size: 18px;
  cursor: pointer; line-height: 1;
}

/* ── Search overlay ─────────────────────────────────────── */
#epg-search-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 500;
  display: none;
  align-items: center; justify-content: center; flex-direction: column;
}
#epg-search-overlay.visible { display: flex; }

#epg-search-input {
  width: 480px; max-width: 90vw; height: 48px;
  border-radius: var(--radius-pill);
  background: #17181C; border: 1px solid #2A2C33;
  color: #fff; font-size: 16px; padding: 0 20px;
  font-family: inherit; outline: none;
}

#epg-search-results {
  width: 480px; max-width: 90vw;
  max-height: 50vh; overflow-y: auto;
  background: #17181C; border: 1px solid #2A2C33;
  border-radius: 12px; margin-top: 8px;
}
.epg-search-result {
  padding: 12px 16px; cursor: pointer;
  font-size: 14px; border-bottom: 1px solid var(--border-subtle);
  transition: background .1s;
}
.epg-search-result:last-child { border-bottom: none; }
.epg-search-result:hover { background: var(--bg-cell-hover); }

/* ── YouTube chrome mask bars ────────────────────────────── */
/* Cover YouTube's title/channel (top) and More-videos/watermark (bottom)
   while they're visible. Fade to nothing after 6 s in PLAYING state.
   Bars live inside #disp1 so they scale with the player in both
   hero and mini-player modes.                                */

.yt-mask {
  position: absolute;
  left: 0; right: 0;
  background: #000;
  z-index: 4;           /* above YT iframe; below mini-player-overlay (5) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
  /* Click handler (onclick="return false") + pointer-events:auto when
     visible prevent any click-through to YouTube's chrome.  */
}

#yt-mask-top    { top: 0;    height: 13%; }
#yt-mask-bottom { bottom: 0; height: 15%; }

.yt-mask.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Ensure our own player controls always render above the mask bars */
#player_controls {
  position: relative;
  z-index: 20;
}

/* ── Mini-player ─────────────────────────────────────────── */

/* Hero mode: no change — player is in-flow as before */

/* Mini mode: reparented to <body> by mini-player.js — escapes every stacking
   context in the page.  position:fixed + z-index:900 is then guaranteed to
   render above all guide content (z-index < 900) and below modals (1000+). */
.epg-player-box.player--mini {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  top: auto !important;
  left: auto !important;
  width: 640px !important;
  height: 360px !important;
  min-width: 0 !important;
  max-width: none !important;
  aspect-ratio: unset !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  /* Solid background — guide rows must never show through */
  background: #111 !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.6) !important;
  /* 900: above all page content (guide, nav drawer) but below modals at 1000+ */
  z-index: 900 !important;
  animation: mini-player-in 0.2s ease both;
  /* Guarantee nothing inside creates a new containing-block for fixed children */
  transform: none;
  will-change: auto;
}

/* Hidden (after close button): still in DOM, invisible */
.epg-player-box.player--hidden {
  visibility: hidden;
  pointer-events: none;
}

@keyframes mini-player-in {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Overlay — covers the player in mini mode to capture clicks */
#mini-player-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}
.player--mini #mini-player-overlay { display: block; }

/* "Jump to Video" button — always visible in mini-player, top-centre */
#mini-player-jump-btn {
  display: none;               /* hidden outside mini mode */
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent, #E2A12D);
  color: #000;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 20px;
  border-radius: 20px;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: none;        /* overlay div handles the click */
  z-index: 7;
}
.player--mini #mini-player-jump-btn { display: flex; }

/* Controls: invisible by default, fade in on hover */
#mini-player-label,
#mini-player-close,
#mini-player-mute {
  opacity: 0;
  transition: opacity 0.15s;
}
.player--mini:hover #mini-player-label,
.player--mini:hover #mini-player-close,
.player--mini:hover #mini-player-mute { opacity: 1; }

/* Touch devices: always show controls */
@media (pointer: coarse) {
  .player--mini #mini-player-label,
  .player--mini #mini-player-close,
  .player--mini #mini-player-mute { opacity: 1; }
}

/* Channel name label — bottom-left (moved down so it doesn't clash with Jump btn) */
#mini-player-label {
  position: absolute;
  bottom: 8px; left: 8px;
  top: auto;
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 6;
}

/* Close button — top-right */
#mini-player-close {
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,.7);
  border: none; border-radius: 50%;
  color: #fff;
  font-size: 15px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 6;
}
#mini-player-close:hover { background: rgba(60,60,60,.9); }

/* Mute button — bottom-right, red like Pluto */
#mini-player-mute {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(180,20,20,.9);
  border: none; border-radius: 50%;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 6;
}
#mini-player-mute:hover { background: rgb(210,30,30); }

/* ── Responsive: tablet ──────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --pinned-w: 328px;   /* 32 + 2 + 152 + 142 image (16:9) */
  }
  .epg-pinned-text { flex: 0 0 152px; width: 152px; }
  .epg-pinned-img  { flex: 0 0 142px; width: 142px; }
  .epg-rail3, .epg-pane, .epg-now-poster-pane { display: none; }
  /* Outside the grid, the player can use 90vw; inside the grid the column controls it */
  .epg-player-box { width: 90vw; min-width: 0; }
}

/* ── Responsive: mobile (≤600 px) ────────────────────────── */
@media (max-width: 600px) {
  :root { --row-h: 80px; }

  /* ── Page shell ── */
  #epg-page {
    padding: 0 0 24px;   /* zero side padding — sections manage their own */
  }
  #epg-page.has-mini-player {
    /* No extra padding needed — player docks to top, not bottom */
    padding-bottom: 0;
  }

  /* ── "Live TV" label ── */
  .epg-live-label {
    padding: 16px 12px 10px;
  }

  /* ── Hero player section: edge-to-edge, no vertical padding ── */
  #epg-player-section {
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    margin-bottom: 0;
    border-radius: 0;
  }
  .epg-player-box {
    width: 100%;
    min-width: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
    /* bloom still from section gradient — no extra shadow needed */
  }
  .epg-player-box #disp1 iframe,
  .epg-player-box #live_channels_video .vjs-tech { border-radius: 0; }
  .epg-player-box #player_controls { border-radius: 0; }

  /* ── Category tab bar ── */
  #epg-tabs-bar {
    padding: 0 12px;
    margin-top: 12px;
    margin-bottom: 10px;
  }
  #epg-tabs-inner { gap: 20px; }
  .epg-tab { font-size: 14px; }
  #epg-jump-btn { margin-left: 8px; padding: 0 12px; font-size: 11px; }

  /* ── Channel guide: full-width single column ── */
  #channel_list { flex-direction: column; }

  .pinned-pane {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    gap: 4px;
  }

  /* Hide the ch-number column to reclaim width */
  .epg-ch-num-col { display: none; }

  /* Full-width row */
  .pinned-row {
    width: 100%;
    height: var(--row-h);
    padding: 0 12px;
    box-sizing: border-box;
  }

  /* Pinned content: spans full row */
  .epg-pinned-content {
    width: 100%;
    flex: 1 1 auto;
    border-radius: var(--radius-cell);
  }

  /* Text column: fill remaining space */
  .epg-pinned-text {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  /* Logo thumbnail: 16:9 landscape */
  .epg-pinned-img {
    flex: 0 0 142px;
    width: 142px;
  }
  .epg-pi-poster {
    width: 142px;
    height: var(--row-h);
    object-fit: cover;
  }
  .epg-pi-logo {
    width: 142px;
    height: var(--row-h);
    object-fit: contain;
  }

  /* ── Mini-player: full-width top strip (below voyage banner) ── */
  .epg-player-box.player--mini {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 84px !important;   /* sits flush under the 84px voyage banner */
    bottom: auto !important;
    /* 56.25 vw = 16:9 at full viewport width */
    width: 100% !important;
    height: 56.25vw !important;
    max-height: 240px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    aspect-ratio: unset !important;
    border-radius: 0 0 12px 12px !important;
    border: none !important;
    box-shadow: 0 4px 32px rgba(0,0,0,.7) !important;
  }

  /* Jump-to-Video button: keep top-centre positioning on mobile (inherits global styles) */
  #mini-player-jump-btn {
    top: 8px;
    font-size: 12px;
    padding: 6px 16px;
  }
}

/* ── Player inner sizing fixes ──────────────────────────── */
.epg-player-box .nofull,
.epg-player-box #disp1 {
  width: 100% !important; height: 100% !important;
  margin: 0 !important; position: relative;
  /* display intentionally NOT forced — JS toggles it for live vs VOD channels */
}

/* Live player wrapper — absolute fill so height resolves against the
   aspect-ratio box (height:100% doesn't work when parent height comes
   from aspect-ratio, not an explicit value). */
.epg-player-box #live_channels_video {
  position: absolute !important;
  inset: 0 !important;
}

/* Round the visible video corners WITHOUT using overflow:hidden on any wrapper
   (overflow:hidden would clip the control bar that sits at bottom:0).
   border-radius on the replaced elements handles the visual rounding. */
.epg-player-box #disp1 iframe,
.epg-player-box #live_channels_video .vjs-tech {
  border-radius: 16px;
  overflow: hidden; /* required on replaced elements for the radius to paint */
}

/* ── Video.js skin — HawaiiGo theme ──────────────────────
   Anchor the .video-js wrapper absolutely so it always fills
   #live_channels_video exactly — no height-inheritance issues. */
.video-js.vjs-hawaiigo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #04101F;
  font-family: 'Archivo', 'Montserrat', sans-serif;
}
/* Control bar — sits at the very bottom of the player */
.vjs-hawaiigo .vjs-control-bar {
  background: linear-gradient(to top, rgba(4,16,31,.95), transparent);
  height: 44px;
  padding: 0 8px;
  /* High z-index so nothing in the player stack can cover it */
  z-index: 20;
  pointer-events: auto !important;
}
/* Progress / seek bar */
.vjs-hawaiigo .vjs-play-progress,
.vjs-hawaiigo .vjs-volume-level {
  background: #C9A23C;
}
.vjs-hawaiigo .vjs-slider {
  background: rgba(255,255,255,.18);
}
/* Big play button */
.vjs-hawaiigo .vjs-big-play-button {
  background: rgba(201,162,60,.85);
  border: 2px solid #C9A23C;
  border-radius: 50%;
  width: 64px; height: 64px;
  line-height: 64px;
  margin-top: -32px; margin-left: -32px;
  transition: background .2s;
}
.vjs-hawaiigo .vjs-big-play-button:hover { background: #C9A23C; }
.vjs-hawaiigo .vjs-big-play-button .vjs-icon-placeholder::before { font-size: 28px; }
/* LIVE badge */
.vjs-hawaiigo .vjs-live-display { color: #C9A23C; font-weight: 700; letter-spacing: .06em; }
/* Loading spinner colour */
.vjs-hawaiigo .vjs-loading-spinner::before,
.vjs-hawaiigo .vjs-loading-spinner::after {
  border-top-color: #C9A23C;
}

/* ── Hide legacy elements ───────────────────────────────── */
#video_info, aside, #clock, .hide_timeline,
#seek, #fil_opt, #billboard_section,
/* ── Program info button ─────────────────────────────────── */
.epg-info-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.13);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 120ms, background 120ms;
  z-index: 3;
  padding: 0;
  flex-shrink: 0;
}
/* Always visible on the active now-playing cell */
.epg-up-cell--now .epg-info-btn { opacity: 1; }
/* Fade in on hover for upcoming cells and pinned text */
.epg-up-cell:hover .epg-info-btn,
.epg-pinned-text:hover .epg-info-btn { opacity: 1; }
.epg-info-btn:hover { background: rgba(255,255,255,0.28); }
/* padding-right on .epg-up-title is set in the title rule above (32px) */

/* ── Program info overlay ────────────────────────────────── */
#epg-info-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 150ms;
}
#epg-info-scrim.epg-info-open { opacity: 1; }

#epg-info-card {
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: 85vh;
  background: #1B1B1B;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.75);
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.97);
  transition: transform 150ms;
  scrollbar-width: none;
  position: relative;
}
#epg-info-scrim.epg-info-open #epg-info-card { transform: scale(1); }
#epg-info-card::-webkit-scrollbar { display: none; }

/* Hero fills the full 16:9 box — thumbnail (contain) or logo (contain) on black */
.epg-info-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}
.epg-info-hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
.epg-info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  z-index: 2;
  padding: 0;
  font-family: inherit;
}
.epg-info-close:hover { background: rgba(0,0,0,0.8); }

.epg-info-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.25);
}
.epg-info-progress-fill { height: 100%; background: #fff; }

.epg-info-body { padding: 20px 24px 0; }

/* Logo + title in the same row below the hero */
.epg-info-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.epg-info-ch-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: #111;
}
.epg-info-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: inherit;
}
.epg-info-meta {
  font-size: 13px;
  color: #A5A5A5;
  margin: 0 0 12px;
  line-height: 1.5;
}
.epg-info-desc {
  font-size: 14px;
  color: #C9C9C9;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  white-space: pre-line;
}
.epg-info-desc.epg-info-desc--expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.epg-info-actions { padding: 16px 24px 24px; }
.epg-info-watch-btn {
  width: 100%;
  height: 48px;
  background: #FFE045;
  color: #000;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}
.epg-info-watch-btn:hover { background: #ffd000; }

nav.clearfix, #inf_panel, #hima, #seek_time {
  display: none !important;
}

/* Keep player controls visible */
.epg-player-box #player_controls { display: block !important; }
