* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1DB954, #191414);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
}

h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    color: #1DB954;
}

button {
    background-color: #1DB954;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #18a045;
    transform: scale(1.05);
}

.spotify-fallback-btn {
    background-color: #191414;
    border: 1px solid #1DB954;
    margin-top: 20px;
    font-size: 14px;
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.spotify-fallback-btn:hover {
    background-color: #1DB954;
    color: #191414;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.hidden {
    display: none;
}

/* Instructions Screen */
.instructions-content {
    text-align: left;
    margin-bottom: 30px;
    line-height: 1.6;
}

.instructions-content ol, .instructions-content ul {
    margin-left: 30px;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* QR Reader */
#qr-reader {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 20px;
    border: 2px solid #1DB954;
    border-radius: 10px;
    overflow: hidden;
}

#qr-reader__scan_region {
    background: rgba(29, 185, 84, 0.1);
}

/* Countdown Styles */
.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    height: 150px;
}

#countdown {
    font-size: 5rem;
    font-weight: bold;
    color: #1DB954;
    text-shadow: 0 0 10px rgba(29, 185, 84, 0.5);
    margin-bottom: 10px;
    transition: all 0.5s ease;
}

#countdown-text {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 5px;
}

#countdown-instruction {
    font-size: 1rem;
    color: #1DB954;
    opacity: 0.9;
    font-style: italic;
}

.countdown-container.hidden {
    display: none;
}

/* Player Controls */
.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.volume-control, .device-control {
    margin-top: 20px;
    width: 80%;
    display: flex;
    align-items: center;
    gap: 10px;
}

.device-control {
    margin-top: 25px;
}

#device-selector {
    flex-grow: 1;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid #1DB954;
    border-radius: 4px;
    padding: 8px;
    font-size: 0.9rem;
}

.small-btn {
    background-color: #1DB954;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;
}

.small-btn:hover {
    background-color: #18a045;
    transform: scale(1.1);
}

input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #666;
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1DB954;
    cursor: pointer;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 20px;
    }
    
    button {
        padding: 10px 20px;
    }
}
