body {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    background-color: black;
    color: white;
    overflow: hidden;
}

.main {
    display: flex;
    height: 100vh;
}

.sidebar {
    background-color :black;
    width: 340px;
    border-radius: 1rem;
}
@media (max-width: 600px) {
    .sidebar{
        display: none;
    }
}
.main-content {
    background-color: #121212;
    flex: 1;
    border-radius: 1rem;
    overflow: auto;
    scrollbar-color: #00000000 rgba(0, 0, 0, 0);
    scrollbar-width: none;
    margin: 0.75rem 0.75rem 0.75rem 0;
    padding: 0 1.5rem 0 1.5rem;
}

.music-player {
    background-color: black;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 85px;
    z-index: 11;
}

.player-fullscreen .main-content { display: none; }
.player-fullscreen .sidebar { display: none; }
.player-fullscreen .music-player { height: 100vh; align-items: center; }
.player-fullscreen .player { width: 65%; }
.player-fullscreen .album { width: 20%; }
.player-fullscreen .controls { width: 15%; }

a {
    text-decoration: none;
    color: white;
}

.nav {
    background-color: #121212;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content:center ;
    height: 100px;
    padding: 0.5rem 0.75rem;
    margin: 0.75rem;
    
}

.nav-option {
    line-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    /* opacity: 0.7; */
}

.nav-option .home {
    font-weight: 600;
    font-size: 1.3rem;
}

.nav-option .search {
    opacity: 0.7;
    font-weight: 600;
}
.nav-option .search:hover {
    opacity: 1;
}

.nav-option i {
    font-size: 1.25rem;
}

.nav-option a {
    font-size: 1rem;
    margin: 1rem;
}

.library {
    background-color: #121212;
    border-radius: 1rem;
    height: 100%;
    margin: 0.75rem;
    padding: 0.75rem 0.75rem;
}

/* scroller for library */
.lib-box {
    height: 100vh;
    scrollbar-color: #00000000 rgba(0, 0, 0, 0);
    scrollbar-width: none;
    overflow-y: auto;
}


.options {
    display: flex;
    justify-content:space-between;
    align-items: center;
    /* padding-right: 0.5rem; */
}

.lib-option img {
    height: 1.25rem;
    width: 1.25rem;
}

.lib-option {
    opacity: 0.7;
    font-size: 1rem;
}
.lib-option:hover {
    opacity: 1;
}

.icons {
    font-size: 1.25rem;
    display: flex;
}

.icons i {
    opacity: 0.7;
    margin-right: 1rem;
}

.icons i:hover {
    opacity: 1;
}

.box {
    background-color: #232323;
    border-radius: 0.75rem;
    margin: 0.75rem 0 1.75rem 0 ;
    padding: 0.75rem 1.25rem;
    padding-bottom: 1.2rem;
    overflow: auto;
}

.box-p1 {
    font-size: 1rem;
    font-weight: 700;
}
.box-p2 {
    font-size: 0.9rem;
    opacity: 0.9;
}

.badge {
    background-color: white;
    border: none;
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    margin-top: 0.5rem;
    width: fit-content;
    color: #121212;
}

.dark-badge {
    background-color: black;
    color: white;
    padding: 0.5rem 1.2rem 0.5rem 0.6rem;
}

.dark-badge:hover {
    background-color: white;
    color: black;
    padding: 0.5rem 1.2rem 0.5rem 0.6rem;
    transition-duration: 0.6s;
    /* font-size: 0.9rem; */

}

.sticky-nav {
    position: sticky;
    top:0;
    background-color: #121212;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0 1rem 0;
    z-index: 10;
}

.sticky-nav-icons {
    margin-left: 1rem;
    margin-top: 0.5rem;
    align-items: center;
}

.sticky-nav-icons img {
    height: 1.5rem;
    width: 1.5rem;
    background-color: black;
    border-radius: 50%;
    padding: 0.15rem;
    margin-right: 0.5rem;
}

.sticky-nav-options {
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #242424;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    width: min(340px, 42vw);
    margin-left: auto;
    margin-right: 1rem;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
    font: inherit;
}

.search-box input::placeholder { color: #aaa; }

.nav-item {
    margin-right: 1.7rem;
}

@media (max-width: 1000px) {
    .hide{
        display: none;
    }
}

.card {
    background-color: #232323;
    width: 180px;
    border-radius: 0.5rem;
    padding: 0.7rem;
    margin: 10px;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease;
}

.card:hover { background: #303030; transform: translateY(-3px); }

.card-img {
    width: 100%;
    border-radius: 0.5rem;
}

.card-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.card-title {
    font-weight: 600;
}
.card-info {
    font-size: 0.85rem;
    opacity: 0.7;
}

.search-results {
    display: grid;
    gap: 0.35rem;
    max-width: 620px;
    margin: 1rem 0;
}

.search-page {
    display: none;
    min-height: 58vh;
    padding: 2rem 0 8rem;
    animation: searchPageIn 220ms ease-out;
}

.search-page.visible { display: block; }
.playlist-page.visible { display: block; }
.playlist-page { display: none; min-height: 64vh; padding: 1.5rem 0 8rem; }
.playlist-hero { display: flex; align-items: end; gap: 1.25rem; padding: 2.5rem 0 1.5rem; border-bottom: 1px solid #333; }
.playlist-hero img { width: 10rem; height: 10rem; object-fit: cover; border-radius: 0.4rem; box-shadow: 0 12px 30px #0008; }
.playlist-hero h1 { margin: 0.35rem 0; font-size: clamp(2rem, 6vw, 4rem); }
.playlist-hero p { margin: 0; color: #aaa; }
.playlist-track-list { max-width: 760px; padding-top: 0.75rem; }
.playlist-song { display: grid; grid-template-columns: minmax(0, 1fr) 2rem; align-items: center; gap: 0.5rem; width: 100%; padding: 0.75rem 0.5rem; border: 0; border-bottom: 1px solid #282828; color: white; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.playlist-song:hover { background: #292929; }
.song-main { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem 1.25rem; align-items: center; gap: 0.5rem; min-width: 0; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.track-number { color: #888; text-align: center; }
.track-copy { display: flex; flex-direction: column; min-width: 0; }
.track-copy strong, .track-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-copy small { color: #999; }
.playlist-song .song-main > i { color: #1db954; opacity: 0; }
.playlist-song:hover .song-main > i { opacity: 1; }
.more-button { align-self: center; justify-self: end; width: 2rem; height: 2rem; border: 0; color: #aaa; background: transparent; cursor: pointer; opacity: 0; }
.playlist-song:hover .more-button, .library-track:hover .more-button, .more-button:focus { opacity: 1; }
.more-button:hover { color: white; }
.row-menu { display: none; position: fixed; min-width: 170px; padding: 0.3rem; background: #282828; border: 1px solid #444; border-radius: 0.35rem; box-shadow: 0 8px 25px #0009; z-index: 1000; pointer-events: auto; }
.row-menu.open { display: grid; }
.row-menu button { padding: 0.55rem 0.65rem; border: 0; color: white; background: transparent; text-align: left; cursor: pointer; font: inherit; font-size: 0.78rem; }
.row-menu button:hover { background: #3a3a3a; }
.playlist-song, .library-track { position: relative; }
.library-track-main { display: flex; align-items: center; gap: 0.7rem; min-width: 0; width: calc(100% - 2rem); padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.library-track-main > span { display: flex; flex-direction: column; min-width: 0; overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.library-track-main > span small { display: block; overflow: hidden; color: #999; text-overflow: ellipsis; white-space: nowrap; }
.equalizer { display: none; align-items: end; justify-content: center; gap: 2px; height: 1.1rem; }
.is-playing .equalizer { display: flex; }
.equalizer i { display: block; width: 3px; height: 45%; border-radius: 2px; background: #1db954; animation: equalizer 700ms ease-in-out infinite alternate; }
.equalizer i:nth-child(2) { height: 90%; animation-delay: -350ms; }
.equalizer i:nth-child(3) { height: 60%; animation-delay: -180ms; }
.back-button { display: block; margin-bottom: 1.25rem; padding: 0; border: 0; color: #bbb; background: transparent; cursor: pointer; font: inherit; }
.back-button:hover { color: white; }
.search-page-heading { max-width: 620px; padding: 2rem 0 1rem; }
.search-page-heading h2 { margin: 0.35rem 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.search-page-heading p { margin: 0; color: #aaa; }
.eyebrow { color: #1db954; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.search-page-results { display: grid; gap: 0.4rem; max-width: 620px; }

.result, .library-track, .queue-track {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    border: 0;
    color: white;
    background: transparent;
    text-align: left;
    cursor: pointer;
    padding: 0.45rem 0.6rem;
    border-radius: 0.4rem;
    font: inherit;
}

.result:hover, .library-track:hover, .queue-track:hover { background: #303030; }
.result img { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: 0.25rem; }
.result span, .queue-track { display: flex; flex-direction: column; align-items: flex-start; }
.result small, .queue-track span { opacity: 0.6; }
.library-list { margin-top: 1rem; }
.library-track { opacity: 0.75; font-size: 0.85rem; color: var(--playlist-color, white); }
.library-track span { display: flex; flex-direction: column; color: white; }
.library-track small { color: #999; }
.empty-state { opacity: 0.6; font-size: 0.85rem; padding: 0.5rem; }

.queue-panel {
    display: none;
    position: fixed;
    right: 1rem;
    bottom: 95px;
    width: min(320px, calc(100vw - 2rem));
    max-height: 55vh;
    overflow-y: auto;
    padding: 1rem;
    background: #232323;
    border: 1px solid #3b3b3b;
    border-radius: 0.75rem;
    z-index: 12;
    box-shadow: 0 10px 30px #0008;
}

.queue-panel.visible { display: block; animation: queueIn 180ms ease-out; }
.queue-heading { display: flex; justify-content: space-between; align-items: center; }
.queue-heading h3 { margin: 0 0 0.75rem; }
.queue-heading button { color: white; background: transparent; border: 0; font-size: 1.5rem; cursor: pointer; }

.playlist-dialog[hidden] { display: none; }
.playlist-dialog { position: fixed; inset: 0; display: grid; place-items: center; background: #0009; z-index: 20; }
.playlist-form { position: relative; width: min(360px, calc(100vw - 2rem)); display: grid; gap: 0.6rem; padding: 1.5rem; background: #242424; border: 1px solid #444; border-radius: 0.75rem; box-shadow: 0 15px 50px #000b; }
.playlist-form h2 { margin: 0 0 0.5rem; }
.playlist-form label { color: #bbb; font-size: 0.8rem; }
.playlist-form input:not([type="color"]) { padding: 0.7rem; border: 1px solid #555; border-radius: 0.4rem; outline: 0; color: white; background: #151515; font: inherit; }
.playlist-form input:focus { border-color: #1db954; }
.playlist-form input[type="color"] { width: 3rem; height: 2rem; border: 0; padding: 0; background: transparent; cursor: pointer; }
.playlist-form select { padding: 0.7rem; border: 1px solid #555; border-radius: 0.4rem; color: white; background: #151515; font: inherit; }
.dialog-close { position: absolute; top: 0.75rem; right: 0.75rem; border: 0; color: white; background: transparent; font-size: 1.5rem; cursor: pointer; }


.footer {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line {
    width: 98%;
    height: 40%;
    border-top: 1px solid white;
    opacity: 0.4;
}







.credits {
    opacity: 1;
    height: 300px;
}

.made {
    display: flex;
    justify-content: center;
    margin: 0.5rem;
    padding: 0;
    font-weight: 600;
}

.desc {
    opacity: 0.7;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.social_media ul {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    display: flex;
    flex-direction: row;
    justify-content: center;
    padding-right: 40px;
}

a {
    color: white;
    opacity: 0.7;
    transition-duration: 9ms;
    
  }
a:hover {
    color: white;
    opacity: 1;
    font-size: 25px;
}

.links {
    padding: 7px;
}
.last {
    font-weight: 600;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.last:hover {
    font-weight: 600;
    color: #1bd760;
}

.lasthover:hover {
    color: #1bd760;
}

.music-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.album {
    width:25%
}

.player {
    width: 50%;
}

.controls {
    width: 25%;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0.7rem;;
}


.player-control-icon {
    height: 1rem;
    margin-right: 1.75rem;
    opacity: 0.7;
    cursor: pointer;
}

@media (max-width: 500px) {
    .player-control-icon{
        margin-right: 0.9rem
    }
    .player {
        padding-right: 2rem;
    }
}

.player-control-icon:hover {
    opacity: 1;
}

.active-control { opacity: 1; filter: sepia(1) saturate(4); }
.liked { opacity: 1; color: #ef3340; filter: none; text-shadow: 0 0 10px #ef334066; }

/* .playback-bar{
    display: flex;
    justify-content: center;
    align-items: center;
} */

.progress {
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-bar {
  appearance: none;
  width: 60%;
  border-radius: 5px;
  height: 5px;
  background: #444; /* base color */
}

/* TRACK */
.progress-bar::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 5px;
  background: transparent; /* IMPORTANT */
}

/* THUMB */
.progress-bar::-webkit-slider-thumb {
  appearance: none;
  height: 12px;
  width: 12px;
  background: #1db954;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -3.5px;
}

@media (max-width: 800px) {
    .progress-bar {
        width: 50%;
    }
}

::selection {
    background-color: #00ab3f;
    color: white;
}

.album {
    display: flex;
    justify-content:flex-start;
    align-items: center;
    min-width: 0;
}
.track-cover {
    width: 3.5rem;
    border-radius: 20%;
    padding: 20px;
    cursor: pointer;
}
.album-info {
    margin-right: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.track-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.track-dis {
    font-weight: 400;
    font-size: 1rem;
    opacity: 0.6;
    margin: 0;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.track-dis:hover {
    opacity: 1;
    font-size: inherit;
}

.track-title:hover {
    opacity: 1;
    font-weight: 700;
}

.album-options {
    padding: 10px;
    display: flex;
    justify-content: space-evenly;
}

.album-options-icon {
    font-size: 1.30rem;
    padding-right: 10px;
    opacity: 0.5;
}
.album-options-icon:hover {
    font-size: 1.35rem;
    opacity: 1;
}

#likeBtn:not(.liked) { color: #ef5350; }

@media (max-width: 800px) {
    .hide2{
        display: none;
    }
}

@media (max-width: 500px) {
    .track-title{
        font-size: 0.1rem;
    }
    .track-dis{
        font-size: 0.1rem;
    }
    
}


@media (max-width: 600px) {
    .track-title{
        font-size: 0.8rem;
    }
    .track-dis{
        font-size: 0.7rem;
    }
}

@media (max-width: 1000px) {
    .controls {
        display: none;
    }
}
@media (max-width: 420px) {
    .album {
        display: none;
    }
    .player {
        padding: 0 0 0 100px;
    }
}


@media (max-width: 1150px) {
    .track-title{
        font-size: 1rem;
    }
    .track-dis{
        font-size: 0.9rem;
    }
    .controls {
        font-size: 1rem;
    }
}

.controls {
    font-size: 1.2rem;
    padding-right: 10px;
}
@media (max-width: 1150px) {
    .controls {
        font-size: 0.8rem;
    }
}
.controls-icon {
    opacity: 0.6;
}

.controls-icon:hover {
    opacity: 1;
}

.volume {
    -webkit-appearance: none; /* Remove default styling */
    appearance: none;
    width: 90px;
    height: 6px;
    background: linear-gradient(to right, #1bd760 80%, #444 80%);
    border-radius: 10px;
    cursor: pointer;
    
}

@keyframes searchPageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes equalizer {
    from { transform: scaleY(0.35); }
    to { transform: scaleY(1); }
}
  
  /* Handle (thumb) styling */
.volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0.7rem;
    height: 0.7rem;
    background: #1bd760;
    border-radius: 50%;
    cursor: pointer;
}
  
.volume::-webkit-slider-thumb:hover {
    background: #ffffff;
    transform: scale(1.1);
}

@keyframes queueIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .search-box { width: 38vw; margin-right: 0.5rem; padding: 0.45rem 0.65rem; }
    .search-box input { font-size: 0.75rem; }
    .queue-panel { right: 0.5rem; bottom: 90px; }
    .playlist-hero { align-items: start; flex-direction: column; }
    .playlist-hero img { width: 7rem; height: 7rem; }
    .track-title { font-size: 0.85rem; }
    .track-dis { font-size: 0.72rem; }
}
  











/* Loader Style */
#loader {
    position: fixed;
    inset: 0;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }
  
  #loader.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  #loader img {
    width: 120px;
    height: auto;
    animation: fadePulse 1.6s ease-in-out infinite;
  }
  
  @keyframes fadePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }
/* Loader Style */


