.beat-container {
    max-width: 800px;
    margin: 0 auto;
}
.bpm-display {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    color: #fff;
}
.bpm-value {
    font-size: 72px;
    font-weight: bold;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.bpm-label {
    font-size: 24px;
    opacity: 0.9;
    margin-top: 8px;
}
.tap-area {
    text-align: center;
    margin-bottom: 20px;
}
.tap-btn {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff6b6b, #ee5a5a);
    border: none;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(238, 90, 90, 0.4);
    transition: all 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    user-select: none;
}
.tap-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(238, 90, 90, 0.5);
}
.tap-btn:active, .tap-btn.active {
    transform: scale(0.95);
    box-shadow: 0 4px 20px rgba(238, 90, 90, 0.3);
}
.tap-btn .icon {
    font-size: 48px;
    margin-bottom: 8px;
}
.tap-btn .text {
    font-size: 18px;
}
.tap-hint {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}
.beat-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e9ecef;
}
.info-card .value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}
.info-card .label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}
.metronome-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}
.metronome-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}
.bpm-slider-container {
    margin-bottom: 20px;
}
.bpm-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}
.bpm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}
.bpm-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}
.bpm-input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.bpm-input {
    width: 100px;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
}
.bpm-input:focus {
    border-color: #667eea;
}
.bpm-adjust-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.bpm-adjust-btn:hover {
    background: #5a6fd6;
}
.beat-visual {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}
.beat-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.1s ease;
}
.beat-dot.active {
    background: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6);
    transform: scale(1.2);
}
.beat-dot.accent {
    background: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}
.metronome-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.metronome-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-start {
    background: #28a745;
    color: #fff;
}
.btn-start:hover {
    background: #218838;
}
.btn-stop {
    background: #dc3545;
    color: #fff;
}
.btn-stop:hover {
    background: #c82333;
}
.btn-reset {
    background: #6c757d;
    color: #fff;
}
.btn-reset:hover {
    background: #5a6268;
}
.time-signature-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.time-signature-section label {
    font-weight: 500;
    color: #333;
}
.time-signature-select {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    cursor: pointer;
}
.time-signature-select:focus {
    border-color: #667eea;
}
.sound-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sound-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}
.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}
.volume-slider {
    width: 150px;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}
.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}
.preset-bpm {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.preset-label {
    width: 100%;
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}
.preset-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.preset-btn:hover {
    border-color: #667eea;
    color: #667eea;
}
.preset-btn.active {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
}
.tap-count {
    font-size: 14px;
    color: #888;
    margin-top: 10px;
}
.shortcuts-info {
    text-align: center;
    margin-top: 10px;
}
.shortcuts-info small {
    color: #888;
}
.metronome-status {
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #28a745;
    font-weight: 500;
    display: none;
}
.metronome-status.running {
    display: block;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.audio-hint {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #856404;
    text-align: center;
    display: none;
}
.section-divider {
    border-top: 1px dashed #ddd;
    margin: 15px 0;
    padding-top: 15px;
}
.sound-volume-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.beat-indicator {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}
.beat-indicator .current-beat {
    font-weight: bold;
    color: #667eea;
}
@media (max-width: 480px) {
    .bpm-adjust-btn {
        width: 44px;
        height: 44px;
    }
    .tap-btn {
        width: 160px;
        height: 160px;
    }
    .tap-btn .icon {
        font-size: 36px;
    }
    .bpm-value {
        font-size: 56px;
    }
}
