/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #0a0f1a;
  --bg2:       #111827;
  --bg3:       #1a2235;
  --card:      #141c2b;
  --card-h:    #1e2d42;
  --border:    #1e2d40;
  --red:       #E4002B;
  --red-h:     #ff1a3a;
  --text:      #f0f4fc;
  --text2:     #8892a4;
  --text3:     #556070;
  --nav-h:     64px;
  --r:         6px;
  --r-lg:      10px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Navbar ────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: linear-gradient(to bottom, rgba(8,13,26,.95), rgba(8,13,26,.6));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.navbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.navbar-left  { display: flex; align-items: center; gap: 8px; }
.navbar-right { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }

.nav-link {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color .15s;
  display: flex; align-items: center; gap: 6px;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active { color: var(--text); border-bottom: 2px solid var(--red); border-radius: 0; }

.logo svg { display: block; transition: opacity .2s; }
.logo:hover svg { opacity: .85; }

.nav-icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text2);
  transition: color .15s, background .15s;
}
.nav-icon-btn:hover { color: var(--text); background: rgba(255,255,255,.08); }

.search-form { display: flex; align-items: center; gap: 8px; }
.search-input {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 7px 14px;
  color: var(--text);
  font-size: 14px;
  width: 220px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.search-input:focus { border-color: var(--red); background: rgba(255,255,255,.1); }
.search-input::placeholder { color: var(--text3); }

/* ── Flash ─────────────────────────────────────────────────────────────────── */
.flash-messages { position: fixed; top: calc(var(--nav-h) + 12px); right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 12px 20px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  max-width: 360px;
  animation: slideIn .2s ease;
}
@keyframes slideIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }
.flash-success { background: #14532d; color: #86efac; border: 1px solid #166534; }
.flash-error   { background: #450a0a; color: #fca5a5; border: 1px solid #7f1d1d; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 78vh;
  min-height: 480px;
  overflow: hidden;
  margin-top: var(--nav-h);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-bg-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a0a2e 0%, #0d1a3a 50%, #0a0f1a 100%);
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,13,26,.92) 35%, rgba(8,13,26,.3) 70%, transparent 100%),
    linear-gradient(to top, rgba(8,13,26,1) 0%, transparent 40%);
}
.hero-content {
  position: absolute;
  bottom: 80px;
  left: 0; right: 0;
  padding: 0 60px;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.hero-category {
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,.5);
}
.hero-desc {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions { display: flex; gap: 12px; align-items: center; }
.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  transition: background .15s, transform .1s;
}
.btn-play:hover { background: var(--red-h); transform: scale(1.02); }
.btn-play svg { flex-shrink: 0; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  transition: background .15s;
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 60px;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: background .2s, width .2s;
  cursor: pointer;
}
.hero-dot.active { background: var(--red); width: 24px; border-radius: 4px; }

/* ── Category pills ────────────────────────────────────────────────────────── */
.cat-bar {
  padding: 20px 60px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  padding: 10px 22px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.cat-pill:hover { background: var(--card-h); color: var(--text); }
.cat-pill.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ── Rows ──────────────────────────────────────────────────────────────────── */
.rows { padding: 8px 0 40px; }
.row  { padding: 28px 0 4px; }
.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px 16px;
}
.row-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.row-link {
  font-size: 13px;
  color: var(--red);
  font-weight: 600;
  transition: opacity .15s;
}
.row-link:hover { opacity: .8; }

.row-track-wrap { position: relative; }
.row-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 60px 20px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.row-track::-webkit-scrollbar { display: none; }

.row-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(10,15,26,.85);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .15s;
  opacity: 0;
  pointer-events: none;
}
.row-track-wrap:hover .row-arrow { opacity: 1; pointer-events: auto; }
.row-arrow:hover { background: var(--card-h); }
.row-arrow.left  { left: 12px; }
.row-arrow.right { right: 12px; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  flex-shrink: 0;
  width: 220px;
  cursor: pointer;
  transition: transform .2s;
}
.card:hover { transform: scale(1.04); }
.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg3);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .2s;
}
.card:hover .card-thumb img { opacity: .85; }
.card-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg3), var(--card));
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
}
.card-duration {
  position: absolute;
  bottom: 6px; right: 8px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
}
.card-play-overlay {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  background: rgba(0,0,0,.3);
}
.card:hover .card-play-overlay { opacity: 1; }
.card-play-icon {
  width: 44px; height: 44px;
  background: rgba(228,0,43,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.card-info { padding: 10px 4px 0; }
.card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.card-meta { font-size: 12px; color: var(--text3); }

/* card large (for browse grid) */
.card-lg { width: 260px; }
.card-lg .card-thumb { border-radius: var(--r-lg); }

/* ── Series detail ─────────────────────────────────────────────────────────── */
.series-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  margin-top: var(--nav-h);
}
.series-hero-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.series-hero-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0d1a3a, #1a0a2e);
}
.series-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,15,26,1) 0%, rgba(10,15,26,.4) 60%, transparent 100%);
}
.series-info {
  background: var(--bg);
  padding: 0 60px 40px;
  margin-top: -60px;
  position: relative;
}
.series-info-inner { max-width: 900px; }
.series-title { font-size: 36px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.series-meta { font-size: 13px; color: var(--text2); margin-bottom: 16px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.series-cat-tag {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}
.series-actions { display: flex; gap: 10px; margin-bottom: 24px; }
.series-desc { font-size: 15px; color: var(--text2); line-height: 1.7; max-width: 680px; }

.season-tabs { display: flex; gap: 4px; padding: 24px 60px 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.season-tabs::-webkit-scrollbar { display: none; }
.season-tab {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text2);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.season-tab:hover { color: var(--text); }
.season-tab.active { color: var(--text); border-bottom-color: var(--red); }

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 28px 60px 60px;
}
.ep-card {
  cursor: pointer;
  transition: transform .2s;
}
.ep-card:hover { transform: translateY(-3px); }
.ep-thumb {
  aspect-ratio: 16/9;
  background: var(--bg3);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  margin-bottom: 10px;
}
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb-placeholder {
  width: 100%; height: 100%;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
}
.ep-num { font-size: 11px; color: var(--text3); font-weight: 600; margin-bottom: 4px; }
.ep-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.ep-desc { font-size: 12px; color: var(--text2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Watch / Player ─────────────────────────────────────────────────────────── */
.watch-wrap { padding-top: var(--nav-h); background: #000; }
.player-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: #000;
}
.player-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: block;
}
.player-video video { width: 100%; height: 100%; display: block; }
.player-no-video {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text2);
}
.watch-meta {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 60px 60px;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
}
.watch-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.watch-series { font-size: 14px; color: var(--red); font-weight: 600; margin-bottom: 16px; }
.watch-desc { font-size: 14px; color: var(--text2); line-height: 1.7; }
.watch-sidebar { border-left: 1px solid var(--border); padding-left: 32px; }
.sidebar-title { font-size: 13px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.next-card { display: flex; gap: 12px; padding: 10px; border-radius: var(--r); transition: background .15s; }
.next-card:hover { background: var(--card); }
.next-thumb { width: 120px; flex-shrink: 0; aspect-ratio: 16/9; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.next-thumb img { width: 100%; height: 100%; object-fit: cover; }
.next-info { flex: 1; }
.next-label { font-size: 11px; color: var(--text3); margin-bottom: 4px; }
.next-title { font-size: 13px; font-weight: 600; line-height: 1.3; }
.next-dur   { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* ── Browse ─────────────────────────────────────────────────────────────────── */
.browse-wrap {
  margin-top: var(--nav-h);
  padding: 40px 60px;
}
.browse-header { margin-bottom: 32px; }
.browse-heading { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.browse-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 0;
  color: var(--text2);
}
.empty-state svg { margin: 0 auto 16px; color: var(--text3); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 40px 0;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text3); transition: color .15s; }
.footer-links a:hover { color: var(--text2); }
.footer-copy { font-size: 12px; color: var(--text3); }

/* ── Empty / placeholder ────────────────────────────────────────────────────── */
.no-content {
  padding: 60px;
  text-align: center;
  color: var(--text2);
  font-size: 16px;
}

/* ── Admin ──────────────────────────────────────────────────────────────────── */
.admin-wrap {
  display: flex;
  min-height: 100vh;
  margin-top: var(--nav-h);
}
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.admin-nav-section { margin-bottom: 8px; }
.admin-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 12px 24px 6px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: color .15s, background .15s;
}
.admin-nav-link:hover   { color: var(--text); background: rgba(255,255,255,.04); }
.admin-nav-link.active  { color: var(--text); background: rgba(228,0,43,.12); border-left: 2px solid var(--red); }
.admin-main { flex: 1; padding: 36px 48px; overflow: hidden; }
.admin-page-title { font-size: 26px; font-weight: 800; margin-bottom: 32px; letter-spacing: -.01em; }
.admin-page-title small { font-size: 14px; font-weight: 400; color: var(--text2); margin-left: 10px; }

/* admin stats */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 16px; margin-bottom: 36px; }
.stat-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 24px; }
.stat-num { font-size: 32px; font-weight: 800; color: var(--red); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text2); }

/* admin table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); padding: 10px 16px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid rgba(30,45,64,.5); font-size: 14px; vertical-align: middle; }
.admin-table tr:hover td { background: rgba(255,255,255,.02); }
.thumb-sm { width: 64px; height: 36px; object-fit: cover; border-radius: 4px; background: var(--bg3); }

/* admin form */
.admin-form { max-width: 720px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text2); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--red); }
.form-select option { background: var(--bg3); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.form-checkbox input { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12px; color: var(--text3); margin-top: 4px; }

/* admin buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--r); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, opacity .15s; border: 1px solid transparent; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-h); }
.btn-secondary { background: var(--bg3); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--card-h); }
.btn-danger { background: #450a0a; color: #fca5a5; border-color: #7f1d1d; }
.btn-danger:hover { background: #7f1d1d; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* file upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
  color: var(--text2);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--red); background: rgba(228,0,43,.04); }
.upload-zone input[type=file] { display: none; }
.upload-zone-icon { color: var(--text3); margin: 0 auto 12px; }
.upload-zone-text { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.upload-zone-sub  { font-size: 12px; color: var(--text3); }
.upload-filename  { margin-top: 10px; font-size: 13px; color: var(--red); font-weight: 600; }

.progress-bar-wrap { background: var(--bg3); border-radius: 4px; height: 6px; overflow: hidden; margin-top: 12px; display: none; }
.progress-bar { height: 100%; background: var(--red); border-radius: 4px; transition: width .1s; }

/* admin login */
.login-wrap { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 48px; width: 100%; max-width: 400px; }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 28px; }

/* section divider */
.section-divider { height: 1px; background: var(--border); margin: 32px 0; }

/* badge */
.badge { display: inline-flex; padding: 2px 8px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.badge-green { background: #14532d; color: #86efac; }
.badge-gray  { background: var(--bg3); color: var(--text3); border: 1px solid var(--border); }
.badge-red   { background: #450a0a; color: #fca5a5; }

/* ── Live ───────────────────────────────────────────────────────────────────── */
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.3); }
}
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 3px;
}
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: livepulse 1.2s ease-in-out infinite; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 24px; padding: 40px 60px; }
.live-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; transition: transform .2s, border-color .2s;
}
.live-card:hover { transform: translateY(-3px); border-color: var(--red); }
.live-card-thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--bg3); }
.live-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-card-thumb-placeholder { width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1a0a2e,#0d1a3a); }
.live-card-badge { position: absolute; top: 10px; left: 10px; }
.live-card-info { padding: 16px; }
.live-card-channel { font-size: 11px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.live-card-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.live-card-desc { font-size: 13px; color: var(--text2); line-height: 1.5; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }

.live-wrap { margin-top: var(--nav-h); }
.live-player-box { background: #000; position: relative; }
.live-player-box video { width: 100%; display: block; max-height: 80vh; }
.live-meta { max-width: 960px; margin: 0 auto; padding: 28px 60px 60px; }
.live-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.live-desc  { font-size: 15px; color: var(--text2); line-height: 1.7; margin-top: 12px; }

/* ── Responsive tweaks ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content, .cat-bar, .row-header, .row-track, .series-info,
  .season-tabs, .episodes-grid, .browse-wrap, .watch-meta { padding-left: 20px; padding-right: 20px; }
  .watch-meta { grid-template-columns: 1fr; }
  .watch-sidebar { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 24px; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 24px 20px; }
  .form-row-2 { grid-template-columns: 1fr; }
}
