/* ==========================================================================
   ASIKVESTEL.ORG // Studio Bento Edition
   Bespoke Modern Dark-Mode Architecture (Linear / Vercel / Raycast Style)
   High Craft, Zero Fluff, Fully Purposeful & Performant
   ========================================================================== */

:root {
  /* --- Typography --- */
  --font-sans: "Inter", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Plus Jakarta Sans", "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* --- Surface Palette (Deep Slate & Obsidian) --- */
  --bg-canvas: #08090d;
  --bg-surface-1: #0e1118;
  --bg-surface-2: #141722;
  --bg-surface-3: #1b202e;
  --bg-glass: rgba(14, 17, 24, 0.76);
  --bg-glass-elevated: rgba(20, 24, 34, 0.85);

  /* --- Accents & Gradients (Purple & Fuchsia Palette) --- */
  --accent-primary: #7C3AED;
  --accent-primary-hover: #6D28D9;
  --accent-secondary: #D946EF;
  --accent-hover: #6D28D9;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --accent-purple: #A855F7;
  --accent-fuchsia: #E879F9;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --gradient-accent: linear-gradient(90deg, #A855F7 0%, #E879F9 100%);
  --gradient-text: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  --gradient-btn-primary: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  --gradient-btn-primary-hover: linear-gradient(135deg, #6D28D9 0%, #9333EA 100%);

  /* --- Hairline Borders & Shadows --- */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-hover: rgba(168, 85, 247, 0.45);
  --border-focus: rgba(217, 70, 239, 0.55);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 32px rgba(168, 85, 247, 0.45);

  /* --- Text Tokens --- */
  --text-pure: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-dim: #475569;

  /* --- Radii --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
}

/* Ambient Radial Mesh */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 650px;
  background: radial-gradient(circle 800px at 50% -100px, rgba(124, 58, 237, 0.2) 0%, rgba(217, 70, 239, 0.08) 40%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: #1e2433;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #333c52;
}

/* ==========================================================================
   PRECISION FLOATING NAVBAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-pure);
  flex-shrink: 0;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-medium);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.logo-brand {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.15;
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.18s ease;
  position: relative;
  padding: 6px 2px;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a.active {
  color: #fff;
  font-weight: 600;
}

.nav-links a.active::after,
.nav-link.active::after,
.badge-dot {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #A855F7;
  box-shadow: 0 0 10px #A855F7;
  border-radius: var(--radius-full);
}

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

/* Command Palette Search Trigger Button */
.search-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-trigger-btn:hover {
  background: var(--bg-surface-3);
  border-color: var(--border-medium);
  color: #fff;
}

.kbd-shortcut {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--text-tertiary);
}

.nav-vault-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.nav-vault-btn:hover {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(168, 85, 247, 0.65);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.35);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ==========================================================================
   HERO COMMAND AREA
   ========================================================================== */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4.5rem 2rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

.pill-indicator {
  width: 7px;
  height: 7px;
  background-color: #A855F7;
  border-radius: 50%;
  box-shadow: 0 0 10px #A855F7;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 900px;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-gradient-text,
.accent-text {
  background: linear-gradient(90deg, #A855F7 0%, #E879F9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2.4rem;
  line-height: 1.65;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.45);
  transition: all 0.2s ease-in-out;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #6D28D9 0%, #9333EA 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(168, 85, 247, 0.65);
}

.btn-secondary {
  background: var(--bg-surface-2);
  color: #fff;
  border: 1px solid rgba(168, 85, 247, 0.35);
  transition: all 0.2s ease-in-out;
}
.btn-secondary:hover {
  background: var(--bg-surface-3);
  border-color: rgba(168, 85, 247, 0.65);
  color: #fff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   MASTER BENTO GRID SYSTEM (12-COLUMN ASYMMETRIC)
   ========================================================================== */
.bento-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

/* Bento Base Card */
.bento-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Block Sizes in 12-Column Grid */
.bento-card.col-7 { grid-column: span 7; }
.bento-card.col-5 { grid-column: span 5; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-12 { grid-column: span 12; }

/* Bento Header & Tags */
.bento-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.bento-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.bento-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.bento-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Bento Featured Media Widget */
.featured-video-box {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  position: relative;
  padding-bottom: 56.25%;
  margin-top: 1rem;
  border: 1px solid var(--border-subtle);
}

.featured-video-box iframe,
.featured-video-box video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Bento Telemetry Metrics */
.metrics-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 1.2rem;
}

.metric-cell {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: all 0.2s ease;
}

.metric-cell:hover {
  background: var(--bg-surface-3);
  border-color: var(--border-medium);
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.metric-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Bento Member Spotlight Carousel */
.spotlight-member {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-top: 1rem;
  min-width: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

.spotlight-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-medium);
  flex-shrink: 0;
}

.spotlight-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.spotlight-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotlight-role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.spotlight-bio {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
  height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.spotlight-cycle-btn {
  background: var(--bg-surface-3);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  margin-top: 1rem;
  align-self: flex-start;
}
.spotlight-cycle-btn:hover {
  color: #fff;
  border-color: var(--border-medium);
}

/* Bento Interactive Quote Block - 100% Rigid Stationary Layout */
.quote-box {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 185px;
  min-height: 185px;
  max-height: 185px;
  box-sizing: border-box;
  overflow: hidden;
}

.quote-phrase-wrapper {
  height: 84px;
  min-height: 84px;
  max-height: 84px;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

.quote-phrase {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.45;
  font-style: italic;
  margin: 0;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.12s ease;
}

.quote-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: nowrap !important;
  box-sizing: border-box;
}

.quote-signer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.quote-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.quote-controls .icon-btn {
  white-space: nowrap;
  flex-shrink: 0;
  height: 28px;
  box-sizing: border-box;
}

.icon-btn {
  background: var(--bg-surface-3);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}
.icon-btn:hover {
  color: #fff;
  border-color: var(--border-medium);
}

/* Bento Navigation Hub Link Cards */
.hub-link-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  transition: color 0.18s ease;
}
.bento-card:hover .hub-link-bar {
  color: var(--accent-cyan);
}

/* ==========================================================================
   PAGE TEMPLATES (COUNCIL, MEDIA, LORE, RULES, ARCHIVE)
   ========================================================================== */
.section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.section-header {
  margin-bottom: 2.8rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 0.6rem;
}

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

/* Filter Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.filter-pill:hover {
  background: var(--bg-surface-2);
  color: #fff;
}
.filter-pill.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.45);
}

.search-input-box {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  outline: none;
  min-width: 260px;
  transition: border-color 0.2s ease;
}
.search-input-box:focus {
  border-color: var(--accent-primary);
}

/* Council Roster Grid */
.roster-grid,
.council-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.member-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: var(--shadow-sm);
  min-height: 400px;
}

.member-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--bg-surface-2);
}

.member-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.avatar-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-3);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.avatar-emoji {
  font-size: 1.8rem;
}

.member-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
}

.member-title-block {
  margin-bottom: 0.8rem;
}

.member-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.member-handle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.member-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex: 1;
  text-wrap: pretty;
}

.member-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.trait {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Media Cards */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

.media-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.media-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.media-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
}

.media-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-tertiary);
}

.media-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.media-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Timeline & Rules */
.lore-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 0;
}

.lore-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), rgba(255, 255, 255, 0.05));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 54px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-canvas);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.6);
}

.timeline-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  transition: all 0.2s ease;
}
.timeline-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-2);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.timeline-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.rules-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.rule-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem 2rem;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.2s ease;
}
.rule-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-2);
}

.rule-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  color: #d8b4fe;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 5px 11px;
  border-radius: var(--radius-sm);
}

.rule-content {
  flex: 1;
}

.rule-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.rule-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ==========================================================================
   COMMAND PALETTE MODAL (CMD + K SEARCH)
   ========================================================================== */
.cmd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.cmd-modal-backdrop.open {
  display: flex;
}

.cmd-modal-box {
  width: 100%;
  max-width: 620px;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modal-pop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cmd-search-header {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.cmd-search-icon {
  color: var(--text-tertiary);
  font-size: 1.1rem;
}

.cmd-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  outline: none;
}
.cmd-input::placeholder {
  color: var(--text-dim);
}

.cmd-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.15s ease;
  cursor: pointer;
}

.cmd-result-item:hover,
.cmd-result-item.selected {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

.cmd-result-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--text-tertiary);
}

.cmd-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ==========================================================================
   SINEMA MODU (THEATER MODE) OVERLAY
   ========================================================================== */
.theater-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 5, 8, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.theater-inner {
  width: 100%;
  max-width: 1160px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  overflow: hidden;
}

.theater-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
}

.theater-counter-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 700;
  background: rgba(6, 182, 212, 0.12);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.theater-top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.theater-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.theater-action-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.theater-close-btn {
  font-size: 1.1rem;
  padding: 6px 12px;
}

.theater-stage {
  position: relative;
  flex: 1;
  min-height: 480px;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.theater-viewport {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theater-viewport video {
  width: 100%;
  height: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #000;
  outline: none;
}

.theater-viewport iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
}

.theater-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(14, 17, 24, 0.85);
  border: 1px solid var(--border-medium);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  z-index: 10;
  user-select: none;
}

.theater-arrow:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-50%) scale(1.08);
}

.theater-arrow.prev { left: 20px; padding-right: 3px; }
.theater-arrow.next { right: 20px; padding-left: 3px; }

.theater-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.card-expand-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.card-expand-btn:hover {
  background: rgba(124, 58, 237, 0.28);
  border-color: rgba(168, 85, 247, 0.55);
  color: #fff;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface-3);
  border: 1px solid var(--border-medium);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  box-shadow: var(--shadow-lg);
  z-index: 999999;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  background: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 2rem 2.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 980px) {
  .bento-card.col-7,
  .bento-card.col-5,
  .bento-card.col-4,
  .bento-card.col-6,
  .bento-card.col-8 {
    grid-column: span 12;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface-1);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
  }
  .nav-links.active {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* Hall of Fame Matrix (Option 3 Replacement) */
.hall-of-fame-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 1.2rem;
}

.hall-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.hall-card:hover {
  background: var(--bg-surface-2);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.hall-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.hall-badge.purple { background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.3); color: #c084fc; }
.hall-badge.cyan { background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.3); color: #38bdf8; }
.hall-badge.red { background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.3); color: #fb7185; }
.hall-badge.emerald { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); color: #34d399; }
.hall-badge.amber { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); color: #fbbf24; }
.hall-badge.blue { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3); color: #60a5fa; }

.hall-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.hall-recipient {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hall-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: auto;
}

/* Featured Video Controls */
.featured-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.featured-btn {
  background: var(--bg-surface-3);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: all 0.15s ease;
}
.featured-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

/* Fallback Avatar Styling */
.spotlight-avatar.fallback-avatar,
.avatar-img.fallback-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--bg-surface-3);
  color: #fff;
  border: 1px solid var(--border-medium);
  user-select: none;
}
.spotlight-avatar.fallback-avatar {
  font-size: 1.2rem;
  border-radius: var(--radius-md);
}
.avatar-img.fallback-avatar {
  font-size: 1.3rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   SPOTIFY NOW PLAYING & EQUALIZER STYLES (COUNCIL & BENTO)
   ========================================================================== */
.member-music-status {
  margin-top: auto;
  padding-top: 14px;
  width: 100%;
}

/* Discord-Style Spotify Rich Presence Embed */
.discord-spotify-card {
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid rgba(29, 185, 84, 0.32);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.discord-spotify-card:hover {
  border-color: rgba(29, 185, 84, 0.6);
  box-shadow: 0 6px 20px rgba(29, 185, 84, 0.18);
  transform: translateY(-2px);
}

.discord-spotify-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.discord-spotify-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1DB954;
}

.discord-spotify-badge svg {
  color: #1DB954;
  flex-shrink: 0;
}

.discord-spotify-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-spotify-art {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.discord-spotify-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.discord-spotify-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease;
  display: block;
}

.discord-spotify-title:hover {
  color: #1DB954;
  text-decoration: underline;
}

.discord-spotify-artist {
  font-size: 0.78rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-spotify-album {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discord-spotify-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
  margin-top: 2px;
}

.equalizer-icon {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 12px;
  flex-shrink: 0;
}

.eq-bar {
  width: 2.5px;
  background-color: #1DB954;
  border-radius: 1px;
  animation: eqBounce 1s ease-in-out infinite;
}

.eq-1 { height: 40%; animation-delay: 0.0s; }
.eq-2 { height: 85%; animation-delay: 0.2s; }
.eq-3 { height: 60%; animation-delay: 0.4s; }

@keyframes eqBounce {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

.spotify-listen-link {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #1DB954;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s ease;
}

.spotify-listen-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.spotify-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.spotify-profile-pill:hover {
  border-color: rgba(29, 185, 84, 0.4);
  color: #1DB954;
}

/* ==========================================================================
   LIVE MUSIC RADAR PAGE (/music/)
   ========================================================================== */
.music-radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.music-radar-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.music-radar-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.music-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.music-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-medium);
}

.music-user-meta {
  flex: 1;
  min-width: 0;
}

.music-nickname {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 2px;
}

.music-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-emerald);
}

.music-track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--bg-surface-1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 12px;
}

.music-art-small {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.music-track-details {
  min-width: 0;
  flex: 1;
}

.music-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-artist {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-wave-container {
  width: 100%;
  height: 44px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.audio-wave-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   EARLY WRAPPED & LEADERBOARDS (/wrapped/)
   ========================================================================== */
.wrapped-hero {
  text-align: center;
  padding: 50px 20px 30px;
}

.wrapped-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.wrapped-tab-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wrapped-tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(168, 85, 247, 0.3);
}

.wrapped-tab-btn.active {
  background: var(--gradient-btn-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.4);
}

.wrapped-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.wrapped-stat-card {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.wrapped-stat-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-pure);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wrapped-stat-label {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* Site-wide natural organic table styling */
table {
  border-collapse: collapse;
  text-align: left;
}

table th {
  padding: 11px 15px;
}

table td {
  padding: 11px 15px;
}

.artist-table-container {
  background: 
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
}

.artist-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.87rem;
}

/* Base natural table padding - avoiding rigid uniform even-number dimensions */
.artist-table th {
  padding: 11px 15px;
  background: var(--bg-surface-1);
  color: var(--text-tertiary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-subtle);
}

.artist-table td {
  padding: 11px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.artist-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

/* Site-wide table differentiation: Personal top tracks table */
.personal-tracks-table th {
  padding: 13px 17px;
  font-size: 0.71rem;
}

.personal-tracks-table td {
  padding: 13px 17px;
}

.personal-tracks-table td.col-rank,
.personal-tracks-table th.col-rank {
  width: 37px;
  padding: 13px 9px;
  text-align: center;
}

.personal-tracks-table td.col-plays,
.personal-tracks-table th.col-plays {
  width: 107px;
  padding: 13px 15px;
  text-align: right;
}

.personal-tracks-table td.col-time,
.personal-tracks-table th.col-time {
  width: 89px;
  padding: 13px 17px;
  text-align: right;
}

/* Site-wide table differentiation: Gang shared collective table */
.gang-artists-table th {
  padding: 9px 15px;
  font-size: 0.69rem;
}

.gang-artists-table td {
  padding: 9px 15px;
  font-size: 0.86rem;
}

.gang-artists-table td.col-rank,
.gang-artists-table th.col-rank {
  width: 41px;
  padding: 9px 11px;
  text-align: center;
}

.gang-artists-table td.col-listeners,
.gang-artists-table th.col-listeners {
  width: 115px;
  padding: 9px 15px;
  text-align: center;
}

/* Site-wide table differentiation: Artist search leaderboard table */
.artist-leaderboard-table th {
  padding: 11px 19px;
  font-size: 0.73rem;
}

.artist-leaderboard-table td {
  padding: 13px 19px;
}

.artist-leaderboard-table td.col-rank,
.artist-leaderboard-table th.col-rank {
  width: 45px;
  padding: 13px 13px;
  text-align: center;
}

.artist-name-cell {
  font-weight: 600;
  color: var(--text-pure);
}

/* Colorless Modern Badges & Minimalist Emblems */
.top-fan-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.rank-one-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-pure);
}

.emblem-svg {
  display: inline-block;
  vertical-align: -0.15em;
  color: currentColor;
  flex-shrink: 0;
}

.emblem-svg.stroke {
  fill: none;
  stroke: currentColor;
}

.source-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.75;
  margin-right: 7px;
  vertical-align: 1px;
}

/* Wrapped Genre Badges & Trend Chart */
.wrapped-genre-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.genre-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--text-pure);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.genre-pill:hover {
  transform: translateY(-1px);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
}

.genre-pill-pct {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.trend-chart-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: visible;
}

.trend-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trend-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--text-pure);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 10;
  white-space: nowrap;
  display: none;
  transform: translate(-50%, -115%);
  transition: opacity 0.15s ease;
}

/* ==========================================================================
   SPOTIFY WRAPPED STORY & LOCKOUT STYLES
   ========================================================================== */

.wrapped-story-cta-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(16, 185, 129, 0.12) 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.wrapped-story-cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.story-cta-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.story-cta-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 6px;
}

.story-cta-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0;
  line-height: 1.5;
}

.btn-wrapped-story {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #03140d;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-wrapped-story:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.btn-wrapped-story:active {
  transform: translateY(0) scale(0.98);
}

.story-sparkle {
  font-size: 1.15rem;
  animation: pulseSparkle 2s infinite ease-in-out;
}

@keyframes pulseSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.25) rotate(12deg); }
}

/* --- Wrapped Lockout Modal (Season Gating) --- */
.wrapped-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wrapped-modal-box {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 36px 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.wrapped-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.wrapped-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-pure);
}

.lockout-header {
  text-align: center;
  margin-bottom: 24px;
}

.lockout-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.lockout-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.lockout-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 10px;
}

.lockout-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.season-progress-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}

.season-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.progress-label-title {
  color: var(--text-tertiary);
  font-weight: 600;
}

.progress-label-val {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-amber);
}

.season-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.season-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-emerald));
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.lockout-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

.lockout-stat-col {
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
}

.stat-col-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-pure);
  margin-bottom: 2px;
}

.stat-col-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.lockout-info-note {
  background: rgba(16, 185, 129, 0.06);
  border-left: 3px solid var(--accent-emerald);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.lockout-info-note p {
  margin: 0;
}

/* --- Fullscreen Spotify Wrapped Story Viewer --- */
.wrapped-story-overlay {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle 900px at 50% 10%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
    radial-gradient(circle 800px at 80% 85%, rgba(16, 185, 129, 0.10) 0%, transparent 55%),
    #040507;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.25s ease-out;
}

.story-container {
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 860px;
  background:
    radial-gradient(ellipse 90% 65% at 85% 12%, rgba(124, 58, 237, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 85% 55% at 15% 88%, rgba(16, 185, 129, 0.12) 0%, transparent 65%),
    #08090e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 
    0 24px 90px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(124, 58, 237, 0.12);
}

@media (max-width: 480px) {
  .story-container {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
  }
}

/* Story Progress Bars */
.story-progress-container {
  display: flex;
  gap: 4px;
  padding: 14px 16px 8px;
  z-index: 20;
}

.story-progress-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.story-progress-inner {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 999px;
}

.story-progress-inner.completed {
  width: 100% !important;
}

/* Story Top Bar */
.story-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 12px;
  z-index: 20;
}

.story-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.story-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-emerald);
  object-fit: cover;
}

.story-user-meta {
  display: flex;
  flex-direction: column;
}

.story-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.2;
}

.story-season-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
}

.story-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-icon-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-primary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.story-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Tap Hitboxes */
.story-hitbox {
  position: absolute;
  top: 60px;
  bottom: 0;
  z-index: 15;
  cursor: pointer;
}

.story-hitbox-left {
  left: 0;
  width: 30%;
}

.story-hitbox-right {
  right: 0;
  width: 70%;
}

/* Dynamic Slide Viewport */
.story-slide-viewport {
  flex: 1;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  box-sizing: border-box;
  overflow-y: auto;
}

/* Slide Card Components */
.story-slide {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: slideFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: scale(0.97) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.slide-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  margin-bottom: 8px;
}

.slide-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.2;
  margin-bottom: 16px;
}

.slide-big-stat {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 12px 0 4px;
}

.slide-stat-unit {
  font-size: 1.1rem;
  color: var(--accent-emerald);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slide-meta-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.slide-track-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.slide-track-item.rank-1 {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.15), rgba(124, 58, 237, 0.1));
  border-color: rgba(16, 185, 129, 0.4);
}

.slide-track-rank {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-emerald);
  width: 20px;
  text-align: center;
}

.slide-track-art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.slide-track-info {
  flex: 1;
  min-width: 0;
}

.slide-track-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-track-artist {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-track-plays {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-emerald);
  white-space: nowrap;
}

.bento-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.bento-mini-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
}

.bento-mini-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bento-mini-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-pure);
}

/* --- Slide 1 Rhythm Waveform & Clock Motif --- */
.story-slide.rhythm-slide {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-header-zone {
  flex-shrink: 0;
  padding-bottom: 8px;
}

.slide-motif-zone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.slide-footer-zone {
  flex-shrink: 0;
}

.waveform-clock-container {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.waveform-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, rgba(124, 58, 237, 0.10) 50%, transparent 75%);
  filter: blur(20px);
  pointer-events: none;
  border-radius: 50%;
}

.waveform-clock-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

/* GPU Accelerated Pure CSS Waveform Animation */
.wave-bar {
  transform-origin: 50% 50%;
  will-change: transform;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}

.bar-1 { animation-delay: -0.2s; animation-duration: 0.9s; }
.bar-2 { animation-delay: -0.5s; animation-duration: 1.3s; }
.bar-3 { animation-delay: -0.1s; animation-duration: 1.1s; }
.bar-4 { animation-delay: -0.7s; animation-duration: 0.8s; }
.bar-5 { animation-delay: -0.4s; animation-duration: 1.4s; }
.bar-6 { animation-delay: -0.3s; animation-duration: 1.2s; }
.bar-7 { animation-delay: -0.8s; animation-duration: 0.85s; }
.bar-8 { animation-delay: -0.15s; animation-duration: 1.05s; }
.bar-9 { animation-delay: -0.6s; animation-duration: 1.35s; }
.bar-10 { animation-delay: -0.25s; animation-duration: 0.95s; }

@keyframes wavePulse {
  0% { transform: scaleY(0.35); opacity: 0.55; }
  50% { transform: scaleY(1.15); opacity: 1; }
  100% { transform: scaleY(0.7); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .wave-bar {
    animation: none;
    transform: scaleY(0.85);
  }
}

.rhythm-hour-pill {
  margin-top: 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.rhythm-hour-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-emerald);
}

.rhythm-hour-time {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-pure);
}

/* Subtle Ambient Gradient Sheen on Wrapped Overview Cards */
.wrapped-tab-content .bento-card {
  background: 
    radial-gradient(circle at 100% 0%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    var(--bg-surface-2);
}

/* ==========================================================================
   Recap Export Modal & Visual Aspect Ratio Indicators (R6, R7)
   ========================================================================== */
.recap-export-modal-box {
  max-width: 560px;
  width: 92vw;
  background: radial-gradient(circle at 15% 15%, rgba(124, 58, 237, 0.16), transparent 55%),
              radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.12), transparent 50%),
              #08090d;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 58, 237, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90vh;
  overflow-y: auto;
}

.recap-format-selector {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.recap-format-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recap-format-btn:hover {
  color: var(--text-pure);
  background: rgba(255, 255, 255, 0.05);
}

.recap-format-btn.active {
  background: var(--accent-emerald);
  color: #040507;
  border-color: var(--accent-emerald);
}

.aspect-indicator {
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.aspect-9-16 { width: 9px; height: 16px; }
.aspect-1-1  { width: 13px; height: 13px; }
.aspect-16-9 { width: 16px; height: 9px; }

.recap-format-btn.active .aspect-indicator {
  background: #040507;
  border-color: #040507;
}

.recap-preview-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 16px;
  min-height: 280px;
  max-height: 420px;
  overflow: hidden;
}

.recap-preview-canvas {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

/* R7 Community Percentile Pill */
.community-percentile-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.25), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.45);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.community-percentile-pill .pill-sparkle {
  color: var(--accent-emerald);
  font-size: 0.85rem;
}

/* Wrapped Recap Banner in Personal Tab */
.wrapped-recap-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}






/* ==========================================================================
   WEB WIZARD, WEB DESIGNER & iOS MOBILE PACK ENHANCEMENTS
   ========================================================================== */

/* --- Safe-Area Insets & Apple Human Interface Tokens --- */
:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --font-apple: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

/* Touch targets & Tap Highlight */
button, a, input, select, textarea, .bento-card, .ios-tab-item {
  -webkit-tap-highlight-color: transparent;
}

/* Smooth momentum scrolling */
body, .archive-container, .chat-messages-container, .modal-body {
  -webkit-overflow-scrolling: touch;
}

/* --- Scroll Progress Bar --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-cyan) 100%);
  z-index: 99999;
  width: 0%;
  transition: width 0.08s ease-out;
  pointer-events: none;
}

/* --- Scrolled Navbar Polish --- */
.navbar {
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  padding-top: max(10px, var(--sat));
}

.navbar.scrolled {
  background: rgba(8, 9, 13, 0.86);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
}

/* --- Hero Section & Global Ambient Canvas --- */
.hero {
  position: relative;
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease-spring), transform 0.65s var(--ease-spring);
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- 3D Bento Card Tilt Glow --- */
.bento-card {
  position: relative;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(168, 85, 247, 0.12),
    transparent 40%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card > * {
  position: relative;
  z-index: 2;
}

/* --- iOS Floating Frosted Tab Bar (iPhone / Mobile) --- */
.ios-tab-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(76px + var(--sab));
  }

  /* Hide the cramped top links on mobile since bottom tab bar takes over */
  .nav-links {
    display: none !important;
  }

  .ios-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    align-items: center;
    justify-content: space-around;
    padding-top: 8px;
    padding-bottom: max(10px, var(--sab));
    padding-left: max(12px, var(--sal));
    padding-right: max(12px, var(--sar));
    background: rgba(12, 15, 22, 0.84);
    backdrop-filter: blur(32px) saturate(200%);
    -webkit-backdrop-filter: blur(32px) saturate(200%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
  }

  .ios-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    cursor: pointer;
    min-width: 58px;
    min-height: 46px;
    padding: 2px 8px;
    border-radius: 12px;
    transition: transform 0.15s var(--ease-spring), color 0.15s ease;
    user-select: none;
  }

  .ios-tab-item:active {
    transform: scale(0.91);
  }

  .ios-tab-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    transition: transform 0.2s var(--ease-spring);
  }

  .ios-tab-label {
    font-family: var(--font-apple);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
  }

  .ios-tab-item.active {
    color: var(--accent-fuchsia);
  }

  .ios-tab-item.active .ios-tab-icon-wrap {
    transform: translateY(-1px);
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.6));
  }

  .ios-tab-item.active .ios-tab-label {
    color: #ffffff;
    font-weight: 700;
  }
}

/* --- iOS Native Sheet Drawer --- */
.ios-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ios-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ios-sheet-container {
  background: #0d1017;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px 28px 0 0;
  padding: 12px 20px calc(24px + var(--sab)) 20px;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.9);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-spring);
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.ios-sheet-overlay.active .ios-sheet-container {
  transform: translateY(0);
}

.ios-sheet-handle-bar {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 12px;
}

.ios-sheet-grabber {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.ios-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ios-sheet-title-group {
  display: flex;
  flex-direction: column;
}

.ios-sheet-title {
  font-family: var(--font-apple);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.ios-sheet-subtitle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.ios-sheet-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ios-sheet-close-btn:active {
  transform: scale(0.92);
}

.ios-sheet-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.ios-sheet-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: transform 0.15s var(--ease-spring), background 0.15s ease, border-color 0.15s ease;
}

.ios-sheet-link-card:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.07);
}

.ios-sheet-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-purple {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: var(--accent-purple);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}

.icon-cyan {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
}

.icon-rose {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: var(--accent-rose);
}

.ios-sheet-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ios-sheet-card-title {
  font-family: var(--font-apple);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.ios-sheet-card-desc {
  font-size: 0.76rem;
  color: var(--text-tertiary);
}

.ios-sheet-arrow {
  color: var(--text-dim);
}

.ios-sheet-footer {
  padding-top: 4px;
}

.ios-sheet-search-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(217, 70, 239, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #ffffff;
  font-family: var(--font-apple);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), background 0.15s ease;
}

.ios-sheet-search-btn:active {
  transform: scale(0.98);
}

/* Prevent background scroll when iOS sheet is open */
body.ios-sheet-open {
  overflow: hidden;
}


/* ==========================================================================
   SITE-WIDE 3D AMBIENT & iOS SEGMENTED FILTER ENHANCEMENTS
   ========================================================================== */

/* --- Universal 3D Ambient Card Depth & Spotlight Glow --- */
.bento-card,
.media-card,
.member-card,
.music-radar-card,
.discord-spotify-card,
.hall-card,
.timeline-card,
.rule-card,
.feature-card,
.stat-badge,
.ios-sheet-link-card,
.featured-video-box {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.2s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.bento-card::before,
.media-card::before,
.member-card::before,
.music-radar-card::before,
.discord-spotify-card::before,
.hall-card::before,
.timeline-card::before,
.rule-card::before,
.feature-card::before,
.stat-badge::before,
.ios-sheet-link-card::before,
.featured-video-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(168, 85, 247, 0.22),
    rgba(217, 70, 239, 0.08) 40%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.bento-card:hover::before,
.media-card:hover::before,
.member-card:hover::before,
.music-radar-card:hover::before,
.discord-spotify-card:hover::before,
.hall-card:hover::before,
.timeline-card:hover::before,
.rule-card:hover::before,
.feature-card:hover::before,
.stat-badge:hover::before,
.ios-sheet-link-card:hover::before,
.featured-video-box:hover::before {
  opacity: 1;
}

.bento-card > *,
.media-card > *,
.member-card > *,
.music-radar-card > *,
.discord-spotify-card > *,
.hall-card > *,
.timeline-card > *,
.rule-card > *,
.feature-card > *,
.stat-badge > *,
.ios-sheet-link-card > *,
.featured-video-box > * {
  position: relative;
  z-index: 2;
}

/* Touch active micro-compression for iPhone */
@media (max-width: 768px) {
  .bento-card:active,
  .media-card:active,
  .member-card:active,
  .music-radar-card:active,
  .rule-card:active,
  .timeline-card:active {
    transform: scale(0.975);
  }
}

/* --- Global Ambient 3D Canvas (Site-wide Starfield & DNA Mesh) --- */
.global-ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  display: block;
}

/* --- iOS Segmented Control (Filter Pills Bar) --- */
.filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(18, 22, 32, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 5px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-apple);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.filter-pill.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.45);
  transform: scale(1.02);
}

.filter-pill:active {
  transform: scale(0.95);
}

/* ==============================================================================
   SPOTIFY DATA ANALYTICS & AESTHETIC CHARTS (Wrapped & Personal Analytics)
   ============================================================================== */

.analytics-section-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.analytics-section-desc {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* KPI Summary Badges */
.chart-kpi-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.chart-kpi-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: all 0.25s ease;
}

.chart-kpi-badge:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.chart-kpi-badge-label {
  font-size: 0.72rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-kpi-badge-value {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.2;
}

.chart-kpi-badge-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Artist vs Minutes Bento Chart */
.artist-minutes-chart {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.artist-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  transition: all 0.22s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.artist-bar-row:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.artist-bar-rank {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-tertiary);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.artist-bar-rank.top-1 {
  color: #f59e0b;
}

.artist-bar-rank.top-2 {
  color: #94a3b8;
}

.artist-bar-rank.top-3 {
  color: #d97706;
}

.artist-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 190px;
  min-width: 140px;
  flex-shrink: 0;
}

.artist-bar-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-pure);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-bar-track-wrap {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.artist-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.artist-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.artist-bar-meta {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
  width: 140px;
  flex-shrink: 0;
  text-align: right;
}

.artist-bar-mins {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.artist-bar-plays {
  font-size: 0.74rem;
  color: var(--text-tertiary);
}

.artist-bar-pct {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-left: 4px;
}

/* Hours & Songs Chart */
.hours-songs-chart-wrap {
  position: relative;
  width: 100%;
  min-height: 240px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.legend-dot.hours {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.legend-dot.songs {
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

/* Tooltip */
.analytics-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 20, 30, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -100%);
  margin-top: -10px;
  white-space: nowrap;
  z-index: 50;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

@media (max-width: 640px) {
  .artist-bar-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
  .artist-bar-info {
    width: 100%;
  }
  .artist-bar-track-wrap {
    width: 100%;
    order: 3;
  }
  .artist-bar-meta {
    width: auto;
    margin-left: auto;
    order: 2;
  }
  .chart-kpi-summary-grid {
    grid-template-columns: 1fr;
  }
}

