/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --terracotta: #C1533A;
  --green: #1A3B2A;
  --gold: #C9A84C;
  --cream: #F5EFE0;
  --charcoal: #1E1E1E;
  --text: #2C1A12;
  --text-muted: #8A6B58;
  --surface: #FFFDF7;
  --border: rgba(193, 83, 58, 0.12);

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --radius: 14px;
  --radius-full: 999px;
  --gap: 16px;
  --max-w: 420px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── PAGE LAYOUT ── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--gap) calc(32px + env(safe-area-inset-bottom));
}

/* ── HEADER ── */
.site-header {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 10px;
}
.site-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 0.01em;
  color: var(--green);
}
.site-flags { font-size: 1.15rem; }

/* ── NAV ── */
.site-logo { text-decoration: none; }
.site-nav { display: flex; gap: 20px; align-items: center; }
.nav-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-link:hover,
.nav-link.active { color: var(--green); }

/* ── HERO ── */
.hero {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 8px 0 24px;
}

/* Cover art */
.cover-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(26, 59, 42, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.1);
}
.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--green) 0%, #0e2318 45%, #3a1a0a 75%, var(--terracotta) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
  padding: 24px;
}
.crown-icon {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(201, 168, 76, 0.4));
}
.cover-placeholder-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.cover-placeholder-sub {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(201, 168, 76, 0.65);
  letter-spacing: 0.05em;
}

/* Single meta */
.single-meta { text-align: center; }
.single-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  margin-bottom: 4px;
}
.single-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--green);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.single-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: italic;
}

/* ── RELEASE STATES ── */
.release-state {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.release-state.hidden { display: none; }

.release-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.release-badge--live { color: var(--terracotta); }

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cd-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
}
.cd-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.02em;
}
.cd-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 3px;
}
.cd-sep {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

/* Platform grid (post-release) */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.96); }

/* Pre-save / primary */
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 4px 18px rgba(193, 83, 58, 0.38);
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 6px 22px rgba(193, 83, 58, 0.48); }

/* Spotify green */
.btn-spotify {
  background: #1DB954;
  color: #fff;
  box-shadow: 0 4px 18px rgba(29, 185, 84, 0.35);
}
.btn-spotify:hover { opacity: 0.9; }

.btn-ytmusic {
  background: #FF0000;
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 0, 0, 0.28);
}
.btn-ytmusic:hover { opacity: 0.9; }

/* Secondary platforms */
.btn-platform {
  background: var(--green);
  color: var(--cream);
  font-size: 0.78rem;
  padding: 12px 14px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(26, 59, 42, 0.2);
}
.btn-platform:hover { opacity: 0.88; }

/* Follow button (outline) */
.btn-follow {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 0.85rem;
  padding: 11px 28px;
  width: auto;
}
.btn-follow:hover { background: var(--green); color: var(--cream); }

/* ── NEXT SINGLE TEASER ── */
.next-single {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.next-single-art {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.next-single-art img { width: 100%; height: 100%; object-fit: cover; }
.next-single-meta { flex: 1; min-width: 0; }
.next-single-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 3px;
}
.next-single-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--green);
  line-height: 1.2;
}
.next-single-title span { font-weight: 400; font-style: italic; color: var(--text-muted); font-size: 0.88em; }
.next-single-genre {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── SOCIAL NAV ── */
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 0 20px;
  width: 100%;
  max-width: var(--max-w);
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(26, 59, 42, 0.07);
  color: var(--green);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
.social-btn:hover {
  background: var(--green);
  color: var(--cream);
  transform: translateY(-2px);
}
.social-btn:active { transform: scale(0.94); }

/* ── CATALOG ── */
.catalog {
  width: 100%;
  max-width: var(--max-w);
  padding-bottom: 28px;
}
.catalog-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.song-list { display: flex; flex-direction: column; }

.song-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.song-item--featured {
  background: rgba(193, 83, 58, 0.05);
  padding: 13px 10px;
  margin: 0 -10px 4px;
  border-radius: 10px;
  border-bottom: none;
}

.song-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.song-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.song-text { min-width: 0; }
.song-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.song-sub {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82em;
}
.song-genre {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(201, 168, 76, 0.14);
  color: #7A5E12;
  white-space: nowrap;
  flex-shrink: 0;
}
.song-tag--new {
  background: rgba(193, 83, 58, 0.12);
  color: var(--terracotta);
}
.song-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--terracotta);
  padding: 4px 12px;
  border: 1.5px solid var(--terracotta);
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.song-link:hover { background: var(--terracotta); color: #fff; }

/* ── FOOTER ── */
.site-footer {
  width: 100%;
  max-width: var(--max-w);
  text-align: center;
  padding: 20px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.footer-copy {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* ── RESPONSIVE ── */
@media (min-width: 480px) {
  :root { --max-w: 480px; }
  .single-title { font-size: 2.8rem; }
  .cd-num { font-size: 2.6rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --cream: #1A140F;
    --surface: #211810;
    --text: #EDE0D0;
    --text-muted: #9E856E;
    --border: rgba(201, 168, 76, 0.1);
    --green: #4A8C6A;
  }
  .cover-placeholder { background: linear-gradient(145deg, #0e2318 0%, #060f0a 45%, #1a0a03 75%, #5a2510 100%); }
  .social-btn { background: rgba(74, 140, 106, 0.1); color: var(--green); }
  .btn-platform { background: #1A3B2A; }
  .btn-follow { border-color: var(--green); color: var(--green); }
  .btn-follow:hover { background: var(--green); color: var(--cream); }
  .song-item--featured { background: rgba(193, 83, 58, 0.08); }
}
