:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --accent: #0041ff; /* Your signature SoundCloud blue */
    --accent-glow: rgba(0, 65, 255, 0.3);
}

body.dark-theme {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
}

.home-header {
    width: 100%;
    background-color: #000; /* Fills the "void" on screens wider than 1167px */
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
    border-bottom: 1px solid #333;
}

.banner-inner {
    width: 100%;
    max-width: 1167px;
    height: 460px; /* Keep this solid */
    background: url('../images/banner_logo.png') no-repeat center center;
    background-size: contain;
    display: flex;
    justify-content: center;
    /* Remove align-items: center/flex-end here */
    padding: 0; 
}

.about-summary {
    max-width: 800px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    backdrop-filter: blur(1px);
    
    /* ADJUST THIS NUMBER TO LOWER THE TEXT */
    /* Increasing this 'pushes' the box lower without changing the banner size */
    margin-top: 230px; 
    
    /* Ensure the box doesn't grow taller than the banner */
    height: fit-content;
}

.about-summary p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}

/* 1. Remove the old .mix-hero and .mix-details rules that were causing the conflict */

/* 2. Primary layout for Image and Bio side-by-side */
.mix-intro {
    display: flex;
    align-items: flex-start;
    gap: 40px;
//    margin-bottom: 10px; /* Tight gap to the player */
}

.mix-intro .cover-art {
    flex-shrink: 0;
}

.mix-intro .cover-art img {
    width: 300px; /* Adjust this to make the image bigger or smaller */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.mix-text {
    flex: 1; /* This pushes the text to fill the right side */
}

.mix-text h1 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 2.5rem;
}

.mix-text .meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.mix-text .description p {
    margin: 0;
    line-height: 1.6;
}

.actions .download-btn {
    margin-top: 0;
}

/* Mobile Responsive stacking */
@media (max-width: 768px) {
    .mix-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
}

.logo-large {
    font-size: 5rem;
    margin-bottom: 20px;
    display: block;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 1rem 0;
}

.logo { font-size: 1.5rem; font-weight: bold; text-decoration: none; color: white; }
.logo span { color: var(--accent); }

nav { display: flex; justify-content: space-between; padding: 1rem 5%; background: #000; }
nav ul { display: flex; list-style: none; gap: 20px; }
nav a { color: white; text-decoration: none; }

.mix-hero {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cover-art img { width: 300px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid #333; }

/* Enhanced Download Button */

.download-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s;
}
.download-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

.tracklist { background: var(--card-bg); padding: 2rem; border-radius: 8px; border-left: 4px solid var(--accent); }

.home-hero {
    margin-top: 0;
    text-align: center;
}

.home-hero h1 {
    font-size: 3rem;
    color: white;
    margin: 5px 0 0 0;
}

.mix-grid {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.mix-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333;
}

.mix-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--accent);
}

.mix-card img { width: 100%; display: block; }
.card-info { padding: 1.5rem; }
.card-info h3 { margin: 0; color: white; font-size: 1.2rem; }
.card-info p { margin: 5px 0 0; font-size: 0.9rem; color: #888; }

.section-title {
    margin-top: 2.5rem; 
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
    color: var(--accent);
}

/* This targets ONLY the first title (Original Bibliography) to pull it up */
.section-title:first-of-type {
    margin-top: 0.5rem; 
}

    /* Player-specific styles */
    .player-wrapper {
        width: 100%;
        max-width: 1000px;
        margin-top: 0;
    }

    .custom-audio-container {
        display: flex;
        align-items: center;
        gap: 15px;
        background: #111;
        padding: 15px 20px;
        border-radius: 8px;
        border: 1px solid #333;
    }

    #playPause {
        all: unset;
        width: 40px;
        height: 40px;
        background-color: #ff5500;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: white;
        font-size: 18px;
        flex-shrink: 0;
        transition: transform 0.1s ease;
        line-height: 1;
        text-align: center;
    }

    /* Optical alignment for the play triangle */
    #playPause.paused { text-indent: 2px; }
    #playPause.playing { text-indent: 0; }
    #playPause:hover { transform: scale(1.1); }

    #waveform {
        flex-grow: 1;
        height: 80px;
        cursor: pointer;
        overflow: hidden;
    }

    .meta-controls {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        min-width: 130px;
    }

    #volumeSlider {
        width: 80px;
        cursor: pointer;
        accent-color: #ff5500;
    }

    #time-display {
        font-family: 'Courier New', monospace;
        font-size: 11px;
        color: #888;
        white-space: nowrap;
        min-width: 80px;
        text-align: right;
    }

    /* Track List Styling */
.tracklist { 
    background: var(--card-bg); 
    /* Reduced from 2rem to 15px to tighten the overall box */
    padding: 20px 20px; 
    border-radius: 8px; 
    border-left: 4px solid var(--accent); 
    margin-top: 20px;
}

.tracklist h2 {
    /* Removes the default browser gap above and below the "Track Listing" title */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

#track-list {
    /* Removes the invisible gap browsers put after a list */
    margin-bottom: 0; 
    /* Keeps the numbers aligned within the box */
    padding-bottom: 0; 
}

    #track-list li {
        cursor: pointer;
        transition: color 0.2s, background 0.2s;
        border-radius: 4px;
    }

    #track-list li:hover {
        background: rgba(255, 85, 0, 0.1);
        color: #ff5500;
    }

    #track-list li.active {
        background: rgba(255, 85, 0, 0.2);
        color: #ff5500;
        font-weight: bold;
    }

    /* WaveSurfer v7 Shadow DOM Marker Styling */
    /* This targets the actual region element inside the shadow root */
    #waveform ::part(region) {
        border-left: 2px solid rgba(255, 255, 255, 0.4) !important;
        width: 1px !important; /* Forces it to be a line, not a block */
        background: transparent !important;
        height: 100% !important;
        z-index: 10;
        pointer-events: none; /* Allows clicking "through" the line */
    }

    /* Highlight the marker when active */
    #waveform ::part(region-active) {
        border-left: 2px solid #ff5500 !important;
    }

    /* Optional: Show track name on hover of the marker */
    /* Note: ::after inside shadow parts may be browser-dependent in v7 */
    .wavesurfer-region:hover::after {
        content: attr(data-region-content);
        position: absolute;
        bottom: 5px;
        left: 5px;
        color: #ff5500;
        font-size: 10px;
        background: rgba(0,0,0,0.8);
        padding: 2px 5px;
        border-radius: 2px;
    }