* {
    padding: 0;
    margin: 0;
}

body {
    background-color: black;
    font-family: "Montserrat", sans-serif;
}

/* Navigation Bar*/
nav {
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.left-half {
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.logo {
    font-size: 2.5rem;
    margin: 1rem;
}

.home-icon {
    font-size: 1.7rem;
    background-color: #1f1f1f;
    color: rgb(179, 179, 179);
    padding: 8px;
    border-radius: 50%;
    margin: 0 1rem;
    transition: 0.2s;
}

.home-icon:hover {
    color: white;
    transform: scale(1.05);
}

.home-icon-house{
    background-color: white;
    width: 24px;
    height: 24px;
    -webkit-mask: url('/Icons/house-regular-full.svg') no-repeat center / contain;
    mask: url('/Icons/house-regular-full.svg') no-repeat center / contain;
}

.search-bar {
    display: flex;
    background-color: #1f1f1f;
    align-items: center;
    height: 3rem;
    width: 30rem;
    border-radius: 20rem;
}

.search-bar:hover {
    background-color: #272727;
    border: 1px solid rgb(76, 76, 76);
}

.search-icon {
    font-size: 1.5rem;
    color: rgb(179, 179, 179);
    padding: 0 0.7rem;
}

.search-bar:hover .search-icon {
    color: white;
}

.search-icon-glass{
    background-color: white;
    width: 24px;
    height: 24px;
    -webkit-mask: url('/Icons/magnifying-glass-solid-full.svg') no-repeat center / contain;
    mask: url('/Icons/magnifying-glass-solid-full.svg') no-repeat center / contain;
}

.input-box {
    width: 78%;
    height: 60%;
    background-color: #27272700;
    border: none;
    border-right: 1px solid rgb(179, 179, 179);
    color: white;
    font-size: 1.2rem;
}

.browse {
    font-size: 1.3rem;
    margin-left: 0.6rem;
    transition: 0.2s;
}

.browse:hover {
    transform: scale(1.05);
}

.browse-folder{
    background-color: white;
    width: 24px;
    height: 24px;
    -webkit-mask: url('/Icons/folder-open-solid-full.svg') no-repeat center / contain;
    mask: url('/Icons/folder-open-solid-full.svg') no-repeat center / contain;
}

.right-half {
    display: flex;
    align-items: center;
    color: white;
    width: 48%;
}

.right-half-p1 {
    display: flex;
    align-items: center;
    height: 1.7rem;
    margin: 0 1rem;
    padding: 0 1rem 0 0;
    border-right: 1px solid rgb(179, 179, 179);
}

.nav-text{
    padding: 0 0.5rem;
    display: inline-flex;      /* makes icon+text sit in a row */
    align-items: center;
    font-weight: 600;
    color: rgb(179, 179, 179);
    transition: 0.1s;
}

.nav-text:hover {
    color: white;
    transform: scale(1.05);
    cursor: pointer;
}

.nav-text-circle{
    vertical-align: middle;
    background-color: white;
    width: 24px;
    height: 24px;
    -webkit-mask: url('/Icons/circle-down-solid-full.svg') no-repeat center / contain;
    mask: url('/Icons/circle-down-solid-full.svg') no-repeat center / contain;
}

.right-half-p2 {
    display: flex;
    align-items: center;
}

.login-btn {
    height: 3rem;
    width: 7rem;
    border-radius: 15rem;
    border: none;
    background-color: white;
    font-size: 1rem;
    font-weight: 700;
    margin: 1rem;
    transition: 0.2s;
}

.login-btn:hover{
    transform: scale(1.05);
}

/* Main Page Left Part */
.main {
    background-color: black;
    min-width: 98vw;
    height: 82vh;
    margin-top: 2vh;
    display: flex;
    justify-content: space-around;
    color: white;
}

.main-left-part {
    width: 27%;
    height: 100%;
    background-color: #121212;
    border-radius: 10px;
}

.library {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 1.5rem;
}

.library p {
    font-weight: 600;
}

.library div {
    font-size: 2rem;
    color: rgb(179, 179, 179);
    background-color: #2f2f2f;
    padding: 8px;
    height: 1.2rem;
    width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30rem;
    transition: 0.2rem;
}

.library div:hover {
    color: white;
    background-color: #3a3a3a;
}

.box-container {
    margin-top: 1rem;
    height: 100%;
}

.box {
    background-color: #1f1f1f;
    height: 22%;
    width: 98%;
    border-radius: 10px;
    margin: 1rem 0;
}

.box h4 {
    font-weight: 600;
    font: 0.9rem;
    padding: 1.3rem 0 0.5rem 1rem;
}

.box p {
    font-size: 0.8rem;
    padding-left: 1rem;
}

.box button {
    background-color: white;
    color: black;
    font-weight: 600;
    padding: 0.6rem 0.8rem;
    margin: 1rem 0 0 1rem;
    border-radius: 25rem;
}

.box button:hover {
    transform:  scale(1.04);
    background-color: rgb(238, 238, 238);
}

/* Main Page Right Part*/
.main-right-part {
    width: 72%;
    height: 100%;
    background-color: #121212;
    /* background-color: aqua; */
    border-radius: 10px;
    overflow: auto;
}

.music-selection{
    margin-left: 15px;
    margin-top: 15px;
}

.music-card img {
    height: 10rem;
    width: 10rem;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}

.music-card {
    width: 10rem;
    padding: 0.7rem;
    border-radius: 5px;
    position: relative;
}

.music-card:hover {
    background-color: #222;
}

.music-section {
    margin: 2rem 0 2rem 2rem;
}

.songs {
    margin: 2rem 0;
    display: flex;
    overflow-x: auto;
}

.img-title {
    margin: 0.7rem 0;
}

.img-description {
    font-size: 0.8rem;
    color: rgb(199, 199, 199);
}

.music-play-btn {
    color: rgb(32, 234, 32);
    font-size: 2.7rem;
    position: absolute;
    background-color: rgb(0, 0, 0);
    width: 2.7rem;
    display: flex;
    border-radius: 20rem;
    transform: translate(110px, -50px);
    opacity: 1;
    transition: 0.3s;
}

.music-card:hover .music-play-btn {
    opacity: 1;
    transform: translate(110px, -50px);
}

.music-play-btn-circle{
    vertical-align: middle;
    background-color: white;
    width: 24px;
    height: 24px;
    -webkit-mask: url('/Icons/circle-play-regular-full.svg') no-repeat center / contain;
    mask: url('/Icons/circle-play-regular-full.svg') no-repeat center / contain;
}

/* Music Player */
.player-bar {
    width: 100%;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.music-controler {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 450px;
}

.player{
    display: flex;
    align-items: center;
}

.player-shuffle{
    background-color: white;
    width: 24px;
    height: 24px;
    -webkit-mask: url('/Icons/shuffle-solid-full.svg') no-repeat center / contain;
    mask: url('/Icons/shuffle-solid-full.svg') no-repeat center / contain;
}

.player-backward-step{
    background-color: white;
    width: 24px;
    height: 24px;
    -webkit-mask: url('/Icons/backward-step-solid-full.svg') no-repeat center / contain;
    mask: url('/Icons/backward-step-solid-full.svg') no-repeat center / contain;
}

.player-circle-play{
    background-color: white;
    width: 24px;
    height: 24px;
    -webkit-mask: url('/Icons/circle-play-regular-full.svg') no-repeat center / contain;
    mask: url('/Icons/circle-play-regular-full.svg') no-repeat center / contain;
}

.player-forward-step{
    background-color: white;
    width: 24px;
    height: 24px;
    -webkit-mask: url('/Icons/forward-step-solid-full.svg') no-repeat center / contain;
    mask: url('/Icons/forward-step-solid-full.svg') no-repeat center / contain;
}

.player-repeat{
    background-color: white;
    width: 24px;
    height: 24px;
    -webkit-mask: url('/Icons/repeat-solid-full.svg') no-repeat center / contain;
    mask: url('/Icons/repeat-solid-full.svg') no-repeat center / contain;
}

.player-btns{
    font-size: 1.1rem;
    margin: 0.4rem 1rem;
    color: rgb(190, 190, 190);
    cursor: pointer;
}

.player-btns:hover{
    transform: scale(1.02);
    color: rgb(232, 232, 232);
}

#play{
    font-size: 2.3rem;
    color: white;
}

#progressBar{
    appearance: none;
    width: 600px;
    height: 3px;
    background-color: #333;
    border-radius: 5px;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb{
    appearance: none;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 10px;
}

.now-bar{
    color: white;
    display: flex;
    align-items: center;
}

.player-bar img{
    height: 4rem;
    width: 4rem;
    border-radius: 10px;
    padding: 0.3rem;
}

.img-title-info{
    font-size: 0.9rem;
    margin-left: 1rem;
}

.img-des-info{
    font: 0.8rem;
    color: rgb(192, 192, 192);
    margin-left: 1rem;
}

.active{
    background-color: rgb(0, 255, 0);
}

.active:hover{
    background-color: rgb(0, 255, 0);  
}

/* volume slider */
.volume-control{
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 200px;
}

.volume-icon{
    width: 24px;
    height: 24px;
    background-color: white;
    -webkit-mask: url('/Icons/volume-solid-full.svg') no-repeat center / contain;
    mask: url('/Icons/volume-solid-full.svg') no-repeat center / contain;
}

#volumeSlider{
    width: 200px;
    height: 4px;
    appearance: none;
    background-color: #333;
    border-radius: 5px;
    cursor: pointer;
}

#volumeSlider::-webkit-slider-thumb{
    appearance: none;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
}

#volumeSlider::-moz-range-thumb{
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
}

/* == search-dropdown == */ 


/* Wrapper positioning — makes the dropdown sit
   directly below the search bar */
.search-bar {
  position: relative; /* needed for dropdown positioning */
}

/* The dropdown panel */
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);   /* 8px gap below the search bar */
  left: 0;
  width: 30rem;             /* matches your .search-bar width */
  background-color: #282828;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Show when active class is added by JS */
.search-dropdown.active {
  display: block;
  animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Each result row */
.search-result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.search-result-row:hover,
.search-result-row.focused {
  background-color: #3a3a3a;
}

/* Music note icon */
.result-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: #3e3e3e;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(179, 179, 179);
}

/* Song title + artist/album */
.result-info {
  flex: 1;
  min-width: 0; /* allows text-overflow to work */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-title {
  color: white;
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-meta {
  color: rgb(179, 179, 179);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Genre badge on the right */
.result-genre {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: rgb(179, 179, 179);
  background-color: #3e3e3e;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Highlighted matching text */
.search-result-row mark {
  background: transparent;
  color: #1db954; /* Spotify green */
  font-weight: 700;
}
