/* Root tokens */
:root {
  --bg: #0A0B10;             /* Nocturne Black */
  --surface: #12131A;        /* Moonlit Charcoal */
  --text: #E7E9ED;           /* Mist */
  --text-2: #A1A6B3;         /* Ash */
  --line: #2A2E3A;           /* Ghost-ish border */
  --accent: #6D4AFF;         /* Oxide Violet */
  --accent-2: #3FD1C5;       /* Iridescent Teal */
  --danger: #A51E57;         /* Thorn Rose */

  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  --font-display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --font-sans: Inter, ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px;

  --container: 1200px;
  --plyr-color-main: var(--accent);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; border-radius: 8px; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.section { padding: var(--space-8) 0; }
.section--inset { background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); border-top: 1px solid var(--line); }

/* Accessibility helpers */
.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;
}
.skip-link { position: absolute; left: -9999px; top: auto; }
.skip-link:focus { left: 16px; top: 10px; background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10000; }

/* Header / Nav */
.site-header { position: sticky; top: 0; backdrop-filter: blur(6px); background: rgba(10,11,16,.6); z-index: 1000; border-bottom: 1px solid var(--line); }
.nav__wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }

.logo { font-family: var(--font-display); font-size: 20px; letter-spacing: .08em; }
.logo__dot { margin: 0 .15em; color: var(--accent-2); }

.nav { display: flex; }
.nav ul { display: flex; gap: 20px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.nav__toggle { display: none; background: none; border: 0; color: var(--text); }
.nav__bar { display: block; width: 22px; height: 2px; margin: 4px 0; background: var(--text); }

@media (max-width: 768px) {
  .nav__toggle { display: inline-block; }
  .nav { position: fixed; inset: 0 0 auto 0; top: 56px; display: none; background: var(--surface); border-top: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: flex-start; padding: 16px; gap: 16px; }
}

/* Hero */
.hero { position: relative; min-height: 76vh; display: grid; align-items: end; border-bottom: 1px solid var(--line); }
.hero__media {
  position: absolute; inset: 0;
  /* Gradient base with optional image overlay; if image missing, gradient still shows */
  background: radial-gradient(80% 80% at 60% 80%, rgba(255,255,255,0.02), rgba(10,11,16,0.6) 55%, #0A0B10 90%),
              url("assets/hero-still.png") center / cover no-repeat;
  filter: grayscale(30%) brightness(0.7);
  opacity: .92;
}
/* Global veil for stronger text contrast */
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,16,.55) 0%, rgba(10,11,16,.78) 45%, rgba(10,11,16,.94) 100%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 70% 80%, transparent, rgba(10,11,16,.8) 55%, #0A0B10 90%); pointer-events: none; }
.hero__content { position: relative; z-index: 1; padding: var(--space-8) 0; text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 6px 24px rgba(0,0,0,.45); }
.display { font-family: var(--font-display); font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: .01em; margin: 0 0 12px; color: var(--text); }
.lead { font-size: clamp(16px, 2.2vw, 20px); color: var(--text); max-width: 60ch; }

/* Optional shimmer on headlines */
@media (prefers-reduced-motion: no-preference) {
  /* Enable shimmer only when explicitly opted-in with .shimmer */
  .display.shimmer {
    background: linear-gradient(90deg, var(--text) 0%, #fff 20%, var(--text) 40%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 200% 100%;
    animation: shimmer 3.2s ease-in-out infinite;
  }
  @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
}

/* Listen links */
.listen-links { display: flex; gap: 16px; list-style: none; padding: 0; margin: 14px 0 0; }
.listen-links a { opacity: .9; }
.listen-links a:hover { opacity: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 16px; border: 1px solid transparent; cursor: pointer; font-weight: 600; }
.btn--primary { background: var(--accent); color: #0B0B0B; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--secondary { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--ghost { background: transparent; border-color: var(--line); }
.btn--text { background: transparent; padding: 0; border: 0; text-decoration: underline; text-underline-offset: 3px; }

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

/* Lift micro-interaction */
.btn, .release-card, .tour-card { transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover, .release-card:hover, .tour-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Release card */
.release-card { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: center; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)); padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.release-card__actions { display: flex; gap: 12px; margin-top: 8px; }
.h3 { font-size: 24px; margin: 0 0 6px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin: 0 0 12px; }

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

/* Tour list */
.tour-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.tour-card { display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); }
.tour-card__date { display: grid; place-items: center; background: #0E0F15; border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-height: 64px; }
.date__day { display: block; font-size: 22px; font-weight: 700; }
.date__mon { display: block; font-size: 12px; color: var(--text-2); letter-spacing: .12em; text-transform: uppercase; }
.tour-card__meta { line-height: 1.3; }
.tour-card__city { font-weight: 600; }
.tour-card__venue { color: var(--text-2); }
.tour-card__cta { display: flex; gap: 8px; }

@media (max-width: 768px) {
  .tour-card { grid-template-columns: 70px 1fr; }
  .tour-card__cta { grid-column: 1 / -1; }
}

/* Newsletter form */
.form { display: grid; gap: 8px; max-width: 520px; }
.form__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
input[type="email"],
input[type="text"],
input[type="range"] {
  background: #0E0F15; border: 1px solid var(--line); color: var(--text);
  padding: 12px 12px; border-radius: 10px;
}
.form__small { color: var(--text-2); font-size: 14px; }

/* Player (sticky bottom) */
.player { position: sticky; bottom: 0; background: rgba(10,11,16,.9); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
.player__wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 8px 0; }
.player__meta { min-width: 180px; }
.player__title { font-weight: 600; line-height: 1.2; }
.player__artist { color: var(--text-2); font-size: 14px; line-height: 1.2; }
.player__time { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.player__links { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.player__links li { display: inline-flex; }
.player__links li + li::before { content: "·"; color: var(--text-2); opacity: .8; margin: 0 8px; }
.player__links a { opacity: .9; }
.player__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.player__plyr { width: 100%; min-width: 280px; max-width: 520px; justify-self: start; }
/* Video adjustments */
.player--video .player__plyr { max-width: 720px; }

/* Inline video embed under release */
.video-embed { margin-top: 16px; }
/* Robust 16:9 box (works everywhere) */
.video-embed__frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  background: #0E0F15;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 270px;
}
.video-embed__frame > iframe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.video-fallback { margin-top: 10px; }

@media (max-width: 992px) {
  .player__wrap { grid-template-columns: auto 1fr auto; grid-auto-rows: auto; }
  .player__seek { grid-column: 1 / -1; }
  .player__vol { display: none; }
}

/* Plyr theming for dark audio */
.plyr--audio .plyr__controls { background: rgba(255,255,255,.02); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 10px; }
/* Ensure our theme wins over CDN defaults (loaded later) */
.player .plyr--audio .plyr__controls { background: rgba(255,255,255,.02) !important; border-color: var(--line) !important; color: var(--text) !important; border-radius: 10px !important; }
.plyr--full-ui input[type=range] { color: var(--accent); }
.plyr--audio .plyr__controls .plyr__time { color: #fff; font-variant-numeric: tabular-nums; }
.player .plyr--audio .plyr__controls .plyr__time { color: #fff !important; }
.plyr--audio .plyr__menu__container { background: var(--surface); border: 1px solid var(--line); color: var(--text); }


/* Toast */
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: #11131a; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* Consent banner */
.cookie-banner { position: fixed; inset: auto 0 0 0; background: rgba(18,19,26,.98); border-top: 1px solid var(--line); z-index: 1001; display: none; }
.cookie__wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; }
.cookie__text { margin: 0; color: var(--text-2); }
.cookie__actions { display: flex; gap: 8px; align-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 16px 0 80px; /* leave room above sticky player */ }
.footer__wrap { display: flex; justify-content: space-between; align-items: center; }
.social { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .display { background: none; color: var(--text); }
}
