/* ============================================
   MUSIC SECTION
   ============================================ */
.music-section {
    padding: var(--spacing-lg) var(--spacing-md) 10rem;
}

.music-tracks-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
}

/* Track Card */
.track-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--dynamic-border, rgba(255, 255, 255, 0.06));
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--dynamic-shadow, none);
    position: relative;
    z-index: 1;
    overflow: visible; /* Allow content to dictate size properly */
}

.track-card::before,
.track-card::after {
    content: "";
    position: absolute;
    inset: 0; /* Revert to standard inset to avoid clipping issues */
    border-radius: inherit;
    pointer-events: none;
}



.track-card::before {
    background: var(--dynamic-bg, rgba(255, 255, 255, 0.02));
    z-index: -2;
    transition: opacity 0.4s ease;
}

.track-card::after {
    background: var(--dynamic-bg-hover, rgba(255, 255, 255, 0.06));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

@supports (-webkit-backdrop-filter: blur(20px)) {
    .track-card::before {
        background: var(--dynamic-bg, rgba(10, 10, 10, 0.6));
    }
    .track-card::after {
        background: var(--dynamic-bg-hover, rgba(20, 20, 20, 0.7));
    }
}

.track-card:hover::after {
    opacity: 1;
}

.track-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); /* Smaller, tighter shadow */
    z-index: 2;
}



.track-cover {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.track-card:hover .track-cover {
    transform: scale(1.05);
}

.track-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.track-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-listen-btn {
    flex-shrink: 0;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Safari-specific fix for button */
@supports (-webkit-backdrop-filter: blur(10px)) {
    .track-listen-btn {
        background: rgba(10, 10, 10, 0.5);
        border-color: rgba(255, 255, 255, 0.05);
    }
}

.track-listen-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

@supports (-webkit-backdrop-filter: blur(10px)) {
    .track-listen-btn:hover {
        background: rgba(20, 20, 20, 0.6);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

.show-all-btn {
    display: block;
    margin: var(--spacing-md) auto 0;
    padding: 1rem 3rem;
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase;
}

/* Music Modal */

/* Extracted into static/styles/modals.css */
/* Extracted into static/styles/quiz.css */
/* Extracted into static/styles/secret-overlays.css */

