/* ==========================================================================
   K-POP UNIVERSE - Unified Stylesheet (Responsive & Modern K-Pop Aesthetic)
   ========================================================================== */

:root {
  /* Core Base Colors */
  --bg-primary: #0b0c13;
  --bg-secondary: #121422;
  --bg-surface: #171a2e;
  --bg-card: #1c2038;
  --bg-card-hover: #242947;
  --border-color: #2b3152;
  --border-glow: rgba(255, 45, 133, 0.35);

  /* Typography Colors */
  --text-primary: #f5f7ff;
  --text-secondary: #a3a9cc;
  --text-muted: #6a7196;

  /* Universal Accents */
  --accent-pink: #ff2a85;
  --accent-purple: #8b5cf6;
  --accent-cyan: #00f2fe;
  --accent-gold: #ffb800;
  --accent-lime: #10b981;

  /* Theme Defaults (Overridden per page) */
  --theme-accent: var(--accent-pink);
  --theme-glow: rgba(255, 42, 133, 0.4);
  --theme-gradient: linear-gradient(135deg, #ff2a85 0%, #8b5cf6 100%);
  --theme-soft-bg: rgba(255, 42, 133, 0.08);

  /* Layout Tokens */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1240px;
  --border-radius-sm: 8px;
  --border-radius: 14px;
  --border-radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --header-height: 74px;
}

/* --------------------------------------------------------------------------
   Page-Specific Group Themes
   -------------------------------------------------------------------------- */
body.theme-bts {
  --theme-accent: #9d4edd;
  --theme-glow: rgba(157, 78, 221, 0.45);
  --theme-gradient: linear-gradient(135deg, #9d4edd 0%, #5a189a 50%, #ff4d8d 100%);
  --theme-soft-bg: rgba(157, 78, 221, 0.1);
  --border-glow: rgba(157, 78, 221, 0.4);
}

body.theme-blackpink {
  --theme-accent: #ff2d7a;
  --theme-glow: rgba(255, 45, 122, 0.5);
  --theme-gradient: linear-gradient(135deg, #ff2d7a 0%, #ff0844 50%, #1e1e1e 100%);
  --theme-soft-bg: rgba(255, 45, 122, 0.1);
  --border-glow: rgba(255, 45, 122, 0.4);
}

body.theme-straykids {
  --theme-accent: #ff3b30;
  --theme-glow: rgba(255, 59, 48, 0.45);
  --theme-gradient: linear-gradient(135deg, #ff3b30 0%, #ff9500 50%, #b80000 100%);
  --theme-soft-bg: rgba(255, 59, 48, 0.1);
  --border-glow: rgba(255, 59, 48, 0.4);
}

body.theme-twice {
  --theme-accent: #ff6584;
  --theme-glow: rgba(255, 101, 132, 0.45);
  --theme-gradient: linear-gradient(135deg, #ff6584 0%, #ff8a00 50%, #ff4b72 100%);
  --theme-soft-bg: rgba(255, 101, 132, 0.1);
  --border-glow: rgba(255, 101, 132, 0.4);
}

body.theme-aespa {
  --theme-accent: #00f2fe;
  --theme-glow: rgba(0, 242, 254, 0.45);
  --theme-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #9b51e0 100%);
  --theme-soft-bg: rgba(0, 242, 254, 0.1);
  --border-glow: rgba(0, 242, 254, 0.4);
}

body.theme-generations {
  --theme-accent: #10b981;
  --theme-glow: rgba(16, 185, 129, 0.45);
  --theme-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #8b5cf6 100%);
  --theme-soft-bg: rgba(16, 185, 129, 0.1);
  --border-glow: rgba(16, 185, 129, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(11, 12, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(11, 12, 19, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
}

.brand-logo:hover {
  opacity: 0.9;
}

.logo-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--theme-gradient);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--theme-glow);
}

.brand-accent {
  color: var(--theme-accent);
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.2rem 0.4rem;
  gap: 0.25rem;
  margin-left: 0.6rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: var(--theme-gradient);
  color: #fff;
  box-shadow: 0 0 10px var(--theme-glow);
}

/* Bilingual Display Control */
body[data-lang="en"] .lang-ru {
  display: none !important;
}

body[data-lang="ru"] .lang-en {
  display: none !important;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: var(--theme-soft-bg);
}

.nav-link.active {
  border-bottom: 2px solid var(--theme-accent);
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: '▾';
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: translateY(2px);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 220px;
  padding: 0.6rem 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.nav-dropdown-menu li a:hover {
  color: #fff;
  background: var(--theme-soft-bg);
  padding-left: 1.3rem;
}

.nav-badge-icon {
  font-size: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: #fff;
  font-size: 1.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: var(--bg-surface);
  border-color: var(--theme-accent);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 50% 20%, rgba(35, 25, 65, 0.45) 0%, var(--bg-primary) 70%);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 350px;
  background: var(--theme-glow);
  filter: blur(120px);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Audio Visualizer Bars Animation */
.visualizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.visualizer-bar {
  width: 3px;
  background: var(--theme-accent);
  border-radius: 1px;
  animation: equalize 1s infinite alternate ease-in-out;
}

.visualizer-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.visualizer-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.visualizer-bar:nth-child(3) { height: 9px; animation-delay: 0.2s; }
.visualizer-bar:nth-child(4) { height: 12px; animation-delay: 0.4s; }
.visualizer-bar:nth-child(5) { height: 5px; animation-delay: 0.15s; }

@keyframes equalize {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--theme-gradient);
  color: #fff;
  box-shadow: 0 4px 18px var(--theme-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--theme-glow);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--theme-accent);
  transform: translateY(-2px);
}

.btn-cheer {
  position: relative;
  background: var(--theme-soft-bg);
  border: 1px solid var(--theme-accent);
  color: var(--theme-accent);
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cheer:hover {
  background: var(--theme-accent);
  color: #fff;
  box-shadow: 0 0 20px var(--theme-glow);
}

/* --------------------------------------------------------------------------
   Key Stats Section
   -------------------------------------------------------------------------- */
.stats-banner {
  padding: 2.2rem 0;
  background: rgba(18, 20, 34, 0.6);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--theme-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.stat-number .highlight {
  color: var(--theme-accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Section Layouts
   -------------------------------------------------------------------------- */
.section {
  padding: 4.5rem 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--theme-accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

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

/* --------------------------------------------------------------------------
   Article & Editorial Content
   -------------------------------------------------------------------------- */
.article-wrap {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.8rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.article-body h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.article-body h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--theme-accent);
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.6rem;
  margin-bottom: 0.7rem;
}

.article-body p {
  color: var(--text-secondary);
  font-size: 1.03rem;
  margin-bottom: 1.3rem;
  line-height: 1.75;
}

.article-body ul, 
.article-body ol {
  margin: 1.2rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.article-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.article-callout {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--theme-soft-bg);
  border-left: 4px solid var(--theme-accent);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-size: 0.98rem;
  color: var(--text-primary);
}

.article-callout strong {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Group Showcase Grid (Index)
   -------------------------------------------------------------------------- */
.group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

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

.group-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.group-card.bts:hover { border-color: #9d4edd; box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3); }
.group-card.blackpink:hover { border-color: #ff2d7a; box-shadow: 0 10px 30px rgba(255, 45, 122, 0.3); }
.group-card.straykids:hover { border-color: #ff3b30; box-shadow: 0 10px 30px rgba(255, 59, 48, 0.3); }
.group-card.twice:hover { border-color: #ff6584; box-shadow: 0 10px 30px rgba(255, 101, 132, 0.3); }
.group-card.aespa:hover { border-color: #00f2fe; box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3); }

.card-header-visual {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background-size: cover;
  background-position: center;
}

.card-header-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 19, 0.2) 0%, rgba(23, 26, 46, 0.95) 100%);
}

.card-header-visual.bts-banner {
  background: linear-gradient(135deg, #3c096c 0%, #10002b 100%);
}
.card-header-visual.blackpink-banner {
  background: linear-gradient(135deg, #a00045 0%, #14010a 100%);
}
.card-header-visual.straykids-banner {
  background: linear-gradient(135deg, #b7094c 0%, #1a0505 100%);
}
.card-header-visual.twice-banner {
  background: linear-gradient(135deg, #f72585 0%, #3a0ca3 100%);
}
.card-header-visual.aespa-banner {
  background: linear-gradient(135deg, #0f4c81 0%, #2e0854 100%);
}

.card-badge {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-title-group {
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.card-title-group h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.card-hangul {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.card-link:hover {
  color: var(--theme-accent);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Group Dedicated Page Profiles
   -------------------------------------------------------------------------- */
.profile-hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at 50% 15%, var(--theme-soft-bg) 0%, var(--bg-primary) 70%);
  border-bottom: 1px solid var(--border-color);
}

.profile-header-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.profile-info h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  line-height: 1.1;
}

.profile-hangul {
  font-size: 1.25rem;
  color: var(--theme-accent);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.profile-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.8rem;
}

.meta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.meta-box-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-color);
}

.meta-list {
  list-style: none;
}

.meta-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
}

.meta-list li:last-child {
  border-bottom: none;
}

.meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.meta-value {
  color: #fff;
  font-weight: 600;
  text-align: right;
}

/* Members Grid */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.member-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.3rem;
  text-align: center;
  transition: var(--transition);
}

.member-card:hover {
  border-color: var(--theme-accent);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.member-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--theme-soft-bg);
  border: 2px solid var(--theme-accent);
  box-shadow: 0 0 15px var(--theme-glow);
}

.member-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.member-hangul {
  font-size: 0.85rem;
  color: var(--theme-accent);
  margin-bottom: 0.4rem;
}

.member-role {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   YouTube Video Showcase & Responsive Player
   -------------------------------------------------------------------------- */
.video-section {
  padding: 4rem 0;
  background: rgba(14, 16, 26, 0.8);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.video-card:hover {
  border-color: var(--theme-accent);
  box-shadow: 0 15px 35px var(--theme-glow);
  transform: translateY(-4px);
}

.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 1.4rem;
}

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

.video-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--theme-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-views {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.video-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

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

.video-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-color);
}

.btn-video-direct {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 0, 0, 0.4);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  transition: var(--transition);
}

.btn-video-direct:hover {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.5);
  transform: translateY(-2px);
}

.video-protocol-notice {
  margin: 1.8rem auto 2.5rem;
  max-width: 820px;
  background: rgba(255, 184, 0, 0.09);
  border: 1px solid rgba(255, 184, 0, 0.35);
  border-radius: var(--border-radius);
  padding: 1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.92rem;
  color: #ffd15c;
  line-height: 1.55;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.video-protocol-notice .notice-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.video-protocol-notice code {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #fff;
  font-family: monospace;
}

.video-protocol-notice a {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}

.video-protocol-notice strong {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Generations Timeline (generations.html)
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: linear-gradient(180deg, #10b981 0%, #06b6d4 40%, #8b5cf6 75%, #ff2a85 100%);
  border-radius: 2px;
}

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

.timeline-dot {
  position: absolute;
  left: 17px;
  top: 6px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--theme-accent);
  box-shadow: 0 0 12px var(--theme-glow);
  z-index: 2;
}

.timeline-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.8rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--theme-accent);
  transform: translateX(4px);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--theme-gradient);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

.timeline-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.timeline-bands {
  font-size: 0.88rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.7rem 1rem;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--theme-accent);
}

/* --------------------------------------------------------------------------
   Glossary Search & Grid
   -------------------------------------------------------------------------- */
.glossary-search-wrap {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.glossary-search-input {
  width: 100%;
  padding: 0.9rem 1.4rem;
  padding-left: 2.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.glossary-search-input:focus {
  border-color: var(--theme-accent);
  box-shadow: 0 0 15px var(--theme-glow);
}

.glossary-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.3rem;
}

.glossary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.4rem;
  transition: var(--transition);
}

.glossary-card:hover {
  border-color: var(--theme-accent);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.glossary-term {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.glossary-term span {
  font-size: 0.85rem;
  color: var(--theme-accent);
  font-weight: 600;
}

.glossary-meaning {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: #07080c;
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 2rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand h4 {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 400px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-col a:hover {
  color: var(--theme-accent);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Floating Lightstick Cheer Feedback */
.cheer-particle {
  position: fixed;
  pointer-events: none;
  font-size: 1.5rem;
  z-index: 9999;
  animation: floatUp 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -60px) scale(1.3) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -120px) scale(1) rotate(-15deg);
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-header-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 12, 19, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.2rem;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    width: 100%;
    margin-top: 0.5rem;
    background: var(--bg-card);
    box-shadow: none;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .article-wrap {
    padding: 1.8rem 1.2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}
