/* ==================== HERO MUSIC PLAYER STYLES ==================== */

.hero-music-player-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    /* Startet unsichtbar */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    /* WICHTIG: Verhindert Layout-Shifts */
    will-change: opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Sichtbar beim Scrollen */
.hero-music-player-wrapper.visible {
    opacity: 1;
    pointer-events: auto;
}

.hero-music-player {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.25);
    
    /* WICHTIG: NUR width animieren, NICHT min/max */
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.3s ease;
    
    position: relative;
    display: flex;
    overflow: hidden;
    
    /* PERFORMANCE OPTIMIERUNGEN */
    will-change: width, height;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    
    /* ERWEITERTER ZUSTAND - FIXIERTE BREITE */
    width: 540px;
    height: auto;
}

/* KOMPAKTER MODUS (Tab am Rand) */
.hero-music-player.compact {
    width: 50px;
    height: 180px;
    border-radius: 24px 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.hero-music-player.compact:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.25) 100%);
    box-shadow: -6px 0 20px rgba(0, 0, 0, 0.4);
}

/* Tab-Button Inhalt (für kompakten Modus) */
.hero-tab-button {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-music-player.compact .hero-tab-button {
    display: flex;
}

.hero-tab-icon {
    width: 28px;
    height: 28px;
    fill: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hero-tab-text {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Verstecke alle Player-Elemente im kompakten Modus */
.hero-music-player.compact .hero-player-content,
.hero-music-player.compact .hero-integrated-tabs,
.hero-music-player.compact .hero-toggle-btn {
    display: none !important;
}

/* ERWEITERTER MODUS */
.hero-music-player:not(.compact):hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* INTEGRIERTE TABS (LINKS IM PLAYER) - NEUES LAYOUT */
.hero-integrated-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 24px 24px 24px;
    
    /* ANPASSUNG: Breite erhöhen, z.B. von 120px auf 160px */
    min-width: 160px; 
    width: 160px;
    
    align-items: center;
    justify-content: space-between;
    position: relative;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.hero-integrated-tabs-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.hero-integrated-tab {
    background: none;
    border: none;
    border-radius: 12px;
    padding: 12px 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px; 
    width: 100%;
}

/* Entferne den vertikalen Strich-Effekt */
.hero-integrated-tab::before {
    display: none;
}

.hero-integrated-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.hero-integrated-tab.active {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-integrated-tab-text {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.5px;
    text-transform: none; 
    text-shadow: none; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: all 0.3s ease;
    padding: 0 5px; 
}

.hero-integrated-tab.active .hero-integrated-tab-text {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Sort Buttons Styling (im linken Bereich) */
.hero-integrated-sort {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Standardmäßig versteckt im Expanded Mode */
    display: none; 
}

/* Sort-Buttons anzeigen, wenn die Klasse "playlist-open" auf dem Player ist */
.hero-music-player.playlist-open .hero-integrated-sort {
    display: flex;
}

/* AAW Player Logo */
.hero-player-logo {
    display: none;
    width: 100%;
    text-align: center;
    padding: 15px 5px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fall 1: Kompakter Modus (immer anzeigen) */
.hero-music-player.compact .hero-player-logo {
    display: block;
}

/* Fall 2: Erweiterter Modus (anzeigen, wenn Dropdown NICHT offen ist) */
.hero-music-player:not(.compact) .hero-player-logo {
    display: block;
}

/* Logo verstecken, wenn Dropdown offen ist (über die Player-Klasse) */
/* .hero-music-player.playlist-open .hero-player-logo {
    display: none;
} */

.hero-player-logo-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-sort-btn-wrapper { 
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
}

/* Bestehende Sort-Button-Klasse anpassen */
.hero-sort-btn {
    background: none; 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-radius: 12px;
    padding: 10px 10px; 
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 0; 
    flex: 1; 
}

.hero-sort-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: none; 
}

.hero-sort-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.hero-sort-btn svg {
    width: 22px; 
    height: 22px;
    fill: rgba(255, 255, 255, 0.8);
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.1));
}

.hero-sort-btn.active svg {
    fill: #fff;
}

/* Verstecke den alten hero-sort-header im Dropdown */
.hero-playlist-dropdown .hero-sort-header {
    display: none !important;
}
/* PLAYER CONTENT BEREICH */
.hero-player-content {
    flex: 1;
    padding: 32px 52px 24px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Song Title */
.hero-song-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    margin: 0 0 28px 0;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: font-size 0.3s ease;
}

/* Kleinere Schrift bei langen Titeln */
.hero-song-title.long-title {
    font-size: 15px;
}

.hero-song-title.very-long-title {
    font-size: 13px;
}

/* Top Row: Playlist + Volume */
.hero-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

/* Playlist Dropdown Button */
.hero-playlist-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    white-space: nowrap;
}

.hero-playlist-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.hero-playlist-toggle svg {
    width: 14px;
    height: 14px;
    fill: #fff;
    transition: transform 0.3s ease;
}

.hero-playlist-toggle:not(.open) svg {
    transform: rotate(0deg);
}

.hero-playlist-toggle.open svg {
    transform: rotate(180deg);
}

/* Volume Control */
.hero-volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.hero-volume-btn:hover {
    transform: scale(1.15);
}

.hero-volume-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-volume-slider {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.hero-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.hero-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.hero-volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.hero-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

/* Progress Bar */
.hero-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 18px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

/* Control Buttons */
.hero-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.hero-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.hero-control-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.hero-control-btn.play-pause {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.hero-control-btn.play-pause:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.hero-control-btn.play-pause svg {
    width: 24px;
    height: 24px;
}

/* PLAYLIST DROPDOWN MIT FLÜSSIGER ANIMATION */
.hero-playlist-dropdown {
    overflow: hidden;
    padding: 0;
    margin: 0 -52px 0 -20px;
    width: calc(100% + 72px);
    background: transparent;
    border: none;
    position: relative;
    
    /* WICHTIG: Immer height verwenden für Animation */
    height: 0;
    
    /* FLÜSSIGE TRANSITION für alle Zustände */
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Geöffneter Zustand */
.hero-playlist-dropdown.open {
    height: var(--playlist-height, 350px);
    padding: 0;
    margin-top: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

/* Sort Header (Fixed, scrollt nicht mit) - WIRD JETZT AUSGEBLENDET */
.hero-sort-header {
    /* WIRD DURCH hero-integrated-sort ERSETZT */
    display: none;
}

/* Playlist Content (scrollbar) */
.hero-playlist-content {
    overflow-y: auto;
    /* Oben 24px Platz für den Handle */
    padding: 24px 52px 18px 20px; 
    flex: 1;
    /* Sanftes Scroll-Verhalten */
    scroll-behavior: smooth;
}

/* Scrollbar Styling */
.hero-playlist-content::-webkit-scrollbar {
    width: 6px;
    background-color: transparent;
}

.hero-playlist-content::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.hero-playlist-content::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}

.hero-playlist-item {
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.hero-playlist-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hero-playlist-item.active {
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    color: #fff;
    border-left: 3px solid #fff;
    padding-left: 7px;
}

.hero-playlist-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

/* RESIZE HANDLE OBEN */
.hero-resize-handle {
    position: absolute;
    top: 0; 
    left: 0;
    right: 0;
    height: 18px; 
    cursor: ns-resize;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

/* Zeige den Handle nur, wenn das Dropdown offen ist (über die Player-Klasse) */
.hero-music-player.playlist-open .hero-resize-handle {
    display: flex;
}

/* Hover-Effekt auf dem Handle-Bereich */
.hero-resize-handle:hover {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Resize Indikator (Horizontaler Balken) */
.hero-resize-indicator {
    width: 40px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-resize-handle:hover .hero-resize-indicator {
    background: #fff;
    width: 60px;
    height: 4px;
}

/* TOGGLE BUTTON (Schließen-Button) - ERHÖHTER Z-INDEX */
.hero-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(100, 100, 100, 1.0);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.hero-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hero-toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

/* RESPONSIVE ANPASSUNGEN */

/* TABLETS (768px bis 1024px) - NUR für echte Tablets, nicht Laptops */
@media (max-width: 1024px) and (min-width: 769px) and (hover: none) and (pointer: coarse) {
    .hero-music-player-wrapper {
        bottom: 30px;
        right: 0;
    }

    .hero-music-player {
        /* Breite 640px */
        width: 640px;

        /* Dunkle Deckkraft (40% Schwarz) */
        background: rgba(0, 0, 0, 0.4); 
        border: 1px solid rgba(255, 255, 255, 0.15); 
        backdrop-filter: blur(25px); 
        -webkit-backdrop-filter: blur(25px);
    }
    
    .hero-music-player:not(.compact):hover {
        background: rgba(0, 0, 0, 0.5); 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    }
    
    /* Kompakter Modus */
    .hero-music-player.compact {
        right: 0;
        width: 50px;
        height: 180px;
        border-radius: 24px 0 0 24px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 100%);
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
    }

    .hero-music-player.compact:hover {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 100%);
    }

    /* Playlist Dropdown */
    .hero-playlist-dropdown.open {
        background: rgba(0, 0, 0, 0.4); 
    }
    
    /* WICHTIG: VERTICAL PADDING REDUZIEREN */
    .hero-player-content {
        padding: 15px 40px 10px 20px; /* TOP und BOTTOM Padding stark reduziert */
    }
    
    .hero-integrated-tabs {
        padding: 10px 20px; /* TOP und BOTTOM Padding reduziert */
    }
    
    .hero-integrated-tab {
        min-height: 30px; /* Höhe reduziert */
        padding: 5px 0; /* Padding reduziert */
    }
    
    .hero-integrated-tab-text {
        font-size: 12px;
    }

    /* Element-Abstände reduzieren */
    .hero-song-title {
        font-size: 16px;
        margin-bottom: 10px; /* Abstand reduziert */
    }

    .hero-top-row {
        flex-direction: column;
        gap: 5px; /* Abstand reduziert */
    }

    /* Controller Größen beibehalten */
    .hero-playlist-toggle,
    .hero-volume-control {
        width: 100%;
        justify-content: center;
    }

    .hero-volume-slider {
        width: 100px;
    }

    .hero-control-btn {
        width: 40px; /* Button Größe leicht reduziert */
        height: 40px; 
    }

    .hero-control-btn.play-pause {
        width: 50px; /* Button Größe leicht reduziert */
        height: 50px;
    }

    /* Playlist-Dropdown-Inhalt Padding reduzieren */
    .hero-playlist-dropdown {
        margin: 0 -20px;
        width: calc(100% + 40px);
    }
    
    .hero-playlist-content {
        padding: 15px 20px 10px 20px; /* TOP und BOTTOM Padding stark reduziert */
    }
    
    /* Logo und Sort-Buttons sind hier sichtbar */
    .hero-integrated-sort, .hero-player-logo {
        /* Sollten hier sichtbar sein (kein display: none!) */
    }
}

/* --- */

/* SMARTPHONES (unter 480px) */
@media (max-width: 480px) {
    /* 1. WRAPPER: Immer noch zentriert unten (für den erweiterten Modus) */
    .hero-music-player-wrapper {
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .hero-music-player {
        /* Breite im erweiterten Modus */
        width: 90vw;
        border-radius: 16px;
        
        /* Layout-Anpassung, um Platz für Tabs/Buttons zu schaffen */
        flex-direction: column; 
        
        /* Deckkraft bleibt */
        background: rgba(255, 255, 255, 0.15); 
        border: 1px solid rgba(255, 255, 255, 0.25); 
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }
    
    /* 2. KOMPAKTER MODUS: Zentriert unten, Rechteck-Button */
    .hero-music-player.compact {
        /* Zentrieren und Positionierung (übernimmt Position vom Wrapper) */
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 20px;
        
        /* LAYOUT: Breiter, flacher Button */
        width: 150px; /* Schön bedienbare Breite */
        height: 60px; /* Standard Button-Höhe */
        
        /* FORM: Leicht abgerundet */
        border-radius: 16px; 
        
        /* Hintergrund */
        background: rgba(0, 0, 0, 0.6); /* Dunklere Farbe für Kontrast */
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    }

    /* 3. INHALT IM KOMPAKTEN MODUS ANPASSEN */
    .hero-music-player.compact .hero-tab-button {
        /* Icon mittig im neuen, breiten Button */
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 0;
        gap: 0;
    }
    
    .hero-music-player.compact .hero-tab-text,
    .hero-music-player.compact .hero-player-logo {
        display: none;
    }

    .hero-tab-icon {
        width: 30px;
        height: 30px;
    }
    
    /* 4. TABS UND SORTIERBUTTONS im erweiterten Modus (wenn Playlist offen ist) */
    .hero-integrated-tabs {
        /* WICHTIG: TABS NICHT MEHR AUSBLENDEN (display: none; entfernt) */
        display: flex; /* Tabs anzeigen */
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px; /* Etwas kleineres Padding */
        min-width: 100%; /* Volle Breite im mobilen Container */
        width: 100%;
        box-shadow: none;
        order: 1; /* Tabs oben platzieren */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-integrated-tab {
        min-height: 30px;
        padding: 8px 0;
    }

    /* Sortierbuttons im erweiterten Modus innerhalb der Tabs anzeigen */
    .hero-integrated-sort {
        /* WICHTIG: AUSBLENDUNG ENTFALLEN LASSEN */
        /* display: flex; wird über die übergeordnete Klasse .playlist-open gesteuert */
    }

    /* 5. RESTLICHER EXPANDIERTER INHALT */
    .hero-player-content {
        padding: 20px;
        order: 3; /* Content unten */
    }

    .hero-playlist-dropdown {
        /* Passt die Playlist unter die Tabs (übernimmt die neue Breite) */
        margin: 0 -20px; 
        width: calc(100% + 40px);
        order: 2; /* Playlist in die Mitte */
    }
    
    .hero-playlist-content {
        padding: 24px 20px 18px 20px; 
    }
    
    /* Mobile-spezifische Anpassungen beibehalten */
	.hero-song-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-top-row {
        flex-direction: column;
        gap: 10px;
    }

    .hero-player-logo {
        display: none !important;
    }

    /* Volume/Toggle Control etc. beibehalten */
    .hero-playlist-toggle,
    .hero-volume-control {
        width: 100%;
        justify-content: center;
    }

    .hero-volume-slider {
        width: 100px;
    }

    .hero-control-btn {
        width: 46px;
        height: 46px;
    }

    .hero-control-btn.play-pause {
        width: 56px;
        height: 56px;
    }
}0%, rgba(0, 0, 0, 0.5) 100%);
        box-shadow: -6px 0 20px rgba(0, 0, 0, 0.6);
    }
    
    .hero-player-content {
        padding: 28px 48px 20px 18px;
    }
    
    /* NEU: BREITERER TAB-BEREICH FÜR IPADS */
    .hero-integrated-tabs {
        padding: 24px 16px; /* Padding angepasst */
        min-width: 150px; /* Breite erhöht */
        width: 150px;     /* Breite erhöht */
    }

    .hero-integrated-tab-button {
        /* Zentrierung und Abstand der Buttons anpassen */
        justify-content: center;
        gap: 8px;
    }
    
    .hero-integrated-tab-text {
        font-size: 14px;
    }
    
    .hero-playlist-dropdown {
        margin: 0 -48px 0 -18px;
        width: calc(100% + 66px);
    }

    .hero-playlist-dropdown.open {
        background: rgba(0, 0, 0, 0.4); 
    }
    
    .hero-playlist-content {
        padding: 24px 48px 18px 18px; 
    }
}

/* --- */

/* TABLETS (Klein: 481px bis 768px) - Optimiert für Geräte wie Kindle Fire HD */
@media (max-width: 768px) and (min-width: 481px) and (hover: none) and (pointer: coarse) {
    .hero-music-player-wrapper {
        bottom: 10px; /* Abstand unten reduziert */
        right: 0;
    }

    .hero-music-player {
        /* Breite 580px beibehalten */
        width: 580px;

        /* Dunkle Deckkraft (40% Schwarz) */
        background: rgba(0, 0, 0, 0.4); 
        border: 1px solid rgba(255, 255, 255, 0.15); 
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }

    .hero-music-player:not(.compact):hover {
        background: rgba(0, 0, 0, 0.5); 
    }

    /* Kompakter Modus */
    .hero-music-player.compact {
        right: 0;
        left: auto;
        transform: none;
        width: 50px;
        height: 160px; /* Höhe etwas reduziert */
        border-radius: 24px 0 0 24px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 100%);
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.5);
    }
    
    .hero-music-player.compact:hover {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.6)
	}
	
	
	.hero-music-player.playing-minimal .hero-player-content > * {
  display: none !important;
}
.hero-music-player.playing-minimal .hero-song-title,
.hero-music-player.playing-minimal .hero-progress-container,
.hero-music-player.playing-minimal .hero-volume-control {
  display: flex !important;
  width: 100%;
  justify-content: center;
  align-items: center;
}
.hero-music-player.playing-minimal .hero-player-content {
  flex-direction: column;
  align-items: stretch;
  padding: 14px 24px;
  min-height: 92px;
  gap: 10px;
}

/* =========================================
   LAPTOP SKALIERUNG - MUSIC PLAYER
   ========================================= */
@media (min-width: 1025px) and (max-width: 1919px) {
    :root {
        --player-scale: 0.85; /* Hier änderst du nur diesen Wert! */
    }
    
    /* Music Player direkt skalieren */
    .hero-music-player {
        transform: scale(var(--player-scale)) !important;
        transform-origin: bottom right !important;
    }
    
    /* Kompakter Modus zurücksetzen */
    .hero-music-player.compact {
        transform: scale(1) !important;
    }
}

/* Für Laptops mit kleineren Auflösungen */
@media (min-width: 1025px) and (max-width: 1440px) {
    :root {
        --player-scale: 0.80; /* Hier änderst du nur diesen Wert! */
    }
    
    .hero-music-player {
        transform: scale(var(--player-scale)) !important;
        transform-origin: bottom right !important;
    }
    
    .hero-music-player.compact {
        transform: scale(1) !important;
    }
}