.baseball-whip-calculator {
    margin: 15px auto !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1180px !important;
    font-family: 'Noto Sans KR', Arial, sans-serif !important;
    color: #333 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    font-size: 14px !important;
}

@media screen and (max-width: 768px) {
    .baseball-whip-calculator {
        padding: 15px 8px !important;
        margin: 10px auto !important;
        border-radius: 8px !important;
    }
}

.baseball-whip-calculator h2 {
    text-align: center !important;
    font-size: 1.8em !important;
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    color: #2c5282 !important;
    font-weight: 700 !important;
}

.explain-text {
    text-align: center !important;
    font-size: 0.95em !important;
    margin-bottom: 15px !important;
    color: #4a5568 !important;
}

.whip-layout {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    margin-bottom: 0 !important;
}

.input-section {
    flex: 1 !important;
    min-width: 320px !important;
    background: #fff !important;
    border-radius: 10px !important;
    padding: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.result-section {
    flex: 1.2 !important;
    min-width: 320px !important;
    background: #fff !important;
    border-radius: 10px !important;
    padding: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.section-title {
    font-size: 1.2em !important;
    font-weight: 600 !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    color: #2d3748 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #edf2f7 !important;
}

.input-form {
    margin-bottom: 15px !important;
}

.input-group {
    margin-bottom: 12px !important;
}

.input-group label {
    display: block !important;
    margin-bottom: 5px !important;
    font-weight: 500 !important;
    color: #4a5568 !important;
    font-size: 0.95em !important;
}

.input-group input[type="text"],
.input-group input[type="number"] {
    width: 100% !important;
    padding: 8px 10px !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 6px !important;
    font-size: 1em !important;
    color: #2d3748 !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: all 0.2s !important;
}

.input-group input[type="text"]:focus,
.input-group input[type="number"]:focus {
    border-color: #4299e1 !important;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15) !important;
    outline: none !important;
}

.innings-input-container {
    display: flex !important;
    gap: 10px !important;
}

.innings-input-container input {
    flex: 2 !important;
}

.innings-input-container select {
    flex: 1 !important;
    padding: 8px !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 6px !important;
    font-size: 1em !important;
    color: #2d3748 !important;
    background: #fff !important;
    cursor: pointer !important;
}

.innings-input-container select:focus {
    border-color: #4299e1 !important;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15) !important;
    outline: none !important;
}

.input-help {
    margin-top: 4px !important;
    font-size: 0.85em !important;
    color: #718096 !important;
    margin-bottom: 0 !important;
}

.btn-group {
    display: flex !important;
    gap: 10px !important;
    margin-bottom: 15px !important;
}

.btn-action {
    padding: 10px 15px !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.95em !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-align: center !important;
}

.btn-calculate {
    flex: 2 !important;
    background: #3182ce !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(49, 130, 206, 0.2) !important;
}

.btn-calculate:hover {
    background: #2c5282 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(49, 130, 206, 0.25) !important;
}

.btn-calculate:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 2px rgba(49, 130, 206, 0.25) !important;
}

.btn-reset {
    flex: 1 !important;
    background: transparent !important;
    border: 1px solid #cbd5e0 !important;
    color: #718096 !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 0.92em !important;
    transition: all 0.2s !important;
}

.btn-reset:hover {
    background: #f7fafc !important;
    color: #4a5568 !important;
    border-color: #a0aec0 !important;
}

.info-box {
    background: #ebf8ff !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 0 !important;
    border-left: 4px solid #4299e1 !important;
}

.info-box h4 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    color: #2c5282 !important;
    font-size: 1em !important;
}

.info-box p {
    margin: 6px 0 !important;
    color: #4a5568 !important;
    font-size: 0.9em !important;
    line-height: 1.4 !important;
}

.whip-result {
    margin-bottom: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.whip-value-display {
    font-size: 3em !important;
    font-weight: bold !important;
    color: #2d3748 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    padding: 25px 15px !important;
    border-radius: 8px !important;
    min-width: 150px !important;
    display: inline-block !important;
}

.whip-scale {
    display: flex !important;
    justify-content: space-around !important;
    width: 100% !important;
    margin-bottom: 5px !important;
}

.scale-item {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.scale-marker {
    display: inline-block !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
}

.scale-label {
    font-size: 0.85em !important;
    color: #4a5568 !important;
}

.excellent .scale-marker {
    background-color: #38a169 !important;
}

.good .scale-marker {
    background-color: #3182ce !important;
}

.average .scale-marker {
    background-color: #d69e2e !important;
}

.below-average .scale-marker {
    background-color: #e53e3e !important;
}

.pitcher-info {
    background: #f7fafc !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

#pitcher-result-name {
    font-size: 1.1em !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
}

.stats-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    margin-bottom: 15px !important;
    gap: 8px !important;
}

.stat-item {
    flex: 1 !important;
    min-width: 100px !important;
    background: #f7fafc !important;
    padding: 10px !important;
    border-radius: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 3px !important;
}

.stat-label {
    font-size: 0.9em !important;
    color: #718096 !important;
}

.stat-value {
    font-size: 1.3em !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
}

.result-analysis {
    background: #f7fafc !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 15px !important;
}

.result-analysis h4 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    color: #2d3748 !important;
    font-size: 1em !important;
}

.result-analysis p {
    margin: 0 !important;
    color: #4a5568 !important;
    font-size: 0.9em !important;
    line-height: 1.4 !important;
}

.comparison-chart-container {
    background: #f7fafc !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 0 !important;
}

.comparison-chart-container h4 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    color: #2d3748 !important;
    font-size: 1em !important;
}

.comparison-chart {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.chart-bar-container {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.chart-label {
    width: 120px !important;
    font-size: 0.9em !important;
    color: #4a5568 !important;
    text-align: right !important;
}

.chart-bar {
    flex: 1 !important;
    background: #edf2f7 !important;
    height: 16px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
}

.chart-bar-fill {
    height: 100% !important;
    background: #3182ce !important;
    border-radius: 8px !important;
    transition: width 0.8s ease !important;
}

.excellent-bar {
    background: #38a169 !important;
}

.good-bar {
    background: #3182ce !important;
}

.average-bar {
    background: #d69e2e !important;
}

.chart-bar-value {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 0.85em !important;
    color: #2d3748 !important;
    font-weight: 600 !important;
}

@media screen and (max-width: 768px) {
    .baseball-whip-calculator {
        padding: 12px 8px !important;
    }

    .whip-layout {
        gap: 12px !important;
    }

    .input-section, .result-section {
        padding: 12px !important;
        min-width: 100% !important;
    }

    .btn-group {
        flex-direction: row !important;
    }

    .stats-container {
        flex-wrap: wrap !important;
    }

    .stat-item {
        min-width: 47% !important;
        flex: 0 0 47% !important;
    }

    .innings-input-container {
        flex-direction: row !important;
    }

    .innings-input-container input {
        flex: 3 !important;
    }

    .innings-input-container select {
        flex: 2 !important;
    }

    .chart-bar-container {
        flex-wrap: wrap !important;
    }

    .chart-label {
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 3px !important;
    }

    .whip-scale {
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }

    .scale-item {
        flex: 0 0 48% !important;
        margin-bottom: 5px !important;
    }
}

@media screen and (max-width: 480px) {
    .baseball-whip-calculator {
        padding: 10px 6px !important;
    }

    .stat-item {
        min-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 5px !important;
    }

    .whip-value-display {
        font-size: 2.5em !important;
    }

    .scale-item {
        flex: 0 0 100% !important;
    }
}