* {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    overflow: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: hsla(0,0%,100%,.3);
    border: none;
}
::-webkit-scrollbar-thumb:hover {
    background-color: hsla(0,0%,100%,.5);
}

.main {
    display: flex;
    height: 100vh;
    background-color: black;
    padding: 0.5rem;
    padding-bottom: 80px; /* Space for music player */
}

.sidebar {
    width: 340px;
    border-radius: 0.5rem;
    background-color: black;
    margin-right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main-content {
    border-radius: 0.5rem;
    overflow: auto;
    background-color: #121212;
    flex: 1;
    padding: 0 1.5rem 0 1.5rem;
    background: linear-gradient(#1f1f1f, #121212 300px);
}

.nav {
    border-radius: 0.5rem;
    background-color: #121212;
    padding: 0.5rem 0.75rem;
}

.nav-option {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
}

.home, .Search {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #b3b3b3;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}

.home a, .Search a {
    text-decoration: none;
    color: inherit;
    font-size: 1rem;
}

.home i, .Search i {
    font-size: 1.25rem;
}

.home:hover, .Search:hover {
    color: white;
}

.library {
    background-color: #121212;
    border-radius: 0.5rem;
    flex: 1;
    padding: 0.5rem 0.75rem;
    overflow-y: auto;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
}

.lib-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #b3b3b3;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lib-option img {
    height: 1.5rem;
    width: 1.5rem;
    filter: invert(0.7);
    transition: filter 0.2s ease;
}

.lib-option:hover, .lib-option:hover img {
    color: white;
    filter: invert(1);
}

.lib-option a {
    text-decoration: none;
    color: inherit;
}

.icons {
    display: flex;
    gap: 1rem;
    color: #b3b3b3;
}

.icons i {
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.icons i:hover {
    color: white;
}

.box {
    background-color: #242424;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.box-p1 {
    font-size: 1rem;
    font-weight: 700;
}

.box-p2 {
    font-size: 0.85rem;
    color: #b3b3b3;
}

.badge {
    background-color: white;
    color: black;
    border: none;
    border-radius: 100px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    margin-top: 0.5rem;
    cursor: pointer;
    transform: scale(1);
    transition: transform 0.1s ease;
}

.badge:hover {
    transform: scale(1.04);
}

.dark-badge {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}

.sticky-nav {
    position: sticky;
    top: 0;
    background-color: #121212; /* Fallback */
    background: rgba(18, 18, 18, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.sticky-nav-icons {
    display: flex;
    gap: 0.5rem;
}

.sticky-nav-icons img {
    background-color: rgba(0,0,0,0.7);
    border-radius: 50%;
    padding: 0.2rem;
    cursor: pointer;
}

.sticky-nav-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.nav-item {
    cursor: pointer;
}

.fa-user.nav-item {
    background-color: #242424;
    padding: 0.6rem;
    border-radius: 50%;
}

@media (max-width:1000px) {
    .hide {
        display: none;
    }
}

.cards {
    margin-top: 1rem;
}

.cards h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
}

.cards h2:hover {
    text-decoration: underline;
    cursor: pointer;
}

.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.card {
    background-color: #181818;
    width: calc(20% - 1.2rem);
    min-width: 150px;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.card:hover {
    background-color: #282828;
}

.card-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.25rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-info {
    font-size: 0.85rem;
    color: #b3b3b3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.line{
    width: 100%;
    height: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* MUSIC PLAYER */
.music-player {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 80px;
    background-color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 100;
}

.album {
    width: 30%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.album-cover {
    height: 56px;
    width: 56px;
    border-radius: 4px;
}

.album-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.album-title {
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.album-title:hover {
    text-decoration: underline;
}

.album-artist {
    font-size: 0.75rem;
    color: #b3b3b3;
    cursor: pointer;
}

.album-artist:hover {
    text-decoration: underline;
    color: white;
}

.album-icon {
    color: #1bd760;
    margin-left: 1rem;
    cursor: pointer;
}

.player {
    width: 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.player-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

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

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

.play-button {
    height: 2rem;
    opacity: 1;
    transform: scale(1);
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

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

.curr-time, .tot-time {
    font-size: 0.75rem;
    color: #b3b3b3;
}

.progress-bar {
    width: 70%;
    appearance: none;
    background-color: #4d4d4d;
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #1bd760;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover::-webkit-slider-thumb {
    opacity: 1;
}

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

.controls {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.control-icon {
    color: #b3b3b3;
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.volume-bar {
    width: 30%;
    appearance: none;
    background-color: #4d4d4d;
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
}

.volume-bar::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    opacity: 0;
}

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

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