:root {
  color-scheme: light;
  --bg: linear-gradient(135deg, #f5d48d 0%, #d8943a 100%);
  --card-bg: rgba(255, 247, 229, 0.9);
  --card-border: rgba(227, 163, 55, 0.55);
  --text-main: #593218;
  --text-subtle: #a36c2e;
  --accent: #c6621f;
  --accent-dark: #8d3e0f;
  --highlight: #efb34f;
  --shadow: 0 22px 55px rgba(145, 83, 20, 0.28);
  --status-error: #b63a1f;
}

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

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  position: relative;
  z-index: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.32) 0, rgba(255, 255, 255, 0.32) 14%, transparent 15%), radial-gradient(circle at 78% 82%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 12%, transparent 13%);
  background-size: 240px 240px;
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}

.page {
  width: min(100%, 480px);
  padding: 24px;
}

.player-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.player-card__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 179, 79, 0.2);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1;
  padding: 6px 14px;
  border-radius: 999px;
}

h1 {
  margin: 0;
  font-size: clamp(1.6rem, 5vw, 2rem);
}

.player-card__header p {
  margin: 0;
  font-size: clamp(0.9rem, 4vw, 1rem);
  color: var(--text-subtle);
}

.player-card__thumbnail {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #623018;
  box-shadow: 0 18px 45px rgba(98, 48, 24, 0.35);
}

.player-card__thumbnail img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: contain;
}

.player-card__controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.time {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-subtle);
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(198, 98, 31, 0.35) 100%);
  border-radius: 999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffe7c0;
  box-shadow: 0 2px 6px rgba(198, 98, 31, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #ffe7c0;
  box-shadow: 0 2px 6px rgba(198, 98, 31, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover,
input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.05);
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.buttons button {
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  width: 52px;
  height: 52px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#rewind {
  background: rgba(240, 182, 89, 0.32);
  color: var(--accent-dark);
  border: 1px solid rgba(239, 179, 79, 0.55);
}

#playPause {
  background: var(--accent);
  color: #fff7e6;
  box-shadow: 0 15px 30px rgba(198, 98, 31, 0.35);
}

.buttons button:active {
  transform: scale(0.95);
}

@media (hover: hover) {
  #playPause:hover {
    transform: translateY(-3px);
  }

  #rewind:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 480px) {
  .page {
    padding: 20px 16px;
  }

  .player-card {
    padding: 24px 18px;
  }

  .buttons {
    gap: 14px;
  }

  .buttons button {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}
