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

body {
    background: #000;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

#dvdCanvas {
    display: block;
    background: #000;
    width: 100vw;
    height: 100vh;
}

.control-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
    color: #fff;
    z-index: 1000;
    min-width: 250px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
}

.control-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.collapse-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.collapse-btn:hover {
    color: #00ff00;
}

.control-content {
    padding: 15px;
    transition: all 0.3s ease;
}

.control-group {
    margin-bottom: 15px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 5px;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00ff00;
    border-radius: 50%;
    cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00ff00;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.value-display {
    display: inline-block;
    background: #00ff00;
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}

#resetBtn {
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

#resetBtn:hover {
    background: #cc0000;
}

.sound-select {
    width: 100%;
    padding: 5px 8px;
    background: #333;
    color: #fff;
    border: 1px solid #666;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}

.sound-select:hover {
    border-color: #00ff00;
}

.sound-select:focus {
    border-color: #00ff00;
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.number-control {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.number-btn {
    background: #333;
    color: #fff;
    border: 1px solid #666;
    border-radius: 3px;
    width: 30px;
    height: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.number-btn:hover {
    background: #00ff00;
    color: #000;
    border-color: #00ff00;
}

.number-btn:disabled {
    background: #222;
    color: #666;
    border-color: #444;
    cursor: not-allowed;
}

/* Collapsed state */
.control-panel.collapsed {
    background: rgba(0, 0, 0, 0.05);
    border-color: #666;
    color: #666;
}

.control-panel.collapsed .control-content {
    display: none;
}

.control-panel.collapsed .collapse-btn {
    transform: rotate(180deg);
    color: #666;
}

.control-panel.collapsed .control-header h3 {
    color: #666;
}

/* Responsive design */
@media (max-width: 768px) {
    .control-panel {
        top: 10px;
        left: 10px;
        min-width: 200px;
    }
    
    .control-header h3 {
        font-size: 14px;
    }
    
    .control-group label {
        font-size: 12px;
    }
}
