@font-face {
  font-family: "Trebuchet MS";
  src: local("Trebuchet MS"), url("./trebuchetms.ttf") format("truetype");
}

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

:root {
  --border-radius: 15px;

  font: 16px/1.2 "Trebuchet MS", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  height: 100dvh;
  background: whitesmoke;
}

.player {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 6dvw, 35px);
  width: clamp(300px, 90dvw, 480px);
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0px 0px 35px 10px rgb(230, 230, 230);
}

.player__header {
  display: none;
  margin-bottom: 15px;
}

.player__cover {
  margin-bottom: 15px;
  width: 100%;
  border-radius: var(--border-radius);
}

.player__title {
  margin-bottom: 5px;
  font-size: 24px;
}

.player__author {
  margin-bottom: 20px;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.5);
}

.player__progress {
  margin-bottom: 5px;
  width: 100%;
  height: 8px;
  accent-color: black;
  border-radius: 5px;
  cursor: pointer;
}

.player__progress::-webkit-slider-thumb {
  transition: scale 0.1s linear;
}

.player__progress::-webkit-slider-thumb:active {
  scale: 1.5;
}

.player__time {
  margin-bottom: 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: rgba(0, 0, 0, 0.5);
}

.player__buttons {
  display: flex;
  gap: 15px;
}

.player__button {
  width: 50px;
  height: 50px;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.2s linear;
}

.player__button_play {
  background: url(./img/play.png) no-repeat center/50%;
}

.player__button_pause {
  background: url(./img/pause.png) no-repeat center/50%;
}

.player__button_prev {
  background: url(./img/back.png) no-repeat center/50%;
}

.player__button_next {
  background: url(./img/next.png) no-repeat center/50%;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__text {
  display: flex;
  font-size: 14px;
}

.footer__link,
.footer__copyright,
.footer__logo {
  opacity: 0.5;
  transition: opacity 0.3s linear;
}

a:link {
  color: inherit;
  text-underline-offset: 4px;
}

a:visited {
  color: inherit;
}

@media (hover: hover) {
  .player__button:hover {
    background-color: whitesmoke;
  }

  .footer__link:hover,
  .footer__logo:hover {
    opacity: 1;
  }
}

@media (hover: none) and (pointer: coarse) {
  .player__button:active {
    background-color: whitesmoke;
  }

  .footer__link:active,
  .footer__logo:active {
    opacity: 1;
  }
}
