/* =========================================================
   MUSIC PLAYER
========================================================= */

.music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(26, 0, 51, 0.95);
    border: 2px solid rgba(153, 0, 255, 0.3);
    border-radius: 16px;
    padding: 15px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    min-width: 280px;
    transition: all 0.3s ease;
}

.music-player.minimized {
    min-width: auto;
    padding: 10px;
}

.music-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.music-player-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #d4b3ff;
}

.music-player-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}

.music-player-content {
    display: block;
}

.music-player.minimized .music-player-content {
    display: none;
}

.music-player-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.music-player-btn {
    background: rgba(153, 0, 255, 0.3);
    border: 1px solid rgba(153, 0, 255, 0.5);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.music-player-btn:hover {
    background: rgba(153, 0, 255, 0.5);
    transform: scale(1.05);
}

.music-player-btn.active {
    background: #9900ff;
    border-color: #9900ff;
}

.music-player-songs {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.music-player-song {
    background: rgba(26, 0, 51, 0.6);
    border: 1px solid rgba(153, 0, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #e0d4ed;
    transition: all 0.3s ease;
}

.music-player-song:hover {
    background: rgba(153, 0, 255, 0.2);
}

.music-player-song.active {
    background: rgba(153, 0, 255, 0.4);
    border-color: #9900ff;
}

.music-player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-player-volume label {
    font-size: 0.8rem;
    color: #b38ad9;
}

.music-player-volume input {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(153, 0, 255, 0.3);
    border-radius: 3px;
    outline: none;
}

.music-player-volume input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #9900ff;
    border-radius: 50%;
    cursor: pointer;
}

.music-player-volume input::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #9900ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.music-player-now-playing {
    font-size: 0.75rem;
    color: #d4b3ff;
    margin-top: 8px;
    text-align: center;
}

/* =========================================================
   WELCOME POPUP
========================================================= */

#welcomePopup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999998;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(10, 0, 25, 0.85);
    backdrop-filter: blur(8px);
    animation: welcomeBackground 0.3s ease-out;
}

#welcomePopup.active {
    display: flex;
}

@keyframes welcomeBackground {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.welcome-window {
    position: relative;
    width: min(500px, 90vw);
    padding: 35px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(45, 0, 75, 0.98), rgba(100, 0, 140, 0.96));
    border: 3px solid rgba(220, 140, 255, 0.8);
    box-shadow: 0 0 35px rgba(153, 0, 255, 0.8), 0 20px 80px rgba(0, 0, 0, 0.8);
    animation: welcomeWindowOpen 0.3s ease-out;
    text-align: center;
}

@keyframes welcomeWindowOpen {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-title {
    font-family: 'Press Start 2P', cursive;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #ff8cff, 0 0 25px #9900ff;
}

.welcome-text {
    font-size: 1rem;
    color: #ead5ff;
    margin-bottom: 25px;
    line-height: 1.6;
}

.welcome-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.welcome-btn {
    background: linear-gradient(135deg, #9900ff, #6600cc);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
}

.welcome-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(153, 0, 255, 0.4);
}

.welcome-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(153, 0, 255, 0.5);
}

.welcome-btn.secondary:hover {
    background: rgba(153, 0, 255, 0.3);
}

.volume-selection {
    display: none;
    margin-top: 20px;
}

.volume-selection.active {
    display: block;
}

.volume-selection label {
    display: block;
    font-size: 0.9rem;
    color: #d4b3ff;
    margin-bottom: 10px;
}

.volume-selection input {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: rgba(153, 0, 255, 0.3);
    border-radius: 4px;
    outline: none;
    margin-bottom: 15px;
}

.volume-selection input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #9900ff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-selection input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #9900ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.volume-value {
    font-size: 0.9rem;
    color: #b38ad9;
    margin-bottom: 15px;
}

/* =========================================================
   GUIDE STEPS
========================================================= */

.guide-step {
    display: none;
}

.guide-step.active {
    display: block;
}

.guide-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    border: 2px solid rgba(153, 0, 255, 0.3);
}

.guide-video {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    margin: 20px auto;
    display: block;
    border: 2px solid rgba(153, 0, 255, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .music-player {
        bottom: 10px;
        right: 10px;
        min-width: 250px;
    }
    
    .welcome-window {
        padding: 25px;
    }
    
    .guide-image,
    .guide-video {
        max-width: 300px;
    }
}
