﻿:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-deep: #020203;
  --card: rgba(15, 15, 20, 0.4);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #fdfdfd;
  --muted: #9aa0a6;
  --accent: #00f0ff; /* Electric Cyan */
  --accent-2: #ff003c; /* Neon Magenta */
  --accent-glow: rgba(0, 240, 255, 0.3);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
  --radius-lg: 24px;
  --radius-md: 16px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, .logo {
  font-family: var(--font-display);
}

/* Glassmorphism Utilities */
.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.neon-text {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.neon-badge {
  background: rgba(0, 240, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(5,5,7,0.8) 0%, rgba(5,5,7,0) 100%);
  padding: 1.5rem 0;
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff, var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

/* Cinematic Hero */
.hero.cinematic {
  position: relative;
  width: 100vw;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  z-index: -2;
  transition: background-image 1s ease-in-out;
  transform: scale(1.05); /* Slight scale to allow panning if wanted */
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    0deg,
    var(--bg) 0%,
    rgba(5, 5, 7, 0.8) 30%,
    rgba(5, 5, 7, 0.2) 60%,
    transparent 100%
  ), radial-gradient(circle at 70% 30%, rgba(0, 240, 255, 0.08), transparent 50%);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero-spotlight {
  flex: 1;
  min-width: 320px;
  max-width: 600px;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-weight: 700;
}

.cinematic-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.cinematic-desc {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.spotlight-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 999px;
  width: min(100%, 400px);
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
}

.hero-search input::placeholder {
  color: rgba(255,255,255,0.4);
}

/* TV Picker Enhanced */
.tv-picker-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  margin: 1rem 0;
  backdrop-filter: blur(12px);
}

.picker-row {
  display: flex;
  gap: 1rem;
}

.custom-select-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.select-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.custom-select {
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  font-weight: 600;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300f0ff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 15px) center;
}

.custom-select option {
  background: #0a0a0f;
  color: #fff;
  padding: 10px;
}

.custom-select:hover {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 2px 4px rgba(0,0,0,0.5);
}

.picker-navigation {
  display: flex;
  gap: 0.8rem;
}

.nav-btn-alt {
  flex: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1rem;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.nav-btn-alt:hover:not(:disabled) {
  background: var(--accent);
  color: black;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 240, 255, 0.4);
}

.nav-btn-alt:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 500;
  transition: all 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* Buttons */
button {
  font-family: var(--font-display);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0072ff 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 240, 255, 0.5);
  filter: brightness(1.1);
}

.primary:active {
  transform: translateY(-1px);
}

.secondary {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.ghost {
  background: transparent;
  color: var(--text);
  padding: 0.9rem 2rem;
  font-weight: 600;
  font-size: 1rem;
}

.ghost:hover {
  color: var(--accent);
}

.mini {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

/* Main Content */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* Chips */
.chips {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}

.chip.active, .chip:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Sections */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-weight: 700;
  font-size: 0.8rem;
  margin: 0 0 0.5rem 0;
}

.section-head h3 {
  font-size: 2.2rem;
  margin: 0;
  font-weight: 700;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem 1.5rem;
}

.grid-status {
  color: var(--muted);
  padding: 2rem 0;
  text-align: center;
}
.grid-status.hidden { display: none; }

.movie-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  cursor: pointer;
  perspective: 1000px;
  /* Staggered entrance applied via JS classes */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.movie-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.movie-card:hover .poster-wrap {
  transform: scale(1.05) rotateX(2deg) rotateY(-2deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0, 240, 255, 0.1);
}

.poster {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.movie-card:hover .poster {
  transform: scale(1.03);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.9));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.movie-card:hover .poster-overlay {
  opacity: 1;
}

.poster-watch-btn {
  background: var(--accent);
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.movie-card:hover .poster-watch-btn {
  transform: translateY(0);
}

.poster-label {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
}

.card-body h4 {
  margin: 0;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}
.card-meta .rating { color: var(--accent-2); font-weight: 600; }

/* Lanes */
.lanes .lane {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: none;
}

.lane-card {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lane-card:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.lane-title { font-size: 1.2rem; font-weight: 700; margin: 0; font-family: var(--font-display); }
.lane-genre { color: var(--muted); margin: 0; font-size: 0.9rem; }
.lane-score { color: var(--accent); font-weight: 700; font-size: 1.2rem; margin: 0.5rem 0 0 0; }

/* Footer */
.site-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

/* Ambient Player Modal */
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 2rem;
}

.player-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
}

.player-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  background: #000;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 100px rgba(0, 240, 255, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.player-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
}

.player-frame video,
.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.player-frame video[hidden],
.player-frame iframe[hidden] {
  display: none !important;
}

.server-switcher-container {
  padding: 1.5rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--glass-border);
}

.switcher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.player-title-block h3 {
  font-size: 1.5rem;
  margin: 0 0 0.2rem 0;
}
.player-title-block p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.source-toggle {
  display: flex;
  background: #111;
  border-radius: 999px;
  padding: 0.3rem;
  border: 1px solid var(--glass-border);
}

.toggle-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.toggle-btn:hover {
  color: var(--text);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--accent), #0072ff);
  color: black;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.server-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.server-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-weight: 500;
}

.server-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.server-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.player-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  z-index: 10;
  transition: all 0.2s ease;
}
.player-close:hover { opacity: 1; transform: scale(1.1); }

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .hero-content { padding: 0 2rem; }
  main { padding: 2rem 2rem 5rem; }
  .cinematic-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav { padding: 0 1.5rem; }
  .hero-content { padding: 0 1.5rem; }
  main { padding: 1.5rem 1.5rem 4rem; }
  .hero-spotlight { padding: 1.5rem; }
  .spotlight-actions { flex-direction: column; }
}

/* ─── Blog Grid & Cards ─── */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.blog-card {
  width: 300px;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(12px);
  text-decoration: none;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-color: var(--accent);
}

.blog-img {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #111;
}

.blog-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}

.blog-content h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.blog-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Individual Blog Pages ─── */
.article-page {
  padding-top: 100px;
  padding-bottom: 4rem;
  max-width: 800px;
  margin: 0 auto;
  width: 90%;
}

.article-header {
  margin-bottom: 2rem;
  text-align: center;
}

.article-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #fff, #a1a1a1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-meta {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: center;
}

.article-hero-img {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 1px solid var(--glass-border);
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: opacity 0.3s ease;
}

.article-back:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .article-title { font-size: 2rem; }
  .article-hero-img { height: 250px; }
  .article-content { font-size: 1rem; }
}
