﻿/* Ultra Modern Cinematic Streaming UI - Premium Dark Theme */
/* CINFLIX V2 — Design Tokens */
:root {
  /* Primary Background - Ultra Dark */
  --bg-primary: #080B14;
  --bg-gradient: linear-gradient(135deg, #080B14 0%, #0F172A 50%, #080B14 100%);
  --bg-secondary: #111827;
  --bg-tertiary: #0F172A;
  
  /* Card & Surface */
  --card-bg: #111827;
  --card-bg-hover: #1A202C;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  
  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #B8B8B8;
  --text-muted: #777777;
  --text-dim: rgba(255, 255, 255, 0.5);
  
  /* Accent Colors */
  --accent-primary: #E91E63;
  --accent-hover: #FF2D55;
  --accent-secondary: #22D3EE;
  --accent-glow: rgba(233, 30, 99, 0.4);
  --accent-glow-strong: rgba(233, 30, 99, 0.6);
  
  /* Shadows */
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-medium: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --shadow-glow-strong: 0 0 50px var(--accent-glow-strong);
  
  /* Border & Radius */
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Motion & Transition */
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { 
  scroll-behavior: smooth; 
  font-size: 16px;
  scrollbar-width: none;
  scrollbar-color: transparent transparent;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ultra Premium Cinematic Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(34,211,238,0.02) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(233,30,99,0.02) 0%, transparent 50%);
  background-size: 400px 400px, 600px 600px, 800px 800px;
  animation: bgPan 20s ease-in-out infinite;
}

@keyframes bgPan {
  0%, 100% { background-position: 0 0, 100% 0, 50% 50%; }
  50% { background-position: 100% 100%, 0 100%, 0 0; }
}

/* Scrollbar styling */
::-webkit-scrollbar { 
  width: 0; 
  height: 0; 
  display: none;
}
::-webkit-scrollbar-track { 
  background: transparent; 
  border-radius: 0;
}
::-webkit-scrollbar-thumb { 
  background: transparent;
  border-radius: 0;
  border: 0;
}
::-webkit-scrollbar-thumb:hover { 
  background: transparent; 
}

/* Typography */
h1, h2, h3, h4, h5, h6 { 
  font-family: var(--font-heading);
  font-weight: 700; 
  line-height: 1.1; 
  letter-spacing: -0.02em; 
  margin-bottom: 1rem; 
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

p { margin-bottom: 1rem; }

/* Focus & Selection */
::selection { 
  background: var(--accent-primary); 
  color: white;
}

:focus-visible {
  outline: 3px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: var(--border-radius);
}

/* Episode Grid - Responsive Layout */
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  padding: 3rem 2rem 4rem;
  max-width: 2000px;
  margin: 0 auto;
  width: 100%;
}

/* Mobile - Single Column */
@media (max-width: 540px) {
  .episode-grid { 
    grid-template-columns: 1fr;
    gap: 1.25rem; 
    padding: 1.5rem 1rem 2.5rem;
  }
}

/* Mobile Landscape / Small Tablet - 2 Columns */
@media (min-width: 541px) and (max-width: 768px) {
  .episode-grid { 
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; 
    padding: 2rem 1.5rem 3rem;
  }
}

/* Tablet - 3 Columns */
@media (min-width: 769px) and (max-width: 1023px) {
  .episode-grid { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1.75rem; 
    padding: 2.5rem 2rem 3.5rem;
  }
}

/* Desktop - 4 Columns */
@media (min-width: 1024px) and (max-width: 1439px) {
  .episode-grid { 
    grid-template-columns: repeat(4, 1fr); 
    gap: 2rem; 
    padding: 3rem;
  }
}

/* Large Desktop - 5 Columns */
@media (min-width: 1440px) and (max-width: 1919px) {
  .episode-grid { 
    grid-template-columns: repeat(5, 1fr); 
    gap: 2.25rem; 
    padding: 3.5rem;
  }
}

/* TV / 4K & Ultra Screens - 5-6 Columns, Larger Cards */
@media (min-width: 1920px) {
  .episode-grid { 
    grid-template-columns: repeat(5, 1fr); 
    gap: 2.5rem; 
    padding: 4rem 5rem;
    max-width: 2400px;
  }
}

/* 8K / Ultra Large Screens */
@media (min-width: 3840px) {
  .episode-grid { 
    grid-template-columns: repeat(6, 1fr); 
    gap: 3rem; 
    padding: 5rem 6rem;
  }
}

/* Episode Card - Premium Streaming Design */
.episode-card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: 1px solid var(--card-border);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  will-change: transform, box-shadow;
}

.episode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: var(--border-radius-lg);
}

.episode-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.7),
    var(--shadow-glow);
  border-color: var(--accent-primary);
  background: var(--card-bg-hover);
}

.episode-card:active {
  transform: translateY(-8px) scale(1.01);
}

/* Selected/Highlighted state */
.episode-card.selected,
.episode-card:focus-within {
  box-shadow: 
    0 0 0 3px var(--accent-glow),
    0 30px 80px rgba(0, 0, 0, 0.8),
    var(--shadow-glow-strong);
  border-color: var(--accent-primary);
  background: var(--card-bg-hover);
}

/* Thumbnail Container */
.episode-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  overflow: hidden;
}

.episode-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.episode-card:hover .episode-thumbnail img {
  transform: scale(1.08);
  filter: brightness(1.15) contrast(1.08) saturate(1.1);
}

/* Play Button Overlay - Modern Circular Design */
.episode-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.4) 0%, 
    rgba(0, 0, 0, 0.2) 50%, 
    rgba(0, 0, 0, 0.5) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

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

.episode-play-button {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  border: 3px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: var(--shadow-glow-strong), 0 0 40px var(--accent-glow-strong);
  transition: var(--transition-fast);
  animation: playButtonPulse 2.5s ease-in-out infinite;
  cursor: pointer;
  z-index: 3;
}

.episode-card:hover .episode-play-button {
  transform: scale(1.15);
  box-shadow: var(--shadow-glow-strong), 0 0 60px var(--accent-glow-strong);
}

@keyframes playButtonPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: var(--shadow-glow-strong), 0 0 40px var(--accent-glow-strong);
  }
  50% { 
    transform: scale(1.08);
    box-shadow: var(--shadow-glow-strong), 0 0 60px var(--accent-glow-strong);
  }
}

/* Duration Badge - Top Right */
.episode-duration {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(0, 0, 0, 0.85);
  color: var(--text-primary);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: var(--transition-fast);
}

.episode-card:hover .episode-duration {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Content Overlay - Gradient Info Slide */
.episode-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.8rem 1.5rem;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.95) 100%);
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 2;
}

.episode-card:hover .episode-content {
  transform: translateY(0);
}

/* Episode Number Badge */
.episode-number {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: var(--shadow-glow), 0 8px 24px rgba(233, 30, 99, 0.4);
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-fast);
}

.episode-card:hover .episode-number {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-strong), 0 12px 36px rgba(233, 30, 99, 0.5);
}

/* Card Title */
.episode-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.episode-card:hover .episode-title {
  color: var(--accent-secondary);
}

/* Description */
.episode-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

/* Mobile responsiveness for cards */
@media (max-width: 768px) {
  .episode-card {
    aspect-ratio: 16 / 9;
  }

  .episode-title { 
    font-size: 1.1rem; 
  }

  .episode-description { 
    font-size: 0.85rem; 
    -webkit-line-clamp: 2;
  }

  .episode-play-button {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  .episode-number {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* Utilities & Layout */
.container { 
  max-width: 1600px; 
  margin: 0 auto; 
  padding: 0 2rem;
  width: 100%;
}

.section-padding { 
  padding: 4rem 0;
}

.section { 
  margin: 2rem 0;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 700;
}

/* Header - Sticky Premium */
.header {
  position: sticky;
  top: 0;
  background: rgba(8, 11, 20, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
  padding: 1.2rem 0;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(8, 11, 20, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: var(--transition-fast);
}

.logo:hover {
  filter: brightness(1.2);
}

/* Navigation Links */
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  font-weight: 500;
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive Typography */
@media (max-width: 768px) {
  .episode-title { 
    font-size: 1.1rem; 
  }
  
  .episode-description { 
    font-size: 0.85rem; 
    -webkit-line-clamp: 2; 
  }

  .header-content {
    padding: 0 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }
}

/* Loading skeleton animation */
.episode-skeleton {
  background: linear-gradient(90deg, 
    rgba(17, 24, 39, 0.5) 25%, 
    rgba(17, 24, 39, 0.8) 50%, 
    rgba(17, 24, 39, 0.5) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--border-radius-lg);
}

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

/* Scrollbar custom */
::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: transparent;
}

/* Preserve existing site structure compatibility */
.grid, .browse-grid, .rail { 
  display: grid !important; 
  gap: 1.5rem !important; 
  align-items: center;
}

.card, .poster-card {
  aspect-ratio: 16/9 !important;
  border-radius: var(--border-radius-lg) !important;
  transition: var(--transition) !important;
}

/* Video container */
video, .video-container {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
}

/* Button base styles */
.btn, button {
  font-family: var(--font-primary);
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary, button.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
  color: white;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.btn-primary:hover, button.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.5rem;
}

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

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
}

.glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ===========================================================
   CINFLIX PREMIUM CARDS & FILTERS
   =========================================================== */

/* Premium Movie Cards */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98) 0%, rgba(11, 14, 17, 0.98) 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.35s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(233, 30, 99, 0.3),
    0 0 30px rgba(233, 30, 99, 0.15);
  border-color: rgba(233, 30, 99, 0.4);
}

.card:hover::before {
  opacity: 0.8;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
  display: block;
}

/* Card aspect ratio fix for movie posters */
.browse-grid .card,
.grid .card {
  aspect-ratio: 2/3 !important;
  min-height: 240px;
}

@media (max-width: 768px) {
  .browse-grid .card,
  .grid .card {
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .browse-grid .card,
  .grid .card {
    min-height: 180px;
  }
}

.card:hover img {
  transform: scale(1.08);
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 14, 17, 0.95) 40%);
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.card-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-meta::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, #E91E63, #FF2D55);
  border-radius: 50%;
}

/* Premium Filter Section */
.catalog-tools {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(11, 14, 17, 0.95) 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.filter-panel-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  padding-left: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-panel-label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #E91E63, #FF2D55);
  border-radius: 2px;
}

/* Special styling for Types section */
.filter-panel-group:first-child .filter-panel-label::before {
  background: linear-gradient(180deg, #22D3EE, #06B6D4);
}

.filter-panel-group:first-child .filter-btn.active,
.filter-panel-group:first-child .filter-chip.active {
  background: linear-gradient(135deg, #22D3EE 0%, #06B6D4 100%);
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 
    0 4px 20px rgba(34, 211, 238, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: filterGlowCyan 2s ease-in-out infinite;
}

@keyframes filterGlowCyan {
  0%, 100% { box-shadow: 0 4px 20px rgba(34, 211, 238, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(34, 211, 238, 0.6), 0 0 20px rgba(34, 211, 238, 0.3); }
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Premium Filter Buttons */
.filter-btn,
.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
}

.filter-btn::before,
.filter-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.2) 0%, rgba(233, 30, 99, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.filter-btn:hover,
.filter-chip:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(233, 30, 99, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.filter-btn:hover::before,
.filter-chip:hover::before {
  opacity: 1;
}

.filter-btn.active,
.filter-chip.active {
  color: #fff;
  background: linear-gradient(135deg, #E91E63 0%, #D81B60 100%);
  border-color: rgba(233, 30, 99, 0.6);
  box-shadow: 
    0 4px 20px rgba(233, 30, 99, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.filter-btn.active::before,
.filter-chip.active::before {
  opacity: 0;
}

/* Browse Grid Layout */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding: 0;
}

/* Counter badge */
.counter-catalogue {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Section head */
.section-head h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================================================
   RESPONSIVE - Cards & Filters
   =========================================================== */

@media (max-width: 768px) {
  .browse-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
  }
  
  .card-info {
    padding: 12px;
  }
  
  .card-title {
    font-size: 12px;
  }
  
  .card-meta {
    font-size: 11px;
  }
  
  .catalog-tools {
    padding: 16px;
    gap: 16px;
  }
  
  .filter-panel-label {
    font-size: 11px;
  }
  
  .filter-btn,
  .filter-chip {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .section-head h2 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .browse-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .filter-chip-row {
    gap: 8px;
  }
  
  .filter-btn,
  .filter-chip {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 10px;
  }
}

/* ===========================================================
   ANIMATIONS & INTERACTIONS
   =========================================================== */

/* Smooth card entrance animation */
@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.browse-grid .card {
  animation: cardEntrance 0.4s ease-out backwards;
}

.browse-grid .card:nth-child(1) { animation-delay: 0.02s; }
.browse-grid .card:nth-child(2) { animation-delay: 0.04s; }
.browse-grid .card:nth-child(3) { animation-delay: 0.06s; }
.browse-grid .card:nth-child(4) { animation-delay: 0.08s; }
.browse-grid .card:nth-child(5) { animation-delay: 0.10s; }
.browse-grid .card:nth-child(6) { animation-delay: 0.12s; }
.browse-grid .card:nth-child(7) { animation-delay: 0.14s; }
.browse-grid .card:nth-child(8) { animation-delay: 0.16s; }

/* Filter transition animation */
.filter-btn,
.filter-chip {
  position: relative;
  overflow: hidden;
}

.filter-btn::after,
.filter-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.filter-btn:active::after,
.filter-chip:active::after {
  width: 200px;
  height: 200px;
}

/* Loading shimmer effect for cards */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.card.loading {
  background: linear-gradient(90deg, 
    rgba(17, 24, 39, 0.98) 25%, 
    rgba(35, 45, 60, 0.98) 50%, 
    rgba(17, 24, 39, 0.98) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Active filter glow pulse */
@keyframes filterGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(233, 30, 99, 0.6), 0 0 20px rgba(233, 30, 99, 0.3); }
}

.filter-btn.active,
.filter-chip.active {
  animation: filterGlow 2s ease-in-out infinite;
}

/* Grid reflow animation */
.browse-grid {
  transition: all 0.3s ease;
}

/* Counter update animation */
@keyframes counterPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.counter-catalogue.updating {
  animation: counterPop 0.3s ease;
}

/* Focus styles for accessibility */
.filter-btn:focus-visible,
.filter-chip:focus-visible,
.card:focus-visible {
  outline: 2px solid rgba(233, 30, 99, 0.8);
  outline-offset: 3px;
}

/* Hover ripple effect */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), 
    rgba(233, 30, 99, 0.15) 0%, 
    transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 3;
}

.card:hover::after {
  opacity: 1;
}

/* ===========================================================
   FILTER PANEL EXPAND/COLLAPSE
   =========================================================== */

.filter-panel {
  transition: all 0.3s ease;
}

.filter-panel.is-open {
  max-height: 1000px;
  opacity: 1;
}

.filter-panel:not(.is-open) {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

/* Filter toggle button */
.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.2) 0%, rgba(233, 30, 99, 0.05) 100%);
  border: 1px solid rgba(233, 30, 99, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-toggle:hover {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.3) 0%, rgba(233, 30, 99, 0.1) 100%);
  border-color: rgba(233, 30, 99, 0.5);
  transform: translateY(-2px);
}

.filter-toggle-icon {
  transition: transform 0.3s ease;
}

.filter-toggle.is-open .filter-toggle-icon {
  transform: rotate(180deg);
}

/* No results state */
.browse-grid .empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
}

.browse-grid .empty::before {
  content: '🔍';
  display: block;
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* ===========================================================
   CATALOG RAIL - Card Slider
   =========================================================== */

.rail-wrap-cards {
  position: relative;
  padding: 0 50px;
}

.card-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.card-rail::-webkit-scrollbar {
  display: none;
}

.card-rail .card {
  flex: 0 0 auto;
  width: 180px;
  scroll-snap-align: start;
}

.card-rail .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Rail navigation buttons */
.rail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.9) 0%, rgba(216, 27, 96, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(233, 30, 99, 0.4);
  transition: all 0.25s ease;
}

.rail-nav:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 30px rgba(233, 30, 99, 0.6);
}

.rail-nav.prev {
  left: 0;
}

.rail-nav.next {
  right: 0;
}

/* Section kicker styling */
.section-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

/* Section head stack layout */
.section-head-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-head-stack h2 {
  margin: 0;
}

/* Catalog tools on home page */
#catalogSection .catalog-tools {
  margin-bottom: 0;
  border-radius: 16px 16px 0 0;
  border-bottom: none;
}

#catalogSection .rail-wrap-cards {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(11, 14, 17, 0.95) 100%);
  border-radius: 0 0 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  padding: 20px 50px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .rail-wrap-cards {
    padding: 0 40px;
  }
  
  .card-rail .card {
    width: 140px;
  }
  
  .rail-nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  #catalogSection .rail-wrap-cards {
    padding: 15px 40px;
  }
}

@media (max-width: 480px) {
  .rail-wrap-cards {
    padding: 0 35px;
  }
  
  .card-rail .card {
    width: 120px;
  }
  
  .card-rail {
    gap: 12px;
  }
  
  .rail-nav {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  #catalogSection .rail-wrap-cards {
    padding: 10px 35px;
  }
}

/* ===========================================================
   UNIFIED PAGE STYLES - Suggestions, Reprendre, etc.
   =========================================================== */

/* Common page shell styles */
.suggestions-shell,
.reprendre-main,
.nouveautes-main,
.decouverte-main,
.top10-main,
.salon-main {
  padding: 2rem 4vw;
  max-width: 1400px;
  margin: 0 auto;
}

/* Unified section cards for special pages */
.suggestion-list,
.salon-entry-grid,
.salon-room {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.9) 0%, rgba(11, 14, 17, 0.95) 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.suggestion-list {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.salon-entry-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* Unified card styles for special pages */
.suggestion-card,
.salon-entry-card,
.salon-hero-card,
.salon-panel-card {
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.98) 0%, rgba(17, 24, 39, 0.98) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 24px;
  transition: all 0.35s ease;
}

.suggestion-card:hover,
.salon-entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(233, 30, 99, 0.2);
  border-color: rgba(233, 30, 99, 0.3);
}

/* Form styling */
.salon-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.salon-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.salon-field span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.salon-field input {
  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;
  transition: all 0.25s ease;
}

.salon-field input:focus {
  outline: none;
  border-color: rgba(233, 30, 99, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* Hero points badges */
.salon-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.salon-hero-points span {
  padding: 8px 16px;
  background: rgba(233, 30, 99, 0.15);
  border: 1px solid rgba(233, 30, 99, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Section head with kicker */
.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.section-head h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Counter badge styling */
.counter {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* More card for grids */
.more-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(216, 27, 96, 0.05) 100%);
  border: 2px dashed rgba(233, 30, 99, 0.3);
  min-height: 240px;
  cursor: pointer;
  transition: all 0.35s ease;
}

.more-card:hover {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.2) 0%, rgba(216, 27, 96, 0.1) 100%);
  border-color: rgba(233, 30, 99, 0.5);
  transform: translateY(-4px);
}

.more-card-content {
  text-align: center;
  padding: 20px;
}

.more-card-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #E91E63;
  margin: 0 0 8px 0;
}

.more-card-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Responsive for unified pages */
@media (max-width: 768px) {
  .suggestions-shell,
  .reprendre-main,
  .nouveautes-main,
  .decouverte-main,
  .top10-main,
  .salon-main {
    padding: 1.5rem 3vw;
  }
  
  .suggestion-list {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  
  .salon-entry-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  
  .section-head h2,
  .section-head h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .suggestion-card,
  .salon-entry-card,
  .salon-hero-card {
    padding: 16px;
  }
  
  .section-head h2,
  .section-head h3 {
    font-size: 18px;
  }
}

/* ===========================================================
   DISCORD MODAL PREMIUM
   =========================================================== */

.discord-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.discord-modal.hidden {
  display: none;
}

.discord-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.discord-card {
  position: relative;
  width: min(420px, 100%);
  background: linear-gradient(135deg, #1a2332 0%, #0f1720 100%);
  border-radius: 24px;
  border: 1px solid rgba(88, 101, 242, 0.3);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 60px rgba(88, 101, 242, 0.15);
  padding: 40px 32px 32px;
  text-align: center;
  animation: discordSlideIn 0.4s ease;
}

@keyframes discordSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.discord-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: grid;
  place-items: center;
}

.discord-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.discord-header {
  margin-bottom: 28px;
}

.discord-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #5865F2, #7289DA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.discord-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.discord-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.discord-benefits {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

.benefit-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #aeb8ff;
  flex-shrink: 0;
}

.benefit-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.discord-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-discord {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(88, 101, 242, 0.5);
}

.btn-discord-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-discord-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ===========================================================
   FOOTER PREMIUM
   =========================================================== */

.footer-premium {
  background: linear-gradient(180deg, #0d1117 0%, #0a0e14 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 4vw 30px;
  margin-top: 60px;
}

.footer-premium-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-premium-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-premium-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-premium-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  margin: 0;
}

.footer-premium-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-premium-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-nav-group h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 16px 0;
}

.footer-nav-group nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-group nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  width: fit-content;
}

.footer-nav-group nav a:hover {
  color: #E91E63;
  transform: translateX(4px);
}

.footer-premium-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 30px;
  text-align: center;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-disclaimer-short {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
  max-width: 600px;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-premium-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-premium-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .footer-premium {
    padding: 40px 3vw 20px;
  }
  
  .footer-premium-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .discord-card {
    padding: 32px 24px 24px;
  }
  
  .discord-header h3 {
    font-size: 18px;
  }
  
  .benefit-item {
    padding: 10px 12px;
    font-size: 13px;
  }

  .benefit-icon,
  .benefit-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* First visit banner for Discord */
.discord-first-visit {
  animation: discordPulse 2s ease-in-out infinite;
}

@keyframes discordPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(88, 101, 242, 0); }
}

/* ===========================================================
   DETAILS MODAL - SIMPLIFIED STRUCTURE
   =========================================================== */

.details-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.details-card img#detailsPoster {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  align-self: center;
}

.details-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  text-align: center;
}

.details-meta,
.details-extra {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0;
}

.details-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.details-overview {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  margin: 0;
}

.details-reactions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Support card simplified */
.support-card {
  text-align: center;
}

.support-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.support-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #E91E63, #D81B60);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 8px 0;
}

.support-sequence {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.support-alert {
  padding: 12px 16px;
  background: rgba(233, 30, 99, 0.15);
  border: 1px solid rgba(233, 30, 99, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
}

.support-progress-track {
  width: 100%;
  height: 8px;
  margin: 0 0 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.support-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff184e, #ff6f91);
  transition: width 180ms ease;
}

.support-message {
  margin: 0 0 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.support-explain {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  line-height: 1.55;
}

.support-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
}

.support-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bot-guard-card {
  width: min(100%, 460px);
}

.bot-guard-widget {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
  min-height: 86px;
}

.bot-guard-card {
  overflow: visible !important;
}

iframe[src*="hcaptcha"] {
  z-index: 999999 !important;
  width: 100% !important;
  min-height: 78px;
}

.support-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.support-gate-modal.hidden {
  display: none !important;
}

/* Hide details-modal when hidden class is applied */
.details-modal.hidden {
  display: none !important;
}

/* Support gate modal backdrop - dark transparent overlay */
.details-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#botGuardModal {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.details-modal .details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.support-gate-card {
  position: relative;
  width: min(100%, 408px);
  padding: 28px 26px 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 58, 108, 0.18);
  background:
    radial-gradient(circle at top, rgba(255, 42, 101, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(24, 20, 29, 0.98), rgba(17, 18, 24, 0.985));
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  text-align: center;
  overflow: hidden;
}

.support-gate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ff184e, #ff4d79);
}

.support-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.support-energy {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(255, 34, 88, 0.24);
  background: linear-gradient(180deg, rgba(103, 22, 38, 0.96), rgba(47, 12, 23, 0.96));
  color: #ff4f7c;
  font-size: 20px;
}

.support-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 58, 108, 0.35);
  background: rgba(92, 17, 33, 0.3);
  color: #f3d7de;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.support-gate-card h3 {
  margin: 0 0 14px;
  font-size: clamp(2.15rem, 5vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  color: #f7f4f5;
}

.support-message,
.support-explain {
  margin: 0 auto;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.support-explain {
  display: none;
}

.support-sequence {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
}

.support-step-card {
  display: grid;
  grid-template-columns: 46px 1fr 12px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.support-step-card.is-active {
  border-color: rgba(255, 42, 101, 0.52);
  background: linear-gradient(135deg, rgba(113, 18, 38, 0.82), rgba(62, 17, 29, 0.56));
  box-shadow: 0 16px 36px rgba(255, 24, 78, 0.14);
}

.support-step-card.is-done {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.support-step-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 800;
}

.support-step-title {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.support-step-meta {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.support-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.support-step-card.is-active .support-step-dot {
  background: #ff295f;
  box-shadow: 0 0 18px rgba(255, 41, 95, 0.72);
}

/* New support step buttons */
.support-step-btn {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: 44px 1fr 10px;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px 16px 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(24, 27, 31, 0.96), rgba(20, 22, 28, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 10px 24px rgba(0, 0, 0, 0.24);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font: inherit;
  outline: none;
}

.support-step-btn-fake {
  cursor: default;
  pointer-events: none;
}

.support-step-btn:hover {
  border-color: rgba(255, 42, 101, 0.62);
  background: linear-gradient(135deg, rgba(113, 18, 38, 0.82), rgba(62, 17, 29, 0.56));
  box-shadow: 0 16px 36px rgba(255, 24, 78, 0.14);
}

.support-step-btn-fake:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(24, 27, 31, 0.96), rgba(20, 22, 28, 0.98));
  box-shadow: none;
}

.support-step-btn.is-done {
  border-color: rgba(38, 203, 138, 0.34);
  background:
    linear-gradient(180deg, rgba(20, 31, 30, 0.98), rgba(18, 27, 28, 0.99)),
    linear-gradient(135deg, rgba(17, 53, 42, 0.2), rgba(18, 38, 33, 0.26));
  box-shadow:
    inset 0 0 0 1px rgba(38, 203, 138, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.support-step-btn .support-step-number,
.support-step-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.support-step-btn.is-done .support-step-number,
.support-step-btn.is-done .support-step-index {
  border-color: rgba(49, 205, 144, 0.44);
  background: rgba(17, 86, 62, 0.52);
  color: #59f0bb;
}

.support-step-btn.is-active .support-step-number,
.support-step-btn.is-active .support-step-index {
  border-color: rgba(255, 42, 101, 0.55);
  background: rgba(117, 18, 39, 0.52);
}

.support-step-btn.is-active {
  border-color: rgba(255, 42, 101, 0.5);
  background:
    linear-gradient(180deg, rgba(42, 18, 27, 0.98), rgba(32, 16, 24, 0.99)),
    linear-gradient(135deg, rgba(113, 18, 38, 0.3), rgba(62, 17, 29, 0.22));
  box-shadow:
    inset 0 0 0 1px rgba(255, 42, 101, 0.04),
    0 12px 28px rgba(0, 0, 0, 0.22);
}

.support-step-btn strong {
  display: block;
  color: #f6f7fb;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.support-step-btn em {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.support-step-btn .support-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  justify-self: end;
}

.support-step-btn.is-done .support-step-dot {
  background: #2fd08f;
  box-shadow: 0 0 12px rgba(47, 208, 143, 0.56);
}

.support-step-btn.is-active .support-step-dot {
  background: #ff2f61;
  box-shadow: 0 0 12px rgba(255, 47, 97, 0.56);
}

.support-main-btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff0f64, #f62674);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(233, 30, 99, 0.28);
}

.support-main-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.support-cancel {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.support-alert {
  margin-top: 12px;
  font-size: 12px;
}

.support-upsell {
  margin: 18px 0 0;
}

.support-upsell-link {
  display: grid;
  grid-template-columns: 40px 1fr 16px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(219, 161, 37, 0.28);
  background: linear-gradient(180deg, rgba(82, 61, 18, 0.26), rgba(59, 45, 15, 0.24));
  color: #f1d27b;
  text-decoration: none;
  text-align: left;
}

.support-upsell-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(219, 161, 37, 0.35);
  color: #f1d27b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.support-upsell-copy strong,
.support-upsell-copy em {
  display: block;
}

.support-upsell-copy strong {
  color: #f6d583;
  font-size: 14px;
}

.support-upsell-copy em {
  margin-top: 2px;
  color: rgba(241, 210, 123, 0.82);
  font-style: normal;
  font-size: 11px;
  line-height: 1.4;
}

.support-upsell-arrow {
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 640px) {
  .support-gate-modal {
    padding: 18px 12px;
  }

  .support-gate-card {
    width: min(100%, 390px);
    padding: 24px 18px 18px;
    border-radius: 24px;
  }

  .support-gate-card h3 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
  }

  .support-message {
    font-size: 14px;
  }

  .support-step-btn {
    grid-template-columns: 40px 1fr 10px;
    padding: 14px;
    gap: 12px;
  }

  .support-main-btn {
    min-height: 54px;
  }
}

/* ===========================================================
   FULL RESPONSIVE - MOBILE OPTIMIZATIONS
   =========================================================== */

/* Mobile-first base styles */
@media (max-width: 768px) {
  /* General typography */
  body {
    font-size: 14px;
  }
  
  h1 { font-size: 28px !important; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 18px !important; }
  
  /* Topbar mobile */
  .topbar {
    padding: 0 12px;
    height: 56px;
  }
  
  .logo {
    font-size: 22px;
  }
  
  /* Main content padding */
  .browse-main,
  .suggestions-shell,
  .reprendre-main,
  .nouveautes-main,
  .decouverte-main,
  .top10-main,
  .salon-main {
    padding: 16px 12px;
  }
  
  /* Section spacing */
  .section {
    margin-bottom: 24px;
  }
  
  .section-head {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  /* Filter panel mobile */
  .catalog-tools {
    padding: 12px;
  }
  
  .filter-panel {
    padding: 12px;
  }
  
  .filter-chip-row {
    gap: 8px;
  }
  
  .filter-btn,
  .filter-chip {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  /* Grid mobile - 2 columns */
  .browse-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* Card sizing mobile */
  .card {
    border-radius: 12px;
  }
  
  .card img {
    aspect-ratio: 2/3;
  }
  
  .card-title {
    font-size: 13px;
    padding: 10px;
  }
  
  /* Rail navigation mobile */
  .rail-wrap {
    padding: 0 36px;
  }
  
  .rail-nav {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .rail-nav.prev { left: 0; }
  .rail-nav.next { right: 0; }
  
  /* Details modal mobile */
  .details-modal {
    padding: 12px;
  }
  
  .details-card {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px;
  }
  
  .details-card img#detailsPoster {
    max-width: 200px;
  }
  
  .details-card h3 {
    font-size: 20px;
  }
  
  .details-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .details-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Discord modal mobile */
  .discord-modal {
    padding: 16px;
  }
  
  .discord-card {
    padding: 28px 20px 24px;
  }
  
  .discord-logo {
    font-size: 28px;
  }
  
  .discord-header h3 {
    font-size: 18px;
  }
  
  .benefit-item {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  /* Footer mobile */
  .footer-premium {
    padding: 40px 16px 24px;
    margin-top: 40px;
  }
  
  .footer-premium-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 24px;
  }
  
  .footer-premium-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .footer-premium-logo {
    font-size: 28px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  /* Single column grids */
  .browse-grid,
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .suggestion-list {
    grid-template-columns: 1fr;
  }
  
  /* Even smaller padding */
  .section {
    padding: 12px;
  }
  
  .catalog-tools {
    padding: 10px;
  }
  
  /* Filters scrollable */
  .filter-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .filter-chip-row::-webkit-scrollbar {
    display: none;
  }
  
  .filter-btn,
  .filter-chip {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  /* Hero section mobile */
  .hero {
    min-height: 50vh;
  }
  
  /* Footer single column */
  .footer-premium-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Large tablets and small laptops */
@media (min-width: 769px) and (max-width: 1024px) {
  .browse-grid,
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-premium-top {
    gap: 40px;
  }
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Touch-friendly tap targets on mobile */
@media (pointer: coarse) {
  .btn,
  .filter-btn,
  .filter-chip,
  .rail-nav,
  .card,
  .details-close,
  .discord-close {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link {
    padding: 12px 16px;
  }
}

/* Prevent text overflow */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Better form elements on mobile */
input, button, select, textarea {
  font-size: 16px; /* Prevents zoom on iOS */
}

@media (min-width: 769px) {
  input, button, select, textarea {
    font-size: 14px;
  }
}

/* ===========================================================
   HOME CATALOGUE SECTION - SIMPLIFIED & RESPONSIVE
   =========================================================== */

#catalogSection {
  padding: 40px 4vw;
  max-width: 1400px;
  margin: 0 auto;
}

#catalogSection.hidden {
  display: none;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

#catalogToggleBtn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #E91E63, #D81B60);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#catalogToggleBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

/* Simple Filter Pills */
.simple-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.filter-pill.active {
  background: #E91E63;
  border-color: #E91E63;
  color: #fff;
}

/* Catalog Grid - Responsive */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

@media (min-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* Catalog Card */
.catalog-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(233, 30, 99, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.catalog-card .card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

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

/* Fallback si l'image ne charge pas */
.catalog-card img[src=""],
.catalog-card img:not([src]) {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  min-height: 200px;
}

.catalog-card:hover img {
  transform: scale(1.05);
}

.catalog-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(10, 10, 20, 0.95));
}

.catalog-card-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.catalog-card-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2px;
}

.catalog-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 6px;
  background: #E91E63;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.catalog-card-badge.anime {
  background: #9C27B0;
}

.catalog-card-badge.series {
  background: #2196F3;
}

/* Footer */
.catalog-footer {
  margin-top: 24px;
  text-align: center;
}

/* Loading & Empty states */
.catalog-loading,
.catalog-error,
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.catalog-loading::before {
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(233, 30, 99, 0.3);
  border-top-color: #E91E63;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===========================================================
   FOOTER RESPONSIVE FIXES
   =========================================================== */

.footer-premium {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(10, 10, 20, 0.8) 100%);
  padding: 60px 4vw 40px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-premium-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-premium-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-premium-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-premium-logo {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #E91E63, #F06292);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-premium-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

.footer-premium-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-premium-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-premium-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-premium-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-premium-col a:hover {
  color: #E91E63;
  transform: translateX(4px);
}

.footer-premium-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  max-width: 500px;
  text-align: right;
}

/* Footer Mobile Responsive */
@media (max-width: 1024px) {
  .footer-premium-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .footer-premium-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
  
  .footer-premium-tagline {
    max-width: 400px;
  }
  
  .footer-premium-nav {
    grid-column: 1 / -1;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-premium {
    padding: 40px 16px 24px;
    margin-top: 40px;
  }
  
  .footer-premium-top {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .footer-premium-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .footer-premium-col {
    text-align: center;
  }
  
  .footer-premium-col a:hover {
    transform: translateX(0);
  }
  
  .footer-premium-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .footer-disclaimer {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-premium-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .footer-premium-col h4 {
    margin-bottom: 12px;
  }
  
  .footer-premium-logo {
    font-size: 28px;
  }
}

/* ===========================================================
   HOME + CATALOGUE POSTER GRIDS
   =========================================================== */

.home-catalog-section .catalog-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.home-catalog-link {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-catalog-link:hover {
  color: #fff;
}

.home-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.home-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px 14px;
}

.home-catalog-grid .poster-card,
.browse-grid .catalogue-grid-card {
  width: 100%;
  min-width: 0;
}

.home-catalog-more-card {
  cursor: pointer;
}

.home-catalog-more-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 24%, rgba(64, 224, 208, 0.26), transparent 34%),
    linear-gradient(145deg, rgba(233, 30, 99, 0.34), rgba(8, 16, 28, 0.98) 54%, rgba(46, 204, 113, 0.22));
}

.home-catalog-more-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

body[data-page-view="catalogue"] .browse-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 22px 16px;
}

body[data-page-view="catalogue"] .browse-grid .catalogue-grid-card {
  width: 100%;
  min-width: 0;
}

@media (max-width: 1260px) {
  .home-catalog-grid,
  body[data-page-view="catalogue"] .browse-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-catalog-grid,
  body[data-page-view="catalogue"] .browse-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .home-catalog-section .catalog-title-row {
    align-items: flex-start;
  }

  .home-catalog-grid,
  body[data-page-view="catalogue"] .browse-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
  }
}

@media (max-width: 440px) {
  .home-catalog-grid,
  body[data-page-view="catalogue"] .browse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Watch page and episode browser refresh */
.watch-hero-player {
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.watch-player-container {
  max-width: 1440px;
  margin: 0 auto;
}

.watch-player-stage {
  display: grid;
  gap: 1.5rem;
}

.watch-video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(255, 86, 124, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(13, 16, 22, 0.98), rgba(7, 9, 14, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.4);
}

.watch-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: #05070c;
}

.watch-video-wrap > #plyrCastPlayer,
.watch-video-wrap > video,
.watch-video-wrap > iframe,
.watch-video-wrap > .watch-cinematic-overlay,
.watch-video-wrap > .player-loading,
.watch-video-wrap > .tap-to-play,
.watch-video-wrap > .support-modal-embed,
.watch-video-wrap > .download-modal-embed {
  position: absolute;
  inset: 0;
}

.watch-video-wrap > video,
.watch-video-wrap > iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.watch-source-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.95), rgba(8, 10, 16, 0.95));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.watch-source-header {
  padding: 1.4rem 1.4rem 0.75rem;
}

.watch-source-heading h2,
.watch-source-heading p {
  margin-bottom: 0;
}

.server-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
  padding: 0 1.4rem 1.4rem;
}

.episodes-section {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 1.75rem auto 4rem;
  padding: 1.5rem;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(255, 82, 136, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(14, 17, 26, 0.96), rgba(8, 10, 16, 0.98));
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
}

.episodes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.episodes-header h2 {
  margin-bottom: 0;
}

.season-selector {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.season-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.season-tab:hover,
.season-tab.is-active {
  border-color: rgba(255, 95, 150, 0.45);
  background: linear-gradient(135deg, rgba(255, 95, 150, 0.2), rgba(255, 132, 92, 0.14));
  color: #fff;
}

.episode-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.episode-toolbar-main,
.episode-toolbar-actions {
  display: flex;
  align-items: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.episode-toolbar-field {
  display: grid;
  gap: 0.45rem;
  min-width: 180px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.episode-toolbar-field select {
  min-height: 46px;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.episode-toolbar-apply,
.episode-more-btn {
  min-height: 48px;
  padding: 0.85rem 1.3rem;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff7c5b, #ff427f);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 20px 42px rgba(255, 66, 127, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.episode-toolbar-apply:hover,
.episode-more-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 48px rgba(255, 66, 127, 0.32);
}

.episodes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.episodes-grid .episode-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 96px;
  width: 100%;
  padding: 0.8rem;
  aspect-ratio: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.episodes-grid .episode-card::before {
  display: none;
}

.episodes-grid .episode-card:hover,
.episodes-grid .episode-card.is-active,
.episodes-grid .episode-card.is-pending {
  transform: translateX(-2px);
  border-color: rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255, 94, 145, 0.14), rgba(255,255,255,0.04));
  box-shadow: 0 22px 36px rgba(0, 0, 0, 0.24);
}

.episode-card-thumb {
  position: relative;
  display: block;
  width: 104px;
  min-width: 104px;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.54)),
    linear-gradient(135deg, rgba(32, 36, 46, 0.96), rgba(14, 16, 24, 0.96));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.episode-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.42));
}

.episode-card-badge,
.episode-card-play {
  position: absolute;
  z-index: 1;
}

.episode-card-badge {
  top: 0.6rem;
  left: 0.6rem;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 13, 19, 0.74);
  border: 1px solid rgba(255, 114, 163, 0.3);
  color: #ff5c97;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.episode-card-play {
  display: none;
}

.episode-card-play svg {
  width: 20px;
  height: 20px;
}

.episode-card-copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  padding: 0;
}

.episode-card-title {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-card-desc,
.episode-card-submeta {
  display: block;
  overflow: hidden;
}

.episode-card-desc {
  display: none;
}

.episode-card-submeta {
  color: rgba(245, 241, 255, 0.66);
  font-size: 0.77rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.episode-card-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #f5f1ff;
}

.episode-card-duration {
  display: none;
}

.episode-card-launch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  box-shadow: none;
  pointer-events: none;
}

.episode-card-launch svg {
  width: 14px;
  height: 14px;
}

.episode-card-empty {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .watch-hero-player {
    padding: 0 0.8rem;
  }

  .episodes-section {
    margin-top: 1.2rem;
    padding: 1rem;
    border-radius: 24px;
  }

  .episodes-header,
  .episode-toolbar,
  .episode-toolbar-main,
  .episode-toolbar-actions {
    align-items: stretch;
  }

  .episodes-grid {
    grid-template-columns: 1fr;
  }

  .episodes-grid .episode-card {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 0.75rem;
    min-height: 84px;
    padding: 0.7rem;
  }

  .episode-card-thumb {
    width: 88px;
    min-width: 88px;
  }
}
