/* ===== BNXT League — Mixtapes (StudioHolostar) ===== */

/* Titre + intro */
.project-header {
    text-align: center;
    margin: 110px auto 40px;
    max-width: 900px;
    padding: 0 16px;
  }
  .project-title {
    font-weight: 800;
    font-size: clamp(32px, 5.2vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.01em;
  }
  .project-intro {
    color: rgba(244,244,244,.75);
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.7;
    margin-top: 10px;
  }
  
  /* ===== Split 2 vidéos/images avec séparateur central ===== */
  .bnxt-split {
    width: 100%;
    margin: 10px 0 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 2px solid rgba(255,255,255,.06);
    border-bottom: 2px solid rgba(255,255,255,.06);
  }
  .pane {
    position: relative;
    overflow: hidden;
    background: #111;
  }
  .pane + .pane {
    border-left: 2px solid rgba(255,255,255,.06);
  }
  .pane > img,
  .pane > video {
    display: block;
    width: 100%;
    height: clamp(380px, 52vw, 680px);
    object-fit: cover;
    filter: brightness(.9) contrast(1.02);
    transition: transform .5s ease, filter .5s ease;
  }
  .pane:hover > img,
  .pane:hover > video {
    transform: scale(1.03);
    filter: brightness(1) contrast(1.07);
  }
  
  /* Bouton Play */
  .play {
    position: absolute;
    left: 9%;
    top: 62%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    border: 2px solid rgba(255,255,255,.7);
    display: grid;
    place-items: center;
    cursor: pointer;
  }
  .play::after {
    content: "";
    width: 0; height: 0;
    border-left: 16px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 3px;
  }
  
  /* Légendes sous chaque pane */
  .pane figcaption {
    color: rgba(244,244,244,.75);
    font-size: 13px;
    text-align: center;
    padding: 10px 12px 14px;
  }
  
  /* Mobile: une seule colonne */
  @media (max-width: 980px) {
    .bnxt-split { grid-template-columns: 1fr; }
    .pane + .pane { border-left: 0; border-top: 2px solid rgba(255,255,255,.06); }
    .play { left: 50%; top: 50%; }
  }
  
  /* ===== Hero vidéo 21:9 ===== */
  .bnxt-hero {
    width: min(92vw, 1400px);
    margin: 24px auto 70px;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 10px 28px rgba(0,0,0,.45);
    position: relative;
    aspect-ratio: 21/9;
  }
  .bnxt-hero > img,
  .bnxt-hero > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.02) brightness(.95);
    transition: transform .5s ease, filter .5s ease;
  }
  .bnxt-hero:hover > img,
  .bnxt-hero:hover > video {
    transform: scale(1.015);
    filter: contrast(1.07) brightness(1);
  }
  .bnxt-hero .play {
    left: 50%;
    top: 50%;
    width: 110px;
    height: 110px;
    border-width: 2px;
  }
  
  /* ===== You may also like ===== */
  .also-like {
    width: 100%;
    margin: 90px 0 120px;
  }
  .also-like .section-caption {
    text-align: center;
    color: rgba(244,244,244,.7);
    font-size: 14px;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .also-like-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 2px solid rgba(255,255,255,.06);
    border-bottom: 2px solid rgba(255,255,255,.06);
  }
  .also-like-card { position: relative; aspect-ratio: 4/3; overflow: hidden; }
  .also-like-card + .also-like-card { border-left: 2px solid rgba(255,255,255,.06); }
  .also-like-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(.95);
    transition: transform .45s, filter .45s;
  }
  .also-like-card:hover img { transform: scale(1.05); filter: brightness(1); }
  .also-like-card h3 {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 8px;
    font-weight: 900; font-size: clamp(18px, 2.6vw, 34px);
    text-transform: uppercase; color: #fff; text-shadow: 0 3px 16px rgba(0,0,0,.7);
  }
  @media (max-width: 980px) {
    .also-like-row { grid-template-columns: 1fr; }
    .also-like-card + .also-like-card { border-left: 0; border-top: 2px solid rgba(255,255,255,.06); }
  }
  
  /* CTA */
  .project-cta { display: flex; justify-content: center; margin: 48px 0 90px; }
  
  /* ===== FIX HEADER SPACING / TYPO POUR BNXT ===== */
  .header-logo {
    top: 28px;
  }
  .header-logo img {
    height: 34px;
  }
  .project-header {
    margin: 78px auto 24px;
    max-width: 820px;
    padding: 0 16px;
  }
  .project-title {
    font-weight: 700;
    font-size: clamp(28px, 4.6vw, 44px);
    line-height: 1.15;
    letter-spacing: 0;
    margin-bottom: 14px;
  }
  .project-intro {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(244, 244, 244, .68);
    font-size: 15.5px;
    line-height: 1.7;
  }
  .bnxt-split {
    margin-top: 18px;
  }
  .bnxt-split,
  .bnxt-hero {
    border-top: 2px solid rgba(255,255,255,.06);
  }
  @media (min-width: 1200px) {
    .pane > img,
    .pane > video {
      height: clamp(360px, 45vw, 620px);
    }
  }
  /* --- BOUTON PLAY CENTRÉ --- */
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.play::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* Quand la vidéo est en lecture */
.play.playing::after {
  border: none;
  width: 14px;
  height: 14px;
  background: #fff;
  mask: linear-gradient(90deg, transparent 40%, black 40%, black 60%, transparent 60%);
}

/* Correction du centrage si parent non relatif */
figure.pane,
section.bnxt-hero {
  position: relative; /* Important pour ancrer le bouton au centre */
}
.video-fullscreen {
  position: fixed;
  inset: 0;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-fullscreen video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #000;
}

/* État actif (affiche la vidéo) */
.video-fullscreen.active {
  display: flex;
}

/* Petite croix pour fermer */
.video-fullscreen::after {
  content: "✕";
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgba(255,255,255,.7);
  font-size: 28px;
  cursor: pointer;
  transition: opacity .3s;
}
.video-fullscreen:hover::after {
  opacity: 1;
}
