/* ─── TOKENS (shared with main site) ─────────────────────── */
:root {
  --bg: #0f0f0f;
  --bg-subtle: #161616;
  --border: #222;
  --text: #d4d4d4;
  --text-muted: #666;
  --accent: #e2e2e2;
  --tag-bg: #1a1a1a;
  --tag-text: #777;
  --green: #4ade80;

  --font-sans: 'Inter', sans-serif;
  --font-brand: 'BBH Bartle', sans-serif;

  --max-w: 680px;
  --px: clamp(1.25rem, 5vw, 2rem);
}

/* ─── RESET ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--px);
  backdrop-filter: blur(12px);
  background: rgba(15, 15, 15, 0.8);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  color: var(--accent);
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

/* ─── CONTAINER ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 7rem var(--px) 4rem;
}

/* ─── HERO / NOW PLAYING ─────────────────────────────────── */
.hero {
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.hero-greeting {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.hero-name {
  font-family: var(--font-brand);
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--accent);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.cursor {
  display: inline-block;
  color: var(--text-muted);
}

.cursor.hidden {
  opacity: 0;
}

/* Now playing card */
.now-playing-card {
  position: relative;
  display: block;
  padding: 1rem 1.25rem;
  min-height: 102px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 460px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-sizing: border-box;
}

.expand-btn {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: auto;
  background-color: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
  z-index: 10;
}

.expand-btn:focus,
.expand-btn:active {
  outline: none !important;
  border: none !important;
}

.expand-btn:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05) !important;
}

.np-meta {
  width: calc(100% - 70px - 1rem);
  /* Room for unexpanded image */
  min-height: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
  padding-left: 2rem;
}

.np-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.np-track {
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-dash {
  color: var(--text-muted);
  margin: 0 0.25rem;
}

.track-link {
  color: var(--accent);
  transition: opacity 0.2s;
}

.track-link:hover {
  opacity: 0.7;
}

.track-link.artist {
  color: var(--text-muted);
}

.track-link.artist:hover {
  color: var(--text);
  opacity: 1;
}

.cov-pic {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 70px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* Expanded State */
.now-playing-card.expanded {
  padding-bottom: 1.5rem;
  /* We remove padding-top so the card uses its default 1rem top padding */
}

.now-playing-card.expanded .cov-pic {
  top: 1.5rem;
  right: 1.5rem;
  width: calc(100% - 3rem);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.now-playing-card.expanded .np-meta {
  width: 100%;
  padding-left: 0;
  text-align: center;
  margin-top: calc(100% + 1.25rem);
  /* 100% resolves to EXACTLY the card's width. This pushes the text down to sit beautifully & uniformly below the image *on every device size*! */
}

.now-playing-card.expanded .np-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  white-space: normal;
}

.now-playing-card.expanded .np-dash {
  display: none;
}

.now-playing-card.expanded .track-link {
  font-size: 1.2rem;
  font-weight: 500;
}

.now-playing-card.expanded .track-link.artist {
  font-size: 0.95rem;
}

/* ─── SECTIONS ──────────────────────────────────────────── */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child {
  border-bottom: none;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ─── MARQUEE ────────────────────────────────────────────── */
/*
 * The wrapper clips overflow. The track is 2× wide (original + duplicate)
 * and slides left by exactly 50% — returning to start = seamless loop.
 */
.marquee-wrapper {
  overflow: hidden;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      black 8%,
      black 92%,
      transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.artist-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.25s;
  flex-shrink: 0;
}

.artist-item:hover {
  transform: translateY(-4px);
}

.avatar {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  filter: grayscale(20%);
  transition: filter 0.25s, border-color 0.25s;
}

.artist-item:hover .avatar {
  filter: grayscale(0%);
  border-color: #444;
}

/* Custom glowing effect for Dora avatar */
.glow-dora {
  animation: glowPulseRed 3.5s ease-in-out infinite alternate;
}

@keyframes glowPulseRed {
  0% {
    box-shadow: 0 0 10px rgba(180, 20, 50, 0.4),
      0 0 25px rgba(220, 30, 80, 0.2);
    border-color: rgba(180, 20, 50, 0.5);
  }

  100% {
    box-shadow: 0 0 25px rgba(220, 20, 60, 0.8),
      0 0 45px rgba(255, 50, 100, 0.4);
    border-color: rgba(220, 20, 60, 0.9);
  }
}

.artist-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.artist-item:hover .artist-label {
  color: var(--text);
}

/* ─── YANDEX MUSIC EMBED ─────────────────────────────────── */
.ya-mus {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.ya-mus iframe {
  display: block;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--px) 3rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 520px) {
  .nav-links {
    gap: 1rem;
  }

  .now-playing-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
    gap: 0.35rem;
  }
}