.sidebar-box.sports-box > .yv-standings-sidebar-heading {
    margin: 0 0 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 800;
    color: #05053d;
    letter-spacing: 0.02em;
}

/*
 * Cloudflare layout.css'i eski ver ile 1 yıl cache'leyebiliyor.
 * Flex grid + geniş tablo = sidebar şişer / içerik ezilir.
 * Bu kurallar sports CSS'te (filemtime ver) tutulur → cache-bust garantili.
 */
@media (min-width: 1025px) {
    .vatan-grid > .vatan-sidebar,
    .vatan-grid > aside.vatan-sidebar {
        flex: 0 0 320px !important;
        width: 320px !important;
        max-width: 320px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .vatan-grid > .vatan-content {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Sidebar flex/grid içinde tablo min-content ile sütunu şişirmesin */
.sidebar-box.sports-box {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    padding: 14px 12px 12px;
}

.sidebar-box.sports-box .yv-standings {
    border: 0;
    border-top: 3px solid #1f2d75;
    padding: 10px 0 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Yeni Vatan — yerel puan durumu tablosu */
.yv-standings {
    --yv-st-red: #c41e3a;
    --yv-st-navy: #1f2d75;
    --yv-st-navy-deep: #05053d;
    --yv-st-line: #e8eaed;
    --yv-st-zebra: #f7f8fa;
    --yv-st-top: rgba(31, 45, 117, 0.06);
    --yv-st-rel: rgba(196, 30, 58, 0.07);
    --yv-st-text: #1a1a2e;
    --yv-st-muted: #5c6578;
    background: #fff;
    border: 1px solid var(--yv-st-line);
    border-top: 3px solid var(--yv-st-navy);
    border-radius: 0;
    padding: 12px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.yv-standings__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.yv-standings__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--yv-st-line);
}

.yv-standings__tab {
    appearance: none;
    margin: 0;
    padding: 8px 3px;
    min-width: 0;
    min-height: 38px;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--yv-st-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.yv-standings__tab.is-active {
    color: var(--yv-st-navy-deep);
    border-bottom-color: var(--yv-st-red);
}

.yv-standings__group-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
}

.yv-standings__group-tabs[hidden] {
    display: none;
}

.yv-standings__group-tab {
    appearance: none;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid var(--yv-st-line);
    border-radius: 999px;
    background: #fff;
    color: var(--yv-st-muted);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.yv-standings__group-tab.is-active {
    border-color: var(--yv-st-navy);
    background: var(--yv-st-navy);
    color: #fff;
}

.yv-standings__tab:focus-visible,
.yv-standings__group-tab:focus-visible {
    outline: 2px solid var(--yv-st-navy);
    outline-offset: 2px;
}

.yv-standings__loading {
    position: absolute;
    z-index: 3;
    inset: 92px 12px 12px;
    display: grid;
    place-items: start center;
    padding-top: 42px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--yv-st-navy-deep);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(1px);
}

.yv-standings__loading[hidden] {
    display: none;
}

.yv-standings__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 10px;
}

.yv-standings__season {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--yv-st-muted);
}

.yv-standings__updated {
    margin: 0;
    font-size: 11px;
    color: var(--yv-st-muted);
    line-height: 1.3;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.yv-standings__updated-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 10px;
}

.yv-standings__empty {
    padding: 28px 12px;
    text-align: center;
    color: var(--yv-st-muted);
    font-size: 13px;
    border: 1px dashed var(--yv-st-line);
}

.yv-standings__empty p {
    margin: 0;
}

.yv-standings__table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.yv-standings__caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.yv-standings__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    color: var(--yv-st-text);
}

.yv-standings__th,
.yv-standings__td {
    padding: 0 2px;
    border-bottom: 1px solid var(--yv-st-line);
    text-align: center;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.yv-standings__th {
    height: 32px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--yv-st-muted);
    background: #fff;
}

.yv-standings__th--team,
.yv-standings__td--team {
    text-align: left;
    padding-left: 4px;
    padding-right: 4px;
    width: auto;
}

.yv-standings__th--rank,
.yv-standings__td--rank {
    width: 26px;
    padding-left: 2px;
    padding-right: 0;
}

.yv-standings__th--played,
.yv-standings__td--played,
.yv-standings__th--win,
.yv-standings__td--win,
.yv-standings__th--draw,
.yv-standings__td--draw,
.yv-standings__th--lose,
.yv-standings__td--lose,
.yv-standings__th--diff,
.yv-standings__td--diff {
    width: 24px;
}

.yv-standings__th--pts,
.yv-standings__td--pts {
    width: 28px;
    padding-right: 4px;
    color: var(--yv-st-red);
}

.yv-standings__td--pts strong {
    font-weight: 800;
    color: var(--yv-st-red);
    font-size: 13px;
}

.yv-standings__row {
    min-height: 40px;
}

.yv-standings__row td,
.yv-standings__row th {
    height: 40px;
}

.yv-standings__row:nth-child(even) {
    background: var(--yv-st-zebra);
}

.yv-standings__row--top {
    background: var(--yv-st-top) !important;
    box-shadow: inset 3px 0 0 var(--yv-st-navy);
}

.yv-standings__row--relegation {
    background: var(--yv-st-rel) !important;
    box-shadow: inset 3px 0 0 var(--yv-st-red);
}

.yv-standings__row--top.yv-standings__row--relegation {
    box-shadow: inset 3px 0 0 var(--yv-st-red);
}

.yv-standings__row:hover,
.yv-standings__row:focus-within {
    background: #eef1f8 !important;
}

.yv-standings__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 20px;
    font-weight: 700;
    font-size: 12px;
}

.yv-standings__arrow {
    font-size: 8px;
    line-height: 1;
}

.yv-standings__arrow--up {
    color: #1b7a3d;
}

.yv-standings__arrow--down {
    color: var(--yv-st-red);
}

.yv-standings__team {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
}

.yv-standings__logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.yv-standings__team-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: 600;
    font-size: 11.5px;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
}

/*
 * Sidebar her zaman dar (~320px). Viewport 1200 olsa bile
 * tam sütun seti taşırır — sidebar'da Av gizle, istatistikleri sıkı tut.
 */
.sidebar-box.sports-box .yv-standings__th--diff,
.sidebar-box.sports-box .yv-standings__td--diff {
    display: none;
}

.sidebar-box.sports-box .yv-standings__th--played,
.sidebar-box.sports-box .yv-standings__td--played,
.sidebar-box.sports-box .yv-standings__th--win,
.sidebar-box.sports-box .yv-standings__td--win,
.sidebar-box.sports-box .yv-standings__th--draw,
.sidebar-box.sports-box .yv-standings__td--draw,
.sidebar-box.sports-box .yv-standings__th--lose,
.sidebar-box.sports-box .yv-standings__td--lose {
    width: 22px;
}

/* Dar ekran / mobilde sidebar full-width olsa da kompakt kalsın */
@media (max-width: 767px) {
    .yv-standings {
        padding: 10px;
    }

    .yv-standings__th--win,
    .yv-standings__td--win,
    .yv-standings__th--draw,
    .yv-standings__td--draw,
    .yv-standings__th--lose,
    .yv-standings__td--lose,
    .yv-standings__th--diff,
    .yv-standings__td--diff {
        display: none;
    }

    .yv-standings__th--played,
    .yv-standings__td--played {
        width: 28px;
    }

    .yv-standings__th--pts,
    .yv-standings__td--pts {
        width: 32px;
    }

    .yv-standings__team-name {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .yv-standings__row td,
    .yv-standings__row th {
        height: 44px;
    }
}

body.dark-mode .yv-standings {
    background: #1e1e1e;
    border-color: #333;
    color: #e4e6eb;
}

body.dark-mode .yv-standings__tab.is-active {
    color: #e4e6eb;
}

body.dark-mode .yv-standings__group-tab {
    background: #242424;
    border-color: #3a3a3a;
    color: #b0b3b8;
}

body.dark-mode .yv-standings__group-tab.is-active {
    background: #e4e6eb;
    border-color: #e4e6eb;
    color: #111;
}

body.dark-mode .yv-standings__loading {
    background: rgba(30, 30, 30, 0.9);
    color: #e4e6eb;
}

body.dark-mode .yv-standings__th {
    background: #1e1e1e;
    color: #b0b3b8;
}

body.dark-mode .yv-standings__row:nth-child(even) {
    background: #242424;
}

body.dark-mode .yv-standings__row:hover,
body.dark-mode .yv-standings__row:focus-within {
    background: #2a2f3d !important;
}

body.dark-mode .yv-standings__tabs {
    border-bottom-color: #333;
}
