@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  color: #fff;
  font-family: Inter, system-ui, sans-serif;
  background: #070707;
  overflow-x: hidden;
}
.backdrop {
  position: fixed;
  inset: -10%;
  background:
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.92)),
    url("assets/cover.png") center / cover no-repeat;
  filter: blur(34px) saturate(1.35);
  transform: scale(1.15);
  opacity: .62;
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255,116,0,.20), transparent 45%),
              rgba(0,0,0,.55);
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index: 5;
}
.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 18px;
}
.player-card {
  width: min(470px, 100%);
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  background: rgba(10,10,10,.64);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: visible;
}
.cover-wrap img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
  z-index: 2;
  box-shadow: 0 25px 60px rgba(0,0,0,.48);
  transition: transform .5s ease;
}
.player-card.playing .cover-wrap img { transform: scale(1.015); }
.cover-glow {
  position: absolute;
  inset: 10%;
  background: url("assets/cover.png") center / cover;
  filter: blur(38px);
  opacity: .42;
  z-index: 1;
}
.meta { padding: 24px 2px 8px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .24em;
  color: #ff7514;
}
h1 {
  margin: 0;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1;
  letter-spacing: -.055em;
}
.artists {
  margin: 10px 0 0;
  color: rgba(255,255,255,.58);
  font-size: 14px;
}
.visualizer {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 12px 0 4px;
}
.visualizer i {
  display: block;
  width: 3px;
  height: 8px;
  border-radius: 99px;
  background: #ff7514;
  opacity: .7;
}
.player-card.playing .visualizer i {
  animation: bars .75s ease-in-out infinite alternate;
}
.player-card.playing .visualizer i:nth-child(2n) { animation-delay: -.18s; }
.player-card.playing .visualizer i:nth-child(3n) { animation-delay: -.35s; }
.player-card.playing .visualizer i:nth-child(4n) { animation-delay: -.52s; }
@keyframes bars { to { height: 26px; opacity: 1; } }

.timeline {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.46);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
input[type=range] {
  width: 100%;
  accent-color: #ff7514;
  cursor: pointer;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 12px 0 20px;
}
button {
  border: 0;
  color: #fff;
  cursor: pointer;
}
.play-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #ff7514;
  color: #080808;
  font-size: 21px;
  box-shadow: 0 12px 30px rgba(255,117,20,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.play-btn:hover { transform: scale(1.06); box-shadow: 0 16px 38px rgba(255,117,20,.38); }
.small-btn {
  background: transparent;
  color: rgba(255,255,255,.65);
  font-size: 12px;
  min-width: 42px;
}
.spotify {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 15px;
  background: #fff;
  color: #080808;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  transition: transform .2s ease, opacity .2s ease;
}
.spotify:hover { transform: translateY(-2px); opacity: .92; }
.spotify-icon { font-size: 12px; color: #1ed760; }
.arrow { margin-left: auto; font-size: 17px; }
.credit {
  margin: 18px 0 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
}
@media (max-width: 520px) {
  .page { padding: 18px 12px; }
  .player-card { padding: 16px; border-radius: 24px; }
  .cover-wrap, .cover-wrap img { border-radius: 18px; }
  .meta { padding-top: 20px; }
}
