/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    /* Main Table Adjustments */
    .over-under-fixtures-table,
    .over-under-history-table,
    .over-under-stats-summary-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Table Header Mobile Adjustments */
    .over-under-fixtures-table th,
    .over-under-history-table th,
    .over-under-stats-summary-table th {
        padding: 8px 4px;
        font-size: 11px;
        min-width: 60px;
    }

    /* Table Cell Mobile Adjustments */
    .over-under-fixtures-table td,
    .over-under-history-table td,
    .over-under-stats-summary-table td {
        padding: 8px 4px;
        min-width: 60px;
    }

    /* Stats Grid Mobile Layout */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 10px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 18px;
    }

    /* Country Flag Mobile */
    .country-flag {
        font-size: 16px;
        padding: 2px;
    }

    /* Stats Bars Mobile */
    .stats-bar-wrapper {
        width: 60px;
        height: 16px;
    }

    .stats-bar-percentage {
        font-size: 10px;
        min-width: 30px;
    }

    /* Button Mobile Adjustments */
    .over-under-stats-btn {
        padding: 6px 12px;
        font-size: 10px;
    }

    .btn-container {
        flex-direction: column;
        gap: 4px;
    }

    /* Badge Mobile */
    .prediction-badge-over-under {
        font-size: 9px;
        padding: 1px 6px;
        min-width: 20px;
    }

    /* Match VS Mobile */
    .match-vs {
        font-size: 14px;
        margin: 0 3px;
    }

    /* Team Name Mobile */
    .team-name {
        max-width: 80px;
        font-size: 11px;
    }

    /* Hide some columns on very small screens */
    @media (max-width: 480px) {
        .over-under-fixtures-table th:nth-child(n+6),
        .over-under-fixtures-table td:nth-child(n+6),
        .over-under-history-table th:nth-child(n+7),
        .over-under-history-table td:nth-child(n+7) {
            display: none;
        }
    }

    /* Stats Summary Table Mobile Specific */
    .over-under-stats-summary-table {
        display: block;
    }

    .over-under-stats-summary-table thead {
        display: none;
    }

    .over-under-stats-summary-table tbody,
    .over-under-stats-summary-table tr,
    .over-under-stats-summary-table td {
        display: block;
        width: 100%;
        text-align: left;
    }

    .over-under-stats-summary-table tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 10px;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .over-under-stats-summary-table td {
        border: none;
        padding: 5px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .over-under-stats-summary-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #1e3c72;
        font-size: 11px;
        text-transform: uppercase;
    }

    /* Special handling for country flag in mobile */
    .over-under-stats-summary-table td:first-child::before {
        content: "Country";
    }

    .over-under-stats-summary-table td:nth-child(2)::before {
        content: "League";
    }

    /* Button container in stats table mobile */
    .over-under-stats-summary-table .btn-container {
        justify-content: space-between;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .over-under-fixtures-table,
    .over-under-history-table {
        font-size: 11px;
    }

    .team-name {
        max-width: 60px;
    }
}