/* =========================================================
   TH3REALFR — DIRECTION ARTISTIQUE CINÉMA LUXE V193
   Référence : Explorer Actrices Cinéma Luxe V4.11
   SAFE : couche visuelle uniquement, logique métier inchangée.
========================================================= */

:root{
  --th3-blood:#5c1018;
  --th3-blood-2:#b51f2a;
  --th3-gold:#c6a252;
  --th3-gold-2:#e2c777;
  --th3-gold-3:#f0d994;
  --th3-cinema-black:#070504;
  --th3-cinema-panel:#120d0a;
  --th3-cinema-line:rgba(198,162,82,.18);
  --th3-cinema-muted:rgba(245,240,232,.65);
}

/* ---------- ATMOSPHÈRE GLOBALE ---------- */
body:not(.wp-admin){
  background:
    radial-gradient(circle at 21% -80px,rgba(181,31,42,.095),transparent 360px),
    radial-gradient(circle at 73% -60px,rgba(226,199,119,.075),transparent 420px),
    var(--th3-cinema-black) !important;
}

body:not(.wp-admin) .site,
body:not(.wp-admin) .site-content,
body:not(.wp-admin) .content-area,
body:not(.wp-admin) .site-main,
body:not(.wp-admin) .entry-content{
  background:transparent !important;
}

/* Fine ligne éditoriale rouge/or sur les grands ensembles TH3. */
body:not(.wp-admin) :where(
  .th3yt-archive,.th3-series-hub,.th3act-wrap,.th3-ma,.th3-profile-wrap,
  .th3u-page,.th3core-series-hub,.th3-pl-wrap,.th3-v6-member-space
){
  position:relative;
  isolation:isolate;
}

body:not(.wp-admin) :where(
  .th3yt-archive,.th3-series-hub,.th3act-wrap,.th3-ma,.th3-profile-wrap,
  .th3u-page,.th3core-series-hub,.th3-pl-wrap,.th3-v6-member-space
)::before{
  content:"";
  position:absolute;
  left:clamp(14px,2.4vw,34px);
  right:clamp(14px,2.4vw,34px);
  top:0;
  height:1px;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(198,162,82,.30),rgba(181,31,42,.18),transparent);
  opacity:.68;
}

/* ---------- GRANDS TITRES : signature V4.11 ---------- */
body:not(.wp-admin) :where(
  .th3yt-archive-title,.th3-series-hub-title,.th3core-series-title,
  .th3act-title,.th3-profile-info>h1,.th3-ma h1,.th3u-title,.th3-v6-page-title
){
  position:relative;
  margin-bottom:16px;
  padding-bottom:18px;
  color:#fff !important;
  font-family:Poppins,Inter,Arial,sans-serif !important;
  font-size:clamp(40px,4.2vw,72px);
  line-height:.92 !important;
  font-weight:950 !important;
  text-transform:uppercase;
  letter-spacing:-.06em !important;
  text-shadow:0 6px 22px rgba(0,0,0,.55);
}

body:not(.wp-admin) :where(
  .th3yt-archive-title,.th3-series-hub-title,.th3core-series-title,
  .th3act-title,.th3-profile-info>h1,.th3-ma h1,.th3u-title,.th3-v6-page-title
)::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:118px;
  height:5px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--th3-gold-3),var(--th3-gold-2),var(--th3-gold));
  box-shadow:0 0 28px rgba(226,199,119,.34);
}

body:not(.wp-admin) :where(
  .th3yt-archive-description,.th3-series-hub-desc,.th3act-desc,.th3-profile-info p,
  .th3-ma-muted,.th3-v6-member-info p,.th3-footer-v300__description
){
  color:var(--th3-cinema-muted) !important;
  line-height:1.7;
}

/* ---------- PANELS : NOIR LUXE + TRACES ROUGE/OR ---------- */
body:not(.wp-admin) :where(
  .th3-ma-card,.th3-membership-card,.th3-profile-stats>div,.th3u-meta,.th3u-sidebar,
  .th3u-sidebox,.th3u-info,.th3-v6-dashboard a,.th3-pl-card,.th3core-episode-card
){
  background:
    radial-gradient(circle at 18% 0,rgba(181,31,42,.055),transparent 30%),
    radial-gradient(circle at 82% 0,rgba(226,199,119,.052),transparent 34%),
    linear-gradient(145deg,#19110d,var(--th3-cinema-panel) 72%) !important;
  border-color:rgba(198,162,82,.16) !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025),0 18px 52px rgba(0,0,0,.42),0 0 0 1px rgba(92,16,24,.045) !important;
}

/* ---------- CARTES MÉDIA : se rapprocher de l'Explorer V4.11 ---------- */
body:not(.wp-admin) :where(.th3act-card-link,.th3yt-card-link,.th3core-series-card){
  border:1px solid rgba(198,162,82,.22) !important;
  outline:0 !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 18px 52px rgba(0,0,0,.42),0 0 0 1px rgba(92,16,24,.06) !important;
  transition:transform .46s cubic-bezier(.2,.8,.2,1),border-color .46s ease,box-shadow .46s ease !important;
}

body:not(.wp-admin) :where(.th3act-card-link,.th3yt-card-link,.th3core-series-card)::after{
  background:linear-gradient(115deg,transparent 0%,rgba(255,255,255,.08) 45%,rgba(226,199,119,.20) 50%,transparent 57%) !important;
}

body:not(.wp-admin) :where(.th3act-img img,.th3yt-card-thumbnail img,.th3core-series-card-bg){
  filter:brightness(.72) saturate(1.12) contrast(1.09) !important;
  transition:transform .78s cubic-bezier(.2,.8,.2,1),filter .48s ease !important;
}

body:not(.wp-admin) .th3act-img:after,
body:not(.wp-admin) .th3yt-card-gradient,
body:not(.wp-admin) .th3core-series-card-shade{
  background:
    linear-gradient(180deg,rgba(0,0,0,.02) 0%,rgba(0,0,0,.22) 42%,rgba(0,0,0,.96) 100%),
    radial-gradient(circle at 20% 82%,rgba(198,162,82,.25),transparent 34%),
    linear-gradient(90deg,rgba(0,0,0,.42) 0%,transparent 44%) !important;
}

/* Rouge utilisé comme halo secondaire, jamais comme couleur principale des textes. */
@media(hover:hover){
  body:not(.wp-admin) .th3act-card-link:hover,
  body:not(.wp-admin) .th3yt-card:hover .th3yt-card-link,
  body:not(.wp-admin) .th3core-series-card:hover{
    transform:translateY(-12px) scale(1.035) !important;
    border-color:rgba(226,199,119,.76) !important;
    box-shadow:0 46px 118px rgba(0,0,0,.88),0 0 110px rgba(198,162,82,.26),0 0 44px rgba(92,16,24,.12),inset 0 0 0 1px rgba(255,255,255,.055) !important;
    z-index:6;
  }

  body:not(.wp-admin) .th3act-card-link:hover img,
  body:not(.wp-admin) .th3yt-card:hover .th3yt-card-thumbnail img,
  body:not(.wp-admin) .th3core-series-card:hover .th3core-series-card-bg{
    transform:scale(1.105) translateY(-1.5%) !important;
    filter:brightness(.94) saturate(1.18) contrast(1.12) !important;
  }
}

/* ---------- BADGES ---------- */
body:not(.wp-admin) :where(
  .th3act-badge,.th3yt-card-badge,.th3yt-video-badge,.th3-profile-kicker,
  .th3-v6-brand-kicker,.th3core-series-card-content em
){
  color:var(--th3-gold-2) !important;
  background:rgba(0,0,0,.58) !important;
  border:1px solid rgba(198,162,82,.34) !important;
  border-radius:999px !important;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

/* Métadonnées : or discret. */
body:not(.wp-admin) :where(
  .th3act-meta,.th3yt-card-channel,.th3core-series-card-content small,
  .th3-profile-kicker,.th3-v6-brand-kicker
){
  color:var(--th3-gold-2) !important;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.13em;
}

/* ---------- HEADER ---------- */
.th3u-header{
  background:
    linear-gradient(90deg,rgba(92,16,24,.045),transparent 22%,transparent 76%,rgba(198,162,82,.04)),
    rgba(13,9,7,.975) !important;
  border-bottom:1px solid rgba(198,162,82,.18) !important;
  box-shadow:0 14px 48px rgba(0,0,0,.52),0 1px 0 rgba(92,16,24,.08) !important;
}

/* ---------- FOOTER ---------- */
.th3-footer-v300{
  background:
    radial-gradient(circle at 18% 0,rgba(181,31,42,.075),transparent 31%),
    radial-gradient(circle at 76% 0,rgba(226,199,119,.065),transparent 36%),
    linear-gradient(180deg,#0d0907,#070504) !important;
  border-top:1px solid rgba(198,162,82,.13);
}

/* ---------- BOUTONS : or = CTA, rouge = profondeur seulement ---------- */
body:not(.wp-admin) :where(
  .th3-btn-primary,.th3-v6-btn-primary,.th3-profile-btn-primary,.th3-membership-upgrade,
  .th3-avatar-submit,.th3-crop-validate,.th3-ma-btn:not(.is-dark),.th3u-btn.is-primary,.th3-add-cart
){
  box-shadow:0 18px 42px rgba(0,0,0,.46),0 0 36px rgba(198,162,82,.14),0 0 18px rgba(92,16,24,.045) !important;
}

/* ---------- MOBILE : conserver la DA mais éviter les effets lourds ---------- */
@media(max-width:767px){
  body:not(.wp-admin){
    background:
      radial-gradient(circle at 20% -20px,rgba(181,31,42,.07),transparent 240px),
      radial-gradient(circle at 76% -30px,rgba(226,199,119,.055),transparent 260px),
      var(--th3-cinema-black) !important;
  }

  body:not(.wp-admin) :where(
    .th3yt-archive-title,.th3-series-hub-title,.th3core-series-title,.th3act-title,
    .th3-profile-info>h1,.th3-ma h1,.th3u-title,.th3-v6-page-title
  ){
    font-size:clamp(34px,9vw,45px);
    padding-bottom:17px;
    letter-spacing:-.035em !important;
  }

  body:not(.wp-admin) :where(
    .th3yt-archive-title,.th3-series-hub-title,.th3core-series-title,.th3act-title,
    .th3-profile-info>h1,.th3-ma h1,.th3u-title,.th3-v6-page-title
  )::after{
    width:92px;
    height:4px;
  }

  body:not(.wp-admin) :where(.th3act-card-link,.th3yt-card-link,.th3core-series-card){
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.03),0 16px 38px rgba(0,0,0,.42) !important;
  }

  .th3u-header{
    background:rgba(13,9,7,.975) !important;
    border-bottom-color:rgba(255,255,255,.075) !important;
  }
}

@media(prefers-reduced-motion:reduce){
  body:not(.wp-admin) [class*="th3-"] *,
  body:not(.wp-admin) [class*="th3-"] *::before,
  body:not(.wp-admin) [class*="th3-"] *::after{
    transition:none !important;
    animation:none !important;
  }
}
