/* dance-viewer.css */
.figure-viewer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.viewer-container {
    background: #1e1e1e;
    color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #2a2a2a;
    border-bottom: 1px solid #333;
}

.score-board {
    font-size: 1.5rem;
    font-weight: bold;
}

.score-value {
    color: #4ade80;
    /* アクセントカラー（緑） */
    font-size: 2rem;
    margin: 0 10px;
}

.score-max {
    font-size: 1rem;
    color: #888;
}

.upload-btn {
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.upload-btn:hover {
    background: #2563eb;
}

/* キャンバスレイアウト */
.canvas-split-layout {
    display: flex;
    width: 100%;
    height: 500px;
    /* 必要に応じて調整 */
    background: #000;
}

.canvas-wrapper {
    flex: 1;
    position: relative;
    border-right: 1px solid #333;
}

.canvas-wrapper:last-child {
    border-right: none;
}

.canvas-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    z-index: 10;
}

.three-canvas-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.placeholder-text {
    color: #666;
    text-align: center;
}

/* コントローラー */
.viewer-controls {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #2a2a2a;
    border-top: 1px solid #333;
    gap: 15px;
}

.control-btn {
    background: #4a4a4a;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100px;
}

.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.control-btn:hover:not(:disabled) {
    background: #5a5a5a;
}

.timeline-container {
    flex: 1;
    display: flex;
    align-items: center;
}

#timeline-slider {
    width: 100%;
    cursor: pointer;
}

.frame-counter {
    min-width: 80px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}