/* ========================================
   STREAMLINE — CSS
   Thème Noir & Blanc Moderne
======================================== */

/* ---- Variables ---- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-elevated: #1e1e1e;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.2);

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #555555;

  --accent: #ffffff;
  --accent-dim: rgba(255,255,255,0.1);
  --accent-hover: rgba(255,255,255,0.15);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --navbar-h: 72px;
  --shadow-card: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(255,255,255,0.05);
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ==============================
   NAVBAR
============================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--navbar-h);
  transition: background var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 22px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--border-hover);
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition);
}

.logo:hover .logo-icon {
  background: var(--accent-dim);
  border-color: var(--text-primary);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link svg {
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--accent-dim);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.search-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
  transition: border-color var(--transition), width var(--transition);
  width: 220px;
}

.search-wrapper:focus-within {
  border-color: var(--border-hover);
  width: 280px;
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13.5px;
  padding: 9px 16px;
  font-family: inherit;
}

.search-input::placeholder { color: var(--text-muted); }

.search-btn {
  padding: 9px 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.search-btn:hover { color: var(--text-primary); }

.btn-profile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.btn-profile:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--accent-dim);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--text-primary); }

/* ==============================
   HERO
============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero[hidden] { display: none; }

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #0a0a0a;
  background-position: right center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: -24px;
  background-image: inherit;
  background-size: cover;
  background-position: right center;
  filter: blur(24px);
  opacity: .35;
  transform: scale(1.05);
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.5) 42%, rgba(10,10,10,0.08) 100%),
    linear-gradient(to top, rgba(10,10,10,0.82) 0%, transparent 48%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-placeholder-img {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255,255,255,0.015) 40px,
      rgba(255,255,255,0.015) 80px
    ),
    linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #141414 100%);
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-indicator:hover {
  background: rgba(255,255,255,0.6);
}

.hero-indicator.active {
  background: #fff;
  border-color: rgba(255,255,255,0.3);
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(10,10,10,0.95) 40%, rgba(10,10,10,0.3) 100%),
    linear-gradient(to top, rgba(10,10,10,1) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  padding-top: var(--navbar-h);
  max-width: 620px;
  margin-left: max(32px, calc(50vw - 680px));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--border-hover);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 18px;
  color: var(--text-primary);
}

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

.meta-tag {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.meta-dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

.meta-rating {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid var(--border-hover);
}

.hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

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

/* ==============================
   INFINITE PLATFORM STRIP
============================== */
.platform-strip {
  overflow: hidden;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.045);
  border-bottom: 1px solid rgba(255,255,255,.045);
  background: linear-gradient(90deg, #101010, #15100f 50%, #101010);
}

.platform-track {
  display: flex;
  width: max-content;
  animation: platform-marquee 38s linear infinite;
}

.platform-set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
}

.platform-logo {
  min-width: 96px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: rgba(255,255,255,.65);
  background: rgba(12,12,12,.72);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .07em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.platform-logo:hover,
.platform-logo:focus-visible {
  color: #fff;
  border-color: rgba(226,72,52,.7);
  background: rgba(226,72,52,.12);
  transform: translateY(-2px);
  outline: none;
}

.platform-strip:hover .platform-track,
.platform-strip:focus-within .platform-track {
  animation-play-state: paused;
}

@keyframes platform-marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .platform-track { animation: none; }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  letter-spacing: -0.2px;
}
.btn-primary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,255,255,0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--accent-dim);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hover);
  transition: all var(--transition);
  letter-spacing: -0.2px;
}
.btn-secondary:hover {
  background: var(--accent-hover);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-2px);
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  background: var(--accent-dim);
}
.btn-icon:hover {
  background: var(--accent-hover);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.35);
}

/* Hero scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.hero-scroll-indicator span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-lr;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* ==============================
   SECTIONS
============================== */
.section {
  padding: 60px 0;
  max-width: 100%;
  overflow: hidden;
}

.section-dark {
  background: var(--bg-secondary);
  margin: 0;
  padding: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0 max(32px, calc(50vw - 700px));
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.section-more {
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.section-more[hidden] { display: none; }
.section-more:hover { color: var(--text-primary); }

.row-scroll-controls {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.row-scroll-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  background: var(--bg-card);
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}

.row-scroll-btn:hover:not(:disabled) { background: var(--bg-elevated); }
.row-scroll-btn:disabled { opacity: 0.35; cursor: default; }
.row-scroll-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.row-scroll-controls ~ .section-more { margin-left: 0; }

/* Filter buttons */
.section-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--text-primary);
  background: var(--accent-dim);
  border-color: var(--border-hover);
}
.filter-btn span {
  margin-left: 5px;
  color: inherit;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}

/* ==============================
   CARDS ROW (horizontal scroll)
============================== */
.cards-row-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding-inline: clamp(32px, 4vw, 72px);
}

.cards-row-scroll-left,
.cards-row-scroll-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.cards-row-scroll-left {
  left: 0;
}

.cards-row-scroll-right {
  right: 0;
}

.cards-row-wrapper:hover .cards-row-scroll-left,
.cards-row-wrapper:hover .cards-row-scroll-right {
  opacity: 1;
  pointer-events: auto;
}

.cards-row-scroll-left:hover,
.cards-row-scroll-right:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.cards-row-scroll-left svg,
.cards-row-scroll-right svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.cards-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  touch-action: pan-x;
  padding: 8px 16px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  flex: 1;
  scroll-behavior: smooth;
}
.cards-row::-webkit-scrollbar { display: none; }

/* ==============================
   CARD
============================== */
.card {
  flex-shrink: 0;
  width: 200px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  scroll-snap-align: start;
  border: 1px solid var(--border);
  position: relative;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
  z-index: 2;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

/* Placeholder animé */
.card-thumb-inner {
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
  background-size: 200% 200%;
  animation: shimmer 2.5s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb-inner.no-image::before {
  content: 'Aucune affiche';
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-no-poster {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: rgba(255,255,255,0.1);
  font-size: 40px;
  font-weight: bold;
}

.card-ranked .card-rank {
  position: absolute;
  z-index: 3;
  left: -5px;
  bottom: 3px;
  color: #080808;
  font-size: 76px;
  font-weight: 900;
  line-height: .8;
  -webkit-text-stroke: 2px rgba(255,255,255,.9);
  text-shadow: 0 2px 12px rgba(0,0,0,.85);
  pointer-events: none;
}

@keyframes shimmer {
  0% { background-position: 200% 200%; }
  100% { background-position: -200% -200%; }
}

.card-thumb-icon {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 18px;
}

/* Play overlay on hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover .card-overlay { opacity: 1; }

.card-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform var(--transition);
}
.card:hover .card-play-btn { transform: scale(1); }

.card-info {
  padding: 14px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.card-rating {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-genre {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-desc-empty {
  color: var(--text-muted);
  font-style: italic;
}

.section-halloween {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(173,49,27,.17), transparent 50%),
    linear-gradient(180deg, #17100f, #0d0b0b 80%);
  border-top: 1px solid rgba(212,82,50,.2);
  border-bottom: 1px solid rgba(212,82,50,.12);
}

.section-halloween::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: max(32px, calc(50vw - 700px));
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, #f05a36, transparent);
  content: '';
}

.halloween-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #ed7955;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}

.section-halloween .section-title {
  color: #fff4ef;
}

.section-halloween .card {
  border-color: rgba(224,91,58,.2);
  background: #171211;
}

.section-halloween .card:hover {
  border-color: rgba(240,108,72,.65);
  box-shadow: 0 12px 34px rgba(130,36,19,.25);
}

.section-halloween .card-rank {
  color: #f3a188;
  -webkit-text-stroke-color: rgba(20,8,6,.9);
  text-shadow: 0 2px 14px rgba(0,0,0,.95);
}

/* Progress bar (continue watching) */
.card-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
}
.card-progress-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: 0 3px 3px 0;
}

/* WIDE CARD (16/9) */
.card-wide {
  width: 300px;
}
.card-wide .card-thumb {
  aspect-ratio: 16/9;
}

/* ==============================
   CARDS GRID (nouveautés)
============================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 8px max(32px, calc(50vw - 700px)) 20px;
}

.cards-grid .card {
  width: 100%;
}

/* ==============================
   TOP 10
============================== */
.top10-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 max(32px, calc(50vw - 700px));
}

.top10-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid transparent;
}
.top10-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
}

.top10-rank {
  font-size: 42px;
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  letter-spacing: -2px;
  width: 60px;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.top10-thumb {
  width: 60px;
  height: 80px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  flex-shrink: 0;
  overflow: hidden;
}
.top10-thumb-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  animation: shimmer 3s ease-in-out infinite;
}

.top10-info {
  flex: 1;
  min-width: 0;
}
.top10-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top10-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.top10-action {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.top10-item:hover .top10-action {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

/* ==============================
   GENRE GRID
============================== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 8px max(32px, calc(50vw - 700px)) 20px;
}

.genre-card {
  position: relative;
  height: 90px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  transition: all var(--transition);
  overflow: hidden;
  letter-spacing: -0.3px;
}

.genre-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.genre-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.genre-card:hover::before { opacity: 1; }

.provider-page {
  min-height: 100vh;
  padding-top: calc(var(--navbar-h) + 36px);
}

.provider-page .section-header {
  align-items: flex-end;
  justify-content: space-between;
}

.provider-heading {
  padding: 28px max(32px, calc(50vw - 700px)) 12px;
}

.provider-heading h1 {
  margin: 8px 0;
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: -.05em;
}

.provider-heading p {
  color: var(--text-muted);
}

.provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  padding: 20px max(32px, calc(50vw - 700px)) 60px;
}

.provider-grid .card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.provider-empty {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  background: var(--bg-card);
}

.halloween-empty {
  flex: 1;
  margin: 0 16px;
  padding: 22px;
  border: 1px solid rgba(224,91,58,.18);
  border-radius: var(--radius-md);
  color: #c7a49a;
  background: rgba(25,15,13,.72);
}

/* ==============================
   FOOTER
============================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 max(32px, calc(50vw - 700px));
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}
.footer-tagline {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 120px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px max(32px, calc(50vw - 700px));
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==============================
   MODAL
============================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-slow);
  position: relative;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all var(--transition);
}
.modal-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.modal-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: 
    linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 50%, #1e1e1e 100%);
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}

.modal-body {
  padding: 24px;
}
.modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.modal-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 22px;
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==============================
   PLAYER PAGE
============================== */
.player-page {
  background: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.player-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 32px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
  transition: transform var(--transition);
}

.wp-toggle-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
}

.wp-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.player-back {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.player-back:hover { color: var(--text-primary); }

.player-nav-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.player-external-link {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 13px;
}

.player-external-link:hover { color: var(--text-primary); }

.player-container {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.player-layout {
  flex: 1;
  width: 100%;
  max-width: 1480px;
  margin: 80px auto 32px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  transition: all var(--transition-slow);
}

.player-layout.has-episodes {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: stretch;
}

.player-layout.has-watch-party {
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: stretch;
}

.player-layout.has-episodes.has-watch-party {
  grid-template-columns: minmax(0, 1fr) 340px 350px;
}

/* Watch Party Sidebar */
.watch-party-sidebar {
  display: flex;
  flex-direction: column;
  background: #121212;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: min(675px, calc(100vh - 140px));
}

.wp-tabs {
  display: flex;
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wp-tab {
  flex: 1;
  padding: 12px 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.wp-tab.active {
  color: #fff;
}

.wp-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #fff;
}

.wp-count {
  background: rgba(255,255,255,0.1);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  margin-left: 4px;
}

.wp-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.wp-panel {
  display: none;
  height: 100%;
  flex-direction: column;
}

.wp-panel.active {
  display: flex;
}

/* Settings Styles */
.wp-setting-group {
  margin-bottom: 24px;
}

.wp-setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.wp-setting-label {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.wp-setting-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 4px 0 0;
}

.wp-setting-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  padding: 4px;
  border-radius: 8px;
}

.wp-control-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,0.05);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.wp-control-btn:hover {
  background: rgba(255,255,255,0.1);
}

.wp-control-value {
  font-size: 14px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.wp-select {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  margin-top: 8px;
  outline: none;
}

/* Switch Styles */
.wp-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

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

.wp-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #333;
  transition: .4s;
  border-radius: 24px;
}

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

input:checked + .wp-slider {
  background-color: #fff;
}

input:checked + .wp-slider:before {
  transform: translateX(20px);
  background-color: #000;
}

/* Chat Styles */
.wp-chat-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
}

.wp-chat-input {
  display: flex;
  gap: 8px;
}

.wp-chat-input input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

#wpChatSend {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: none;
  background: #fff;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-page-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 32px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.player-info-poster {
  width: 160px;
  max-height: 240px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: #141414;
  flex: 0 0 auto;
}

.player-info-copy { min-width: 0; }
.player-info-copy h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
.player-info-copy #infoMeta {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.player-info-copy #infoDesc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 700px;
  margin: 0;
}

.player-placeholder {
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.player-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.01) 2px,
      rgba(255,255,255,0.01) 4px
    );
}

.player-play-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 28px;
  transition: all var(--transition);
}
.player-play-icon:hover {
  border-color: rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
}

.player-label {
  font-size: 14px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

.next-episode-btn {
  position: absolute;
  right: 24px;
  bottom: 86px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  background: rgba(18,18,18,.92);
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.next-episode-btn:hover { background: rgba(48,48,48,.96); }
.next-episode-btn[hidden] { display: none; }

.episodes-sidebar {
  min-width: 0;
  height: min(750px, calc(100vh - 160px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: #121212;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.episodes-sidebar[hidden] { display: none; }

.episodes-sidebar-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.en-lecture-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.episodes-header-top h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.episode-current-info {
  font-size: 13px;
  font-weight: 600;
  color: #4CAF50;
  display: flex;
  align-items: center;
  gap: 6px;
}

.episode-current-info::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CAF50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.episodes-header-nav {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.episodes-nav-btn {
  flex: 1;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.episodes-nav-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.season-select-wrapper {
  position: relative;
  width: 100%;
}

.season-select-wrapper select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
  transition: all var(--transition);
}

.season-select-wrapper select:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.season-select-wrapper .select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

.episode-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.episode-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition);
  width: 100%;
  text-align: left;
}

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

.episode-item.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.episode-thumb-container {
  position: relative;
  width: 100px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.episode-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.episode-item:hover .episode-thumb,
.episode-item.active .episode-thumb {
  opacity: 1;
}

.episode-watched-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.episode-item.watched .episode-watched-overlay {
  opacity: 1;
}

.episode-watched-icon {
  width: 18px;
  height: 18px;
  color: #4CAF50;
}

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

.episode-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.episode-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.episode-meta span.watched-text {
  color: var(--text-secondary);
}

.episodes-sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 12px;
}

.next-episode-full-btn {
  flex: 1;
  padding: 14px;
  background: #fff;
  color: #000;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition);
}

.next-episode-full-btn:hover {
  transform: scale(1.02);
}

.download-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.download-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Player controls */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 32px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.player-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  margin-bottom: 16px;
  cursor: pointer;
  overflow: hidden;
}
.player-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: width 0.3s linear;
}

.player-ctrl-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ctrl-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition);
}
.ctrl-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
}
.ctrl-btn.ctrl-play {
  width: 48px;
  height: 48px;
  background: var(--text-primary);
  color: var(--bg-primary);
}
.ctrl-btn.ctrl-play:hover {
  background: #e0e0e0;
}

.ctrl-time {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

.ctrl-spacer { flex: 1; }

/* ===== PROFILE MODAL ===== */
.modal-small {
  max-width: 450px !important;
}

.modal-header-simple {
  padding: 24px 24px 0;
}

.modal-header-simple h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
}

.profile-info-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
}

.profile-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}

.profile-meta-item .label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.profile-meta-item .value {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-gray {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}

.badge-green {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
}

/* Fluidity & Performance */
.player-layout, .watch-party-sidebar, .episodes-sidebar, .card, .hero-slide {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.player-layout, .watch-party-sidebar, .episodes-sidebar {
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive Overrides */
@media (max-width: 1200px) {
  .player-layout.has-episodes.has-watch-party {
    grid-template-columns: 1fr;
  }
}
.fade-in {
  animation: fadeIn 0.6s ease-out both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.stagger > * {
  animation: fadeIn 0.5s ease-out both;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.10s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.20s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.30s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.40s; }

/* ==============================
   INTRO ANIMATION OVERLAY
============================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-out;
}

.intro-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.intro-overlay.hide {
  opacity: 0;
  pointer-events: none;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.intro-logo {
  width: 120px;
  height: 120px;
  animation: logoGlow 2s ease-in-out infinite alternate;
}

.intro-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes logoGlow {
  from {
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
    transform: scale(1);
  }
  to {
    filter: drop-shadow(0 0 40px rgba(255,255,255,0.6));
    transform: scale(1.05);
  }
}

.intro-text {
  display: flex;
  gap: 4px;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #fff;
}

.intro-text span {
  opacity: 0;
  transform: translateY(20px);
  animation: letterIn 0.3s ease-out forwards;
}

.intro-text .intro-s { animation-delay: 0.1s; }
.intro-text .intro-t { animation-delay: 0.2s; }
.intro-text .intro-r { animation-delay: 0.3s; }
.intro-text .intro-e { animation-delay: 0.4s; }
.intro-text .intro-a { animation-delay: 0.5s; }
.intro-text .intro-m { animation-delay: 0.6s; }
.intro-text .intro-l { animation-delay: 0.7s; }
.intro-text .intro-i { animation-delay: 0.8s; }
.intro-text .intro-n { animation-delay: 0.9s; }
.intro-text .intro-e2 { animation-delay: 1.0s; }

@keyframes letterIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .search-wrapper { width: 180px; }
}

@media (max-width: 768px) {
  :root { --navbar-h: 60px; }
  .nav-inner { padding: 0 20px; gap: 16px; }
  .nav-actions .search-wrapper { display: flex; width: min(40vw, 240px); }
  .hero-content { padding: 0 20px; padding-top: var(--navbar-h); }
  .hero-title { letter-spacing: -1px; }
  .section-header { padding: 0 20px; }
  .provider-heading { padding-right: 20px; padding-left: 20px; }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 40px; }
  .provider-grid .card { width: auto; min-width: 0; }
  .cards-row-wrapper { padding-inline: 22px; }
  .cards-row { padding: 8px 12px 20px; }
  .cards-grid { padding: 8px 20px 20px; }
  .top10-list { padding: 0 20px; }
  .genre-grid { padding: 8px 20px 20px; grid-template-columns: repeat(2, 1fr); }
  .footer-inner { padding: 0 20px; gap: 40px; }
  .footer-bottom { padding: 20px; }
  .hero-scroll-indicator { display: none; }
  .top10-rank { font-size: 28px; width: 40px; }
  .player-controls { padding: 20px; }
  .player-layout,
  .player-layout.has-episodes { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 72px; padding: 0 20px; }
  .episodes-sidebar { height: min(360px, 45vh); }
  .player-page-info { padding: 8px 20px 24px; }
}

@media (max-width: 480px) {
  .nav-actions .search-wrapper { width: 36px; }
  .nav-actions .search-input { width: 0; padding-left: 0; padding-right: 0; }
  .nav-actions .search-wrapper:focus-within,
  .nav-actions .search-wrapper.mobile-search-open { width: min(62vw, 260px); }
  .nav-actions .search-wrapper:focus-within .search-input,
  .nav-actions .search-wrapper.mobile-search-open .search-input { width: 100%; padding-left: 14px; padding-right: 42px; }
  .player-layout,
  .player-layout.has-episodes { padding: 0 12px; }
  .player-page-info { padding: 8px 12px 20px; gap: 16px; }
  .player-info-poster { width: 104px; max-height: 156px; }
  .player-info-copy h2 { font-size: 20px; }
  .next-episode-btn { right: 12px; bottom: 74px; padding: 10px 12px; font-size: 12px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .footer-links { gap: 30px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-set { gap: 12px; padding-right: 12px; }
  .platform-logo { min-width: 82px; padding: 9px 14px; font-size: 11px; }
}

/* ---- Bouton déconnexion ---- */
.btn-logout {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  background: transparent;
}
.btn-logout:hover {
  border-color: rgba(255, 80, 80, 0.5);
  color: rgba(255, 120, 120, 0.9);
  background: rgba(255, 80, 80, 0.08);
}
