/* ============================================================
   Father's Day — HIGHLIFE & THE OLD TUNES (for Mr Boateng)
   Vintage West-African record-sleeve world: spinning vinyl,
   liner notes, record crate, Side A tracklist, label sign-off.
   Mobile-first.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Yellowtail&family=Archivo:wght@500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;1,6..72,300;1,6..72,400&family=Courier+Prime:wght@400;700&display=swap');

:root {
  --font-display: 'Abril Fatface', Georgia, serif;
  --font-script:  'Yellowtail', cursive;
  --font-label:   'Archivo', system-ui, sans-serif;
  --font-body:    'Newsreader', Georgia, serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;
  --maxw: 460px;
  --gold: #C5852A;
}

/* ---------- Modes ---------- */
[data-mode="sleeve"] {
  --bg:       #E8D5AC;
  --bg2:      #E0C98C;
  --paper:    #F4E9CB;
  --ink:      #2A2014;
  --ink-soft: #5C4727;
  --muted:    #8B6F44;
  --gold:     #C5852A;
  --gold-dim: #A66C1C;
  --teal:     #1E7A6E;
  --rust:     #B0432B;
  --vinyl:    #16110D;
  --vinyl-2:  #221911;
  --hair:     rgba(42,32,20,0.18);
}
[data-mode="afterhours"] {
  --bg:       #1B130C;
  --bg2:      #241910;
  --paper:    #2A2015;
  --ink:      #F2E4C4;
  --ink-soft: #D9C094;
  --muted:    #AB8D5D;
  --gold:     #DDA03F;
  --gold-dim: #BD842B;
  --teal:     #2FA192;
  --rust:     #CD5838;
  --vinyl:    #0D0A07;
  --vinyl-2:  #18120C;
  --hair:     rgba(242,228,196,0.16);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #0f0b07;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
#root { min-height: 100vh; }

.page {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(130% 70% at 50% -8%, rgba(197,133,42,0.20), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg) 38%);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0,0,0,0.4);
  transition: background .5s ease, color .5s ease;
}

/* warm paper texture */
.page::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.06; mix-blend-mode: multiply;
}
.content { position: relative; z-index: 3; }

/* ---------- atoms ---------- */
.tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold-dim);
}
.divider { height: 1px; background: var(--hair); margin: 0 26px; }
.script { font-family: var(--font-script); }

/* ============================================================
   HERO — turntable / record + sleeve
   ============================================================ */
.hero { padding: 22px 26px 34px; position: relative; }
.hero-top {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 30px;
}
.hero-top span { white-space: nowrap; }
.hero-top .side { color: var(--gold); }

.release { font-family: var(--font-label); font-weight: 600; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; }
.artist {
  font-family: var(--font-label); font-weight: 700;
  font-size: clamp(34px, 11.5vw, 52px); line-height: 0.95;
  letter-spacing: -0.01em; text-transform: uppercase; margin: 0; color: var(--ink);
}
.album { font-family: var(--font-script); font-size: clamp(22px, 6vw, 29px); line-height: 1.4; color: var(--gold); margin: 12px 0 2px; }
.album .amp { color: var(--rust); }
.catalog { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }

/* record set */
.record-set { position: relative; width: 100%; height: 0; padding-bottom: 74%; margin: 30px 0 8px; }
.disc {
  position: absolute; top: 50%; right: 1%; transform: translateY(-50%);
  width: 60%; aspect-ratio: 1 / 1; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, #0c0907 0 1px, var(--vinyl-2) 1px 3px),
    radial-gradient(circle at 38% 32%, rgba(255,255,255,0.14), transparent 42%),
    var(--vinyl);
  box-shadow: 0 16px 34px rgba(0,0,0,0.45), inset 0 0 30px rgba(0,0,0,0.6);
  z-index: 1;
}
.disc::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(125deg, rgba(255,255,255,0.18), transparent 30%, transparent 70%, rgba(255,255,255,0.08));
  mix-blend-mode: screen;
}
.disc-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40%; height: 40%; border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 60%, var(--gold-dim) 100%);
  display: grid; place-items: center; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}
.disc-label .lh {
  font-family: var(--font-label); font-weight: 700; font-size: 8px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #2a1c0e; line-height: 1.3;
}
.disc-label .hole { width: 11%; height: 11%; min-width: 6px; min-height: 6px; border-radius: 50%; background: var(--vinyl); margin: 3px auto; }
.spin { animation: spin 3.4s linear infinite; }
.spin.fast { animation-duration: 1.9s; }

@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.sleeve {
  position: absolute; top: 50%; left: 0; transform: translateY(-50%);
  width: 64%; aspect-ratio: 1 / 1; z-index: 2;
  background: var(--paper);
  padding: 9px; border-radius: 2px;
  box-shadow: 0 18px 38px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(0,0,0,0.08);
}
.sleeve .art { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 1px; background: var(--vinyl-2); }
.sleeve .art image-slot { width: 100%; height: 100%; display: block; }
.sleeve .spine { position: absolute; top: 9px; bottom: 9px; left: 9px; width: 5px; background: linear-gradient(90deg, rgba(0,0,0,0.18), transparent); border-radius: 1px; z-index: 2; pointer-events: none; }

.needle-cta {
  display: inline-flex; align-items: center; gap: 11px;
  margin-top: 22px; cursor: pointer;
  background: var(--ink); color: var(--paper);
  border: none; border-radius: 100px; padding: 11px 20px 11px 13px;
  font-family: var(--font-label); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform .15s ease, background .2s ease;
}
[data-mode="afterhours"] .needle-cta { background: var(--gold); color: #2a1c0e; }
.needle-cta:active { transform: scale(.96); }
.needle-cta .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #2a1c0e; display: grid; place-items: center; }
[data-mode="afterhours"] .needle-cta .ic { background: #2a1c0e; color: var(--gold); }
.needle-cta .ic svg { width: 13px; height: 13px; }

/* ============================================================
   LINER NOTES — message
   ============================================================ */
.liner { padding: 50px 28px 54px; }
.liner-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.liner-head .tag { white-space: nowrap; }
.liner-head .ln { flex: 1; height: 1px; background: var(--hair); }
.letter { font-family: var(--font-body); font-size: 18.5px; line-height: 1.75; font-weight: 300; color: var(--ink); }
.letter p { margin: 0 0 1.02em; }
.letter p:first-of-type::first-letter {
  font-family: var(--font-display); float: left; font-size: 58px; line-height: 0.7;
  padding: 10px 12px 0 0; color: var(--rust);
}
.letter em { color: var(--gold-dim); font-style: italic; }
.sign-inline { margin-top: 24px; font-family: var(--font-script); font-size: 30px; color: var(--gold); }

/* ============================================================
   THE CRATE — gallery of sleeves
   ============================================================ */
.crate { padding: 46px 26px 52px; }
.crate-head { margin-bottom: 30px; }
.crate-head .tag { display: block; margin-bottom: 6px; }
.crate-head h2 { font-family: var(--font-display); font-size: 30px; line-height: 1.04; margin: 0; color: var(--ink); }
.crate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.crate-item { position: relative; }
.crate-item::before {
  content: ""; position: absolute; top: -13px; right: 9px;
  width: 46%; aspect-ratio: 1 / 1; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, #0c0907 0 1px, var(--vinyl-2) 1px 2.5px),
    var(--vinyl);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.6);
  z-index: 0;
}
.crate-item::after {
  content: ""; position: absolute; top: calc(-13px + 18%); right: calc(9px + 18%);
  width: 10%; aspect-ratio: 1/1; border-radius: 50%; background: var(--gold); z-index: 0;
}
.sleeve-sm {
  position: relative; z-index: 1;
  background: var(--paper); padding: 7px; border-radius: 2px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(0,0,0,0.07);
}
.sleeve-sm .art { position: relative; aspect-ratio: 1/1; overflow: hidden; border-radius: 1px; background: var(--vinyl-2); }
.sleeve-sm .art image-slot { width: 100%; height: 100%; display: block; }
.crate-cap { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding: 0 2px; }
.crate-cap .no { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--gold-dim); }
.crate-cap .yr { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* ============================================================
   SIDE A — tracklist + player
   ============================================================ */
.tracks { padding: 46px 26px 54px; }
.tracks-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.tracks-head h2 { font-family: var(--font-display); font-size: 26px; margin: 0; color: var(--ink); white-space: nowrap; }
.tracks-head .rpm { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tracks-sub { font-family: var(--font-script); font-size: 22px; color: var(--gold); margin: 10px 0 18px; }

.track {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px;
  padding: 14px 4px; border-top: 1px solid var(--hair);
}
.track:last-child { border-bottom: 1px solid var(--hair); }
.track .ix { font-family: var(--font-mono); font-size: 12px; color: var(--gold-dim); letter-spacing: 0.06em; }
.track .nm { font-family: var(--font-body); font-size: 17px; color: var(--ink); line-height: 1.2; min-width: 0; }
.track .nm .who { font-style: italic; color: var(--muted); font-size: 14px; }
.track.is-feature .nm { font-weight: 400; }
.track .pl {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  border: 1px solid var(--gold); background: transparent; color: var(--gold);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.track .pl:hover { background: var(--gold); color: #2a1c0e; }
.track .pl:active { transform: scale(.92); }
.track .pl svg { width: 14px; height: 14px; }
.track .dur { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.eq i { width: 2.5px; background: var(--gold); height: 30%; border-radius: 2px; }
.playing .eq i { animation: eq 0.9s ease-in-out infinite; }
.eq i:nth-child(1){animation-delay:-.2s}.eq i:nth-child(2){animation-delay:-.5s}.eq i:nth-child(3){animation-delay:-.1s}.eq i:nth-child(4){animation-delay:-.7s}
@keyframes eq { 0%,100%{height:22%} 50%{height:100%} }

/* ============================================================
   SIGN-OFF — vinyl center label
   ============================================================ */
.label-off { padding: 50px 28px 96px; display: grid; place-items: center; text-align: center; }
.center-label {
  position: relative; width: 280px; max-width: 78vw; aspect-ratio: 1/1; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, #0c0907 0 1px, var(--vinyl-2) 1px 3px) padding-box;
  padding: 0; display: grid; place-items: center;
  box-shadow: 0 20px 44px rgba(0,0,0,0.45), inset 0 0 40px rgba(0,0,0,0.6);
}
.center-label .disc-glint { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(120deg, rgba(255,255,255,0.16), transparent 32%, transparent 68%, rgba(255,255,255,0.07)); mix-blend-mode: screen; }
.label-face {
  width: 70%; height: 70%; border-radius: 50%; position: relative; z-index: 2;
  background: radial-gradient(circle, var(--gold) 0 62%, var(--gold-dim) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}
.label-face .top { font-family: var(--font-label); font-weight: 700; font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase; color: #3a2710; line-height: 1.3; }
.label-face .big { font-family: var(--font-script); font-size: 19px; line-height: 1.05; color: #2a1c0e; margin: 5px 0 3px; white-space: nowrap; }
.label-face .hole { width: 12px; height: 12px; border-radius: 50%; background: var(--vinyl); margin: 2px 0; box-shadow: inset 0 0 0 2px rgba(0,0,0,0.3); }
.label-face .bot { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #3a2710; }

/* ============================================================
   FLOATING — now spinning pill
   ============================================================ */
.music-pill {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 70; display: flex; align-items: center; gap: 11px;
  background: var(--paper); border: 1px solid var(--gold);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  border-radius: 100px; padding: 7px 16px 7px 8px; cursor: pointer;
  max-width: calc(var(--maxw) - 44px); width: max-content;
  transition: transform .2s ease; font-family: var(--font-body);
}
.music-pill:active { transform: translateX(-50%) scale(.97); }
.pill-disc {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #0c0907 0 1px, var(--vinyl-2) 1px 2.5px), var(--vinyl);
  display: grid; place-items: center; position: relative;
}
.pill-disc::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.music-pill.playing .pill-disc { animation: spin2 2s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.pill-txt { line-height: 1.15; min-width: 0; }
.pill-txt .a { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pill-txt .b { font-size: 14px; font-style: italic; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill-eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 13px; }
.pill-eq i { width: 2.5px; background: var(--gold); height: 30%; border-radius: 2px; }
.music-pill.playing .pill-eq i { animation: eq 0.9s ease-in-out infinite; }
.pill-eq i:nth-child(1){animation-delay:-.2s}.pill-eq i:nth-child(2){animation-delay:-.55s}.pill-eq i:nth-child(3){animation-delay:-.1s}.pill-eq i:nth-child(4){animation-delay:-.4s}

/* ---------- festive confetti dots ---------- */
.confetti-layer { position: fixed; inset: 0; z-index: 75; pointer-events: none; overflow: hidden; }
.petal { position: absolute; top: -24px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: 0; will-change: transform, opacity; }

image-slot { background: var(--vinyl-2); }

@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
  .spin, .music-pill.playing .pill-disc, .eq i, .pill-eq i { animation: none !important; }
}


/* ============================================================
   desktop.css — big-screen (tablet / laptop) layout for ALL
   five Father's Day themes. Mobile stays untouched; at >= 992px
   the page becomes a two-pane spread: a sticky hero panel on the
   left, the notes / gallery / music / sign-off scrolling on the
   right, with galleries opening up to more columns.

   Relies on the shared structure each app now uses:
     .page > .content > (header.hero + .rest)
   ============================================================ */

@media (min-width: 992px) {

  /* ---------------- shared frame ---------------- */
  .page {
    max-width: 1200px;
    overflow: visible;            /* let the hero pin via position:sticky */
  }

  .content {
    display: grid;
    grid-template-columns: minmax(360px, 432px) minmax(0, 1fr);
    column-gap: 60px;
    align-items: start;
    padding: 0 52px;
  }

  .hero {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .rest { min-width: 0; }
  .rest > .divider:first-child { display: none; }

  /* keep long-form reading at a comfortable measure */
  .rest .letter { max-width: 58ch; }

  /* ---------------- ELEGANT (styles.css) ---------------- */
  .hero-portrait { max-height: 58vh; }
  .gallery .grid { gap: 16px; }

  /* ---------------- CINEMA (cinema.css) ---------------- */
  .poster-wrap { max-width: 360px; margin-left: auto; margin-right: auto; }
  .poster { max-height: 42vh; }
  .hero .bulb-rule { margin-top: 12px; margin-bottom: 16px; }

  /* ---------------- HIGHLIFE (highlife.css) ---------------- */
  .record-set { max-width: 432px; }
  .crate-grid { grid-template-columns: repeat(3, 1fr); }

  /* ---------------- MATCHDAY (matchday.css) ---------------- */
  .markings { display: none; }
  .sticker-grid { grid-template-columns: repeat(3, 1fr); }

  /* ---------------- GARAGE (garage.css) ---------------- */
  .cover-frame { max-height: 46vh; }
  .specs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .spec-row { padding: 11px 0; }
  .road-grid { grid-template-columns: repeat(3, 1fr); }
}

/* A roomier mid-band for large tablets / small laptops in portrait. */
@media (min-width: 992px) and (max-width: 1180px) {
  .content { column-gap: 44px; padding: 0 36px; }
  .crate-grid, .sticker-grid, .road-grid { grid-template-columns: repeat(2, 1fr); }
}



/* ============================================================
   Static control state — vanilla music + confetti helpers.
   (Added for the no-framework static build.)
   ============================================================ */
[data-music-toggle] { cursor: pointer; }
.i-pause { display: none; }
.is-playing .i-play { display: none; }
.is-playing .i-pause { display: inline-block; }
[data-when-playing] { display: none; }
.is-playing [data-when-idle] { display: none; }
.is-playing [data-when-playing] { display: inline; }
