/* ===== 점수 입력 모달 ===== */
#scoreModal .modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 16px;
    background: white;
    border-radius: 24px;
}

/* 헤더 영역 */
#scoreModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0 12px 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 12px;
}

#scoreModal .modal-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

#scoreModal .close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #666;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

/* 선수 정보 카드 */
#scoreModal .player-info-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    padding: 15px 12px;
    margin-bottom: 15px;
}

#scoreModal .player-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
}

#scoreModal .player-col {
    flex: 1;
    text-align: center;
}

#scoreModal .player-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 3px;
}

#scoreModal .player-name.blue {
    color: var(--primary-color);
}

#scoreModal .player-name.red {
    color: #f44336;
}

#scoreModal .player-name.green {
    color: #2e7d32;
}

#scoreModal .player-level {
    font-size: 13px;
    color: #666;
    background: white;
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 5px;
}

#scoreModal .handicap-badge {
    background: #FF9800;
    color: white;
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

#scoreModal .vs-badge {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #FF9800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#scoreModal .handicap-info {
    margin-top: 10px;
    padding: 8px;
    background: #fff3e0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #e65100;
    text-align: center;
}

/* 경기 규칙 배지 */
#scoreModal .rule-badge {
    background: #e3f2fd;
    border-radius: 20px;
    padding: 8px 12px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 13px;
    color: #1976d2;
    border-left: 3px solid var(--primary-color);
}

/* 세트 카드 */
#scoreModal .set-card {
    background: white;
    border: 1.5px solid #e0e0e0;
    border-radius: 16px;
    margin-bottom: 12px;
    padding: 12px;
}

#scoreModal .set-card.completed {
    background: #f8f9fa;
    border-color: #4CAF50;
}

#scoreModal .set-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e0e0e0;
}

#scoreModal .set-number {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
}

#scoreModal .set-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

#scoreModal .set-status.ongoing {
    background: #FF9800;
    color: white;
}

#scoreModal .set-status.completed {
    background: #4CAF50;
    color: white;
}

#scoreModal .score-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

#scoreModal .score-col {
    flex: 1;
    text-align: center;
}

#scoreModal .player-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

#scoreModal .player-label.blue {
    color: var(--primary-color);
}

#scoreModal .player-label.red {
    color: #f44336;
}

#scoreModal .player-label.green {
    color: #2e7d32;
}

/* 점수 컨트롤 영역 */
#scoreModal .score-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

#scoreModal .score-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: all 0.15s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#scoreModal .score-btn:active {
    transform: scale(0.94);
}

#scoreModal .score-btn.minus {
    background: #f44336;
    color: white;
}

#scoreModal .score-btn.plus {
    background: #4CAF50;
    color: white;
}

#scoreModal .score-btn:disabled {
    background: #ccc;
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* 점수 표시 */
#scoreModal .score-value {
    min-width: 40px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

#scoreModal .score-value.blue {
    color: var(--primary-color);
}

#scoreModal .score-value.red {
    color: #f44336;
}

#scoreModal .score-value.green {
    color: #2e7d32;
}

/* 콜론 */
#scoreModal .colon {
    font-size: 24px;
    font-weight: bold;
    color: #999;
}

/* 세트 스코어 요약 */
#scoreModal .summary-card {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 18px;
    padding: 15px;
    margin-top: 15px;
}

#scoreModal .summary-title {
    font-size: 14px;
    font-weight: 600;
    color: #2e7d32;
    text-align: center;
    margin-bottom: 10px;
}

#scoreModal .summary-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#scoreModal .summary-col {
    text-align: center;
    flex: 1;
}

#scoreModal .summary-label {
    font-size: 12px;
    margin-bottom: 4px;
    color: #555;
}

#scoreModal .summary-value {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

#scoreModal .summary-value.blue {
    color: var(--primary-color);
}

#scoreModal .summary-value.red {
    color: #f44336;
}

#scoreModal .summary-value.green {
    color: #2e7d32;
}

#scoreModal .summary-colon {
    font-size: 32px;
    font-weight: bold;
    color: #2e7d32;
}

#scoreModal .match-status {
    margin-top: 10px;
    padding: 8px;
    background: rgba(255,255,255,0.6);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* 하단 버튼 */
#scoreModal .action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

#scoreModal .action-btn {
    flex: 1;
    border: none;
    border-radius: 16px;
    padding: 14px 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}

#scoreModal .action-btn.save {
    background: #4CAF50;
    color: white;
}

#scoreModal .action-btn.cancel {
    background: #9E9E9E;
    color: white;
}

/* ===== 모바일 반응형 ===== */
@media (max-width: 600px) {
    #scoreModal .modal-content {
        padding: 12px;
    }
    
    #scoreModal .player-name {
        font-size: 16px;
    }
    
    #scoreModal .vs-badge {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    /* +/ - 버튼 모바일 크기 40px */
    #scoreModal .score-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    #scoreModal .score-value {
        min-width: 35px;
        font-size: 24px;
    }
    
    #scoreModal .summary-value {
        font-size: 36px;
    }
}

@media (max-width: 400px) {
    #scoreModal .player-name {
        font-size: 15px;
    }
    
    #scoreModal .handicap-badge {
        padding: 3px;
        border-radius: 5px;
        font-size: 12px;
    }
    
    /* +/ - 버튼 더 작게 36px */
    #scoreModal .score-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    #scoreModal .score-value {
        min-width: 30px;
        font-size: 22px;
    }
    
    #scoreModal .summary-value {
        font-size: 32px;
    }
}