/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0b0b0f;
  --bg-secondary: #111118;
  --bg-card: #1a1a28;
  --bg-card-hover: #222236;
  --accent: #e50914;
  --accent-hover: #ff1a25;
  --gold: #c9a84c;
  --text-primary: #f0f0f0;
  --text-secondary: #8e8ea0;
  --border: #252538;
  --radius: 8px;
  --max-width: 1400px;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* === Header === */
.site-header {
  background: rgba(11,11,15,0.92);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold);
}
.logo .logo-icon { font-size: 1.5rem; }
.logo span { color: var(--text-primary); font-weight: 300; }

nav { display: flex; gap: 0.25rem; align-items: center; }
nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.2s;
}
nav a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
nav a.active { color: var(--gold); background: rgba(201,168,76,0.1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}


/* === Main Content === */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Hero Banner === */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  max-height: 480px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}
.hero-slide.active { display: block; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg-primary) 0%, transparent 50%),
              linear-gradient(90deg, rgba(11,11,15,0.85) 0%, transparent 60%);
}

.hero-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 40%;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1rem;
  max-width: 500px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.hero-actions { display: flex; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.hero-dots {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.hero-dots button.active { background: var(--gold); width: 24px; border-radius: 5px; }

/* === Genre Row === */
.genre-row {
  margin-bottom: 2rem;
}

.genre-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

.genre-row-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.genre-row-header a {
  font-size: 0.82rem;
  color: var(--gold);
  transition: color 0.2s;
}
.genre-row-header a:hover { color: var(--accent); }

.movie-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.movie-row::-webkit-scrollbar { display: none; }


/* === Movie Card === */
.movie-card {
  flex: 0 0 200px;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.movie-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.movie-card .poster {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}
.movie-card .poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.movie-card:hover .poster img { transform: scale(1.08); }

.movie-card .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.movie-card:hover .play-overlay { opacity: 1; }

.play-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-icon svg { fill: #fff; width: 18px; height: 18px; margin-left: 2px; }

.movie-card .card-info {
  padding: 0.6rem 0.7rem;
}
.movie-card .card-info h3 {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.movie-card .card-info p {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* === Genre Page Grid === */
.page-header {
  padding: 2rem 0 1rem;
}
.page-header h1 { font-size: 1.8rem; font-weight: 700; }
.page-header p { color: var(--text-secondary); margin-top: 0.3rem; }

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.movie-grid .movie-card { flex: none; }

/* === Watch / Player Page === */
.player-page { padding-top: 1rem; }

.player-container {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}

.video-js { width: 100%; aspect-ratio: 16/9; }
.video-js .vjs-big-play-button {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 72px; height: 72px;
  line-height: 72px;
  border: 2px solid rgba(255,255,255,0.8);
  background: rgba(229,9,20,0.85);
}

.movie-details {
  padding: 0.5rem 0 2rem;
}
.movie-details h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.3rem; }
.movie-details .meta { color: #ffffff; font-size: 0.9rem; margin-bottom: 0.75rem; }
.movie-details .description { color: #ffffff; font-size: 0.92rem; max-width: 700px; line-height: 1.7; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }

/* === Live Channel === */
.live-section { padding-top: 1rem; }

.live-badge-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.live-badge {
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.live-badge-bar h1 { font-size: 1.4rem; font-weight: 700; }

.live-info {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.live-info h3 { font-size: 1rem; }
.live-info p { font-size: 0.85rem; color: var(--text-secondary); }


/* === About Page === */
.about-content {
  max-width: 800px;
  padding: 2rem 0 3rem;
}
.about-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; color: var(--gold); }
.about-content h2 { font-size: 1.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.about-content p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }
.about-content .platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}
.about-content .platform-tag {
  background: var(--bg-card);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

/* === Footer === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.site-footer a { color: var(--gold); }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.75rem; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  nav.open { display: flex; }

  .hero { aspect-ratio: 16/9; max-height: 300px; }
  .hero-content { left: 1.25rem; right: 1.25rem; bottom: 1.25rem; }
  .hero-content h1 { font-size: 1.4rem; }
  .hero-content p { font-size: 0.82rem; }

  .genre-row-header h2 { font-size: 1rem; }
  .movie-card { flex: 0 0 155px; }
  .movie-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

  .page-header h1 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 1rem; }
  .logo { font-size: 1.15rem; }
  .main-content { padding: 0 1rem; }
  .hero-content h1 { font-size: 1.15rem; }
  .btn { padding: 0.5rem 1rem; font-size: 0.82rem; }
  .movie-card { flex: 0 0 140px; }
  .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
