*, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        /* --- Theming and Global Styles --- */

        :root {
            /* User Requested: Primary #AD7EFC, Accent #EBFF6F */
            --bg-color: #AD7EFC; 
            /* Dark purple text for contrast against the light purple background */
            --text-color: #190a2e; 
            /* A slightly lighter/translucent white overlay for cards to stand out on purple */
            --card-bg-color: rgba(255, 255, 255, 0.25);
            /* Button Text */
            --button-text-color: #190a2e;
            --menu-hover-bg: rgba(255, 255, 255, 0.3);
            --accent-color: #EBFF6F;
        }

        ::selection {
            color: var(--text-color);
            background: var(--accent-color);
        }

        :root.dark {
            /* Inverted scheme: Dark Purple BG, Light Purple/Lime Text */
            --bg-color: #190a2e;
            --text-color: #AD7EFC;
            --card-bg-color: rgba(255, 255, 255, 0.05);
            --button-text-color: #190a2e;
            --menu-hover-bg: rgba(255, 255, 255, 0.1);
            --accent-color: #AD7EFC;
        }

        body {
            font-family: 'Work Sans', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* --- Layout Containers --- */
        .container {
            width: 100%;
            max-width: 64rem; 
            margin-left: auto;
            margin-right: auto;
            padding: 1rem; 
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* --- Component Styles --- */

        header {
            text-align: center;
            width: 100%;
            padding-top: 4rem; 
            padding-bottom: 3rem; 
            position: relative;
            z-index: 50;
        }

        .theme-toggle-container {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
        }

        #theme-toggle {
            display: grid;
            place-items: center;
            border-radius: 9999px;
            padding: 0.5rem; 
            border: none;
            background: none;
            color: var(--text-color);
            cursor: pointer;
        }
        #theme-toggle:focus {
            outline: 2px solid transparent;
            outline-offset: 2px;
            box-shadow: 0 0 0 2px var(--bg-color), 0 0 0 4px var(--text-color);
        }

        .logo-container {
            max-width: 42rem; 
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 2rem;
        }
        
        .text-logo {
            font-size: clamp(2.5rem, 5vw, 4rem);
            font-weight: 900;
            line-height: 1.1;
            text-transform: uppercase;
            color: var(--accent-color);
            /* Add a slight drop shadow to make the lime pop on purple */
            text-shadow: 2px 2px 0px rgba(0,0,0,0.1); 
            letter-spacing: -0.02em;
        }

        :root.dark .text-logo {
            color: #EBFF6F; /* Keep logo lime in dark mode for pop */
        }

        header p {
            max-width: 42rem; 
            margin-left: auto;
            margin-right: auto;
            margin-bottom: 2.5rem; 
            line-height: 1.625; 
            font-size: 1.125rem;
        }

        /* --- Platform Menu --- */
        .platform-menu-container {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 1rem;
        }

        .platform-menu {
            position: absolute;
            top: 100%; 
            margin-top: 0.75rem;
            background-color: var(--card-bg-color); 
            backdrop-filter: blur(10px);
            border-radius: 1rem;
            box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
            padding: 0.5rem;
            width: 280px;
            z-index: 100;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            opacity: 0;
            transform-origin: top center; 
            transform: translateY(-10px) scale(0.95);
            transition: opacity 0.2s ease, transform 0.2s ease;
            pointer-events: none;
        }

        .platform-menu.open-upward {
            top: auto;
            bottom: 100%;
            margin-top: 0;
            margin-bottom: 0.75rem;
            transform-origin: bottom center;
        }

        .platform-menu.open {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        .platform-menu a {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            text-decoration: none;
            font-weight: 400; 
            color: var(--text-color);
            transition: background-color 0.2s ease, transform 0.2s ease, font-weight 0.2s ease; 
        }

        .platform-menu a:hover {
            background-color: var(--menu-hover-bg);
            text-decoration: none;
            transform: scale(1.02);
            font-weight: 600;
        }

        .platform-menu a .material-symbols-outlined {
            font-size: 1.5rem; 
        }

        #platform-menu-btn,
        .all-episodes-btn {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            background-color: var(--accent-color);
            color: var(--button-text-color);
            font-weight: 600;
            padding: 1.25rem 2.5rem; 
            border-radius: 9999px;
            border: none;
            font-size: 1.25rem; 
            text-decoration: none;
            letter-spacing: 0.02em;
            transition: all 0.2s ease-in-out;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
            cursor: pointer;
        }

        :root.dark #platform-menu-btn,
        :root.dark .all-episodes-btn {
             background-color: #EBFF6F;
             color: #190a2e;
        }

        #platform-menu-btn:hover,
        .all-episodes-btn:hover {
             box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
             transform: translateY(-2px);
             background-color: #fff;
        }

        .all-episodes-btn {
            margin-top: -2.5rem;
            cursor: pointer;
        }

        .episodes-section {
            width: 100%;
            margin-top: 4rem; 
            padding-bottom: 4rem; 
        }
        .episodes-section h2 {
            font-size: 1.875rem; 
            font-weight: 700; 
            text-align: center;
            margin-bottom: 3rem;
            color: var(--accent-color); 
        }
        :root.dark .episodes-section h2 {
            color: #EBFF6F;
        }

        .episodes-list {
            display: flex;
            flex-direction: column;
            gap: 3rem; 
            max-width: 48rem; 
            margin-left: auto;
            margin-right: auto;
        }

        .episode-card {
            display: flex;
            align-items: flex-start;
            gap: 1.5rem; 
            background-color: var(--card-bg-color);
            backdrop-filter: blur(5px);
            padding: 1.5rem;
            border-radius: 1rem; 
            transition: background-color 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .episode-card .cover-art-container {
            width: 25%;
            flex-shrink: 0;
        }
        .episode-card .cover-art {
            width: 100%;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            aspect-ratio: 1 / 1;
            object-fit: cover;
        }

        :root.dark .episode-card .cover-art {
            opacity: 90%;
        }

        .episode-card .episode-details {
            width: 75%;
            flex-grow: 1;
        }
        .episode-card h3 {
            font-size: 1.5rem; 
            font-weight: 700; 
            margin-bottom: 0.5rem;
            color: var(--accent-color);
        }
        :root.dark .episode-card h3 {
             color: #EBFF6F;
        }

        .episode-card p {
            opacity: 0.9;
            margin-bottom: 1rem;
            font-size: 1rem; 
            line-height: 1.625; 
        }

        .episode-links {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem 1rem; 
            margin-top: 1rem; 
            font-size: 0.875rem; 
            font-weight: 500; 
        }

        .episode-links a {
            color: inherit;
            text-decoration: none;
            opacity: 0.8;
            transition: opacity 0.2s;
        }
        .episode-links a:hover {
            text-decoration: underline;
            opacity: 1;
        }

        .all-episodes-container {
            text-align: center;
            margin-top: 4rem;
        }

        @media (max-width: 768px) {
            .episode-card {
                flex-direction: column;
            }
            .episode-card .cover-art-container,
            .episode-card .episode-details {
                width: 100%;
            }
        }

        /* Icons */
        .material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24; 
            font-size: clamp(2rem, 1.5rem + 1.5vw, 2.5rem);
            transition: font-variation-settings 0.3s ease; 
        }

        #theme-toggle:hover .material-symbols-outlined,
        .platform-menu a:hover .material-symbols-outlined {
            font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24; 
        }

        .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border-width: 0;
        }

        audio {
            width: 100%;
            margin-top: 1rem;
            border-radius: 9999px;
            height: 40px;
            /* Standardize player look across browsers */
            filter: sepia(20%) saturate(140%) hue-rotate(240deg) brightness(0.95) contrast(1.1);
        }
        
        :root.dark audio {
            filter: invert(0.9) hue-rotate(120deg) saturate(2);
        }

        #theme-toggle .moon-icon { opacity: 1; }
        #theme-toggle .sun-icon { opacity: 0; }
        :root.dark #theme-toggle .moon-icon { opacity: 0; }
        :root.dark #theme-toggle .sun-icon { opacity: 1; }

/* --- Audio Player Component CSS --- */
:root {
    /* Extracted Component Colors */
    --audio-player-surface: rgba(255, 255, 255, 0.25);
    --audio-player-primary-container: #EBFF6F;
    --audio-player-on-primary-container: #190a2e;
    --audio-player-track-inactive: rgba(25, 10, 46, 0.3);

    /* RGB values for the ripple effect */
    --audio-player-on-primary-container-rgb: 25, 10, 46;
    --audio-player-content: var(--audio-player-on-primary-container);
}

:root.dark {
    --audio-player-surface: rgba(255, 255, 255, 0.05);
    --audio-player-primary-container: #AD7EFC;
    --audio-player-on-primary-container: #190a2e;
    --audio-player-content: #EBFF6F;
    --audio-player-track-inactive: rgba(235, 255, 111, 0.3);
    --audio-player-on-primary-container-rgb: 25, 10, 46;
}

.audio-player-card {
    display: flex;
    align-items: center;
    background-color: transparent;
    border-radius: 9999px;
    /* Pill shape */
    padding: 12px 24px 12px 12px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
}

/* Play/Pause Button */
.play-fab {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: var(--audio-player-primary-container);
    color: var(--audio-player-on-primary-container);
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --dn-press-color-rgb: var(--audio-player-on-primary-container-rgb);
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.play-fab:active {
    transform: scale(0.95);
}

.play-fab .material-symbols-outlined {
    font-size: 32px !important;
    /* Force override */
    font-variation-settings: 'FILL' 0, 'wght' 400;
}

/* Slider Area */
.slider-area {
    flex-grow: 1;
    height: 32px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Inactive Straight Track */
.track-inactive {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    background-color: var(--audio-player-track-inactive);
    border-radius: 2px;
    pointer-events: none;
}

/* End Dot */
.track-end-dot {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%);
    width: 4px;
    height: 4px;
    background-color: var(--audio-player-content);
    border-radius: 50%;
    pointer-events: none;
}

/* Active Wavy Track */
.track-active-wrapper {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 0%;
    /* Updated via JS */
    pointer-events: none;
}

.track-wavy-svg {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 100%;
    overflow: visible;
    will-change: transform;
}

.wavy-path {
    stroke: var(--audio-player-content) !important;
}

/* Material Expressive Animation */
/* JS handles path animation for rounded cap stability */

/* Track Handle / Dot */
.slider-handle {
    display: none;
    /* Hidden as per new design */
    position: absolute;
    top: 50%;
    left: 0%;
    z-index: 99999;
    /* Updated via JS */
    transform: translate(-50%, -50%);
    width: 14px;
    /* Increased from 8px for better visibility */
    height: 14px;
    /* Increased from 8px for better visibility */
    background-color: var(--audio-player-content);
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.1s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    /* Added subtle shadow for depth */
}

/* Native invisible range input to hijack accessible sliding/seeking */
.audio-slider-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    z-index: 10;
    -webkit-appearance: none;
    appearance: none;
}

.audio-slider-input:active~.slider-handle {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Time Display */
.time-display {
    color: var(--audio-player-content);
    font-size: 15px;
    font-weight: 500;
    width: 48px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
    pointer-events: none;
    flex-shrink: 0;
}

/* Skip Controls */
.skip-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--audio-player-content);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    --dn-press-color-rgb: var(--audio-player-on-primary-container-rgb);
}

.icon-button .material-symbols-outlined {
    font-size: 24px !important;
    /* Force override */
}

/* --- Ripple Effect Base --- */
.dn-ripple {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.dn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(var(--dn-press-color-rgb), 1);
    opacity: 0;
    transition: opacity 150ms ease-in-out;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
}

.dn-ripple:hover::after {
    opacity: 0.08;
}

.dn-ripple:focus-visible::after {
    opacity: 0.12;
}

.dn-ripple>span {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.dn-ripple .ripple-effect {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: dn-ripple-animation 600ms linear;
    z-index: 1;
}

@keyframes dn-ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Mobile Audio Player Layout (Moved here for specificity) --- */
@media (max-width: 600px) {
    .audio-player-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        column-gap: 12px;
        row-gap: 8px;
        height: auto;
        padding: 12px;
        /* Reset flex properties */
        align-items: center;
    }

    /* Row 1: Play Button (Left) */
    .play-fab {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
    }

    /* Row 1: Slider (Right, taking remaining space) */
    .slider-area {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
        width: 100%;
        margin: 0;
    }

    /* Row 2: Time Display (Left, aligned with play button or just below) */
    .time-display {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
        margin-top: 4px;
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    /* Row 2: Skip Controls (Right) */
    .skip-controls {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
        justify-self: end;
        /* Push to right */
        margin-top: 4px;
    }
}

/* Heavier weight for skip icons */
/* Heavier weight for skip icons */
.skip-controls .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    transition: font-variation-settings 0.2s ease;
}

.skip-controls .icon-button:hover .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}
