/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --bg:       #080808;
  --bg-nav:   rgba(8,8,8,0.97);
  --bg-card:  #141414;
  --surface:  #1a1a1a;
  --accent:   #e50914;
  --accent-h: #f40612;
  --text:     #f0f0f0;
  --text-muted: #a0a0a0;
  --text-dim: #4a4a4a;
  --border:   rgba(255,255,255,0.07);
  --border-h: rgba(255,255,255,0.14);
  --radius:   10px;
  --radius-lg: 16px;
  --shadow:   0 8px 40px rgba(0,0,0,0.6);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.7);
  --t:        0.22s ease;
  --container: 1400px;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

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

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 66px;
}

.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 21px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.8px;
  flex-shrink: 0;
  text-transform: uppercase;
  background: linear-gradient(135deg, #e50914 0%, #ff4757 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.nav-link {
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t), background var(--t);
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--text); font-weight: 600; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
  white-space: nowrap;
  line-height: 1;
}

.lang-trigger:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.lang-dropdown.open .lang-trigger { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

.lang-chevron {
  opacity: 0.5;
  display: flex;
  align-items: center;
  transition: transform var(--t);
}
.lang-dropdown.open .lang-chevron { transform: rotate(180deg); }

.lang-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1c1c1c;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: none;
  flex-direction: column;
  min-width: 100px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 300;
  overflow: hidden;
}
.lang-dropdown.open .lang-list { display: flex; }

.lang-option {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}
.lang-option:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.lang-option.active { color: var(--accent); }

/* Legacy buttons (fallback, not shown normally) */
.lang-switcher { display: flex; align-items: center; gap: 2px; }
.lang-btn { padding: 4px 8px; border-radius: 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); transition: all var(--t); }
.lang-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.lang-btn.active { background: var(--accent); color: #fff; }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t);
}

/* ===== PAGE CONTENT ===== */
.page-content { padding-top: 66px; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229,9,20,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--t), border-color var(--t);
  white-space: nowrap;
}

.btn-secondary:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.25); }

/* ===== HERO BANNER ===== */
.hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transition: background-image 0.8s ease;
  transform: scale(1.03);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #080808 0%, rgba(8,8,8,0.72) 42%, rgba(8,8,8,0.12) 100%),
              linear-gradient(to right, rgba(8,8,8,0.7) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 clamp(20px, 5vw, 80px) 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 5px;
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(229,9,20,0.4);
}

.hero-title {
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.hero-rating { color: #f5c518; font-weight: 700; }

.hero-overview {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 26px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 24px;
  right: 32px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background var(--t), transform var(--t);
  border: none;
  padding: 0;
}

.hero-dot.active { background: var(--accent); transform: scale(1.3); }

/* ===== SECTIONS ===== */
.section { padding: 56px 0; }

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

.section-title {
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.2px;
}

.section-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 22px;
  background: linear-gradient(to bottom, #e50914, #ff4757);
  border-radius: 3px;
  flex-shrink: 0;
}

.see-all {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--t);
  white-space: nowrap;
  border: 1px solid var(--border);
  padding: 5px 13px;
  border-radius: 20px;
}

.see-all:hover { color: var(--text); border-color: var(--border-h); }

/* ===== CARD GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 18px;
}

.cards-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(229,9,20,0.4) transparent;
}

.cards-scroll::-webkit-scrollbar { height: 3px; }
.cards-scroll::-webkit-scrollbar-track { background: transparent; }
.cards-scroll::-webkit-scrollbar-thumb { background: rgba(229,9,20,0.5); border-radius: 2px; }
.cards-scroll .card { flex-shrink: 0; width: 158px; }

/* ===== CARD ===== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  border: 1px solid transparent;
  position: relative;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  border-color: rgba(255,255,255,0.1);
  z-index: 2;
}

.card-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-surface);
}

.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-poster img { transform: scale(1.06); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity var(--t);
}

.card:hover .card-overlay { opacity: 1; }

.btn-sm {
  padding: 6px 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  width: 78%;
  text-align: center;
  transition: all var(--t);
}

.btn-sm.red { background: var(--accent); color: #fff; }
.btn-sm.red:hover { background: var(--accent-h); }
.btn-sm.ghost {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}
.btn-sm.ghost:hover { background: rgba(255,255,255,0.2); }

.card-info { padding: 10px 12px; }

.card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.card-rating { color: #f5c518; font-weight: 600; }

/* ===== GENRE FILTER PILLS ===== */
.genre-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px 0;
  margin-bottom: 32px;
  scrollbar-width: none;
}

.genre-filters::-webkit-scrollbar { display: none; }

.genre-pill {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  transition: all var(--t);
  white-space: nowrap;
}

.genre-pill:hover { border-color: rgba(229,9,20,0.5); color: var(--text); }
.genre-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ===== PAGE HEADER ===== */
.page-header {
  padding: 80px 0 40px;
}

.page-header h1 {
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header p { color: var(--text-muted); font-size: 15px; }

/* ===== DETAIL PAGE ===== */
.detail-hero {
  position: relative;
  padding-top: 64px;
  min-height: 560px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.28);
}

.detail-backdrop-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(13,13,13,0.96) 40%, rgba(13,13,13,0.35) 100%),
    linear-gradient(to top, #0d0d0d 0%, transparent 30%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 44px;
  padding: 52px clamp(20px, 5vw, 80px) 72px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.detail-poster {
  flex-shrink: 0;
  width: clamp(150px, 18vw, 250px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.75);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.detail-info { flex: 1; min-width: 0; }

.detail-title {
  font-size: clamp(22px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
}

.detail-tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.detail-rating { color: #f5c518; font-weight: 700; font-size: 16px; }

.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.genre-tag {
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.detail-overview {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 580px;
}

.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== VIDEOS SECTION ===== */
.videos-section { padding: 48px 0; }

.video-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  margin-bottom: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6);
}

.video-main iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.video-thumbnails::-webkit-scrollbar { height: 4px; }
.video-thumbnails::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

.video-thumb {
  flex-shrink: 0;
  width: 210px;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--t), transform var(--t);
}

.video-thumb:hover, .video-thumb.active { border-color: var(--accent); transform: translateY(-2px); }

.video-thumb-img {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.video-thumb-img img { width: 100%; height: 100%; object-fit: cover; }

.video-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.38);
  transition: background var(--t);
}

.video-thumb:hover .video-thumb-play { background: rgba(229,9,20,0.45); }

.play-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon::after {
  content: '';
  border-style: solid;
  border-width: 7px 0 7px 14px;
  border-color: transparent transparent transparent #000;
  margin-left: 3px;
}

.video-thumb-title {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-card);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

/* ===== PROVIDERS SECTION ===== */
.providers-section { padding: 40px 0; }

.providers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90px;
  transition: border-color var(--t), transform var(--t);
  text-decoration: none;
}

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

.provider-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.provider-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

.no-providers { color: var(--text-muted); font-size: 14px; padding: 20px 0; }
.providers-note { font-size: 11px; color: var(--text-dim, #555); margin-top: 10px; }

/* ===== NEWS SECTION ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
  text-decoration: none;
  display: block;
  border: 1px solid transparent;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.55);
  border-color: var(--border);
}

.news-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface);
}

.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }

.news-card-body { padding: 16px; }

.news-source {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.news-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date { font-size: 12px; color: var(--text-muted); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}

.page-btn:hover { border-color: var(--accent); color: var(--text); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

/* ===== SKELETON LOADING ===== */
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position:  1000px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.8s infinite linear;
  border-radius: var(--radius);
}

.skeleton-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; }

.skeleton-poster {
  aspect-ratio: 2/3;
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.8s infinite linear;
}

.skeleton-info { padding: 10px 12px; }

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.8s infinite linear;
  margin-bottom: 8px;
}

.skeleton-line.short { width: 60%; margin-bottom: 0; }

.skeleton-news { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; }

.skeleton-news-img {
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.8s infinite linear;
}

.skeleton-news-body { padding: 16px; }

/* ===== SCROLL FADE-IN ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
  background: #0c0c0c;
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 64px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand { flex: 1; min-width: 180px; max-width: 280px; }

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #e50914 0%, #ff4757 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: center;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--t);
  font-weight: 500;
}
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .nav-right { margin-left: 0; margin-right: auto; }
[dir="rtl"] .hero-content { margin-left: auto; }
[dir="rtl"] .section-title { flex-direction: row-reverse; }
[dir="rtl"] .section-title::before { margin-right: 0; }
[dir="rtl"] .detail-hero-inner { flex-direction: row-reverse; }
[dir="rtl"] .footer-nav { justify-content: flex-start; }
[dir="rtl"] .hero-actions { flex-direction: row-reverse; }

/* RTL: keep mobile nav vertical */
@media (max-width: 768px) {
  [dir="rtl"] .nav-links { flex-direction: column; }
  [dir="rtl"] .mobile-lang-bar { flex-direction: row; }
  [dir="rtl"] .nav-inner { flex-direction: row; }
}

/* ===== WHEEL FAB ===== */
.wheel-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(229,9,20,0.4);
  z-index: 500;
  cursor: pointer;
  color: #fff;
  transition: transform 0.25s, box-shadow 0.25s;
}
.wheel-fab:hover {
  transform: scale(1.1) rotate(40deg);
  box-shadow: 0 6px 28px rgba(229,9,20,0.6);
}

/* ===== WHEEL MODAL ===== */
.wheel-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.wheel-modal.open { pointer-events: all; opacity: 1; }

.wheel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.wheel-panel {
  position: relative;
  background: #161616;
  border: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  height: 67vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 20px 28px;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.34, 1.4, 0.64, 1);
  overflow-y: auto;
}
.wheel-modal.open .wheel-panel { transform: translateY(0); }

@media (min-width: 769px) {
  .wheel-modal { align-items: center; }
  .wheel-panel { border-radius: 20px; max-height: 88vh; height: auto; }
}

.wheel-panel-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wheel-panel-title { font-size: 16px; font-weight: 700; color: var(--text); }

.wheel-close-btn {
  color: var(--text-muted);
  padding: 6px;
  border-radius: 50%;
  transition: background var(--t);
  display: flex;
}
.wheel-close-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.wheel-container-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 14px;
}
.wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  color: #fff;
  z-index: 2;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}
#wheelCanvas {
  border-radius: 50%;
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.wheel-spin-btn {
  width: 100%;
  max-width: 260px;
  justify-content: center;
  font-size: 15px;
}

.wheel-loading {
  color: var(--text-muted);
  font-size: 14px;
}

.wheel-result { width: 100%; }
.wheel-result-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  animation: fadeInUp 0.3s ease;
}
.wheel-result-poster {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}
.wheel-result-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.wheel-result-year { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 12px; }
  .cards-scroll .card { width: 135px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-nav);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-toggle { display: flex; }

  .hero { height: 72vh; min-height: 480px; }
  .hero-content { padding-bottom: 44px; }

  .detail-hero-inner { flex-direction: column; padding: 32px 20px 52px; gap: 24px; }
  .detail-poster { width: 150px; }
  .detail-backdrop-grad { background: linear-gradient(to top, #0d0d0d 0%, rgba(13,13,13,0.8) 60%, rgba(13,13,13,0.3) 100%); }

  .news-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-nav { justify-content: flex-start; }
  .lang-btn { padding: 3px 6px; font-size: 11px; }

  .section { padding: 36px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

/* ===== NAV SEARCH — Netflix pill style ===== */
.nav-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color 0.22s ease, background 0.22s ease;
}
.nav-search:focus-within {
  border-color: rgba(229,9,20,0.6);
  background: rgba(255,255,255,0.1);
}
.nav-search-input {
  background: transparent !important;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  padding: 7px 14px;
  width: 165px;
  font-family: inherit;
  -webkit-appearance: none;
}
.nav-search-input::placeholder { color: rgba(255,255,255,0.35); }
.nav-search-btn {
  padding: 7px 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.22s ease;
}
.nav-search-btn:hover { color: #fff; }

/* ===== LIKE SECTION ===== */
.like-section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
/* Thumbs up/down buttons */
.thumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.thumb-btn:hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.3); }
.thumb-up:hover { border-color: #22c55e; }
.thumb-up.active { background: #22c55e; border-color: #22c55e; color: #fff; }
.thumb-down:hover { border-color: #e63946; }
.thumb-down.active { background: #e63946; border-color: #e63946; color: #fff; }
/* Legacy like-btn alias */
.like-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 22px; border-radius: 50px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.15); color: #fff; cursor: pointer; transition: all 0.22s ease; }
.like-btn:hover { border-color: #e63946; background: rgba(230,57,70,0.15); }
.like-btn.liked, .like-btn.active { background: #22c55e; border-color: #22c55e; }
.like-count-label { font-size: 14px; color: var(--text-muted); }

/* ===== SITE ABOUT SECTION ===== */
.site-about-section {
  background: linear-gradient(135deg, rgba(229,9,20,0.07) 0%, rgba(255,255,255,0.02) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.site-about-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.site-about-left {
  flex: 0 0 320px;
}
.site-about-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 14px;
}
.site-about-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}
.site-random-btn {
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
}
.site-about-features {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.site-about-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.site-about-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(229,9,20,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.site-about-item strong { display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.site-about-item span { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ===== MOOD CHIPS ===== */
.mood-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.mood-chip {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}
.mood-chip:hover { border-color: var(--border-h); color: var(--text); }
.mood-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 768px) {
  .site-about-inner { flex-direction: column; gap: 24px; }
  .site-about-left { flex: none; }
  .site-about-features { grid-template-columns: 1fr; }
}

/* ===== COMMENT FORM ===== */
.comments-section { padding: 40px 0; border-top: 1px solid var(--border); }

.comment-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 80px;
  line-height: 1.6;
}
.comment-input::placeholder { color: rgba(255,255,255,0.25); }
.comment-form-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 12px;
}
#comments-list { margin-top: 8px; }

/* ===== WATCHLIST EMPTY ===== */
.watchlist-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}
.watchlist-empty .empty-icon { font-size: 56px; margin-bottom: 16px; }
.watchlist-empty h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--text); }

/* ===== SEARCH PAGE ===== */
.search-hero { padding: 80px 0 32px; }
.search-hero-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 24px 0 0;
}
.search-big-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  padding: 13px 22px;
  outline: none;
  transition: border-color 0.22s ease;
  -webkit-appearance: none;
}
.search-big-input:focus { border-color: var(--accent); }
.search-big-input::placeholder { color: rgba(255,255,255,0.3); }
.search-type-filters { display: flex; gap: 8px; margin-bottom: 28px; }

/* ===== NAV AUTH ===== */
#nav-auth { display: flex; align-items: center; }

/* ===== MOBILE SEARCH ===== */
@media (max-width: 900px) { .nav-search-input { width: 110px; } }
@media (max-width: 768px) {
  .nav-search { display: none; }
  .lang-switcher, .lang-dropdown { display: none; }
  #nav-auth .login-btn span, #nav-auth .user-name { display: none; }
}

.mobile-search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 36px; height: 36px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
}
.mobile-search-toggle:hover { background: rgba(255,255,255,0.13); color: #fff; }

.mobile-search-bar {
  display: none;
  background: var(--surface, #181818);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 10px 16px;
  position: relative;
  z-index: 99;
}
.mobile-search-bar.open { display: block; }
.mobile-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  overflow: hidden;
  padding: 0 6px 0 18px;
}
.mobile-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 15px;
  font-family: inherit;
  padding: 10px 0;
  -webkit-appearance: none;
  caret-color: #fff;
}
.mobile-search-input::placeholder { color: rgba(255,255,255,0.4) !important; -webkit-text-fill-color: rgba(255,255,255,0.4) !important; }
.mobile-search-input:-webkit-autofill { -webkit-text-fill-color: #fff !important; -webkit-box-shadow: 0 0 0 100px #1a1a1a inset !important; }
.mobile-search-submit {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
}
.mobile-search-submit:hover { color: #fff; }

@media (max-width: 768px) {
  .mobile-search-toggle { display: flex; }
}

/* ===== MOBILE LANG BAR ===== */
.mobile-lang-bar {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
@media (max-width: 768px) {
  .mobile-lang-bar { display: flex; }
}

.mobile-lang-btn {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.mobile-lang-btn:hover { color: var(--text); background: rgba(255,255,255,0.09); }
.mobile-lang-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== NATIVE AD CARDS ===== */
.ad-card {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  min-height: 240px;
  position: relative;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.ad-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.5); }
.ad-card-inner {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
}
.ad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.ad-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.ad-card-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}
.ad-card-cta {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  margin-top: 10px;
  align-self: flex-start;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}
.ad-card:hover .ad-card-cta { background: rgba(255,255,255,0.28); }

/* ===== SECTION BANNER AD ===== */
.section-banner-ad {
  margin: 0 0 40px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg,#0f0f1a 0%,#1a0a1e 100%);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 30px;
  cursor: default;
  position: relative;
}
.section-banner-ad::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(229,9,20,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.banner-ad-badge {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  position: absolute;
  top: 8px;
  right: 12px;
}
.banner-ad-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.banner-ad-text p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.banner-ad-btn {
  background: var(--accent, #e50914);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.banner-ad-btn:hover { background: #c0000c; transform: scale(1.03); }

/* ===== PRE-ROLL AD ===== */
.video-main { position: relative; }
.preroll-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 10;
  display: flex;
  flex-direction: column;
  border-radius: 4px;
  overflow: hidden;
}
.preroll-iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}
.preroll-top {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.preroll-label {
  background: rgba(0,0,0,0.65);
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.preroll-cta-link {
  background: var(--accent, #e50914);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 4px;
  text-decoration: none;
  pointer-events: all;
  transition: background 0.2s ease;
}
.preroll-cta-link:hover { background: #c0000c; }
.preroll-bottom {
  position: absolute;
  bottom: 12px;
  right: 12px;
}
.preroll-skip-wrap {
  background: rgba(0,0,0,0.7);
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  min-width: 100px;
  text-align: center;
}
.preroll-countdown {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}
.preroll-skip-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.2px;
}

/* ===== ACTOR CIRCLES ===== */
.actor-search-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  max-width: 360px;
}
.actor-search-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border-h);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--t);
  -webkit-text-fill-color: var(--text);
}
.actor-search-input:focus { border-color: var(--accent); }
.actor-search-btn {
  padding: 0 16px;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  display: flex;
  align-items: center;
  transition: background var(--t);
}
.actor-search-btn:hover { background: var(--accent-h); }

.actor-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}
.actor-scroll::-webkit-scrollbar { height: 4px; }
.actor-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 2px; }

.actor-circle-card {
  flex-shrink: 0;
  width: 88px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.22s ease;
}
.actor-circle-card:hover { transform: translateY(-4px); }

.actor-circle-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 8px;
  border: 2px solid transparent;
  background: var(--surface);
  transition: border-color 0.22s ease;
}
.actor-circle-card:hover .actor-circle-img-wrap {
  border-color: var(--accent);
}
.actor-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.actor-circle-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.actor-circle-dept {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Skeleton actor */
.skeleton-actor .actor-circle-img-wrap {
  animation: shimmer 1.5s infinite linear;
  background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
  background-size: 200% 100%;
}

/* ===== CAST SECTION ===== */
.cast-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}
.cast-scroll::-webkit-scrollbar { height: 4px; }
.cast-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.cast-card {
  flex-shrink: 0;
  width: 120px;
  cursor: pointer;
  transition: transform 0.22s ease;
}
.cast-card:hover { transform: translateY(-4px); }

.cast-photo-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2/3;
  background: #1a1a1a;
}
.cast-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cast-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.cast-card:hover .cast-hover-overlay { opacity: 1; }
.cast-hover-cta {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.3px;
}
.cast-info { padding: 8px 2px 0; }
.cast-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-character {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

/* ===== PERSON PANEL ===== */
.person-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}
.person-overlay.open { opacity: 1; pointer-events: all; }

.person-panel {
  position: fixed;
  top: 0;
  right: -520px;
  width: 480px;
  max-width: 98vw;
  height: 100vh;
  background: #111;
  z-index: 201;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.8);
}
.person-panel.open { right: 0; }

.person-panel-inner { padding: 0 0 60px; }

.pp-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, #111 80%, transparent);
  padding: 16px 20px 12px;
  display: flex;
  justify-content: flex-end;
}
.pp-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text);
  transition: background 0.2s;
}
.pp-close:hover { background: rgba(255,255,255,0.2); }

.pp-hero {
  display: flex;
  gap: 20px;
  padding: 0 20px 24px;
  align-items: flex-start;
  margin-top: -10px;
}
.pp-photo {
  width: 110px;
  height: 165px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.pp-photo-placeholder {
  width: 110px;
  height: 165px;
  border-radius: 10px;
  background: #222;
  flex-shrink: 0;
}
.pp-hero-info { flex: 1; min-width: 0; padding-top: 4px; }
.pp-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  color: var(--text);
}
.pp-dept {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}
.pp-meta-item {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.pp-meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  flex-shrink: 0;
  min-width: 44px;
}

.pp-section {
  padding: 0 20px 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.pp-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.pp-bio {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre-line;
}
.pp-bio-more {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.pp-bio-more:hover { text-decoration: underline; }

/* Known for horizontal scroll */
.pp-known-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.pp-known-scroll::-webkit-scrollbar { height: 3px; }
.pp-known-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.pp-known-card {
  flex-shrink: 0;
  width: 90px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.pp-known-card:hover { transform: scale(1.05); }
.pp-known-card img {
  width: 100%;
  border-radius: 7px;
  aspect-ratio: 2/3;
  object-fit: cover;
}
.pp-known-info { padding: 5px 2px 0; }
.pp-known-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-known-year { font-size: 10px; color: var(--text-muted); }

/* Filmography list */
.pp-filmography-grid { display: flex; flex-direction: column; gap: 2px; }
.pp-film-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.pp-film-row:hover { background: rgba(255,255,255,0.05); }
.pp-film-thumb {
  width: 40px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
}
.pp-film-info { flex: 1; min-width: 0; }
.pp-film-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-film-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-film-type {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(229,9,20,0.2);
  color: var(--accent);
  flex-shrink: 0;
  letter-spacing: 0.3px;
}
.pp-film-type.tv {
  background: rgba(71,120,255,0.2);
  color: #7899ff;
}

/* Loading spinner */
.person-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== DETAIL PAGE EXTRAS ===== */
.detail-crew-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.crew-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  min-width: 80px;
}
.crew-name-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.18s;
}
.crew-name-btn:hover { color: var(--accent); }

.detail-financials {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
}
.fin-item { display: flex; flex-direction: column; gap: 2px; }
.fin-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}
.fin-val { font-size: 15px; font-weight: 700; color: var(--text); }

.detail-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dmeta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.dmeta-icon { font-size: 13px; }
.dmeta-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); margin-right: 2px; }
.dmeta-rating { color: #f5c518; font-weight: 700; }
.dmeta-status {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
}
.detail-tagline {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 12px;
}

@media (max-width: 640px) {
  .person-panel { width: 100vw; right: -100vw; }
  .pp-hero { flex-direction: column; }
  .pp-photo, .pp-photo-placeholder { width: 80px; height: 120px; }
  .cast-card { width: 95px; }
}
.preroll-skip-btn:hover { color: var(--accent, #e50914); }

/* ===== WEEKLY PAGE ===== */
.weekly-hero {
  padding: 48px 0 36px;
  text-align: center;
}
.weekly-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229,9,20,0.15);
  border: 1px solid rgba(229,9,20,0.3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.weekly-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.weekly-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.weekly-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.weekly-countdown {
  font-size: 13px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
}
.weekly-cta-box {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  margin: 32px 0 48px;
}
.weekly-cta-box h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.weekly-cta-box p  { color: var(--text-muted); margin-bottom: 20px; }

/* ===== TOP 10 ===== */
.top10-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.top10-tab {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.top10-tab:hover { color: var(--text); background: rgba(255,255,255,0.09); }
.top10-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.top10-grid { display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px; }

.top10-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s;
}
.top10-row:hover { background: rgba(255,255,255,0.05); }
.skeleton-row { pointer-events: none; }

.top10-rank {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-dim);
  min-width: 36px;
  text-align: center;
  line-height: 1;
}
.top10-rank.gold   { color: #FFD700; }
.top10-rank.silver { color: #C0C0C0; }
.top10-rank.bronze { color: #CD7F32; }

.top10-poster {
  width: 54px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.top10-info { flex: 1; min-width: 0; }
.top10-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.top10-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.top10-type-badge {
  background: rgba(229,9,20,0.15);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.top10-share-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all var(--t);
  flex-shrink: 0;
}
.top10-share-btn:hover { color: var(--text); border-color: var(--border-h); }

/* ===== QUIZ ===== */
.quiz-page-hero { padding: 48px 0 24px; text-align: center; }

.quiz-wrap {
  max-width: 760px;
  margin: 0 auto 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.quiz-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.quiz-step-num { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.quiz-step-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 10px; }
.quiz-q {
  font-size: clamp(17px, 2.8vw, 22px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.35;
}
.quiz-hint { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }

/* Age grid */
.quiz-age-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.quiz-age-btn {
  padding: 14px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: all 0.18s ease;
}
.quiz-age-btn:hover {
  background: rgba(229,9,20,0.1);
  border-color: rgba(229,9,20,0.4);
  transform: translateY(-2px);
}

/* Mood grid */
.quiz-mood-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-mood-btn {
  width: 100%;
  text-align: left;
  padding: 15px 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.18s ease;
  line-height: 1.4;
}
.quiz-mood-btn:hover {
  background: rgba(229,9,20,0.1);
  border-color: rgba(229,9,20,0.4);
  transform: translateX(4px);
}

/* Genre grid */
.quiz-genre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.quiz-genre-btn {
  padding: 9px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.18s ease;
}
.quiz-genre-btn:hover { color: var(--text); background: rgba(255,255,255,0.08); }
.quiz-genre-btn.selected {
  background: rgba(229,9,20,0.15);
  border-color: rgba(229,9,20,0.5);
  color: #fff;
  font-weight: 600;
}
.quiz-next-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: background var(--t), opacity var(--t);
}
.quiz-next-btn:disabled { opacity: 0.3; cursor: default; }
.quiz-next-btn:not(:disabled):hover { background: var(--accent-h); }

/* Film pick grid */
.quiz-film-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: start;
}
.quiz-film-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease;
}
.quiz-film-card:hover { transform: translateY(-4px); }
.quiz-film-card.quiz-film-selected { opacity: 0.5; pointer-events: none; }
.quiz-film-poster-wrap {
  position: relative;
  width: 100%;
  padding-top: 150%; /* 2:3 aspect ratio */
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  flex-shrink: 0;
}
.quiz-film-poster-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.quiz-film-select-overlay {
  position: absolute;
  inset: 0;
  background: rgba(229,9,20,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.2s;
}
.quiz-film-card:hover .quiz-film-select-overlay { opacity: 1; }
.quiz-film-footer {
  padding: 8px 2px 0;
  height: 44px;
  overflow: hidden;
}
.quiz-film-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}
.quiz-film-year { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.quiz-film-skeleton .quiz-film-poster-wrap {
  animation: shimmer 1.5s infinite linear;
  background: linear-gradient(90deg,#1a1a1a 25%,#2a2a2a 50%,#1a1a1a 75%);
  background-size: 200% 100%;
}
.quiz-film-skeleton .quiz-film-footer { background: transparent; }

/* AI loading */
.quiz-ai-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 20px;
}
.quiz-ai-text { font-size: 14px; color: var(--text-muted); }

/* Results */
.quiz-results-header { text-align: center; padding: 8px 0 24px; }
.quiz-result-list { display: flex; flex-direction: column; gap: 16px; }
.quiz-result-card {
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--t);
}
.quiz-result-card:hover { border-color: var(--border-h); }
.quiz-result-poster {
  width: 90px;
  flex-shrink: 0;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}
.quiz-result-poster:hover { opacity: 0.85; }
.quiz-result-info {
  padding: 18px 16px 18px 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.quiz-result-title { font-size: 17px; font-weight: 700; }
.quiz-result-meta  { font-size: 13px; color: var(--text-muted); }
.quiz-result-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.quiz-result-actions .btn-primary,
.quiz-result-actions .btn-secondary { padding: 8px 18px; font-size: 13px; text-decoration: none; }

@media (max-width: 600px) {
  .quiz-film-grid { grid-template-columns: repeat(3, 1fr); overflow-x: auto; }
  .quiz-wrap { padding: 20px 16px; }
  .quiz-result-poster { width: 70px; }
  .quiz-age-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== AI YOUTUBE ===== */
.ai-yt-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.ai-yt-desc span { color: var(--text); font-weight: 600; }
.yt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.yt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease;
  display: block;
}
.yt-card:hover { transform: translateY(-4px); border-color: var(--border-h); }
.yt-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}
.yt-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  font-size: 28px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.yt-card:hover .yt-play-btn { opacity: 1; }
.yt-card-info { padding: 12px 14px; }
.yt-card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.yt-card-channel { font-size: 11px; color: var(--text-muted); }
.skeleton-yt .yt-card-thumb { animation: shimmer 1.5s infinite linear; background: linear-gradient(90deg,#1a1a1a 25%,#2a2a2a 50%,#1a1a1a 75%); background-size: 200% 100%; }

.ai-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===== HOME FEATURE CARDS ===== */
.home-feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.home-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease;
}
.home-feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.hfc-coming { opacity: 0.6; cursor: default; }
.hfc-coming:hover { transform: none; border-color: var(--border); }
.hfc-icon { font-size: 28px; flex-shrink: 0; }
.hfc-text { flex: 1; min-width: 0; }
.hfc-text h3 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.hfc-text p  { font-size: 12px; color: var(--text-muted); }
.hfc-arrow { font-size: 18px; color: var(--text-dim); }
.hfc-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== NEWSLETTER ===== */
.newsletter-box {
  background: linear-gradient(135deg, rgba(229,9,20,0.1) 0%, rgba(8,8,8,0) 60%);
  border: 1px solid rgba(229,9,20,0.2);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-left { flex: 1; min-width: 200px; }
.newsletter-title { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.newsletter-sub   { font-size: 14px; color: var(--text-muted); }
.newsletter-form  { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-input {
  padding: 11px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-h);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  width: 240px;
  transition: border-color var(--t);
  -webkit-text-fill-color: var(--text);
}
.newsletter-input:focus { border-color: var(--accent); }
.newsletter-success {
  color: #4caf50;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 0;
}

@media (max-width: 768px) {
  .newsletter-box { flex-direction: column; gap: 20px; padding: 28px; }
  .newsletter-input { width: 100%; }
  .quiz-wrap { padding: 24px 18px; }
  .home-feature-cards { grid-template-columns: 1fr 1fr; }
  .yt-grid { grid-template-columns: 1fr; }
  .top10-share-btn { display: none; }
}
