/* Vefa Maç Merkezi - %100 Mobil Uyumlu v1.3.1 */
html, body {
    overflow-x: hidden !important;
}

.vefa-mm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.vefa-mm-container * {
    box-sizing: border-box;
}

.vefa-mm-header {
    background: linear-gradient(135deg, #328152 0%, #1e5c3a 100%);
    color: #fff;
    text-align: center;
    padding: 16px 8px;
    border-radius: 10px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.vefa-mm-logo {
    width: 72px;
    height: auto;
    display: block;
    margin: 0 auto 8px;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.25));
}

.vefa-mm-header h1 {
    margin: 0;
    font-size: clamp(1.25rem, 4.5vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
}

.vefa-mm-sub {
    margin: 4px 0 0;
    font-size: 0.85rem;
    opacity: 0.9;
    color: #fff;
}

.vefa-mm-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

@media (min-width: 900px) {
    .vefa-mm-grid {
        flex-direction: row;
        align-items: flex-start;
    }
    .vefa-mm-main {
        flex: 1;
        min-width: 0;
    }
    .vefa-mm-side {
        width: 360px;
        flex-shrink: 0;
    }
}

.vefa-mm-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 100%;
    overflow: visible;
    margin-bottom: 10px;
}

.vefa-mm-card h2 {
    margin: 0;
    padding: 10px 12px;
    background: #f7faf8;
    border-bottom: 3px solid #328152;
    color: #328152;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.vefa-mm-week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
    background: #f0f7f3;
}

.vefa-mm-nav-btn {
    background: #328152;
    color: #fff !important;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 600;
}

.vefa-mm-current-week {
    font-weight: 700;
    color: #328152;
    font-size: 0.9rem;
    flex: 1;
    text-align: center;
}

.vefa-mm-match {
    padding: 10px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.vefa-mm-match:last-child {
    border-bottom: none;
}

.vefa-mm-week {
    font-size: 0.75rem;
    font-weight: 700;
    color: #328152;
}

.vefa-mm-datetime {
    font-size: 0.72rem;
    color: #666;
    margin-bottom: 6px;
}

.vefa-mm-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.team-side {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.team-side.home { justify-content: flex-end; text-align: right; }
.team-side.away { justify-content: flex-start; text-align: left; }

.team-side span {
    font-size: 0.84rem;
    font-weight: 600;
    word-break: break-word;
    line-height: 1.2;
}

.team-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
    background: #f5f5f5;
}

.vefa-mm-teams .vs,
.vefa-mm-teams .score {
    background: #328152;
    color: #fff;
    padding: 4px 7px;
    border-radius: 14px;
    font-size: 0.74rem;
    font-weight: 700;
    min-width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.vefa-mm-match.finished .score { background: #222; }

/* Critical: table scroll isolation */
.vefa-mm-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.vefa-mm-table {
    min-width: 700px !important;
    width: max-content !important;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin: 0;
}

.vefa-mm-table th {
    background: #328152 !important;
    color: #fff !important;
    padding: 8px 5px;
    text-align: center;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
}

.vefa-mm-table tbody tr:nth-child(even) { background: #f7faf8; }
.vefa-mm-table tbody tr:nth-child(odd) { background: #fff; }

.vefa-mm-table td {
    padding: 7px 4px;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    white-space: nowrap;
}

.vefa-mm-table .team {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 130px;
    white-space: normal;
    font-weight: 600;
    padding-left: 6px;
}

.standings-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
    background: #f5f5f5;
}

.vefa-mm-table .points {
    font-weight: 800;
    color: #328152;
}

.vefa-mm-table tr.highlight {
    background: rgba(50, 129, 82, 0.15) !important;
    font-weight: 700;
    box-shadow: inset 3px 0 0 #328152;
}

.vefa-mm-scroll-hint {
    display: block;
    font-size: 0.7rem;
    color: #555;
    text-align: center;
    padding: 5px 6px;
    background: #f0f7f3;
    border-bottom: 1px solid #ddd;
    margin: 0;
}

@media (max-width: 600px) {
    .vefa-mm-container { padding: 3px !important; }
    .vefa-mm-header { padding: 12px 4px; }
    .vefa-mm-logo { width: 60px; }
    .vefa-mm-header h1 { font-size: 1.15rem; }
    .vefa-mm-card h2 { font-size: 1rem; padding: 8px 8px; }
    .vefa-mm-match { padding: 8px 6px; }
    .team-logo { width: 22px; height: 22px; }
    .vefa-mm-teams .vs,
    .vefa-mm-teams .score { min-width: 44px; font-size: 0.7rem; padding: 3px 5px; }
    .vefa-mm-table { min-width: 680px !important; font-size: 0.72rem; }
    .standings-logo { width: 18px; height: 18px; }
}
