:root {
    --bg-primary: #043249;
    --bg-secondary: #06203f;
    --bg-card: #181818;
    --bg-card-hover: #282828;
    --text-primary: #bfcada;
    --text-secondary: #B3B3B3;
    --accent-color: #A855F7; /* Neon Purple */
    --accent-hover: #9333EA;
    --border-color: #333333;
    --nav-height: 64px;
    --sidebar-width: 240px;
    --transition-speed: 0.3s;
    --glass-bg: ;
    --glass-blur: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

/* Layout Grid */
.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: var(--nav-height) 1fr;
    grid-template-areas: 
        "sidebar header"
        "sidebar main";
    min-height: 100vh;
}

/* Header */
.main-header {
    grid-area: header;
    background-color: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-search {
    flex: 0 1 364px;
    position: relative;
}
/* search bar */
.search-bar input{
    padding: 10px;
    border-radius: 100px;
    background-color: #e6f1f1;
}
.search-input {
    width: 100%;
    background-color: #242424;
    border: none;
    border-radius: 500px;
    color: var(--text-primary);
    padding: 12px 48px;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    box-shadow: 0 0 0 2px var(--text-primary);
}


.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-btn {
    background-color: #242424;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
}
.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Sidebar */
.main-sidebar {
    grid-area: sidebar;
    background-color: var(--bg-primary);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: transform 0.3s ease-in-out;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 12px;


}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 0;
    transition: color 0.2s;

}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link svg {
    width: 24px;
    height: 24px;
}
#genre-list {
    overflow-y: scroll;
    max-height: 100px;
}

#genre-list::-webkit-scrollbar {
    width: 10px;
    border-radius: 10px;
}
#genre-list::-webkit-scrollbar-track {
    background: #6cf3ef;
    border-radius: 10px;
}
#genre-list::-webkit-scrollbar-thumb {
    background-color: #043249;
    border-radius: 10px;
    border: 3px solid #043249;
}
#genre-list::-webkit-scrollbar-thumb:hover {
    background-color: #bedfe9;
}
/* Main Content */
.main-content {
    grid-area: main;
    background: linear-gradient(180deg, #1e1e1e 0%, var(--bg-secondary) 100%);
    padding: 24px 32px;
    overflow-y: auto;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(90deg, var(--accent-color), #7e22ce);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Sections */
.content-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
}

.see-all {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.see-all:hover {
    text-decoration: underline;
}

/* Cards Grid */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.mix-card {
    background-color: var(--bg-card);
    padding: 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.mix-card:hover {
    background-color: var(--bg-card-hover);
}

.card-image {
    width: 100%;
    aspect-ratio: 1;
    background-color: #333;
    border-radius: 4px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 8px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
}

.mix-card:hover .play-btn {
    opacity: 1;
    transform: translateY(0);
}

.play-btn:hover {
    transform: scale(1.05);
    background-color: var(--accent-hover);
}

.card-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Player Bar */
.bottom-player {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: #181818;
    border-top: 1px solid #282828;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

.player-left, .player-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.player-left {
    gap: 16px;
}

.player-cover {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.player-artist {
    font-size: 12px;
    color: var(--text-secondary);
}

.player-like-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.player-like-btn:hover {
    color: var(--accent-color);
}

.player-center {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 722px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.control-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.control-btn.play-pause {
    color: var(--text-primary);
    transform: scale(1.1);
}

.control-btn.play-pause:hover {
    transform: scale(1.2);
}

.player-progress {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time {
    font-size: 11px;
    color: var(--text-secondary);
    min-width: 32px;
    text-align: center;
}

.progress-bar-wrapper {
    flex: 1;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #4d4d4d;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: background-color 0.2s;
}

.progress-bar-wrapper:hover .progress-fill {
    background-color: var(--accent-color);
}

.player-right {
    justify-content: flex-end;
    gap: 16px;
}

.volume-bar-wrapper {
    width: 100px;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.volume-bar {
    width: 100%;
    height: 4px;
    background-color: #4d4d4d;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
}

.volume-bar-wrapper:hover .volume-fill {
    background-color: var(--accent-color);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 1001;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    text-decoration: none;
}

.mobile-nav-item.active {
    color: var(--text-primary);
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}
/* footer */
.main-footer{
    background: linear-gradient(135deg,#043249 0%, #06203f 100%);
    
}
.footer-content{
    display: flex;
    justify-self: center;
    gap: 310px;
    margin-top: 17px;
}
.footer-section ul{
    color: #6c5e7a;
    display: flex;
    flex-direction: column;
}
.footer-section a{
    color: #6c5e7a;
}
.footer-section p{
    color: #6c5e7a;
}
.footer-section h3{
    font-size: 40px;
}
.footer-bottom{
   margin-top: 17px;
   margin-bottom: 17px;
   justify-self: center;
}
.profile-header{
    display: flex;
    position: relative;
    justify-self: center;
    justify-content: center;
    justify-items: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body, html, .app-container, .main-content {
        overflow-x: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    :root {
        --sidebar-width: 80px; /* Make sidebar smaller on mobile */
    }
    
    .main-sidebar {
        padding: 16px 8px !important; /* Reduce padding */
        display: none !important;
    }
    
    .logo span, .nav-link {
        display: none !important; /* Hide text, show only icons */
    }
    
    .logo, .nav-link {
        justify-content: center !important;
    }
    
    .main-header, .main-content {
        padding: 0 16px !important;
    }
    .header-actions{
        font-size: 10px;
    }    
    .header-actions a{
        font-size: 10px;
        border-radius: 17px;
        padding: 10px;
    }    

    
    .bottom-player {
        bottom: 4px !important; /* Height of mobile nav */
        height: 64px !important;
        padding: 0 8px !important;
    }
    
    .player-right {
        display: none !important;
    }
    
    .player-center {
        display: none !important; /* Simplify for mobile, maybe just play/pause and title */
    }
    
    /* Mobile Player Simplified */
    .bottom-player.mobile-view .player-center {
        display: flex !important;
        flex: 0 !important;
    }
    
    .bottom-player.mobile-view .player-controls {
        gap: 16px !important;
    }
    
    .bottom-player.mobile-view .control-btn:not(.play-pause):not(.next) {
        display: none !important;
    }
    
    .bottom-player.mobile-view .player-progress {
        display: flex !important;
    }
    
    .mobile-nav {
        display: flex !important;
        
    }
    
    .app-container {
        grid-template-columns: 1fr !important;
        grid-template-areas: 
            "header"
            "main";
        padding-: 128px !important; /* Space for player + nav */
    }
    
    .main-content {
        padding: 16px !important;
    }
    
    .hero-banner {
        padding: 24px !important;
        height: 240px !important;
    }
    
    .hero-content h1 {
        font-size: 32px !important;
    
    }
    /* footer */

    
    .footer-bottom{
        padding-bottom: 70px;
    }

    
    /* Search Icon */
    .search-bar svg{
        display: none;
    }
    .search-bar input{
        width: 140px;
    }
}
@media (min-height: 1150px) {
    .footer-content{
        gap: 178px;
    }
}
@media (max-width: 1114px) {
    .footer-content{
        gap: 178px;
    }
}
@media (min-height: 850px) {
    .footer-content{
        gap: 100px;
    }
}
@media (min-height:700px) {
    #genre-list {
    overflow: visible;
    max-height: 400px;
}
}
@media (min-height: 801px) {
    
#genre-list {
    overflow-y:hidden;
    max-height: 400px;
}

#genre-list::-webkit-scrollbar {
    width: 10px;
    border-radius: 10px;
}
#genre-list::-webkit-scrollbar-track {
    background: #6cf3ef;
    border-radius: 10px;
}
#genre-list::-webkit-scrollbar-thumb {
    background-color: #043249;
    border-radius: 10px;
    border: 3px solid #043249;
}
#genre-list::-webkit-scrollbar-thumb:hover {
    background-color: #bedfe9;
}}


@media (max-width: 358px) {
    .footer-content{
        gap: 28px;
    }
    .footer-section p{
        width: 150px;
    }
    .main-footer{
        font-size: 10px;
    }
    .footer-section h3{
        font-size: 17px;
    }
    .footer-section h4{
        font-size: 14px;
    }
    .search-bar input{
        width: 10px;
        height: 35.87px;
    }
}
@media (max-width: 370px) {
    .footer-content{
        gap: 10px;
    }
    .footer-section p{
        width: 150px;
    }
    .main-footer{
        font-size: 10px;
    }
    .footer-section h3{
        font-size: 17px;
    }
    .footer-section h4{
        font-size: 14px;
    }
    .search-bar input{
        width: 107px;
        height: 35.87px;
    }
    .hero-content p{
       font-size: 13.4px;
    }
    
}
@media (max-width: 408px) {
    .footer-content{
        gap: 24px;
    }
    .footer-section p{
        width: 150px;
    }
    .main-footer{
        font-size: 10px;
    }
    .footer-section h3{
        font-size: 17px;
    }
    .footer-section h4{
        font-size: 14px;
    }
    .hero-content p{
       font-size: 13.4px;
    }
}
@media (max-width: 430px) {
    .footer-content{
        gap: 28.87px;
    }
    .footer-section p{
        width: 150px;
    }
    .main-footer{
        font-size: 10px;
    }
    .footer-section h3{
        font-size: 17px;
    }
    .footer-section h4{
        font-size: 14px;
    }
    .search-bar input{
        width: 140px;
        height: 35.87px;
    }
    .hero-banner{
        height: 340px;
    }
    .hero-content h1{
        margin-bottom: 0px;
    }
    .hero-content p{
        margin-bottom: 0px;
    }
}
@media (max-width: 417px) {
    .footer-content{
        gap: 28.87px;
    }
    .footer-section p{
        width: 150px;
    }
    .main-footer{
        font-size: 10px;
    }
    .footer-section h3{
        font-size: 17px;
    }
    .footer-section h4{
        font-size: 14px;
    }
    .search-bar input{
        width: 140px;
        height: 35.87px;
    }
    .hero-banner{
        height: 340px;
    }
    .hero-content h1{
        margin-bottom: 0px;
    }
    .hero-content p{
        margin-bottom: 0px;
    }
}
@media (max-width: 450px) {
    .footer-content{
        gap: 40.87px;
    }
    .footer-section p{
        width: 150px;
    }
    .main-footer{
        font-size: 10px;
    }
    .footer-section h3{
        font-size: 17px;
    }
    .footer-section h4{
        font-size: 14px;
    }
    .search-bar input{
        width: 140px;
        height: 35.87px;
    }
    .hero-banner{
        height: 340px;
    }
    .hero-content h1{
        margin-bottom: 0px;
    }
    .hero-content p{
        margin-bottom: 0px;
    }
}
@media (min-width:768px) {
    .hero-content p{
        margin-bottom: 0px;
    }
}
@media (min-width:968px) {
    .hero-content p{
        margin-bottom: 28px;
    }
}
/* Follow Button */
.follow-btn {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 500px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-btn:hover {
    border-color: var(--text-primary);
    transform: scale(1.05);
}

.follow-btn.following {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* --- Circular Profile Pictures --- */
.profile-image, 
.dj-avatar-small, 
.card-image[style*="border-radius: 50%"] {
    border-radius: 50% !important;
    overflow: hidden;
}
.profile-image-overlay {
    border-radius: 50%;
}
/* Removed overlapping mobile media query for consolidation */
@media (max-width: 768px) {
    /* Styles consolidated into the main mobile media query */
}
