:root {
  --color-deep-blue: rgba(18, 22, 38, 1);
  --color-gradient-deep-blue: linear-gradient(
    135deg,
    rgba(18, 22, 38, 1),
    rgba(28, 35, 50, 1)
  );
  --color-light-gray: rgba(170, 170, 170, 1);
  --color-dark-gray: rgba(60, 60, 60, 1);
  --color-dark-metallic: rgba(40, 40, 40, 1);
  --color-light-metallic: rgba(200, 200, 200, 0.7);
  --color-hover-gray: rgba(170, 170, 170, 0.9);
  --color-muted-white: rgba(200, 200, 200, 0.7);
  --color-silver: rgba(160, 160, 160, 1);
  --color-bright-white: rgba(255, 255, 255, 0.85);
  --color-translucent-dark-gray: rgba(70, 70, 70, 0.5);
  --color-metallic-gray: rgba(120, 120, 120, 1);
  --color-screen-text: rgba(40, 40, 40, 0.9);
}

body {
  font-family: "VT323", monospace;
  background-color: var(--color-deep-blue);
  background-image: var(--color-gradient-deep-blue);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.walkman {
  background: linear-gradient(
    135deg,
    var(--color-silver),
    var(--color-metallic-gray)
  );
  border: 1px solid var(--color-light-gray);
  border-radius: 0.5rem;
  width: 22rem;
  height: 13rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  box-shadow:
    0 0.8rem 1.5rem rgba(0, 0, 0, 0.6),
    inset 0 0.2rem 0.5rem rgba(255, 255, 255, 0.2);
  position: relative;
}

.walkman::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5rem;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  opacity: 0.3;
}

.screen {
  background-color: var(--color-translucent-dark-gray);
  border: 1px solid var(--color-light-gray);
  border-radius: 0.5rem;
  padding: 0.5rem;
  width: 90%;
  text-align: center;
  color: var(--color-screen-text);
  margin-bottom: 1rem;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  box-shadow: inset 0 0.2rem 0.5rem rgba(0, 0, 0, 0.8);
}

.screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.2)
  );
  opacity: 0.4;
  pointer-events: none;
}

#track-info {
  font-size: 1.2rem;
  display: inline-block;
  padding-left: 0;
  animation: none;
  transition: padding-left 0.3s ease;
}

.marquee {
  animation: marquee 24s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.volume-indicator {
  width: 90%;
  height: 0.5rem;
  background-color: var(--color-metallic-gray);
  border-radius: 0.25rem;
  margin: 0.5rem 0.75rem 0 0.75rem;
  position: relative;
}

#volume-bar {
  width: 50%;
  height: 100%;
  background-color: var(--color-dark-gray);
  transition: width 0.3s ease;
}

.controls-wrapper {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 90%;
  position: absolute;
  bottom: 1rem;
}

button {
  background-color: var(--color-dark-gray);
  border: none;
  padding: 0.75rem;
  border-radius: 0.3rem;
  cursor: pointer;
  margin: 0.3rem;
  box-shadow: 0 0.15rem 0.3rem rgba(0, 0, 0, 0.7);
}

.player-button {
  width: 1rem;
  height: 1rem;
}

button svg {
  fill: var(--color-light-metallic);
  transition: fill 0.3s ease;
}

button:hover svg {
  fill: var(--color-hover-gray);
}

footer {
  position: absolute;
  bottom: 1rem;
  text-align: center;
  width: 100%;
}

footer a {
  color: var(--color-muted-white);
  text-decoration: none;
}
