/* ==========================================================
   Live Nation Pasados (Vidéos) — CSS
   La section est injectée directement dans <main>, hors du
   conteneur Gutenberg, donc full-bleed naturel.
   ========================================================== */

.ps-section-wrapper {
  display: block;
  width: 100%;
  margin: 0;
  padding: 60px 20px;
  box-sizing: border-box;

  /* Variables */
  --ps-bg-page: #000000;
  --ps-bg-card: #121212;
  --ps-border-subtle: rgba(255, 255, 255, 0.08);
  --ps-red: #e31837;
  --ps-text-main: #f5f5f7;
  --ps-text-muted: #999999;
  --ps-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  background-color: var(--ps-bg-page);
  color: var(--ps-text-main);
  font-family: var(--ps-font);
}

.ps-section-wrapper * {
  box-sizing: border-box;
}

.ps-section-wrapper .ps-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.ps-section-wrapper .ps-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0 0 40px;
  text-transform: uppercase;
  color: var(--ps-text-main);
}

/* --- GRID --- */
.ps-section-wrapper .ps-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 30px;
  align-items: flex-start;
}

/* --- LECTEUR VIDÉO --- */
.ps-section-wrapper .ps-featured {
  width: 100%;
  scroll-margin-top: 100px;
}

.ps-section-wrapper .ps-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0d0d0d;
  border: 1px solid var(--ps-border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.ps-section-wrapper .ps-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #000;
  outline: none;
}

/* --- PLAYLIST --- */
.ps-section-wrapper .ps-playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ps-section-wrapper .ps-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  background-color: var(--ps-bg-card);
  border: 1px solid var(--ps-border-subtle);
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ps-section-wrapper .ps-card:hover {
  background-color: #1a1a1a;
}

.ps-section-wrapper .ps-card.active {
  border-color: var(--ps-red);
  background-color: rgba(227, 24, 55, 0.03);
}

.ps-section-wrapper .ps-card-thumb {
  position: relative;
  width: 140px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background-color: #111;
}

.ps-section-wrapper .ps-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.ps-section-wrapper .ps-card:hover .ps-card-thumb img {
  transform: scale(1.05);
}

.ps-section-wrapper .ps-card-play-icon {
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 50%;
  padding: 6px 4px 6px 8px;
  fill: #ffffff;
  transition: all 0.3s ease;
  z-index: 2;
}

.ps-section-wrapper .ps-card:hover .ps-card-play-icon {
  background: var(--ps-red);
  transform: scale(1.1);
}

.ps-section-wrapper .ps-card.active .ps-card-play-icon {
  opacity: 0;
}

.ps-section-wrapper .ps-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ps-section-wrapper .ps-card-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--ps-text-main);
  margin: 0 0 6px;
  line-height: 1.3;
}

.ps-section-wrapper .ps-card-info p {
  font-size: 0.8rem;
  color: var(--ps-text-muted);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
  .ps-section-wrapper {
    padding: 40px 15px;
  }

  .ps-section-wrapper .ps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .ps-section-wrapper .ps-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .ps-section-wrapper .ps-playlist {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: none;
  }

  .ps-section-wrapper .ps-playlist::-webkit-scrollbar {
    display: none;
  }

  .ps-section-wrapper .ps-card {
    flex: 0 0 240px;
    flex-direction: column;
    align-items: flex-start;
    scroll-snap-align: start;
    padding: 12px;
  }

  .ps-section-wrapper .ps-card-thumb {
    width: 100%;
  }

  .ps-section-wrapper .ps-card-info h4 {
    font-size: 1rem;
  }

  .ps-section-wrapper .ps-card-info p {
    -webkit-line-clamp: 3;
  }
}
