/* =========================================================
   A*TEENS FAN SITE — DESIGN SYSTEM
   Signature concept: the site is a mixtape with two sides.
   SIDE A = the 2026 comeback (Iconic / You Got The Look)
   SIDE B = the 1998–2006 archive (ABBA Generation → breakup)
   A cassette-tape motif physically divides and links both eras.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Space+Grotesk:wght@400;500;600;700&family=Baloo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* ---- Side A: New Era (2024–now) ---- */
  --a-bg: #0b0b14;
  --a-bg-raised: #14141f;
  --a-text: #f4f3fa;
  --a-text-dim: #a9a7bd;
  --a-accent: #ff3ea5;
  --a-accent-2: #5eead4;
  --a-line: rgba(244,243,250,0.14);

  /* ---- Side B: Classic Era (1998–2006) ---- */
  --b-bg: #fff3e4;
  --b-bg-raised: #ffe6cf;
  --b-text: #241b2f;
  --b-text-dim: #6b5f74;
  --b-accent: #ff6fae;
  --b-accent-2: #5cb8e4;
  --b-line: rgba(36,27,47,0.14);

  /* ---- Neutral / shared ---- */
  --tape-shell: #2a2730;
  --tape-shell-light: #e9d9c4;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --font-display-a: 'Space Grotesk', sans-serif;
  --font-display-b: 'Baloo 2', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-wordmark: 'Russo One', sans-serif;

  --max-w: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--a-bg);
  color: var(--a-text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

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

/* =============== NAV =============== */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,11,20,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--a-line);
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 20px; }
.nav-logo { font-family: var(--font-wordmark); font-weight: 400; font-size: 1.25rem; letter-spacing: 0.01em; text-transform: uppercase; display: inline-flex; align-items: center; }
.nav-logo .star { color: var(--a-accent); font-size: 1.1em; margin: 0 1px; }
.flip-s { display: inline-block; transform: scaleX(-1); margin-right: 0.32em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-family: var(--font-wordmark); font-size: 0.78rem; letter-spacing: 0.01em; }
.nav-links a { color: var(--a-text-dim); transition: color .15s ease; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--a-text); border-bottom-color: var(--a-accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--a-line); color: var(--a-text); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 1rem; cursor: pointer; }

.side-switch {
  display: inline-flex; align-items: center; background: var(--a-bg-raised);
  border: 1px solid var(--a-line); border-radius: 999px; padding: 4px; gap: 4px; font-family: var(--font-mono); font-size: 0.75rem;
}
.side-switch a { padding: 6px 14px; border-radius: 999px; color: var(--a-text-dim); }
.side-switch a.is-a { color: var(--a-bg); background: var(--a-accent); }
.side-switch a.is-b { color: var(--a-bg); background: var(--a-accent-2); }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 62px 0 auto 0; background: var(--a-bg); flex-direction: column; padding: 20px 24px 28px; border-bottom: 1px solid var(--a-line); transform: translateY(-120%); transition: transform .25s ease; gap: 16px; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: inline-block; }
}

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display-a); font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--a-accent); color: #0b0b14; }
.btn-ghost { border-color: var(--a-line); color: var(--a-text); }
.btn-b { background: var(--b-accent); color: var(--b-bg); font-family: var(--font-display-b); }
.btn-b-ghost { border: 1px solid var(--b-line); color: var(--b-text); font-family: var(--font-display-b); }

/* =============== SECTION A (dark) =============== */
.side-a { background: var(--a-bg); color: var(--a-text); }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--a-accent-2); }
.side-b .eyebrow { color: var(--b-accent); }

.hero-a { padding: 96px 0 56px; position: relative; overflow: hidden; }
.hero-a::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 520px; height: 520px;
  background: radial-gradient(circle, var(--a-accent) 0%, transparent 70%); opacity: 0.25; filter: blur(30px); pointer-events: none;
}
.hero-a h1 {
  font-family: var(--font-display-a); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.02em; margin: 18px 0 22px; max-width: 14ch;
}
.hero-a h1 em { font-style: normal; color: var(--a-accent); }
.hero-lede { font-size: 1.15rem; color: var(--a-text-dim); max-width: 46ch; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .hero-tracks { grid-template-columns: 1fr; } }

.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; column-gap: 56px; row-gap: 16px; align-items: start; }
.hero-media { position: relative; margin-top: 40px; }
.hero-media img { width: 100%; display: block; border-radius: var(--radius-lg); box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6); }
.hero-media figcaption { font-family: var(--font-mono); font-size: 0.7rem; color: var(--a-text-dim); margin-top: 10px; }
.hero-grid .hero-tracks { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .hero-media { max-width: 520px; }
  .hero-grid .hero-tracks { margin-top: 20px; }
}

/* =============== CASSETTE SIGNATURE =============== */
.cassette-divider { position: relative; padding: 70px 0; background: linear-gradient(180deg, var(--a-bg) 0%, var(--tape-shell) 42%, var(--tape-shell) 58%, var(--b-bg) 100%); }
.cassette {
  max-width: 560px; margin: 0 auto; background: var(--tape-shell); border-radius: var(--radius-lg);
  padding: 26px 28px 22px; box-shadow: 0 30px 60px rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.08);
}
.cassette-label {
  background: var(--tape-shell-light); border-radius: var(--radius-md); padding: 16px 20px 14px; position: relative;
  display: flex; align-items: center; justify-content: space-between;
}
.cassette-label .side-tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--b-text-dim); }
.cassette-label a.side-tag { display: block; padding: 4px 6px; border-radius: 6px; transition: background .15s ease, color .15s ease; cursor: pointer; }
.cassette-label a.side-tag:hover, .cassette-label a.side-tag:focus-visible { color: var(--b-bg); }
.cassette-label a.cassette-link-a:hover, .cassette-label a.cassette-link-a:focus-visible { background: var(--a-accent); }
.cassette-label a.cassette-link-b:hover, .cassette-label a.cassette-link-b:focus-visible { background: var(--b-accent); }
.cassette-hint { text-align: center; font-family: var(--font-mono); font-size: 0.68rem; color: #8b8594; margin-top: 4px; }
.cassette-title { font-family: var(--font-display-b); font-weight: 700; color: var(--b-text); font-size: 1.05rem; text-align: center; flex: 1; }
.cassette-title .star { color: var(--a-accent); }
.cassette-reels { display: flex; justify-content: space-between; padding: 22px 34px 6px; }
.reel { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #4a4552; display: flex; align-items: center; justify-content: center; background: #1c1a21; }
.reel::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #4a4552; }
.reel.spin { animation: spin 3.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cassette-caption { text-align: center; font-family: var(--font-mono); font-size: 0.78rem; color: #b9b3c4; margin-top: 12px; }
.cassette-caption strong { color: var(--a-accent-2); }

/* =============== SECTION B (cream / Y2K) =============== */
.side-b { background: var(--b-bg); color: var(--b-text); }
.hero-b { padding: 88px 0 56px; }
.hero-b h1 {
  font-family: var(--font-display-b); font-weight: 800; font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  margin: 14px 0 20px; letter-spacing: -0.01em;
  background: linear-gradient(115deg, #4b5568 0%, #eef2f7 15%, #8b93a3 35%, #ffffff 50%, #5b6478 65%, #eef2f7 85%, #4b5568 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(0,0,0,0.05);
}
.hero-b p.hero-lede { color: var(--b-text-dim); }

.timeline { position: relative; margin: 46px 0 0; padding-left: 28px; border-left: 3px dashed var(--b-accent-2); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -37px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--b-accent); border: 3px solid var(--b-bg);
}
.timeline-year { font-family: var(--font-mono); font-size: 0.82rem; color: var(--b-accent); font-weight: 500; }
.timeline-item h3 { font-family: var(--font-display-b); font-size: 1.3rem; margin: 4px 0 6px; }
.timeline-item p { margin: 0; color: var(--b-text-dim); max-width: 60ch; line-height: 1.55; }

/* =============== CARDS / GRID =============== */
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--a-bg-raised); border: 1px solid var(--a-line); border-radius: var(--radius-md); padding: 24px; }
.side-b .card { background: #fff; border-color: var(--b-line); }
.card h3 { font-family: var(--font-display-a); margin: 0 0 8px; font-size: 1.1rem; }
.side-b .card h3 { font-family: var(--font-display-b); }
.card p { color: var(--a-text-dim); margin: 0; line-height: 1.5; font-size: 0.94rem; }
.side-b .card p { color: var(--b-text-dim); }

.card.has-icon { display: flex; gap: 16px; align-items: flex-start; }
.card.has-icon .card-body { flex: 1; min-width: 0; }
.card-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 62, 165, 0.12); color: var(--a-accent);
}
.side-b .card-icon { background: rgba(255, 111, 174, 0.16); color: var(--b-accent); }
.card-icon svg { width: 22px; height: 22px; }

.grid-equal-height { align-items: stretch; }
.grid-equal-height .card { display: flex; padding-bottom: 18px; }
.grid-equal-height .card .card-body { display: flex; flex-direction: column; justify-content: flex-start; }

.media-frame {
  aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: var(--a-bg-raised);
  border: 1px solid var(--a-line); display: flex; align-items: center; justify-content: center;
}
.media-frame.portrait { aspect-ratio: 9/16; }
.media-frame iframe { width: 100%; height: 100%; border: 0; }

/* Instagram's own embed markup is responsive up to a 540px max-width,
   which lets it stretch wider than a Reel's natural narrow 9:16 crop
   inside a wide grid column — the video then renders "zoomed out"
   instead of filling the frame like it does natively. Cap it to
   Instagram's own comfortable minimum width (matches how TikTok's
   fixed ~325px cards already look on this site) and center it. */
.instagram-media { max-width: 360px !important; margin: 0 auto !important; }

.spotify-embed { border-radius: var(--radius-md); overflow: hidden; height: 352px; }
.spotify-embed.compact { height: 152px; }
.spotify-embed iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .spotify-embed { height: 152px; } }

.discog-row { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .discog-row { grid-template-columns: 1fr; } }

.placeholder-photo {
  aspect-ratio: 4/3; border-radius: var(--radius-md); background: repeating-linear-gradient(135deg, var(--a-bg-raised), var(--a-bg-raised) 10px, #1c1c29 10px, #1c1c29 20px);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
  color: var(--a-text-dim); font-family: var(--font-mono); font-size: 0.78rem; border: 1px dashed var(--a-line);
}
.side-b .placeholder-photo { background: repeating-linear-gradient(135deg, #ffe6cf, #ffe6cf 10px, #ffd9b8 10px, #ffd9b8 20px); color: var(--b-text-dim); border-color: var(--b-line); }

/* =============== SECTION HEADERS =============== */
.section { padding: 56px 0; display: flow-root; border-top: 1px solid var(--a-line); }
.side-b.section { border-top-color: var(--b-line); }
.section > *:first-child { margin-top: 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-family: var(--font-display-a); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 10px 0 12px; display: flex; align-items: center; gap: 0.35em; }
.side-b .section-head h2 { font-family: var(--font-display-b); }
.section-head p { color: var(--a-text-dim); font-size: 1.02rem; line-height: 1.5; }
.side-b .section-head p { color: var(--b-text-dim); }
.section-head h2 .platform-icon { width: 0.8em; height: 0.8em; flex-shrink: 0; color: var(--a-accent-2); }
.side-b .section-head h2 .platform-icon { color: var(--b-accent); }

/* =============== TOUR TABLE =============== */
.tour-list { display: flex; flex-direction: column; border-top: 1px solid var(--a-line); }
.side-b .tour-list { border-color: var(--b-line); }
.tour-row {
  display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 18px;
  padding: 18px 4px; border-bottom: 1px solid var(--a-line);
}
.side-b .tour-row { border-color: var(--b-line); }
.tour-date { font-family: var(--font-mono); font-size: 0.88rem; color: var(--a-accent-2); }
.side-b .tour-date { color: var(--b-accent); }
.tour-city { font-family: var(--font-display-a); font-size: 1.05rem; }
.side-b .tour-city { font-family: var(--font-display-b); }
.tour-venue { display: block; font-size: 0.85rem; color: var(--a-text-dim); font-family: var(--font-body); margin-top: 2px; }
.side-b .tour-venue { color: var(--b-text-dim); }
.tour-status { font-family: var(--font-mono); font-size: 0.75rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--a-line); color: var(--a-text-dim); white-space: nowrap; }
.tour-status.on-sale { color: var(--a-accent-2); border-color: var(--a-accent-2); }
.tour-row.is-past { opacity: 0.5; }
.tour-row.is-past .tour-date { color: var(--a-text-dim); }
.tour-tickets { display: inline-block; margin-top: 4px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--a-accent-2); text-decoration: underline; }
.side-b .tour-tickets { color: var(--b-accent); }

/* =============== DISCLAIMER BANNER =============== */
.disclaimer-bar {
  background: var(--a-bg-raised); border-top: 1px solid var(--a-line); border-bottom: 1px solid var(--a-line);
  font-size: 0.85rem; color: var(--a-text-dim); padding: 12px 0; text-align: center;
}
.disclaimer-bar strong { color: var(--a-text); }
.disclaimer-bar a { text-decoration: underline; }

/* =============== LIGHTBOX =============== */
img.lightbox-trigger { cursor: zoom-in; }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000; background: rgba(8,8,12,0.92);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease;
}
.lightbox-overlay.is-open { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); cursor: default; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff;
  font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 8px;
}

/* =============== FOOTER =============== */
footer.site-footer { background: var(--a-bg); border-top: 1px solid var(--a-line); padding: 56px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.footer-col h4 { font-family: var(--font-display-a); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--a-text-dim); margin: 0 0 14px; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--a-text-dim); margin-bottom: 10px; }
.footer-col a:hover { color: var(--a-text); }
.footer-legal { font-size: 0.8rem; color: var(--a-text-dim); border-top: 1px solid var(--a-line); padding-top: 24px; line-height: 1.6; }

/* =============== UTIL =============== */
.mt-0 { margin-top: 0; }
.social-row { display: flex; gap: 14px; margin-top: 18px; }
.social-row a { border: 1px solid var(--a-line); border-radius: 999px; padding: 9px 18px; font-size: 0.85rem; font-family: var(--font-mono); }
.side-b .social-row a { border-color: var(--b-line); }
