/* ─── media.css — /media/ page styles ───────────────────────────────────── */

/* ── PAGE HERO ───────────────────────────────────────────────────────────── */

.page-hero {
  position: relative;
  padding: 14rem 5vw 7rem;
  background: var(--ink);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#page-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.92) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.page-hero-content .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.page-hero-content h1 {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(60px);
  animation: pageUp 1s 0.3s var(--ease) forwards;
}

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

/* ── MEDIA SECTION (full-bleed band) ─────────────────────────────────────── */

.media-section {
  background: var(--ink);
  padding: 6rem 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.media-section-inner {
  max-width: 1240px;
  margin: 0 auto;
}

/* ── SECTION HEADER ──────────────────────────────────────────────────────── */

.media-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  margin-bottom: 2rem;
  width: fit-content;
}

.media-section-name {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.media-section-sub {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3rem;
  max-width: 560px;
  line-height: 1.6;
}

.media-section-sub a {
  color: rgba(100, 160, 255, 0.85);
  text-decoration: none;
}

.media-section-sub a:hover { text-decoration: underline; }

/* ── VIDEO GRID ──────────────────────────────────────────────────────────── */

.media-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.media-video-grid.single {
  grid-template-columns: 1fr;
  max-width: 860px;
}

/* ── VIDEO CARD ──────────────────────────────────────────────────────────── */

.media-card {
  background: #111;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity   0.7s var(--ease),
    transform 0.7s var(--ease),
    background 0.35s;
}

.media-section[data-in-view] .media-card:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.media-section[data-in-view] .media-card:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.media-section[data-in-view] .media-card:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }

.media-card:hover { background: #1a1a1a; }

.media-card-inner {
  padding: 1.75rem 2rem 0;
  position: relative;
  z-index: 1;
}

.media-card-label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.media-card-date {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.28);
}

.media-card video,
.media-card iframe {
  display: block;
  width: 100%;
  border: none;
  background: #000;
}

.media-card video  { max-height: 480px; margin-top: 1rem; }
.media-card iframe { aspect-ratio: 16 / 9; margin-top: 1rem; }

/* ── PLAY BUTTON OVERLAY (video only) ────────────────────────────────────── */

.media-card-video-wrap {
  position: relative;
}

.media-card-video-wrap::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(0, 0, 0, 0.52);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.media-card-video-wrap:hover::after {
  background: rgba(0, 0, 0, 0.72);
  transform: translate(-50%, -50%) scale(1.08);
}

.media-card-video-wrap.started::after {
  display: none;
}

/* ── LINK CARD (audio-only / external appearances) ──────────────────────── */

.media-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: #111;
  padding: 1.5rem 2rem;
  margin-bottom: 3px;
  text-decoration: none;
  color: var(--white);
  transition: background 0.2s;
}

.media-link-card:hover { background: #1a1a1a; }

.media-link-card-info {}

.media-link-card-show {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.4rem;
}

.media-link-card-date {
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.8);
}

.media-link-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.media-link-card-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s, transform 0.2s;
}

.media-link-card:hover .media-link-card-arrow {
  color: rgb(255, 255, 255);
  transform: translateX(4px);
}

/* ── PLACEHOLDER ─────────────────────────────────────────────────────────── */

.media-placeholder {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 3px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .page-hero { padding: 11rem 1.5rem 5rem; }
  .media-section { padding: 4rem 0 5rem; }
  .media-section-inner { padding: 0 1.5rem; }

  .media-video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-hero-content h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .media-card-inner { padding: 1.25rem 1.25rem 0; }
}
