/* Images created by: https://unsplash.com/@pawel_czerwinski */

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: radial-gradient(
    circle at top,
    #7b8cff 0%,
    #3949ab 45%,
    #121a38 100%
  );
  color: #111827;
  font-family: 'League Spartan', sans-serif;
}

.player-shell {
  width: min(100%, 420px);
  padding: 20px;
}

.player-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.art-frame {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #5e5ce6 0%, #4cc0ff 100%);
}

.art-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.art-frame:hover img {
  transform: scale(1.05);
}

.track-meta {
  padding: 24px 24px 0;
  text-align: center;
}

.track-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  line-height: 1.05;
}

p {
  margin: 10px 0 0;
  color: #546187;
  font-size: 1rem;
}

.progress-group {
  padding: 22px 24px 0;
}

.progress-container {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.14);
  cursor: pointer;
  overflow: hidden;
}

.progress-track {
  position: absolute;
  inset: 0;
  background: rgba(100, 116, 139, 0.14);
}

.progress-bar {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, #5e5ce6, #3b82f6);
  border-radius: 999px;
  transition: width 0.12s ease;
}

.time-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #64748b;
  font-size: 0.85rem;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.control-btn {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: #f8fbff;
  color: #334155;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.control-btn:hover {
  transform: translateY(-2px);
  background: #eff6ff;
}

.control-btn.primary {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #5e5ce6, #3b82f6);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.32);
}

.control-btn.primary:hover {
  transform: translateY(-3px);
}

.footer-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px 24px;
  color: #475569;
  font-size: 0.95rem;
}

.footer-panel span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@media screen and (max-width: 420px) {
  .player-card {
    border-radius: 28px;
  }

  .control-btn {
    width: 50px;
    height: 50px;
  }

  .control-btn.primary {
    width: 64px;
    height: 64px;
  }
}
