/* Global Styles */
:root {
    --bg: #000000;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: transparent;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 180px;
    /* Erhöhtes Padding für Player und Back-Button */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top left, rgba(0, 255, 204, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 255, 204, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Header */
.main-header {
    text-align: center;
    padding: clamp(2rem, 6vh, 4rem) 1rem clamp(1.5rem, 4vh, 3rem);
    position: relative;
    z-index: 2;
}

.main-header h1 {
    font-family: 'Highup', 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #00ffcc;
    margin: 0 0 clamp(1.2rem, 3vh, 1.8rem) 0;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    line-height: 1.2;
}

.main-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #00ffcc;
    margin: 0 0 clamp(0.5rem, 1.5vh, 0.8rem) 0;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 204, 0.3);
    display: inline-block;
}

.main-header p {
    display: none;
}

/* Back Button - Positioned below player in normal document flow */
.back-button-container {
    position: static;
    margin-top: clamp(3rem, 8vh, 6rem);
    /* Erhöhter Abstand zum Player */
    margin-bottom: clamp(3rem, 8vh, 6rem);
    /* Erhöhter Abstand zum unteren Rand */
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 1rem;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 0.5rem;
    color: #00ffcc;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 200px;
    max-width: 100%;
    animation: buttonGlow 3s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: #00ffcc;
    color: #000000;
    transform: translateX(-5px);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.4);
    animation: none;
    /* Animation stoppen beim Hover */
}

@keyframes buttonGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 255, 204, 0.6);
    }
}

/* Year Sections - Desktop Grid Layout */
.year-section {
    margin: 4rem 0;
    position: relative;
    z-index: 2;
}

@media (min-width: 1200px) {
    .year-sections-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        max-width: 1800px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .year-section {
        margin: 0;
    }

    .year-cover {
        height: 250px;
        /* 2.3 Cover ratio for Desktop */
    }

    .jukebox-container {
        padding: 0;
    }
}

.year-header {
    text-align: center;
    margin-bottom: 2rem;
}

.year-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 400;
    color: rgba(0, 255, 204, 0.8);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.2);
}

.year-subtitle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Jukebox Container */
.jukebox-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.jukebox {
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid #00ffcc;
    border-radius: 1rem;
    padding: 2rem 1.5rem 3rem;
    /* Weniger seitliches Padding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.jukebox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333333;
}

.jukebox-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #00ffcc;
}

.jukebox-stats {
    display: flex;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Year Cover */
.year-cover {
    width: 100%;
    height: auto;
    /* Höhe passt sich an Bildgröße an */
    background: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    /* Verdoppelter Abstand */
    position: relative;
    overflow: hidden;
}

.year-cover-img {
    width: 100%;
    /* Vollständige Breite des Containers */
    height: auto;
    /* Höhe passt sich automatisch an */
    object-fit: contain;
    /* Bild immer vollständig sichtbar */
    border-radius: 0.5rem;
    display: block;
    max-height: none;
    /* Keine maximale Höhe */
    flex-shrink: 0;
    /* Verhindert, dass das Bild verkleinert wird */
}

.year-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Bild füllt Container komplett aus, kein Rand */
    border-radius: 0.5rem;
    display: block;
}

.year-cover-img.wide-cover {
    display: none;
}

/* Keine Media Queries mehr - nur ein Bild pro Jahr, das sich dynamisch anpasst */

.year-cover-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.year-cover-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #00ffcc;
}

.year-cover-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ffcc;
}

/* Current Track Display */
.current-track-display {
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid #00ffcc;
    border-radius: 0.5rem;
    padding: 1rem;
    /* Reduziert von 1.5rem auf 1rem */
    margin-bottom: 1rem;
    /* Reduziert von 2rem auf 1rem */
    text-align: center;
    min-height: 80px;
    /* Minimale Höhe für bessere Platzierung */
}

.current-track-title {
    font-size: 1.1rem;
    /* Reduziert von 1.3rem auf 1.1rem */
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    /* Reduziert von 0.5rem auf 0.25rem */
}

.current-track-artist {
    font-size: 0.9rem;
    /* Reduziert von 1rem auf 0.9rem */
    color: #00ffcc;
    margin-bottom: 0.25rem;
    /* Reduziert von 0.5rem auf 0.25rem */
}

.current-track-meta {
    font-size: 0.8rem;
    /* Reduziert von 0.9rem auf 0.8rem */
    color: rgba(255, 255, 255, 0.5);
}

/* Track List */
.track-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 1.5rem 0 0 0;
    /* Kein Padding rechts und links */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 90%, transparent 100%);
    -ms-overflow-style: none;
    /* IE und Edge */
    scrollbar-width: none;
    /* Firefox */
    width: 100%;
    /* Volle Breite */
}

.track-list::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari und Opera */
}

.track-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    /* Mehr Padding für besseren Abstand */
    margin-bottom: 0.5rem;
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid #333333;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    /* Volle Breite */
    box-sizing: border-box;
    /* Padding wird in Breite eingerechnet */
    gap: 1.5rem;
    /* Gleicher Abstand zwischen Text und DJ/Live Button */
}

.track-item:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    color: #00ffcc;
}

.track-item:hover .track-details {
    color: #00ffcc;
}

.track-item:hover .track-type-badge {
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
}

.track-item.playing {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    color: #00ffcc;
}

.track-item.playing .track-details,
.track-item.playing .track-type-badge {
    color: #00ffcc;
}

.track-item.playing .track-type-badge {
    background: rgba(0, 255, 204, 0.1);
}

.track-info-small {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-details {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.track-type-badge {
    padding: 0.25rem 0.75rem;
    background: transparent;
    border: 1px solid #00ffcc;
    border-radius: 1rem;
    font-size: 0.75rem;
    color: #00ffcc;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.track-type-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.2), transparent);
    transition: left 0.5s ease;
}

.track-type-badge:hover::before {
    left: 100%;
}

.track-type-badge.live {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.track-type-badge.live::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Jukebox Controls */
.jukebox-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
}

.control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.8), rgba(20, 20, 20, 0.6));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 255, 204, 0.3);
    color: #00ffcc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.2), transparent);
    transition: left 0.5s;
}

.control-btn:hover::before {
    left: 100%;
}

/* Glasiger Effekt beim Hover - Background-Image beibehalten */
.control-btn:hover {
    background-color: rgba(0, 255, 204, 0.2);
    background-blend-mode: overlay;
    border-color: rgba(0, 255, 204, 0.8);
    color: #00ffcc;
    transform: scale(1.1) translateY(-2px);
    box-shadow:
        0 8px 25px rgba(0, 255, 204, 0.4),
        0 0 30px rgba(0, 255, 204, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    /* Glasiger Effekt */
    backdrop-filter: blur(20px);
    opacity: 0.9;
}

.control-btn:active {
    transform: scale(0.95) translateY(0);
    transition: all 0.1s ease;
}

.control-btn.play {
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, rgba(0, 255, 204, 0.3), rgba(0, 204, 153, 0.2));
    border: 2px solid rgba(0, 255, 204, 0.5);
    color: #00ffcc;
    font-size: 1.4rem;
    box-shadow:
        0 6px 20px rgba(0, 255, 204, 0.4),
        0 0 40px rgba(0, 255, 204, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.control-btn.play:hover {
    background-color: rgba(0, 255, 204, 0.4);
    background-blend-mode: overlay;
    border-color: rgba(0, 255, 204, 1);
    color: #00ffcc;
    box-shadow:
        0 10px 30px rgba(0, 255, 204, 0.6),
        0 0 50px rgba(0, 255, 204, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    /* Glasiger Effekt für Play-Button */
    backdrop-filter: blur(25px);
    opacity: 0.95;
    /* Spezielle Mouseover-Animation */
    animation: playPulse 0.6s ease-in-out;
}

@keyframes playPulse {
    0% {
        transform: scale(1) translateY(0);
        box-shadow: 0 6px 20px rgba(0, 255, 204, 0.4), 0 0 40px rgba(0, 255, 204, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }

    50% {
        transform: scale(1.15) translateY(-3px);
        box-shadow: 0 15px 40px rgba(0, 255, 204, 0.8), 0 0 60px rgba(0, 255, 204, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.6);
    }

    100% {
        transform: scale(1.1) translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 255, 204, 0.6), 0 0 50px rgba(0, 255, 204, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.4);
    }
}

.control-btn.active {
    background: linear-gradient(145deg, rgba(0, 255, 204, 0.4), rgba(0, 204, 153, 0.3));
    border-color: rgba(0, 255, 204, 0.8);
    color: #00ffcc;
    box-shadow:
        0 0 20px rgba(0, 255, 204, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Icon styling for better visibility */
.control-btn i {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.control-btn.play i {
    width: 28px;
    height: 28px;
}

.control-btn:hover i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Overlay-Symbole für PNG-Icons */
.control-btn .overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    opacity: 1;
    /* Immer sichtbar */
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

/* Play/Pause Button - Direkt auf Button anwenden */
.control-btn.play {
    background-image: url('/static/img/play.png');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
}

.control-btn.play.active {
    background-image: none;
    position: relative;
}

.control-btn.play.active::before,
.control-btn.play.active::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
}

.control-btn.play.active::before {
    left: calc(50% - 9px);
}

.control-btn.play.active::after {
    right: calc(50% - 9px);
}

/* Next Button */
.control-btn.next {
    background-image: url('/static/img/next.png');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Previous Button */
.control-btn.prev {
    background-image: url('/static/img/prev.png');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Fast Forward Button */
.control-btn.fast-forward {
    background-image: url('/static/img/forward.png');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Rewind Button */
.control-btn.rewind {
    background-image: url('/static/img/rewind.png');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Shuffle Button */
.control-btn.shuffle {
    background-image: url('/static/img/shuffle.png');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Repeat Button */
.control-btn.repeat {
    background-image: url('/static/img/repeat.png');
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Overlay-Symbole entfernen */
.control-btn .overlay-icon {
    display: none !important;
}

/* Modern Player */
.modern-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(0, 20, 30, 0.85));
    backdrop-filter: blur(25px);
    border-top: 2px solid #00ffcc;
    padding: 1rem 1rem;
    z-index: 1000;
    box-shadow:
        0 -15px 50px rgba(0, 0, 0, 0.8),
        0 -5px 20px rgba(0, 255, 204, 0.3),
        inset 0 1px 0 rgba(0, 255, 204, 0.1);
}

.player-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgba(0, 255, 204, 0.1) 0%,
            rgba(0, 255, 204, 0.05) 50%,
            rgba(0, 255, 204, 0.1) 100%);
    border-radius: 1rem;
    z-index: -1;
    pointer-events: none;
    animation: playerGlow 3s ease-in-out infinite alternate;
}

@keyframes playerGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

.player-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.album-art {
    width: 80px;
    height: 80px;
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid #00ffcc;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
    color: #00ffcc;
    flex-shrink: 0;
}

.album-art-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.album-art-img {
    width: auto;
    /* Breite passt sich an */
    height: auto;
    /* Höhe passt sich an */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Bild immer vollständig sichtbar */
    border-radius: 0.5rem;
    display: block;
}

.track-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
}

.track-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    color: #00ffcc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-time {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: #00ffcc;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    border: 1px solid rgba(0, 255, 204, 0.2);
    display: inline-block;
    position: relative;
}

.track-time::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.1), transparent);
    animation: timeGlow 2s ease-in-out infinite;
}

@keyframes timeGlow {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(51, 51, 51, 0.5);
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffcc, #00cc99);
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

/* Time Display - zentriert im Player */
.time-display {
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    color: #00ffcc;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 204, 0.3);
    margin: 1rem auto 0;
    width: fit-content;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

/* Waveform Display */
.waveform-container {
    width: 200px;
    height: 60px;
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid #00ffcc;
    border-radius: 0.5rem;
    padding: 5px;
}

#waveformCanvas {
    width: 100%;
    height: 100%;
}

/* EQ Controls */
.eq-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #333333;
    border-radius: 0.5rem;
}

.eq-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.eq-slider {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #333333;
    border-radius: 3px;
    outline: none;
    transform: rotate(-90deg);
}

.eq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: #00ffcc;
    border-radius: 50%;
    cursor: pointer;
}

.eq-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #00ffcc;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Mobile Player Adjustments */
@media (max-width: 768px) {
    .back-button-container {
        margin-top: clamp(4rem, 10vh, 8rem);
        /* Deutlich erhöhter Abstand für mobile Geräte */
        margin-bottom: clamp(4rem, 10vh, 8rem);
        padding: 0 0.5rem;
    }

    .modern-player {
        padding: 0.8rem 0.5rem;
        flex-direction: column;
        gap: 0.8rem;
    }

    .player-content {
        order: 1;
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

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

    .control-btn.play {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }

    .control-btn i {
        width: 22px;
        height: 22px;
    }

    .control-btn.play i {
        width: 26px;
        height: 26px;
    }

    /* Track Info Display für Mobile */
    .track-info-display {
        order: 2;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    .track-info-main {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        text-align: center;
    }

    .track-title {
        font-size: 1rem;
        line-height: 1.2;
        margin: 0;
    }

    .track-artist {
        font-size: 0.9rem;
        margin: 0;
    }

    .time-display {
        order: 3;
        position: static !important;
        transform: none !important;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin: 0;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 0.5rem;
        border: 1px solid rgba(0, 255, 204, 0.3);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        width: fit-content;
        margin: 0 auto;
    }

    .progress-container {
        order: 4;
        margin-top: 0.5rem;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 480px) {
    .modern-player {
        padding: 0.8rem 0.5rem;
    }

    .player-content {
        gap: 0.3rem;
    }

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

    .control-btn.play {
        width: 52px;
        height: 52px;
        font-size: 1.1rem;
    }

    .control-btn i {
        width: 20px;
        height: 20px;
    }

    .control-btn.play i {
        width: 22px;
        height: 22px;
    }

    .track-title {
        font-size: 0.95rem;
    }

    .track-artist {
        font-size: 0.85rem;
    }

    .time-display {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: #00ffcc;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #0a0a0a;
    border-top-color: #00ffcc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mandelbrot Background - Black & White Edition */
.psychedelic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: var(--bg);
}
}
