/* =========================================================
   MWINDA PRIME V3 - GLOBAL.CSS
   Base commune inspirée Prime Video.
========================================================= */

/* ===================================================== */
/* RESET */
/* ===================================================== */

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

html {
  width: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: #02060d;
  color: #ffffff;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===================================================== */
/* VARIABLES */
/* ===================================================== */

:root {
  --prime-bg: #02060d;
  --prime-panel: #171d26;
  --prime-soft: rgba(255, 255, 255, 0.09);
  --prime-soft-2: rgba(255, 255, 255, 0.16);
  --prime-blue: #1f8fff;
  --prime-yellow: #d4af37;
  --prime-text: #ffffff;
  --prime-muted: rgba(255, 255, 255, 0.68);
  --prime-line: rgba(255, 255, 255, 0.12);
  --prime-radius: 14px;
  --prime-header: 66px;
}

/* ===================================================== */
/* HEADER */
/* ===================================================== */

.prime-header {
  position: fixed;
  top: 0px;
  left: 50%;
  z-index: 1000;
  width: min(1760px, calc(100% - 96px));
  height: var(--prime-header);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 22px;
  border-radius: 0 0 14px 14px;
  background: rgba(19, 27, 36, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
}

.prime-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
}

.prime-logo img {
  width: 122px;
  max-height: 38px;
  object-fit: contain;
}

.prime-logo span {
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.prime-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prime-nav a {
  padding: 12px 16px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  transition: 0.25s ease;
}

.prime-nav a.active,
.prime-nav a:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.prime-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button,
.profile-button {
  width: 42px;
  height: 42px;
  border: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  color: white;
}

.icon-button:hover,
.profile-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-button img,
.profile-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.grid-icon {
  letter-spacing: 2px;
  transform: rotate(90deg);
  font-size: 18px;
}

.language-select {
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-weight: 900;
}

/* ===================================================== */
/* SEARCH OVERLAY */
/* ===================================================== */

.search-overlay {
  position: fixed;
  inset: 0 0 auto;
  z-index: 2000;
  display: none;
  padding: 78px 40px 42px;
  background: rgba(19, 27, 36, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.search-overlay.show {
  display: block;
}

.search-box-large {
  width: min(100%, 2100px);
  margin: 0 auto 28px;
  min-height: 110px;
  display: grid;
  grid-template-columns: 58px 1fr auto 48px;
  align-items: center;
  gap: 18px;
  padding: 0 30px;
  border: 4px solid white;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
}

.search-box-large img {
  width: 42px;
  filter: brightness(0) invert(1);
  opacity: 0.72;
}

.search-box-large input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
}

.search-box-large input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-box-large button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.search-close {
  font-size: 42px !important;
}

.search-results {
  width: min(100%, 2100px);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 24px;
}

.search-card {
  cursor: pointer;
}

.search-card-art {
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.search-card h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.search-card p {
  margin: 0;
  color: var(--prime-muted);
  font-size: 16px;
}

/* ===================================================== */
/* PAGE */
/* ===================================================== */

.prime-page {
  min-height: 100vh;
  background: #02060d;
  padding-bottom: 80px;
}

/* ===================================================== */
/* ROWS */
/* ===================================================== */

.prime-row-section {
  position: relative;
  margin: 0 0 42px;
  padding: 0 0 0 72px;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 14px;
}

.row-title h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
}

.row-title a {
  font-size: 22px;
  font-weight: 900;
}

.row-wrap {
  position: relative;
}

.prime-row,
.top10-row,
.large-expand-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 8px 90px 38px 0;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.prime-row::-webkit-scrollbar,
.top10-row::-webkit-scrollbar,
.large-expand-row::-webkit-scrollbar {
  display: none;
}

.row-arrow {
  position: absolute;
  top: 8px;
  bottom: 38px;
  z-index: 20;
  width: 58px;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 13, 0.58);
  opacity: 0;
  transition: 0.25s ease;
}

.row-wrap:hover .row-arrow {
  opacity: 1;
}

.row-arrow.left {
  left: -58px;
  border-radius: 0 12px 12px 0;
}

.row-arrow.right {
  right: 0;
  border-radius: 12px 0 0 12px;
}

.row-arrow img {
  width: 34px;
  filter: brightness(0) invert(1);
}

/* ===================================================== */
/* CARDS */
/* ===================================================== */

.poster-art {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.25), transparent 24%),
    linear-gradient(135deg, var(--c1), var(--c2));
}

.poster-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 58%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 64%);
  z-index: 1;
}

.poster-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-art img[src=""],
.poster-art img:not([src]) {
  display: none;
}

.poster-title {
  position: absolute;
  left: 18px;
  bottom: 42px;
  z-index: 2;
  max-width: 80%;
  color: white;
  font-size: 32px;
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -1px;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.74);
}

.bag-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  width: 22px;
  height: 22px;
}

.bag-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-chip {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  padding: 4px 8px;
  background: white;
  color: #111827;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.prime-card {
  position: relative;
  flex: 0 0 306px;
  height: 172px;
  border-radius: 12px;
  overflow: hidden;
  background: #101820;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prime-card:hover {
  transform: translateY(-7px) scale(1.045);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.62);
  z-index: 10;
}

.prime-card .poster-title {
  font-size: 25px;
}

.prime-card-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
}

/* ===================================================== */
/* BUTTONS */
/* ===================================================== */

.hero-primary,
.prime-button,
.detail-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.20);
  color: white;
  font-weight: 950;
  backdrop-filter: blur(12px);
  transition: 0.25s ease;
}

.hero-primary:hover,
.prime-button:hover,
.detail-button:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.round-button {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.20);
  color: white;
  font-size: 27px;
  font-weight: 900;
  backdrop-filter: blur(10px);
  transition: 0.25s ease;
}

.round-button:hover {
  background: rgba(255, 255, 255, 0.30);
  transform: scale(1.05);
}

.round-button img {
  width: 26px;
  filter: brightness(0) invert(1);
}

/* ===================================================== */
/* RESPONSIVE */
/* ===================================================== */

@media (max-width: 1200px) {

  .prime-header {
    width: 100%;
    top: 0;
    border-radius: 0;
  }

  .prime-row-section {
    padding-left: 34px;
  }

}

@media (max-width: 900px) {

  .search-box-large {
    grid-template-columns: 42px 1fr 42px;
  }

  .search-box-large #clearSearch {
    display: none;
  }

  .search-results {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

}

@media (max-width: 760px) {

  .prime-header {
    gap: 10px;
    padding: 0 12px;
  }

  .prime-logo span {
    display: none;
  }

  .prime-nav {
    gap: 2px;
  }

  .prime-nav a {
    padding: 10px 8px;
    font-size: 14px;
  }

  .language-select,
  .profile-button {
    display: none;
  }

  .prime-row-section {
    padding-left: 16px;
  }

  .row-title h2 {
    font-size: 20px;
  }

  .row-title a {
    font-size: 17px;
  }

  .prime-card {
    flex-basis: 238px;
    height: 134px;
  }

  .prime-card .poster-title {
    font-size: 21px;
  }

  .search-overlay {
    padding: 78px 16px 28px;
  }

  .search-box-large {
    min-height: 80px;
    padding: 0 18px;
  }

}

@media (max-width: 480px) {

  .prime-nav a {
    font-size: 13px;
    padding: 9px 6px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .prime-card {
    flex-basis: 210px;
    height: 118px;
  }

  .search-results {
    grid-template-columns: 1fr;
  }

}


/* =====================================================
   MWINDA PROFILE HEADER UPDATE
   Affiche le logo et remplace l'icône profil par la photo.
===================================================== */

.prime-logo img {
  display: block;
  width: auto;
  max-width: 150px;
  max-height: 48px;
  object-fit: contain;
}

.prime-logo span {
  display: none;
}

.profile-button.has-profile {
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(212, 175, 55, 0.55);
  background: rgba(255, 255, 255, 0.10);
}

.header-profile-avatar {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50%;
  filter: none !important;
}

@media (max-width: 760px) {

  .prime-logo img {
    max-width: 96px;
    max-height: 42px;
  }

}


/* =====================================================
   HERO SCROLL BUTTONS - FIX LOGO VERSION
   Flèches visibles sur Accueil, Films et Séries.
===================================================== */

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 999;
  width: 64px;
  height: 112px;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.46);
  transform: translateY(-50%);
  opacity: 1;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow.left {
  left: 18px;
  border-radius: 0 18px 18px 0;
}

.hero-arrow.right {
  right: 18px;
  border-radius: 18px 0 0 18px;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.03);
}

.hero-arrow img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: none;
}

/*.hero-dots button {
  cursor: pointer;
}*/

@media (max-width: 760px) {
  .hero-arrow {
    width: 46px;
    height: 80px;
  }

  .hero-arrow.left {
    left: 0;
  }

  .hero-arrow.right {
    right: 0;
  }

  .hero-arrow img {
    width: 28px;
    height: 28px;
  }
}


/* =====================================================
   ROW SCROLL BUTTONS - ACCUEIL / FILMS / SERIES
   Les flèches apparaissent quand la souris passe sur la rangée.
===================================================== */

.row-wrap {
  position: relative;
  overflow: hidden;
}

.row-arrow {
  position: absolute;
  top: 8px;
  bottom: 38px;
  z-index: 50;
  width: 58px;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.row-wrap:hover .row-arrow {
  opacity: 1;
  pointer-events: auto;
}

.row-arrow.left {
  left: 0;
  border-radius: 0 14px 14px 0;
}

.row-arrow.right {
  right: 0;
  border-radius: 14px 0 0 14px;
}

.row-arrow:hover {
  background: rgba(0, 0, 0, 0.82);
}

.row-arrow img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: none;
}

.row-arrow.is-disabled,
.row-arrow.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

.mw-row,
.prime-row,
.top10-row,
.large-row,
.large-expand-row,
.related-grid {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.mw-row::-webkit-scrollbar,
.prime-row::-webkit-scrollbar,
.top10-row::-webkit-scrollbar,
.large-row::-webkit-scrollbar,
.large-expand-row::-webkit-scrollbar,
.related-grid::-webkit-scrollbar {
  display: none;
}

@media (max-width: 760px) {
  .row-arrow {
    width: 44px;
    opacity: 1;
    pointer-events: auto;
  }

  .row-arrow img {
    width: 26px;
    height: 26px;
  }
}


/* =====================================================
   MWINDA CLEAN ACTIONS - NO SCROLL CHANGE
===================================================== */

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

.hero-secondary {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-weight: 950;
  backdrop-filter: blur(12px);
  transition: 0.25s ease;
}

.hero-secondary:hover {
  background: rgba(212, 175, 55, 0.42);
  transform: translateY(-2px);
}

.mw-action-circle {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.26);
  transition: 0.25s ease;
}

.mw-action-circle:hover,
.mw-action-circle.is-active {
  border-color: rgba(212, 175, 55, 0.95);
  background: rgba(212, 175, 55, 0.18);
  transform: scale(1.05);
}

.mw-action-circle img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.mwinda-lock-indicator {
  position: absolute;
  left: 44px;
  bottom: 12px;
  z-index: 8;
  width: 22px;
  height: 22px;
}

.mwinda-lock-indicator img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mwinda-detail-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.mwinda-detail-actions .detail-icon {
  width: 62px;
  height: 62px;
}

.mwinda-detail-actions .detail-icon:hover,
.mwinda-detail-actions .detail-icon.is-active {
  border-color: rgba(212, 175, 55, 0.95);
  background: rgba(212, 175, 55, 0.16);
}

.mwinda-detail-actions .detail-icon img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@media (max-width: 760px) {
  .hero-secondary,
  .hero-primary {
    min-height: 48px;
    padding: 0 15px;
  }

  .mw-action-circle {
    width: 48px;
    height: 48px;
  }

  .mwinda-detail-actions .detail-icon {
    width: 52px;
    height: 52px;
  }
}


/* =====================================================
   MWINDA SAFE UPDATE - TITLES PNG / FAVORIS / FILTRES
===================================================== */

.hero-title-logo {
  max-width: min(560px, 76vw);
  max-height: 165px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}

.detail-title-logo {
  max-width: min(560px, 72vw);
  max-height: 190px;
  object-fit: contain;
  display: block;
}

.mw-title-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mw-safe-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 760px;
}

.hero-secondary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: 950;
  backdrop-filter: blur(12px);
  transition: 0.25s ease;
}

.hero-secondary:hover {
  background: rgba(212, 175, 55, 0.38);
}

.mw-action-circle {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(212, 175, 55, 0.38);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.30);
  transition: 0.22s ease;
}

.mw-action-circle:hover,
.mw-action-circle.is-active {
  border-color: rgba(212, 175, 55, 1);
  background: rgba(212, 175, 55, 0.20);
  transform: scale(1.05);
}

.mw-action-circle img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.mw-safe-lock {
  position: absolute;
  left: 42px;
  bottom: 12px;
  z-index: 12;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  opacity: 0.92;
}

.mw-safe-lock img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mw-card-actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.prime-card:hover .mw-card-actions,
.large-card:hover .mw-card-actions,
.top10-card:hover .mw-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.mw-card-primary,
.mw-card-secondary,
.mw-card-icon {
  border: 0;
  min-height: 34px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.mw-card-primary {
  padding: 0 14px;
  background: white;
  color: #050505;
}

.mw-card-secondary {
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.mw-card-icon {
  width: 34px;
  display: grid;
  place-items: center;
  background: rgba(212, 175, 55, 0.22);
}

.mw-card-icon img {
  width: 17px;
  height: 17px;
  filter: brightness(0) invert(1);
}

.favorites-header-button img {
  width: 23px;
  height: 23px;
}

.favorites-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 20px;
  z-index: 3000;
  width: min(420px, calc(100vw - 28px));
  max-height: 520px;
  display: none;
  border: 1px solid rgba(212, 175, 55, 0.26);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(12, 14, 18, 0.96);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
}

.favorites-panel.show {
  display: block;
}

.favorites-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.favorites-panel-head button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 26px;
}

.favorites-panel-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  max-height: 440px;
  overflow-y: auto;
}

.favorites-empty {
  color: rgba(255, 255, 255, 0.66);
  margin: 0;
}

.favorite-mini-card {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  border-radius: 12px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.favorite-mini-card:hover {
  background: rgba(212, 175, 55, 0.14);
}

.favorite-mini-art {
  height: 54px;
  overflow: hidden;
  border-radius: 9px;
}

.favorite-mini-card strong {
  display: block;
  margin-bottom: 4px;
}

.favorite-mini-card span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.filter-strip button {
  transition: 0.22s ease;
}

.filter-strip button.active {
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.row-arrow,
.hero-arrow {
  border: 1px solid rgba(212, 175, 55, 0.24);
}

.row-arrow:hover,
.hero-arrow:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.72);
}

.row-arrow img,
.hero-arrow img {
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.45));
}

.mw-safe-detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.mw-safe-detail-actions .detail-icon {
  width: 54px;
  height: 54px;
  border-width: 2px;
}

@media (max-width: 760px) {
  .hero-title-logo {
    max-width: 280px;
    max-height: 118px;
  }

  .detail-title-logo {
    max-width: 300px;
    max-height: 130px;
  }

  .mw-safe-hero-actions {
    gap: 8px;
  }

  .hero-primary,
  .hero-secondary {
    min-height: 46px;
    padding: 0 13px;
    font-size: 13px;
  }

  .mw-action-circle {
    width: 46px;
    height: 46px;
  }

  .mw-card-actions {
    display: none;
  }
}


/* =====================================================
   INLINE SVG ICON FIX
   Les boutons n'utilisent plus <img>, donc plus d'image cassée.
===================================================== */

.mw-action-circle svg,
.detail-icon svg,
.mw-card-icon svg,
.mw-safe-lock svg,
.mwinda-lock-indicator svg {
  width: 28px;
  height: 28px;
  display: block;
  overflow: visible;
}

.mw-action-circle svg *,
.detail-icon svg *,
.mw-card-icon svg *,
.mw-safe-lock svg *,
.mwinda-lock-indicator svg * {
  fill: none;
  stroke: #ffffff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mw-action-circle svg path[d*="M28 24"],
.detail-icon svg path[d*="M28 24"],
.mw-card-icon svg path[d*="M28 24"] {
  fill: #ffffff;
  stroke: none;
}

.mw-action-circle,
.detail-icon,
.mw-card-icon {
  color: #ffffff;
}


/* =====================================================
   MWINDA HTML SVG ACTIONS
   Les SVG sont dans le HTML, le design dans CSS, actions dans JS.
===================================================== */

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

.hero-secondary {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-weight: 950;
  backdrop-filter: blur(12px);
  transition: 0.25s ease;
}

.hero-secondary:hover {
  background: rgba(212, 175, 55, 0.34);
  transform: translateY(-2px);
}

.mw-action-circle,
.detail-icon,
.mw-card-icon {
  border: 2px solid rgba(212, 175, 55, 0.58) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
  overflow: hidden;
}

.mw-action-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.22s ease;
}

.mw-action-circle:hover,
.mw-action-circle.is-active,
.detail-icon:hover,
.detail-icon.is-active,
.mw-card-icon:hover {
  border-color: rgba(212, 175, 55, 1) !important;
  background: rgba(212, 175, 55, 0.16) !important;
  transform: scale(1.04);
}

.mw-action-circle img,
.detail-icon img,
.mw-card-icon img {
  width: 25px !important;
  height: 25px !important;
  display: block;
  object-fit: contain;
  background: transparent !important;
  filter: none !important;
}

.detail-icon img {
  width: 27px !important;
  height: 27px !important;
}

.mw-card-icon img {
  width: 17px !important;
  height: 17px !important;
}

.mw-action-circle svg,
.detail-icon svg,
.mw-card-icon svg {
  display: none !important;
}

.mw-safe-lock img,
.mwinda-lock-indicator img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: none !important;
  background: transparent !important;
}

@media (max-width: 760px) {
  .mw-action-circle {
    width: 46px;
    height: 46px;
  }

  .hero-secondary,
  .hero-primary {
    min-height: 46px;
    padding: 0 13px;
    font-size: 13px;
  }
}

/*SOunde*/

#heroSound .sound-on {
  display: none;
}

#heroSound.is-active .sound-off {
  display: none;
}

#heroSound.is-active .sound-on {
  display: block;
}

#mw-action-circle img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
}
/* =====================================================
   MWINDA CLEAN UPDATE - ICON COLORS / SCROLL / HOVER / LANG
===================================================== */
.icon-button img,
.profile-button img,
.favorites-header-button img,
.hero-arrow img,
.row-arrow img,
.mw-action-circle img,
.detail-icon img,
.round-button img,
.hero-note img,
.bag-icon img,
.search-box-large img,
.search-close img,
.control-button img,
.center-play img {
  filter: brightness(0) invert(1) !important;
}

.hero-primary,
.hero-secondary {
  position: relative;
  overflow: hidden;
}

.hero-primary:hover,
.hero-secondary:hover {
  box-shadow: 0 14px 42px rgba(255, 255, 255, 0.16);
}

.hero-primary::after,
.hero-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.24) 50%, transparent 100%);
  transform: translateX(-130%);
  transition: transform .45s ease;
}

.hero-primary:hover::after,
.hero-secondary:hover::after {
  transform: translateX(130%);
}

.sound-icon { display: none !important; }
#heroSound .sound-off,
[data-mw-sound] .sound-off,
[data-detail-action="sound"] .sound-off { display: block !important; }
#heroSound.is-active .sound-off,
[data-mw-sound].is-active .sound-off,
[data-detail-action="sound"].is-active .sound-off { display: none !important; }
#heroSound.is-active .sound-on,
[data-mw-sound].is-active .sound-on,
[data-detail-action="sound"].is-active .sound-on { display: block !important; }

.row-arrow,
.hero-arrow {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.row-arrow:hover,
.hero-arrow:hover {
  background: rgba(255,255,255,.06) !important;
  backdrop-filter: blur(6px);
}

.row-arrow:active,
.hero-arrow:active {
  background: transparent !important;
}

.row-arrow img,
.hero-arrow img {
  filter: brightness(0) invert(1) drop-shadow(0 8px 18px rgba(0,0,0,.45)) !important;
}

.mwinda-lock-indicator,
.mw-safe-lock.locked {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 12;
  width: 22px;
  height: 22px;
}

.mwinda-lock-indicator::before,
.mw-safe-lock.locked::before {
  content: "🔒";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 18px;
  filter: grayscale(1) brightness(1.8);
}

.detail-icons-slot { display: contents; }

.row-title a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}


/* =====================================================
   MWINDA PROFILE AVATAR FIX
   Le SVG profil reste blanc, mais la vraie photo utilisateur garde ses couleurs.
===================================================== */

.profile-button.has-profile {
  overflow: hidden;
  padding: 0;
  background: transparent !important;
}

.profile-button.has-profile img,
.profile-button.has-profile .header-profile-avatar,
.header-profile-avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  filter: none !important;
  background: transparent !important;
}

.profile-button:not(.has-profile) img {
  filter: brightness(0) invert(1) !important;
}

@media (max-width: 760px) {
  .profile-button.has-profile {
    display: grid !important;
  }
}

/* =====================================================
   MWINDA DETAIL BUTTONS / TABS / SEE MORE FIX
===================================================== */

.detail-icons-slot {
  display: block !important;
  width: 100%;
}

.detail-icons-slot .detail-icons,
.mwinda-detail-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 30;
}

.detail-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid !important;
  place-items: center;
  opacity: 1 !important;
  visibility: visible !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 2px solid rgba(255, 255, 255, 0.45) !important;
  transition: 0.22s ease;
}

.detail-icon:hover,
.detail-icon.is-active {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: rgba(212, 175, 55, 0.95) !important;
  transform: scale(1.05);
}

.detail-icon img {
  width: 25px !important;
  height: 25px !important;
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
}

.detail-tabs button {
  cursor: pointer;
}

.detail-info-grid {
  display: none;
}

.mwinda-see-more-panel {
  position: fixed;
  inset: 84px 32px 32px;
  z-index: 5000;
  display: none;
  flex-direction: column;
  border-radius: 24px;
  background: rgba(2, 6, 13, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.mwinda-see-more-panel.show {
  display: flex;
}

.mwinda-see-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.mwinda-see-more-head h2 {
  margin: 0;
  font-size: 28px;
}

.mwinda-see-more-head button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: white;
  font-size: 32px;
}

.mwinda-see-more-grid {
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  overflow: auto;
}

.mwinda-see-more-grid .prime-card {
  width: 100%;
  flex: none;
}

@media (max-width: 760px) {
  .mwinda-see-more-panel {
    inset: 70px 10px 10px;
    border-radius: 18px;
  }

  .mwinda-see-more-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }
}


/* =====================================================
   MWINDA FILTER ALL + DETAIL ACTIONS FIX
===================================================== */

.detail-icon.is-active,
[data-detail-action].is-active {
  background: rgba(212, 175, 55, 0.26) !important;
  border-color: rgba(212, 175, 55, 1) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.filter-strip button.active {
  background: var(--prime-yellow);
  color: #050505;
  border-color: var(--prime-yellow);
}


/* =====================================================
   MWINDA TRAILER DETAIL MODAL
   Fenêtre dédiée aux bandes-annonces, séparée du lecteur Watch.
===================================================== */
body.mwinda-trailer-open {
  overflow: hidden;
}

.mwinda-trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.mwinda-trailer-modal.show {
  display: flex;
}

.mwinda-trailer-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(212, 175, 55, .12), transparent 36%),
    rgba(0, 0, 0, .78);
  backdrop-filter: blur(18px);
}

.mwinda-trailer-window {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  background: rgba(5, 8, 14, .82);
  box-shadow: 0 34px 120px rgba(0, 0, 0, .72);
  transform: translateY(14px) scale(.98);
  opacity: 0;
  animation: mwindaTrailerIn .26s ease forwards;
}

.mwinda-trailer-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.mwinda-trailer-video,
.mwinda-trailer-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mwinda-trailer-video {
  object-fit: cover;
  background: #000;
}

.mwinda-trailer-fallback {
  display: none;
  place-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(7, 13, 24, .96), rgba(24, 18, 5, .92));
}

.mwinda-trailer-fallback strong {
  display: block;
  font-size: clamp(28px, 5vw, 62px);
  line-height: .95;
  letter-spacing: -.05em;
}

.mwinda-trailer-fallback span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, .72);
  font-weight: 800;
}

.mwinda-trailer-modal.no-video .mwinda-trailer-video {
  display: none;
}

.mwinda-trailer-modal.no-video .mwinda-trailer-fallback {
  display: grid;
}

.mwinda-trailer-copy {
  display: grid;
  gap: 4px;
  padding: 18px 22px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
}

.mwinda-trailer-copy span {
  color: var(--prime-yellow, #d4af37);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mwinda-trailer-copy strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  font-weight: 950;
}

.mwinda-trailer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .46);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  backdrop-filter: blur(12px);
  transition: transform .2s ease, background .2s ease;
}

.mwinda-trailer-close:hover {
  transform: scale(1.05);
  background: rgba(212, 175, 55, .22);
}

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

@media (max-width: 760px) {
  .mwinda-trailer-modal {
    padding: 14px;
  }

  .mwinda-trailer-window {
    border-radius: 20px;
  }

  .mwinda-trailer-copy {
    padding: 14px 16px 16px;
  }
}


/* =====================================================
   MWINDA PAYMENT GATE + LOCK STATES
===================================================== */
.mwinda-payment-gate,
.mwinda-trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  place-items: center;
  padding: 24px;
}

.mwinda-payment-gate.show,
.mwinda-trailer-modal.show {
  display: grid;
}

.mwinda-payment-backdrop,
.mwinda-trailer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.mwinda-payment-window {
  position: relative;
  width: min(460px, calc(100vw - 34px));
  border: 1px solid rgba(212, 175, 55, 0.30);
  border-radius: 26px;
  padding: 28px;
  background: rgba(8, 10, 14, 0.92);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.68);
  color: #fff;
}

.mwinda-payment-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 26px;
}

.mwinda-payment-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: #d4af37;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mwinda-payment-window h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.04;
}

.mwinda-payment-window p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.76);
  line-height: 1.45;
}

.mwinda-payment-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.mwinda-payment-primary,
.mwinda-payment-secondary {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 950;
}

.mwinda-payment-primary {
  background: linear-gradient(135deg, #f1d675, #d4af37);
  color: #070707;
}

.mwinda-payment-secondary {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}

.mwinda-payment-window small {
  color: rgba(255,255,255,.58);
}

.mwinda-lock-indicator::before,
.mw-safe-lock::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background: url("../icons/verrouille.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
}

body.mwinda-subscriber .mwinda-lock-indicator,
body.mwinda-subscriber .mw-safe-lock,
body.mwinda-subscriber .bag-icon {
  display: none !important;
}

/* =====================================================
   MWINDA PAYMENT COPY + MOBILE CLEAN PATCH
===================================================== */
.mwinda-payment-actions {
  grid-template-columns: 1fr;
}

.mwinda-payment-primary,
.mwinda-payment-secondary {
  text-align: center;
}

@media (max-width: 760px) {
  .mwinda-payment-gate {
    padding: 12px;
  }

  .mwinda-payment-window {
    width: min(100%, 360px);
    padding: 20px 16px;
    border-radius: 20px;
  }

  .mwinda-payment-window h2 {
    font-size: 22px;
  }

  .mwinda-payment-window p {
    font-size: 13px;
    line-height: 1.35;
  }

  .mwinda-payment-primary,
  .mwinda-payment-secondary {
    min-height: 44px;
    padding: 0 12px;
    font-size: 13px;
  }
}


/* =========================================================
   MWINDA GLOBAL RESPONSIVE TEXT PATCH - 2026
   Réduit les textes trop gros sur mobile/tablette et rend
   Accueil / Films / Séries plus maniables.
========================================================= */

:root {
  --prime-header: 58px;
}

.prime-header {
  height: var(--prime-header) !important;
  gap: 16px !important;
  padding: 0 16px !important;
}

.prime-nav a {
  font-size: clamp(13px, 1.2vw, 15px) !important;
  padding: 9px 12px !important;
}

.icon-button,
.profile-button {
  width: 38px !important;
  height: 38px !important;
}

.icon-button img,
.profile-button img {
  width: 22px !important;
  height: 22px !important;
}

.row-title h2 {
  font-size: clamp(20px, 2.2vw, 25px) !important;
  line-height: 1.12 !important;
}

.row-title a {
  font-size: clamp(16px, 1.9vw, 20px) !important;
}

.poster-title {
  font-size: clamp(22px, 2.5vw, 30px) !important;
  line-height: .98 !important;
}

.prime-card .poster-title {
  font-size: clamp(18px, 2.1vw, 24px) !important;
}

.prime-card-info {
  font-size: 12px !important;
}

.card-chip {
  font-size: 11px !important;
  padding: 4px 7px !important;
}

.hero-primary,
.hero-secondary,
.prime-button,
.detail-button {
  min-height: 48px !important;
  font-size: 14px !important;
}

.round-button,
.mw-action-circle,
.detail-icon {
  width: 48px !important;
  height: 48px !important;
}

@media (max-width: 900px) {
  .prime-header {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
    border-radius: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }

  .prime-header::-webkit-scrollbar {
    display: none;
  }

  .prime-logo img {
    max-width: 74px !important;
    max-height: 34px !important;
  }

  .prime-nav {
    flex: 0 0 auto;
    gap: 4px !important;
  }

  .prime-nav a {
    font-size: 14px !important;
    padding: 8px 10px !important;
    white-space: nowrap;
  }

  .prime-actions {
    gap: 6px !important;
  }

  .grid-icon,
  .language-select {
    display: none !important;
  }

  .prime-page {
    padding-bottom: 56px !important;
  }

  .prime-row-section {
    padding-left: 16px !important;
    margin-bottom: 28px !important;
  }

  .row-title {
    gap: 14px !important;
    margin-bottom: 10px !important;
    padding-right: 14px;
  }

  .row-title h2 {
    font-size: 20px !important;
    max-width: 72%;
  }

  .row-title a {
    font-size: 16px !important;
    margin-left: auto;
    white-space: nowrap;
  }

  .prime-row,
  .top10-row,
  .large-expand-row {
    gap: 14px !important;
    padding: 6px 44px 26px 0 !important;
  }

  .prime-card {
    flex-basis: 222px !important;
    height: 125px !important;
    border-radius: 12px !important;
  }

  .poster-title,
  .prime-card .poster-title {
    left: 13px !important;
    bottom: 32px !important;
    font-size: 20px !important;
    line-height: 1 !important;
    max-width: 86% !important;
  }

  .prime-card-info {
    left: 13px !important;
    bottom: 11px !important;
    font-size: 12px !important;
  }

  .card-chip {
    top: 8px !important;
    right: 8px !important;
    font-size: 10px !important;
  }

  .row-arrow {
    display: none !important;
  }

  .search-overlay {
    padding: 68px 14px 24px !important;
  }

  .search-box-large {
    min-height: 58px !important;
    border-width: 2px !important;
    border-radius: 16px !important;
    grid-template-columns: 34px 1fr 34px !important;
    gap: 10px !important;
    padding: 0 14px !important;
  }

  .search-box-large input {
    font-size: 18px !important;
  }

  .search-results {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .search-card-art {
    height: 102px !important;
  }

  .search-card h3 {
    font-size: 15px !important;
  }

  .search-card p {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .prime-header {
    height: 54px !important;
    gap: 8px !important;
    padding: 0 8px !important;
  }

  .prime-logo img {
    max-width: 54px !important;
  }

  .prime-nav a {
    font-size: 13px !important;
    padding: 7px 8px !important;
  }

  .icon-button,
  .profile-button {
    width: 34px !important;
    height: 34px !important;
  }

  .row-title h2 {
    font-size: 19px !important;
  }

  .row-title a {
    font-size: 15px !important;
  }

  .prime-card {
    flex-basis: 205px !important;
    height: 116px !important;
  }

  .poster-title,
  .prime-card .poster-title {
    font-size: 19px !important;
  }

  .search-results {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 940px) and (orientation: landscape) {
  .prime-header {
    height: 48px !important;
  }

  .prime-nav a {
    font-size: 12px !important;
    padding: 6px 8px !important;
  }

  .prime-logo img {
    max-width: 52px !important;
  }

  .prime-row-section {
    margin-bottom: 22px !important;
  }

  .prime-card {
    flex-basis: 190px !important;
    height: 107px !important;
  }

  .poster-title,
  .prime-card .poster-title {
    font-size: 17px !important;
  }
}


/* =====================================================
   MWINDA TITLE PNG RECOGNITION PATCH
   Affiche item.titlePng sans changer les connexions existantes.
   Si le PNG manque ou ne charge pas, le titre texte reste en secours.
===================================================== */

.poster-art .poster-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-art .poster-title-img {
  position: absolute;
  left: 18px;
  bottom: 42px;
  z-index: 3;
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 42%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.72));
}

.prime-card .poster-title-img,
.search-card-art .poster-title-img,
.favorite-mini-art .poster-title-img {
  left: 13px;
  bottom: 32px;
  max-width: 82%;
  max-height: 38%;
}

.top10-poster .poster-title-img,
.large-card .poster-title-img {
  max-width: 82%;
  max-height: 44%;
}

.hero-title-logo,
.detail-title-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.78));
}

.hero-title-logo {
  max-width: min(560px, 76vw);
  max-height: 165px;
  margin-bottom: 12px;
}

.detail-title-logo {
  max-width: min(560px, 72vw);
  max-height: 190px;
}

.hero-title-fallback,
.detail-title-fallback {
  display: block;
  color: #ffffff;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -1px;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.78);
}

@media (max-width: 900px) {
  .poster-art .poster-title-img,
  .prime-card .poster-title-img,
  .search-card-art .poster-title-img,
  .favorite-mini-art .poster-title-img {
    left: 13px;
    bottom: 32px;
    max-width: 86%;
    max-height: 38%;
  }
}

@media (max-width: 760px) {
  .hero-title-logo {
    max-width: 280px;
    max-height: 118px;
  }

  .detail-title-logo {
    max-width: 300px;
    max-height: 130px;
  }
}


/* =====================================================
   MWINDA HERO TITLE PNG SIZE FIX - SAFE OVERRIDE
   Agrandit uniquement les logos PNG du Hero injectes dans #heroTitle.
===================================================== */
#heroTitle {
  margin: 0 0 18px !important;
  line-height: 1 !important;
}

#heroTitle .hero-title-logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(850px, 90vw) !important;
  max-height: 250px !important;
  object-fit: contain !important;
  margin-bottom: 16px !important;
  pointer-events: none !important;
}

#heroTitle .hero-title-fallback {
  display: block;
  color: #ffffff;
  font-weight: 950;
  line-height: .95;
  letter-spacing: -1px;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.78);
}

@media (max-width: 900px) {
  #heroTitle .hero-title-logo {
    max-width: min(560px, 88vw) !important;
    max-height: 190px !important;
  }
}

@media (max-width: 760px) {
  #heroTitle .hero-title-logo {
    max-width: min(380px, 84vw) !important;
    max-height: 145px !important;
  }
}

/* =====================================================
   MWINDA MOBILE MONEY - SAFE ADDITION
   Ajout sans casser Stripe : boutons Mobile Money dans la fenêtre paiement.
===================================================== */
.mwinda-mobile-money-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.mwinda-mobile-money-box strong {
  display: block;
  margin-bottom: 6px;
  color: #d4af37;
  font-size: 14px;
  font-weight: 950;
}

.mwinda-mobile-money-box p {
  margin-bottom: 12px;
  font-size: 13px;
}

.mwinda-mobile-money-box label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 850;
}

.mwinda-mobile-money-box input {
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  border: 1px solid rgba(212,175,55,.30);
  border-radius: 999px;
  padding: 0 14px;
  outline: none;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 15px;
}

.mwinda-mobile-money-box input:focus {
  border-color: rgba(212,175,55,.85);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12);
}

.mwinda-mobile-money-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mwinda-mobile-money-grid button {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.mwinda-mobile-money-grid button:hover {
  border-color: rgba(212,175,55,.85);
  background: rgba(212,175,55,.18);
}

.mwinda-mobile-money-grid button:disabled {
  cursor: wait;
  opacity: .55;
}

.mwinda-mobile-money-status {
  min-height: 18px;
  margin-top: 10px;
  color: #f1d675;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 760px) {
  .mwinda-mobile-money-grid {
    grid-template-columns: 1fr;
  }

  .mwinda-mobile-money-box input {
    font-size: 16px;
  }
}



/* MWINDA HOME ROW / TOP10 / PREVIEW CARD DESIGN MOVED TO catalog.css */

/* =====================================================
   MWINDA RELEASE / COMING SOON - HERO + CARTES
   Sorties programmees compactes et propres.
===================================================== */

.prime-card,
.large-card,
.top10-poster,
.search-card-art,
.favorite-mini-art,
.episode-thumb,
.series-block-art {
  position: relative;
}

.coming-soon-badge,
.mwinda-release-badge {
  position: absolute;
  z-index: 18;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 74px);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(241,214,117,.94));
  color: #05070b;
  box-shadow: 0 14px 36px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.72);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.coming-soon-badge::before,
.mwinda-release-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: #0f172a;
  box-shadow: 0 0 0 4px rgba(15,23,42,.11);
}

.top10-poster .coming-soon-badge,
.large-card .coming-soon-badge {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 92px);
  min-height: 30px;
  padding: 7px 12px;
  font-size: 12px;
}

.card-chip + .coming-soon-badge,
.coming-soon-badge + .card-chip {
  top: 44px;
}

/* HERO RELEASE */

.hero-release-slot {
  display: none;
  margin: 8px 0 12px;
}

.hero-release-slot.show {
  display: block;
}

.hero-coming-soon {
  position: relative;
  width: fit-content;
  max-width: min(540px, 90vw);
  display: grid;
  gap: 4px;
  padding: 10px 16px 11px 17px;
  border: 1px solid rgba(212,175,55,.34);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(212,175,55,.18), rgba(255,255,255,.06)),
    rgba(3,8,15,.54);
  color: #fff;
  box-shadow: 0 16px 48px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.hero-coming-soon::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #f7e08a, #d4af37);
}

.hero-coming-soon::after {
  content: "";
  position: absolute;
  inset: -44% auto auto -18%;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: rgba(212,175,55,.13);
  filter: blur(20px);
  pointer-events: none;
}

.hero-coming-soon span {
  position: relative;
  z-index: 1;
  color: #f1d675;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-coming-soon strong {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 100%;
  font-size: clamp(16px, 1.55vw, 22px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.025em;
  text-shadow: 0 10px 26px rgba(0,0,0,.48);
}

/* BOUTON HERO QUAND LE CONTENU EST PROGRAMME */

.hero-primary.is-coming-soon,
.hero-primary[aria-disabled="true"] {
  max-width: 220px;
  min-height: 44px !important;
  padding: 0 16px !important;
  border: 1px solid rgba(212,175,55,.44) !important;
  background: linear-gradient(135deg, rgba(212,175,55,.24), rgba(255,255,255,.10)) !important;
  color: #f8e7a0 !important;
  cursor: default;
  box-shadow: 0 14px 42px rgba(0,0,0,.28);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-primary.is-coming-soon:hover,
.hero-primary[aria-disabled="true"]:hover {
  transform: none !important;
  background: linear-gradient(135deg, rgba(212,175,55,.28), rgba(255,255,255,.12)) !important;
}

/* DETAIL / ACHAT DESACTIVE */
.detail-buy.disabled,
.detail-button.disabled,
.detail-buy:disabled,
.detail-button:disabled {
  opacity: 1 !important;
  cursor: not-allowed !important;
  border: 1px solid rgba(212,175,55,.32) !important;
  background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(255,255,255,.08)) !important;
  color: #f5dd82 !important;
}

.mwinda-release-note {
  margin: 10px 0 0;
  padding: 10px 13px;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 13px;
  background: rgba(212,175,55,.10);
  color: rgba(255,255,255,.88);
  font-weight: 850;
  line-height: 1.35;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .coming-soon-badge,
  .mwinda-release-badge {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 62px);
    min-height: 24px;
    padding: 5px 9px;
    font-size: 10px;
  }

  .hero-release-slot {
    margin: 7px 0 10px;
  }

  .hero-coming-soon {
    max-width: 88vw;
    padding: 9px 13px 10px 14px;
    border-radius: 13px;
  }

  .hero-coming-soon span {
    font-size: 9px;
  }

  .hero-coming-soon strong {
    font-size: clamp(14px, 3.2vw, 17px);
    line-height: 1.1;
  }

  .hero-primary.is-coming-soon,
  .hero-primary[aria-disabled="true"] {
    max-width: 190px;
    min-height: 40px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .coming-soon-badge,
  .mwinda-release-badge {
    max-width: calc(100% - 46px);
    font-size: 9px;
  }

  .hero-release-slot {
    margin: 6px 0 9px;
  }

  .hero-coming-soon {
    max-width: 92vw;
    padding: 8px 12px 9px 13px;
  }

  .hero-coming-soon strong {
    font-size: 14px;
  }

  .hero-primary.is-coming-soon,
  .hero-primary[aria-disabled="true"] {
    max-width: 165px;
  }
}
/* =====================================================
   MWINDA RELEASE RESPONSIVE FINAL PATCH
   Optimisation mobile/tablette pour les badges "Bientôt disponible"
   et le message Hero. À garder tout en bas du fichier global.css.
===================================================== */

.hero-release-slot,
.hero-coming-soon,
.coming-soon-badge,
.mwinda-release-badge {
  box-sizing: border-box;
}

/* Le message Hero reste lisible sans casser le hero desktop */
.hero-release-slot {
  max-width: min(640px, 92vw);
}

.hero-coming-soon {
  max-width: min(640px, 92vw);
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Badge plus stable sur toutes les cartes */
.coming-soon-badge,
.mwinda-release-badge {
  max-width: min(78%, 260px);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Évite que le badge et TOP 10 se chevauchent */
.prime-card .coming-soon-badge,
.large-card .coming-soon-badge,
.top10-poster .coming-soon-badge {
  right: auto;
}

.card-chip + .coming-soon-badge,
.coming-soon-badge + .card-chip {
  top: 42px !important;
}

/* Tablettes */
@media (max-width: 900px) {
  .hero-release-slot {
    max-width: min(520px, 88vw);
    margin: 8px 0 10px !important;
  }

  .hero-coming-soon {
    max-width: min(520px, 88vw);
    padding: 10px 13px 11px 14px !important;
    border-radius: 14px !important;
  }

  .hero-coming-soon span {
    font-size: 10px !important;
    letter-spacing: .11em !important;
  }

  .hero-coming-soon strong {
    font-size: clamp(15px, 3.6vw, 18px) !important;
    line-height: 1.12 !important;
  }

  .coming-soon-badge,
  .mwinda-release-badge {
    top: 8px !important;
    left: 8px !important;
    max-width: min(74%, 210px) !important;
    min-height: 24px !important;
    padding: 5px 9px !important;
    font-size: 10px !important;
  }

  .coming-soon-badge::before,
  .mwinda-release-badge::before {
    width: 6px !important;
    height: 6px !important;
    flex-basis: 6px !important;
  }

  .card-chip + .coming-soon-badge,
  .coming-soon-badge + .card-chip {
    top: 38px !important;
  }
}

/* Téléphones */
@media (max-width: 560px) {
  .hero-release-slot {
    max-width: calc(100vw - 32px);
    margin: 6px 0 9px !important;
  }

  .hero-coming-soon {
    max-width: calc(100vw - 32px);
    padding: 9px 11px 10px 13px !important;
    border-radius: 13px !important;
    gap: 3px !important;
  }

  .hero-coming-soon::before {
    width: 3px !important;
  }

  .hero-coming-soon span {
    font-size: 9px !important;
    letter-spacing: .09em !important;
  }

  .hero-coming-soon strong {
    font-size: 14px !important;
    line-height: 1.15 !important;
    letter-spacing: -.02em !important;
  }

  .hero-primary.is-coming-soon,
  .hero-primary[aria-disabled="true"] {
    max-width: calc(100vw - 32px);
    white-space: normal !important;
    line-height: 1.15 !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    text-align: center !important;
  }

  .coming-soon-badge,
  .mwinda-release-badge {
    top: 7px !important;
    left: 7px !important;
    max-width: min(70%, 170px) !important;
    min-height: 22px !important;
    padding: 4px 7px !important;
    gap: 5px !important;
    font-size: 9px !important;
  }

  .coming-soon-badge::before,
  .mwinda-release-badge::before {
    width: 5px !important;
    height: 5px !important;
    flex-basis: 5px !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.10) !important;
  }

  .card-chip + .coming-soon-badge,
  .coming-soon-badge + .card-chip {
    top: 34px !important;
  }

  .prime-card .coming-soon-badge {
    max-width: 150px !important;
  }

  .mwinda-top10-card .coming-soon-badge,
  .top10-poster .coming-soon-badge {
    max-width: 150px !important;
  }

  .mwinda-preview-card .coming-soon-badge,
  .large-card .coming-soon-badge {
    max-width: 160px !important;
  }
}

/* Très petits téléphones */
@media (max-width: 380px) {
  .hero-coming-soon strong {
    font-size: 13px !important;
  }

  .hero-coming-soon span {
    font-size: 8px !important;
  }

  .coming-soon-badge,
  .mwinda-release-badge {
    max-width: 136px !important;
    font-size: 8px !important;
    padding: 4px 6px !important;
  }

  .card-chip + .coming-soon-badge,
  .coming-soon-badge + .card-chip {
    top: 32px !important;
  }
}

/* Téléphones en paysage : éviter que le message Hero prenne trop de hauteur */
@media (max-width: 940px) and (orientation: landscape) {
  .hero-release-slot {
    margin: 4px 0 8px !important;
  }

  .hero-coming-soon {
    padding: 7px 11px 8px 12px !important;
    gap: 2px !important;
  }

  .hero-coming-soon span {
    font-size: 8px !important;
  }

  .hero-coming-soon strong {
    font-size: 13px !important;
  }

  .hero-primary.is-coming-soon,
  .hero-primary[aria-disabled="true"] {
    min-height: 38px !important;
    font-size: 12px !important;
  }
}

/* Réduit les animations si l'utilisateur préfère moins de mouvement */
@media (prefers-reduced-motion: reduce) {
  .hero-coming-soon,
  .coming-soon-badge,
  .mwinda-release-badge,
  .hero-primary,
  .hero-secondary,
  .prime-button {
    transition: none !important;
    animation: none !important;
  }
}


/* =====================================================
   MWINDA CONTINUE BADGE — COMPACT CARD VERSION
===================================================== */

.mw-continue-badge {
  position: absolute;
  left: 10px;
  bottom: 28px;
  z-index: 8;

  display: inline-flex;
  align-items: center;
  gap: 7px;

  width: auto;
  max-width: calc(100% - 20px);
  min-height: 36px;

  padding: 5px 11px 5px 6px;

  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;

  background: rgba(3,6,11,.78);
  color: #fff;

  font-size: 11px;
  line-height: 1;
  font-weight: 900;

  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0,0,0,.38);
}

.mw-continue-play {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;
  flex: 0 0 28px;

  border-radius: 50%;
  background: #fff;
}

.mw-continue-play img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  filter: brightness(0) !important;
}

.mw-continue-text {
  min-width: 0;
  max-width: 190px;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mw-continue-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;

  height: 3px;
  background: rgba(255,255,255,.20);
}

.mw-continue-progress span {
  display: block;
  height: 100%;

  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #fff, var(--prime-yellow));
  box-shadow: 0 0 12px rgba(212,175,55,.42);
}

.mw-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  color: #ffd75d;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.mw-rating-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mw-rating-stars button {
  width: 38px;
  height: 38px;
  border: 0 !important;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.mw-rating-stars button img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter .2s ease, transform .2s ease;
}

.mw-rating-stars button:hover img,
.mw-rating-stars button.is-active img {
  filter: brightness(0) saturate(100%) invert(74%) sepia(56%) saturate(512%) hue-rotate(5deg) brightness(96%) contrast(91%);
  transform: scale(1.08);
}

.mw-rating-box small,
.mw-rating-pill {
  color: #f1d675;
}

.mw-detail-continue-box {
  display: grid;
  gap: 7px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(255,255,255,.07));
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.mw-detail-continue-box strong {
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.mw-detail-continue-box span,
.mw-detail-continue-box small {
  color: rgba(255,255,255,.78);
  font-weight: 850;
}

.mw-detail-continue-bar,
.mw-episode-progress {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.mw-detail-continue-bar i,
.mw-episode-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fff, var(--prime-yellow));
}

.mw-episode-seen {
  display: inline-flex;
  width: max-content;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(32,240,160,.16);
  color: #20f0a0;
  font-size: 12px;
  font-weight: 950;
}

.mw-episode-progress {
  width: min(260px, 100%);
  margin-top: 10px;
}

.mw-episode-progress-text {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,.62);
  font-weight: 850;
}

@media (max-width: 760px) {
  .mw-continue-badge {
    left: 9px;
    right: 9px;
    bottom: 28px;
    padding: 6px 8px;
    font-size: 11px;
  }
  .mw-rating-pill {
    display: block;
    margin: 3px 0 0;
  }

  .mw-rating-stars button {
  width: 34px;
  height: 34px;
}

.mw-rating-stars button img {
  width: 26px;
  height: 26px;
}
}


/* =====================================================
   MWINDA PAGE TRANSITION - FINAL CLEAN LOGO ONLY
   One outgoing black screen. No double boot animation.
===================================================== */
body.mwinda-transition-active {
  overflow: hidden !important;
}

.mwinda-page-transition {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  opacity: 0;
  visibility: hidden;
  background: #000 !important;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  will-change: opacity;
  transition: opacity .18s ease, visibility .18s ease;
}

.mwinda-page-transition.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mwinda-page-transition.leaving {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.mwinda-page-transition-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: min(280px, 58vw) !important;
  min-height: 120px !important;
  opacity: 1 !important;
  transform: translate3d(0,0,0) scale(1);
  animation: mwindaCleanLogoPulse .42s cubic-bezier(.2,.8,.2,1) both;
}

.mwinda-page-transition-inner img {
  width: min(250px, 54vw) !important;
  max-width: min(250px, 54vw) !important;
  max-height: 125px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: drop-shadow(0 18px 45px rgba(212,175,55,.20));
}

.mwinda-page-transition-inner span {
  display: none !important;
  visibility: hidden !important;
}

@keyframes mwindaCleanLogoPulse {
  0% { opacity: 0; transform: translate3d(0, 6px, 0) scale(.975); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (max-width: 760px) {
  .mwinda-page-transition-inner {
    width: min(220px, 62vw) !important;
    min-height: 100px !important;
  }

  .mwinda-page-transition-inner img {
    width: min(190px, 58vw) !important;
    max-width: min(190px, 58vw) !important;
    max-height: 100px !important;
  }
}


.detail-rank {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #20f0a0 !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.detail-rank-icon {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
  object-fit: contain !important;
  filter: brightness(0) saturate(100%) invert(76%) sepia(93%) saturate(1458%) hue-rotate(95deg) brightness(102%) contrast(102%) !important;
}

/* =====================================================
   MWINDA MOBILE CLEAN PATCH
   Hero plus calme + langue visible + flèches réduites
===================================================== */

@media (max-width: 900px) {
  .language-select {
    display: inline-flex !important;
    width: auto !important;
    max-width: 52px;
    font-size: 13px !important;
  }

  .prime-actions {
    margin-left: auto !important;
    flex-shrink: 0;
  }

  .hero-arrow {
    width: 34px !important;
    height: 54px !important;
    opacity: .75 !important;
    background: transparent !important;
    backdrop-filter: none !important;
  }

  .hero-arrow img {
    width: 20px !important;
    height: 20px !important;
  }

  .hero-arrow.left {
    left: 2px !important;
  }

  .hero-arrow.right {
    right: 2px !important;
  }

  .prime-hero,
  .catalog-hero {
    overflow: hidden !important;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  #heroBg {
    transition: opacity .45s ease !important;
    will-change: opacity;
  }

  .mwinda-hero-switching #heroTitle,
  .mwinda-hero-switching #heroText,
  .mwinda-hero-switching #heroMeta,
  .mwinda-hero-switching .hero-actions {
    transform: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 760px) {
  .row-arrow {
    display: none !important;
  }

  .mw-action-circle,
  .round-button,
  .detail-icon {
    width: 42px !important;
    height: 42px !important;
  }

  .mw-action-circle img,
  .round-button img,
  .detail-icon img {
    width: 21px !important;
    height: 21px !important;
  }
}

/* =====================================================
   MWINDA HERO BRIDGE - SAFE GLOBAL LINK
   Le design/positionnement des héros est centralisé dans catalog.css.
   Global garde uniquement les éléments partagés nécessaires.
===================================================== */
.prime-hero,
.catalog-hero {
  isolation: isolate;
}

.prime-hero *,
.catalog-hero * {
  box-sizing: border-box;
}

.prime-hero .hero-bg,
.prime-hero .hero-video,
.prime-hero .hero-shade,
.catalog-hero .hero-bg,
.catalog-hero .hero-video,
.catalog-hero .hero-shade {
  backface-visibility: hidden;
}

.prime-hero + .prime-row-section,
.catalog-hero + .filter-strip {
  position: relative;
  z-index: 20;
}



/* HARD FIX: logo transition must never show text. */
.mwinda-page-transition,
.mwinda-page-transition * {
  color: transparent !important;
  text-shadow: none !important;
}

.mwinda-page-transition *::before,
.mwinda-page-transition *::after {
  content: none !important;
  display: none !important;
}

.mwinda-page-transition-inner {
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: hidden !important;
}

.mwinda-page-transition-inner img {
  color: transparent !important;
  font-size: 0 !important;
}

.mwinda-page-transition-inner span,
.mwinda-page-transition-inner strong,
.mwinda-page-transition-inner p,
.mwinda-page-transition-inner small {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}


/* =====================================================
   MWINDA FINAL RESPONSIVE SAFETY PATCH
   Safe override: phones, small phones, tablets.
   Add at the END of global.css.
===================================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe {
  max-width: 100%;
}

@media (max-width: 1180px) {
  :root {
    --prime-header: 62px;
  }

  .prime-header {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 0 !important;
    padding: 0 clamp(12px, 2.4vw, 22px) !important;
    gap: clamp(8px, 1.5vw, 18px) !important;
  }

  .prime-logo img {
    max-width: 128px !important;
    max-height: 44px !important;
  }

  .prime-nav {
    min-width: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .prime-nav::-webkit-scrollbar {
    display: none !important;
  }

  .prime-nav a {
    white-space: nowrap !important;
  }

  .prime-row-section {
    padding-left: clamp(20px, 4vw, 44px) !important;
  }

  .prime-row,
  .top10-row,
  .large-expand-row {
    gap: clamp(14px, 2vw, 22px) !important;
    padding-right: clamp(24px, 6vw, 70px) !important;
  }
}

@media (max-width: 900px) {
  :root {
    --prime-header: 58px;
  }

  .prime-header {
    height: var(--prime-header) !important;
  }

  .prime-logo img {
    max-width: 104px !important;
    max-height: 38px !important;
  }

  .prime-nav a {
    padding: 9px 8px !important;
    font-size: 13px !important;
  }

  .prime-actions {
    gap: 6px !important;
  }

  .icon-button,
  .profile-button {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
  }

  .language-select {
    max-width: 52px !important;
    font-size: 12px !important;
  }

  .search-overlay {
    padding: calc(var(--prime-header) + 14px) 14px 24px !important;
  }

  .search-box-large {
    min-height: 66px !important;
    grid-template-columns: 34px 1fr 38px !important;
    gap: 10px !important;
    padding: 0 14px !important;
    border-width: 2px !important;
    border-radius: 16px !important;
  }

  .search-box-large img {
    width: 28px !important;
  }

  .search-box-large input {
    font-size: 20px !important;
  }

  .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 760px) {
  body {
    min-width: 0 !important;
  }

  .prime-header {
    padding-left: max(10px, env(safe-area-inset-left)) !important;
    padding-right: max(10px, env(safe-area-inset-right)) !important;
    gap: 7px !important;
  }

  .prime-nav {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
  }

  .prime-nav a {
    font-size: 12.5px !important;
    padding: 8px 7px !important;
    border-radius: 8px !important;
  }

  .prime-actions {
    margin-left: 4px !important;
  }

  .language-select,
  .profile-button {
    display: inline-grid !important;
  }

  .language-select {
    width: 42px !important;
    min-width: 42px !important;
  }

  .profile-button {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  .icon-button {
    width: 34px !important;
    height: 34px !important;
    flex-basis: 34px !important;
  }

  .icon-button img,
  .profile-button img {
    width: 20px !important;
    height: 20px !important;
  }

  .prime-row-section {
    margin-bottom: 28px !important;
    padding-left: 14px !important;
  }

  .row-title {
    gap: 12px !important;
    margin-bottom: 10px !important;
    padding-right: 14px !important;
  }

  .row-title h2 {
    font-size: 18px !important;
  }

  .row-title a {
    font-size: 14px !important;
  }

  .prime-row,
  .top10-row,
  .large-expand-row {
    gap: 12px !important;
    padding: 6px 16px 26px 0 !important;
    scroll-snap-type: x proximity;
  }

  .prime-card {
    flex: 0 0 clamp(190px, 62vw, 238px) !important;
    height: clamp(108px, 34.5vw, 134px) !important;
    border-radius: 10px !important;
    scroll-snap-align: start;
  }

  .prime-card:hover {
    transform: none !important;
  }

  .poster-title,
  .prime-card .poster-title {
    left: 12px !important;
    bottom: 34px !important;
    font-size: clamp(18px, 5vw, 21px) !important;
  }

  .prime-card-info {
    left: 12px !important;
    right: 12px !important;
    bottom: 10px !important;
    font-size: 11px !important;
  }

  .row-arrow {
    display: none !important;
  }

  .hero-arrow {
    width: 38px !important;
    height: 68px !important;
    opacity: .9 !important;
  }

  .hero-arrow img {
    width: 24px !important;
    height: 24px !important;
  }

  .hero-primary,
  .hero-secondary,
  .prime-button,
  .detail-button {
    min-height: 46px !important;
    padding: 0 14px !important;
    font-size: 13px !important;
  }

  .mw-action-circle,
  .round-button {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
  }
}

@media (max-width: 480px) {
  .prime-logo img {
    max-width: 82px !important;
  }

  .prime-nav a {
    font-size: 11.5px !important;
    padding: 8px 5px !important;
  }

  .language-select {
    width: 36px !important;
    min-width: 36px !important;
    font-size: 11px !important;
  }

  .profile-button {
    display: none !important;
  }

  .search-results {
    grid-template-columns: 1fr !important;
  }

  .prime-row-section {
    padding-left: 12px !important;
  }

  .prime-card {
    flex-basis: clamp(178px, 70vw, 214px) !important;
    height: clamp(100px, 39vw, 120px) !important;
  }
}

@media (max-width: 380px) {
  .prime-logo img {
    max-width: 74px !important;
  }

  .prime-nav a {
    font-size: 10.8px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .icon-button,
  .profile-button {
    width: 31px !important;
    height: 31px !important;
    flex-basis: 31px !important;
  }
}


/* =====================================================
   MWINDA NO-FLASH ARRIVAL LOADER
   Shows only the Mwinda logo while the new page prepares.
   Prevents raw placeholder text like Movies / Series from appearing.
===================================================== */
body:not(.mwinda-page-ready) {
  background: #000 !important;
}

body:not(.mwinda-page-ready)::before {
  content: "" !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483646 !important;
  background-color: #000 !important;
  background-image: url("../images/logos/Vector/svg/Mwinda Pictures 01.svg") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: min(250px, 54vw) auto !important;
  pointer-events: none !important;
}

body:not(.mwinda-page-ready) .prime-header,
body:not(.mwinda-page-ready) .prime-page,
body:not(.mwinda-page-ready) .search-overlay,
body:not(.mwinda-page-ready) .favorites-panel {
  opacity: 0 !important;
  visibility: hidden !important;
}

body.mwinda-page-ready .prime-header,
body.mwinda-page-ready .prime-page {
  opacity: 1;
  visibility: visible;
  transition: opacity .18s ease;
}


.mwinda-delayed-preview-card .mwinda-card-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 1400ms ease;
  pointer-events: none;
  z-index: 2;
}

.mwinda-delayed-preview-card.is-preview-playing .mwinda-card-preview-video {
  opacity: 1;
  transform: scale(1);
}

.mwinda-delayed-preview-card .mwinda-preview-info,
.mwinda-delayed-preview-card .card-chip,
.mwinda-delayed-preview-card .bag-icon,
.mwinda-delayed-preview-card .top10-number,
.mwinda-delayed-preview-card .top10-hover {
  transition: opacity 700ms ease, transform 700ms ease;
}

.mwinda-delayed-preview-card.is-preview-playing .mwinda-preview-info,
.mwinda-delayed-preview-card.is-preview-playing .card-chip,
.mwinda-delayed-preview-card.is-preview-playing .bag-icon,
.mwinda-delayed-preview-card.is-preview-playing .top10-number,
.mwinda-delayed-preview-card.is-preview-playing .top10-hover {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

/* =====================================================
   MWINDA — PROFESSIONAL MOBILE HEADER
   Mobile only. Desktop remains unchanged.
===================================================== */

@media (max-width: 760px) {
  .prime-header {
    display: grid !important;
    grid-template-columns:
      auto
      minmax(0, 1fr)
      auto !important;

    align-items: center !important;

    width: 100% !important;
    height: 58px !important;

    padding:
      0
      max(10px, env(safe-area-inset-right))
      0
      max(10px, env(safe-area-inset-left)) !important;

    gap: 8px !important;

    overflow: hidden !important;
    border-radius: 0 !important;
  }

  /* Compact Mwinda logo */
  .prime-logo {
    flex: none !important;
    width: 42px !important;
    min-width: 42px !important;
  }

  .prime-logo img {
    width: 42px !important;
    height: 34px !important;
    max-width: 42px !important;
    max-height: 34px !important;
    object-fit: contain !important;
  }

  /* Keep navigation centered and compact */
  .prime-nav {
    min-width: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 2px !important;

    overflow: hidden !important;
  }

  .prime-nav a {
    min-width: 0 !important;

    padding: 7px 8px !important;

    font-size: 12px !important;
    line-height: 1 !important;

    white-space: nowrap !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Right-side essential actions only */
  .prime-actions {
    flex: none !important;

    display: flex !important;
    align-items: center !important;

    gap: 4px !important;
  }

  /* Hide non-essential mobile actions */
  .prime-actions > .icon-button[aria-label="Applications"],
  .favorites-header-button {
    display: none !important;
  }

  /* Language belongs to the active profile */
  .language-select {
    display: none !important;
  }

  /* Keep Search and Profile */
  #openSearch,
  .profile-button {
    display: grid !important;
    place-items: center !important;

    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;

    padding: 0 !important;
  }

  #openSearch img {
    width: 20px !important;
    height: 20px !important;
  }

  .profile-button.has-profile,
  .profile-button.has-profile img,
  .header-profile-avatar {
    width: 34px !important;
    height: 34px !important;
  }
}

@media (max-width: 390px) {
  .prime-header {
    gap: 5px !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  .prime-logo {
    width: 36px !important;
    min-width: 36px !important;
  }

  .prime-logo img {
    width: 36px !important;
  }

  .prime-nav a {
    padding: 7px 6px !important;
    font-size: 11px !important;
  }

  #openSearch,
  .profile-button {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
  }
}

/* =====================================================
   MWINDA — GENERAL SESSION SYNOPSIS
   Visible once, then hidden for every following hero.
===================================================== */

.mw-auto-synopsis {
  max-height: 190px;
  opacity: 1;

  overflow: hidden;

  transform: translateY(0);

  transition:
    max-height 480ms cubic-bezier(.22, .8, .22, 1),
    opacity 320ms ease,
    transform 480ms cubic-bezier(.22, .8, .22, 1),
    margin 480ms ease;
}

/* Hidden after the general session timer */
.mw-auto-synopsis.is-collapsed {
  max-height: 0 !important;

  margin-top: 0 !important;
  margin-bottom: 0 !important;

  opacity: 0 !important;

  transform: translateY(12px);

  pointer-events: none;
}

/*
 * Desktop:
 * moving the mouse over the hero/detail information
 * temporarily restores the synopsis.
 */
@media (hover: hover) and (pointer: fine) {
  .hero-content:hover
  .mw-auto-synopsis.is-collapsed,

  .detail-main:hover
  .mw-auto-synopsis.is-collapsed {
    max-height: 190px !important;

    margin-bottom: 12px !important;

    opacity: 1 !important;

    transform: translateY(0);

    pointer-events: auto;
  }
}

/*
 * Phone/tablet:
 * JavaScript adds this class after the user taps
 * the non-interactive hero/detail information.
 */
.mw-auto-synopsis.is-touch-revealed {
  max-height: 190px !important;

  margin-bottom: 12px !important;

  opacity: 1 !important;

  transform: translateY(0) !important;

  pointer-events: auto !important;
}

@media (max-width: 680px) {
  .mw-auto-synopsis {
    max-height: 86px;
  }

  .mw-auto-synopsis.is-touch-revealed {
    max-height: 180px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mw-auto-synopsis {
    transition: none !important;
  }
}
