/* Typography & Utilities */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.text-muted {
    color: var(--text-subdued);
    font-size: 14px;
    font-weight: 500;
}

.mt-40 { margin-top: 40px; }

/* Buttons */
.btn-premium {
    background: transparent;
    color: var(--text-bright);
    border: 1px solid var(--text-subdued);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    margin-right: 16px;
}

.btn-premium:hover {
    border-color: var(--text-bright);
    transform: scale(1.04);
}

.btn-login {
    background: var(--text-bright);
    color: var(--bg-base);
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-login:hover {
    transform: scale(1.04);
    background: #f0f0f0;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 24px;
    margin: 0;
}

.show-all {
    color: var(--text-subdued);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.show-all:hover {
    text-decoration: underline;
}

/* Track Cards Grid */
.track-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

/* The Card itself */
.card {
    background-color: var(--bg-base); /* Darker background for contrast */
    padding: 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast);
    position: relative;
    /* Opacity 0 by default so Anime.js can fade them in */
    opacity: 0; 
}

.card:hover {
    background-color: var(--bg-hover);
}

.card-img-wrapper {
    position: relative;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

/* The Glowing Play Button on Hover */
.card-play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--accent-main);
    color: var(--bg-base);
    border: none;
    font-size: 24px;
    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);
    cursor: pointer;
    z-index: 2;
}

/* Reveal button on card hover */
.card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-play-btn:hover {
    background-color: var(--accent-glow);
    transform: translateY(0) scale(1.05);
}

.card h3 {
    font-size: 16px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card p {
    font-size: 14px;
    color: var(--text-subdued);
    margin: 0;
}

/* --- SIDEBAR POLISH --- */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 16px 12px;
}

/* FIX THE GIANT LOGO */
.app-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px; /* Optional: smooths the edges of your logo */
}

.logo-area h2 {
    font-size: 22px;
    margin: 0;
    background: linear-gradient(90deg, #FFFFFF, var(--text-subdued));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* FIX THE BLUE LINKS */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-subdued);
    text-decoration: none; /* Removes the underline */
    font-size: 15px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-menu a i {
    font-size: 22px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-bright);
    background-color: rgba(255, 255, 255, 0.05); /* Soft highlight on hover */
}

/* --- TOPBAR & SEARCH POLISH --- */
.search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 500px;
    padding: 10px 20px;
    gap: 12px;
    width: 350px;
    transition: border-color 0.2s;
}

.search-bar:focus-within {
    border-color: var(--text-bright);
    background-color: rgba(255, 255, 255, 0.15);
}

.search-bar i {
    color: var(--text-subdued);
    font-size: 20px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-bright);
    width: 100%;
    outline: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

/* Update the play button inside the card */
.card-play-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background-color: var(--neon-purple); /* Changes it from dark green to bright purple */
    color: #ffffff; /* White icon */
    border: none;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow); /* Adds the jaw-dropping glow */
    cursor: pointer;
    z-index: 2;
}

.card:hover .card-play-btn {
    opacity: 1;
    transform: translateY(0);
}

.card-play-btn:hover {
    transform: translateY(0) scale(1.1);
    background-color: #c154ff; /* Slightly lighter purple on hover */
}

/* Ensure card text stays on one line */
.card h3 {
    font-size: 16px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.card p {
    font-size: 14px;
    color: var(--text-subdued);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.search-bar input::placeholder {
    color: var(--text-subdued);
}

/* Right align topbar items properly */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}














/* --- RIGHT PANEL FIXES --- */
.right-panel .large-cover {
    width: 100%;
    max-width: 240px; /* Stops the image from getting massive */
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin: 0 auto 16px auto;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.panel-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}

/* --- FOOTER STYLING --- */
.neosync-footer {
    background-color: #12081C; /* Matches the elevated panel background */
    border-radius: var(--radius-lg);
    padding: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}
.footer-col h4 { margin-bottom: 16px; font-weight: 700; font-size: 16px; }
.footer-col a {
    display: block; color: var(--text-subdued); text-decoration: none; margin-bottom: 12px; font-size: 14px; transition: 0.2s;
}
.footer-col a:hover { color: var(--neon-purple); }
.social-icons { display: flex; gap: 16px; font-size: 24px; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px; color: var(--text-subdued); font-size: 13px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; flex: 1; }
.footer-legal a { color: var(--text-subdued); text-decoration: none; transition: 0.2s; }
.footer-legal a:hover { color: var(--text-bright); }











/* =========================================
   HEAVY RESPONSIVENESS: COMPONENTS
   ========================================= */

@media (max-width: 768px) {
    /* Topbar adjustments */
    .topbar { padding: 0 16px; }
    .search-bar { width: 100%; max-width: 180px; padding: 8px 16px; }
    .search-bar input { font-size: 13px; }
    .btn-premium { display: none; } /* Hide premium button on mobile to save space */
    .btn-login { padding: 8px 20px; font-size: 13px; }
    
    /* Scrollable content adjustments */
    .content-scrollable { padding: 16px; padding-top: 70px; }
    .greeting-section h1 { font-size: 24px; }
    .section-header h2 { font-size: 20px; }
    
    /* Track Grid adjustments - force smaller cards on mobile */
    .track-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 16px;
    }
    .card { padding: 12px; }
    .card h3 { font-size: 14px; }
    .card p { font-size: 12px; }
    
    /* Footer adjustments */
    .neosync-footer { padding: 24px 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-legal { flex-direction: column; align-items: center; gap: 8px; }
}

@media (max-width: 400px) {
    /* Tiny phones */
    .track-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
}