/**
 * Podcast Player - Enhanced Frontend Styles
 * Features: Custom Controls, Chapters, Speed, Progress Bar
 */

:root {
    --podcast-player-bg: #ffffff;
    --podcast-player-bg-hover: #f8f9fa;
    --podcast-player-border: #e9ecef;
    --podcast-player-radius: 12px;
    --podcast-player-padding: 1.25rem;
    --podcast-player-title-color: #212529;
    --podcast-player-title-size: 1rem;
    --podcast-player-title-weight: 600;
    --podcast-player-meta-color: #6c757d;
    --podcast-player-meta-size: 0.8125rem;
    --podcast-player-accent: var(--gqrc-accent-color, #6962FE);
    --podcast-player-accent-hover: var(--gqrc-accent-hover, #5a54e0);
    --podcast-player-progress-bg: #e9ecef;
    --podcast-player-progress-buffered: #d4d4d4;
}

/* Main Container */
.podcast-player {
    background: transparent;
    border: 1px solid var(--podcast-player-border);
    border-radius: var(--podcast-player-radius);
    padding: var(--podcast-player-padding);
    margin: 1.5rem 0;
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Enhanced Player - Always uses full layout */
.podcast-player--enhanced {
    background: transparent;
    border-color: var(--podcast-player-border);
}

/* Minimaler Player - Lila Hintergrund (nur für alte Player ohne enhanced class) */
.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) {
    background: var(--podcast-player-accent);
    border-color: var(--podcast-player-accent);
}

/* Blurred Cover Background - nur für Player mit Kapiteln */
.podcast-player__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 200%;
    background-position: center;
    filter: blur(40px);
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    border-radius: var(--podcast-player-radius);
    clip-path: inset(0 round var(--podcast-player-radius));
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__bg {
    display: none;
}

/* Enhanced Player - Always show blurred background */
.podcast-player--enhanced .podcast-player__bg {
    display: block;
}


.podcast-player__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

/* Layout mit Kapiteln: 2-Spalten */
.podcast-player--with-chapters .podcast-player__inner {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    grid-template-rows: auto auto;
    gap: 1.25rem;
}

.podcast-player--with-chapters .podcast-player__header {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
}

.podcast-player--with-chapters .podcast-player__controls {
    grid-column: 1;
    grid-row: 2;
}

.podcast-player--with-chapters .podcast-player__chapters {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: calc(var(--podcast-player-padding) * -1);
    margin-left: 0;
    padding: 1.25rem;
    border-top: none;
    border-left: none;
    background: var(--podcast-player-accent);
    border-radius: 0 var(--podcast-player-radius) var(--podcast-player-radius) 0;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.podcast-player--with-chapters .podcast-player__chapters-list {
    flex: 1;
    overflow-y: auto;
    max-height: 160px;
}

@media (max-width: 600px) {
    .podcast-player--with-chapters .podcast-player__inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .podcast-player--with-chapters .podcast-player__chapters {
        grid-column: 1;
        grid-row: 3;
        margin: 0 calc(var(--podcast-player-padding) * -1) calc(var(--podcast-player-padding) * -1);
        padding: 1rem 1.25rem;
        border-top: none;
        border-radius: 0 0 var(--podcast-player-radius) var(--podcast-player-radius);
    }
}

/* Mobile Preview - erzwingt Mobile-Layout unabhängig von Bildschirmbreite */
.podcast-player--mobile-preview.podcast-player--with-chapters .podcast-player__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
}

.podcast-player--mobile-preview.podcast-player--with-chapters .podcast-player__chapters {
    grid-column: 1;
    grid-row: 3;
    margin: 0 calc(var(--podcast-player-padding) * -1) calc(var(--podcast-player-padding) * -1);
    padding: 1rem 1.25rem;
    border-top: none;
    border-left: none;
    border-radius: 0 0 var(--podcast-player-radius) var(--podcast-player-radius);
}

.podcast-player--mobile-preview .podcast-player__controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
}

.podcast-player--mobile-preview .podcast-player__main-controls {
    justify-content: center;
}

.podcast-player--mobile-preview .podcast-player__progress-container {
    order: -1;
    min-width: 100%;
}

.podcast-player--mobile-preview .podcast-player__secondary-controls {
    justify-content: center;
}

/* Episode Header with Cover */
.podcast-player__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.podcast-player__cover {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.podcast-player__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Episode Info */
.podcast-player__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.375rem;
    min-width: 0;
    flex: 1;
}

.podcast-player__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 11px;
    line-height: 1;
}

.podcast-player__episode-number {
    background: var(--podcast-player-accent);
    color: #fff;
    padding: 3px 7px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: 0.02em;
}

.podcast-player__series {
    background: rgba(105, 98, 254, 0.1);
    color: var(--podcast-player-accent);
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.podcast-player__title {
    font-size: var(--podcast-player-title-size);
    font-weight: var(--podcast-player-title-weight);
    color: var(--podcast-player-title-color);
    line-height: 1.35;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
}

.podcast-player__duration {
    font-size: var(--podcast-player-meta-size);
    color: var(--podcast-player-meta-color);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.podcast-player__duration i {
    font-size: 12px;
    opacity: 0.8;
}

/* Hidden native audio */
.podcast-player__audio {
    display: none;
}

/* Controls Container */
.podcast-player__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
    position: relative;
    z-index: 2;
}

/* Minimaler Player - Controls in einer Zeile */
.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__controls {
    flex-wrap: nowrap;
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__progress-container {
    min-width: 100px;
}

/* Minimaler Player - Weisse Texte auf Lila */
.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__title {
    color: #fff;
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__duration {
    color: rgba(255, 255, 255, 0.8);
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__btn {
    color: rgba(255, 255, 255, 0.9);
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__btn:hover {
    color: #fff;
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__btn--play {
    background: #fff;
    color: var(--podcast-player-accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__btn--play:hover {
    background: rgba(255, 255, 255, 0.9);
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__time {
    color: rgba(255, 255, 255, 0.8);
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__progress {
    background: rgba(255, 255, 255, 0.2);
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__progress-bar {
    background: #fff;
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__progress-buffered {
    background: rgba(255, 255, 255, 0.3);
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__speed {
    color: rgba(255, 255, 255, 0.9);
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__volume-btn {
    color: rgba(255, 255, 255, 0.9);
}

/* Enhanced Player - Standard Layout nur ohne Kapitel */
.podcast-player--enhanced:not(.podcast-player--with-chapters) .podcast-player__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.podcast-player--enhanced .podcast-player__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

/* Main Controls (Skip, Play, Skip) */
.podcast-player__main-controls {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Buttons */
.podcast-player__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--podcast-player-title-color);
    transition: all 0.15s ease;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.podcast-player__btn:hover {
    color: var(--podcast-player-accent);
}

.podcast-player__btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Play Button */
.podcast-player__btn--play {
    width: 44px;
    height: 44px;
    background: var(--podcast-player-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(105, 98, 254, 0.3);
    position: relative;
    overflow: hidden;
}

.podcast-player__btn--play:hover {
    background: var(--podcast-player-accent-hover);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(105, 98, 254, 0.4);
}

.podcast-player__btn--play i {
    font-size: 18px;
    margin-left: 2px; /* Optischer Ausgleich für Play-Icon */
}

.podcast-player__btn--play i.icon-pause {
    margin-left: 0;
}

/* Skip Buttons */
.podcast-player__skip {
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 4px;
    border-radius: 50%;
    background: var(--podcast-player-bg-hover);
    position: relative;
    overflow: hidden;
}

.podcast-player__skip:hover {
    background: var(--podcast-player-border);
    color: var(--podcast-player-accent);
}

.podcast-player__skip i {
    font-size: 14px;
    line-height: 1;
}

.podcast-player__skip-label {
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    margin-top: -2px;
}

/* Minimaler Player - Skip Buttons auf Lila */
.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__skip {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.podcast-player:not(.podcast-player--with-chapters):not(.podcast-player--enhanced) .podcast-player__skip:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Progress Container */
.podcast-player__progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    overflow: hidden;
}

.podcast-player__time {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
    min-width: 38px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.podcast-player__time--current {
    text-align: right;
}

.podcast-player__time--duration {
    text-align: left;
}

/* Progress Bar */
.podcast-player__progress {
    flex: 1;
    height: 12px;
    background: var(--podcast-player-progress-bg);
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
}

/* Waveform Canvas - Hidden */
.podcast-player__waveform {
    display: none;
}

/* Buffered progress bar */
.podcast-player__progress-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--podcast-player-progress-buffered);
    border-radius: 6px;
    transition: width 0.1s;
}

/* Current progress bar */
.podcast-player__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--podcast-player-accent);
    border-radius: 6px;
    transition: width 0.1s;
    z-index: 1;
}

.podcast-player__progress-input {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: calc(100% + 16px);
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

.podcast-player__progress:hover .podcast-player__progress-bar {
    background: var(--podcast-player-accent-hover);
}

/* Progress bar hover effect */
.podcast-player__progress:hover {
    height: 14px;
}

/* Secondary Controls */
.podcast-player__secondary-controls {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Speed Button */
.podcast-player__speed {
    font-size: 11px;
    font-weight: 600;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--podcast-player-bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.podcast-player__speed:hover {
    background: var(--podcast-player-border);
}

/* Volume Button */
.podcast-player__volume-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--podcast-player-bg-hover);
    position: relative;
    overflow: hidden;
}

.podcast-player__volume-btn:hover {
    background: var(--podcast-player-border);
}

.podcast-player__volume-btn i {
    font-size: 16px;
}

/* Speed Menu */
.podcast-player__speed-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background: var(--podcast-player-bg);
    border: 1px solid var(--podcast-player-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 100;
    flex-direction: column;
    min-width: 72px;
}

.podcast-player__speed-menu button {
    display: block;
    width: 100%;
    padding: 7px 10px;
    background: transparent;
    border: none;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.15s;
    color: var(--podcast-player-title-color);
}

.podcast-player__speed-menu button:hover {
    background: var(--podcast-player-bg-hover);
}

.podcast-player__speed-menu button.active {
    background: var(--podcast-player-accent);
    color: #fff;
    font-weight: 600;
}

/* Volume */
.podcast-player__volume {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 40px;
    background: var(--podcast-player-bg);
    border: 1px solid var(--podcast-player-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 12px;
    z-index: 100;
}

.podcast-player__volume-input {
    width: 100px;
    height: 4px;
    appearance: none;
    background: var(--podcast-player-progress-bg);
    border-radius: 2px;
    cursor: pointer;
}

.podcast-player__volume-input::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    background: var(--podcast-player-accent);
    border-radius: 50%;
    cursor: pointer;
}

/* Chapters - Inline Always Visible */
.podcast-player__chapters {
    margin-top: 1rem;
    border-top: 1px solid var(--podcast-player-border);
    padding-top: 1rem;
    position: relative;
    z-index: 2;
}

.podcast-player__chapters-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Chapter Item - Vertical List */
.podcast-player__chapter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 13px;
    text-align: left;
    width: 100%;
    color: var(--podcast-player-title-color);
}

.podcast-player__chapter:hover {
    background: var(--podcast-player-bg-hover);
}

.podcast-player__chapter.active {
    background: rgba(105, 98, 254, 0.08);
}

.podcast-player__chapter.active .podcast-player__chapter-time {
    color: var(--podcast-player-accent);
}

.podcast-player__chapter.active .podcast-player__chapter-title {
    color: var(--podcast-player-accent);
    font-weight: 500;
}

/* Kapitel auf lila Hintergrund (mit chapters layout) */
.podcast-player--with-chapters .podcast-player__chapter {
    color: rgba(255, 255, 255, 0.9);
}

.podcast-player--with-chapters .podcast-player__chapter:hover {
    background: rgba(255, 255, 255, 0.15);
}

.podcast-player--with-chapters .podcast-player__chapter.active {
    background: rgba(255, 255, 255, 0.2);
}

.podcast-player--with-chapters .podcast-player__chapter.active .podcast-player__chapter-time,
.podcast-player--with-chapters .podcast-player__chapter.active .podcast-player__chapter-title {
    color: #fff;
}

.podcast-player--with-chapters .podcast-player__chapter-time {
    color: rgba(255, 255, 255, 0.7);
}

.podcast-player--with-chapters .podcast-player__chapter-title {
    color: rgba(255, 255, 255, 0.9);
}

.podcast-player__chapter-time {
    font-weight: 600;
    color: var(--podcast-player-meta-color);
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    min-width: 40px;
    flex-shrink: 0;
}

.podcast-player__chapter-title {
    color: var(--podcast-player-title-color);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.podcast-player__chapter-img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --podcast-player-bg: #1a1a2e;
        --podcast-player-bg-hover: #252540;
        --podcast-player-border: #2d2d44;
        --podcast-player-title-color: #f8f9fa;
        --podcast-player-meta-color: #adb5bd;
        --podcast-player-progress-bg: #3d3d5c;
        --podcast-player-progress-buffered: #4d4d6c;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .podcast-player {
        padding: 1rem;
    }

    .podcast-player__controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.875rem;
    }

    .podcast-player__main-controls {
        justify-content: center;
    }

    .podcast-player__progress-container {
        order: -1;
        min-width: 100%;
    }

    .podcast-player__secondary-controls {
        justify-content: center;
    }
}

/* Wide/Full Alignment Support */
.alignwide .podcast-player,
.alignfull .podcast-player {
    max-width: 100%;
}

/* Focus States for Accessibility */
.podcast-player__btn:focus-visible,
.podcast-player__chapter:focus-visible {
    outline: 2px solid var(--podcast-player-accent);
    outline-offset: 2px;
}

.podcast-player__progress-input:focus-visible + .podcast-player__progress-bar {
    box-shadow: 0 0 0 2px var(--podcast-player-accent);
}

/* Resume Notice */
.podcast-player__resume-notice {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--podcast-player-accent);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 100;
    animation: podcast-resume-fadein 0.3s ease;
}

@keyframes podcast-resume-fadein {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.podcast-player__resume-restart {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.podcast-player__resume-restart:hover {
    background: rgba(255, 255, 255, 0.3);
}

.podcast-player__resume-restart i {
    font-size: 11px;
}

/* ================================
   Enhanced Player - Mobile Styles
   ================================ */

/* Enhanced Player - bessere Desktop-Darstellung */
@media (min-width: 601px) {
    .podcast-player--enhanced .podcast-player__inner {
        gap: 1.5rem;
    }

    .podcast-player--enhanced .podcast-player__header {
        gap: 1.5rem;
        margin-bottom: 1rem;
    }

    .podcast-player--enhanced .podcast-player__cover {
        width: 160px;
        height: 160px;
        border-radius: 12px;
    }

    .podcast-player--enhanced .podcast-player__info {
        gap: 0.5rem;
    }

    .podcast-player--enhanced .podcast-player__title {
        font-size: 1.5rem;
    }

    .podcast-player--enhanced .podcast-player__duration {
        font-size: 1rem;
    }

    .podcast-player--enhanced .podcast-player__controls {
        gap: 1.25rem;
    }

    .podcast-player--enhanced .podcast-player__main-controls {
        gap: 0.75rem;
    }

    .podcast-player--enhanced .podcast-player__btn--play {
        width: 64px;
        height: 64px;
    }

    .podcast-player--enhanced .podcast-player__btn--play i {
        font-size: 24px;
    }

    .podcast-player--enhanced .podcast-player__skip {
        width: 52px;
        height: 52px;
    }

    .podcast-player--enhanced .podcast-player__skip i {
        font-size: 18px;
    }

    .podcast-player--enhanced .podcast-player__skip-label {
        font-size: 9px;
    }

    .podcast-player--enhanced .podcast-player__speed,
    .podcast-player--enhanced .podcast-player__volume-btn {
        width: 48px;
        height: 48px;
    }

    .podcast-player--enhanced .podcast-player__speed {
        font-size: 13px;
    }

    .podcast-player--enhanced .podcast-player__progress-container {
        gap: 1rem;
    }

    .podcast-player--enhanced .podcast-player__time {
        font-size: 14px;
        min-width: 48px;
    }

    .podcast-player--enhanced .podcast-player__progress {
        height: 16px;
        border-radius: 8px;
    }

    .podcast-player--enhanced .podcast-player__progress:hover {
        height: 18px;
    }

    .podcast-player--enhanced .podcast-player__progress-bar,
    .podcast-player--enhanced .podcast-player__progress-buffered {
        border-radius: 8px;
    }
}

/* Enhanced Player Mobile */
@media (max-width: 600px) {
    .podcast-player--enhanced {
        padding: 1rem;
    }

    .podcast-player--enhanced .podcast-player__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .podcast-player--enhanced .podcast-player__cover {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        max-width: 200px;
        margin: 0 auto;
    }

    .podcast-player--enhanced .podcast-player__info {
        width: 100%;
        text-align: center;
    }

    .podcast-player--enhanced .podcast-player__meta {
        justify-content: center;
    }

    .podcast-player--enhanced .podcast-player__title {
        font-size: 1rem;
    }

    .podcast-player--enhanced .podcast-player__controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .podcast-player--enhanced .podcast-player__main-controls {
        justify-content: center;
        order: 1;
    }

    .podcast-player--enhanced .podcast-player__progress-container {
        order: 2;
        width: 100%;
    }

    .podcast-player--enhanced .podcast-player__secondary-controls {
        justify-content: center;
        order: 3;
    }

    /* Play Button größer auf Mobile */
    .podcast-player--enhanced .podcast-player__btn--play {
        width: 56px;
        height: 56px;
    }

    .podcast-player--enhanced .podcast-player__btn--play i {
        font-size: 22px;
    }

    /* Skip Buttons etwas größer */
    .podcast-player--enhanced .podcast-player__skip {
        width: 44px;
        height: 44px;
    }

    .podcast-player--enhanced .podcast-player__skip i {
        font-size: 16px;
    }

    .podcast-player--enhanced .podcast-player__skip-label {
        font-size: 10px;
    }
}

/* ================================
   Button Glitch Effects - Hover Only
   ================================ */

/* Horizontal slice glitch overlay - hidden by default */
.podcast-player__btn--play::after,
.podcast-player__skip::after,
.podcast-player__speed::after,
.podcast-player__volume-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    background: inherit;
    z-index: 10;
    opacity: 0;
    clip-path: inset(0 0 100% 0);
}

/* Glitch effects on hover */
.podcast-player__btn--play:hover,
.podcast-player__skip:hover,
.podcast-player__speed:hover,
.podcast-player__volume-btn:hover {
    animation: btn-glitch-hover 0.4s ease;
}

.podcast-player__btn--play:hover::after,
.podcast-player__skip:hover::after,
.podcast-player__speed:hover::after,
.podcast-player__volume-btn:hover::after {
    animation: slice-glitch-hover 0.5s ease;
}

/* Chromatic aberration + skew glitch */
@keyframes btn-glitch-hover {
    0%, 100% {
        transform: translate(0, 0) skew(0deg);
        filter: none;
        box-shadow: none;
    }
    10% {
        transform: translate(-3px, 1px) skew(-3deg);
        filter: hue-rotate(90deg);
        box-shadow:
            4px 0 0 rgba(255, 0, 128, 0.7),
            -4px 0 0 rgba(0, 255, 255, 0.7);
    }
    20% {
        transform: translate(3px, -1px) skew(3deg);
        filter: hue-rotate(-90deg);
        box-shadow:
            -3px 0 0 rgba(0, 255, 128, 0.7),
            3px 0 0 rgba(255, 0, 255, 0.7);
    }
    30% {
        transform: translate(-2px, 0) skew(-2deg);
        filter: hue-rotate(60deg);
        box-shadow:
            3px 0 0 rgba(255, 255, 0, 0.6),
            -3px 0 0 rgba(0, 128, 255, 0.6);
    }
    40% {
        transform: translate(2px, 1px) skew(2deg);
        filter: grayscale(0.5);
        box-shadow:
            -2px 0 0 rgba(255, 0, 128, 0.5),
            2px 0 0 rgba(0, 255, 255, 0.5);
    }
    50% {
        transform: translate(-1px, -1px) skew(-1deg);
        filter: hue-rotate(-45deg);
        box-shadow:
            2px 0 0 rgba(0, 255, 128, 0.4),
            -2px 0 0 rgba(255, 0, 255, 0.4);
    }
    60% {
        transform: translate(1px, 0) skew(1deg);
        filter: none;
        box-shadow: none;
    }
}

/* Horizontal slice glitch on hover */
@keyframes slice-glitch-hover {
    0%, 100% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
        transform: translateX(0);
    }
    10% {
        opacity: 0.9;
        clip-path: inset(0% 0 70% 0);
        transform: translateX(-10px);
        filter: hue-rotate(90deg);
    }
    20% {
        opacity: 0.8;
        clip-path: inset(25% 0 50% 0);
        transform: translateX(8px);
        filter: hue-rotate(-60deg);
    }
    30% {
        opacity: 0.85;
        clip-path: inset(45% 0 30% 0);
        transform: translateX(-12px);
        filter: hue-rotate(120deg);
    }
    40% {
        opacity: 0.9;
        clip-path: inset(60% 0 15% 0);
        transform: translateX(10px);
        filter: invert(1);
    }
    50% {
        opacity: 0.7;
        clip-path: inset(75% 0 5% 0);
        transform: translateX(-6px);
        filter: grayscale(1);
    }
    60% {
        opacity: 0.8;
        clip-path: inset(10% 0 60% 0);
        transform: translateX(15px);
        filter: hue-rotate(180deg);
    }
    70% {
        opacity: 0.6;
        clip-path: inset(35% 0 40% 0);
        transform: translateX(-8px);
        filter: hue-rotate(-90deg);
    }
    80% {
        opacity: 0.4;
        clip-path: inset(55% 0 20% 0);
        transform: translateX(5px);
        filter: none;
    }
    90% {
        opacity: 0.2;
        clip-path: inset(80% 0 0% 0);
        transform: translateX(-3px);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .podcast-player__btn--play:hover,
    .podcast-player__skip:hover,
    .podcast-player__speed:hover,
    .podcast-player__volume-btn:hover {
        animation: none;
    }

    .podcast-player__btn--play:hover::after,
    .podcast-player__skip:hover::after,
    .podcast-player__speed:hover::after,
    .podcast-player__volume-btn:hover::after {
        animation: none;
    }
}
