/* ===== CORNERS PREDICTIONS MOBILE STYLES ===== */
@media (max-width: 768px) {
    .corners-fixtures-table,
    .corners-history-table,
    .corners-stats-summary-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 11px;
    }
    
    .corners-fixtures-table th,
    .corners-history-table th,
    .corners-stats-summary-table th {
        padding: 8px 4px;
        font-size: 10px;
    }
    
    .corners-fixtures-table td,
    .corners-history-table td,
    .corners-stats-summary-table td {
        padding: 6px 4px;
        font-size: 10px;
    }
    
    /* Hide less important columns on mobile */
    .corners-fixtures-table colgroup col:nth-child(3), /* Home Avg */
    .corners-fixtures-table colgroup col:nth-child(5), /* Away Avg */
    .corners-fixtures-table colgroup col:nth-child(7), /* Form */
    .corners-history-table colgroup col:nth-child(3),  /* Home Avg */
    .corners-history-table colgroup col:nth-child(5),  /* Away Avg */
    .corners-history-table colgroup col:nth-child(8) { /* Confidence */
        width: 0 !important;
        display: none;
    }
    
    .corners-fixtures-table th:nth-child(3),
    .corners-fixtures-table td:nth-child(3),
    .corners-fixtures-table th:nth-child(5),
    .corners-fixtures-table td:nth-child(5),
    .corners-fixtures-table th:nth-child(7),
    .corners-fixtures-table td:nth-child(7),
    .corners-history-table th:nth-child(3),
    .corners-history-table td:nth-child(3),
    .corners-history-table th:nth-child(5),
    .corners-history-table td:nth-child(5),
    .corners-history-table th:nth-child(8),
    .corners-history-table td:nth-child(8) {
        display: none;
    }
    
    /* Stats Grid Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    /* SEO Features Mobile */
    .seo-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Prediction badges mobile */
    .prediction-badge-corners {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    /* Buttons mobile */
    .corners-stats-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
    
    /* Stats bars mobile */
    .stats-bar-wrapper {
        width: 40px;
    }
    
    .stats-bar-percentage {
        font-size: 9px;
        min-width: 20px;
    }
    
    /* Country flags mobile */
    .country-flag img {
        width: 16px;
        height: 12px;
    }
    
    .country-flag span {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .corners-fixtures-table,
    .corners-history-table {
        font-size: 10px;
    }
    
    .corners-fixtures-table th,
    .corners-history-table th {
        padding: 6px 3px;
        font-size: 9px;
    }
    
    .corners-fixtures-table td,
    .corners-history-table td {
        padding: 5px 3px;
        font-size: 9px;
    }
    
    /* Hide more columns on very small screens */
    .corners-fixtures-table colgroup col:nth-child(6), /* Combined Avg */
    .corners-history-table colgroup col:nth-child(6) { /* Combined Avg */
        width: 0 !important;
        display: none;
    }
    
    .corners-fixtures-table th:nth-child(6),
    .corners-fixtures-table td:nth-child(6),
    .corners-history-table th:nth-child(6),
    .corners-history-table td:nth-child(6) {
        display: none;
    }
    
    /* Stats grid very small */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Prediction cells mobile */
    .prediction-over,
    .prediction-under {
        padding: 2px 4px;
        font-size: 9px;
    }
    
    /* Score states mobile */
    .score-correct,
    .score-incorrect,
    .score-pending {
        padding: 2px 4px;
        font-size: 9px;
    }
}

/* Responsive table for stats summary */
@media (max-width: 600px) {
    .corners-stats-summary-table {
        display: block;
        overflow-x: auto;
    }
    
    .corners-stats-summary-table thead {
        display: none;
    }
    
    .corners-stats-summary-table tbody,
    .corners-stats-summary-table tr,
    .corners-stats-summary-table td {
        display: block;
        width: 100%;
    }
    
    .corners-stats-summary-table tr {
        margin-bottom: 15px;
        border: 1px solid #2A3F7A;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .corners-stats-summary-table td {
        text-align: left;
        padding: 8px 12px;
        border-bottom: 1px solid #2A3F7A;
        border-right: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .corners-stats-summary-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #FF9800;
        text-transform: uppercase;
        font-size: 10px;
        margin-right: 10px;
    }
    
    .corners-stats-summary-table td:last-child {
        border-bottom: none;
    }
    
    /* Hide flag on mobile for stats summary */
    .corners-stats-summary-table td:first-child {
        display: none;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .corners-fixtures-table tr:hover,
    .corners-history-table tr:hover,
    .corners-stats-summary-table tr:hover {
        background: inherit;
    }
    
    .corners-stats-btn:active {
        transform: scale(0.98);
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .corners-fixtures-table,
    .corners-history-table,
    .corners-stats-summary-table {
        border-width: 0.5px;
    }
}