:root {
  --text: #f4f4f5;
  --muted: #9ca3af;
  --panel: rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #000;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.bg,
.bg-tint {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.bg {
  background: center / cover no-repeat url("/purple/assets/background.webp");
}

.bg-tint {
  background: radial-gradient(ellipse at center, transparent, rgba(0, 0, 0, 0.55));
}

/* Enter gate */
#gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: opacity 0.5s ease;
}

#gate span {
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  animation: blink 2s ease-in-out infinite;
}

#gate.open {
  opacity: 0;
  pointer-events: none;
}

@keyframes blink {
  50% { opacity: 0.4; }
}

/* Card */
.card {
  width: 100%;
  max-width: 340px;
  padding: 28px 24px 22px;
  text-align: center;
  background: rgba(20, 20, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: rise 0.5s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
}

.avatar {
  position: relative;
  width: 104px;
  margin: 0 auto 14px;
}

.avatar img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.14);
}

.dot {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
  border: 3px solid #141416;
}

h1 {
  font-size: 30px;
  letter-spacing: -0.02em;
}

.links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 14px 0 20px;
}

.links a {
  color: #fff;
  opacity: 0.85;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.links svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Player */
.player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 18px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.cover {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.track {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.title,
.artist {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.title {
  font-size: 13px;
  font-weight: 600;
}

.artist {
  font-size: 12px;
  color: var(--muted);
}

.toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.15s ease;
}

.toggle:hover {
  background: rgba(255, 255, 255, 0.18);
}

.toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.toggle .pause,
.toggle.playing .play {
  display: none;
}

.toggle.playing .pause {
  display: block;
}

.volume {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume svg {
  width: 16px;
  height: 16px;
  fill: var(--muted);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

