/* ==========================================================================
   NOVELTRAD - ESPACE MATURE (+18) DESIGN SYSTEM (V2 OBSIDIAN & CRIMSON GLASS)
   Theme: Obsidian & Crimson Glass | High Craft UX & Emil Kowalski Principles
   ========================================================================== */

:root {
  --m-bg-base: #06070a;
  --m-bg-surface: #0c0e15;
  --m-bg-surface-elevated: #131722;
  --m-bg-glass: rgba(10, 12, 18, 0.82);
  --m-bg-card-glass: rgba(14, 17, 26, 0.65);
  --m-border-subtle: rgba(255, 255, 255, 0.08);
  --m-border-hover: rgba(255, 255, 255, 0.16);
  --m-border-active: rgba(225, 29, 72, 0.4);
  --m-border-crimson-subtle: rgba(225, 29, 72, 0.2);
  --m-accent: #e11d48;
  --m-accent-hover: #f43f5e;
  --m-accent-glow: rgba(225, 29, 72, 0.35);
  --m-accent-glow-subtle: rgba(225, 29, 72, 0.15);
  --m-accent-subtle: rgba(225, 29, 72, 0.12);
  --m-gold: #f59e0b;
  --m-gold-glow: rgba(245, 158, 11, 0.3);
  --m-silver: #94a3b8;
  --m-silver-glow: rgba(148, 163, 184, 0.3);
  --m-bronze: #d97706;
  --m-bronze-glow: rgba(217, 119, 6, 0.3);
  --m-text-primary: #f8fafc;
  --m-text-secondary: #94a3b8;
  --m-text-muted: #64748b;
  --m-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --m-font-heading: 'Outfit', var(--m-font-sans);
  --m-transition-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--m-bg-base);
  color: var(--m-text-primary);
  font-family: var(--m-font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Ambient Crimson Halo Backgrounds */
body::before {
  content: '';
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 1100px);
  height: 600px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.14) 0%, rgba(225, 29, 72, 0.04) 45%, rgba(6, 7, 10, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  right: -100px;
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.05) 0%, rgba(6, 7, 10, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container Harmonized with Site (1320px) */
.m-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .m-container {
    padding: 0 28px;
  }
}

/* ==========================================================================
   TOPNAV (Logo + Centered Searchbar + Back Pill)
   ========================================================================== */
.m-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--m-bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--m-border-subtle);
  transition: all 0.25s ease;
}

.m-nav::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(225, 29, 72, 0.35) 50%, transparent 100%);
  pointer-events: none;
}

.m-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 0;
}

.m-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.m-logo-brand {
  font-family: var(--m-font-heading);
  font-size: clamp(19px, 3.8vw, 22px);
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--m-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-logo-badge {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 2.5px 8px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 0 14px var(--m-accent-glow);
  position: relative;
  animation: crimsonPulse 3s infinite ease-in-out;
}

@keyframes crimsonPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(225, 29, 72, 0.35);
  }
  50% {
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.65);
  }
}

/* Navbar Search Input */
.m-nav-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  margin: 0 12px;
}

.m-nav-search-input {
  width: 100%;
  height: 42px;
  background: rgba(19, 23, 34, 0.7);
  border: 1px solid var(--m-border-subtle);
  border-radius: 999px;
  padding: 0 18px 0 42px; /* icon on left */
  color: #fff;
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s var(--m-transition-spring);
  backdrop-filter: blur(10px);
}

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

.m-nav-search-input:focus {
  border-color: var(--m-accent);
  box-shadow: 0 0 0 3px var(--m-accent-glow-subtle), 0 8px 24px rgba(0, 0, 0, 0.4);
  background: rgba(22, 27, 40, 0.95);
}

.m-nav-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--m-text-muted);
  font-size: 13.5px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.m-nav-search-input:focus ~ .m-nav-search-icon {
  color: var(--m-accent);
}

/* Dropdown Search Modal */
.m-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(12, 15, 24, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--m-border-crimson-subtle);
  border-radius: 16px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.9), 0 0 24px var(--m-accent-glow-subtle);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
  display: none;
  animation: mDropdownFade 0.2s var(--m-transition-spring);
}

.m-search-dropdown.open {
  display: block;
}

@keyframes mDropdownFade {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.m-search-dropdown-header {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--m-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--m-border-subtle);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 0.18s ease;
}

.m-search-item:hover, .m-search-item:focus {
  background: rgba(225, 29, 72, 0.12);
  outline: none;
  transform: translateX(3px);
}

.m-search-thumb {
  width: 38px;
  height: 54px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.m-search-item-title {
  font-family: var(--m-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.m-search-item-sub {
  font-size: 11.5px;
  color: var(--m-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-search-item-rank {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(225, 29, 72, 0.15);
  color: var(--m-accent-hover);
  border: 1px solid var(--m-border-crimson-subtle);
  flex-shrink: 0;
}

.m-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--m-text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--m-border-subtle);
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s var(--m-transition-spring);
}

.m-btn-back:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.m-btn-back:active {
  transform: scale(0.97);
}

@media (max-width: 600px) {
  .m-nav-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .m-nav-search {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin: 6px 0 0 0;
  }
  .hide-mobile {
    display: none;
  }
}

/* ==========================================================================
   HERO SLIDER CAROUSEL (Cinematic Stage)
   ========================================================================== */
.m-hero {
  padding: 24px 0 16px 0;
}

.m-hero-slider-wrap {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--m-border-crimson-subtle);
  background: var(--m-bg-surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 25px rgba(225, 29, 72, 0.12);
  text-align: left;
}

.m-slider-track {
  position: relative;
  width: 100%;
  min-height: 280px;
}

@media (min-width: 768px) {
  .m-slider-track {
    min-height: 330px;
  }
}

.m-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  display: flex;
  align-items: center;
}

.m-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.m-slide-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: blur(34px) brightness(0.28) saturate(1.4);
  transform: scale(1.18);
  z-index: 1;
}

.m-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 7, 10, 0.96) 0%, rgba(6, 7, 10, 0.8) 45%, rgba(6, 7, 10, 0.9) 100%);
  z-index: 2;
}

@media (max-width: 767px) {
  .m-slide-overlay {
    background: linear-gradient(180deg, rgba(6, 7, 10, 0.85) 0%, rgba(6, 7, 10, 0.98) 100%);
  }
}

.m-slide-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 24px 32px;
  width: 100%;
}

@media (max-width: 767px) {
  .m-slide-content {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 16px;
  }
}

.m-slide-cover {
  width: 130px;
  height: 190px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px var(--m-accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.3s var(--m-transition-spring);
}

.m-hero-slider-wrap:hover .m-slide-cover {
  transform: scale(1.02);
}

@media (min-width: 768px) {
  .m-slide-cover {
    width: 155px;
    height: 228px;
  }
}

.m-slide-details {
  flex: 1;
  min-width: 0;
}

.m-slide-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid var(--m-border-active);
  color: var(--m-accent-hover);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 0 10px var(--m-accent-glow-subtle);
}

.m-slide-title {
  font-family: var(--m-font-heading);
  font-size: clamp(20px, 3.6vw, 28px);
  font-weight: 850;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.m-slide-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--m-text-secondary);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .m-slide-meta {
    justify-content: center;
  }
}

.m-slide-synopsis {
  font-size: 13.5px;
  color: var(--m-text-muted);
  line-height: 1.55;
  max-width: 640px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.m-slide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 767px) {
  .m-slide-actions {
    justify-content: center;
  }
}

.m-btn-slide-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 6px 20px var(--m-accent-glow);
  transition: all 0.25s var(--m-transition-spring);
}

.m-btn-slide-read:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.5);
}

.m-btn-slide-read:active {
  transform: scale(0.97);
}

/* Slider Controls */
.m-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(12, 15, 23, 0.85);
  border: 1px solid var(--m-border-subtle);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}

.m-slider-btn:hover {
  background: var(--m-accent);
  border-color: var(--m-accent);
  box-shadow: 0 0 16px var(--m-accent-glow);
}

.m-slider-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.m-slider-btn.prev { left: 14px; }
.m-slider-btn.next { right: 14px; }

.m-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.m-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s var(--m-transition-spring);
}

.m-dot.active {
  width: 26px;
  background: var(--m-accent);
  box-shadow: 0 0 10px var(--m-accent-glow);
}

/* ==========================================================================
   SECTION CLASSEMENT (LEADERBOARD & PODIUM)
   ========================================================================== */
.m-section {
  padding: 36px 0;
  position: relative;
}

.m-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--m-border-subtle);
  padding-bottom: 16px;
  flex-wrap: wrap;
}

.m-section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.m-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid var(--m-border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--m-accent);
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--m-accent-glow-subtle);
}

.m-section-title {
  font-family: var(--m-font-heading);
  font-size: clamp(21px, 3.5vw, 26px);
  font-weight: 850;
  letter-spacing: -0.5px;
  color: #fff;
}

.m-section-sub {
  font-size: 13px;
  color: var(--m-text-muted);
}

/* ==========================================================================
   PODIUM (TOP 1, 2, 3)
   ========================================================================== */
.m-podium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  min-width: 0;
}

@media (min-width: 960px) {
  .m-podium-grid {
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
    gap: 24px;
  }
}

/* Top #1 Spotlight Card */
.m-card-champion {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.16) 0%, rgba(14, 18, 28, 0.95) 60%);
  border: 1px solid var(--m-border-active);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 22px;
  position: relative;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 18px 40px -10px var(--m-accent-glow), 0 0 20px rgba(225, 29, 72, 0.1);
  transition: transform 0.3s var(--m-transition-spring), box-shadow 0.3s var(--m-transition-spring);
}

@media (max-width: 560px) {
  .m-card-champion {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
  }
}

.m-card-champion:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -8px rgba(225, 29, 72, 0.45);
  border-color: rgba(225, 29, 72, 0.6);
}

.m-champ-rank {
  position: absolute;
  top: 12px;
  right: 18px;
  font-family: var(--m-font-heading);
  font-size: clamp(52px, 9vw, 76px);
  font-weight: 950;
  line-height: 1;
  color: rgba(225, 29, 72, 0.18);
  pointer-events: none;
  user-select: none;
}

.m-champ-cover {
  width: 130px;
  height: 190px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 600px) {
  .m-champ-cover {
    width: 140px;
    height: 205px;
  }
}

.m-champ-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.m-champ-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  .m-champ-badge-row {
    justify-content: center;
  }
}

.m-rank-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
}

.m-rank-pill.gold {
  background: rgba(245, 158, 11, 0.2);
  color: var(--m-gold);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 10px var(--m-gold-glow);
}

.m-rank-pill.silver {
  background: rgba(148, 163, 184, 0.2);
  color: var(--m-silver);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.m-rank-pill.bronze {
  background: rgba(217, 119, 6, 0.2);
  color: var(--m-bronze);
  border: 1px solid rgba(217, 119, 6, 0.4);
}

.m-champ-title {
  font-family: var(--m-font-heading);
  font-size: clamp(18px, 3.5vw, 22px);
  font-weight: 850;
  color: #fff;
  margin-bottom: 5px;
  line-height: 1.25;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  transition: color 0.2s ease;
}

.m-champ-title:hover {
  color: var(--m-accent-hover);
}

.m-champ-author {
  font-size: 13px;
  color: var(--m-text-secondary);
  margin-bottom: 10px;
}

.m-champ-synopsis {
  font-size: 13px;
  color: var(--m-text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

.m-champ-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

@media (max-width: 560px) {
  .m-champ-footer {
    justify-content: center;
    gap: 16px;
  }
}

.m-perf-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--m-text-secondary);
}

.m-btn-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px var(--m-accent-glow);
  transition: all 0.2s var(--m-transition-spring);
  white-space: nowrap;
}

.m-btn-read:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.45);
}

.m-btn-read:active {
  transform: scale(0.97);
}

/* Podium Rank 2 & 3 side stack */
.m-podium-runners {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}

.m-runner-card {
  background: var(--m-bg-card-glass);
  border: 1px solid var(--m-border-subtle);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s var(--m-transition-spring);
  text-decoration: none;
  color: inherit;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.m-runner-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(20, 24, 38, 0.85);
  transform: translateX(4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.m-runner-rank-num {
  font-family: var(--m-font-heading);
  font-size: clamp(24px, 4.2vw, 30px);
  font-weight: 950;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.m-runner-rank-num.silver {
  color: var(--m-silver);
  text-shadow: 0 0 12px var(--m-silver-glow);
}

.m-runner-rank-num.bronze {
  color: var(--m-bronze);
  text-shadow: 0 0 12px var(--m-bronze-glow);
}

.m-runner-cover {
  width: 62px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.m-runner-details {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

.m-runner-title {
  font-family: var(--m-font-heading);
  font-size: 15px;
  font-weight: 750;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  display: block;
}

.m-runner-author {
  font-size: 12.5px;
  color: var(--m-text-secondary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   LEADERBOARD ROWS (4, 5, 6, 7...)
   ========================================================================== */
.m-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.m-lead-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--m-bg-card-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--m-border-subtle);
  border-radius: 14px;
  transition: all 0.22s var(--m-transition-spring);
  text-decoration: none;
  color: inherit;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

@media (min-width: 600px) {
  .m-lead-row {
    gap: 18px;
    padding: 14px 22px;
  }
}

.m-lead-row:hover {
  background: rgba(22, 27, 42, 0.9);
  border-color: var(--m-border-active);
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 16px var(--m-accent-glow-subtle);
}

.m-lead-rank {
  font-family: var(--m-font-heading);
  font-size: 18px;
  font-weight: 900;
  color: var(--m-text-muted);
  width: 30px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.m-lead-row:hover .m-lead-rank {
  color: var(--m-accent);
}

.m-lead-cover {
  width: 44px;
  height: 64px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.m-lead-meta {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

.m-lead-title {
  font-family: var(--m-font-heading);
  font-size: 14.5px;
  font-weight: 750;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  display: block;
}

.m-lead-sub {
  font-size: 12px;
  color: var(--m-text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-lead-stats {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: auto;
  gap: 12px;
  font-size: 12.5px;
  color: var(--m-text-secondary);
  flex-shrink: 0;
}

/* ==========================================================================
   DERNIERES SORTIES GRID
   ========================================================================== */
.m-grid-releases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

@media (min-width: 600px) {
  .m-grid-releases {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
  }
}

.m-rel-card {
  background: var(--m-bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--m-border-subtle);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s var(--m-transition-spring);
  display: flex;
  flex-direction: column;
}

.m-rel-card:hover {
  transform: translateY(-4px);
  border-color: var(--m-border-active);
  box-shadow: 0 14px 28px -6px var(--m-accent-glow);
}

.m-rel-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #090b10;
}

.m-rel-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--m-transition-spring);
}

.m-rel-card:hover .m-rel-cover {
  transform: scale(1.06);
}

.m-rel-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 900;
  padding: 2.5px 7px;
  border-radius: 5px;
  background: rgba(225, 29, 72, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.m-rel-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.m-rel-title {
  font-family: var(--m-font-heading);
  font-size: 13.5px;
  font-weight: 750;
  color: #fff;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.m-rel-footer {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--m-text-muted);
}

/* ==========================================================================
   AGE GATE MODAL (+18)
   ========================================================================== */
.m-age-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 7, 0.94);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s var(--m-transition-spring);
}

.m-age-gate-overlay.hidden {
  display: none;
  opacity: 0;
}

.m-age-gate-card {
  background: rgba(14, 18, 28, 0.96);
  border: 1px solid var(--m-border-active);
  border-radius: 24px;
  max-width: 460px;
  width: 100%;
  padding: 34px 26px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 35px var(--m-accent-glow);
  position: relative;
  overflow: hidden;
}

.m-age-gate-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 160px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.3) 0%, transparent 70%);
  pointer-events: none;
}

.m-age-gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(225, 29, 72, 0.14);
  border: 1px solid var(--m-border-active);
  color: var(--m-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 20px auto;
  box-shadow: 0 0 20px var(--m-accent-glow);
  animation: shieldPulse 2.5s infinite ease-in-out;
}

@keyframes shieldPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.35);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 28px rgba(225, 29, 72, 0.65);
  }
}

.m-age-gate-title {
  font-family: var(--m-font-heading);
  font-size: 23px;
  font-weight: 850;
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: -0.5px;
}

.m-age-gate-desc {
  font-size: 14px;
  color: var(--m-text-secondary);
  line-height: 1.6;
  margin-bottom: 26px;
}

.m-age-gate-desc strong {
  color: #fff;
}

.m-age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m-btn-confirm-age {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--m-accent-glow);
  transition: all 0.25s var(--m-transition-spring);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.m-btn-confirm-age:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.5);
}

.m-btn-confirm-age:active {
  transform: scale(0.97);
}

.m-btn-cancel-age {
  background: rgba(255, 255, 255, 0.04);
  color: var(--m-text-muted);
  border: 1px solid var(--m-border-subtle);
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--m-transition-spring);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.m-btn-cancel-age:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

/* Empty State */
.m-empty-state {
  text-align: center;
  padding: 52px 20px;
  background: var(--m-bg-card-glass);
  border: 1px dashed var(--m-border-subtle);
  border-radius: 16px;
  color: var(--m-text-secondary);
}

.m-empty-icon {
  font-size: 38px;
  color: var(--m-accent);
  margin-bottom: 14px;
}


/* ==========================================================================
   MOBILE BOTTOM APP BAR & NATIVE MOBILE APP UX
   ========================================================================== */
.m-bottom-nav {
  display: none; /* Hidden on desktop */
}

@media (max-width: 767px) {
  /* Body clearance for bottom bar */
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 10px));
  }

  /* Fixed Native Bottom App Bar */
  .m-bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 990;
    background: rgba(9, 11, 18, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6), 0 -1px 0 rgba(225, 29, 72, 0.3);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 10px)) 8px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .m-bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
  }

  .m-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--m-text-secondary);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
  }

  .m-bnav-icon-wrap {
    width: 36px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 16px;
    color: var(--m-text-secondary);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .m-bnav-label {
    font-family: var(--m-font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--m-text-muted);
    transition: color 0.2s ease, font-weight 0.2s ease;
  }

  /* Active / Selected Bottom Tab */
  .m-bottom-nav-item.active .m-bnav-icon-wrap {
    background: rgba(225, 29, 72, 0.16);
    color: var(--m-accent-hover);
    box-shadow: 0 0 14px var(--m-accent-glow);
    transform: translateY(-2px);
  }

  .m-bottom-nav-item.active .m-bnav-label {
    color: #ffffff;
    font-weight: 800;
  }

  /* Tap feedback */
  .m-bottom-nav-item:active {
    transform: scale(0.92);
  }

  /* Mobile Topnav Header Clean-up */
  .m-nav-inner {
    padding: 8px 0;
    gap: 10px;
  }

  .m-nav-search {
    order: unset;
    margin: 0;
    flex: 1;
    max-width: none;
  }

  .m-nav-search-input {
    height: 38px;
    font-size: 12.5px;
    padding: 0 14px 0 38px;
  }

  .m-nav-actions {
    display: none; /* Moved to bottom navigation bar! */
  }

  .m-logo-brand span:first-child {
    font-size: 17px;
  }
}


/* ==========================================================================
   CATALOGUE MATURE (+18) SECTION & FILTERS
   ========================================================================== */
.m-catalog-count-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.14);
  color: var(--m-accent-hover);
  border: 1px solid var(--m-border-active);
  letter-spacing: 0.3px;
  box-shadow: 0 0 10px var(--m-accent-glow-subtle);
}

.m-catalog-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.m-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.m-select-icon {
  position: absolute;
  left: 12px;
  font-size: 11.5px;
  color: var(--m-text-muted);
  pointer-events: none;
}

.m-catalog-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--m-bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--m-border-subtle);
  color: var(--m-text-primary);
  font-family: var(--m-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 30px 8px 32px;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s var(--m-transition-spring);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.m-catalog-select:hover {
  border-color: var(--m-border-hover);
  background-color: rgba(22, 27, 40, 0.85);
}

.m-catalog-select:focus {
  border-color: var(--m-accent);
  box-shadow: 0 0 0 3px var(--m-accent-glow-subtle);
}

/* Horizontal Genre Pills */
.m-genre-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 4px 0 16px 0;
  margin-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.m-genre-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.m-genre-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
}

.m-genre-pill {
  background: var(--m-bg-card-glass);
  border: 1px solid var(--m-border-subtle);
  color: var(--m-text-secondary);
  font-family: var(--m-font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s var(--m-transition-spring);
  outline: none;
}

.m-genre-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(22, 27, 40, 0.8);
  transform: translateY(-1px);
}

.m-genre-pill.active {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px var(--m-accent-glow);
  font-weight: 750;
  transform: translateY(-1px);
}

/* Catalog Cards Grid */
.m-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  min-height: 200px;
}

@media (min-width: 600px) {
  .m-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 22px;
  }
}

.m-catalog-card {
  background: var(--m-bg-card-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--m-border-subtle);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s var(--m-transition-spring);
  display: flex;
  flex-direction: column;
  position: relative;
}

.m-catalog-card:hover {
  transform: translateY(-4px);
  border-color: var(--m-border-active);
  box-shadow: 0 16px 32px -8px var(--m-accent-glow);
}

.m-catalog-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #090b11;
}

.m-catalog-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--m-transition-spring);
}

.m-catalog-card:hover .m-catalog-cover {
  transform: scale(1.06);
}

.m-catalog-tag-mature {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9.5px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(225, 29, 72, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.m-catalog-tag-status {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9.5px;
  font-weight: 750;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(10, 12, 18, 0.8);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.m-catalog-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.m-catalog-card-title {
  font-family: var(--m-font-heading);
  font-size: 14px;
  font-weight: 750;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.m-catalog-card-author {
  font-size: 11.5px;
  color: var(--m-text-secondary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-catalog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--m-text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 8px;
  margin-top: auto;
}

.m-catalog-loading, .m-catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 16px;
  color: var(--m-text-secondary);
  font-size: 14px;
}

.m-catalog-load-wrap {
  text-align: center;
  margin-top: 28px;
}

.m-btn-load-more {
  background: var(--m-bg-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--m-border-subtle);
  color: #fff;
  font-family: var(--m-font-sans);
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s var(--m-transition-spring);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.m-btn-load-more:hover {
  background: linear-gradient(135deg, #e11d48, #be123c);
  border-color: transparent;
  box-shadow: 0 6px 20px var(--m-accent-glow);
  transform: translateY(-2px);
}

.m-btn-load-more:active {
  transform: scale(0.97);
}


/* ==========================================================================
   ADSTERRA SOCIAL BAR (FLOATING AD) MOBILE POSITIONING
   Ensures the floating ad never overlaps our bottom navigation dock
   ========================================================================== */
@media (max-width: 767px) {
  .m-bottom-nav {
    z-index: 10000 !important;
  }

  /* Target dynamic floating wrappers / iframes injected by Adsterra Social Bar */
  div[style*="fixed"][style*="bottom: 0"],
  div[style*="fixed"][style*="bottom:0"],
  iframe[style*="fixed"][style*="bottom: 0"],
  iframe[style*="fixed"][style*="bottom:0"],
  .adsterra-social-bar,
  [class*="social-bar"],
  [id*="adsterra"] {
    bottom: calc(66px + env(safe-area-inset-bottom, 10px)) !important;
    transition: bottom 0.25s ease;
  }
}
