:root {
  --brand-red: #e50914;
  --brand-red-hover: #f6121d;
  --brand-ink: #f7f7f7;
  --brand-muted: rgba(255,255,255,0.58);
  --brand-panel-solid: #111;
  --brand-border: rgba(255,255,255,0.09);
  --brand-radius: 8px;
  --brand-radius-lg: 14px;
  --brand-shadow: 0 16px 44px rgba(0,0,0,0.38);
  --brand-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --brand-display: Impact, 'Arial Narrow', 'Bebas Neue', sans-serif;
}

body {
  font-family: var(--brand-font);
  color: var(--brand-ink);
}

.navbar {
  background: linear-gradient(180deg, rgba(8,8,8,0.96), rgba(8,8,8,0.76));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
}

.logo,
.footer-logo,
.auth-logo {
  font-family: var(--brand-display) !important;
  letter-spacing: 2px !important;
}

.logo-d,
#adminLogoTap {
  border-radius: var(--brand-radius) !important;
  background: linear-gradient(180deg, var(--brand-red-hover), var(--brand-red)) !important;
  box-shadow: 0 10px 28px rgba(229,9,20,0.34) !important;
}

.logo-flix,
.section-title .accent,
.footer-logo {
  color: var(--brand-red) !important;
  text-shadow: 0 0 18px rgba(229,9,20,0.22);
}

.section-title {
  font-family: var(--brand-font) !important;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0 !important;
}

.section-header {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 10px;
}

.btn-primary,
.btn-full,
.btn-register-nav,
.tab-btn.active,
.stab-active,
button[style*="background:#e50914"],
button[style*="background: #e50914"] {
  background: linear-gradient(180deg, var(--brand-red-hover), var(--brand-red)) !important;
  border-color: rgba(229,9,20,0.65) !important;
  border-radius: var(--brand-radius) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(229,9,20,0.22);
  font-weight: 800 !important;
}

.btn-secondary,
.btn-login,
.btn-info,
.tab-btn,
.stab,
.spill,
.footer-link-btn,
.social-btn {
  border-radius: var(--brand-radius) !important;
}

.btn-secondary,
.btn-login,
.btn-info,
.tab-btn,
.stab,
.spill {
  background: rgba(255,255,255,0.055) !important;
  border: 1px solid var(--brand-border) !important;
  color: rgba(255,255,255,0.78) !important;
}

.btn-secondary:hover,
.btn-login:hover,
.btn-info:hover,
.tab-btn:hover,
.stab:hover,
.spill:hover {
  background: rgba(255,255,255,0.095) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: #fff !important;
}

.movie-card,
.progress-card,
.top10-card,
.match-card,
.promo-banner,
.auth-box {
  border-radius: var(--brand-radius-lg) !important;
  border: 1px solid var(--brand-border) !important;
  background-color: var(--brand-panel-solid) !important;
}

.movie-card:hover,
.match-card:hover,
.progress-card:hover {
  border-color: rgba(229,9,20,0.38) !important;
  box-shadow: var(--brand-shadow);
}

.footer {
  background: linear-gradient(180deg, rgba(10,10,10,0.42), rgba(0,0,0,0.78)) !important;
  border-top: 1px solid var(--brand-border) !important;
}

.footer-col h4,
.sport-section-title,
.match-league {
  letter-spacing: 1.2px !important;
  color: rgba(255,255,255,0.42) !important;
}

body.light-mode {
  --brand-ink: #111;
  --brand-muted: rgba(0,0,0,0.56);
  --brand-panel-solid: #fff;
  --brand-border: rgba(0,0,0,0.1);
}

/* =========================================================
   HOME CARD NORMALIZATION — featured rows = Tendances cards
   Keeps every injected V15.6 collection on the same mobile
   geometry as the main DOBERTO FLIX catalogue rows.
   ========================================================= */
#df8Shell #df156Featured .df156-section .df8-row {
  display: flex !important;
  align-items: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 2px 14px 12px 0 !important;
  margin: 0 !important;
  scroll-snap-type: x proximity !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

#df8Shell #df156Featured .df156-section .df8-row::-webkit-scrollbar {
  display: none !important;
}

#df8Shell #df156Featured .df156-section .df8-row > .df8-card.df156-card {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 clamp(122px, 32vw, 142px) !important;
  width: clamp(122px, 32vw, 142px) !important;
  min-width: clamp(122px, 32vw, 142px) !important;
  max-width: clamp(122px, 32vw, 142px) !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  text-align: left !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  scroll-snap-align: start !important;
  transform: none !important;
}

#df8Shell #df156Featured .df156-section .df8-row > .df8-card.df156-card > .df8-poster {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 2 / 3 !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  background: #111318 !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.30) !important;
}

#df8Shell #df156Featured .df156-section .df8-row > .df8-card.df156-card > .df8-poster > img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}

#df8Shell #df156Featured .df156-section .df8-row > .df8-card.df156-card > .df8-card-title {
  display: -webkit-box !important;
  width: 100% !important;
  min-height: 31px !important;
  margin: 8px 1px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #f5f5f6 !important;
  font-size: 12.5px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.012em !important;
  white-space: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

#df8Shell #df156Featured .df156-section .df8-row > .df8-card.df156-card > .df8-card-meta {
  display: block !important;
  width: 100% !important;
  margin: 3px 1px 0 !important;
  padding: 0 !important;
  color: rgba(255,255,255,0.48) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

#df8Shell #df156Featured .df156-section .df8-row > .df8-card.df156-card .df8-score {
  z-index: 4 !important;
  top: 7px !important;
  right: 7px !important;
  left: auto !important;
  bottom: auto !important;
  padding: 4px 6px !important;
  border: 1px solid rgba(255,255,255,0.11) !important;
  border-radius: 7px !important;
  background: rgba(3,4,6,0.78) !important;
  color: #fff !important;
  font-size: 10px !important;
  line-height: 1 !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

#df8Shell #df156Featured .df156-section .df8-row > .df8-card.df156-card .df8-score b {
  color: #ef2633 !important;
}

/* Documentary was the row visibly stretching posters on mobile. */
#df8Shell #df156Featured #df156Documentary.df156-section .df8-poster {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 2 / 3 !important;
}

@media (min-width: 821px) {
  #df8Shell #df156Featured .df156-section .df8-row > .df8-card.df156-card {
    flex-basis: clamp(126px, 12.2vw, 154px) !important;
    width: clamp(126px, 12.2vw, 154px) !important;
    min-width: clamp(126px, 12.2vw, 154px) !important;
    max-width: 154px !important;
  }
}
