    * { box-sizing: border-box; margin: 0; padding: 0; }
    :root{
      --bg:#141414; --muted:#bdbdbd; --accent:#e50914; --card:#2f3140;
      --glass: rgba(255,255,255,0.04);
    }

    body{
      font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      background: linear-gradient(180deg, #0f0f0f 0%, #141414 60%);
      color:#fff;
      min-height:100vh;
      line-height:1.4;
      -webkit-font-smoothing:antialiased;
      scroll-behavior: smooth;
      overflow-x: hidden;
    }

    .site-header{
      position:fixed; top:0; left:0; right:0;
      background: rgba(0,0,0,0.45);
      border-bottom: 1px solid rgba(255,255,255,0.03);
      z-index:1000;
      backdrop-filter: blur(6px);
    }
    .header-inner{
      max-width:1400px; margin:0 auto; padding:12px 20px;
      display:flex; align-items:center; justify-content:space-between;
      flex-wrap: wrap;
      gap: 16px;
    }
    .logo {
      background: #fff;
      border-radius: 8px;
      padding: 4px 12px;
      display: inline-block;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    .logo img { height: 36px; display: block; }
    .primary-nav ul{ 
      list-style:none; 
      display:flex; 
      gap:22px; 
      align-items: center;
      flex-wrap: wrap;
    }
    .primary-nav a{
      text-decoration:none; color:#fff; font-weight:600; opacity:0.95;
      transition: color .18s, transform .18s;
    }
    .primary-nav a:hover{ color:var(--accent); transform:translateY(-2px); }
    .primary-nav a.active { color: var(--accent); }

    .series-hero {
      margin-top: 72px;
      height: 85vh;
      min-height: 500px;
      position: relative;
      background: linear-gradient(rgba(0,0,0,0.4), rgba(20,20,20,0.9)), 
                  url('https://m.media-amazon.com/images/M/MV5BMjE2N2MyMzEtNmU5NS00OTI0LTlkNTMtMWM1YWYyNmU4NmY0XkEyXkFqcGc@._V1_FMjpg_UX1000_.jpg') center/cover;
      display: flex;
      align-items: flex-end;
      padding: 0 50px 80px;
    }

    .hero-content {
      max-width: 600px;
      z-index: 2;
    }

    .hero-content h1 {
      font-size: clamp(2rem, 5vw, 4rem);
      font-weight: 800;
      margin-bottom: 16px;
      text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    }

    .hero-meta {
      display: flex;
      gap: 12px;
      align-items: center;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }

    .hero-meta span {
      font-size: 14px;
      color: var(--muted);
    }

    .match-badge {
      color: #46d369;
      font-weight: 700;
    }

    .hero-description {
      font-size: 16px;
      line-height: 1.6;
      margin-bottom: 24px;
      color: rgba(255,255,255,0.9);
    }

    .hero-buttons {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 0;
      cursor: pointer;
      border-radius: 6px;
      padding: 12px 28px;
      font-weight: 700;
      font-size: 16px;
      transition: all 0.2s;
    }

    .btn.primary {
      background: #fff;
      color: #000;
    }

    .btn.primary:hover {
      background: rgba(255,255,255,0.8);
      transform: scale(1.05);
    }

    .btn.secondary {
      background: rgba(109,109,110,0.7);
      color: #fff;
    }

    .btn.secondary:hover {
      background: rgba(109,109,110,0.5);
    }

    .content-section {
      padding: 40px 50px;
      max-width: 1400px;
      margin: 0 auto;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .section-title {
      font-size: 24px;
      font-weight: 700;
    }

    .filter-group {
      display: flex;
      gap: 12px;
    }

    .filter-btn {
      background: var(--glass);
      border: 1px solid rgba(255,255,255,0.1);
      color: #fff;
      padding: 8px 16px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
      font-size: 14px;
    }

    .filter-btn:hover, .filter-btn.active {
      background: rgba(255,255,255,0.15);
      border-color: rgba(255,255,255,0.3);
    }
    .series-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 16px;
      margin-bottom: 40px;
    }

    .series-card {
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s, box-shadow 0.3s;
    }

    .series-card:hover {
      transform: scale(1.05);
      box-shadow: 0 8px 24px rgba(0,0,0,0.6);
      z-index: 10;
    }

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

    .series-info {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 16px;
      background: linear-gradient(transparent, rgba(0,0,0,0.95));
      transform: translateY(100%);
      transition: transform 0.3s;
    }

    .series-card:hover .series-info {
      transform: translateY(0);
    }

    .series-info h3 {
      font-size: 16px;
      margin-bottom: 4px;
    }

    .series-info p {
      font-size: 12px;
      color: var(--muted);
    }

    .carousel-container {
      position: relative;
      margin-bottom: 40px;
    }

    .carousel {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      scroll-behavior: smooth;
      padding: 8px 0;
      scrollbar-width: none;
    }

    .carousel::-webkit-scrollbar {
      display: none;
    }

    .carousel-item {
      min-width: 300px;
      flex-shrink: 0;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s;
    }

    .carousel-item:hover {
      transform: scale(1.05);
    }

    .carousel-item img {
      width: 100%;
      height: 170px;
      object-fit: cover;
    }

    .scroll-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0,0,0,0.7);
      border: none;
      color: #fff;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      cursor: pointer;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .scroll-btn:hover {
      background: rgba(0,0,0,0.9);
    }

    .scroll-btn.left { left: 10px; }
    .scroll-btn.right { right: 10px; }

    .series-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.9);
      z-index: 2000;
      overflow-y: auto;
      padding: 40px 20px;
    }

    .series-modal.active {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal-content {
      background: #181818;
      border-radius: 8px;
      max-width: 900px;
      width: 100%;
      position: relative;
      animation: slideUp 0.4s ease-out;
    }

    @keyframes slideUp {
      from { transform: translateY(50px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }

    .close-modal {
      position: absolute;
      top: 16px;
      right: 16px;
      background: #181818;
      border: none;
      font-size: 28px;
      color: #fff;
      cursor: pointer;
      z-index: 10;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .close-modal:hover {
      background: #282828;
    }

    .modal-hero {
      position: relative;
      height: 400px;
      overflow: hidden;
    }

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

    .modal-hero::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 60%;
      background: linear-gradient(to top, #181818, transparent);
    }

    .modal-hero-content {
      position: absolute;
      bottom: 40px;
      left: 48px;
      right: 48px;
      z-index: 2;
    }

    .modal-title {
      font-size: 36px;
      font-weight: 700;
      margin-bottom: 16px;
    }

    .modal-body {
      padding: 32px 48px 48px;
    }

    .season-selector {
      display: flex;
      gap: 8px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }

    .season-btn {
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      color: #fff;
      padding: 8px 16px;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.2s;
    }

    .season-btn:hover, .season-btn.active {
      background: var(--accent);
      border-color: var(--accent);
    }

    .episodes-list {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .episode-item {
      display: flex;
      gap: 16px;
      padding: 16px;
      background: rgba(255,255,255,0.05);
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.2s;
    }

    .episode-item:hover {
      background: rgba(255,255,255,0.1);
    }

    .episode-thumb {
      width: 150px;
      height: 85px;
      border-radius: 4px;
      object-fit: cover;
      flex-shrink: 0;
    }

    .episode-info {
      flex: 1;
    }

    .episode-number {
      font-size: 14px;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .episode-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .episode-description {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.4;
    }

    .episode-duration {
      font-size: 12px;
      color: var(--muted);
      margin-left: auto;
      align-self: center;
    }

    @media (max-width: 768px) {
      .series-hero { padding: 0 20px 40px; height: 70vh; }
      .content-section { padding: 20px; }
      .series-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
      .series-card img { height: 220px; }
      .carousel-item { min-width: 240px; }
      .modal-body { padding: 24px; }
      .modal-hero-content { left: 24px; right: 24px; }
      .episode-item { flex-direction: column; }
      .episode-thumb { width: 100%; height: 140px; }
    }
    /* Theme switch slider */
.theme-switch-wrapper {
  display: inline-block;
  vertical-align: middle;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #c13109; /* Blue when active */
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Optional: dark/light body colors */
body {
  background-color: #111;
  color: #fff;
  transition: all 0.3s ease;
}

body.light-mode {
  background-color: #fff;
  color: #f88080;
}

