/* ═══════════════════════════════════════════════════════════════════════════
   LIGHTCAST STREAM v3 — Netflix-Style Frontend
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --lcs-accent:      #e50914;
  --lcs-accent-h:    #f40612;
  --lcs-bg:          #141414;
  --lcs-surface:     #1f1f1f;
  --lcs-surface2:    #2a2a2a;
  --lcs-surface3:    #333;
  --lcs-border:      rgba(255,255,255,.08);
  --lcs-text:        #e5e5e5;
  --lcs-text-muted:  #a3a3a3;
  --lcs-text-dim:    #6b6b6b;
  --lcs-white:       #ffffff;
  --lcs-black:       #000000;
  --lcs-radius:      6px;
  --lcs-radius-lg:   10px;
  --lcs-font-display:'Bebas Neue', 'Impact', sans-serif;
  --lcs-font-body:   'DM Sans', system-ui, sans-serif;
  --lcs-shadow:      0 8px 32px rgba(0,0,0,.65);
  --lcs-shadow-sm:   0 4px 16px rgba(0,0,0,.5);
  --lcs-ease:        cubic-bezier(.25,.46,.45,.94);
  --lcs-t:           .2s;
  --lcs-hero-h:      clamp(360px, 52vw, 640px);
  --lcs-bar-h:       56px;
}

/* ── RESET ────────────────────────────────────────────────────────────────── */
.lcs-wrapper *, .lcs-wrapper *::before, .lcs-wrapper *::after { box-sizing:border-box; margin:0; padding:0; }
.lcs-wrapper {
  background: var(--lcs-bg);
  color: #e8e8e8;
  font-family: var(--lcs-font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.lcs-wrapper a { color:inherit; text-decoration:none; }
.lcs-wrapper img { display:block; width:100%; height:100%; object-fit:cover; }
.lcs-wrapper button { cursor:pointer; border:none; background:none; font-family:inherit; color:inherit; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.lcs-hero {
  position: relative;
  height: var(--lcs-hero-h);
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.lcs-hero__bg {
  position: absolute; inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center 20%;
  filter: brightness(.7);
  transform: scale(1.03);
  transition: transform 8s ease;
}
.lcs-hero:hover .lcs-hero__bg { transform: scale(1.07); }
.lcs-hero__gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,20,20,.95) 36%, rgba(20,20,20,.4) 65%, transparent 100%),
    linear-gradient(to top, var(--lcs-bg) 0%, transparent 38%);
}
.lcs-hero__content {
  position: relative; z-index: 2;
  padding: clamp(20px,4vw,56px) clamp(16px,5vw,72px) 48px;
  max-width: 560px;
  text-align: left;
}
.lcs-hero__meta { display:flex; gap:8px; margin-bottom:14px; flex-wrap:wrap; }
.lcs-hero__title {
  font-family: var(--lcs-font-display);
  font-size: clamp(30px, 5.5vw, 68px);
  letter-spacing: 2px;
  line-height: 1;
  color: #fff !important;
  text-shadow: 0 2px 24px rgba(0,0,0,.55);
  margin-bottom: 14px;
}
.lcs-hero__desc {
  font-size: clamp(13px, 1.3vw, 15px);
  color: #fff;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 420px;
}
.lcs-hero__stats { display:flex; gap:16px; color:var(--lcs-text); font-size:13px; margin-bottom:22px; }
.lcs-hero__actions { display:flex; gap:10px; flex-wrap:wrap; }

/* ── BADGES ───────────────────────────────────────────────────────────────── */
.lcs-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
}
.lcs-badge--live  { background: var(--lcs-accent); color:#fff; }
.lcs-badge--lang  { background: rgba(255,255,255,.12); color:var(--lcs-text); border:1px solid rgba(255,255,255,.18); }
.lcs-badge--subs  { background: rgba(255,255,255,.08); color:var(--lcs-text-muted); border:1px solid rgba(255,255,255,.12); }

.lcs-live-dot {
  width:7px; height:7px; border-radius:50%; background:#fff; display:inline-block;
  animation: lcs-pulse 1.2s ease-in-out infinite;
}
@keyframes lcs-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.75); }
}

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.lcs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 14px; font-weight: 600;
  transition: all var(--lcs-t) var(--lcs-ease);
  white-space: nowrap; letter-spacing: .3px;
}
.lcs-btn--primary { background:var(--lcs-accent); color:#fff; }
.lcs-btn--primary:hover { background:var(--lcs-accent-h); transform:translateY(-1px); box-shadow:0 6px 20px rgba(229,9,20,.4); }
.lcs-btn--secondary { background:rgba(255,255,255,.14); color:#fff; border:1px solid rgba(255,255,255,.2); backdrop-filter:blur(8px); }
.lcs-btn--secondary:hover { background:rgba(255,255,255,.24); transform:translateY(-1px); }

/* Watch Now — solid white button with dark text, turns accent on hover */
.lcs-slide-watch {
  background: #ffffff;
  color: #111111;
  border: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.lcs-slide-watch:hover {
  background: var(--lcs-accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229,9,20,.55);
}
.lcs-slide-watch:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ── NAV BAR ──────────────────────────────────────────────────────────────── */
.lcs-nav {
  position: sticky; top:0; z-index:100;
  background: linear-gradient(to bottom, rgba(20,20,20,.98), rgba(20,20,20,.92));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lcs-border);
}
.lcs-nav__inner {
  display: flex; align-items: center; gap: 2px;
  padding: 0 clamp(12px,3.5vw,56px);
  overflow-x: auto; scrollbar-width: none;
}
.lcs-nav__inner::-webkit-scrollbar { display:none; }
.lcs-nav__tab {
  padding: 14px 16px;
  font-size: 13px; font-weight: 600;
  color: var(--lcs-text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--lcs-t); white-space: nowrap;
}
.lcs-nav__tab:hover { color: var(--lcs-white); }
.lcs-nav__tab--active { color:var(--lcs-white); border-bottom-color:var(--lcs-accent); }
.lcs-nav__search {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; padding-left: 16px;
  border-left: 1px solid var(--lcs-border);
  color: var(--lcs-text-muted);
}
.lcs-search-input {
  background:transparent; border:none; color:var(--lcs-text);
  font-family:var(--lcs-font-body); font-size:13px; outline:none;
  width: 140px; padding: 4px 0;
  transition: width var(--lcs-t) var(--lcs-ease);
}
.lcs-search-input::placeholder { color:var(--lcs-text-dim); }
.lcs-search-input:focus { width: 220px; }

/* ── CONTENT AREA ─────────────────────────────────────────────────────────── */
.lcs-content { padding: 16px 0 60px; }

/* ── CHANNEL ROW ──────────────────────────────────────────────────────────── */
.lcs-row {
  padding: 20px 0 10px;
  animation: lcs-fadein .45s var(--lcs-ease) both;
}
.lcs-row:nth-child(1) { animation-delay:.04s; }
.lcs-row:nth-child(2) { animation-delay:.1s; }
.lcs-row:nth-child(3) { animation-delay:.16s; }
.lcs-row:nth-child(4) { animation-delay:.22s; }
.lcs-row:nth-child(5) { animation-delay:.28s; }
@keyframes lcs-fadein { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }

.lcs-row--hidden { display:none; }

/* Row header */
.lcs-row__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(12px,3.5vw,56px);
  margin-bottom: 12px; gap: 12px;
}
.lcs-row__header-left { display:flex; align-items:center; gap:10px; min-width:0; }
.lcs-live-pip { display:flex; align-items:center; }
.lcs-row__title {
  font-size: clamp(15px, 1.8vw, 20px);
  font-weight: 700; color: #fff !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lcs-row__subtitle {
  font-size: 12px; color: var(--lcs-text-dim); font-weight: 400;
  white-space: nowrap;
}
.lcs-row__browse {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  color: var(--lcs-text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--lcs-border);
  transition: all var(--lcs-t);
  white-space: nowrap; flex-shrink: 0;
}
.lcs-row__browse:hover { color:var(--lcs-white); border-color:rgba(255,255,255,.25); background:var(--lcs-surface); }

/* Scrolling track */
.lcs-row__track-wrapper {
  position: relative;
  padding: 0 clamp(12px,3.5vw,56px);
}
.lcs-row__track {
  display: grid;
  grid-template-columns: repeat(var(--per-row,5), 1fr);
  gap: 10px;
  padding-bottom: 6px;
}

/* Season tabs removed — shows now use inline detail panels */

.lcs-row__empty {
  font-size: 13px; color: var(--lcs-text-dim);
  font-style: italic; padding: 20px 0;
}


/* Arrow styles removed — layout now uses wrapping grid */

/* ── EPISODE CARD ─────────────────────────────────────────────────────────── */
.lcs-card {
  border-radius: var(--lcs-radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--lcs-surface);
  transition: transform .3s var(--lcs-ease), box-shadow .3s;
  position: relative;
}
.lcs-card:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: var(--lcs-shadow);
  z-index: 5;
}

.lcs-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--lcs-surface2);
}
.lcs-card__thumb img { transition: transform .45s ease; }
.lcs-card:hover .lcs-card__thumb img { transform: scale(1.06); }

.lcs-card__thumb-placeholder {
  display: flex; align-items:center; justify-content:center;
  height: 100%; font-size:36px;
  background: linear-gradient(135deg, var(--lcs-surface2) 0%, #333 100%);
}

.lcs-card__dur {
  position: absolute; bottom:6px; right:8px;
  background: rgba(0,0,0,.82); color:#fff;
  font-size: 11px; font-weight:600;
  padding: 2px 6px; border-radius:3px;
  pointer-events: none;
}

.lcs-card__live-badge {
  position: absolute; top:8px; left:8px;
  background: var(--lcs-accent); color:#fff;
  font-size: 10px; font-weight:700; letter-spacing:.8px;
  padding: 2px 7px; border-radius:3px;
  display: flex; align-items:center; gap:4px;
}

/* Play overlay — shown on hover */
.lcs-card__play-overlay {
  position: absolute; inset:0;
  display: flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.42);
  opacity: 0;
  transition: opacity var(--lcs-t) var(--lcs-ease);
}
.lcs-card:hover .lcs-card__play-overlay { opacity:1; }
.lcs-card__play-circle {
  width: 52px; height:52px; border-radius:50%;
  background: rgba(229,9,20,.9);
  display: flex; align-items:center; justify-content:center;
  color: #fff;
  transform: scale(.85);
  transition: transform .25s var(--lcs-ease);
  box-shadow: 0 4px 24px rgba(229,9,20,.5);
}
.lcs-card:hover .lcs-card__play-circle { transform: scale(1); }

.lcs-card__info { padding: 9px 11px 11px; }
.lcs-card__title {
  font-size: 13px; font-weight:600; color:#fff !important;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient:vertical;
  overflow: hidden; line-height:1.35;
}
.lcs-card__meta {
  display: flex; gap:8px;
  font-size: 11px; color:var(--lcs-text-dim);
}
.lcs-card--live-only .lcs-card__title { font-size:14px; }


/* ── SHOW CARDS (subchannels displayed as clickable show posters) ─────────── */
.lcs-show-card {
  border-radius: var(--lcs-radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--lcs-surface);
  transition: transform .3s var(--lcs-ease), box-shadow .3s, outline .15s;
  position: relative;
  outline: 2px solid transparent;
}
.lcs-show-card:hover {
  transform: scale(1.04) translateY(-3px);
  box-shadow: var(--lcs-shadow);
  z-index: 5;
}
.lcs-show-card--active {
  outline-color: var(--lcs-accent);
  transform: scale(1.02) translateY(-2px);
}

.lcs-show-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--lcs-surface2);
}
.lcs-show-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.lcs-show-card:hover .lcs-show-card__thumb img { transform: scale(1.06); }

.lcs-show-card__thumb-placeholder {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 36px;
  background: linear-gradient(135deg, var(--lcs-surface2) 0%, #333 100%);
}

.lcs-show-card__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.42);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--lcs-t) var(--lcs-ease);
}
.lcs-show-card:hover .lcs-show-card__overlay { opacity: 1; }
.lcs-show-card--active .lcs-show-card__overlay { opacity: 1; }

.lcs-show-card__play {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(229,9,20,.9);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transform: scale(.85);
  transition: transform .25s var(--lcs-ease);
  box-shadow: 0 4px 24px rgba(229,9,20,.5);
}
.lcs-show-card:hover .lcs-show-card__play { transform: scale(1); }

.lcs-show-card__ep-ct {
  position: absolute; bottom: 6px; right: 8px;
  background: rgba(0,0,0,.82); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 3px;
  pointer-events: none;
}

.lcs-show-card__info {
  padding: 9px 11px 11px;
}
.lcs-show-card__title {
  font-size: 13px; font-weight: 600; color: #fff !important;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35;
}

/* ── INLINE SHOW DETAIL PANEL ─────────────────────────────────────────────── */
.lcs-show-detail {
  margin: 12px clamp(12px,3.5vw,56px) 24px;
  border-radius: var(--lcs-radius-lg);
  overflow: hidden;
  background: var(--lcs-surface);
  border: 1px solid var(--lcs-border);
  box-shadow: 0 16px 48px rgba(0,0,0,.6);
}
.lcs-show-detail__inner { display: flex; flex-direction: column; }

/* Banner */
.lcs-show-detail__banner {
  position: relative;
  min-height: 220px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.lcs-show-detail__banner-bg {
  position: absolute; inset: 0;
  background-image: var(--panel-bg);
  background-size: cover;
  background-position: center 20%;
  filter: brightness(.55);
  transform: scale(1.04);
}
.lcs-show-detail__banner-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(20,20,20,.92) 35%, rgba(20,20,20,.35) 70%, transparent),
    linear-gradient(to top, var(--lcs-surface) 0%, transparent 50%);
}
.lcs-show-detail__banner-content {
  position: relative; z-index: 2;
  padding: 28px 28px 24px;
  max-width: 600px;
}
.lcs-show-detail__title {
  font-family: var(--lcs-font-display);
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: 1.5px; line-height: 1;
  color: #fff !important;
  margin-bottom: 10px;
}
.lcs-show-detail__desc {
  font-size: 13px; color: var(--lcs-text-muted);
  line-height: 1.65; margin-bottom: 10px;
  max-width: 480px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lcs-show-detail__meta {
  display: flex; gap: 14px;
  font-size: 12px; color: var(--lcs-text-dim);
}
.lcs-show-detail__close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--lcs-t);
  border: 1px solid rgba(255,255,255,.15);
}
.lcs-show-detail__close:hover { background: var(--lcs-accent); }

/* Episode list inside panel */
.lcs-show-detail__episodes {
  padding: 18px 24px 24px;
}
.lcs-show-detail__empty {
  color: var(--lcs-text-dim); font-size: 13px; font-style: italic; padding: 8px 0;
}
.lcs-detail-ep-grid {
  display: flex; flex-direction: column; gap: 2px;
}
.lcs-detail-ep {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 10px; border-radius: 5px;
  cursor: pointer;
  transition: background var(--lcs-t);
}
.lcs-detail-ep:hover { background: var(--lcs-surface2); }

.lcs-detail-ep__num {
  font-size: 20px; font-weight: 700; color: var(--lcs-text-dim);
  min-width: 30px; text-align: center;
  font-family: var(--lcs-font-display); letter-spacing: 1px;
  padding-top: 2px; flex-shrink: 0;
}
.lcs-detail-ep__thumb {
  position: relative; width: 150px; min-width: 150px; aspect-ratio: 16/9;
  border-radius: 4px; overflow: hidden;
  background: var(--lcs-surface2); flex-shrink: 0;
}
.lcs-detail-ep__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.lcs-detail-ep:hover .lcs-detail-ep__thumb img { transform: scale(1.04); }
.lcs-detail-ep__no-thumb {
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 26px;
  background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
}
.lcs-detail-ep__dur {
  position: absolute; bottom: 4px; right: 6px;
  background: rgba(0,0,0,.82); color: #fff;
  font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 2px;
}
.lcs-detail-ep__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5); opacity: 0;
  transition: opacity var(--lcs-t); color: #fff;
}
.lcs-detail-ep:hover .lcs-detail-ep__play { opacity: 1; }

.lcs-detail-ep__info { flex: 1; padding-top: 2px; }
.lcs-detail-ep__title {
  font-size: 13px; font-weight: 600; color: #fff !important;
  margin-bottom: 4px; line-height: 1.3;
}
.lcs-detail-ep__meta {
  display: flex; gap: 8px;
  font-size: 11px; color: var(--lcs-text-muted);
  margin-bottom: 4px; flex-wrap: wrap;
}
.lcs-detail-ep__desc {
  font-size: 12px; color: var(--lcs-text-dim); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── FULLSCREEN LIGHTBOX ──────────────────────────────────────────────────── */
.lcs-lightbox {
  position: fixed; inset:0; z-index:99999;
  background: #000;
  display: flex; flex-direction:column;
  opacity: 0; pointer-events:none;
  transition: opacity .3s var(--lcs-ease);
  /* Prevent iOS bounce / over-scroll from shrinking the player */
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
}
.lcs-lightbox.lcs-lightbox--open {
  opacity: 1; pointer-events: all;
}

/* Top bar */
.lcs-lightbox__bar {
  display: flex; align-items:center; gap:16px;
  padding: 0 20px;
  height: var(--lcs-bar-h);
  background: linear-gradient(to bottom, rgba(0,0,0,.92), transparent);
  position: absolute; top:0; left:0; right:0;
  z-index: 10;
  transition: opacity .3s;
}
.lcs-lightbox--hide-ui .lcs-lightbox__bar { opacity:0; }

.lcs-lightbox__back {
  display: flex; align-items:center; gap:8px;
  font-size: 14px; font-weight:600; color:#fff;
  padding: 7px 14px;
  border-radius: 4px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  transition: all var(--lcs-t);
  flex-shrink: 0;
}
.lcs-lightbox__back:hover { background:rgba(255,255,255,.2); }

.lcs-lightbox__title-wrap {
  display: flex; align-items:center; gap:8px;
  font-size: 14px; overflow:hidden; flex:1; min-width:0;
}
.lcs-lightbox__channel-name { color:var(--lcs-text-muted); white-space:nowrap; }
.lcs-lightbox__sep { color:var(--lcs-text-dim); }
.lcs-lightbox__ep-title {
  color:#fff !important; font-weight:600;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.lcs-lightbox__ep-nav {
  display: flex; align-items:center; gap:6px; flex-shrink:0;
}
.lcs-lightbox__ep-btn {
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.1);
  color:#fff;
  transition: all var(--lcs-t);
}
.lcs-lightbox__ep-btn:hover { background:rgba(255,255,255,.25); }
.lcs-lightbox__ep-btn:disabled { opacity:.3; pointer-events:none; }
.lcs-lightbox__ep-counter {
  font-size:12px; color:var(--lcs-text-muted);
  min-width: 48px; text-align:center; white-space:nowrap;
}

/* Open-in-new-tab link button */
.lcs-lightbox__ext-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  flex-shrink: 0;
  transition: all var(--lcs-t);
  text-decoration: none;
  margin-left: 4px;
}
.lcs-lightbox__ext-link:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}
/* Hide when no URL is available */
.lcs-lightbox__ext-link[href="#"] {
  opacity: .3;
  pointer-events: none;
}

/* Player — sits below the bar, fills remaining height */
.lcs-lightbox__player {
  flex: 1;
  position: relative;
  background: #000;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  margin-top: var(--lcs-bar-h);
}
.lcs-lightbox__loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000; z-index: 2;
}
/*
 * Wrapper centres the iframe and clips overflow so the scaled-up
 * iframe never bleeds outside the player box.
 */
.lcs-lightbox__iframe-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}
/*
 * The iframe is kept at its native 640×360 in the DOM.
 * JS reads the container size and applies transform:scale() to fill it,
 * using transform-origin:center so scaling is symmetric.
 * This is the only reliable way to make cross-origin iframe content
 * visually fill a larger container without browser security violations.
 */
.lcs-lightbox__iframe {
  width: 640px;
  height: 360px;
  flex-shrink: 0;
  border: none;
  background: #000;
  display: block;
  transform-origin: center center;
  transform: scale(1);   /* JS overrides this */
}

/* Info strip */
.lcs-lightbox__info {
  padding: 12px 24px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.95), rgba(0,0,0,.75));
  flex-shrink: 0;
  max-height: 80px;
  overflow: hidden;
  transition: max-height .3s var(--lcs-ease);
}
.lcs-lightbox__info:hover { max-height: 200px; }
.lcs-lightbox__desc { font-size:13px; color:var(--lcs-text-muted); line-height:1.55; margin-bottom:4px; }
.lcs-lightbox__meta { display:flex; gap:12px; font-size:12px; color:var(--lcs-text-dim); }

/* Episode strip */
.lcs-lightbox__episodes {
  background: rgba(0,0,0,.9);
  border-top: 1px solid var(--lcs-border);
  padding: 12px 0 14px;
  flex-shrink: 0;
}
.lcs-lightbox__episodes-label {
  font-size: 11px; font-weight:700; text-transform:uppercase; letter-spacing:1px;
  color: var(--lcs-text-dim); padding: 0 20px; margin-bottom:10px;
}
.lcs-lightbox__episodes-track {
  display: flex; gap:8px;
  padding: 0 20px;
  overflow-x: auto; scrollbar-width:thin;
  scrollbar-color: var(--lcs-surface2) transparent;
}
.lcs-lightbox__episodes-track::-webkit-scrollbar { height:4px; }
.lcs-lightbox__episodes-track::-webkit-scrollbar-thumb { background:var(--lcs-surface3); border-radius:2px; }

/* Lightbox episode thumbnail */
.lcs-lb-ep {
  flex-shrink: 0; width:160px;
  border-radius: 5px; overflow:hidden;
  cursor:pointer;
  background: var(--lcs-surface2);
  border: 2px solid transparent;
  transition: all var(--lcs-t);
}
.lcs-lb-ep:hover { border-color: rgba(255,255,255,.3); }
.lcs-lb-ep--active { border-color: var(--lcs-accent) !important; }
.lcs-lb-ep__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.lcs-lb-ep__thumb img { width:100%; height:100%; object-fit:cover; }
.lcs-lb-ep__no-thumb {
  display:flex; align-items:center; justify-content:center;
  height:100%; font-size:24px;
  background: linear-gradient(135deg, #1f1f1f, #2a2a2a);
}
.lcs-lb-ep__dur {
  position:absolute; bottom:4px; right:6px;
  background:rgba(0,0,0,.8); color:#fff;
  font-size:10px; font-weight:600; padding:1px 5px; border-radius:2px;
}
.lcs-lb-ep__info { padding:6px 8px 8px; }
.lcs-lb-ep__title {
  font-size:11px; font-weight:600; color:var(--lcs-white);
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* ── CHANNEL BROWSE MODAL ─────────────────────────────────────────────────── */
.lcs-modal {
  position: fixed; inset:0; z-index:9999;
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transition: opacity .3s;
}
.lcs-modal.lcs-modal--open { opacity:1; pointer-events:all; }
.lcs-modal__backdrop {
  position:absolute; inset:0;
  background:rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
}
.lcs-modal__container {
  position:relative; z-index:1;
  background: var(--lcs-surface);
  border-radius: var(--lcs-radius-lg);
  width: min(92vw, 860px);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--lcs-surface2) transparent;
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
  transform: scale(.92) translateY(20px);
  transition: transform .35s var(--lcs-ease);
}
.lcs-modal--open .lcs-modal__container { transform:scale(1) translateY(0); }
.lcs-modal__container::-webkit-scrollbar { width:5px; }
.lcs-modal__container::-webkit-scrollbar-thumb { background:var(--lcs-surface2); border-radius:3px; }

.lcs-modal__close {
  position:absolute; top:12px; right:12px; z-index:10;
  width:34px; height:34px; border-radius:50%;
  background:rgba(0,0,0,.6); color:#fff;
  font-size:20px; line-height:1;
  display:flex; align-items:center; justify-content:center;
  transition: background var(--lcs-t);
}
.lcs-modal__close:hover { background:var(--lcs-accent); }

.lcs-modal__hero {
  position:relative; height:260px; overflow:hidden;
  background:var(--lcs-surface2);
  border-radius: var(--lcs-radius-lg) var(--lcs-radius-lg) 0 0;
}
.lcs-modal__hero-img { width:100%; height:100%; object-fit:cover; filter:brightness(.7); }
.lcs-modal__hero-grad {
  position:absolute; inset:0;
  background: linear-gradient(to top, var(--lcs-surface) 0%, transparent 60%);
}
.lcs-modal__hero-info { position:absolute; bottom:18px; left:22px; right:22px; }
.lcs-modal__title {
  font-family: var(--lcs-font-display);
  font-size: clamp(22px, 3.5vw, 40px);
  letter-spacing: 1.5px; color:#fff; margin-bottom:10px;
}
.lcs-modal__actions { display:flex; gap:10px; flex-wrap:wrap; }

.lcs-modal__body { padding:18px 22px 28px; }
.lcs-modal__desc { font-size:14px; color:var(--lcs-text-muted); line-height:1.65; margin-bottom:8px; }
.lcs-modal__stats { display:flex; gap:16px; font-size:13px; color:var(--lcs-text-dim); flex-wrap:wrap; margin-bottom:4px; }
.lcs-modal__meta-row { margin-bottom:18px; }

.lcs-modal__loading {
  display:flex; align-items:center; justify-content:center; gap:12px;
  padding:36px; color:var(--lcs-text-muted); font-size:13px;
}

/* Season tabs */
.lcs-season-tabs { border-bottom:1px solid var(--lcs-border); margin-bottom:18px; }
.lcs-season-tabs__nav { display:flex; overflow-x:auto; scrollbar-width:none; }
.lcs-season-tabs__nav::-webkit-scrollbar { display:none; }
.lcs-season-tab {
  flex-shrink:0; padding:9px 18px;
  font-size:13px; font-weight:600; color:var(--lcs-text-muted);
  border-bottom:2px solid transparent;
  transition:all var(--lcs-t); white-space:nowrap;
  background:none; border-top:none; border-left:none; border-right:none;
  font-family:var(--lcs-font-body); cursor:pointer;
}
.lcs-season-tab:hover { color:var(--lcs-white); }
.lcs-season-tab--active { color:var(--lcs-white); border-bottom-color:var(--lcs-accent); }
.lcs-ep-count { font-size:11px; font-weight:400; color:var(--lcs-text-dim); margin-left:4px; }

/* Episode list in modal */
.lcs-episodes__heading { font-size:15px; font-weight:700; color:#fff; margin-bottom:12px; }
.lcs-episodes__grid { display:flex; flex-direction:column; gap:4px; }

.lcs-ep-row {
  display:flex; gap:14px; align-items:flex-start;
  padding:10px; border-radius:5px;
  cursor:pointer;
  transition: background var(--lcs-t);
  text-decoration:none;
}
.lcs-ep-row:hover { background:var(--lcs-surface2); }
.lcs-ep-row__thumb {
  position:relative; width:148px; min-width:148px; aspect-ratio:16/9;
  border-radius:4px; overflow:hidden; background:var(--lcs-surface2); flex-shrink:0;
}
.lcs-ep-row__thumb img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.lcs-ep-row:hover .lcs-ep-row__thumb img { transform:scale(1.04); }
.lcs-ep-row__play {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.5); opacity:0; transition:opacity var(--lcs-t); color:#fff;
}
.lcs-ep-row:hover .lcs-ep-row__play { opacity:1; }
.lcs-ep-row__dur {
  position:absolute; bottom:4px; right:6px;
  background:rgba(0,0,0,.82); color:#fff;
  font-size:10px; font-weight:600; padding:1px 5px; border-radius:2px;
}
.lcs-ep-row__no-thumb {
  display:flex; align-items:center; justify-content:center;
  height:100%; font-size:26px;
  background: linear-gradient(135deg,#1f1f1f,#2a2a2a);
}
.lcs-ep-row__info { display:flex; gap:10px; flex:1; align-items:flex-start; padding-top:2px; }
.lcs-ep-row__num { font-size:20px; font-weight:700; color:var(--lcs-text-dim); min-width:28px; text-align:center; font-family:var(--lcs-font-display); letter-spacing:1px; }
.lcs-ep-row__main { flex:1; }
.lcs-ep-row__title { font-size:13px; font-weight:600; color:#fff; margin-bottom:4px; line-height:1.3; }
.lcs-ep-row__meta { display:flex; gap:8px; font-size:11px; color:var(--lcs-text-muted); margin-bottom:4px; flex-wrap:wrap; align-items:center; }
.lcs-ep-row__desc { font-size:12px; color:var(--lcs-text-dim); line-height:1.5; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lcs-ep-rating { background:var(--lcs-surface2); border:1px solid var(--lcs-border); padding:1px 5px; border-radius:2px; font-size:10px; font-weight:600; color:var(--lcs-text-muted); }
.lcs-ep-subs { background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.15); padding:1px 5px; border-radius:2px; font-size:10px; font-weight:700; color:var(--lcs-text-muted); }

.lcs-modal__error { color:var(--lcs-accent); font-size:13px; padding:10px 0; }
.lcs-modal__empty { color:var(--lcs-text-dim); font-size:13px; font-style:italic; padding:10px 0; }

/* ── LOADING SPINNER ──────────────────────────────────────────────────────── */
.lcs-spinner { display:flex; gap:5px; align-items:center; }
.lcs-spinner div { width:8px; height:8px; border-radius:50%; background:var(--lcs-accent); animation:lcs-bounce .9s ease-in-out infinite; }
.lcs-spinner div:nth-child(2) { animation-delay:.15s; }
.lcs-spinner div:nth-child(3) { animation-delay:.30s; }
@keyframes lcs-bounce { 0%,80%,100% { transform:scale(.7); opacity:.5; } 40% { transform:scale(1); opacity:1; } }

/* ── ERROR STATE ──────────────────────────────────────────────────────────── */
.lcs-error-state { text-align:center; padding:80px 24px; color:var(--lcs-text-muted); }
.lcs-error-icon { font-size:52px; margin-bottom:14px; }
.lcs-error-state h3 { font-size:20px; color:var(--lcs-text); margin-bottom:8px; }
.lcs-error { color:var(--lcs-accent); font-size:14px; padding:8px 0; }

/* ── HERO SLIDESHOW ───────────────────────────────────────────────────────── */
.lcs-hero-slider {
  position: relative;
  height: var(--lcs-hero-h);
  min-height: 340px;
  overflow: hidden;
}

/* All slides are absolutely stacked inside the fixed-height slider */
.lcs-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
}
/* Force the .lcs-hero inside each slide to fill its slide container */
.lcs-hero-slider .lcs-hero {
  height: 100%;
  min-height: 0;
}
.lcs-hero-slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Slide-in / slide-out animations */
.lcs-hero-slide--in-right {
  animation: lcs-slide-in-right .65s cubic-bezier(.25,.46,.45,.94) forwards;
}
.lcs-hero-slide--in-left {
  animation: lcs-slide-in-left .65s cubic-bezier(.25,.46,.45,.94) forwards;
}
.lcs-hero-slide--out-left {
  animation: lcs-slide-out-left .65s cubic-bezier(.25,.46,.45,.94) forwards;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}
.lcs-hero-slide--out-right {
  animation: lcs-slide-out-right .65s cubic-bezier(.25,.46,.45,.94) forwards;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

@keyframes lcs-slide-in-right  { from { transform:translateX(6%); opacity:0; } to { transform:translateX(0); opacity:1; } }
@keyframes lcs-slide-in-left   { from { transform:translateX(-6%); opacity:0; } to { transform:translateX(0); opacity:1; } }
@keyframes lcs-slide-out-left  { from { transform:translateX(0); opacity:1; } to { transform:translateX(-4%); opacity:0; } }
@keyframes lcs-slide-out-right { from { transform:translateX(0); opacity:1; } to { transform:translateX(4%); opacity:0; } }

/* Prev / next arrow buttons */
.lcs-slider-btn {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--lcs-t), transform var(--lcs-t);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
}
/* Show on hover (desktop) */
.lcs-hero-slider:hover .lcs-slider-btn {
  opacity: 1;
  pointer-events: auto;
}
/* Always visible on touch devices */
@media (hover: none) {
  .lcs-slider-btn { opacity: 1; pointer-events: auto; }
}
.lcs-slider-btn:hover { background: rgba(229,9,20,.8); transform: translateY(-50%) scale(1.08); }
.lcs-slider-btn--prev { left: clamp(10px, 2vw, 28px); }
.lcs-slider-btn--next { right: clamp(10px, 2vw, 28px); }

/* Dot indicators */
.lcs-slider-dots {
  position: absolute; bottom: 56px; left: 50%; z-index: 10;
  transform: translateX(-50%);
  display: flex; gap: 8px; align-items: center;
}
.lcs-slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  transition: all .3s var(--lcs-ease);
  padding: 0;
}
.lcs-slider-dot:hover { background: rgba(255,255,255,.65); transform: scale(1.2); }
.lcs-slider-dot--active {
  background: #fff;
  width: 24px;
  border-radius: 4px;
}

/* Progress bar */
.lcs-slider-progress {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
  height: 3px;
  background: rgba(255,255,255,.12);
}
.lcs-slider-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--lcs-accent);
  border-radius: 0 2px 2px 0;
}

/* Episode panel injected below the slider */
#lcsSlideEpisodePanel {
  margin: 0 !important;
  border-radius: 0 !important;
  border-top: 2px solid var(--lcs-accent);
}

/* Full-slide clickable overlay for curated banners */
.lcs-hero-slide__click-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  cursor: pointer;
}
/* Keep the Watch Now button above the overlay */
.lcs-hero-slide--banner .lcs-hero__actions {
  position: relative;
  z-index: 4;
}
/* Standalone banner wrapper resets */
.lcs-banner-standalone {
  background: var(--lcs-bg);
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */

/* ≤1400px: drop to 4 cards */
@media (max-width:1400px) {
  .lcs-row__track { grid-template-columns: repeat(4, 1fr); }
}

/* ≤1024px: tablet landscape */
@media (max-width:1024px) {
  .lcs-row__track { grid-template-columns: repeat(3, 1fr); }
  .lcs-hero-slider { --lcs-hero-h: clamp(300px, 48vw, 500px); }
  .lcs-hero__content { max-width: 480px; }
  .lcs-detail-ep__thumb { width: 130px; min-width: 130px; }
}

/* ≤768px: tablet portrait */
@media (max-width:768px) {
  /* Hero */
  .lcs-hero-slider { height: clamp(260px, 56vw, 420px); min-height: 260px; }
  .lcs-hero__content { padding: 16px 16px 36px; max-width: 100%; }
  .lcs-hero__title { font-size: clamp(22px, 6vw, 36px); }
  .lcs-hero__desc { font-size: 13px; -webkit-line-clamp: 2; }
  .lcs-hero__stats { font-size: 12px; gap: 12px; }
  .lcs-hero__actions { gap: 8px; }
  .lcs-btn { padding: 9px 16px; font-size: 13px; }

  /* Slider controls */
  .lcs-slider-btn { width: 36px; height: 36px; opacity: 1; pointer-events: auto; }
  .lcs-slider-dots { bottom: 44px; }

  /* Nav */
  .lcs-nav__search { display: none; }
  .lcs-nav__tab { padding: 12px 12px; font-size: 12px; }

  /* Rows */
  .lcs-row__track { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lcs-row__track-wrapper { padding: 0 12px; }
  .lcs-row__header { padding: 0 12px; }

  /* Show detail panel */
  .lcs-show-detail { margin: 8px 0 16px; border-radius: 0; }
  .lcs-show-detail__banner { min-height: 180px; }
  .lcs-show-detail__banner-content { padding: 16px 16px 18px; }
  .lcs-show-detail__episodes { padding: 12px 14px 18px; }
  .lcs-detail-ep__thumb { width: 110px; min-width: 110px; }
  .lcs-detail-ep__num { display: none; }
  .lcs-detail-ep__desc { display: none; }

  /* Lightbox — hide info strip, shrink bar, keep episode strip compact */
  .lcs-lightbox__info { display: none; }
  .lcs-lightbox__bar { padding: 0 12px; gap: 8px; height: 48px; }
  .lcs-lightbox__back { padding: 6px 10px; font-size: 13px; }
  .lcs-lightbox__back span { display: none; }
  .lcs-lb-ep { width: 110px; }
  .lcs-lightbox__episodes { padding: 8px 0 10px; }
  .lcs-lightbox__episodes-label { padding: 0 14px; margin-bottom: 6px; }
  .lcs-lightbox__episodes-track { padding: 0 14px; gap: 6px; }
}

/* ≤540px: large phone */
@media (max-width:540px) {
  /* Hero — taller on phones so content has room */
  .lcs-hero-slider { height: clamp(300px, 72vw, 420px); }
  .lcs-hero__desc { display: none; }
  .lcs-hero__meta { margin-bottom: 8px; }

  /* Cards: 2 columns */
  .lcs-row__track { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .lcs-row__title { font-size: 14px; }
  .lcs-row__subtitle { display: none; }

  /* Episode panel */
  .lcs-detail-ep { flex-wrap: wrap; gap: 8px; }
  .lcs-detail-ep__thumb { width: 100%; min-width: 0; aspect-ratio: 16/9; }
  .lcs-detail-ep__info { padding-top: 0; }

  /* Lightbox — on phones hide episode strip entirely, give player full height */
  .lcs-lightbox__episodes { display: none; }
  .lcs-lightbox__ep-nav { display: none; }
  .lcs-lightbox__title-wrap { font-size: 12px; }
  .lcs-lightbox__bar { height: 44px; }
  /* Player gets a min-height so it's never crushed to zero */
  .lcs-lightbox__player { min-height: 200px; }

  /* Slide episode panel */
  #lcsSlideEpisodePanel .lcs-show-detail__banner { min-height: 140px; }
}

/* ≤380px: small phone */
@media (max-width:380px) {
  .lcs-hero-slider { height: clamp(280px, 80vw, 360px); }
  .lcs-hero__title { font-size: 22px; }
  .lcs-btn { padding: 8px 12px; font-size: 12px; gap: 5px; }
  .lcs-hero__actions { flex-direction: column; align-items: flex-start; }
  .lcs-row__track { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .lcs-nav__tab { padding: 10px 8px; font-size: 11px; }
}
