@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    /* You can apply the font here */
}

/* Define the class separately */
.roboto-custom {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #000;
    color: #fff;
}

.flex {
    display: flex;
}

.bg-black {
    background-color: #000;
}

.bg-grey {
    background-color: #121212;
}

.rounded {
    border-radius: 8px;
}

.m-1 {
    margin: 8px;
}

.p-1 {
    padding: 16px;
}

.invert {
    filter: invert(1);
}

:root {
    --text: #fff;
    --muted: #a7a7a7;
    --white: #fff;
    --black: #000;
    --shadow: rgba(0, 0, 0, .35);
}

.container {
    height: 100vh;
    gap: 8px;
}

.left {
    width: 25vw;
    padding: 10px;
}
/* Add this to style.css to fix the logo size */
.logo img {
    width: 40px; /* Adjust this value to your preferred size */
    height: 40px;
    cursor: pointer;
}
/* Add this to style.css to center the logo */
.logo {
    display: flex;
    justify-content: inherit;
    padding-bottom: 5px; /* Adds some space around the logo */
    
}

.right {
    width: 75vw;
    position: relative;
    overflow-y: auto;
    margin: 14px;
}

.home ul li,
.library .heading {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    font-weight: bold;
    
}

.library {
    min-height: 80vh;
    position: relative;
}

.song-list {
    height: 60vh;
    overflow-y: auto;
    padding: 0 8px;
}

.hamburger {
    display: none;
}

.song-list ul {
    list-style: none;
}

/* --- FINAL LIBRARY SONG LIST STYLES --- */
.song-list ul li {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Icon | Title | Heart */
    align-items: center;
    gap: 12px;
    padding: 12px;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.song-list ul li:hover {
    background-color: #2a2a2a;
}

.song-list .info {
    /* This container must allow its child to be truncated */
    overflow: hidden;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    font-size: 10px;
    color: #a7a7a7;
    position: absolute;
    bottom: 8px;
    gap: 12px;
    padding: 10px;
}

.footer a {
    color: #a7a7a7;
    text-decoration: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a1a1a;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 20;
    border-radius: 4px;
}

.header>* {
    padding: 15px;
}

.signup-link {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 9999px;
    transition: color .2s ease, transform .15s ease;
}

.signup-link:hover {
    color: var(--text);
    transform: scale(1.03);
}

.signup-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.login-btn {
    background: var(--white);
    color: var(--black);
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    padding: 15px 32px;
    border-radius: 9999px;
    line-height: 1;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.login-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px var(--shadow);
}

.login-btn:active {
    transform: scale(.98);
}

.login-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.Trending-List {
    padding: 20px;
}

.card-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 16px 0;
}

.card-container::-webkit-scrollbar {
    display: none;
}

.card {
    width: 180px;
    min-width: 180px;
    background-color: #181818;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.card .img-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.card img {
    width: 100%;
    border-radius: 6px;
}

.card h2 {
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    font-size: 14px;
    color: #a7a7a7;
    margin-top: 8px;
}

.play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: #FF0000;
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.card:not(.is-playing):hover .play-btn {
    opacity: 1;
    transform: translateY(0);
}

.playing-gif {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card.is-playing .playing-gif {
    opacity: 1;
}

.card.is-playing .play-btn {
    opacity: 0;
}

/* .playbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 900px;
    background-color: #282828;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
} */

/* --- PLAYBAR STYLES (ALL VIEWS) --- */
.playbar {
    position: fixed;
    bottom: 20px;
    z-index: 50;
    box-sizing: border-box;

    /* Desktop View: Center in the right 75% of the screen */
    left: 27vw; /* Start after the left panel */
    width: 70vw;
    padding: 12px 30px; /* Adjust padding as needed */

    /* Your other styles */
    background-color: #282828;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Tablet/Mobile View: Center in the full screen */
@media (max-width: 1360px) {
    .playbar {
        left: 0;
        width: 95vw;
        padding: 12px 20px;
        bottom: 0; /* Stick to the very bottom on mobile */
        border-radius: 0; /* Full width, no radius */
    }

    /* Adjust when the library is open */
    body.library-open .playbar {
        /* This can be removed if you want the playbar to stay full-width */
        /* width: calc(100vw - 300px);
        left: 300px; */
    }
}


.abovebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.song-info {
    flex: 1;
    font-size: 14px;
    text-align: left;
}

.song-btn {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex: 1;
    /* padding-left: 120px; */
}

.song-btn img {
    cursor: pointer;
}

.song-time {
    flex: 1;
    font-size: 14px;
    text-align: right;
}

.seek-bar {
    width: 100%;
    height: 4px;
    background: #4d4d4d;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0%;
    transition: left 0.1s linear;
}

.home ul li img {
    width: 24px;
    height: auto;
    cursor: pointer;
}


.library .heading img {
    width: 24px;
    height: auto;
}
.close-btn {
    display: none;
}

/* --- RESPONSIVE DESIGN FOR TABLET/SMALLER DESKTOPS --- */
@media (max-width: 1360px) {

    /* 1. Default "Closed" State */
    .left {
        position: fixed;
        left: -300px;
        /* Start hidden completely off-screen */
        top: 0;
        width: 300px;
        height: 100%;
        z-index: 100;
        background-color: #000;
        transition: left 0.3s ease-in-out;
    }

    .right {
        width: 100%;
        margin-left: 0;
        transition: margin-left 0.3s ease-in-out;
    }

    .hamburger {
        display: block;
        /* Show the hamburger */
    }

    .close-btn {
        display: none;
        /* Make the close button exist on mobile */
        position: absolute;
        top: 25px;
        right: 25px;
        /* Position in the TOP-RIGHT of the .left panel*/
        cursor: pointer;
        z-index: 40;
    }

    /* 2. "Open" State (when JS adds .library-open to the body) */
    body.library-open .left {
        left: 0;
        /* Slide the library IN */
    }

    /* ONLY show the close button when the library is open */
    body.library-open .close-btn {
        display: block;
    }
    
}
/* --- VOLUME CONTROL STYLES --- */
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px; /* Give it some space */
    padding-left: 5px;
}

.volume-control img {
    cursor: pointer;
}

/* Replace your old #volume-slider rule with this one */
#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    
    /* This is the magic part */
    background: linear-gradient(to right, #FF0000 var(--volume-progress, 100%), #535353 var(--volume-progress, 100%));
    
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

/* Styling the slider thumb for Chrome/Safari */
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    margin-top: 0px; /* Center the thumb on the track */
}

/* --- RESPONSIVE DESIGN FOR MOBILE --- */
@media (max-width: 650px) {

    .abovebar {
        /* Remove the three-column layout on mobile */
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .seek-bar {
        /* Ensure the seek-bar takes full width */
        width: 100%;
        order: 1; /* Place it first */
    }

    .abovebar {
        order: 2; /* Place the main controls second */
    }

    .song-info {
        /* Center the song info text */
        text-align: center;
        width: 100%;
        order: 1; /* Display song info first in the middle row */
    }
    
    .song-btn {
        width: 100%;
        order: 2; /* Display buttons second */
    }

    .volume-control {
        display: none; /* Hide the volume slider on small screens to save space */
    }
    
    .song-time{
        display: none; /* Hide the time to save space, as it's on the seek bar */
    }
}
/* --- ARTIST LIST STYLES --- */
.artist-list {
    padding: 20px;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.list-header a {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.list-header a:hover {
    text-decoration: underline;
}

/* Specific styles for the circular artist cards */
.artist-card .artist-image {
    border-radius: 50%; /* This makes the image circular */
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.artist-card h2 {
    text-align: center;
    margin-top: 16px;
}

.artist-card p {
    text-align: center;
}

/* --- NAVIGATION ARROW STYLES --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.arrow-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
/* Show arrows on hover for both lists */
.Trending-List:hover .nav-arrows,
.artist-list:hover .nav-arrows {
    opacity: 1; /* Make arrows visible on hover */
}

/* --- FINAL ARROW POSITIONING STYLES --- */
.list-container {
    position: relative; /* This is the positioning parent */
    padding: 20px 0;
}

.nav-arrows {
    /* Hide by default */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Show arrows when hovering over the whole list container */
.list-container:hover .nav-arrows {
    opacity: 1;
}

.arrow-btn {
    position: absolute;
    top: 55%; /* Adjust to vertically center on your cards */
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 28px;
    z-index: 20;
    cursor: pointer;
}

.arrow-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Position each arrow */
.left-arrow {
    left: 0px;
}
.right-arrow {
    right: 0px;
}

/* --- LIKED SONGS HEART ICON STYLES --- */
.heart-icon {
    cursor: pointer;
    margin: 0 10px;
}

.heart-icon svg {
    width: 22px;
    height: 22px;
    stroke: #b3b3b3; /* Default color: grey */
    stroke-width: 1.5;
    transition: all 0.2s ease-in-out;
}

.heart-icon.liked svg {
    stroke: #FF0000; /* Liked color: green */
    fill: #FF0000;   /* Fill with green when liked */
}

/* Position the heart in the library list
.song-list ul li {
    position: relative;
} */

.song-list .song-title {
    /* The text itself gets the ellipsis */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* .list-heart {
    position: absolute;
    right: 20px;
} */

/* Add this to style.css to ensure the card play button is always green */
.card .play-btn {
    background-color: #1DB954; /* Spotify Green */
}

/* --- POPULAR RADIO STYLES --- */
.radio-list {
    padding: 20px;
}

.radio-card .img-wrapper {
    position: relative; /* Needed to position the RADIO tag */
}

/* Style for the "RADIO" tag */
.radio-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}