* {
  box-sizing: border-box;
  line-height: 1.5;
}

a {
  text-decoration: none;
}

/* 
body,
html {
    height: 100%;
}

html{

}
 */
/* p {
    //margin: 0;
} */
html {
  scroll-behavior: smooth;
}

.album-image-detail, .album-details, .track, .album, .media__image {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.075);
}

.bg__loading {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 4, 4, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s 0s, visibility 0s 0.3s;
}
.bg__loading .loading {
  border: 14px solid #ddd;
  border-top: 14px solid #1ED760;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
  animation-play-state: paused;
  opacity: 0.8;
}
.bg__loading--show {
  visibility: visible;
  opacity: 1;
}
.bg__loading--show .loading {
  animation-play-state: running;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
body {
  color: #222;
  font-size: 18px;
  margin: 0;
  background-color: #ece9e0;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  position: relative;
}

/* .main {
    //background-color: white;
} */
.section {
  background-color: white;
  padding-inline: 1rem;
  padding-bottom: 5rem;
  border-bottom: solid 1px #ccc;
}
@media screen and (min-width: 1024px) {
  .section {
    padding-inline: 6.5rem;
  }
}

.u-max-width {
  margin-inline: auto;
  max-width: 1260px;
}

.background {
  background-color: #1e2f1c;
  background-image: url(../images/home/bg-search.jpg);
  background-repeat: no-repeat;
  background-position: top center;
  background-attachment: fixed;
  overflow: hidden;
}

.circles__item {
  position: absolute;
  height: 450px;
  width: 450px;
  filter: blur(40px);
  opacity: 0.2;
}
.circles__item--one {
  top: -35%;
  left: 35%;
  background-image: radial-gradient(rgba(154, 153, 22, 0.5), rgba(29, 46, 28, 0) 70%);
}
.circles__item--two {
  bottom: -42%;
  right: -14%;
  background-image: radial-gradient(rgba(30, 215, 96, 0.4), rgba(29, 46, 28, 0) 70%);
}
.circles__item--threee {
  height: 300px;
  width: 300px;
  bottom: -50%;
  left: 0%;
  background-image: radial-gradient(rgba(123, 133, 77, 0.95), rgba(29, 46, 28, 0) 70%);
}
@media screen and (min-width: 1024px) {
  .circles__item {
    opacity: 0.8;
  }
}

.search-content {
  position: relative;
}

.search {
  min-height: 360px;
  width: 100%;
  padding: 0 0.75rem;
  margin-inline: auto;
  color: #f8ffcf;
  position: relative;
}
.search__logo {
  width: 34px;
  height: auto;
  margin-top: 2rem;
  vertical-align: super;
  transition: width 0.3s ease-in;
}
.search__logo-svg {
  fill: rgb(248, 255, 207);
  width: 200px;
  margin-left: 0.75rem;
  margin-top: 3.5rem;
  display: inline-block;
  transition: all 0.3s ease-in;
}
.search__info {
  font-size: 1rem;
  font-weight: 300;
  margin-block: 0.5rem 1.5rem;
}
.search__wrap {
  display: flex;
  height: 3rem;
}
.search__label {
  width: 100%;
  color: #1ED760;
  margin-bottom: 0.5rem;
  display: block;
}
.search__input {
  border: none;
  outline: solid 4px #20371d;
  border-radius: 4px 0 0 4px;
  width: 260px;
  padding: 0.25rem 1rem;
  margin-right: -4px;
  font-size: 18px;
}
.search__input:focus {
  outline: none;
}
.search__button {
  background-color: #1ED760;
  border: none;
  outline: solid 4px #20371d;
  border-radius: 0 4px 4px 0;
  color: #222;
  cursor: pointer;
  letter-spacing: 2px;
  padding: 0.7rem 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}
@media screen and (min-width: 768px) {
  .search {
    padding: 0 1rem;
  }
  .search__info {
    max-width: 50%;
    font-size: 18px;
  }
  .search__input {
    width: 260px;
  }
  .search__button {
    padding: 0.7rem 3.25rem;
  }
}
@media screen and (min-width: 1024px) {
  .search {
    min-height: 440px;
    padding: 0;
    width: 1060px;
  }
  .search__logo {
    width: 46px;
    margin-left: 1rem;
  }
  .search__logo-svg {
    width: 250px;
    margin-top: 5.5rem;
  }
  .search__wrap {
    display: inline-flex;
  }
  .search--active .search__logo-svg {
    width: 210px;
    padding-bottom: 0.25rem;
    margin-top: 4.5rem;
    cursor: pointer;
  }
  .search--active .search__logo {
    width: 42px;
    cursor: pointer;
  }
  .search--active .search__logo-svg:hover {
    fill: rgb(250, 255, 223);
    transform: scale(1.02);
  }
}
.search--active {
  min-height: 500px;
}

/* .slider:has(.slider__name:hover) {
    background-color: red;
} */
.slider {
  overflow: hidden;
  margin-block: 2rem 2rem;
  display: flex;
  position: relative;
  padding-bottom: 1rem;
}
.slider__track {
  display: flex;
  animation: 70s slide linear infinite;
  will-change: transform;
  padding: 0;
}
.slider__track:hover :not(:hover) img {
  filter: brightness(0.8);
}
.slider__item {
  width: 56vw;
  display: inline-block;
  vertical-align: middle;
  list-style-type: none;
  padding: 0.75rem 0.75rem 0;
  margin: 0 0.5rem;
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
  text-decoration: none;
}
.slider__item:hover {
  box-shadow: 0 10px 20px rgba(14, 22, 15, 0.2);
}
.slider__item:hover .slider__view-artist {
  visibility: visible;
  opacity: 1;
}
.slider__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 40vw;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  transition: filter 0.3s ease;
}
.slider__info {
  margin: 0;
  padding: 16px 24px 16px;
  font-size: 14px;
  color: #555;
}
.slider__name {
  margin: 0;
  font-weight: 600;
  text-transform: uppercase;
  color: #111;
}
.slider__view-artist {
  display: block;
  font-weight: 500;
  font-size: 16px;
  color: rgb(20.6326530612, 147.8673469388, 66.0244897959);
  padding: 16px 0 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  opacity: 0;
}
.slider:hover .slider__track {
  animation-play-state: paused;
}
@media screen and (min-width: 480px) {
  .slider__item {
    width: auto;
    margin: 0 1rem;
  }
  .slider__img {
    width: 240px;
    height: 170px;
    max-height: none;
  }
}
@media screen and (min-width: 1024px) {
  .slider {
    margin-block: 2.5rem 7.5rem;
  }
  .slider:before, .slider:after {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    content: "";
    z-index: 1;
  }
  .slider:before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), #ece9e0);
  }
  .slider:after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #ece9e0);
  }
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
/* .artists {
    --width-card: 260px;
    --quantity: 10;
    display: none;
    width: 100%;
    max-width: 1560px;
    margin-inline: auto;
    height: 200px;
    mask-image: linear-gradient(to right,
            transparent,
            #000 15% 85%,
            transparent);

    &__list {
        margin: 0;
        padding: 0;

        display: flex;
        width: 100%;
        min-width: calc(var(--width-card) * var(--quantity));
        position: relative;
    }

    &__item {
        list-style-type: none;
        width: var(--width-card);
        position: absolute;
        left: 100%;
        animation: autorun 60s linear infinite;
        animation-play-state: paused;
        animation-delay: calc((60s / var(--quantity)) * (var(--position) - 1) - 60s)
    }

    &__img {
        width: 100%;
        display: block;
    }
} 

[data-position='1']{--position:1} 
.artists__item:nth-child(1){--position:1} 
 */
.section-title {
  font-size: 2rem;
  margin-block: 0 2rem;
  padding-top: 4rem;
  font-weight: 400;
}

.artist-info {
  position: relative;
  margin-top: -120px;
  border-radius: 24px 24px 0 0;
  display: grid;
  grid-template-areas: "left center right-top" "left center right-bottom";
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  background-color: white;
}
.artist-info::after {
  content: "";
  grid-area: right-bottom;
  background-color: #e4ff9e;
  border-radius: 0 24px 0 0;
  position: relative;
}
.artist-info + .section {
  min-height: 365px;
}
.artist-info + .section + .section {
  min-height: 676px;
}
@media screen and (min-width: 768px) {
  .artist-info {
    margin-top: -200px;
    grid-template-columns: 1fr 280px 40px;
    grid-template-rows: 160px 1fr;
    background-color: transparent;
  }
}
@media screen and (min-width: 1024px) {
  .artist-info {
    margin-top: -220px;
    grid-template-columns: 1fr 300px 80px;
  }
}

.info {
  grid-column: 1/3;
  grid-row: 1/2;
  background-color: #e4ff9e;
  padding: 2rem 1rem;
  border-radius: 1.5rem;
  align-content: center;
}
.info__name {
  font-size: 3rem;
  color: rgb(5.0204081633, 35.9795918367, 16.0653061224);
  text-align: right;
  margin: 0;
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 0.25rem;
  text-wrap-style: balance;
}
.info__followers, .info__popularity {
  display: block;
  text-align: right;
}
@media screen and (min-width: 768px) {
  .info {
    grid-row: 2/3;
    grid-column: 1/2;
    padding: 3rem;
    border-radius: 1.5rem 0 0 0;
  }
  .info__name {
    font-size: 3rem;
  }
}
@media screen and (min-width: 1024px) {
  .info {
    padding: 3.75rem 2rem 3.75rem 5rem;
  }
  .info__name {
    font-size: 4rem;
  }
}

.media {
  position: relative;
  grid-row: 2;
  grid-column: span 2;
  align-self: end;
}
.media__image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 24px;
  display: block;
}
.media__play {
  position: absolute;
  right: 16px;
  bottom: -25px;
  width: 75px;
  height: 75px;
  overflow: hidden;
  background-image: url(../images/play.png);
  background-size: 100%;
  outline: solid 8px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}
.media__play audio {
  opacity: 0;
  transform: scale(2.5);
  transform-origin: 18px 18px;
}
.media__play--active {
  background-image: url(../images/pause.png);
}
@media screen and (min-width: 768px) {
  .media {
    position: relative;
    top: 50px;
    grid-row: span 2;
    grid-column: span 1;
    align-self: end;
  }
  .media__image {
    height: 340px;
    object-position: center;
  }
  .media__play {
    bottom: 16px;
  }
}
@media screen and (min-width: 1024px) {
  .media__image {
    height: 350px;
  }
}

.artist-bio__text {
  line-height: 1.6;
  white-space: pre-line;
  text-wrap-style: pretty;
}
@media screen and (min-width: 768px) {
  .artist-bio__text {
    line-height: 1.75;
    max-width: 78%;
  }
}

.tag {
  background-color: #111;
  display: inline-block;
  font-size: 1rem;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 1rem 0.5rem 0 0;
}

.artist-albums {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media screen and (min-width: 480px) {
  .artist-albums {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (min-width: 768px) {
  .artist-albums {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (min-width: 1024px) {
  .artist-albums {
    gap: 3rem;
  }
}

.album {
  border: solid 1px #eee;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.album__info {
  padding: 1rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
}
.album__image {
  width: 100%;
  aspect-ratio: 1/1;
  display: block;
  margin: 0;
  max-height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
  transform-origin: center center;
}
.album__name {
  font-size: 1.2rem;
  margin: 0.5rem 0 0.25rem;
  line-height: 1.4;
  font-weight: 500;
}
.album__year {
  padding: 1.5rem 1rem;
  font-size: 1rem;
  color: #30421a;
  line-height: 1;
  background-color: #effccf;
}
.album__tracks {
  color: rgb(21.8816326531, 156.8183673469, 70.0212244898);
  font-size: 1rem;
  margin: 0;
}
.album__link {
  font-size: 1rem;
  transition: opacity 0.3s ease;
  margin-top: auto;
  display: none;
  /* flex-grow: 1; 
   align-content: flex-end;*/
}
.album:hover .album__link {
  visibility: visible;
  opacity: 1;
}
.album:hover .album__image {
  transform: scale(1.05);
  cursor: pointer;
}

/* #artist-albums:hover :not(:hover).album {
    box-shadow: none;    
 } */
.similar-music {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
  min-height: 813px;
  margin-bottom: 2rem;
}

.track {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  border: solid 1px #ddd;
  border-radius: 16px;
  min-height: 128px;
}
.track__order {
  width: 9%;
  background-color: #effccf;
  align-self: stretch;
  align-content: center;
  text-align: center;
  color: #3e5721;
  font-weight: 400;
  font-size: 1rem;
  border-radius: 1rem 0 0 0;
}
.track__image {
  width: 28%;
  object-fit: cover;
  align-self: stretch;
}
.track__info {
  width: 62%;
  padding: 1rem;
}
.track__name {
  display: block;
  font-weight: 500;
}
.track__artist {
  color: rgb(21.8816326531, 156.8183673469, 70.0212244898);
  font-weight: 500;
}
.track__album {
  display: block;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track__audio {
  width: 100%;
  padding-inline: 1rem;
  border-top: solid 1px #ddd;
  align-self: stretch;
  align-content: center;
  background-color: white;
  padding-block: 1.5rem 1rem;
  border-radius: 0 0 1rem 1rem;
}
.track__audio audio {
  width: 100%;
}
@media screen and (min-width: 768px) {
  .track {
    flex-wrap: nowrap;
  }
  .track__order {
    font-size: 1.25rem;
    border-radius: 1rem 0 0 1rem;
    width: 6%;
  }
  .track__image {
    width: 14%;
  }
  .track__info {
    width: 35%;
    padding: 1.75rem;
  }
  .track__audio {
    width: 45%;
    border-top: none;
    border-left: solid 1px #ddd;
    padding-block: 0;
    padding-inline: 2rem;
    border-radius: 0 1rem 1rem 0;
  }
  .track__audio audio {
    transform: scale(1.05);
  }
}
@media screen and (min-width: 1024px) {
  .track__order {
    width: 7%;
  }
  .track__image {
    width: 13%;
  }
  .track__info {
    width: 44%;
  }
  .track__audio {
    width: 35%;
  }
  .track__audio audio {
    transform: scale(1.05);
  }
}

/* .bg-album-details{
    //content: "";
    background-color: #090909ad;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    z-index: 1;
    position: absolute;
}
 */
.wrap-album-details {
  width: 100vw;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
}

.album-details {
  position: relative;
  background-color: white;
  border-radius: 24px;
  width: 98%;
  height: 98%;
  max-width: 1260px;
  overflow: auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding: 3rem 1rem;
}
.album-details:before {
  content: "";
  height: 50%;
  width: 100%;
  background-color: #f1fbd9;
  position: absolute;
}
@media screen and (min-width: 768px) {
  .album-details {
    width: 95%;
    height: auto;
    overflow: hidden;
    grid-template-columns: 1fr 1fr;
  }
  .album-details:before {
    height: 100%;
    width: 49.5%;
    background-color: #f6ffe1;
  }
}
@media screen and (min-width: 1024px) {
  .album-details {
    gap: 1rem 6rem;
    grid-template-columns: 500px 1fr;
    padding: 3.75rem 4rem 4rem;
  }
}

.album-info {
  grid-column: 1;
  width: 85%;
  position: relative;
}
.album-info__name {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}
.album-info__artist {
  color: rgb(20.6326530612, 147.8673469388, 66.0244897959);
  font-size: 1.25rem;
  font-weight: 500;
  display: block;
}
.album-info__close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 45px;
  height: 45px;
  line-height: 1;
  display: block;
  font-size: 1.6rem;
  background: #1d341d;
  color: white;
  border-radius: 50%;
  border: none;
  font-weight: 400;
}
@media screen and (min-width: 768px) {
  .album-info {
    width: 80%;
    grid-column: span 2;
  }
  .album-info__name {
    font-size: 2.25rem;
  }
  .album-info__close {
    right: 1rem;
    top: 1rem;
  }
}

.album-image-detail {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  padding: 1rem;
  border-radius: 28px;
  background-color: white;
}

.album-tracks {
  position: relative;
  margin-top: 1rem;
  max-height: 454px;
  color: #222;
}
@media screen and (min-width: 768px) {
  .album-tracks {
    overflow-y: auto;
  }
}

.album-tracks-title {
  font-weight: 600;
  position: relative;
}

.track-detail {
  display: flex;
  font-size: 1rem;
}
.track-detail__number {
  border: solid 1px #c9cfc6;
  color: #545754;
  font-weight: 400;
  align-items: center;
  justify-content: center;
  display: flex;
  width: 40px;
  height: 40px;
  padding: 0.4rem 1rem;
  border-radius: 100%;
}
.track-detail__name {
  width: 91%;
  padding: 0.4rem 1.5rem;
  border-bottom: solid 1px #e6e6e6;
}
.track-detail:last-child .track-detail__name {
  border: none;
}

.error-inside {
  grid-column: span 2;
}

.error {
  background-color: white;
  margin-top: 2rem;
  border-radius: 24px;
  padding-inline: 7.5rem;
  padding-block: 6rem;
}
.error__title {
  font-size: 1.5rem;
  color: #dd744b;
}
.error__message {
  font-weight: 600;
}

.u-hide {
  display: none;
}

.u-hide-scroll {
  overflow: hidden;
}
