/* ==========================================================================
   KEY! (FATMANKEY) SHOWCASE - STYLESHEET
   Aesthetic: Atlanta Underground Luxury / Cyber-Trap / 777 Emerald & Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@700;800;900&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
  --bg-primary: #08080a;
  --bg-secondary: #0f1015;
  --bg-card: rgba(18, 20, 26, 0.75);
  --bg-card-hover: rgba(26, 29, 38, 0.9);
  --bg-glass: rgba(12, 14, 18, 0.85);
  
  --accent-emerald: #00ff88;
  --accent-emerald-glow: rgba(0, 255, 136, 0.35);
  --accent-gold: #ffb700;
  --accent-gold-glow: rgba(255, 183, 0, 0.35);
  --accent-purple: #9d4edd;
  --accent-red: #ff3366;
  --accent-cyan: #00e5ff;
  
  --text-primary: #f5f6fa;
  --text-secondary: #9da3b4;
  --text-muted: #5c6275;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(0, 255, 136, 0.3);
  --border-gold: rgba(255, 183, 0, 0.3);
  
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-primary);
  font-family: var(--font-body);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at 50% 0%, #151821 0%, var(--bg-primary) 70%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #252836;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* CRT Scanline & Grain Overlay */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
              radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.4) 100%);
  background-size: 100% 4px, 100% 100%;
  opacity: 0.35;
}

/* App Container */
.app-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 120px 24px;
}

/* Top Ticker */
.top-ticker {
  background: #000;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-emerald);
  display: flex;
  position: relative;
  z-index: 50;
}

.ticker-track {
  display: inline-flex;
  animation: tickerScroll 35s linear infinite;
  gap: 40px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-item span.highlight {
  color: var(--accent-gold);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Navigation Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 8, 10, 0.82);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-normal);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-badge {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-emerald) 60%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px var(--accent-emerald-glow);
  position: relative;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  border-left: 1px solid var(--border-subtle);
  padding-left: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 60px 0 40px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid var(--border-accent);
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  font-weight: 600;
  letter-spacing: 1px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title-group {
  position: relative;
}

.hero-super {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.hero-title .title-accent {
  background: linear-gradient(90deg, var(--accent-emerald) 0%, #fff 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 580px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: -4px;
}

.badge-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #d1d5db;
}

.badge-tag.gold {
  border-color: var(--border-gold);
  color: var(--accent-gold);
  background: rgba(255, 183, 0, 0.05);
}

.badge-tag.emerald {
  border-color: var(--border-accent);
  color: var(--accent-emerald);
  background: rgba(0, 255, 136, 0.05);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  background: var(--accent-emerald);
  color: #050807;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  box-shadow: 0 0 25px var(--accent-emerald-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #26ff9d;
  box-shadow: 0 0 35px rgba(0, 255, 136, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Quick Adlib Sound Strip */
.adlib-sound-strip {
  background: rgba(15, 17, 23, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adlib-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.adlib-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.adlib-btn {
  background: #191c26;
  border: 1px solid var(--border-subtle);
  color: #e2e8f0;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.adlib-btn:hover {
  background: #242938;
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: scale(1.04);
}

.adlib-btn:active {
  transform: scale(0.96);
  background: var(--accent-emerald);
  color: #000;
}

.adlib-btn.gold:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.adlib-btn.gold:active {
  background: var(--accent-gold);
  color: #000;
}

/* Hero Visual / Artwork Frame */
.hero-visual-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px var(--accent-emerald-glow);
  border: 1px solid var(--border-accent);
  background: #111;
  transition: var(--transition-normal);
}

.hero-art-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(0, 255, 136, 0.5);
}

.hero-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(8, 8, 10, 0.85) 100%);
  pointer-events: none;
}

.hero-art-floating-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.hero-art-floating-tag .tag-artist {
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-art-floating-tag .tag-loc {
  color: var(--accent-emerald);
}

/* Section Common Styles */
.content-section {
  padding: 90px 0 40px 0;
  position: relative;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 44px;
}

.section-pretitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-pretitle.gold {
  color: var(--accent-gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 680px;
}

/* Filter Bar */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.filter-tab.active {
  background: var(--accent-emerald);
  color: #000;
  font-weight: 700;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px var(--accent-emerald-glow);
}

/* Discography Grid */
.disco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.disco-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  backdrop-filter: blur(12px);
}

.disco-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 25px var(--accent-emerald-glow);
}

.disco-card.gold-tier:hover {
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 25px var(--accent-gold-glow);
}

.disco-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #111;
  overflow: hidden;
}

.disco-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.disco-card:hover .disco-cover-img {
  transform: scale(1.05);
}

.disco-badge-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  border: 1px solid var(--border-accent);
}

.disco-card.gold-tier .disco-badge-overlay {
  color: var(--accent-gold);
  border-color: var(--border-gold);
}

.disco-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 14px;
}

.disco-year-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.disco-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.disco-collab {
  font-size: 0.88rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-top: -6px;
}

.disco-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.disco-track-highlights {
  background: rgba(0,0,0,0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.disco-track-highlights strong {
  color: var(--text-primary);
}

.disco-track-highlights span {
  color: var(--text-muted);
}

.disco-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding-top: 10px;
}

.disco-play-btn {
  flex-grow: 1;
  background: #1a1d27;
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.disco-play-btn:hover {
  background: var(--accent-emerald);
  color: #000;
  border-color: var(--accent-emerald);
}

.disco-card.gold-tier .disco-play-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

.disco-info-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.disco-info-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* ==========================================================================
   BEAT LAB (16-Step Drum Machine & Synth Sequencer)
   ========================================================================== */
.beatlab-container {
  background: #0d0f14;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
}

.beatlab-top-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.beatlab-controls-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sequencer-play-btn {
  background: var(--accent-emerald);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px var(--accent-emerald-glow);
  transition: var(--transition-fast);
}

.sequencer-play-btn:hover {
  background: #33ff99;
  transform: scale(1.03);
}

.sequencer-play-btn.playing {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
}

.bpm-control-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #141720;
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
}

.bpm-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.bpm-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-emerald);
  min-width: 40px;
  text-align: center;
}

.bpm-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 4px;
  border-radius: 2px;
  background: #292e3d;
  outline: none;
}

.bpm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-emerald);
  cursor: pointer;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.beatlab-presets {
  display: flex;
  align-items: center;
  gap: 8px;
}

.preset-btn {
  background: #171b26;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.preset-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.preset-btn.active {
  background: rgba(255, 183, 0, 0.15);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* Sequencer Grid */
.sequencer-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seq-channel {
  display: grid;
  grid-template-columns: 160px 1fr 100px;
  gap: 16px;
  align-items: center;
  background: rgba(18, 21, 29, 0.6);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.channel-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.channel-type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 6px;
}

.step-btn {
  aspect-ratio: 1/1;
  background: #1a1e2b;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.1s ease;
  position: relative;
}

/* Group 4 beats visually */
.step-btn:nth-child(4n + 1) {
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.step-btn:hover {
  background: #252b3d;
}

.step-btn.active {
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald-glow);
  border-color: var(--accent-emerald);
}

.step-btn.active.gold {
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold-glow);
  border-color: var(--accent-gold);
}

.step-btn.current-step {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.channel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.channel-btn-sm {
  background: #141721;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.channel-btn-sm.muted {
  background: var(--accent-red);
  color: #fff;
}

.channel-btn-sm.solo {
  background: var(--accent-gold);
  color: #000;
}

/* Visualizer Screen in Beat Lab */
.beatlab-bottom-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.audio-vis-canvas-container {
  flex-grow: 1;
  max-width: 420px;
  height: 50px;
  background: #000;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

#beatlab-vis-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* FX Knobs */
.fx-knob-rack {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fx-knob-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   THE BLUEPRINT / RAP FAMILY TREE (COLLAB NETWORK)
   ========================================================================== */
.family-tree-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(12px);
  position: relative;
}

.network-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.node-card {
  background: #11141c;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.node-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-emerald);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px var(--accent-emerald-glow);
}

.node-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1c202d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-emerald);
  border: 1px solid var(--border-accent);
}

.node-name-group {
  display: flex;
  flex-direction: column;
}

.node-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.node-relation {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
}

.node-lore {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.node-tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.node-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 4px;
  color: #cbd5e1;
}

/* ==========================================================================
   VIDEO CINEMA & VISUALS VAULT
   ========================================================================== */
.cinema-theater {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  background: #0d0f15;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 28px;
}

.cinema-screen-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.2);
}

.cinema-video-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.cinema-playlist-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}

.cinema-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cinema-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.2);
}

.cinema-item.active {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--accent-emerald);
}

.cinema-thumb {
  width: 60px;
  height: 42px;
  background: #1b1e2a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-emerald);
}

.cinema-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cinema-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.cinema-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   LORE & QUOTES SECTION
   ========================================================================== */
.lore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.lore-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  backdrop-filter: blur(8px);
}

.lore-quote-icon {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent-gold);
}

.lore-quote-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.lore-author {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-top: auto;
}

.lore-source {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MERCH & STREETWEAR VAULT
   ========================================================================== */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.merch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.merch-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

.merch-preview {
  aspect-ratio: 4/3;
  background: #141721;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 3.5rem;
  color: var(--accent-gold);
  border-bottom: 1px solid var(--border-subtle);
}

.merch-status-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.merch-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.merch-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.merch-price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

.merch-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.merch-btn {
  margin-top: auto;
  background: #1a1d28;
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 10px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.merch-btn:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold);
}

/* ==========================================================================
   FLOATING RETRO TRAP PLAYER
   ========================================================================== */
.floating-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(10, 11, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  z-index: 200;
  padding: 12px 24px;
}

.player-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 20px;
  align-items: center;
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-cover-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #181b24;
  overflow: hidden;
  border: 1px solid var(--border-accent);
}

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

.player-names {
  display: flex;
  flex-direction: column;
}

.player-song-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-song-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-emerald);
}

.player-center-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.player-buttons-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.player-ctrl-btn:hover {
  color: #fff;
  transform: scale(1.1);
}

.player-ctrl-btn.play-main {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-emerald);
  color: #000;
  font-size: 1.2rem;
  box-shadow: 0 0 15px var(--accent-emerald-glow);
}

.player-ctrl-btn.play-main:hover {
  background: #33ff99;
  transform: scale(1.08);
}

.player-progress-bar-wrap {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.player-progress-track {
  flex-grow: 1;
  height: 4px;
  background: #232736;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.player-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-gold));
  border-radius: 2px;
  width: 0%;
  box-shadow: 0 0 8px var(--accent-emerald-glow);
}

.player-right-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.canvas-player-vis {
  width: 110px;
  height: 32px;
  background: #000;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   MODAL / POPUP (TRACK DETAILS / LORE)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #0e1017;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.9), 0 0 40px var(--accent-emerald-glow);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: var(--transition-normal);
}

.modal-backdrop.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #1a1d28;
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-red);
  color: #fff;
}

/* Footer */
.main-footer {
  margin-top: 100px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-link {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  color: var(--accent-emerald);
}

.footer-bottom {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-art-frame {
    max-width: 100%;
  }
  .cinema-theater {
    grid-template-columns: 1fr;
  }
  .player-inner {
    grid-template-columns: 1fr auto;
  }
  .player-right-side {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .seq-channel {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .channel-actions {
    justify-content: flex-start;
  }
  .steps-row {
    gap: 3px;
  }
  .hero-title {
    font-size: 3rem;
  }
  .app-container {
    padding: 0 16px 120px 16px;
  }
}
