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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
    font-size: 1.5rem;
    color: #888;
}

.player {
    margin-bottom: 1.5rem;
}

.play-btn {
    width: 100%;
    padding: 1.25rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
    background-color: #2563eb;
    color: white;
}

.play-btn:hover {
    filter: brightness(1.1);
}

.play-btn:active {
    transform: scale(0.98);
}

/* Status states */
.play-btn.available {
    background-color: #2563eb;
}

.play-btn.playing {
    background-color: #16a34a;
}

.play-btn.offline {
    background-color: #dc2626;
    cursor: not-allowed;
}

.play-btn.offline:hover {
    filter: none;
}

.status-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.play-btn.playing .status-icon {
    background-color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.label {
    flex-grow: 1;
    text-align: left;
}

.volume {
    width: 100%;
    height: 6px;
    margin-top: 0.75rem;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    border-radius: 3px;
    outline: none;
}

.volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
    transition: background-color 0.2s;
}

.volume::-webkit-slider-thumb:hover {
    background: #888;
}

.volume::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
    border: none;
}

.volume::-moz-range-thumb:hover {
    background: #888;
}

/* Hide volume for offline streams */
.player.offline .volume {
    opacity: 0.3;
    pointer-events: none;
}
