:root {
  --bg: #030305;
  --bg-1: #0a0a10;
  --bg-2: #12121a;
  
  --glass: rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --glass-active: rgba(255, 255, 255, 0.2);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --text: #ffffff;
  --text-dim: #a1a1aa;
  --text-faint: #71717a;
  
  /* Vibrant Neon Accents */
  --brand-1: #e11d48; /* Crimson Red */
  --brand-2: #8b5cf6; /* Electric Violet */
  --brand-3: #3b82f6; /* Bright Blue */
  --brand-gradient: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  --neon-glow: 0 0 20px rgba(225, 29, 72, 0.4), 0 0 40px rgba(139, 92, 246, 0.2);
  
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  
  --shadow-card: 0 10px 30px -10px rgba(0,0,0,0.8);
  --shadow-glow: 0 20px 40px -10px rgba(139, 92, 246, 0.25);
  
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-2); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ─── Header ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(3, 3, 5, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0 32px; height: 72px;
  display: flex; align-items: center; gap: 24px;
  transition: all 0.3s var(--ease);
}
.site-logo {
  font-size: 22px; font-weight: 900; letter-spacing: -0.03em;
  background: var(--brand-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
}
.site-logo::before {
  content: ''; display: inline-block; width: 24px; height: 24px;
  background: url('/ops-icon.svg') no-repeat center/contain;
}

/* ─── Provider Tabs (New Design) ─── */
.provider-tabs {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  background: rgba(3, 3, 5, 0.85); backdrop-filter: blur(16px);
  padding: 12px 32px; border-bottom: 1px solid var(--border);
  display: flex; gap: 12px; overflow-x: auto;
  scrollbar-width: none;
}
.provider-tabs::-webkit-scrollbar { display: none; }
.provider-tab {
  padding: 8px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--glass); color: var(--text-dim); border: 1px solid var(--border);
  cursor: pointer; white-space: nowrap; transition: all 0.2s var(--ease);
}
.provider-tab:hover { background: var(--glass-hover); color: #fff; }
.provider-tab.active {
  background: var(--brand-gradient); color: #fff;
  border-color: transparent; box-shadow: var(--neon-glow);
}

/* ─── Hero Banner ─── */
.hero {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  margin-bottom: 48px; min-height: 550px;
  display: flex; align-items: flex-end; background: #111 center/cover no-repeat;
  animation: scaleUp 0.8s var(--spring); border: 1px solid var(--border);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(3,3,5,0) 0%, rgba(3,3,5,0.8) 70%, var(--bg) 100%),
              linear-gradient(90deg, rgba(3,3,5,0.9) 0%, rgba(3,3,5,0.2) 50%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1; padding: 60px; max-width: 800px;
  animation: fadeInUp 0.8s var(--ease) 0.2s both;
}
.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--brand-2); margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1;
  margin-bottom: 16px; text-shadow: 0 4px 24px rgba(0,0,0,0.8);
}
.hero-desc {
  font-size: 16px; line-height: 1.6; color: var(--text-dim); margin-bottom: 24px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg); font-weight: 800; font-size: 15px;
  padding: 16px 32px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 20px rgba(255,255,255,0.2); }

/* ─── Main Content & Grids ─── */
.main { padding: 150px 32px 72px; max-width: 1800px; margin: 0 auto; }
.section { margin-bottom: 48px; animation: fadeInUp 0.6s var(--ease); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px;
}

/* ─── Modern Cards ─── */
.card {
  position: relative; border-radius: var(--radius-m); overflow: hidden;
  background: var(--bg-1); cursor: pointer; transition: all 0.4s var(--spring);
  border: 1px solid var(--border);
}
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255,255,255,0.15); z-index: 2;
}
.poster-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #111; }
.poster { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.card:hover .poster { transform: scale(1.08); }
.poster-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.9) 100%); pointer-events: none;
}
.episode-badge {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff;
}
.body { padding: 16px; }
.title { font-size: 15px; font-weight: 700; line-height: 1.4; color: #fff; margin-bottom: 6px; }
.provider-badge {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  background: var(--glass); color: var(--text-dim);
}

/* ─── Player Stage ─── */
.player-page { max-width: 1400px; margin: 0 auto; padding: 24px; animation: fadeIn 0.5s var(--ease); }
.player-shell { display: flex; gap: 24px; align-items: flex-start; }
.player-main-col { flex: 1; min-width: 0; }
.player-stage {
  border-radius: var(--radius-xl); overflow: hidden; background: #000;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9);
  border: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px;
}
.player-video-container { aspect-ratio: 16/9; position: relative; }
.player-video-container video { width: 100%; height: 100%; object-fit: contain; }

/* ─── Ad Slots ─── */
.ad-slot {
  margin: 24px 0; min-height: 90px;
  background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  position: relative;
}
.ad-slot::before {
  content: 'ADVERTISEMENT'; position: absolute; top: 8px; left: 12px;
  font-size: 9px; font-weight: 800; color: var(--text-faint); letter-spacing: 0.1em;
}

/* ─── Responsive ─── */
@media(max-width: 768px) {
  .site-header { padding: 0 16px; height: 60px; }
  .provider-tabs { top: 60px; padding: 10px 16px; }
  .main { padding: 130px 16px 40px; }
  .hero { min-height: 400px; margin-bottom: 32px; border-radius: var(--radius-m); }
  .hero-content { padding: 32px 24px; }
  .hero-title { font-size: 28px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .player-shell { flex-direction: column; }
  .player-stage { border-radius: var(--radius-m); }
}
@media(max-width: 480px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
