/* ==========================================================================
   有名歌手の生い立ちアーカイブ — SINGER ORIGINS
   Editorial Vinyl & Liner-Notes Design System (Light / Dark)
   ========================================================================== */

:root {
  --bg: #f6f1e7;
  --bg-elevated: #fcf9f3;
  --bg-muted: #ede5d8;
  --bg-panel: #f2eadc;

  --ink: #1b1714;
  --ink-soft: #4a413a;
  --ink-muted: #766a5f;

  --border: rgba(27, 23, 20, 0.12);
  --border-strong: rgba(27, 23, 20, 0.24);

  --accent: #b83b28;
  --accent-hover: #962e1e;
  --accent-soft: rgba(184, 59, 40, 0.1);
  --accent-ink: #ffffff;

  --gold: #9a6f28;
  --gold-soft: rgba(154, 111, 40, 0.12);

  --teal: #245d59;
  --teal-soft: rgba(36, 93, 89, 0.11);

  --indigo: #2c4362;
  --olive: #566335;
  --sienna: #8e4b2b;

  --live-green: #2c7a4b;
  --warn-amber: #b36b18;

  --shadow-sm: 0 2px 8px rgba(27, 23, 20, 0.05);
  --shadow-md: 0 10px 28px rgba(27, 23, 20, 0.08);
  --shadow-lg: 0 24px 60px rgba(20, 16, 12, 0.18);

  --font-serif: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --font-display: "Cormorant Garamond", "Shippori Mincho", Georgia, serif;
  --font-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --container: 1180px;
  --header-h: 68px;
}

[data-theme="dark"] {
  --bg: #13110f;
  --bg-elevated: #1c1815;
  --bg-muted: #26201c;
  --bg-panel: #191512;

  --ink: #f3ece2;
  --ink-soft: #c7bdb0;
  --ink-muted: #94887a;

  --border: rgba(243, 236, 226, 0.12);
  --border-strong: rgba(243, 236, 226, 0.25);

  --accent: #df664f;
  --accent-hover: #ee7c66;
  --accent-soft: rgba(223, 102, 79, 0.16);
  --accent-ink: #171210;

  --gold: #d2a85c;
  --gold-soft: rgba(210, 168, 92, 0.15);

  --teal: #62aba5;
  --teal-soft: rgba(98, 171, 165, 0.15);

  --indigo: #6e92be;
  --olive: #98ab66;
  --sienna: #c97f57;

  --live-green: #4fb879;
  --warn-amber: #e2a44c;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(154, 111, 40, 0.06), transparent 60%),
    radial-gradient(ellipse 75% 45% at 92% 8%, rgba(184, 59, 40, 0.045), transparent 55%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 90% 55% at 12% 0%, rgba(210, 168, 92, 0.07), transparent 60%),
    radial-gradient(ellipse 75% 45% at 92% 8%, rgba(223, 102, 79, 0.055), transparent 55%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 3px 10px rgba(184, 59, 40, 0.22);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 16px rgba(184, 59, 40, 0.28);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--ink-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--ink);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink-soft);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.icon-btn:hover {
  background: var(--bg-muted);
  color: var(--ink);
  border-color: var(--border-strong);
}

/* ==========================================================================
   Sticky Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(246, 241, 231, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .site-header {
  background: rgba(19, 17, 15, 0.88);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1b1714;
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  position: relative;
}

.brand-mark::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--accent), 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.brand-mark-hole {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #faf7f2;
  z-index: 2;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--bg-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 12.5px;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.header-counter:hover {
  border-color: var(--border-strong);
  background: var(--bg-muted);
  color: var(--ink);
}

.header-counter-num {
  font-weight: 700;
  color: var(--ink);
}

.header-pr-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.header-pr-pill:hover {
  border-color: var(--gold);
  background: var(--bg-muted);
  transform: translateY(-1px);
}

.header-pr-logo {
  border-radius: 50%;
  object-fit: cover;
}

.pr-mini-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--gold-soft);
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Hero Section (Editorial Magazine Split)
   ========================================================================== */

.hero {
  padding: 48px 0 44px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 44px;
  align-items: center;
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.1vw, 48px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
}

.hero-lead {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.hero-stat-label {
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 2px;
}

.hero-stat-unit {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 2px;
}

.hero-visual-frame {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.hero-visual-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
}

.hero-visual-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 2px;
  font-size: 12px;
  color: var(--ink-muted);
}

.hero-visual-caption strong {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* ==========================================================================
   Section Common Headers
   ========================================================================== */

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.8vw, 31px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 64ch;
}

/* ==========================================================================
   Archive Controls (Search & Multi-Axis Filters)
   ========================================================================== */

.controls-bar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.controls-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  font-size: 13px;
  display: grid;
  place-items: center;
}

.search-clear:hover {
  background: var(--bg-muted);
  color: var(--ink);
}

.select-control {
  height: 42px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-size: 13.5px;
  color: var(--ink);
  min-width: 168px;
}

.filter-rows {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

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

.filter-group-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  min-width: 68px;
  letter-spacing: 0.04em;
}

.chip {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--bg-muted);
}

.chip.is-active {
  background: var(--ink);
  color: var(--bg-elevated);
  border-color: var(--ink);
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.results-count strong {
  color: var(--ink);
  font-family: var(--font-mono);
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Singer Biography Cards (Vinyl Jacket Aesthetic)
   ========================================================================== */

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

.singer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
  text-align: left;
}

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

.singer-card.is-read::after {
  content: "読了";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--teal-soft);
  color: var(--teal);
  letter-spacing: 0.04em;
}

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

/* Vinyl Sleeve + Sliding Disc Micro-interaction */
.vinyl-sleeve-wrap {
  position: relative;
  width: 66px;
  height: 54px;
  flex-shrink: 0;
}

.vinyl-disc {
  position: absolute;
  top: 3px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--disc-label, var(--accent)) 0 28%, #1a1715 29% 35%, #2b2522 36% 37%, #1a1715 38% 58%, #2d2724 59% 60%, #161311 61% 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] .vinyl-disc {
  box-shadow: inset 0 0 0 1px rgba(243, 236, 226, 0.16), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.vinyl-disc::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f6f1e7;
}

.singer-card:hover .vinyl-disc {
  transform: translateX(8px) rotate(48deg);
}

.vinyl-sleeve {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 54px;
  border-radius: 5px;
  background: var(--disc-label, var(--accent));
  color: #faf7f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.vinyl-sleeve::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 55%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.vinyl-monogram {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  position: relative;
}

.vinyl-catno {
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.85;
  margin-top: 4px;
  letter-spacing: 0.06em;
  position: relative;
}

.hue-vermilion { --disc-label: #b83b28; }
.hue-gold { --disc-label: #9a6f28; }
.hue-teal { --disc-label: #245d59; }
.hue-indigo { --disc-label: #2c4362; }
.hue-olive { --disc-label: #566335; }
.hue-sienna { --disc-label: #8e4b2b; }

.card-identity {
  min-width: 0;
  flex: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.card-region-tag {
  font-weight: 700;
  color: var(--gold);
}

.card-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

.card-en {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
  margin: 1px 0 0;
}

.card-headline {
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
  flex: 1;
}

.card-songs {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0 0 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-songs strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.card-roots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.root-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-muted);
  color: var(--ink-soft);
  font-weight: 500;
}

.card-read-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  transition: transform 0.16s ease;
}

.singer-card:hover .card-read-link {
  transform: translateX(3px);
}

.empty-state {
  text-align: center;
  padding: 54px 24px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.empty-state h3 {
  font-family: var(--font-serif);
  margin: 0 0 8px;
}

.empty-state p {
  color: var(--ink-muted);
  margin: 0 0 18px;
}

/* ==========================================================================
   Mid-Page Native Sponsor Banner (HisatorNotebook)
   ========================================================================== */

.sponsor-section {
  padding: 20px 0 32px;
}

.sponsor-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 26px 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.sponsor-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.sponsor-logo {
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.sponsor-pr-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--gold);
  letter-spacing: 0.06em;
}

.sponsor-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 6px;
}

.sponsor-title {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 10px;
}

.sponsor-desc {
  font-size: 13.8px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 13px;
}

.sponsor-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.sponsor-features li {
  position: relative;
  padding-left: 14px;
}

.sponsor-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.sponsor-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sponsor-platform-note {
  font-size: 11.5px;
  color: var(--ink-muted);
  text-align: right;
}

/* ==========================================================================
   Interactive Timeline Section
   ========================================================================== */

.era-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.era-tab {
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.16s ease;
}

.era-tab:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.era-tab.is-active {
  background: var(--ink);
  color: var(--bg-elevated);
  border-color: var(--ink);
}

.era-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.era-banner-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}

.era-banner-desc {
  margin: 0;
  font-size: 13.8px;
  color: var(--ink-soft);
}

.timeline-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 26px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-strong);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  text-align: left;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2.5px solid var(--accent);
}

.timeline-item:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
  box-shadow: var(--shadow-sm);
}

.timeline-years {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}

.timeline-debut {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
}

.timeline-main-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 3px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-place {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}

.timeline-summary {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.timeline-arrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* ==========================================================================
   Roots Archetypes (Crossover Matrix)
   ========================================================================== */

.roots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.root-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.root-card-num {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
}

.root-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.root-card-desc {
  font-size: 13.8px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.72;
}

.root-singer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.root-singer-btn {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.root-singer-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ==========================================================================
   Biography Quiz
   ========================================================================== */

.quiz-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  max-width: 820px;
}

.quiz-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.quiz-progress-bar {
  height: 5px;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
  margin-bottom: 22px;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.28s ease;
}

.quiz-question {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  line-height: 1.65;
  margin: 0 0 20px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 18px;
}

.quiz-opt {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.16s ease;
}

.quiz-opt:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--bg-muted);
}

.quiz-opt:disabled {
  cursor: default;
}

.quiz-opt.is-correct {
  border-color: var(--live-green);
  background: rgba(44, 122, 75, 0.12);
  color: var(--ink);
}

.quiz-opt.is-wrong {
  border-color: var(--accent);
  background: var(--accent-soft);
  opacity: 0.78;
}

.quiz-opt-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
}

.quiz-feedback {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.72;
}

.quiz-feedback-head {
  font-weight: 700;
  margin-bottom: 6px;
}

.quiz-feedback-head.ok { color: var(--live-green); }
.quiz-feedback-head.ng { color: var(--accent); }

.quiz-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.quiz-result-score {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin: 8px 0;
}

.quiz-result-rank {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 10px;
}

/* ==========================================================================
   Footer (Visitor Counter Card + HisatorNotebook Footer Ad)
   ========================================================================== */

.site-footer {
  padding: 54px 0 36px;
  background: var(--bg-panel);
  border-top: 1px solid var(--border-strong);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 22px;
  margin-bottom: 32px;
}

.visitor-card,
.footer-pr-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.vc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.vc-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}

.vc-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-muted);
}

.vc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-green);
  flex-shrink: 0;
}

.vc-dot.is-fallback {
  background: var(--warn-amber);
}

.vc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.vc-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.vc-stat-label {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.vc-stat-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.vc-stat-unit {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: 3px;
}

.vc-footnote {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.65;
}

.footer-pr-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-pr-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-pr-icon {
  border-radius: 50%;
}

.footer-pr-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  margin: 3px 0 0;
}

.footer-pr-desc {
  font-size: 13.2px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.72;
  flex: 1;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ==========================================================================
   Biography Detail Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 12, 10, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.modal-head-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.modal-seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--disc-label, var(--accent));
  color: #faf7f2;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.modal-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 4px;
}

.modal-code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.modal-sub {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink-soft);
  font-size: 16px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.modal-close-btn:hover {
  background: var(--bg-muted);
  color: var(--ink);
}

.modal-body {
  padding: 24px 26px 26px;
  overflow-y: auto;
}

.modal-meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.modal-meta-box {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
}

.modal-meta-k {
  font-size: 11px;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.modal-meta-v {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.modal-quote {
  margin: 0 0 22px;
  padding: 15px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.modal-block {
  margin-bottom: 22px;
}

.modal-block h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.modal-block-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--bg-muted);
  color: var(--gold);
}

.modal-block p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.modal-songs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.song-chip {
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--ink);
}

.modal-milestones {
  list-style: none;
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-milestones li {
  position: relative;
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.modal-milestones li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.milestone-year {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  margin-right: 8px;
}

.modal-trivia {
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid rgba(154, 111, 40, 0.25);
  margin-bottom: 22px;
  font-size: 13.8px;
  line-height: 1.72;
  color: var(--ink);
}

.modal-trivia strong {
  display: block;
  font-size: 12.5px;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.modal-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.modal-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn.is-toggled {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(18px);
  z-index: 120;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg-elevated);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .singer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sponsor-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sponsor-cta {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  .sponsor-platform-note {
    text-align: left;
  }

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

@media (max-width: 820px) {
  .site-nav {
    display: none;
  }

  .controls-top {
    grid-template-columns: 1fr;
  }

  .select-control {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline-arrow {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 16px;
  }

  .header-pr-name {
    display: none;
  }

  .header-counter-label {
    display: none;
  }

  .hero {
    padding: 32px 0 32px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 46px 0;
  }

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

  .sponsor-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .sponsor-icon-col {
    flex-direction: row;
    justify-content: flex-start;
  }

  .quiz-shell {
    padding: 20px 18px;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

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

  .modal-backdrop {
    padding: 10px;
  }

  .modal-header,
  .modal-body {
    padding: 16px 18px;
  }

  .modal-meta-strip {
    grid-template-columns: 1fr;
  }
}

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