:root {
  --background-color: #f5fafa;
  --section-albums-background-color: #ecf1f1;
  --header-color: rgba(31, 34, 37, 0.95);
  --hero-img-color: rgba(47, 47, 47, 0.4);
  --music-player-color: rgba(13, 13, 13, 0.923);
  --theme-btn-background-color: #1a1a1a;
  --theme-btn-button-color: #5b6268;
  --theme-btn-hover: #f8f9fa;
  --font-color: #000;
  --album-card-color: #f5fafa;
  --album-link-hover: rgba(16, 84, 201, 0.9);
  --footer-color: #dce3e2;
}

.darkmode {
  --background-color: rgba(11, 11, 11, 0.991);
  --section-albums-background-color: rgb(19, 19, 19);
  --header-color: rgba(31, 34, 37, 0.99);
  --hero-img-color: rgba(47, 47, 47, 0.4);
  --music-player-color: rgba(31, 34, 37, 0.89);
  --theme-btn-background-color: #0e0f11;
  --theme-btn-button-color: #dfe0e1;
  --theme-btn-hover: #ffe066;
  --font-color: #f5fafa;
  --album-card-color: rgba(31, 34, 37, 0.89);
  --album-link-hover: rgb(210, 227, 255);
  --footer-color: #1a1a1a;
}

/* HEADER */

.header {
  background-color: var(--header-color);
  padding: 1.2rem 0;
}

.header-img {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-img img {
  width: 4rem;
  height: 4rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 1.6rem;
}

/* THEME BUTTON */
.btn-theme {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  border: none;
  padding: 0.8em 2em;
  background-color: transparent;
  color: white;
  border-radius: 0.5rem;
  font: inherit;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
}

#theme-switch {
  height: 4rem;
  width: 4rem;
  padding: 0;
  /* border-radius: 50%; */
  background-color: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  /* position: fixed; */
  /* top: 20px; */
  /* right: 20px; */
}

#theme-switch svg {
  fill: var(--theme-btn-button-color);
}
#theme-switch svg:hover {
  fill: var(--theme-btn-hover);
}
#theme-switch svg:last-child {
  display: none;
}
.darkmode #theme-switch svg:first-child {
  display: none;
}
.darkmode #theme-switch svg:last-child {
  display: block;
}

.cover {
  padding: 10em 0;
  background-size: cover;
  background-position: center center;
}

/* SECTION HERO */
.section-hero {
  position: relative;
  /* background-image: linear-gradient(var(--hero-img-color)),
    url(/images/hero/bg4.jpg); */
  height: 50vh;
  padding: 4.8rem 0 9.6rem 0;
  box-shadow: 0px 0.3rem 1rem rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.section-hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  /* min-width: 100%; */
  /* height: 50rem; */
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

.hero {
  /* position: relative; */
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 3.2rem;
  display: flex;
  /* gap: 9.6rem; */
  align-items: center;
  justify-content: center;
}

.hero-title {
  position: absolute;
  font-size: 4.8rem;
  letter-spacing: 0.5rem;
  color: #f5fafa;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.vinyl-img {
  width: 50rem;
  height: 50rem;
  /* filter: brightness(70%); */
}

/* SECTION ONE */

.cover-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  /* z-index: -1; */
}

.section-player {
  /* background-color: var(--background-color); */
  height: 65rem;
  position: relative;
  z-index: 9;
}

.list {
  display: flex;
  font-size: 2rem;
  flex-direction: column;
  gap: 0.5rem;
  color: #f5fafa;
  cursor: pointer;
}

.list li {
  list-style: none;
  padding: 1rem 2rem;
  /* padding: 0.3rem 0.2rem; */
}

.tracklist-box {
  background-color: #343434;
  width: 100%;
  height: 100%;
  border-radius: 0.8rem;
}

.active {
  background-color: rgba(16, 84, 201, 0.4);
  border-radius: 1rem;
  padding: 1rem 2rem;
}

.list:hover {
  background-color: rgba(16, 84, 201, 0.15);
}

.music-player-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8rem;
  /* padding: 10rem 0; */
  z-index: 999;
}

.music-player-background {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 50rem;
  border-radius: 0.8rem;
  background-color: var(--music-player-color);
}

.music-player {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  width: 85%;
  /* background-color: rgba(0, 0, 0, 0.2); */
  /* padding: 2rem 1rem; */
}

.img-now {
  display: flex;
  align-items: center;
  gap: 5.5rem;
  margin-top: 2rem;
  height: 15rem;
}

.track-description {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #f5fafa;
  gap: 1.2rem;
}

.track-name {
  font-size: 3.2rem;
  z-index: 2;
}

.artist-name {
  font-size: 2rem;
  z-index: 2;
}

.player-cover {
  position: absolute;
  left: 0;
  width: 100%;
  height: 20rem;
  border-radius: 0.8rem;
  object-fit: cover;
  filter: brightness(95%);
  z-index: 1;
}

.controls {
  display: flex;
  align-items: center;
  gap: 5rem;
  z-index: 2;
}

.music-input {
  /* width: 100%; */
  height: 0.6rem;
  /* appearance: none; */
  background: #f5fafa;
  border-radius: 999rem;
  z-index: 2;
}
/* .music-input::-webkit-slider-thumb {
  appearance: none;
  width: 0;
  height: 0;
}
.music-input::-webkit-slider-runnable-track {
  height: 0.6rem;
  background: linear-gradient(
    90deg,
    var(--accent) var(--pct, 0%),
    rgba(255, 255, 255, 0.12) 0%
  );
} */

.control-button button {
  background-color: rgba(68, 68, 68, 0.818);
  color: #f5fafa;
  border: 0;
  border-radius: 1rem;
  cursor: pointer;
}

.progress {
  width: 50rem;
}

.time {
  display: flex;
  font-size: 1.4rem;
  color: #f5fafa;
  justify-content: center;
  align-items: center;
}

.time-mobile {
  display: none;
  font-size: 1.4rem;
  color: #f5fafa;
  justify-content: space-between;
  align-items: center;
}

.volume {
  width: 12rem;
}

.control-button {
  display: flex;
  gap: 0.3rem;
}

.control-button button {
  width: 5rem;
  height: 3rem;
}
.control-button-mobile {
  display: none;
  gap: 0.3rem;
}

.control-button-mobile button {
  background-color: rgb(228, 235, 252);
  /* border: 0; */
  width: 5rem;
  height: 3rem;
}

.control-button-mobile .prev,
.control-button-mobile .next {
  border: 0;
  width: 5rem;
  height: 5rem;
  background-color: transparent;
}

/* SECTION ALBUMS */

.section-albums {
  background-color: var(--section-albums-background-color);
  height: 65rem;
}

.albums-box {
  display: flex;
  /* justify-content: flex-start; */
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.album-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--album-card-color);
  padding: 2rem;
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.12);
}

.album-link {
  text-decoration: none;
}

.album-link h3:hover {
  color: var(--album-link-hover);
}

.album-img {
  width: 23rem;
  height: 25rem;
  object-fit: cover;
}

.album-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  letter-spacing: 0.03rem;
  gap: 1rem;
}

.album-date {
  letter-spacing: 0.03rem;
  font-size: 2rem;
  font-weight: 600;
  color: var(--font-color);
}

/* FOOTER */

.footer {
  text-align: center;
  color: var(--font-color);
  background-color: var(--footer-color);
  padding: 2.5rem;
  box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.05),
    inset 0 0.1em 0.1em 0 rgba(0, 0, 0, 0.025);
  font-size: 1.4rem;
}

.footer li {
  list-style: none;
}
/* .footer .copyright {
  cursor: default;
  margin: 0;
} */
