/* ==========================================================================
   Mega Man Fan Page — css/style.css
   Deep cobalt navy · Dodger blue · Quantico 700 headings · Inter body.
   Advanced CSS: --weapon-color custom property per robot master card;
   CSS :has() boss selector panel on games.html.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Quantico:wght@400;700&family=Inter:wght@400;500;600&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties — base theme
   -------------------------------------------------------------------------- */
:root {
  --bg:            #0a1428;
  --bg-card:       #0f1e3a;
  --bg-alt:        #071020;
  --text:          #e8eef8;
  --text-muted:    #7a9abf;
  --accent:        #1e90ff;
  --accent-dim:    #1270cc;
  --accent-glow:   rgba(30, 144, 255, 0.25);
  --secondary:     #4ab8ff;
  --border:        #1a2d50;
  --border-accent: #1e90ff;
  --danger:        #ff4040;
  --success:       #40c040;
  --weapon-color:  #1e90ff;

  --font-heading:  'Quantico', 'Courier New', monospace;
  --font-body:     'Inter', 'Segoe UI', sans-serif;

  --nav-height:    60px;
  --container-max: 1200px;
  --radius:        4px;
}

/* --------------------------------------------------------------------------
   @keyframes
   -------------------------------------------------------------------------- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50%       { box-shadow: 0 0 20px rgba(30, 144, 255, 0.5); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--secondary); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(7, 16, 32, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.nav-brand:hover { color: var(--secondary); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: block;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--text); background: rgba(30, 144, 255, 0.12); }
.nav-link--active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
  }
  .nav-menu--open { display: flex; }
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: sepia(0.4) brightness(0.35);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 20px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: var(--accent);
  text-shadow: 0 0 40px rgba(30, 144, 255, 0.6);
  margin-bottom: 20px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 700;
}
.hero-stat .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section {
  padding: 64px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 40px;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 12px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 700px;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   Trivia asides & dev quotes
   -------------------------------------------------------------------------- */
aside.trivia {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

aside.trivia strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

blockquote.dev-quote {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.05rem;
}

blockquote.dev-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--secondary);
  opacity: 0.4;
  position: absolute;
  top: 8px;
  left: 12px;
  line-height: 1;
}

blockquote.dev-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Screenshot strip
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.screenshot-strip figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.screenshot-strip img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s;
}

.screenshot-strip figure:hover img { transform: scale(1.04); }

.screenshot-strip figcaption {
  padding: 6px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

@media (max-width: 600px) {
  .screenshot-strip { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Inline images
   -------------------------------------------------------------------------- */
.inline-image {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.inline-image img { width: 100%; max-height: 400px; object-fit: cover; }
.inline-image figcaption {
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.inline-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 600px) {
  .inline-image-pair { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Placeholder (when image can't be loaded)
   -------------------------------------------------------------------------- */
.placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.placeholder--thumb {
  width: 80px;
  height: 80px;
  aspect-ratio: unset;
  flex-shrink: 0;
  font-size: 0.6rem;
}

/* --------------------------------------------------------------------------
   Video embed
   -------------------------------------------------------------------------- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 24px 0;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Lite YouTube facade — clickable poster that defers iframe load until play. */
.lite-youtube {
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.lite-youtube__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lite-youtube__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.18s;
  z-index: 2;
}
.lite-youtube__play:hover,
.lite-youtube__play:focus-visible {
  background: var(--accent);
  transform: scale(1.06);
  outline: none;
}
.lite-youtube__play-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 4px;
}
.lite-youtube--activated {
  cursor: default;
  background-image: none !important;
}

.video-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

/* --------------------------------------------------------------------------
   Robot Master Cards — --weapon-color theming
   -------------------------------------------------------------------------- */
.master-card {
  background: var(--bg-card);
  border: 2px solid var(--weapon-color, var(--border));
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.master-card:hover {
  box-shadow: 0 0 20px color-mix(in srgb, var(--weapon-color, var(--accent)) 35%, transparent);
  transform: translateY(-2px);
}

.master-card__icon {
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--weapon-color, var(--accent)) 20%, transparent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.master-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--weapon-color, var(--accent));
  font-weight: 700;
  letter-spacing: 0.04em;
}

.master-card__weapon {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.master-card__weapon strong { color: var(--text); }

.master-card__order {
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

.master-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

/* --------------------------------------------------------------------------
   Games table / list
   -------------------------------------------------------------------------- */
.games-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.games-table th {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.games-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.games-table tr:hover td { background: rgba(30, 144, 255, 0.05); }

.games-table .thumb-cell {
  width: 90px;
}

.game-thumb {
  width: 80px;
  height: auto;
  border-radius: 2px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s;
}
.game-thumb:hover { transform: scale(1.08); }

.platform-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  font-weight: 700;
}
.platform-badge--nes  { background: rgba(255, 100, 100, 0.2); color: #ff8080; border: 1px solid #ff6060; }
.platform-badge--gb   { background: rgba(100, 200, 100, 0.2); color: #80e080; border: 1px solid #60c060; }
.platform-badge--snes { background: rgba(160, 100, 255, 0.2); color: #c080ff; border: 1px solid #a060e0; }
.platform-badge--gcn  { background: rgba(100, 150, 255, 0.2); color: #80aaff; border: 1px solid #6090dd; }
.platform-badge--col  { background: rgba(200, 150, 80, 0.2); color: #e0b860; border: 1px solid #c09840; }

/* --------------------------------------------------------------------------
   Platform filter
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 6px 16px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   CSS :has() boss selector panel (games.html)
   -------------------------------------------------------------------------- */
.game-entry {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 16px;
  transition: border-color 0.2s;
  overflow: hidden;
}

.game-entry:has(> input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.game-entry > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.game-entry-label {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 16px;
  cursor: pointer;
  align-items: center;
}

@media (max-width: 480px) {
  .game-entry-label { grid-template-columns: 1fr; }
}

.boss-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

/* Revealed when :has() supported */
.game-entry:has(> input:checked) .boss-grid {
  display: grid;
}

/* Fallback: always visible if :has() not supported */
@supports not selector(:has(*)) {
  .boss-grid { display: grid; }
}

.boss-chip {
  background: var(--bg-alt);
  border: 1px solid var(--weapon-color, var(--border));
  border-radius: 2px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--weapon-color, var(--text));
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Gallery grid
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gallery-item:hover,
.gallery-item:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

/* Robot master art cards in gallery use --weapon-color */
.gallery-item--master {
  border-color: var(--weapon-color, var(--border));
}

.gallery-item--master figcaption {
  color: var(--weapon-color, var(--text-muted));
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slide-in 0.2s ease;
}

.lb-inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.lb-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border);
}

.lb-close {
  align-self: flex-end;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.82rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
}

.lb-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Flagship teaser card
   -------------------------------------------------------------------------- */
.flagship-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  animation: pulse-glow 3s ease-in-out infinite;
  text-decoration: none;
  transition: transform 0.2s;
}

.flagship-card:hover {
  transform: translateY(-3px);
  color: inherit;
}

.flagship-card__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.flagship-card__title {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 10px;
}

.flagship-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.flagship-card__cta {
  flex-shrink: 0;
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  border-radius: 2px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .flagship-card { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   People / bio
   -------------------------------------------------------------------------- */
.person-section {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
  margin: 48px 0;
}

@media (max-width: 640px) {
  .person-section { grid-template-columns: 1fr; }
}

.person-portrait {
  width: 100%;
  border-radius: 4px;
  border: 2px solid var(--accent);
}

.person-portrait-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.person-portrait-wrap .person-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   History era sections
   -------------------------------------------------------------------------- */
.era-section {
  padding: 48px 0;
}

.era-section + .era-section {
  border-top: 1px solid var(--border);
}

.era-heading {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.era-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 2px;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Music section
   -------------------------------------------------------------------------- */
.composer-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.composer-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.composer-header img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.composer-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.composer-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Videos page
   -------------------------------------------------------------------------- */
.video-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.video-section-header {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .video-section-header { grid-template-columns: 1fr; }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-card__meta {
  padding: 12px 16px;
}

.video-card__category {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.video-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.video-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Resources page
   -------------------------------------------------------------------------- */
.resource-group {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.resource-group h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.resource-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.resource-list li::before {
  content: '›';
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.resource-list a {
  color: var(--text);
  font-size: 0.9rem;
}
.resource-list a:hover { color: var(--accent); }

.resource-list .desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Weapon sidebar (flagship)
   -------------------------------------------------------------------------- */
.weapon-chain {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 24px 0;
  font-size: 0.82rem;
}

.weapon-chain-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.weapon-chain-row .arrow { color: var(--accent); }
.weapon-chain-row .master { font-family: var(--font-heading); color: var(--text); font-weight: 700; }
.weapon-chain-row .weapon { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.font-heading { font-family: var(--font-heading); }

.btn {
  display: inline-block;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); color: #fff; }

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
