body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background-color: #e9e9e9;
    font-family: sans-serif;
}

.music-toy-container {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 450px;
    width: 90%;
}

h2 {
    color: #333;
    margin-bottom: 10px;
}

p {
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#startStopButton {
    padding: 12px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background-color 0.2s ease;
}

#startStopButton:hover {
    background-color: #218838;
}
#startStopButton.playing {
    background-color: #dc3545; /* Red when playing */
}
#startStopButton.playing:hover {
    background-color: #c82333;
}


.control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.control-group label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #495057;
}

.control-group input[type="range"] {
    width: 100%;
    cursor: pointer;
    margin-bottom: 5px;
}

.control-group output {
    font-size: 0.85rem;
    color: #6c757d;
    align-self: flex-end;
    min-width: 50px;
    text-align: right;
}


#status, #ir-status {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
    min-height: 1.2em;
}
#ir-status.ir-loading {
    color: #007bff;
}
#ir-status.ir-failed {
    color: #dc3545;
}
#ir-status.ir-ready {
    color: #28a745;
}