:root {
  --bg: #070b14;
  --surface: #0e1524;
  --surface-2: #131c2e;
  --border: #22304a;
  --text: #e8eefc;
  --muted: #9aa8c2;
  --accent: #22d3ee;
  --accent-2: #6366f1;
  --danger: #ef4444;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(99, 102, 241, .18), transparent),
    radial-gradient(700px 400px at 10% 0%, rgba(34, 211, 238, .12), transparent),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, .82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.03em;
}

.logo span { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  transition: .2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

.menu-toggle {
  display: none;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 90px 0 70px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -.04em;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121c;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,.03);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section { padding: 55px 0; }

.section-alt {
  background: rgba(255,255,255,.02);
  border-block: 1px solid var(--border);
}

.section-head,
.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2,
.page-head h1 {
  margin: 0;
  letter-spacing: -.03em;
}

.section-head p,
.page-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

/* Grid and cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.card {
  background: linear-gradient(180deg, var(--surface), #0a1120);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(34,211,238,.5);
  box-shadow: var(--shadow);
}

.card-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.card-meta {
  color: var(--muted);
  font-size: .83rem;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: rgba(255,255,255,.08);
  color: var(--muted);
}

.badge.live {
  background: rgba(239,68,68,.15);
  color: #fca5a5;
}

.badge.upcoming {
  background: rgba(34,211,238,.12);
  color: var(--accent);
}

.viewers {
  font-size: .78rem;
  color: var(--muted);
}

/* Categories */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  font-weight: 700;
  transition: .2s;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.category-count {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
}

/* Toolbar */
.toolbar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

input,
select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 15px;
  font: inherit;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--accent);
}

/* Schedule */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  transition: .2s;
}

.schedule-item:hover {
  border-color: rgba(34,211,238,.45);
}

.schedule-time {
  color: var(--accent);
  font-weight: 800;
  font-size: .9rem;
}

.schedule-title {
  font-weight: 700;
}

.schedule-sub {
  color: var(--muted);
  font-size: .85rem;
  margin-top: 4px;
}

/* Watch page */
.watch-layout {
  display: grid;
  grid-template-columns: 2fr 340px;
  gap: 24px;
  margin-top: 20px;
}

.player-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.player-frame {
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.watch-info {
  padding: 22px;
}

.watch-info h1 {
  margin: 12px 0 8px;
  font-size: 1.6rem;
  letter-spacing: -.02em;
}

.watch-info p {
  margin: 0;
  color: var(--muted);
}

.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  align-self: start;
}

.sidebar h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-button {
  width: 100%;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 15px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  transition: .2s;
}

.feed-button:hover,
.feed-button.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* Empty and loading */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.hidden { display: none !important; }

.skeleton {
  height: 300px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #101a2c 25%, #17233a 37%, #101a2c 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}

.schedule-skeleton { height: 80px; }

@keyframes shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: .88rem;
  flex-wrap: wrap;
}

.footer-inner nav {
  display: flex;
  gap: 18px;
}

.footer-inner a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .watch-layout { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .schedule-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 720px) {
  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(7,11,20,.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    display: none;
  }

  .main-nav.open { display: flex; }

  .hero { padding: 60px 0 45px; }
  .section-head { flex-direction: column; align-items: flex-start; }
}