* {
    font-family: "Montserrat", sans-serif;
    color: white;
    margin: 0;
}

body {
    background-color: black;
    overflow: hidden; /* Add it only to body if needed */
}

.main{
    display: flex;
    height: calc(100vh - 72px); /* Subtract music player height */
    padding: 0.5rem;
    padding-bottom: 0; /* Remove bottom padding */
}

.sidebar {
    background-color:rgb(0, 0, 0);
    width: 340px;
    border-radius: 1rem;
    margin: 0.1rem;
    transition: transform 0.3s ease;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.main-content  {
    background-color: #121212;
    flex: 1;
    border-radius: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 0.55rem ;
    padding: 0 1.5rem 0 1.5rem;
    margin-left: 0.4rem ;
}

.main-content::-webkit-scrollbar {
    width: 5px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: #5e5e5e;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-content:hover::-webkit-scrollbar-thumb {
    opacity: 0.8;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: #888;
}

.music-player {
    background-color: #121212;
    width: 100%;
    position: fixed;
    bottom: 0;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-top: 1px solid #282828;
    z-index: 100;
}



.nav {
    background-color: #121212;
    display: flex;
    flex-direction: column;
    border-radius: 1em;
   height: 100px;
   justify-content: center;
   padding: 0.5rem 0.75rem;
   margin: 0.5rem;
}

.nav-option {
    background-color: #121212;
    line-height: 2.5rem;
    opacity: 0.7;
    padding: 0.5rem 0.75rem;
}

.nav-option:hover{
    opacity: 1;
}

.nav-option i{
    background-color:  #121212;
    font-size: 1.25rem;
}

.nav-option a {
    text-decoration: none;
    color: white;
    background-color:  #121212;
    font-size: 1rem;
    margin-left: 1rem;
}



.library {
    background-color: #121212;
    border-radius: 1rem;
    margin: 0.5rem;
    padding: 0.5rem 0.75rem;
    height: 100%;
}


.options{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
}

.lib-option img{
    width: 1.25em;
    height: 1.25rem;
    background-color: transparent;
}

.lib-option a{
    text-decoration: none;
    color: white;
    font-size: 1rem;
    margin-left: 0.5rem;
    
}
.icons  {
    font-size: 1.25rem;
    display: flex;
    background-color: transparent;
    
}
.icons i{
    opacity: 0.7;
    margin-right: 1rem;
    background-color: transparent;
}
.icons i:hover{
    opacity: 1;
}

.box {
    background-color: #232323;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0 1.75rem 0;
    min-height: 8rem; /* Use min-height instead of height */
}

.boxp1 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.boxp2 {
    font-size: 0.85rem;
    opacity: 0.95;
    margin-bottom: 1.75rem;
}

.badge{
    color: black;
    background-color: white;
    border: none;
    border-radius: 100px;
    padding: 0.25rem 1rem;
    cursor: pointer;
    font-weight: 700;
    height: 2rem;
    margin-top: 0.5rem;
    width: fit-content;
}

.sticky-nav{
   position: sticky;
   top: 0;
   background-color: #121212;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1rem 0 1rem 0;
   z-index: 10;
}
.sticky-nav-icons {
   margin-left: 0.75rem;
}


.sticky-nav-buttons{
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;

}

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

.badges button {
    color: black;
    background-color: white;
    border: none;
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    font-weight: 700;
    height: 2rem;
    margin-top: 0.5rem;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
}

.Dark-badge {
    background-color: black !important;
    color: white !important;
}

.Dark-badge i {
    color: white !important;
}

.badges button i {
    color: black;
    font-size: 1.2rem;
}

.sticky-nav-buttons i {
    background-color: transparent;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width:1000px) {
   .hide {
    display: none !important;
   }
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    

}
.card{
    background-color: #232323;
    width: 150px;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top:  1rem  ;
    margin-bottom: 1rem;
    margin-left: 1rem;
    opacity: 0.85;
}
.card img {
    width: 100%;
    height: 150px;
    border-radius: 0.5rem;
}
.card-title{
    font-weight:600;
    padding: 0.5rem 0;
}
.card-info{
    opacity: 0.8;
    font-size: 0.78rem;
    padding : 0.5rem 0;
}

.footer{
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.line {
    width: 90%;
    height: 70%;
    border-top: 1px solid white;
    opacity: 0.4;
}

.card:hover {
    opacity: 1;
}

.music-player{
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    
}

.albums{
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 180px;
    padding-right: 5rem;
}

.track{
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.track-photo img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
}

.track h1 {
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.track h3 {
    font-size: 0.75rem;
    color: #b3b3b3;
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
}

.track-info {
    display: flex;
    flex-direction: column;
}

.albums .icons {
    display: flex;
    align-items: center;
    gap: 0.25rem; /* Reduced from 0.75rem to bring icons closer */
    margin-left: 0.25rem; /* Reduced margin */
}

.albums .icons i {
    color: #b3b3b3;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.albums .icons i:hover {
    color: white;
}

.albums .icons .fa-heart:hover {
    color: #1db954;
}

/* Media query for devices below 420px width */
@media (max-width: 420px) {
    .track-info {
        display: none; /* Hide h1 and h3 */
    }
    
    .albums .icons {
        display: none; /* Hide like and add icons */
    }
    
    .track {
        justify-content: center; /* Center the track photo */
    }
    
    .albums {
        min-width: auto; /* Remove fixed min-width */
        justify-content: center;
    }
}

@media (max-width: 420px) {
    .track-info,
    .track h1,
    .track h3 {
        display: none !important; /* Hide h1 and h3 with !important */
    }
    
    .albums .icons {
        display: none !important; /* Hide like and add icons */
    }
    
    .track {
        justify-content: center; /* Center the track photo */
    }
    
    .albums {
        min-width: auto; /* Remove fixed min-width */
        justify-content: center;
    }
}

.player{
width:50%;
opacity: 0.9;

}

.controls
{
    width:25%;
}

.volume-controls{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-icon {
    color: #b3b3b3;
    cursor: pointer;
    font-size: 1rem;
}

.volume-icon:hover {
    color: white;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 93px;
    height: 4px;
    background-color: transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
}

.volume-control:hover .volume-slider {
    opacity: 1;
    background-color: #5e5e5e;
}

.volume-slider:hover {
    height: 6px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.volume-control:hover .volume-slider::-webkit-slider-thumb {
    opacity: 1;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.volume-control:hover .volume-slider::-moz-range-thumb {
    opacity: 1;
}

/* Firefox track styling */
.volume-slider::-moz-range-track {
    background-color: transparent;
    height: 4px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.volume-control:hover .volume-slider::-moz-range-track {
    background-color: #5e5e5e;
    height: 6px;
}

/* Progress bar styling */
.progress-fill {
    height: 100%;
    background-color: white;
    border-radius: 2px;
    width: 30%;
    position: relative;
}

.progress-bar:hover .progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color:white;
    border-radius: 50%;
    box-shadow: none;
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    max-width: 722px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-control-icon {
    height: 1rem;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s;
}

.player-control-icon:hover {
    opacity: 1;
}

.playback-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    overflow: visible;
}

.curr-time, .tot-time {
    font-size: 0.75rem;
    color: #b3b3b3;
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    width: 70%;
    height: 4px;
    background-color: #5e5e5e;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: visible;
}

.progress-bar:hover {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background-color: white;
    border-radius: 2px;
    width: 30%;
    position: relative;
}

.progress-bar:hover .progress-fill {
    background-color: #1bd760;
}

.progress-bar:hover .progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: none;
}

@media (max-width: 420px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 200;
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .main {
        padding: 0.5rem 0.5rem 0 0.5rem;
    }
    
    .sidebar-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 201;
        background-color: #121212;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Fix nav option icons alignment on mobile */
    .nav-option {
        background-color: transparent;
        color: #121212;
        display: flex;
        align-items: center;
        gap: 0.5em;
        padding-left: 0; /* Remove any left padding */
        margin-left: 0; /* Remove any left margin */
    }
    
    .nav-option i {
        margin-left: 0; /* Ensure no left margin on icons */
        flex-shrink: 0; /* Prevent icon from shrinking */
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 199;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}


