/* ==========================================================================
   CHIPTUNE.SU — Cyberpunk Demoscene & Tracker Portal Stylesheet
   Version 1.5.4 (Mobile Card Demoparty & Anti-Clipping Player Layout)
   ========================================================================== */

:root {
  --bg-main: #050711;
  --bg-card: rgba(10, 14, 30, 0.85);
  --bg-card-hover: rgba(16, 23, 48, 0.95);
  --bg-surface: #0a0e1f;
  
  --cyber-cyan: #00ffcc;
  --cyber-blue: #0088ff;
  --cyber-pink: #ff0077;
  --cyber-magenta: #ff00ff;
  --cyber-yellow: #ffcc00;
  --cyber-gold: #ffcc00;
  --cyber-green: #00ff66;
  
  --text-main: #e6f0ff;
  --text-dim: #9bb0cf;
  --text-muted: #5c7094;
  
  --border-neon: rgba(0, 255, 204, 0.25);
  --border-card: rgba(0, 136, 255, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);
  
  --font-hud: 'Orbitron', 'Rajdhani', -apple-system, sans-serif;
  --font-body: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  
  --shadow-neon-cyan: 0 0 20px rgba(0, 255, 204, 0.35);
  --shadow-neon-pink: 0 0 20px rgba(255, 0, 119, 0.35);
  --shadow-box: 0 12px 36px rgba(0, 0, 0, 0.6);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 136, 255, 0.15), transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(255, 0, 119, 0.08), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(0, 255, 204, 0.1), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 204, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyber-cyan);
}

/* --------------------------------------------------------------------------
   CRT SCANLINES, VIGNETTE & MATRIX GRID OVERLAYS
   -------------------------------------------------------------------------- */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(0, 255, 204, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 255, 204, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.scanlines-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.35) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.02),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.02)
  );
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
  z-index: 999;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 998;
}

/* CRT States */
body.crt-off .scanlines-overlay {
  opacity: 0 !important;
  display: none !important;
}
body.crt-off .vignette-overlay {
  opacity: 0 !important;
  display: none !important;
}

/* --------------------------------------------------------------------------
   UNREAL SUPER HERO 3 TRACKER PATTERN SCROLL BACKGROUND & SCRUBBER HUD
   -------------------------------------------------------------------------- */
.unreal-tracker-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.46;
  transition: opacity 0.4s ease;
}

body.crt-off .unreal-tracker-bg {
  opacity: 0.40;
}

.unreal-tracker-header-hud {
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 24px;
  background: rgba(5, 8, 20, 0.75);
  border-bottom: 1px solid rgba(0, 255, 204, 0.2);
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--text-dim);
  z-index: 2;
  backdrop-filter: blur(4px);
}

.unreal-tracker-header-hud .hud-tag {
  background: rgba(0, 255, 204, 0.15);
  color: var(--cyber-cyan);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  margin-right: 8px;
}

.unreal-tracker-header-hud .hud-track-title {
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.unreal-tracker-header-hud .hud-metric {
  margin: 0 8px;
}

.unreal-tracker-header-hud .hud-metric strong {
  color: var(--cyber-cyan);
}

.unreal-tracker-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.unreal-tracker-vignette-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to bottom, var(--bg-main) 15%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.unreal-tracker-vignette-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to top, var(--bg-main) 15%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* Floating Cyberpunk Scroll-Scrubber HUD Pill */
.scroll-audio-hud {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 10, 26, 0.92);
  border: 1px solid rgba(0, 255, 204, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 16px;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 255, 204, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.scroll-audio-hud:hover {
  border-color: var(--cyber-cyan);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 28px rgba(0, 255, 204, 0.45);
  transform: translateY(-2px);
}

.hud-pulse-ring {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyber-cyan);
  box-shadow: 0 0 10px var(--cyber-cyan);
  animation: hudPulse 1.8s infinite;
}

@keyframes hudPulse {
  0% { transform: translateY(-50%) scale(0.9); opacity: 0.7; }
  50% { transform: translateY(-50%) scale(1.3); opacity: 1; box-shadow: 0 0 14px var(--cyber-cyan); }
  100% { transform: translateY(-50%) scale(0.9); opacity: 0.7; }
}

.hud-scrub-icon {
  font-size: 16px;
  margin-left: 10px;
  color: var(--cyber-cyan);
}

.hud-scrub-info {
  display: flex;
  flex-direction: column;
}

.hud-scrub-title {
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.hud-scrub-meta {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--cyber-cyan);
}

/* Mini Audio VU Indicator */
.hud-vu-mini {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
  padding: 0 4px;
}

.hud-vu-mini .vu-bar {
  width: 3px;
  background: var(--cyber-cyan);
  border-radius: 1px;
  height: 4px;
  transition: height 0.08s ease;
}

.hud-vu-mini.active .vu-bar:nth-child(1) { height: 14px; background: var(--cyber-green); }
.hud-vu-mini.active .vu-bar:nth-child(2) { height: 16px; background: var(--cyber-cyan); }
.hud-vu-mini.active .vu-bar:nth-child(3) { height: 10px; background: var(--cyber-yellow); }
.hud-vu-mini.active .vu-bar:nth-child(4) { height: 12px; background: var(--cyber-pink); }

.btn-scrub-audio {
  background: rgba(0, 255, 204, 0.12);
  border: 1px solid rgba(0, 255, 204, 0.35);
  color: var(--cyber-cyan);
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-scrub-audio:hover {
  background: var(--cyber-cyan);
  color: #000;
  box-shadow: 0 0 12px var(--cyber-cyan);
}

.btn-scrub-audio.muted {
  background: rgba(255, 0, 119, 0.15);
  border-color: rgba(255, 0, 119, 0.4);
  color: var(--cyber-pink);
}

.btn-scrub-audio.muted:hover {
  background: var(--cyber-pink);
  color: #fff;
  box-shadow: 0 0 12px var(--cyber-pink);
}

/* Pulsing Scroll Hint Tooltip */
.scroll-hint-tooltip {
  position: fixed;
  bottom: 84px;
  right: 24px;
  z-index: 999;
  background: rgba(10, 15, 35, 0.95);
  border: 1px solid var(--cyber-cyan);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 255, 204, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  animation: hintFloat 3s ease-in-out infinite;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-hint-tooltip.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

@keyframes hintFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* --------------------------------------------------------------------------
   CONTAINER & LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   HEADER HUD & NAVIGATION (ALWAYS STICKY AT TOP)
   -------------------------------------------------------------------------- */
.portal-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  background: rgba(5, 7, 17, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-neon);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.portal-header .container {
  max-width: 1440px;
  padding: 0 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 20px;
}

.brand-wrap {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  user-select: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-family: var(--font-hud);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 0 14px rgba(0, 255, 204, 0.4);
}

.brand-glow {
  color: var(--cyber-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(14px, 2vw, 24px);
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--cyber-cyan);
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyber-cyan);
  box-shadow: 0 0 8px var(--cyber-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}

.lang-switcher-btn, .btn-icon-toggle {
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid var(--border-neon);
  color: var(--cyber-cyan);
  font-family: var(--font-code);
  font-size: 11.5px;
  font-weight: 700;
  height: 34px;
  padding: 0 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switcher-btn:hover, .btn-icon-toggle:hover {
  background: rgba(0, 255, 204, 0.22);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.4);
}

.btn-icon-toggle.active {
  background: var(--cyber-cyan);
  color: var(--bg-main);
  box-shadow: 0 0 14px rgba(0, 255, 204, 0.6);
}

.btn-header-launch {
  height: 34px !important;
  padding: 0 14px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.mobile-nav-btn {
  display: none;
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid var(--border-neon);
  color: var(--cyber-cyan);
  font-size: 18px;
  height: 34px;
  width: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
}

.mobile-nav-btn:hover {
  background: rgba(0, 255, 204, 0.2);
}

/* Cyber Buttons */
.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.btn-primary {
  background: linear-gradient(135deg, #00ffcc, #0088ff);
  color: #050711;
  border: none;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(0, 255, 204, 0.1);
  border-color: var(--cyber-cyan);
  color: var(--cyber-cyan);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.btn-android, .btn-android-nav {
  background: rgba(0, 255, 102, 0.12);
  border: 1px solid rgba(0, 255, 102, 0.45);
  color: var(--cyber-green);
  text-decoration: none;
  font-family: var(--font-hud);
  font-weight: 700;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-android:hover, .btn-android-nav:hover {
  background: var(--cyber-green);
  color: #050711;
  border-color: var(--cyber-green);
  box-shadow: 0 0 20px rgba(0, 255, 102, 0.6);
  transform: translateY(-2px);
}

.btn-android-nav {
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   HERO STAGE & QUICK CHAPTER JUMP CHIPS
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 90px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid var(--border-neon);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cyber-cyan);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--cyber-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyber-cyan);
  animation: pulseAnim 1.8s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-hud);
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.glitch-text {
  color: var(--cyber-cyan);
  text-shadow: 0 0 18px var(--cyber-cyan);
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 620px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.hero-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-hud);
  font-size: 22px;
  font-weight: 800;
  color: var(--cyber-cyan);
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Quick Navigation Chapter Chips */
.hero-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid var(--border-neon);
  color: var(--cyber-cyan);
  font-family: var(--font-code);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.hero-chip:hover {
  background: rgba(0, 255, 204, 0.2);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.4);
  transform: translateY(-2px);
}

.hero-chip.chip-gold { border-color: rgba(255, 204, 0, 0.35); color: var(--cyber-gold); background: rgba(255, 204, 0, 0.08); }
.hero-chip.chip-magenta { border-color: rgba(255, 0, 255, 0.35); color: var(--cyber-magenta); background: rgba(255, 0, 255, 0.08); }
.hero-chip.chip-yellow { border-color: rgba(255, 204, 0, 0.35); color: var(--cyber-yellow); background: rgba(255, 204, 0, 0.08); }
.hero-chip.chip-cyan { border-color: rgba(0, 255, 204, 0.35); color: var(--cyber-cyan); background: rgba(0, 255, 204, 0.08); }
.hero-chip.chip-green { border-color: rgba(0, 255, 102, 0.35); color: var(--cyber-green); background: rgba(0, 255, 102, 0.08); }

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Featured Media Card */
.hero-media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), var(--shadow-neon-cyan);
  min-width: 0;
}

.media-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-subtle);
}

.embed-player-frame {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
  background: #000;
}

.media-footer {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(6, 9, 22, 0.9);
}

.track-name {
  display: block;
  font-family: var(--font-hud);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.track-author {
  font-size: 13px;
  color: var(--text-dim);
}

.format-pill-tag {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  color: #050711;
  background: var(--cyber-cyan);
  padding: 3px 8px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   CHAPTER SECTIONS & COMMON CARDS
   -------------------------------------------------------------------------- */
.section-block {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.tag-cyan { background: rgba(0, 255, 204, 0.12); color: var(--cyber-cyan); border: 1px solid var(--border-neon); }
.tag-magenta { background: rgba(255, 0, 255, 0.12); color: var(--cyber-magenta); border: 1px solid rgba(255, 0, 255, 0.3); }
.tag-yellow { background: rgba(255, 204, 0, 0.12); color: var(--cyber-yellow); border: 1px solid rgba(255, 204, 0, 0.3); }
.tag-gold { color: var(--cyber-gold) !important; border: 1px solid rgba(255, 204, 0, 0.4) !important; background: rgba(255, 204, 0, 0.08) !important; }
.tag-green { background: rgba(0, 255, 102, 0.12); color: var(--cyber-green); border: 1px solid rgba(0, 255, 102, 0.3); }

.section-title {
  font-family: var(--font-hud);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* 3 Cards Grid */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.cyber-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 28px;
  transition: all 0.3s ease;
  min-width: 0;
}

.cyber-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyber-cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 204, 0.15);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-hud);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Timeline */
.timeline-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 60px;
  min-width: 0;
}

.timeline-heading {
  font-family: var(--font-hud);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.timeline-item {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid rgba(0, 255, 204, 0.2);
  min-width: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyber-cyan);
  box-shadow: 0 0 8px var(--cyber-cyan);
}

.timeline-year {
  font-family: var(--font-hud);
  font-size: 20px;
  font-weight: 800;
  color: var(--cyber-cyan);
  margin-bottom: 4px;
}

.timeline-badge {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.badge-amiga { background: rgba(255, 0, 119, 0.15); color: var(--cyber-pink); }
.badge-dos { background: rgba(0, 136, 255, 0.15); color: var(--cyber-blue); }
.badge-tracker { background: rgba(0, 255, 204, 0.15); color: var(--cyber-cyan); }
.badge-synth { background: rgba(255, 204, 0, 0.15); color: var(--cyber-yellow); }

.timeline-event-title {
  font-family: var(--font-hud);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.timeline-event-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Video Archive Showcase */
.video-showcase-head-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.video-showcase-head-wrap .timeline-heading {
  margin-bottom: 0;
}

.video-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.video-filter-btn {
  background: rgba(10, 15, 30, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-code);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.video-filter-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyber-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.video-filter-btn.active {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyber-cyan);
  color: #fff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.45);
}

.video-showcase-card.hidden {
  display: none !important;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.video-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  min-width: 0;
}

.video-showcase-card:hover {
  border-color: var(--cyber-pink);
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.5), var(--shadow-neon-pink);
}

.video-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-thumb-wrap:hover .video-thumb-img {
  transform: scale(1.05);
}

.play-btn-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 0, 119, 0.85);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 16px var(--cyber-pink);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  font-family: var(--font-code);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.video-meta-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.video-title {
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.video-group-meta {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--cyber-cyan);
  margin-bottom: 8px;
}

.video-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}

.video-direct-link {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--cyber-pink);
  text-decoration: none;
  font-weight: 700;
}
.video-direct-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   RUSSIAN DEMOPARTIES SECTION STYLING
   -------------------------------------------------------------------------- */
.demoparty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.demoparty-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.demoparty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-pink), var(--cyber-gold));
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.demoparty-card:hover {
  border-color: var(--cyber-cyan);
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), var(--shadow-neon-cyan);
}

.demoparty-card:hover::before {
  opacity: 1;
}

.demoparty-badge {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyber-gold);
  background: rgba(255, 204, 0, 0.1);
  border: 1px solid rgba(255, 204, 0, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 14px;
  align-self: flex-start;
  letter-spacing: 0.04em;
}

.demoparty-title {
  font-family: var(--font-hud);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.demoparty-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--cyber-cyan);
  margin-bottom: 14px;
}

.demoparty-desc {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 18px;
}

.demoparty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.demoparty-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-code);
  font-size: 10.5px;
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.demoparty-card:hover .demoparty-tag {
  border-color: rgba(0, 240, 255, 0.25);
  color: #c0d8f0;
}

/* Demoparty History & Comparison Table */
.demoparty-table-wrap {
  margin-top: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 26px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.demoparty-table-title {
  font-family: var(--font-hud);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demoparty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
  min-width: 680px;
}

.demoparty-table th {
  font-family: var(--font-code);
  color: var(--cyber-cyan);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 14px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: rgba(0, 240, 255, 0.03);
}

.demoparty-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  line-height: 1.5;
}

.demoparty-table tr:last-child td {
  border-bottom: none;
}

.demoparty-table tr:hover td {
  background: rgba(0, 240, 255, 0.04);
  color: #fff;
}

/* --------------------------------------------------------------------------
   CHAPTER 2: PRINCIPLES & PATTERN MATRIX
   -------------------------------------------------------------------------- */
.principles-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 48px;
}

.principle-block {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  min-width: 0;
}

.principle-num {
  font-family: var(--font-hud);
  font-size: 24px;
  font-weight: 900;
  color: var(--cyber-magenta);
}

.principle-title {
  font-family: var(--font-hud);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.principle-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Live Pattern Emulator Card */
.tracker-live-demo-card {
  background: #03050c;
  border: 1px solid var(--border-neon);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(0, 255, 204, 0.15);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.demo-card-header {
  padding: 12px 16px;
  background: rgba(0, 255, 204, 0.05);
  border-bottom: 1px solid var(--border-neon);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #00ff66;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff66;
  display: inline-block;
  margin-right: 6px;
}

.pattern-matrix-screen {
  padding: 12px 16px;
  font-family: var(--font-code);
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-sizing: border-box;
}

.matrix-header-row {
  display: grid;
  grid-template-columns: 40px repeat(4, 1fr);
  color: var(--cyber-cyan);
  font-weight: 700;
  border-bottom: 1px solid rgba(0, 255, 204, 0.2);
  padding-bottom: 6px;
  margin-bottom: 6px;
  min-width: 320px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 40px repeat(4, 1fr);
  color: var(--text-muted);
  padding: 2px 0;
  border-radius: 3px;
  min-width: 320px;
}

.matrix-row.active-row {
  background: rgba(0, 255, 204, 0.18);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.matrix-row .note { color: var(--cyber-cyan); }
.matrix-row .ins { color: var(--cyber-yellow); }
.matrix-row .fx { color: var(--cyber-pink); }

.matrix-controls {
  padding: 10px 16px;
  background: rgba(0,0,0,0.5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  box-sizing: border-box;
}

/* Sound Chips Grid */
.chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.chip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  min-width: 0;
}

.chip-name {
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.chip-platform {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--cyber-cyan);
  margin-bottom: 8px;
}

.chip-specs {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   CHAPTER 3: FORMATS ENCYCLOPEDIA
   -------------------------------------------------------------------------- */
.formats-showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}

.format-box {
  grid-column: span 2;
  background: linear-gradient(180deg, rgba(14, 18, 34, 0.9) 0%, rgba(8, 10, 20, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.format-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.format-box:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(0, 240, 255, 0.12);
}

.format-box:hover::before {
  opacity: 1;
}

.format-box:nth-child(4) {
  grid-column: 1 / span 3;
}

.format-box:nth-child(5) {
  grid-column: 4 / span 3;
}

.format-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.format-badge-large {
  font-family: var(--font-code);
  font-size: 15px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 6px;
  color: #050711;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.fmt-mod { background: #00ffcc; }
.fmt-xm { background: #0088ff; color: #fff; }
.fmt-s3m { background: #ffcc00; }
.fmt-it { background: #ff0077; color: #fff; }
.fmt-v2m { background: #00ff66; }

.format-name {
  font-family: var(--font-hud);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.format-meta-list {
  list-style: none;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.format-meta-list li {
  line-height: 1.5;
}

.format-meta-list strong {
  color: #f1f5f9;
  font-weight: 600;
}

.format-embed-mini {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 14, 0.8);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  min-width: 0;
}

.format-embed-mini iframe {
  width: 100%;
  height: 165px;
  display: block;
  border: none;
}

/* --------------------------------------------------------------------------
   CHAPTER 4: DEMOSCENE LEGENDS
   -------------------------------------------------------------------------- */
.legends-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.legend-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  min-width: 0;
}

.legend-card:hover {
  border-color: var(--cyber-magenta);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6), 0 0 20px rgba(255, 0, 255, 0.2);
}

.legend-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.legend-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 0, 255, 0.1);
  border: 1px solid rgba(255, 0, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.legend-name {
  font-family: var(--font-hud);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.legend-group {
  font-family: var(--font-code);
  font-size: 11px;
  color: var(--cyber-cyan);
}

.legend-bio {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}

.legend-anthem-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 12px;
  gap: 8px;
}

.anthem-title {
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.anthem-fmt {
  font-family: var(--font-code);
  font-size: 10px;
  color: var(--text-muted);
}

.btn-play-anthem {
  background: rgba(255, 0, 255, 0.15);
  border: 1px solid rgba(255, 0, 255, 0.4);
  color: var(--cyber-magenta);
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-play-anthem:hover {
  background: var(--cyber-magenta);
  color: #fff;
  box-shadow: 0 0 12px var(--cyber-magenta);
}

/* --------------------------------------------------------------------------
   CHAPTER 5: INTERACTIVE JUKEBOX
   -------------------------------------------------------------------------- */
.jukebox-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-neon);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-box);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.jukebox-nav-col, .jukebox-player-col {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.jukebox-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.juke-tab-btn {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-family: var(--font-hud);
  font-size: 11px;
  font-weight: 700;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.juke-tab-btn.active {
  background: rgba(0, 255, 204, 0.15);
  border-color: var(--cyber-cyan);
  color: var(--cyber-cyan);
  box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.jukebox-playlist-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
  width: 100%;
  box-sizing: border-box;
}

.juke-track-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 9, 22, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.juke-track-item:hover, .juke-track-item.active {
  background: rgba(0, 255, 204, 0.1);
  border-color: var(--cyber-cyan);
}

.juke-track-info {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.juke-track-title {
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.juke-track-artist {
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.juke-track-fmt {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyber-cyan);
  flex-shrink: 0;
}

.main-juke-frame {
  width: 100%;
  height: 220px;
  border: none;
  border-radius: 8px;
  background: #000;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.juke-now-playing-bar {
  background: rgba(6, 9, 22, 0.8);
  border: 1px solid var(--border-neon);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
}

.juke-now-playing-info {
  min-width: 0;
}

.juke-now-playing-title {
  font-family: var(--font-hud);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.juke-now-playing-artist {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--cyber-cyan);
}

.juke-btn-launch {
  padding: 8px 16px;
  font-size: 11px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   CHAPTER 6: CALL TO ACTION TERMINAL
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 80px 0 100px;
}

.cta-terminal-card {
  background: linear-gradient(135deg, rgba(10, 16, 38, 0.95), rgba(5, 7, 17, 0.95));
  border: 1px solid var(--border-neon);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), var(--shadow-neon-cyan);
  max-width: 960px;
  margin: 0 auto;
  box-sizing: border-box;
}

.cta-title {
  font-family: var(--font-hud);
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 36px;
}

.cta-features-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.feat-badge {
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid var(--border-neon);
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--cyber-cyan);
}

.cta-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}

.cta-btn-huge {
  font-size: 16px;
  padding: 16px 36px;
}

/* --------------------------------------------------------------------------
   AUTHOR'S POST SCRIPTUM (P.S. MANIFESTO)
   -------------------------------------------------------------------------- */
.author-ps-section {
  padding: 50px 0 70px;
  position: relative;
  z-index: 2;
}

.author-ps-card {
  position: relative;
  background: linear-gradient(135deg, rgba(8, 14, 30, 0.92) 0%, rgba(13, 20, 42, 0.95) 100%);
  border: 1px solid rgba(0, 255, 204, 0.35);
  border-radius: 16px;
  padding: 44px 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 255, 204, 0.08);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.author-ps-card:hover {
  border-color: rgba(0, 255, 204, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 204, 0.15);
}

.author-ps-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyber-cyan), var(--cyber-pink), #ffcc00, var(--cyber-blue));
}

.author-ps-glow-orb {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(0, 255, 204, 0.15) 0%, rgba(255, 0, 119, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.author-ps-header {
  margin-bottom: 24px;
}

.author-ps-tag {
  color: #ffcc00 !important;
  border-color: rgba(255, 204, 0, 0.4) !important;
  background: rgba(255, 204, 0, 0.08) !important;
  font-family: var(--font-code);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.author-ps-title {
  font-family: var(--font-hud);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  text-wrap: balance;
  letter-spacing: 0.02em;
}

.author-ps-quote {
  position: relative;
  padding: 22px 26px 22px 30px;
  background: rgba(0, 255, 204, 0.025);
  border-left: 4px solid var(--cyber-cyan);
  border-radius: 0 12px 12px 0;
  margin: 22px 0 28px;
}

.author-ps-quote-mark {
  position: absolute;
  top: -12px;
  left: 14px;
  font-family: var(--font-hud);
  font-size: 56px;
  line-height: 1;
  color: rgba(0, 255, 204, 0.12);
  user-select: none;
  pointer-events: none;
}

.author-ps-paragraph {
  font-size: 15.5px;
  line-height: 1.8;
  color: #cddbec;
  margin-bottom: 16px;
  text-wrap: pretty;
}

.author-ps-paragraph:last-child {
  margin-bottom: 0;
}

.author-ps-paragraph strong {
  color: var(--cyber-cyan);
  font-weight: 600;
}

.author-ps-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.author-ps-signature {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.25), rgba(255, 0, 119, 0.25));
  border: 1.5px solid var(--cyber-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 16px rgba(0, 255, 204, 0.35);
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-hud);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
}

.author-role {
  font-family: var(--font-code);
  font-size: 12px;
  color: var(--cyber-cyan);
}

.author-ps-badge-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ps-badge {
  font-family: var(--font-code);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.ps-badge:hover {
  border-color: var(--cyber-cyan);
  color: #fff;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.portal-footer {
  border-top: 1px solid var(--border-subtle);
  background: #020308;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-heading {
  font-family: var(--font-hud);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links-list a:hover {
  color: var(--cyber-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   YOUTUBE MODAL LIGHTBOX
   -------------------------------------------------------------------------- */
.video-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.video-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-card {
  background: #060916;
  border: 1px solid var(--cyber-pink);
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), var(--shadow-neon-pink);
  overflow: hidden;
  box-sizing: border-box;
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 0, 119, 0.1);
  border-bottom: 1px solid rgba(255, 0, 119, 0.3);
}

.video-modal-title {
  font-family: var(--font-hud);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.video-modal-close {
  background: transparent;
  border: none;
  color: var(--cyber-pink);
  font-size: 20px;
  cursor: pointer;
}

.video-modal-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.video-modal-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (ALL MEDIA QUERIES STRICTLY AT THE END)
   ========================================================================== */

/* Tablet Large & Small Desktop */
@media (max-width: 1080px) {
  .portal-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
  }
  .mobile-nav-btn {
    display: inline-flex !important;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(5, 7, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 12px;
    border-bottom: 1px solid var(--border-neon);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    transform: translateY(-150%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .nav-menu.mobile-open {
    transform: translateY(0);
  }
  .nav-link {
    font-size: 14.5px;
    padding: 10px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    width: 100%;
  }
}

/* Tablet & Moderate Screens */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-media-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }
  .principles-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards-grid-3 { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .demoparty-grid { grid-template-columns: repeat(2, 1fr); }
  .formats-showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .format-box { grid-column: span 1; }
  .format-box:nth-child(4) { grid-column: span 1; }
  .format-box:nth-child(5) { grid-column: span 2; }
  .chips-grid { grid-template-columns: repeat(2, 1fr); }
  .legends-grid { grid-template-columns: 1fr; }
  .jukebox-layout { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Mobile Devices & Tablets (Portrait) — ULTRA CONCENTRATED FIRST SCREEN */
@media (max-width: 768px) {
  .container {
    padding: 0 14px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .section-block {
    padding: 40px 0;
  }
  
  /* Sticky Header on Mobile */
  .portal-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
  }
  .portal-header .container {
    padding: 0 12px;
  }
  .nav-inner {
    height: 52px;
    gap: 8px;
  }
  .brand-title {
    font-size: 16px;
    letter-spacing: 0.8px;
  }
  .mobile-nav-btn {
    display: inline-flex !important;
    min-width: 36px;
    min-height: 36px;
    font-size: 18px;
  }
  .nav-menu {
    top: 52px;
    max-height: calc(100vh - 52px);
  }
  
  /* Unreal HUD & Compact Audio Scrubber Bar */
  .unreal-tracker-header-hud {
    display: none !important;
  }
  .scroll-audio-hud {
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    gap: 6px;
    height: 32px;
    border-radius: 20px;
    max-width: calc(100vw - 20px);
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 12px rgba(0, 255, 204, 0.2);
  }
  .hud-pulse-ring {
    width: 6px;
    height: 6px;
    left: 8px;
  }
  .hud-scrub-icon {
    font-size: 11px;
    margin-left: 6px;
  }
  .hud-scrub-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
  }
  .hud-scrub-title {
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hud-scrub-meta {
    font-size: 8.5px;
    line-height: 1;
    opacity: 0.85;
    white-space: nowrap;
  }
  .hud-vu-mini {
    height: 10px;
    gap: 2px;
    padding: 0 2px;
  }
  .hud-vu-mini .vu-bar {
    width: 2px;
    height: 3px;
  }
  .btn-scrub-audio {
    font-size: 9.5px;
    padding: 2px 8px;
    height: 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .scroll-hint-tooltip {
    bottom: 48px;
    right: 10px;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    max-width: calc(100vw - 20px);
  }
  .btn-android-nav {
    display: none;
  }
  
  /* ULTRA-CONCENTRATED HERO STAGE (0 SCROLL MAX DENSITY) */
  .hero-section {
    padding: 12px 0 20px !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100%;
  }
  .hero-content {
    width: 100%;
    max-width: 100%;
  }
  .hero-eyebrow {
    font-size: 10px !important;
    padding: 3px 10px !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.8px !important;
    line-height: 1.3 !important;
  }
  .hero-title {
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
    letter-spacing: 0.5px !important;
  }
  .hero-desc {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* 4 Mini Stats in 1 Compact Row */
  .hero-stats-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px !important;
    margin-bottom: 10px !important;
    width: 100%;
  }
  .hero-stat-box {
    padding: 6px 3px !important;
    border-radius: 6px !important;
    background: rgba(10, 14, 30, 0.75) !important;
  }
  .stat-num {
    font-size: 15px !important;
    margin-bottom: 1px !important;
    line-height: 1.1 !important;
  }
  .stat-label {
    font-size: 8px !important;
    line-height: 1.1 !important;
    letter-spacing: 0.2px !important;
  }
  
  /* Quick Chapter Jump Chips (Swipeable horizontally) */
  .hero-quick-chips {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 5px !important;
    margin-bottom: 10px !important;
    width: 100%;
    padding-bottom: 2px;
  }
  .hero-quick-chips::-webkit-scrollbar {
    display: none;
  }
  .hero-chip {
    font-size: 10px !important;
    padding: 4px 9px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.3px !important;
  }
  
  /* Action Buttons in Smart 2-Row Compact Grid */
  .hero-buttons {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 6px !important;
    width: 100%;
    margin-bottom: 12px !important;
  }
  .hero-buttons .btn-hero-play {
    grid-column: 1 / -1 !important;
    min-height: 38px !important;
    font-size: 11px !important;
    padding: 6px 12px !important;
  }
  .hero-buttons .btn-hero-read,
  .hero-buttons .btn-hero-apk {
    width: 100% !important;
    min-height: 32px !important;
    font-size: 9.5px !important;
    padding: 4px 6px !important;
    justify-content: center !important;
    text-align: center !important;
  }
  
  /* Compact Featured Embed Player Card */
  .hero-media-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  }
  .media-header {
    padding: 6px 10px !important;
  }
  .hero-media-card .embed-player-frame {
    height: 152px !important;
  }
  .format-embed-mini iframe,
  .format-embed-mini .embed-player-frame {
    height: 156px !important;
  }
  .media-footer {
    padding: 6px 10px !important;
  }
  .track-name {
    font-size: 12px !important;
  }
  .track-author {
    font-size: 10px !important;
  }
  
  /* Titles */
  .section-title {
    font-size: 24px;
    line-height: 1.3;
  }
  .section-subtitle {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 28px;
  }
  
  /* Chapter 1 */
  .cards-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .timeline-wrapper {
    padding: 24px 16px;
  }
  .timeline-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .video-showcase-head-wrap {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px;
  }
  .video-filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    width: 100%;
    padding-bottom: 6px;
  }
  .video-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .video-filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 11.5px;
    min-height: 38px;
  }
  .video-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  /* Chapter 1.5 Russian Demoparties */
  .demoparty-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .demoparty-card {
    padding: 20px 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .demoparty-table-wrap {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    margin-top: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .demoparty-table-title {
    font-size: 15px !important;
    margin-bottom: 14px !important;
    padding: 0 4px;
    line-height: 1.4;
  }
  .demoparty-table {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-width: 0 !important;
    width: 100% !important;
    border: none !important;
    border-collapse: separate !important;
  }
  .demoparty-table thead {
    display: none !important;
  }
  .demoparty-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .demoparty-table tr {
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s ease !important;
  }
  .demoparty-table tr:hover {
    border-color: var(--cyber-cyan) !important;
    background: var(--bg-card-hover) !important;
  }
  .demoparty-table td {
    padding: 0 !important;
    border: none !important;
    display: block !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .demoparty-table td.col-fest,
  .demoparty-table td:nth-child(1) {
    font-family: var(--font-hud) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
  }
  .demoparty-table td.col-city,
  .demoparty-table td:nth-child(2) {
    font-size: 13px !important;
    color: var(--text-dim) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .demoparty-table td.col-city::before,
  .demoparty-table td:nth-child(2)::before {
    content: "📍 ";
    font-size: 11px;
  }
  .demoparty-table td.col-years,
  .demoparty-table td:nth-child(3) {
    font-family: var(--font-code) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--cyber-yellow) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .demoparty-table td.col-years::before,
  .demoparty-table td:nth-child(3)::before {
    content: "⏱ ";
    font-size: 11px;
    color: var(--text-muted);
  }
  .demoparty-table td.col-plat,
  .demoparty-table td:nth-child(4) {
    font-family: var(--font-code) !important;
    font-size: 11.5px !important;
    color: var(--cyber-cyan) !important;
    background: rgba(0, 240, 255, 0.08) !important;
    border: 1px solid rgba(0, 240, 255, 0.2) !important;
    padding: 4px 10px !important;
    border-radius: 5px !important;
    width: fit-content !important;
    margin: 2px 0 !important;
  }
  .demoparty-table td.col-plat::before,
  .demoparty-table td:nth-child(4)::before {
    content: "🕹 ";
  }
  .demoparty-table td.col-legacy,
  .demoparty-table td:nth-child(5) {
    font-size: 13px !important;
    color: var(--text-main) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 8px !important;
    margin-top: 4px !important;
    line-height: 1.5 !important;
  }
  
  /* Chapter 2 */
  .principles-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .principle-block {
    padding: 16px 14px;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .principle-num {
    font-size: 20px;
  }
  .tracker-live-demo-card {
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .pattern-matrix-screen {
    padding: 10px 12px;
    font-size: 11px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
  }
  .matrix-header-row,
  .matrix-row {
    grid-template-columns: 36px repeat(4, minmax(62px, 1fr));
  }
  .matrix-controls {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
    justify-content: flex-start;
  }
  .chips-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .chip-card {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Chapter 3 */
  .formats-showcase-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .format-box,
  .format-box:nth-child(4),
  .format-box:nth-child(5) {
    grid-column: span 1 !important;
    padding: 18px 14px;
    width: 100%;
    box-sizing: border-box;
  }
  .format-embed-mini iframe {
    height: 160px;
  }
  
  /* Chapter 4 */
  .legends-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .legend-card {
    padding: 20px 16px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Chapter 5 Interactive Jukebox (Ultra-Responsive) */
  .jukebox-layout {
    grid-template-columns: 1fr !important;
    padding: 18px 14px;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
  }
  .jukebox-tabs {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 4px;
    width: 100%;
  }
  .jukebox-tabs::-webkit-scrollbar {
    display: none;
  }
  .juke-tab-btn {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 7px 12px;
    font-size: 11px;
    min-height: 38px;
  }
  .jukebox-playlist-items {
    max-height: 230px;
    width: 100%;
  }
  .juke-track-item {
    padding: 9px 12px;
    width: 100%;
  }
  .juke-track-title {
    font-size: 12.5px;
  }
  .juke-track-artist {
    font-size: 11px;
  }
  .juke-track-fmt {
    font-size: 10px;
  }
  .main-juke-frame {
    height: 180px;
    margin-bottom: 12px;
  }
  .juke-now-playing-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px;
    padding: 12px;
    width: 100%;
  }
  .juke-now-playing-title {
    font-size: 13.5px;
  }
  .juke-now-playing-artist {
    font-size: 11px;
  }
  .juke-btn-launch {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 9px 14px;
    font-size: 11px;
    min-height: 38px;
  }
  
  /* Chapter 6 */
  .cta-section {
    padding: 50px 0 70px;
  }
  .cta-terminal-card {
    padding: 36px 20px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .cta-title {
    font-size: 26px;
    line-height: 1.25;
  }
  .cta-desc {
    font-size: 15px;
    margin-bottom: 24px;
  }
  .cta-features-badges {
    gap: 8px;
    margin-bottom: 28px;
  }
  .feat-badge {
    font-size: 11px;
    padding: 6px 12px;
  }
  .cta-actions-row {
    flex-direction: column !important;
    width: 100%;
    gap: 12px;
  }
  .cta-actions-row .btn-cyber {
    width: 100%;
    justify-content: center;
    min-height: 46px;
  }
  
  /* Author P.S. Section */
  .author-ps-section {
    padding: 40px 0 60px;
  }
  .author-ps-card {
    padding: 28px 18px !important;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .author-ps-title {
    font-size: 20px !important;
    line-height: 1.35;
  }
  .author-ps-quote {
    padding: 16px 16px 16px 18px;
    margin: 16px 0 20px;
  }
  .author-ps-paragraph {
    font-size: 14px !important;
    line-height: 1.65 !important;
    margin-bottom: 14px;
  }
  .author-ps-footer {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
    padding-top: 18px;
  }
  .author-ps-badge-group {
    width: 100% !important;
    gap: 6px;
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Compact Smartphones (iPhone SE, Pixel, etc.) */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  .portal-header .container {
    padding: 0 8px;
  }
  .nav-inner {
    height: 50px;
    gap: 6px;
  }
  .brand-title {
    font-size: 14px;
    letter-spacing: 0.5px;
  }
  .btn-icon-toggle {
    display: none;
  }
  .btn-header-launch {
    padding: 0 7px !important;
    font-size: 9.5px !important;
    height: 28px !important;
  }
  .lang-switcher-btn {
    font-size: 9.5px;
    height: 28px;
    padding: 0 5px;
  }
  .mobile-nav-btn {
    min-width: 32px !important;
    min-height: 32px !important;
    font-size: 16px;
  }
  
  /* Hero Stage Ultra Density */
  .hero-section {
    padding: 10px 0 16px !important;
  }
  .hero-eyebrow {
    font-size: 9px !important;
    padding: 2px 7px !important;
    letter-spacing: 0.6px !important;
  }
  .hero-title {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }
  .hero-desc {
    font-size: 11.5px !important;
    line-height: 1.4 !important;
  }
  .stat-num {
    font-size: 14px !important;
  }
  .stat-label {
    font-size: 7.5px !important;
  }
  .hero-chip {
    font-size: 9.5px !important;
    padding: 3px 7px !important;
  }
  .hero-buttons .btn-hero-play {
    min-height: 36px !important;
    font-size: 10.5px !important;
  }
  .hero-buttons .btn-hero-read,
  .hero-buttons .btn-hero-apk {
    min-height: 30px !important;
    font-size: 9px !important;
  }
  .hero-media-card .embed-player-frame {
    height: 148px !important;
  }
  .format-embed-mini iframe,
  .format-embed-mini .embed-player-frame {
    height: 152px !important;
  }
  
  .section-title {
    font-size: 20px;
    line-height: 1.25;
  }
  .section-subtitle {
    font-size: 12.5px;
  }
  
  .cta-terminal-card {
    padding: 22px 12px;
  }
  .cta-title {
    font-size: 20px;
  }
  .cta-desc {
    font-size: 13px;
  }
  
  .legend-card {
    padding: 16px 12px;
  }
  .legend-anthem-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .legend-anthem-row .btn-play-anthem {
    width: 100%;
    text-align: center;
    justify-content: center;
    min-height: 38px;
  }
  
  .author-ps-card {
    padding: 18px 12px !important;
  }
  .author-ps-title {
    font-size: 17px !important;
  }
  
  /* Ultra-Compact Bottom Bar */
  .scroll-audio-hud {
    bottom: 8px;
    right: 8px;
    padding: 3px 8px;
    height: 28px;
    gap: 5px;
  }
  .hud-scrub-title {
    font-size: 9.5px;
    max-width: 90px;
  }
  .hud-scrub-meta {
    display: none;
  }
  .btn-scrub-audio {
    font-size: 9px;
    padding: 2px 6px;
    height: 22px;
  }
  .scroll-hint-tooltip {
    bottom: 40px;
    right: 8px;
    font-size: 10px;
    padding: 4px 6px;
  }
}

/* Extra Small Screens */
@media (max-width: 360px) {
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .brand-title {
    font-size: 13px;
  }
  .hero-title {
    font-size: 18px !important;
  }
  .jukebox-layout {
    padding: 12px 8px;
  }
}\n

/* --------------------------------------------------------------------------
   FAQ ACCORDION & GENRE QUICK LINKS STYLES
   -------------------------------------------------------------------------- */
.faq-accordion-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(10, 14, 30, 0.75);
  border: 1px solid var(--border-neon);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 16px rgba(0, 255, 204, 0.2);
}

.faq-details {
  width: 100%;
}

.faq-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-hud);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  list-style: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: rgba(0, 255, 204, 0.15);
  border: 1px solid var(--cyber-cyan);
  border-radius: 50%;
  color: var(--cyber-cyan);
  font-size: 0.85rem;
  font-weight: 900;
  flex-shrink: 0;
}

.faq-question {
  flex: 1;
}

.faq-arrow {
  color: var(--cyber-cyan);
  font-size: 0.8rem;
  transition: transform 0.25s ease;
}

.faq-details[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px 60px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.portal-text-link {
  color: var(--cyber-cyan);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.portal-text-link:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--cyber-cyan);
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .faq-summary {
    padding: 12px 14px;
    font-size: 0.9rem;
    gap: 10px;
  }
  .faq-answer {
    padding: 0 14px 14px 46px;
    font-size: 0.85rem;
  }
}
