/* ==========================================================================
   CFX NETWORK — SHOWREEL, VIDEO MODAL & FILM DETAILS (films.css)
   Matches Figma Showreel Frame [1296x620]
   ========================================================================== */

/* ── 1. Full-Width Interactive Showreel Container ───────────────────────── */
.cfx-showreel-frame {
  position: relative;
  width: 100%;
  min-height: 560px;
  aspect-ratio: 16 / 7.65;
  background: radial-gradient(circle at 50% 40%, #24262B 0%, #0E0F12 100%);
  color: var(--cfx-on-dark);
  border: 1px solid var(--cfx-rule-strong);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.cfx-showreel-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.45;
}

.cfx-showreel-top,
.cfx-showreel-center,
.cfx-showreel-controls {
  position: relative;
  z-index: 2;
}

.cfx-showreel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--cfx-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cfx-on-dark-muted);
}

.cfx-showreel-center {
  text-align: center;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cfx-showreel-play-btn {
  width: 80px;
  height: 78px;
  border: 1px solid rgba(245, 243, 238, 0.5);
  background: rgba(11, 11, 12, 0.75);
  color: var(--cfx-on-dark);
  font-size: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--cfx-transition);
}

.cfx-showreel-play-btn:hover {
  background: var(--cfx-accent);
  border-color: var(--cfx-accent);
  transform: scale(1.06);
}

.cfx-showreel-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--cfx-on-dark);
}

.cfx-showreel-sub {
  font-size: 0.875rem;
  color: var(--cfx-on-dark-muted);
}

.cfx-showreel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--cfx-rule-dark);
  font-family: var(--cfx-font-mono);
  font-size: 0.75rem;
  color: var(--cfx-on-dark-muted);
}

.cfx-showreel-scrubber {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-grow: 1;
  max-width: 600px;
}

.cfx-scrubber-bar {
  flex-grow: 1;
  height: 3px;
  background: rgba(245, 243, 238, 0.22);
  position: relative;
  cursor: pointer;
}

.cfx-scrubber-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 28%;
  background: var(--cfx-accent);
}

.cfx-showreel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cfx-showreel-ctrl-btn {
  background: none;
  border: none;
  color: var(--cfx-on-dark-muted);
  font-family: var(--cfx-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.cfx-showreel-ctrl-btn:hover {
  color: #FFFFFF;
}

/* ── 2. Video Lightbox Modal ────────────────────────────────────────────── */
.cfx-video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.cfx-video-modal[hidden] {
  display: none;
}

.cfx-video-modal-dialog {
  width: 100%;
  max-width: 1080px;
  background: var(--cfx-obsidian);
  border: 1px solid var(--cfx-rule-dark-strong);
  padding: 24px;
}

.cfx-video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  color: var(--cfx-on-dark);
}

.cfx-video-modal-close {
  background: transparent;
  border: 1px solid var(--cfx-rule-dark-strong);
  color: var(--cfx-on-dark);
  padding: 8px 16px;
  font-family: var(--cfx-font-mono);
  font-size: 0.75rem;
  cursor: pointer;
}

.cfx-video-modal-close:hover {
  background: var(--cfx-accent);
  border-color: var(--cfx-accent);
}

.cfx-video-modal-stage {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cfx-on-dark-muted);
}

.cfx-video-modal-stage iframe,
.cfx-video-modal-stage video {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── 3. Single Film Credits Table ───────────────────────────────────────── */
.cfx-credits-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  background: var(--cfx-surface);
  border: 1px solid var(--cfx-rule-strong);
  padding: 32px;
}
