/**
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 * WINTERRÄTSEL MUSIK-PLAYER STYLING
 * Vollwertiger Player für die Musik-Seite
 * ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MUSIC PAGE WRAPPER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-music-page {
    min-height: 100vh;
    padding-top: 72px;
    background: var(--bg-primary, #ffffff);
}

.wr-music-player-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PLAYER CONTAINER
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-music-player {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wr-music-player:hover {
    box-shadow: 
        0 16px 64px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.15);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TRACK INFO
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-track-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wr-track-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(252, 211, 77, 0.2));
    border-radius: 12px;
    flex-shrink: 0;
}

.wr-track-details {
    flex: 1;
    min-width: 0;
}

.wr-track-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wr-track-artist {
    font-size: 0.875rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CONTROL BUTTONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-music-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.wr-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
}

.wr-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.wr-btn:active {
    transform: scale(0.95);
}

.wr-btn-play {
    width: 56px;
    height: 56px;
    font-size: 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: rgba(255, 255, 255, 0.2);
}

.wr-btn-play:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROGRESS BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-music-progress-container {
    width: 100%;
}

.wr-progress {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wr-progress:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wr-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.wr-progress::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.wr-progress::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.wr-progress::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TIME DISPLAY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-time-display {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    opacity: 0.75;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   VOLUME CONTROL
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.wr-volume-container {
    width: 100%;
    padding-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wr-volume-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.wr-volume {
    flex: 1;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wr-volume:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wr-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.wr-volume::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.wr-volume::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.wr-volume::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE DESIGN
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 768px) {
    .wr-music-player {
        bottom: 1rem;
        right: 1rem;
        width: 260px;
        padding: 14px 16px;
    }

    .wr-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .wr-btn-play {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .wr-music-player {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DARK MODE SUPPORT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

[data-theme="dark"] .wr-music-player {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .wr-music-player:hover {
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.7),
        0 0 0 2px rgba(255, 255, 255, 0.2);
}
