/* COURT INDEX // EPISODE 4 // GLOBAL & FLIPBOOK STYLES */

:root {
  /* Colorful & Vibrant Accent Palette */
  --bg-dark: oklch(6% 0.015 280); /* Deep cyber navy-black */
  --bg-surface: oklch(11% 0.025 280 / 0.85); /* Semitransparent glassmorphism navy */
  --bg-surface-raised: oklch(16% 0.035 280);
  
  --text-primary: oklch(98% 0.005 280);
  --text-muted: oklch(75% 0.015 280);
  
  /* Glowing Cyber Accents */
  --accent-cyan: oklch(75% 0.18 190); /* Electric Cyan */
  --accent-cyan-glow: oklch(75% 0.18 190 / 0.35);
  
  --accent-pink: oklch(65% 0.26 340); /* Neon Cyber Pink */
  --accent-pink-glow: oklch(65% 0.26 340 / 0.35);
  
  --accent-gold: oklch(78% 0.19 75); /* Basketball Neon Gold/Orange */
  --accent-gold-glow: oklch(78% 0.19 75 / 0.35);
  
  --border-hairline: oklch(80% 0.04 280 / 0.12);
  --border-glowing-cyan: oklch(75% 0.18 190 / 0.4);
  --border-glowing-pink: oklch(65% 0.26 340 / 0.4);
  
  /* Fonts */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rubik', sans-serif;
  
  /* Transitions */
  --transition-page: transform 0.85s cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-hover: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow: hidden;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Dynamic Particle Background */
.canvas-particle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Custom Scrollbars for Q&A Panels */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-hairline);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-pink);
}

/* Loader Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.loader-content {
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.loader-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  text-shadow: 0 0 15px var(--accent-cyan-glow);
}

.loader-logo span {
  color: var(--accent-pink);
  text-shadow: 0 0 15px var(--accent-pink-glow);
}

.loader-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.loader-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-surface-raised);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.loader-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  box-shadow: 0 0 8px var(--accent-pink);
  transition: width 0.3s ease;
}

.loader-status {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.boot-prompt {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--bg-dark);
  background: var(--accent-pink);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 20px var(--accent-pink-glow);
  transition: var(--transition-hover);
  animation: pulse-pink 2s infinite alternate;
}

.boot-prompt:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 25px var(--accent-cyan-glow);
  transform: scale(1.05);
}

/* Header Navigation & Branding */
.magazine-header {
  height: 70px;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-hairline);
  z-index: 10;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.uba-mini-logo {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  border: 1px solid var(--accent-cyan);
  object-fit: cover;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.header-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.header-title span {
  color: var(--accent-cyan);
}

.issue-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  border: 1px solid var(--border-hairline);
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  background: var(--bg-surface);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-hairline);
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: var(--transition-hover);
  border-radius: 2px;
}

.nav-btn:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-indicator {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 45px;
  text-align: center;
}

.magazine-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0.5rem 4rem; /* Tight vertical, side padding for floating buttons */
  perspective: 2500px; /* Crucial for 3D page flip depth */
  position: relative; /* Positioning context for floating buttons */
  width: 100%;
  height: calc(100vh - 70px); /* Fill everything below the 70px header */
  height: calc(100dvh - 70px); /* Dynamic viewport height — respects mobile chrome */
  overflow: hidden;
}

.book-viewport {
  width: 100%;
  height: 100%; /* Fill the entire magazine-container */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

/* Page / Sheet styling */
.sheet {
  position: absolute;
  width: 50%; /* Each sheet is half the width of the open spreads */
  height: 100%;
  top: 0;
  right: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: var(--transition-page);
  z-index: 1;
  pointer-events: none; /* Disable mouse events on inactive sheets */
}

/* Allow click/hover on sheets that are interactive */
.sheet.active-spread {
  pointer-events: auto;
}

.sheet.flipped {
  transform: rotateY(-180deg);
}

.page {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden; /* Hide the back side during rotation */
  background: oklch(11% 0.025 280); /* Fully opaque to prevent bleed-through */
  border: 1px solid var(--border-hairline);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem; /* Tight padding to maximize readable area */
  overflow-y: auto; /* Allow scrolling if content exceeds page height */
  overflow-x: hidden;
}

.page-front {
  z-index: 2;
  transform: rotateY(0deg);
  border-left: none;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.page-back {
  z-index: 1;
  transform: rotateY(180deg); /* Face backwards inside the sheet */
  border-right: none;
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

/* Sheet Z-Indexing Stack (So non-flipped sheets stay below correctly) */
#sheet-1 { z-index: 6; }
#sheet-2 { z-index: 5; }
#sheet-3 { z-index: 4; }
#sheet-4 { z-index: 3; }

#sheet-1.flipped { z-index: 3; }
#sheet-2.flipped { z-index: 4; }
#sheet-3.flipped { z-index: 5; }
#sheet-4.flipped { z-index: 6; }

/* Double text layout for split pages */
.double-text-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  flex: 1;
  min-height: 0; /* Crucial for scrolling Q&As in flex containers */
  overflow: hidden;
}

/* Quote highlight card */
.quote-card-glow {
  background: oklch(11% 0.025 280 / 0.55); /* Semi-transparent so video peeks through */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2; /* Sit above video overlay */
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.quote-card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
}

.kuz-glow::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.kuz-glow {
  border-color: var(--border-glowing-cyan);
  box-shadow: 0 0 20px var(--accent-cyan-glow);
}

.hogan-glow::before {
  background: var(--accent-pink);
  box-shadow: 0 0 10px var(--accent-pink);
}

.hogan-glow {
  border-color: var(--border-glowing-pink);
  box-shadow: 0 0 20px var(--accent-pink-glow);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  opacity: 0.15;
  position: absolute;
  top: -10px;
  left: 20px;
}

.quote-text {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.quote-author {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

/* Page Corner Turn Ribbon / Fold Effect */
.page::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.05) 50%);
  border-bottom-right-radius: 6px;
  pointer-events: none;
  transition: var(--transition-hover);
}
.page-back::after {
  right: auto;
  left: 0;
  background: linear-gradient(225deg, transparent 50%, rgba(255, 255, 255, 0.05) 50%);
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 6px;
}

/* Page Layout Components */
.page-header {
  margin-bottom: 2rem;
  position: relative;
}

.page-category {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent-pink);
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7);
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 25px rgba(0,0,0,0.7);
}

.header-divider {
  width: 60px;
  height: 3px;
  background: var(--accent-cyan);
  margin-top: 0.75rem;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

/* Page 1: COVER PAGE */
.cover-page {
  justify-content: space-between;
  background: radial-gradient(circle at center, oklch(14% 0.035 280) 0%, var(--bg-surface) 100%);
  border-left: 4px solid var(--accent-pink);
  position: relative;
}

.cover-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-pink-glow) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.cover-header {
  z-index: 1;
}

.cover-issue {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.cover-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.cover-subtitle {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

.cover-art-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.cover-art-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Prevent image crop/cut-off */
  background: rgba(0, 0, 0, 0.2); /* Blend space behind contained image */
  transition: transform 0.5s ease;
}

.cover-art-container:hover .cover-art-img {
  transform: scale(1.03);
}

.height-tag {
  position: absolute;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 2px;
  z-index: 2;
}

.hogan-tag {
  top: 15%;
  left: 8%;
  background: var(--accent-pink);
  color: var(--bg-dark);
  box-shadow: 0 0 10px var(--accent-pink-glow);
}

.kuz-tag {
  bottom: 25%;
  right: 8%;
  background: var(--accent-cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.cover-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 1;
}

.feature-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--accent-pink);
  letter-spacing: 0.2em;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.player-names {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.uba-badge-text {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border-left: 2px solid var(--accent-cyan);
  padding-left: 0.5rem;
  text-align: right;
  line-height: 1.3;
}

/* Page 2: NXT STANDINGS & METRICS */
.standings-page {
  background: radial-gradient(circle at bottom right, oklch(10% 0.025 190) 0%, var(--bg-surface) 100%);
}

.standings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  flex: 1;
  min-height: 0; /* Prevent overflow crop */
}

.conference-panel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.panel-header {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  text-align: center;
  padding-bottom: 0.5rem;
}

.east-panel .panel-header {
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--accent-cyan-glow);
}

.west-panel .panel-header {
  color: var(--accent-pink);
  border-bottom: 1px solid var(--accent-pink-glow);
}

.table-container {
  flex: 1;
  overflow-y: auto;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.standings-table th {
  font-family: var(--font-display);
  text-align: left;
  padding: 0.4rem 0.25rem;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-hairline);
}

.standings-table td {
  padding: 0.4rem 0.25rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.standings-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.standings-table tr.clinched td {
  color: var(--accent-gold);
  font-weight: 500;
}

.standings-table tr.bottom-team td {
  color: oklch(65% 0.12 15); /* Reddish warning color for Out the Mud */
}

/* Advanced Metrics Interactive Widget */
.metrics-section {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  padding-top: 1.25rem;
}

.section-title-neon {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 8px var(--accent-cyan-glow);
}

.metrics-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition-hover);
}

.metric-card:hover {
  background: var(--bg-surface-raised);
  border-color: var(--accent-pink);
  transform: translateY(-2px);
}

.metric-icon {
  font-size: 1.2rem;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-name {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.metric-desc {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.metric-detail-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  padding: 0.75rem;
  min-height: 60px;
}

.metric-detail-box p {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.metric-highlight {
  color: var(--accent-gold);
  font-weight: bold;
}

/* Interview Profile Cards */
.interview-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  flex: 1;
  min-height: 0; /* Crucial for scrolling Q&As in flex containers */
  position: relative;
  z-index: 2; /* Sit above the video overlay */
}

.player-card {
  background: oklch(11% 0.025 280 / 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: fit-content;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.player-avatar-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: oklch(14% 0.02 280);
}

.player-ref-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jersey-num {
  position: absolute;
  bottom: 5px;
  right: 8px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.85;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.kuz-page .jersey-num { color: var(--accent-cyan); }
.hogan-page .jersey-num { color: var(--accent-pink); }

.player-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.team-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
}

.team-logo-small {
  height: 16px;
  width: 16px;
  object-fit: cover;
}

.player-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.player-pos {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  font-weight: bold;
}

.player-stats {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px dashed var(--border-hairline);
  padding-top: 0.75rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
}

.stat-row span {
  color: var(--text-muted);
}

.stat-row strong {
  color: var(--text-primary);
}

/* Interview QA Panel */
.interview-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.interview-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--text-primary), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
}

.qa-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding-right: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qa-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: 1px solid oklch(80% 0.04 280 / 0.05);
  padding-bottom: 1.25rem;
}

.question {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1.5;
  border-left: 2px solid var(--accent-cyan);
  padding-left: 0.75rem;
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7);
}

.kuz-page .question {
  color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
}

.hogan-page .question {
  color: var(--accent-pink);
  border-left-color: var(--accent-pink);
}

.answer {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 300;
  padding-left: 0.75rem;
  text-shadow: 0 0 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,1);
}

/* Page 4: JAMES HOGAN + VIDEO CONTAINER */
.hogan-page {
  /* Inherits absolute position from .page */
}

.video-container-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 6px;
}

.video-container-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24; /* Increased opacity to make it noticeably visible */
  filter: saturate(0.65) contrast(1.25);
}

.video-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--bg-surface) 15%, transparent 85%);
}

.video-controls-hint {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--accent-pink);
  opacity: 0.6;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.video-controls-hint::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-pink);
  border-radius: 50%;
  animation: pulse-pink 1s infinite alternate;
}

.hogan-page .interview-layout {
  position: relative;
  z-index: 1; /* Stay above video background */
}

/* Page 5: NEXT ISSUE PREVIEW */
.preview-page {
  background: radial-gradient(circle at center, oklch(12% 0.03 330) 0%, var(--bg-surface) 100%);
  justify-content: space-between;
}

.preview-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 60%;
  background: radial-gradient(circle, var(--accent-pink-glow) 0%, transparent 60%);
  pointer-events: none;
}

.preview-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  z-index: 1;
}

.preview-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.preview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-cyan));
}

.preview-stars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.star-badge {
  display: flex;
  flex-direction: column;
}

.star-badge-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.star-badge-pos {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent-cyan);
  margin-top: 0.25rem;
}

.preview-graphics {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.wireframe-circle {
  width: 100px;
  height: 100px;
  border: 1px dashed var(--accent-pink);
  border-radius: 50%;
  animation: rotate-clockwise 10s infinite linear;
}

.wireframe-rect {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid var(--accent-cyan);
  transform: rotate(45deg);
  animation: rotate-counter 8s infinite linear;
}

.teaser-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-primary);
}

.preview-details p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.countdown-ticker {
  font-family: monospace;
  font-size: 0.7rem;
  color: var(--accent-pink);
  letter-spacing: 0.15em;
  border: 1px solid var(--accent-pink-glow);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  background: rgba(255, 0, 127, 0.04);
  display: inline-block;
  font-weight: bold;
}

/* Page 6: BACK COVER PAGE */
.back-cover-page {
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at center, oklch(10% 0.035 280) 0%, var(--bg-surface) 100%);
  border-right: 4px solid var(--accent-cyan);
}

.back-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 60%);
  pointer-events: none;
}

.back-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.back-logo {
  height: 120px;
  width: 120px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  object-fit: cover;
  box-shadow: 0 0 25px var(--accent-cyan-glow);
}

.back-headline {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.back-tagline {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent-pink);
}

.sponsor-scroller {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sponsor-item {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.back-footer {
  margin-top: 2rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Flipbook Bottom Navigation Strip */
.flipbook-navigation-strip {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.nav-strip-container {
  display: flex;
  gap: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.nav-strip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-hairline);
  border: none;
  cursor: pointer;
  transition: var(--transition-hover);
}

.nav-strip-dot.active {
  background: var(--accent-pink);
  box-shadow: 0 0 8px var(--accent-pink);
  transform: scale(1.3);
}

.nav-strip-dot:hover:not(.active) {
  background: var(--accent-cyan);
}

/* Keyframes & Animations */
@keyframes pulse-pink {
  0% { box-shadow: 0 0 12px oklch(65% 0.26 340 / 0.2); }
  100% { box-shadow: 0 0 25px oklch(65% 0.26 340 / 0.5); }
}

/* Smooth scrollbar styling for pages */
.page::-webkit-scrollbar { width: 4px; }
.page::-webkit-scrollbar-track { background: transparent; }
.page::-webkit-scrollbar-thumb { background: oklch(50% 0.1 280 / 0.3); border-radius: 4px; }
.page::-webkit-scrollbar-thumb:hover { background: oklch(60% 0.15 280 / 0.5); }

@keyframes rotate-clockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-counter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* ======================== */
/* RESPONSIVE BREAKPOINTS   */
/* ======================== */

/* Tablet landscape & smaller desktops */
@media (max-width: 1024px) {
  .interview-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
    overflow-y: auto;
  }
  .player-card {
    flex-direction: row;
    align-items: center;
    padding: 1rem;
  }
  .player-avatar-box {
    width: 80px;
    flex-shrink: 0;
  }
  .standings-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .magazine-header {
    padding: 0 1.25rem;
    height: 55px;
  }
  .magazine-container {
    height: calc(100dvh - 55px);
    padding: 0.25rem 3.5rem;
  }
  .interview-title { font-size: 1.4rem; }
  .question, .answer { font-size: 0.8rem; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .magazine-header {
    height: 48px;
    padding: 0 0.75rem;
  }
  .header-title { font-size: 1rem; }
  .uba-mini-logo { width: 28px; height: 28px; }
  .issue-badge { display: none; }
  .magazine-container {
    height: calc(100dvh - 48px);
    padding: 0.25rem 2.5rem;
  }
  .page { padding: 1rem; }
  .height-tag { display: none; }
  .interview-title { font-size: 1.2rem; margin-bottom: 0.75rem; }
  .question, .answer { font-size: 0.75rem; line-height: 1.5; }
  .qa-item { padding-bottom: 0.75rem; gap: 0.35rem; }
  .page-category { font-size: 0.65rem; }
  .page-title { font-size: 1.3rem; }
  .double-text-layout { grid-template-columns: 1fr; gap: 1rem; }
  .player-card { flex-direction: row; gap: 0.75rem; padding: 0.75rem; }
  .player-avatar-box { width: 60px; }
  .standings-table th, .standings-table td { font-size: 0.7rem; padding: 0.3rem 0.4rem; }
  .metrics-cards { flex-direction: column; gap: 0.5rem; }
  .quote-text { font-size: 0.9rem; }
  .nav-strip-container { gap: 0.6rem; padding: 0.35rem 1rem; }
  .nav-strip-dot { width: 8px; height: 8px; }
}

/* Phone */
@media (max-width: 480px) {
  .magazine-header { height: 42px; }
  .header-title { font-size: 0.85rem; }
  .nav-btn { font-size: 0.6rem; padding: 0.3rem 0.6rem; }
  .page-indicator { font-size: 0.7rem; }
  .magazine-container {
    height: calc(100dvh - 42px);
    padding: 0.15rem 2rem;
  }
  .page { padding: 0.75rem; border-radius: 4px; }
  .interview-title { font-size: 1rem; margin-bottom: 0.5rem; }
  .question, .answer { font-size: 0.7rem; padding-left: 0.5rem; }
  .player-avatar-box { width: 50px; }
  .quote-card-glow { padding: 1rem; }
  .quote-text { font-size: 0.8rem; line-height: 1.5; }
  .quote-author { font-size: 0.7rem; }
  .cover-footer { flex-direction: column; gap: 0.5rem; }
}

/* Large Floating Side Navigation Buttons */
.floating-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 100; /* Ensure they stay on top of the sheets */
  transition: var(--transition-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.floating-left {
  left: 20px; /* Floating over the left margin */
  border-color: var(--border-glowing-pink);
  box-shadow: 0 0 15px var(--accent-pink-glow);
}

.floating-right {
  right: 20px; /* Floating over the right margin */
  border-color: var(--border-glowing-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.floating-nav-btn:hover:not(:disabled) {
  background: var(--bg-surface-raised);
  transform: translateY(-50%) scale(1.12);
}

.floating-left:hover:not(:disabled) {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
  box-shadow: 0 0 25px var(--accent-pink);
}

.floating-right:hover:not(:disabled) {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px var(--accent-cyan);
}

.floating-nav-btn:disabled {
  opacity: 0.15;
  cursor: not-allowed;
  box-shadow: none;
  border-color: var(--border-hairline);
}

@media (max-width: 1024px) {
  .floating-nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }
  .floating-left { left: 2px; }
  .floating-right { right: 2px; }
}

@media (max-width: 480px) {
  .floating-nav-btn {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
}
