/* New Year Countdown 2027 (BKL-1997). Same layout as the 2026 countdowns, in the dark site style:
   a midnight-navy shell with gold and silver fireworks. */
.new-year-countdown-page {
  overflow-x: hidden;
}

.new-year-shell {
  max-width: 1100px;
  margin: 32px auto 42px;
  padding: 30px;
  border: 1px solid rgba(245, 197, 66, 0.34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 22, 52, 0.97), rgba(4, 7, 20, 0.98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), 0 0 28px rgba(245, 197, 66, 0.14);
}

.countdown-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(200px, 0.7fr);
  gap: 28px;
  align-items: center;
}

.countdown-kicker {
  margin: 0 0 10px;
  color: #f5c542;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.countdown-copy h1 {
  margin: 0;
  color: #fdf8ea;
  font-size: clamp(2rem, 6vw, 3.8rem);
  line-height: 1.05;
  text-shadow: 0 0 22px rgba(245, 197, 66, 0.45);
}

.countdown-intro {
  margin: 16px 0 0;
  color: #dfe3f0;
  font-size: 1.08rem;
  line-height: 1.6;
}

.spotlight-art {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  justify-self: center;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.countdown-status {
  margin: 28px 0 14px;
  color: #b9c0d8;
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.countdown-unit {
  padding: 18px 10px;
  text-align: center;
  border: 1px solid rgba(245, 197, 66, 0.3);
  border-radius: 8px;
  background: rgba(3, 6, 18, 0.72);
}

.countdown-number {
  color: #ffd76a;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
}

.countdown-label {
  margin-top: 8px;
  color: #dfe3f0;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.countdown-complete {
  grid-column: 1 / -1;
  padding: 18px 10px;
  text-align: center;
}

.countdown-complete h2 {
  margin: 0 0 8px;
  color: #ffd76a;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
  text-shadow: 0 0 22px rgba(245, 197, 66, 0.5);
}

.countdown-complete p {
  margin: 0;
  color: #e6e9f4;
  font-size: clamp(1.2rem, 3.4vw, 1.8rem);
  font-weight: 700;
}

.song-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(245, 197, 66, 0.2);
}

.song-spotlight h2 {
  margin: 0 0 12px;
  color: #fdf8ea;
  font-size: clamp(1.35rem, 3.2vw, 2.2rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.song-spotlight p {
  margin: 0 0 16px;
  color: #dfe3f0;
  line-height: 1.6;
}

.listen-links,
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.listen-link {
  display: inline-block;
  padding: 10px 16px;
  color: #1a1405;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #ffe08a, #e0a91f);
  border-radius: 8px;
}

.related-links a {
  color: #ffd76a;
}

.youtube-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000000;
}

.youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Fireworks: a radial ring of sparks that expands and fades. Decoration only. */
.firework {
  position: fixed;
  z-index: 9999;
  width: var(--burst-size, 140px);
  height: var(--burst-size, 140px);
  margin: calc(var(--burst-size, 140px) / -2) 0 0 calc(var(--burst-size, 140px) / -2);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: firework-burst 1.6s ease-out forwards;
}

.firework--gold {
  background: radial-gradient(circle, rgba(255, 215, 106, 0) 0 34%, rgba(255, 215, 106, 0.95) 35% 38%, rgba(255, 215, 106, 0) 39% 52%, rgba(245, 170, 40, 0.75) 53% 55%, rgba(255, 215, 106, 0) 56%);
}

.firework--silver {
  background: radial-gradient(circle, rgba(230, 236, 250, 0) 0 34%, rgba(230, 236, 250, 0.95) 35% 38%, rgba(230, 236, 250, 0) 39% 52%, rgba(190, 200, 225, 0.75) 53% 55%, rgba(230, 236, 250, 0) 56%);
}

@keyframes firework-burst {
  0% {
    opacity: 1;
    transform: scale(0.1);
  }
  70% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .firework {
    display: none;
  }
}

@media (max-width: 767px) {
  .new-year-shell {
    padding: 20px;
  }
  .countdown-hero,
  .song-spotlight {
    grid-template-columns: 1fr;
  }
  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
