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

:root {
  --color-logo: #0cacd7;
  --color-bg-dark: #222222;
  --color-bg-gray: #2b2b2b;
  --color-white: #ffffff;
  --color-light-gray: #949494;
  --color-bg-input: #464646;

  --height-header: 6.813rem; /* (109px) or 14.361% */
}

a {text-decoration: none; color: inherit;}

img {
  width: 100%;
  border: 2px solid rgba(204, 204, 204, 0.1);
}

input[type="search"] {
  border: 1px solid var(--color-bg-gray);
  border-radius: 4px;
  padding-inline: 2.25rem 1rem;
  
  height: 2.25rem;
  width: 21.5rem;

  font-size: 1rem;
  color: var(--color-white);
  
  background: var(--color-bg-input) 
    url("../img/magnifying-glass-regular-full.svg") 
    no-repeat 10px center;
  background-size: 16px;
}

.dark-btn {
  color: var(--color-white);
  background-color: transparent;
  border: 1px solid var(--color-white);
}

.btn-empty {
  color: inherit;
  border: 0;
  background-color: transparent;
}

/* Utilities */

.container {
  max-width:1800px;
  margin: 0 auto;
}

.overflow-auto-y {
  overflow-y: auto;
  height: 100%;
}

.d-flex {display: flex;}
.flex-direction-c {flex-direction: column;}
.flex-1 {flex: 1;}
.flex-wrap {flex-wrap: wrap;}
.gap-1 {gap:1rem;}
.gap-12px {gap:12px;}
.justify-content-sb {justify-content: space-between;}
.justify-content-se {justify-content: space-evenly;}
.justify-content-c {justify-content: center;}
.align-items-c {align-items: center;}
.padding-inline {padding-inline: 2rem;}
.margin-top {margin-top: 1.5rem;}



/* *** BODY *** */

body {
  width:100vw;
  height: 100vh;
  overflow: hidden;

  font-family: Arial, Helvetica, sans-serif;
  color: var(--color-white);
  background-color: var(--color-bg-dark);
}

/* *** HEADER *** */

header {
  height: var(--height-header);

  .topbar-container {height:100%;}
}

#topbar,
#filter-search-container {width:100%;}

#topbar {
  padding-inline: 2rem;

  svg path:first-child {
    fill: var(--color-logo);
  }
  
  svg path:last-child {
    fill: var(--color-white);
  }

  .dark-btn {border:0; font-size: 1rem;}

  button {
    padding-inline: 1rem;
    height: 100%;
  }
}

#filter-search {
  background-color: var(--color-bg-gray);

  input {
    border-radius: 16px;
    border: 1px solid var(--color-light-gray);
    width: 30rem;
  }
}

.logo-mobile {display: none;}







/* *** MAIN *** */

main {
  .left-content,
  .right-content {
    height: calc(100vh - var(--height-header));
  }

  .left-content,
  .right-content {
    scrollbar-color: transparent transparent;
  }
  
  
  .right-content {
    scrollbar-width: none;
    padding-left: 1rem;
    border-left: 1px solid rgba(204, 204, 204, 0.1);
  }
}

.song-card {
  width: calc((100% - 3rem) / 4);
  margin-bottom: 2rem;
  line-height: 1.5rem;

  .song-genre {color:var(--color-light-gray)}
}

.song-title,
.song-author {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.left-content {
  .play-button {
    font-size: 1rem;
    aspect-ratio: 1/1;

    padding:1rem;
    border-radius: 50%;

    background-color: var(--color-bg-gray);

    opacity: 0;
    transition: opacity 0.2s ease;
  }
}

.right-content {
  button {
    width: 100%;

    margin-block: 0.25rem;
    padding: 1rem;

    font-size: 1rem;
  }

  .play-song {
    margin-block: 1rem;
    line-height: 1.4rem;

    .play-button {
      font-size: 3.5rem;
      margin-right: 1rem;
    }
  }

  .image-popover {
    padding: 0;
  }

  .buttons-container {margin-block: 2rem;}
  .artist-info-container {margin-bottom: 2rem;}

}

#details button[class="image-popover"] {padding: 0;}

.artist {
  margin-block: 1rem;
  line-height: 1.25rem;

  img {
    width: 3rem;
    border-radius: 50%;
    margin-right: 1rem;
  }
}


/* POSITION MECHANICS */
.left-content .img-container {position:relative;}
.left-content button {position: absolute; bottom: 4%; left: 2%;}


/* HOVER MECHANICS +cursor pointer */

button:hover,
.left-topbar svg,
.left-topbar img,
.left-content .play-button:hover,
.right-topbar button,
i {
  cursor: pointer;
}

button:hover,
a:hover {text-decoration: underline;}

.song-card button {text-decoration: none;}

.right-topbar button:hover {
  background-color: var(--color-bg-gray);
}

.left-content img:hover {
  border: 2px solid transparent;
}

.song-card:hover .play-button {
  opacity: 1;
  display: flex;
  align-items: center;
}

.left-content .play-button:hover {background-color:var(--color-bg-input);}
.right-content i:hover {color:var(--color-light-gray);}
main .dark-btn:hover {background-color: var(--color-bg-gray);}