
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #080808;
  --text: #f5f5f5;
  --muted: #888;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* HEADER */

.header {
  padding: 35px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -2px;
}

.domain {
  font-size: 12px;
  color: var(--muted);
}

/* MAIN */

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 140px;
}

.content {
  text-align: center;
  animation: fadeIn 1.2s ease both;
}

h1 {
  font-size: clamp(55px, 12vw, 125px);
  font-weight: 800;
  letter-spacing: -.085em;
  line-height: 1.2;
}

h1 span {
  color: #777;
}

/* SOCIALS */

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 35px;
}

.socials a {
  font-size: 13px;
  color: var(--muted);
  transition: color .25s ease;
}

.socials a:hover {
  color: white;
}

/* MUSIC PLAYER */

.music-player {
  position: fixed;
  z-index: 10;
  bottom: 65px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  background: #171717;
  border: 1px solid #292929;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.album-art {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #222 0px,
    #222 3px,
    #333 4px,
    #171717 6px
  );
  display: grid;
  place-items: center;
}

.album-art.spinning {
  animation: rotate 5s linear infinite;
}

.record-center {
  width: 12px;
  height: 12px;
  background: #aaa;
  border: 3px solid #111;
  border-radius: 50%;
}

.track-details {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.track-details strong {
  font-size: 12px;
}

.track-details span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.play-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #eee;
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.play-button svg {
  width: 20px;
  height: 20px;
}

.pause-icon {
  display: none;
}

.play-button.playing .play-icon {
  display: none;
}

.play-button.playing .pause-icon {
  display: block;
}

.music-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 80px;
}

.music-progress span {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  background: #444;
  height: 3px;
  border-radius: 5px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: white;
  border: none;
  border-radius: 50%;
}

#progress {
  width: 100%;
}

#volume {
  width: 65px;
}

/* FOOTER */

footer {
  padding: 0 20px 20px;
  text-align: center;
  color: #555;
  font-size: 10px;
  letter-spacing: 2px;
}

/* ANIMATIONS */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .header {
    padding: 25px 6%;
  }

  .socials {
    gap: 20px;
  }

  .socials a {
    font-size: 12px;
  }

  .music-player {
    bottom: 45px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }

  .track-details {
    flex: 1;
    min-width: 0;
  }

  .music-progress {
    order: 4;
    flex-basis: 100%;
  }

  #volume {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
