@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Noto Sans', sans-serif;
    box-sizing: border-box;
}

/* ===========================================
   HEADER STYLES - MATCHING MAIN WEBSITE EXACTLY
   =========================================== */

/* CSS Custom Properties matching main website EXACTLY */
:root {
    --font-family: "Noto Sans";
    --font-size: 18px;
    --line-height: 28px;
    --font-weight: 400;
    --color-header-middle-bg: #1c2442;
    --color-header-middle-text: #bfa2f8;
    --color-header-middle-text-hover: #ffffff;
    --color-content-primary: #91ffb4;
    --color-content-primary-grad: linear-gradient(180deg, #91ffb4 0%, #68e891 50%, #51d67c 50%, #3bb862 100%);
    --color-content-bg: #ffffff;
    --header-height: auto;
    --header-sticky-height: 100px;
}

/* Large screen header dimensions - 140PX HEIGHT */
@media (min-width: 1381px) {
    :root {
        --header-height: 140px;
        --header-sticky-height: 100px;
    }
}

/* Header height indicator - UPDATED FOR 140PX */
@media (min-width: 1381px) {
    .l-header:before {
        content: '140';
    }
}

.l-header:before {
    content: 'auto';
    left: -100%;
    position: absolute;
    top: -100%;
    visibility: hidden !important;
}

/* Header Styles - MATCHING MAIN WEBSITE EXACTLY */
.l-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-header-middle-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    font-family: var(--font-family);
    font-size: var(--font-size);
    line-height: var(--line-height);
}

/* Header position classes - MATCHING MAIN WEBSITE */
@media (min-width: 1381px) {
    .l-header {
        position: relative;
        z-index: 111;
        width: 100%;
    }

    .l-header.pos_fixed {
        position: fixed;
        left: 0;
    }
}

/* Header background transparent class */
.l-header.bg_transparent {
    background: var(--color-header-middle-bg);
}

.l-header.bg_solid {
    background: var(--color-header-middle-bg);
}

@media (max-width: 1024px) {
    .hidden_for_tablets {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .hidden_for_mobiles {
        display: none !important;
    }
}

.l-subheader {
    padding: 1rem 0;
    height: var(--header-height);
    line-height: var(--header-height);
    background: var(--color-header-middle-bg);
    color: var(--color-header-middle-text);
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Large screen header styling - 140PX HEIGHT */
@media (min-width: 1381px) {
    .l-subheader.at_middle {
        line-height: 140px;
        height: 140px;
    }

    .l-header.sticky .l-subheader.at_middle {
        line-height: 100px;
        height: 100px;
    }
}

/* Medium screen adjustments */
@media (max-width: 1380px) and (min-width: 769px) {
    .l-subheader.at_middle {
        line-height: 120px;
        height: 120px;
    }
}

/* Header layout matching original structure - OPTIMIZED */
.l-subheader-h {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    /* Slightly reduced padding to give more space */
    position: relative;
    height: 100%;
    width: 100%;
}

.l-subheader-cell {
    display: flex;
    align-items: center;
}

.l-subheader-cell.at_center {
    flex: 1;
    justify-content: center;
    min-width: 0;
    /* Allow content to shrink */
}

/* W-hwrapper - MATCHING MAIN WEBSITE SPACING */
.w-hwrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    /* Increased to match main website spacing */
    width: 100%;
    flex-wrap: nowrap;
}

.w-hwrapper.align_justify {
    justify-content: space-between;
}

.w-hwrapper.valign_middle {
    align-items: center;
}

/* Logo positioning - SLIGHTLY SMALLER FOR BETTER FIT */
.w-image.ush_image_1 {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    height: inherit;
    max-height: inherit;
}

.w-image img {
    height: auto;
    width: auto;
    max-height: 90px;
    /* Reduced from 120px to fit better in one row */
    max-width: 150px;
    /* Reduced from 200px */
    object-fit: contain;
    vertical-align: top;
}

/* Image wrapper */
.w-image-h {
    display: block;
    height: inherit;
    max-height: inherit;
    border-radius: inherit;
}

/* Navigation styling - INCREASED FONT SIZE TO 1.5REM */
.w-nav.ush_menu_1 {
    display: flex;
    align-items: center;
    flex-shrink: 1;
}

.w-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem;
    align-items: center;
}

.w-nav-anchor {
    color: var(--color-header-middle-text);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.6rem;
    /* Increased from 1.4rem to 1.5rem */
    letter-spacing: 0.025em;
    font-family: var(--font-family);
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.w-nav-anchor:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-header-middle-text-hover);
}

/* Navigation arrows - MATCHING ORIGINAL */
.w-nav-arrow {
    display: none;
}

/* Mobile navigation control */
.w-nav-control {
    display: none;
    background: none;
    border: none;
    color: var(--color-header-middle-text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.w-nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.w-nav-icon div {
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.w-nav-close {
    display: none;
}

.w-nav-anchor {
    color: var(--color-header-middle-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.2rem;
    /* Increased to match original */
    letter-spacing: 0.025em;
    font-family: var(--font-family);
    line-height: 1.4;
}

.w-nav-anchor:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-header-middle-text-hover);
}

/* ===========================================
   COMPACT CONTENT AREA SEARCH AND FILTER CONTROLS
   =========================================== */

/* Compact Search and Filter Section - LEFT ALIGNED */
.search-filter-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
    /* Left aligned */
}

.filter-group,
.search-group {
    display: flex;
    align-items: center;
}

.compact-select,
.compact-search {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-family);
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.compact-select:focus,
.compact-search:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

.compact-select {
    cursor: pointer;
    min-width: 150px;
    height: 2.5rem;
}

.search-input-wrapper {
    position: relative;
}

.compact-search {
    width: 250px;
    padding-right: 2.5rem;
    height: 2.5rem;
}

.search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
}

.compact-search:focus+.search-icon {
    color: #8b5cf6;
}

.compact-search::placeholder {
    color: #9ca3af;
}

/* Responsive design for compact search controls */
@media (max-width: 768px) {
    .search-filter-compact {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .compact-select,
    .compact-search {
        width: 100%;
        font-size: 0.85rem;
    }

    .compact-select {
        min-width: auto;
    }

    .compact-search {
        padding-right: 2rem;
    }

    .search-icon {
        right: 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .search-filter-compact {
        margin-bottom: 0.75rem;
    }

    .compact-select,
    .compact-search {
        padding: 0.4rem 0.6rem;
        height: 2.25rem;
        font-size: 0.8rem;
    }
}

/* Mediathek button styling - MATCHING MAIN WEBSITE SIZE */
.w-btn.us-btn-style_1 {
    font-size: 1.6rem;
    /* Increased to match navigation */
    line-height: 1.20 !important;
    font-weight: 500;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0em;
    border-radius: 12px;
    padding: 1.2em 1.8em;
    /* Increased for better proportion */
    background: var(--color-content-primary-grad, var(--color-content-primary));
    border: none;
    color: var(--color-content-bg) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    position: relative;
    transition-property: background, border, box-shadow, color, opacity, transform;
    transition-duration: 0.3s;
    flex-shrink: 0;
    min-height: 3.5rem;
    /* Increased to match header proportion */
    cursor: pointer;
    white-space: nowrap;
}

.w-btn.us-btn-style_1:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.w-btn-label {
    position: relative;
    z-index: 1;
}

.w-nav-anchor.current>* {
    position: relative;
    z-index: 1;
}

.w-nav-control {
    display: none;
    background: none;
    border: none;
    color: var(--color-header-middle-text);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

/* ===========================================
   FOOTER STYLES – UPDATED LAYOUT 50% 25% 25%
   =========================================== */

.l-footer {
    background: #1b213b;
    color: white;
    padding: 3rem 1rem 2rem;
    margin-top: 4rem;
    font-family: Arial, sans-serif;
}

.l-section-h {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Remove any centering from the grid container */
.g-cols {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 2rem;
    align-items: flex-start;
}

/* 50% 25% 25% layout on desktop */
@media (min-width: 768px) {
    .g-cols {
        grid-template-columns: 2fr 1fr 1fr !important;
        /* 50% 25% 25% */
        gap: 4rem !important;
    }
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-section img {
    max-height: 150px;
    max-width: 220px;
    margin-bottom: 1.5rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.footer-nav h4 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.footer-nav a:hover {
    color: white;
}

.contact-info {
    color: #bdc3c7;
    line-height: 1.5;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-info a {
    color: #bdc3c7;
    text-decoration: none;
}

.contact-info a:hover {
    color: white;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: white;
}

/* Force center alignment on mobile ONLY for mobile-specific elements */
@media (max-width: 767px) {

    .footer-nav,
    .contact-info,
    .footer-links {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .footer-logo-section img {
        margin: 0 auto 1rem;
    }

    .footer-links {
        justify-content: center;
    }
}

/* ===========================================
   RESPONSIVE STYLES FOR HEADER & FOOTER
   =========================================== */

/* Responsive Design - ADJUSTED FOR 140PX HEADER */
@media (max-width: 1380px) {
    :root {
        --header-height: 120px;
    }

    .l-subheader.at_middle {
        line-height: 120px !important;
        height: 120px !important;
    }

    .w-image img {
        max-height: 80px;
        max-width: 140px;
    }

    body {
        padding-top: 120px;
    }
}

@media (max-width: 1024px) {
    .w-hwrapper {
        gap: 2rem;
    }

    .w-nav-list {
        gap: 1.8rem;
    }

    .w-nav-anchor {
        font-size: 1.2rem;
        /* Slightly smaller on medium screens */
        padding: 0.5rem 1rem;
    }

    .w-btn.us-btn-style_1 {
        font-size: 1.1rem;
        padding: 0.8em 1.2em;
        min-height: 2.8rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 140px;
    }

    .w-hwrapper {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .l-subheader.at_middle {
        line-height: normal !important;
        height: auto !important;
        padding: 1rem 0;
    }

    .w-image img {
        max-height: 60px;
        max-width: 120px;
    }

    .w-nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-header-middle-bg);
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .w-nav-list.active {
        display: flex;
    }

    .w-nav-control {
        display: block;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    body {
        padding-top: 160px;
    }

    .g-cols {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-nav-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .w-nav-anchor {
        font-size: 1rem;
    }

    .w-btn.us-btn-style_1 {
        font-size: 1rem;
        padding: 0.7em 1em;
        min-height: 2.5rem;
    }
}

.g-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-nav-section {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.w-nav-anchor {
    font-size: 1.3rem;
}

.w-btn.us-btn-style_1 {
    font-size: 1.3rem;
    padding: 0.7em 1em;
    min-height: 2.5rem;
}

/* Media grid adjustments */
.media-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Audio player mobile adjustments */
.audio-player {
    padding: 12px 16px;
    gap: 12px;
}

.progress-container {
    max-width: 200px;
    margin: 0 12px;
}

.volume-container {
    display: none;
}

.audio-info {
    margin-right: 12px;
}

.media-actions {
    flex-direction: column;
    gap: 8px;
}

.action-btn {
    width: 100%;
    justify-content: center;
}

.episode-list {
    max-height: 200px;
    padding: 12px;
}

.keyboard-shortcuts {
    bottom: 120px;
    right: 10px;
    left: 10px;
    max-width: none;
}

.highlighted-category-section {
    padding: 16px;
    margin-bottom: 20px;
}

.highlight-badge {
    font-size: 0.7rem;
    padding: 3px 6px;
    margin-left: 6px;
}

.highlighted-category {
    font-size: 1.5rem;
}


@media (max-width: 480px) {
    .episode-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .episode-actions {
        align-self: flex-end;
    }

    .audio-player {
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .audio-info {
        min-width: 150px;
    }

    .progress-container {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 8px 0 0 0;
    }

    .episode-list {
        max-height: 150px;
    }

    .audio-controls {
        gap: 8px;
    }

    .control-btn {
        width: 38px;
        height: 38px;
    }

    .main-play-btn {
        width: 42px;
        height: 42px;
    }
}

@media (min-width: 769px) {
    .w-nav-list {
        display: flex !important;
        position: static;
        background: transparent;
        flex-direction: row;
        padding: 0;
        gap: 2rem;
        box-shadow: none;
    }

    .w-nav-control {
        display: none !important;
    }
}

/* Main content spacing - ADJUSTED FOR 140PX HEADER */
body {
    padding-top: var(--header-height, 140px);
    /* Adjusted for 140px header */
    font-family: var(--font-family);
    font-size: var(--font-size);
    line-height: var(--line-height);
}

.content-wrapper {
    min-height: calc(100vh - 200px);
}

/* Fix for the extra icon issue - prevent pseudo-elements on category titles */
.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 2px;
}

/* .media-artwork {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    flex-shrink: 0;
    margin: 20px;
} 
*/

/* DYNAMIC BLURRED BACKGROUND */
.media-artwork {
    width: calc(100% - 40px) !important;
    height: 200px !important;
    margin: 20px !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    background: #f5f5f5 !important;
}

/* .media-artwork::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
} */

.media-artwork::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit; /* Will be set by JavaScript */
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.3);
    z-index: 0;
}

.media-artwork.has-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.4) saturate(0.8);
    z-index: 0;
    transform: scale(1.1); /* Slightly larger to avoid blur edges */
}

/* .media-artwork img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    border-radius: 0;
} */

.media-artwork img {
    position: relative !important;
    z-index: 2 !important;
    object-fit: contain !important;
    vertical-align: top !important;
    height: inherit !important;
    max-height: inherit !important;
    border-radius: 0 !important;
    max-width: 100% !important;
    width: auto !important;
}

.media-artwork i {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Override any conflicting styles */
.show-card .media-artwork img,
.song-card .media-artwork img {
    object-fit: contain !important;
    height: inherit !important;
    max-height: inherit !important;
    vertical-align: top !important;
    max-width: 100% !important;
    width: auto !important;
    border-radius: 0 !important;
    position: static !important;
}

/* CRITICAL FIX: Prevent header logo from appearing in media cards */
.media-artwork .w-image,
.media-artwork .ush_image_1,
.media-card .w-image,
.media-card .ush_image_1 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ===========================================
   EXISTING MEDIA PLAYER STYLES
   =========================================== */

/* Media Grid Layout */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Media Card Styles */
.media-card {
    background: white !important;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.media-card.playing {
    border: 2px solid #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    background-color: #f8fafc;
}

/* Loading state for media cards */
.media-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.media-card.loading .play-btn,
.media-card.loading .play-episode-btn {
    opacity: 0.6;
    pointer-events: none;
}

.media-card.loading .play-btn i,
.media-card.loading .play-episode-btn i {
    animation: spin 1s linear infinite;
}

/* Force image visibility in music cards */
.song-card .media-artwork img,
.show-card .media-artwork img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Audio Player Artwork */
.audio-artwork {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.audio-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: inherit;
}

.audio-artwork i {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Media Content */
.media-content {
    padding: 0 20px 20px 20px; /* No top padding since image has margin */
    background: #ffffff !important;
    /* ADD !important */
    flex: 1;
    /* ADD THIS */
}

.media-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.media-description,
.media-artist {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.media-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: #9ca3af;
}

.episode-count::before {
    content: '📻 ';
}

.song-duration::before {
    content: '🎵 ';
}

/* EXPANDABLE DESCRIPTION STYLES - ADD THIS */
.expandable-description {
    margin-bottom: 12px;
}

.description-text {
    display: inline;
    line-height: 1.5;
}

.description-toggle {
    color: #10b981 !important;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    margin-left: 4px;
    font-size: 0.9rem;
    border: none;
    background: none;
    padding: 0;
    display: inline;
}

.description-toggle:hover {
    color: #059669 !important;
    text-decoration: underline;
}

.description-toggle:focus {
    outline: none;
    color: #059669 !important;
}

@media (prefers-color-scheme: dark) {

    .media-card,
    .media-content {
        background: #ffffff !important;
        color: #1f2937 !important;
    }

    .media-title {
        color: #1f2937 !important;
    }

    .media-description {
        color: #6b7280 !important;
    }
}

/* Media Actions */
.media-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.play-btn {
    background: #8b5cf6;
    color: white;
}

.play-btn:hover {
    background: #7c3aed;
}

.play-btn.playing {
    background: #10b981;
}

.play-btn.playing i::before {
    content: '\f04c';
    /* pause icon */
}

.play-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.play-btn.loading i {
    animation: spin 1s linear infinite;
}

.expand-btn {
    background: #e5e7eb;
    color: #4b5563;
}

.expand-btn:hover {
    background: #d1d5db;
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

.options-btn {
    background: transparent;
    color: #6b7280;
    padding: 8px;
    min-width: auto;
}

.options-btn:hover {
    background: #f3f4f6;
}

/* Episode List - FIXED VISIBILITY AND SCROLLING */
.episode-list {
    margin-top: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
    display: none;
    /* Hidden by default */
    max-height: 300px;
    overflow-y: auto;
    background: #ffffff !important;;
    border-radius: 8px;
    padding: 16px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* CRITICAL: Show episode list when expanded */
.episode-list.expanded {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

/* Ensure the episode list appears in the show template */
.show-card .episode-list {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Custom scrollbar for episode list */
.episode-list::-webkit-scrollbar {
    width: 6px;
}

.episode-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.episode-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.episode-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Episode Item - IMPROVED VISIBILITY AND INTERACTION */
.episode-item {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #f8fafc !important;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    display: block !important;
    /* Force visibility */
    opacity: 1;
    visibility: visible;
}

.episode-item:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.episode-item.playing {
    background: #ede9fe !important;;
    border-left: 4px solid #8b5cf6;
    border-color: #c4b5fd;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
}

.episode-item.loading {
    pointer-events: none;
    opacity: 0.7;
}

.episode-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.episode-info {
    flex: 1;
    min-width: 0;
    /* Allow text to wrap/truncate */
}

/* Episode Title - IMPROVED CONTRAST AND VISIBILITY */
.episode-title {
    font-weight: 600;
    color: #1e293b !important;
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    display: block;
}

/* Episode Meta - IMPROVED READABILITY */
.episode-meta {
    font-size: 0.8rem;
    color: #64748b !important;
    font-weight: 500;
    display: block;
}

.episode-meta span {
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Add icons to episode meta for better visual hierarchy */
.episode-number::before {
    content: '🎧';
    font-size: 0.75rem;
}

.episode-duration::before {
    content: '⏱️';
    font-size: 0.75rem;
}

.episode-actions {
    display: flex;
    gap: 8px;
}

.play-episode-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #8b5cf6;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.play-episode-btn:hover {
    background: #7c3aed;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.play-episode-btn.playing {
    background: #10b981;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.play-episode-btn.playing:hover {
    background: #059669;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.play-episode-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.play-episode-btn.loading i {
    animation: spin 1s linear infinite;
}

.episode-options-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-options-btn:hover {
    background: #e2e8f0;
    color: #475569;
    transform: scale(1.05);
}

/* Episode count indicator - IMPROVED STYLING */
.episode-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.episode-list-header h4 {
    margin: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.episode-count-badge {
    background: #8b5cf6;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Show "View All Episodes" hint when there are many episodes */
.episode-list-footer {
    text-align: center;
    padding: 12px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
    color: #64748b;
    font-size: 0.8rem;
    font-style: italic;
}

/* CRITICAL: Ensure show template has proper structure for episodes */
.show-card .media-content {
    position: relative;
    overflow: visible;
    /* Allow episode list to show */
}

/* Expand button animation - IMPROVED */
.expand-btn.expanded i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.expand-btn i {
    transition: transform 0.3s ease;
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 16px 24px;
    display: none;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.audio-player.active {
    display: flex;
}

/* Close button for audio player */
.close-player-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 12px;
    flex-shrink: 0;
}

.close-player-btn:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 0.8);
    transform: scale(1.05);
}

.close-player-btn:hover i {
    transform: rotate(90deg);
}

.close-player-btn i {
    transition: transform 0.2s ease;
}

/* Audio player loading state */
.audio-player.loading .main-play-btn {
    opacity: 0.6;
}

.audio-player.loading .main-play-btn i {
    animation: spin 1s linear infinite;
}

.audio-player.loading .current-title::after {
    content: ' (Lädt...)';
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.audio-info {
    flex: 1;
    min-width: 0;
    margin-right: 20px;
}

.audio-info h3 {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

/* Enhanced progress bar with dragging support */
.progress-bar {
    width: 100%;
    height: 8px;
    /* Slightly taller for better interaction */
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 8px;
    position: relative;
    transition: height 0.2s ease;
}

.progress-bar:hover {
    height: 10px;
    /* Expand on hover for easier clicking */
}

.progress-bar.dragging {
    height: 12px;
    /* Even taller when dragging */
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    width: 0%;
    transition: width 0.1s ease;
    position: relative;
}

/* Progress bar thumb for dragging */
.progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-bar:hover .progress-fill::after,
.progress-bar.dragging .progress-fill::after {
    opacity: 1;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.main-play-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* ADD THIS NEW CSS FOR DARK MODE: */
@media (prefers-color-scheme: dark) {
    .episode-list {
        background: #ffffff !important;
        color: #1f2937 !important;
        border-color: #e5e7eb !important;
    }
    
    .episode-item {
        background: #f8fafc !important;
        color: #1f2937 !important;
        border-color: #e2e8f0 !important;
    }
    
    .episode-item:hover {
        background: #e2e8f0 !important;
        color: #1f2937 !important;
    }
    
    .episode-item.playing {
        background: #ede9fe !important;
        color: #1f2937 !important;
    }
    
    .episode-title {
        color: #1e293b !important;
    }
    
    .episode-meta {
        color: #64748b !important;
    }
}

/* Enhanced volume bar with dragging support */
.volume-bar {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.volume-bar:hover {
    height: 8px;
}

.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    width: 100%;
    transition: width 0.1s ease;
    position: relative;
}

/* Volume bar thumb */
.volume-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.volume-bar:hover .volume-fill::after {
    opacity: 1;
}

/* Category Titles */
.category-title {
    position: relative;
    padding-left: 20px;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 2px;
}

/* Search and Filter Styling */
#searchInput:focus,
#categoryFilter:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Loading and Error States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Spin animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Button states */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Visual feedback for active states */
.media-card.playing .play-btn i {
    color: #10b981;
}

.episode-item.playing .play-episode-btn i {
    color: white;
}

/* Error state styling */
.error-state {
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
}

.error-state i {
    margin-right: 8px;
}

/* Success state styling */
.success-state {
    color: #10b981;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
}

/* Tooltip styles for buttons */
.action-btn[title],
.control-btn[title] {
    position: relative;
}

.action-btn[title]:hover::after,
.control-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 4px;
}

/* Focus states for accessibility */
.action-btn:focus,
.control-btn:focus,
.play-episode-btn:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Enhanced seeking feedback styles */
.seek-feedback,
.volume-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 10001;
    display: none;
    pointer-events: none;
    user-select: none;
    font-family: 'Poppins', sans-serif;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.seek-feedback {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.volume-feedback {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Keyboard shortcut hints */
.keyboard-shortcuts {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    z-index: 10001;
    display: none;
    max-width: 300px;
    backdrop-filter: blur(10px);
}

.keyboard-shortcuts.show {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.keyboard-shortcuts h4 {
    margin: 0 0 12px 0;
    font-weight: 600;
    color: #8b5cf6;
}

.keyboard-shortcuts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.keyboard-shortcuts li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    padding: 2px 0;
}

.keyboard-shortcuts .key {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.75rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Progress bar enhancement for better seeking */
.progress-bar {
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

/* Hover effect for seeking preview */
.progress-bar:hover::after {
    content: attr(data-time-preview);
    position: absolute;
    bottom: 100%;
    left: var(--preview-position, 50%);
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    margin-bottom: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.progress-bar:hover::after {
    opacity: 1;
}

/* Enhanced dragging states */
.progress-bar.dragging,
.volume-bar.dragging {
    cursor: grabbing;
}

.progress-bar:active,
.volume-bar:active {
    cursor: grabbing;
}

/* Highlighted Category Styles */
.highlighted-category {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.highlighted-category::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -10px;
    right: -10px;
    bottom: -2px;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    border-radius: 8px;
    opacity: 0.1;
    z-index: -1;
}

.highlighted-category-section {
    position: relative;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(167, 139, 250, 0.05) 100%);
    border: 2px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.highlighted-category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #A78BFA, #8B5CF6);
    border-radius: 12px 12px 0 0;
}

.highlight-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

/* Enhanced media grid for highlighted categories */
.highlighted-category-section .media-grid {
    gap: 20px;
}

.highlighted-category-section .media-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.highlighted-category-section .media-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Filter dropdown styling for highlighted categories */
.category-filter option[data-highlighted="true"] {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    font-weight: 600;
}

/* Star icon styling for highlighted categories */
.highlighted-category::before {
    content: '⭐';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {

    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translateY(-50%) scale(1.1);
    }
}

/* Animation for highlighted category appearance */
@keyframes highlightPulse {
    0% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    }

    50% {
        box-shadow: 0 4px 25px rgba(139, 92, 246, 0.2);
    }

    100% {
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    }
}

.highlighted-category-section {
    animation: highlightPulse 3s ease-in-out infinite;
}

/* DEBUG: Force visibility of all episode-related elements */
.episode-list,
.episode-item,
.episode-content,
.episode-info,
.episode-title,
.episode-meta {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Override any hiding styles */
.episode-list:not(.expanded) {
    display: none !important;
}

.episode-list.expanded {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

/* Ensure proper stacking */
.show-card {
    position: relative;
    z-index: 1;
}

.episode-list {
    position: relative;
    z-index: 2;
    background: white !important;
    border: 1px solid #e5e7eb;
}

/* Mobile responsive fixes for episode list */
@media (max-width: 768px) {
    .episode-list {
        max-height: 200px;
        padding: 12px;
    }

    .episode-item {
        padding: 12px;
        margin-bottom: 6px;
    }

    .episode-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .episode-actions {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .audio-player {
        padding: 12px 16px;
        gap: 12px;
    }

    .progress-container {
        max-width: 200px;
        margin: 0 12px;
    }

    .volume-container {
        display: none;
    }

    .audio-info {
        margin-right: 12px;
    }

    .media-actions {
        flex-direction: column;
        gap: 8px;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .episode-list {
        max-height: 200px;
        padding: 12px;
    }

    .keyboard-shortcuts {
        bottom: 120px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .highlighted-category-section {
        padding: 16px;
        margin-bottom: 20px;
    }

    .highlight-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
        margin-left: 6px;
    }

    .highlighted-category {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .episode-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .episode-actions {
        align-self: flex-end;
    }

    .audio-player {
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .audio-info {
        min-width: 150px;
    }

    .progress-container {
        order: 3;
        width: 100%;
        max-width: none;
        margin: 8px 0 0 0;
    }

    .episode-list {
        max-height: 150px;
    }

    .audio-controls {
        gap: 8px;
    }

    .control-btn {
        width: 38px;
        height: 38px;
    }

    .main-play-btn {
        width: 42px;
        height: 42px;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .media-card {
        background: #1f2937;
        color: white;
    }

    .media-title {
        color: white;
    }

    .episode-item {
        background: #374151;
        border-color: #4b5563;
    }

    .episode-item:hover {
        background: #4b5563;
        border-color: #6b7280;
    }

    .episode-title {
        color: #f1f5f9;
    }

    .episode-meta {
        color: #cbd5e1;
    }

    .episode-list {
        background: #1f2937;
        border-color: #4b5563;
    }

    .progress-bar,
    .volume-bar {
        background: rgba(255, 255, 255, 0.1);
    }

    .highlighted-category-section {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
        border-color: rgba(139, 92, 246, 0.3);
    }

    .highlighted-category-section .media-card {
        border-color: rgba(139, 92, 246, 0.2);
    }

    .highlighted-category-section .media-card:hover {
        border-color: rgba(139, 92, 246, 0.4);
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
    }
}

/* Print styles (hide player when printing) */
@media print {

    .audio-player,
    .keyboard-shortcuts,
    .seek-feedback,
    .volume-feedback {
        display: none !important;
    }
}

/* Ensure proper spacing and no overlapping elements */
.category-section {
    margin-bottom: 3rem;
    clear: both;
    overflow: hidden;
}

/* Hide any stray logos or images that might appear */
.media-card .w-image,
.media-card img:not(.media-artwork img),
.category-section .w-image:not(.l-footer .w-image) {
    display: none !important;
}

/* HIDE ALL 3-DOT BUTTONS */
.options-btn,
.action-btn.options-btn,
button.options-btn {
    display: none !important;
    visibility: hidden !important;
}

/* Hide ellipsis icons specifically */
.fa-ellipsis-v,
.fa-ellipsis-h {
    display: none !important;
}
/* ===========================================
   COMPLETE MOBILE NAVIGATION SOLUTION
   REPLACE YOUR EXISTING MOBILE NAV CSS WITH THIS
   =========================================== */

/* DESKTOP STYLES (Default - these work as they are) */
/* Your existing desktop styles should remain untouched */

/* MOBILE NAVIGATION STYLES */
@media (max-width: 768px) {

    /* Show hamburger button on mobile */
    .w-nav-control {
        display: block !important;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        background: none;
        border: none;
        color: var(--color-header-middle-text);
        cursor: pointer;
        padding: 8px;
    }

    /* Hamburger icon */
    .w-nav-icon {
        width: 24px;
        height: 18px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .w-nav-icon div {
        width: 100%;
        height: 2px;
        background: currentColor;
        transition: all 0.3s ease;
        border-radius: 1px;
        position: relative;
    }

    .w-nav-icon div::before,
    .w-nav-icon div::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: currentColor;
        transition: all 0.3s ease;
        border-radius: 1px;
    }

    .w-nav-icon div::before {
        top: -8px;
    }

    .w-nav-icon div::after {
        top: 8px;
    }

    /* Hide desktop navigation by default on mobile */
    .w-nav-list {
        display: none !important;
    }

    /* Show mobile navigation when active */
    .w-nav-list.active {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-header-middle-bg);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: 0;
        z-index: 1000;
        overflow-y: auto;
    }

    /* Style mobile menu items */
    .w-nav-list.active .w-nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .w-nav-list.active .w-nav-anchor {
        display: block;
        width: 100%;
        padding: 1rem 0;
        font-size: 1.2rem;
        color: var(--color-header-middle-text);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .w-nav-list.active .w-nav-anchor:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--color-header-middle-text-hover);
        padding-left: 1rem;
    }

    /* No close button needed - hamburger toggles open/close */

    /* Mobile Mediathek button - use the existing desktop button */
    .w-nav-list.active::after {
        content: 'Mediathek';
        display: block;
        width: calc(100% - 4rem);
        margin: 2rem auto 0;
        padding: 1rem;
        background: var(--color-content-primary-grad, var(--color-content-primary));
        color: white;
        border-radius: 8px;
        text-align: center;
        font-weight: 600;
        font-size: 1.1rem;
        cursor: pointer;
    }

    /* Hide desktop mediathek button on mobile */
    .w-btn.us-btn-style_1 {
        display: none !important;
    }

    /* Hide any mobile-only elements that shouldn't be there */
    .mobile-only,
    .w-nav-close,
    .mobile-mediathek-btn {
        display: none !important;
    }

    /* Hide hamburger when menu is open - keep it visible for toggling */
    .w-nav-list.active~.w-nav-control {
        opacity: 1;
        pointer-events: all;
    }

    /* Mobile header adjustments */
    .l-subheader.at_middle {
        height: 70px !important;
        line-height: normal !important;
        padding: 0.5rem 0;
    }

    .w-image img {
        max-height: 50px;
        max-width: 120px;
    }

    body {
        padding-top: 70px !important;
    }

    /* Hamburger animation when menu is open */
    .w-nav-list.active~.w-nav-control .w-nav-icon div {
        background: transparent;
    }

    .w-nav-list.active~.w-nav-control .w-nav-icon div::before {
        transform: rotate(45deg);
        top: 0;
    }

    .w-nav-list.active~.w-nav-control .w-nav-icon div::after {
        transform: rotate(-45deg);
        top: 0;
    }
}