/* ══════════════════════════════════════════════════════════════
   VINYL COLLECTION — Mobile-first Design System
══════════════════════════════════════════════════════════════ */

:root {
  --ink:   #0f0f0f;
  --paper: #ffffff;
  --linen: #f4f3f1;
  --linen2:#eae9e7;
  --sand:  #d5d0c9;
  --muted: #8a8a8a;
  --warm:  #5e5b58;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max-w: 1280px;
  --nav-h: 52px;
  --pad-x: 18px;   /* ← identical on both sides, mobile */
  --ease:  0.2s ease;
}
@media (min-width: 768px) { :root { --pad-x: 48px; } }

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;    /* no horizontal scroll at any level */
}
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  /* smart-nav: slide up/down */
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  width: 100%;
}
.nav.nav-hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  height: 100%;
  display: flex; align-items: center;
  padding: 0 var(--pad-x); gap: 6px;
}
.nav-logo { display: flex; align-items: center; margin-right: auto; }
.nav-logo-img { height: 22px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 2px; }
.nav-pill {
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: .06em;
  color: var(--muted);
  transition: background var(--ease), color var(--ease);
  white-space: nowrap;
}
.nav-pill:hover { background: var(--linen); color: var(--ink); }
.nav-pill.active { background: var(--linen2); color: var(--ink); }
.nav-update {
  margin-left: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  white-space: nowrap;
  transition: opacity var(--ease);
}
.nav-update:hover { opacity: .72; }
@media (max-width: 480px) {
  .nav-links { gap: 1px; }
  .nav-pill  { padding: 5px 9px; font-size: 10px; }
  .nav-update { padding: 6px 10px; font-size: 10px; margin-left: 6px; }
}

/* ── SYNC BANNER ─────────────────────────────────────────────────────────── */
.sync-banner {
  display: none; text-align: center; padding: 8px;
  background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 500; letter-spacing: .08em;
}
.sync-banner.visible { display: block; }

/* ── PAGE SHELL ──────────────────────────────────────────────────────────── */
.main { min-height: calc(100vh - var(--nav-h)); width: 100%; overflow-x: hidden; }
.page-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  width: 100%;
}
.home-section { padding: 48px 0; }
.home-section + .home-section { padding-top: 0; }
.block-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--muted);
  margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════════════
   HERO
   Mobile  : black, single column, tight
   Desktop : white, 2-column grid
══════════════════════════════════════════════════════════════ */
.hero-section {
  background: #0f0f0f;
  width: 100%;
  overflow: hidden;    /* kill any text/child overflow */
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--pad-x) 36px;
  width: 100%;
  display: grid;
  grid-template-areas:
    "text"
    "visual"
    "meta";
  gap: 28px;
  /* colour context for dark mode */
  --fg:         #ffffff;
  --fg-muted:   rgba(255,255,255,.4);
  --fg-desc:    rgba(255,255,255,.52);
  --acc-border: rgba(255,255,255,.1);
  --acc-key:    rgba(255,255,255,.3);
  --acc-val:    rgba(255,255,255,.82);
}

.hero-text   { grid-area: text; min-width: 0; }
.hero-visual { grid-area: visual; min-width: 0; }
.hero-meta   { grid-area: meta; min-width: 0; }

/* Desktop: white, 2-column */
@media (min-width: 900px) {
  .hero-section { background: var(--paper); }
  .hero-grid {
    grid-template-columns: 1fr 420px;
    grid-template-areas:
      "text   visual"
      "meta   visual";
    gap: 0 64px;
    padding-top: 72px;
    padding-bottom: 64px;
    align-items: start;
    --fg:         var(--ink);
    --fg-muted:   var(--muted);
    --fg-desc:    var(--warm);
    --acc-border: rgba(0,0,0,.09);
    --acc-key:    var(--muted);
    --acc-val:    var(--ink);
  }
}

/* Hero text */
.hero-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  color: var(--fg-muted); margin-bottom: 16px;
}
.hero-display {
  display: flex; flex-direction: column;
  /* clamp so "COLLECTION" never overflows phone screen */
  font-size: clamp(44px, 13vw, 108px);
  font-weight: 700; line-height: .9; letter-spacing: -.04em;
  color: var(--fg);
  margin-bottom: 18px;
  overflow: hidden;   /* safety net */
}
@media (min-width: 900px) {
  .hero-display { font-size: clamp(52px, 8vw, 100px); }
}
.hero-desc {
  font-size: 14px; color: var(--fg-desc); line-height: 1.7;
  max-width: 100%;   /* don't let it overflow */
}

/* MY FAVORITE ALBUM label (mobile only) */
.hero-fav-label {
  font-size: 9px; font-weight: 800; letter-spacing: .2em;
  color: rgba(255,255,255,.32);
  margin-bottom: 8px; display: block; text-transform: uppercase;
}
@media (min-width: 900px) { .hero-fav-label { display: none; } }

/* Progress bar */
.hero-progress-wrap {
  height: 2px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
  margin-bottom: 10px;
}
@media (min-width: 900px) {
  .hero-progress-wrap { background: rgba(0,0,0,.12); }
}
.hero-progress-fill {
  height: 100%;
  background: rgba(255,255,255,.7);
  width: 0%;
  /* transition managed by JS */
}
@media (min-width: 900px) {
  .hero-progress-fill { background: var(--ink); }
}

/* Accordion (colour from CSS vars, works in dark/light) */
.accordion-group { display: flex; flex-direction: column; }
.accordion { border-top: 1px solid var(--acc-border); }
.accordion:last-child { border-bottom: 1px solid var(--acc-border); }
.accordion-trigger {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0;
  font-size: 13px; font-weight: 500; color: var(--fg);
  cursor: pointer; list-style: none; user-select: none;
}
.accordion-trigger::-webkit-details-marker { display: none; }
.accordion-arrow {
  font-size: 14px; color: var(--fg-muted);
  transition: transform .25s ease; display: inline-block;
}
details[open] .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
  padding: 4px 0 18px;
  font-size: 13px; color: var(--fg-desc); line-height: 1.8;
  display: flex; flex-direction: column; gap: 4px;
}
.stack-list { display: flex; flex-direction: column; gap: 6px; }
.stack-list li { display: flex; gap: 14px; font-size: 12px; }
.stack-key { color: var(--acc-key); min-width: 80px; flex-shrink: 0; }
.stack-val { font-family: var(--mono); font-size: 11px; color: var(--acc-val); }

/* Hero slideshow */
.hero-slides { position: relative; width: 100%; }
.hero-slide  { display: none; cursor: pointer; position: relative; overflow: hidden; }
.hero-slide.active { display: block; }
.hero-cover {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.hero-slide:hover .hero-cover { transform: scale(1.02); }
.hero-cover-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 48px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}
.hcc-artist { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.6); margin-bottom: 3px; }
.hcc-title  { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; }

.hero-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.hero-dot  {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.3);
  transition: background var(--ease), transform var(--ease);
}
.hero-dot.active { background: #fff; transform: scale(1.5); }
@media (min-width: 900px) {
  .hero-dot { background: var(--sand); }
  .hero-dot.active { background: var(--ink); }
}

/* ══════════════════════════════════════════════════════════════
   TODAY'S ALBUM — POPEYE editorial
══════════════════════════════════════════════════════════════ */
.aotd-section {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 28px 0 32px;
  width: 100%; overflow: hidden;
}
.aotd-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.aotd-super {
  font-size: 9px; font-weight: 800; letter-spacing: .22em;
  color: var(--muted); margin-bottom: 4px;
}
.aotd-date {
  font-family: var(--mono);
  font-size: clamp(18px, 4.5vw, 34px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: var(--ink);
}
.aotd-hd-right { text-align: right; }
.aotd-clock {
  font-family: var(--mono);
  font-size: clamp(20px, 5vw, 38px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: var(--ink); margin-bottom: 4px;
}
.aotd-jp { font-size: 11px; color: var(--muted); letter-spacing: .05em; }

.aotd-rule { height: 1px; background: rgba(0,0,0,.1); margin-bottom: 22px; }

.aotd-feature {
  display: flex; gap: 18px;
  cursor: pointer; align-items: flex-start;
  transition: opacity .2s ease;
}
.aotd-feature:hover { opacity: .78; }
.aotd-cover-wrap {
  flex-shrink: 0;
  width: clamp(100px, 26vw, 200px);
  aspect-ratio: 1/1;
  overflow: hidden; background: var(--linen);
}
.aotd-cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aotd-info { flex: 1; min-width: 0; padding-top: 2px; }
.aotd-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .22em;
  color: var(--muted); margin-bottom: 8px;
}
.aotd-title {
  font-size: clamp(18px, 4.5vw, 36px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
  color: var(--ink); margin-bottom: 8px;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical;
}
.aotd-artist { font-size: 13px; color: var(--warm); margin-bottom: 4px; line-height: 1.4; }
.aotd-year   { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 16px; }
.aotd-cta {
  font-size: 11px; color: var(--muted); letter-spacing: .04em;
  display: inline-block;
  border-bottom: 1px solid var(--sand); padding-bottom: 1px;
}
@media (min-width: 640px) {
  .aotd-feature { gap: 28px; }
  .aotd-cover-wrap { width: clamp(130px, 18vw, 210px); }
}

/* ══════════════════════════════════════════════════════════════
   GENRE PILLS
══════════════════════════════════════════════════════════════ */
.genre-section { padding-top: 0; }
.genre-strip { display: flex; flex-wrap: wrap; gap: 7px; }
.genre-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  font-size: 12px; font-weight: 500; color: var(--ink);
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.genre-pill:hover {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
  transform: translateY(-2px);
}
.genre-cnt {
  font-size: 10px; font-family: var(--mono); color: var(--muted);
  padding: 1px 6px; background: var(--linen); border-radius: 999px;
}
.genre-pill:hover .genre-cnt { background: rgba(255,255,255,.15); color: rgba(255,255,255,.7); }

/* ══════════════════════════════════════════════════════════════
   A–Z ARTISTS SECTION
══════════════════════════════════════════════════════════════ */
.az-section { padding-top: 0; }
.az-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; }
.az-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 4px;
  border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink);
  background: transparent; border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.az-btn:hover:not(.az-inactive) { background: var(--linen2); border-color: var(--linen2); }
.az-btn.az-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.az-inactive { color: var(--sand); pointer-events: none; cursor: default; }

.az-group { padding-top: 4px; }
/* centered flex — wraps like A-Z bar, text remains left-aligned */
.az-name-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
}
.az-name-link {
  font-size: 14px; color: var(--ink);
  padding: 7px 10px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
  white-space: nowrap;
  min-width: 130px;
  flex: 0 0 auto;
}
.az-name-link:hover { border-bottom-color: var(--ink); }

/* ══════════════════════════════════════════════════════════════
   ALBUM GRID — identical square cards, always
   Mobile: 2 columns  |  Desktop: 4 columns
══════════════════════════════════════════════════════════════ */
.all-section { padding-top: 0; }
.all-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.all-count { font-size: 11px; font-family: var(--mono); color: var(--muted); }

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* mobile: 2 equal columns */
  gap: 12px 10px;
  width: 100%;
}
@media (min-width: 900px) {
  .album-grid {
    grid-template-columns: repeat(4, 1fr); /* desktop: 4 equal columns */
    gap: 20px 16px;
  }
}

.album-card { cursor: pointer; min-width: 0; }
/* Square via padding-bottom: all images same physical size */
.album-sq {
  position: relative;
  width: 100%;
  padding-bottom: 100%;      /* always 1:1 */
  background: var(--linen);
  overflow: hidden;
  margin-bottom: 7px;
  transition: transform .28s ease;
}
.album-card:hover .album-sq { transform: translateY(-4px); }
.album-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.album-card:hover .album-img { transform: scale(1.04); }
.tag-new {
  position: absolute; top: 6px; left: 6px;
  padding: 2px 6px;
  background: var(--ink); color: var(--paper);
  font-size: 8px; font-weight: 800; letter-spacing: .1em; z-index: 1;
}
.album-name {
  font-size: 11px; font-weight: 500; color: var(--ink);
  line-height: 1.35;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.album-sub {
  font-size: 10px; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Reveal animation */
.reveal-item {
  opacity: 0; transform: translateY(12px);
  transition: opacity .4s ease calc(var(--i, 0) * 28ms),
              transform .4s ease calc(var(--i, 0) * 28ms);
}
.reveal-item.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════════════════════
   ARTISTS PAGE (/artists)
══════════════════════════════════════════════════════════════ */
.artists-page { padding: 56px 0 80px; }
.artist-section { margin-bottom: 44px; }
.artist-section-hd { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.artist-section-letter { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); flex-shrink: 0; }
.artist-section-rule { flex: 1; height: 1px; background: rgba(0,0,0,.09); }
.artist-name-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 10px;
}
@media (min-width: 900px) { .artist-name-grid { grid-template-columns: repeat(4, 1fr); } }
.artist-name-link {
  font-size: 14px; color: var(--ink); padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.artist-name-link:hover { border-bottom-color: var(--ink); }

/* ══════════════════════════════════════════════════════════════
   RELEASES PAGE
══════════════════════════════════════════════════════════════ */
.releases-page { padding: 40px 0 72px; }
.releases-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 10px;
}
.releases-header-left { display: flex; flex-direction: column; gap: 6px; }
.back-link { font-size: 12px; color: var(--muted); transition: color var(--ease); }
.back-link:hover { color: var(--ink); }
.page-heading {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700; letter-spacing: -.02em; color: var(--ink);
}
.releases-count { font-size: 12px; font-family: var(--mono); color: var(--muted); }

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════════ */
.empty-state { padding: 72px 0; text-align: center; }
.empty-title { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.empty-body  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   MODAL — dark, sharp corners
   Mobile : stacked (image top, text below, both scroll together)
   Desktop: side-by-side, left=360×360 square, right=scrollable
══════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  position: relative;
  width: 100%; max-width: 860px;
  background: #0c0c0c;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,.07);
  transform: translateY(20px) scale(.97);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  /* mobile: column, scroll whole box */
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

@media (min-width: 640px) {
  .modal-overlay { padding: 32px; }
  .modal {
    flex-direction: row;
    max-height: none;
    overflow: hidden;
  }
}

/* Close */
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 20;
  width: 28px; height: 28px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease);
}
.modal-close:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ── Left panel: strict 1:1 square ───────────────────────── */
.modal-left {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  /* Mobile: full width, forced square */
  width: 100%;
  /* aspect-ratio is the cleanest; padding-bottom fallback in case */
  aspect-ratio: 1 / 1;
}

/* Desktop: fixed 360×360 */
@media (min-width: 640px) {
  .modal-left {
    width: 360px;
    aspect-ratio: unset;   /* let height be set by right column */
    align-self: stretch;
  }
}

.modal-cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* ── Right panel: scrollable ──────────────────────────────── */
.modal-right {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  color: #fff;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
  /* Mobile: let content determine height, parent clips at max-height */
}
@media (min-width: 640px) {
  .modal-right {
    height: 360px;
    padding: 28px 24px;
  }
}
.modal-right::-webkit-scrollbar { width: 3px; }
.modal-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); }

/* Content */
.modal-content { display: flex; flex-direction: column; gap: 16px; opacity: 0; transition: opacity .3s ease; }
.modal-content.revealed { opacity: 1; }

.modal-artists {
  font-size: 9px; font-weight: 700; letter-spacing: .16em;
  color: rgba(255,255,255,.38);
  display: flex; flex-wrap: wrap; gap: 4px;
}
.modal-artist-link { color: rgba(255,255,255,.38); transition: color var(--ease); }
.modal-artist-link:hover { color: rgba(255,255,255,.85); }
.modal-title { font-size: 18px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
@media (min-width: 640px) { .modal-title { font-size: 20px; } }
.modal-year-country { font-size: 11px; font-family: var(--mono); color: rgba(255,255,255,.28); }
.modal-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.modal-tag {
  padding: 2px 8px; border: 1px solid rgba(255,255,255,.1);
  font-size: 10px; font-weight: 500; color: rgba(255,255,255,.45); letter-spacing: .04em;
}
.modal-section { border-top: 1px solid rgba(255,255,255,.07); padding-top: 12px; }
.modal-section-label {
  font-size: 9px; font-weight: 700; letter-spacing: .16em;
  color: rgba(255,255,255,.22); margin-bottom: 9px;
}
.modal-labels-text { font-size: 11px; color: rgba(255,255,255,.5); line-height: 1.7; display: block; }
.modal-tracklist { display: flex; flex-direction: column; }
.modal-track {
  display: flex; align-items: baseline; gap: 8px;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 12px; color: rgba(255,255,255,.72);
}
.modal-track:last-child { border-bottom: none; }
.track-pos { font-size: 10px; font-family: var(--mono); color: rgba(255,255,255,.22); min-width: 24px; flex-shrink: 0; }
.track-title { flex: 1; line-height: 1.4; }
.track-duration { font-size: 10px; font-family: var(--mono); color: rgba(255,255,255,.22); }
.modal-credit-row { font-size: 11px; color: rgba(255,255,255,.42); padding: 3px 0; line-height: 1.5; }
.modal-credit-role { color: rgba(255,255,255,.22); margin-left: 4px; }

/* ── SKELETON ─────────────────────────────────────────────────────────────── */
.modal-skeleton {
  position: absolute; inset: 0; z-index: 10;
  background: #0c0c0c;
  display: flex; flex-direction: column;
  transition: opacity .3s ease;
}
@media (min-width: 640px) { .modal-skeleton { flex-direction: row; } }
.modal-skeleton.gone { opacity: 0; pointer-events: none; }

.skel-left {
  flex-shrink: 0;
  background: #181818;
  animation: skel 1.8s ease-in-out infinite;
  /* match modal-left exactly */
  width: 100%; aspect-ratio: 1/1;
}
@media (min-width: 640px) {
  .skel-left { width: 360px; aspect-ratio: unset; align-self: stretch; }
}
.skel-right {
  flex: 1; padding: 22px 18px;
  display: flex; flex-direction: column; gap: 11px; justify-content: center;
}
@media (min-width: 640px) { .skel-right { padding: 28px 24px; } }
.skel-line {
  height: 9px; background: #1e1e1e;
  animation: skel 1.8s ease-in-out infinite;
}
.skel-line.w-25 { width: 25%; } .skel-line.w-45 { width: 45%; }
.skel-line.w-55 { width: 55%; } .skel-line.w-60 { width: 60%; }
.skel-line.w-70 { width: 70%; } .skel-line.w-75 { width: 75%; }
.skel-line.h16  { height: 16px; }
.skel-line.d1 { animation-delay: .12s; } .skel-line.d2 { animation-delay: .24s; }
.skel-line.d3 { animation-delay: .36s; } .skel-line.d4 { animation-delay: .48s; }

@keyframes skel {
  0%, 100% { opacity: .22; }
  50%       { opacity: .5;  }
}

/* ══════════════════════════════════════════════════════════════
   HERO SLIDESHOW — crossfade overlay transition
══════════════════════════════════════════════════════════════ */
/* Override previous display:none approach with opacity crossfade */
.hero-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0,0,0,.45), 0 4px 16px rgba(0,0,0,.25);
}
.hero-slide {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity .7s cubic-bezier(.4,0,.2,1);
  display: block !important;  /* override legacy display:none */
  pointer-events: none;       /* 非アクティブなスライドはクリックを受けない(重なりの最前面が誤爆するのを防ぐ) */
  z-index: 1;
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 2; }
.hero-cover {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  /* no scale hover here — handled by cover-caption overlay */
}

/* ══════════════════════════════════════════════════════════════
   GENRE SECTION — breathing room after AOTD
══════════════════════════════════════════════════════════════ */
.genre-section {
  padding-top: 48px !important;   /* override home-section+home-section reset */
}

/* ══════════════════════════════════════════════════════════════
   GENRE PILLS — centered, wrapping
══════════════════════════════════════════════════════════════ */
.genre-strip {
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   A–Z BAR — centered
══════════════════════════════════════════════════════════════ */
.az-bar {
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   ALBUM CARDS — genre tag chips
══════════════════════════════════════════════════════════════ */
.album-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 5px 0 4px;
}
.album-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 2px 6px;
  background: var(--linen2);
  color: var(--warm);
  border-radius: 2px;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease);
  cursor: pointer;
}
.album-tag:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ══════════════════════════════════════════════════════════════
   MODAL RATING — Discogs community stars
══════════════════════════════════════════════════════════════ */
.modal-rating {
  display: flex;
  align-items: center;
  gap: 2px;
}
.modal-star {
  font-size: 15px;
  line-height: 1;
  color: rgba(255,255,255,.18);
}
.modal-star.filled {
  color: #ffffff;
}
.modal-rating-score {
  font-size: 11px;
  font-family: var(--mono);
  color: rgba(255,255,255,.35);
  margin-left: 7px;
}

/* ══════════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
══════════════════════════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease;
  cursor: pointer;
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #2a2a2a;
}

/* ══════════════════════════════════════════════════════════════
   BROWSE PAGE — カテゴリ別 / アーティスト順
══════════════════════════════════════════════════════════════ */
.browse-page { padding: 40px 0 80px; }

.browse-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

/* Toggle tabs */
.browse-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.browse-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--ease), border-color var(--ease);
  white-space: nowrap;
}
.browse-tab:hover { color: var(--ink); }
.browse-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}

/* Section headers */
.browse-section { margin-bottom: 56px; }
.browse-section-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.browse-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  flex-shrink: 0;
}
.browse-section-count {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
  flex-shrink: 0;
}
.browse-section-rule {
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,.09);
}

/* ---------- SEARCH(曲名・アルバム・アーティスト) ---------- */
.vc-search {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  margin-top: 4px;
}
.vc-search-input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease;
}
.vc-search-input:focus { border-color: var(--ink); }
.vc-search-input::placeholder { color: var(--muted); }
.vc-search-btn {
  flex: 0 0 auto;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s ease;
}
.vc-search-btn:hover { opacity: .82; }
.search-hint { color: var(--muted); font-size: 14px; margin: 18px 2px; }
.album-track-hit { margin: 4px 0 0; font-size: 12px; color: var(--muted); }

/* ============ SEARCH ページ(ポップ刷新) ============ */
.vcs {
  --pop: linear-gradient(120deg, #ff5f8f 0%, #ff8a5b 45%, #ffc24b 100%);
  position: relative;
  min-height: calc(100vh - 220px);
  padding: 40px 18px 80px;
  overflow: hidden;
  isolation: isolate;
}
/* シュワシュワの泡フィールド */
.vcs-fizz { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* 浮遊ワード: 装飾なしのニュートラルな文字だけ(サイズはJSがランダムに設定) */
.vcs-bubble {
  position: absolute;
  transform: translate(-50%, -50%);
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .01em;
  color: rgba(20, 20, 20, .5);
  will-change: transform, opacity, filter;
  user-select: none;
}

.vcs-hero {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.vcs-gif-wrap {
  width: clamp(220px, 44vw, 340px);
  margin: 0 auto 22px;
}
.vcs-gif { width: 100%; height: auto; display: block; }
.vcs-eyebrow {
  font-size: 12px; letter-spacing: .34em; font-weight: 700;
  color: var(--muted);
  margin: 0 0 12px;
}
.vcs-title { font-size: clamp(26px, 5vw, 40px); font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; color: var(--ink); }
.vcs-sub { color: var(--muted); font-size: 15px; margin: 0 0 26px; }

/* SaaS風 検索バー */
.vcs-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 8px 8px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.vcs-form:focus-within {
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 0 0 3px rgba(15,15,15,.10), 0 16px 40px rgba(0,0,0,.14);
  transform: translateY(-1px);
}
.vcs-ic { flex: 0 0 auto; width: 20px; height: 20px; color: var(--muted); display: grid; place-items: center; }
.vcs-ic svg { width: 20px; height: 20px; }
.vcs-input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: transparent;
  font-size: 16px; color: var(--ink); padding: 10px 2px;
}
.vcs-input::placeholder { color: #b8b8b8; }
.vcs-submit {
  flex: 0 0 auto;
  border: 0; cursor: pointer;
  padding: 11px 22px; border-radius: 11px;
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.16);
  transition: opacity .2s ease, transform .1s ease;
}
.vcs-submit:hover { opacity: .86; }
.vcs-submit:active { transform: scale(.97); }

/* サジェスト ドロップダウン */
.vcs-suggest {
  position: absolute;
  top: calc(100% + 10px); left: 0; right: 0;
  margin: 0; padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 46px rgba(0,0,0,.18);
  z-index: 30;
  max-height: 360px; overflow-y: auto;
  text-align: left;
}
.vcs-sg {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  cursor: pointer;
}
.vcs-sg:hover, .vcs-sg.is-active { background: #f6f5f4; }
.vcs-sg-ic {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; font-size: 14px;
  background: #f0eeec; color: #555;
}
.vcs-sg-label { flex: 1; min-width: 0; color: var(--ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcs-sg-type {
  flex: 0 0 auto;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase;
}
.vcs-sg-type--song   { background: #ffe0ec; color: #b3235a; }
.vcs-sg-type--artist { background: #dcefff; color: #175b9e; }
.vcs-sg-type--album  { background: #fff0d6; color: #a5620a; }

/* 検索結果 */
.vcs-results { position: relative; z-index: 2; max-width: 1200px; margin: 46px auto 0; }
.vcs-results-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.vcs-results-q { font-size: 18px; font-weight: 700; color: var(--ink); }
.vcs-results-q::before { content: "“"; } .vcs-results-q::after { content: "”"; }

/* 右下 検索FAB(全ページ)。「トップへ戻る」(bottom:24px)の真上に重ならず縦並び 🔍 / ↑ */
.vc-fab {
  position: fixed; right: 14px; bottom: 82px; z-index: 151;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 12px 28px rgba(0,0,0,.30), 0 4px 10px rgba(0,0,0,.18);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease;
}
.vc-fab svg { width: 24px; height: 24px; }
.vc-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 18px 36px rgba(0,0,0,.36); }
.vc-fab:active { transform: scale(.96); }

@media (max-width: 600px) {
  .vcs-submit { padding: 11px 16px; }
  .vc-fab { right: 16px; bottom: 80px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .vcs-form:focus-within { transform: none; }
}
