﻿/* =====================================================================
   ESBPL - Yeni tasarim (modern.css)
   Faz R1: renkler, yazi tipleri, ust menu, alt bilgi, sayfa iskeleti.
   Yeni siniflar "es-" ile baslar; eski Global.css / responsive.css
   siniflariyla cakismaz. Henuz yenilenmemis sayfalar ".es-legacy"
   kutusunun icinde eski gorunumleriyle calismaya devam eder.
   ===================================================================== */

:root {
    --es-bg: #F2F4EF;
    --es-surface: #FFFFFF;
    --es-border: #DDE3D8;
    --es-line: #EEF1EB;
    --es-ink: #14201A;
    --es-muted: #4F5D54;
    --es-accent: #1F7A3A;
    --es-accent-soft: #E6EEE3;
    --es-dark: #14321F;
    --es-dark-2: #1D4029;
    --es-dark-3: #2A5236;
    --es-on-dark: #C9D6CC;
    --es-radius: 18px;
    --es-radius-sm: 10px;
    --es-wrap: 1200px;
    --es-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --es-font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

/* ---------- Temel ---------- */
html,
body.es {
    background: var(--es-bg);
}

body.es {
    font-family: var(--es-font-body);
    color: var(--es-ink);
    line-height: 1.4;
    -webkit-text-size-adjust: 100%;
}

body.es a {
    color: var(--es-accent);
}

.es-wrap {
    max-width: var(--es-wrap);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.es-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Ust menu ---------- */
.es-header {
    background: var(--es-surface);
    border-bottom: 1px solid var(--es-border);
    position: relative;
    z-index: 50;
}

.es-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
}

.es-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
}

.es-brand__name {
    font-family: var(--es-font-display);
    font-weight: 800;
    font-size: 32px;
    letter-spacing: 1px;
    color: var(--es-accent);
}

.es-brand__tag {
    font-size: 12px;
    color: var(--es-muted);
}

.es-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    background: var(--es-surface);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.es-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.es-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.es-nav__item {
    position: relative;
}

.es-nav__link {
    display: block;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--es-ink) !important;
    font-family: var(--es-font-body);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.es-nav__link:hover,
.es-nav__item.is-open > .es-nav__link {
    background: var(--es-accent-soft);
    color: var(--es-accent) !important;
}

.es-nav__link[aria-expanded]::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
}

/* Alt menuler */
.es-sub {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--es-surface);
    border: 1px solid var(--es-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(20, 32, 26, 0.12);
}

.es-nav__item.is-open > .es-sub {
    display: block;
}

.es-sub a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--es-ink) !important;
    font-size: 14px;
    text-decoration: none;
}

.es-sub a:hover {
    background: var(--es-accent-soft);
    color: var(--es-accent) !important;
}

/* Giris / kullanici alani */
.es-account {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.es-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: var(--es-radius-sm);
    font-family: var(--es-font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.es-btn--primary {
    background: var(--es-accent);
    color: #FFFFFF !important;
}

/* Koyu yesil buton (Ekşi ile giriş): yesil "Giriş yap" ile ayni aile */
.es-btn--dark {
    background: var(--es-dark);
    color: #FFFFFF !important;
}

.es-btn--dark:hover {
    background: var(--es-dark-2);
}

.es-btn--ghost {
    background: var(--es-surface);
    border-color: #C9D2C4;
    color: var(--es-ink) !important;
}

.es-account > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.es-account__hello {
    font-size: 14px;
    color: var(--es-muted);
}

/* ---------- Sayfa icerigi ---------- */
.es-main {
    min-height: 60vh;
}

/* Henuz yenilenmemis sayfalar: eski kutu ortalanir */
.container.es-legacy {
    float: none;
    width: auto;
    max-width: 1050px;
    margin: 24px auto;
    box-shadow: none;
}

/* ---------- Alt bilgi ---------- */
.es-footer {
    background: var(--es-dark);
    color: var(--es-on-dark);
    font-size: 13px;
    margin-top: 32px;
}

.es-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.es-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.es-footer__name {
    font-family: var(--es-font-display);
    font-weight: 800;
    font-size: 22px;
    color: #FFFFFF;
}

.es-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.es-social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--es-dark-2);
    color: #FFFFFF !important;
    font-size: 13px;
    text-decoration: none;
}

.es-social a:hover {
    background: var(--es-dark-3);
}

.es-social img {
    width: 18px;
    height: 18px;
}

/* ---------- Tablet ve telefon: hamburger menu ---------- */
@media (max-width: 960px), (orientation: landscape) and (max-height: 500px) {
    .es-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .es-header__inner {
        flex-wrap: wrap;
        min-height: 64px;
    }

    .es-brand__name {
        font-size: 28px;
    }

    .es-brand__tag {
        display: none;
    }

    .es-menu-toggle {
        display: inline-flex;
    }

    .es-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-bottom: 12px;
    }

    .es-header.is-menu-open .es-nav {
        display: flex;
    }

    .es-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .es-nav__link {
        width: 100%;
        text-align: left;
        padding: 12px;
        font-size: 16px;
        box-sizing: border-box;
    }

    .es-sub {
        position: static;
        min-width: 0;
        margin: 2px 0 6px 12px;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--es-border);
        border-radius: 0;
    }

    .es-account {
        margin: 8px 0 0;
        flex-wrap: wrap;
    }

    .es-account .es-btn {
        flex: 1 1 auto;
    }

    .container.es-legacy {
        margin: 0 auto;
    }
}

/* =====================================================================
   Faz R2 - Ortak bilesenler (kart, tablo, skor, liste) + Ana sayfa
   ===================================================================== */

/* Yenilenmis sayfalar ".es-page" ile baslar: eski 1050px kutu yerine
   tasarimin 1200px genisligi kullanilir */
.container.es-legacy:has(> .es-page) {
    max-width: var(--es-wrap);
    padding: 24px;
    box-sizing: border-box;
    background: transparent;
}

.es-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: var(--es-font-body);
    color: var(--es-ink);
    font-size: 15px;
    line-height: 1.45;
}

.es-grid {
    display: grid;
    gap: 20px;
}

.es-grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    /* Ayni siradaki kartlar esit yukseklikte, alt kenarlari hizali */
    align-items: stretch;
}

/* Kart */
.es-card {
    background: var(--es-surface);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.es-card--flush {
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.es-card--dark {
    background: var(--es-dark);
    border-color: var(--es-dark);
    color: #FFFFFF;
}

.es-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.es-card__head--pad {
    padding: 20px 20px 8px;
}

.es-title {
    margin: 0;
    font-family: var(--es-font-display);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.1;
}

.es-link {
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.es-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--es-accent-soft);
    color: var(--es-accent);
    font-size: 13px;
    font-weight: 600;
}

.es-chip--dark {
    background: var(--es-dark-3);
    color: #FFFFFF;
}

.es-muted { color: var(--es-muted); }
.es-strong { font-weight: 700; }
.es-c { text-align: center; }

/* Skor kartlari (koyu zemin) */
.es-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 10px;
}

.es-scores__label {
    grid-column: 1 / -1;
}

.es-score {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--es-dark-2);
    color: #FFFFFF !important;
    text-decoration: none;
    box-sizing: border-box;
}

.es-score:hover {
    background: var(--es-dark-3);
}

.es-score__team {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.es-score__team--home {
    text-align: right;
}

.es-score__result {
    padding: 2px 0;
    border-radius: 8px;
    background: var(--es-accent);
    font-family: var(--es-font-display);
    font-weight: 700;
    font-size: 22px;
    text-align: center;
}

/* Tablo (puan durumu) */
.es-table__head,
.es-table__row {
    display: grid;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
}

.es-table--4 .es-table__head,
.es-table--4 .es-table__row {
    grid-template-columns: 32px minmax(0, 1fr) 48px 48px;
}

.es-table__head {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--es-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.es-table__row {
    border-top: 1px solid var(--es-line);
    font-size: 15px;
}

/* Global.css'teki eski puan durumu stilini ezer */
.es-page .puandurumuMain {
    float: none;
    width: auto;
    height: auto;
    border-bottom: 0;
}

.es-table__team {
    color: var(--es-ink) !important;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.es-table__team:hover {
    color: var(--es-accent) !important;
}

/* Gelecek hafta */
.es-fixtures {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.es-fixture {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--es-radius-sm);
    background: var(--es-bg);
}

.es-fixture__time {
    flex: 0 0 auto;
    min-width: 48px;
    font-family: var(--es-font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--es-accent);
}

.es-fixture__match {
    font-size: 14px;
}

/* Onemli linkler */
.es-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.es-links a {
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.es-links a:hover {
    text-decoration: underline;
}

.es-links__news {
    text-transform: capitalize;
}

/* Onemli linkler + Duyurular ayni sutunda alt alta */
.es-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Son kart kalan yuksekligi doldurur, sutunun alti yandaki kartla hizalanir */
.es-stack > .es-card--news,
.es-stack:not(:has(.es-news__item)) > .es-card:first-child {
    flex: 1 1 auto;
}

/* Duyurular (admin > Haberler Duyurular) */
.es-news {
    display: flex;
    flex-direction: column;
}

.es-news__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--es-line);
    text-decoration: none;
    color: inherit;
}

.es-news__item:first-child {
    padding-top: 0;
}

.es-news__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.es-news__title {
    font-size: 15px;
    font-weight: 500;
    color: var(--es-accent);
    text-transform: capitalize;
}

.es-news__item:hover .es-news__title {
    text-decoration: underline;
}

.es-news__date {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--es-muted);
}

/* Hic duyuru yoksa kart gizlenir */
.es-card--news:not(:has(.es-news__item)) {
    display: none;
}

/* Basliklar + entry okuma alani */
.es-reader {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.es-topics {
    margin: 0;
    padding: 0;
    list-style: none;
}

.es-topics a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 0;
    border-top: 1px solid var(--es-line);
    color: var(--es-ink) !important;
    font-size: 14px;
    text-decoration: none;
    box-sizing: border-box;
}

.es-topics a:hover span {
    color: var(--es-accent);
}

.es-count {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--es-bg);
    color: var(--es-muted);
    font-size: 12px;
    font-weight: 600;
}

/* Arama */
.es-search {
    display: flex;
    gap: 8px;
}

.es-input,
.es-textarea {
    font-family: var(--es-font-body);
    font-size: 16px;
    color: var(--es-ink);
    border: 1px solid #C9D2C4;
    border-radius: var(--es-radius-sm);
    background: #FFFFFF;
    box-sizing: border-box;
}

.es-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
}

.es-input:focus,
.es-textarea:focus {
    outline: 2px solid var(--es-accent);
    outline-offset: 1px;
}

.es-entry-title {
    margin: 4px 0 0;
    font-family: var(--es-font-display);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.15;
    color: var(--es-accent);
}

/* Entry */
.es-entry {
    padding: 14px 0;
    border-top: 1px solid var(--es-line);
}

.es-entry__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.es-entry__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.es-entry__author {
    font-weight: 600;
    text-decoration: none;
}

.es-entry__date {
    font-size: 13px;
    color: var(--es-muted);
}

.es-entry__index {
    margin-left: auto;
    font-size: 13px;
    color: var(--es-muted);
}

.es-entry__body {
    margin: 10px 0 0 42px;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.es-entry__body img {
    max-width: 100%;
    height: auto;
}

.es-entry__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 0 42px;
}

.es-entry__like a {
    color: var(--es-muted) !important;
    font-size: 13px;
    text-decoration: none;
}

.es-entry__actions {
    display: flex;
    gap: 6px;
}

.es-entry__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.es-entry__actions a:hover {
    background: var(--es-bg);
}

.es-entry__actions img {
    width: 16px;
    height: 16px;
}

/* Sayfalama */
.es-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--es-muted);
}

.es-pager a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--es-border);
    border-radius: 8px;
    color: var(--es-ink) !important;
    text-decoration: none;
}

.es-pager a:hover {
    border-color: var(--es-accent);
    color: var(--es-accent) !important;
}

.es-pager select {
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid var(--es-border);
    border-radius: 8px;
    font-family: var(--es-font-body);
    font-size: 16px;
    background: #FFFFFF;
}

/* Yorum formu */
.es-comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--es-line);
}

.es-textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px;
    resize: vertical;
}

.es-comment-form__tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.es-tool {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--es-bg);
    color: var(--es-ink) !important;
    font-size: 14px;
    text-decoration: none;
}

.es-tool:hover {
    background: var(--es-accent-soft);
}

.es-comment-form__tools .es-btn {
    margin-left: auto;
}

.es-error {
    color: #B42318;
    font-size: 14px;
}

/* ---------- Telefon ---------- */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    .container.es-legacy:has(> .es-page) {
        padding: 16px;
    }

    .es-page {
        gap: 16px;
    }

    .es-grid {
        gap: 16px;
    }

    .es-card {
        padding: 16px;
        border-radius: 16px;
    }

    .es-card--flush {
        padding: 0;
    }

    .es-card__head--pad {
        padding: 16px 16px 8px;
    }

    .es-title {
        font-size: 24px;
    }

    .es-table__head,
    .es-table__row {
        padding-left: 16px;
        padding-right: 16px;
    }

    .es-table--4 .es-table__head,
    .es-table--4 .es-table__row {
        grid-template-columns: 28px minmax(0, 1fr) 36px 36px;
    }

    .es-reader {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-entry__body,
    .es-entry__foot {
        margin-left: 0;
    }

    .es-comment-form__tools .es-btn {
        margin-left: 0;
        flex: 1 1 100%;
    }
}

/* =====================================================================
   Faz R3 - Lig sayfasi
   ===================================================================== */

.es-page-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.es-kicker {
    margin: 0;
    font-family: var(--es-font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--es-muted);
}

.es-h1 {
    margin: 0;
    font-family: var(--es-font-display);
    font-weight: 800;
    font-size: 48px;
    line-height: 1;
    color: var(--es-ink);
}

.es-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Iki kolon: sol (hafta, kisa tablo, krallik) + sag (tam tablo, mac) */
.es-league__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 20px;
    align-items: start;
}

.es-league__side,
.es-league__main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.es-league__week {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Sezon / hafta secimi */
.es-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.es-filter__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--es-muted);
}

.es-filter__field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--es-muted);
}

.es-select {
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    background: #FFFFFF;
    font-family: var(--es-font-body);
    font-size: 16px;
    color: var(--es-ink);
}

.es-scores--stack {
    grid-template-columns: minmax(0, 1fr);
}

/* Tablolar */
.es-table--5 .es-table__head,
.es-table--5 .es-table__row {
    grid-template-columns: 32px minmax(0, 1fr) 40px 40px 44px;
}

.es-table--full .es-table__head,
.es-table--full .es-table__row {
    grid-template-columns: 32px minmax(0, 1fr) repeat(8, 40px);
}

.es-table__row:hover {
    background: #F7F9F5;
}

.es-table--players .es-table__row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 48px;
}

/* Gol / asist kralligi kartlari */
.es-kings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 20px;
}

.es-rank {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: es-rank;
}

.es-rank__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-top: 1px solid var(--es-line);
    font-size: 15px;
    counter-increment: es-rank;
}

.es-rank__row::before {
    content: counter(es-rank) ".";
    min-width: 22px;
    color: var(--es-muted);
    font-weight: 600;
}

.es-rank__row a {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--es-ink) !important;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.es-rank__row a:hover {
    color: var(--es-accent) !important;
}

.es-rank__count {
    font-weight: 700;
}

/* ---------- Mac detayi (HTML'i kod tarafindan uretiliyor) ---------- */
.es-match:not(:has(.macbasligi)) {
    display: none;
}

.es-match .macbasligi {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    align-items: center;
    gap: 12px;
    float: none;
    width: auto;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

.es-match .macbasligi > a:first-child {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
}

.es-match .macbasligi > a:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
}

.es-match .macbasligi .skor {
    grid-column: 2;
    grid-row: 1;
    float: none;
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.es-match .macbasligi img.home,
.es-match .macbasligi img.away {
    float: none;
    display: block;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.es-match .hafta,
.es-match .hafta a {
    float: none;
    width: auto;
    font-family: var(--es-font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--es-muted);
    text-align: center;
}

.es-match .skor .takimveskor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    float: none;
    width: 100%;
    margin: 0;
}

.es-match .skor .takimveskor .home     { grid-column: 1; text-align: right; }
.es-match .skor .takimveskor .homeskor { grid-column: 2; }
.es-match .skor .takimveskor .hometire { grid-column: 3; }
.es-match .skor .takimveskor .awayskor { grid-column: 4; }
.es-match .skor .takimveskor .away     { grid-column: 5; text-align: left; }

.es-match .skor .takimveskor .home,
.es-match .skor .takimveskor .away {
    grid-row: 1;
    float: none;
    width: auto;
    min-width: 0;
    overflow-wrap: break-word;
}

.es-match .skor .takimveskor .home a,
.es-match .skor .takimveskor .away a {
    font-family: var(--es-font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--es-ink);
    text-transform: none;
}

.es-match .skor .takimveskor .homeskor,
.es-match .skor .takimveskor .awayskor,
.es-match .skor .takimveskor .hometire {
    grid-row: 1;
    float: none;
    margin: 0;
    font-family: var(--es-font-display);
    font-weight: 800;
    font-size: 52px;
    line-height: 1;
    color: var(--es-ink);
}

/* "Macin ozet videosu" / "Mac basligi" */
.es-match > .takimveskor {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    float: none;
    width: auto;
    margin: 0;
}

.es-match > .takimveskor .home,
.es-match > .takimveskor .away {
    float: none;
    width: auto;
    text-align: center;
}

.es-match > .takimveskor a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--es-radius-sm);
    background: var(--es-accent-soft);
    font-family: var(--es-font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--es-accent);
    text-transform: none;
    text-decoration: none;
}

.es-match > .takimveskor a:hover {
    background: #D8E5D3;
}

/* Kadrolar */
.es-match .teamsdetails {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    float: none;
    width: auto;
    border: 0;
}

.es-match .teamsdetails .left,
.es-match .teamsdetails .right {
    float: none;
    width: auto;
    border: 0;
}

.es-match .teamsdetails ul {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.es-match .teamsdetails .left ul li,
.es-match .teamsdetails .right ul li {
    float: none;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 10px 0;
    border-top: 1px solid var(--es-line);
    border-bottom: 0;
    font-size: 12px;
    line-height: 20px;
}

.es-match .teamsdetails .left ul li,
.es-match .teamsdetails .right ul li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.es-match .teamsdetails .right ul li {
    flex-direction: row-reverse;
    text-align: right;
}

.es-match .teamsdetails ul li b {
    margin: 0;
}

.es-match .teamsdetails ul li img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
}

.es-match .teamsdetails ul li span {
    display: inline;
    margin: 0;
}

.es-match .teamsdetails ul li span a {
    font-family: var(--es-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--es-ink);
}

.es-match .teamsdetails ul li span a:hover {
    color: var(--es-accent);
}

.es-match .teamsdetails ul li b {
    font-weight: 500;
}

/* ---------- Tablet ---------- */
@media (max-width: 1050px) {
    .es-league__cols {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Tek kolonda siralama: hafta, mac, puan durumu, tum listeler, krallik */
    .es-league__side,
    .es-league__main {
        display: contents;
    }

    .es-league__cols {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .es-league__week  { order: 1; }
    .es-match         { order: 2; }
    .es-league__short { order: 3; }
    .es-league__full  { order: 4; }
    .es-kings         { order: 5; }
}

/* ---------- Telefon ---------- */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    .es-h1 {
        font-size: 36px;
    }

    .es-league__cols {
        gap: 16px;
    }

    .es-kings {
        gap: 16px;
    }

    .es-table--5 .es-table__head,
    .es-table--5 .es-table__row {
        grid-template-columns: 28px minmax(0, 1fr) 34px 34px 38px;
    }

    .es-table--full .es-table__head,
    .es-table--full .es-table__row {
        grid-template-columns: 20px minmax(0, 1fr) repeat(8, 24px);
        gap: 2px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
    }

    .es-table--full .es-table__head {
        font-size: 11px;
        letter-spacing: 0;
    }

    .es-table--players .es-table__row {
        grid-template-columns: minmax(0, 1fr) 40px;
        row-gap: 0;
    }

    .es-table--players .es-table__row > .es-muted {
        grid-column: 1;
        grid-row: 2;
        font-size: 13px;
    }

    .es-table--players .es-table__row > .es-c {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .es-match .macbasligi {
        grid-template-columns: 52px minmax(0, 1fr) 52px;
        gap: 8px;
    }

    .es-match .macbasligi img.home,
    .es-match .macbasligi img.away {
        width: 48px;
        height: 48px;
    }

    .es-match .skor .takimveskor {
        gap: 4px 6px;
    }

    .es-match .skor .takimveskor .home {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .es-match .skor .takimveskor .away {
        grid-column: 4 / 6;
        grid-row: 2;
    }

    .es-match .skor .takimveskor .home a,
    .es-match .skor .takimveskor .away a {
        font-size: 13px;
    }

    .es-match .skor .takimveskor .homeskor,
    .es-match .skor .takimveskor .awayskor,
    .es-match .skor .takimveskor .hometire {
        font-size: 34px;
    }

    .es-match .teamsdetails {
        gap: 10px;
    }

    .es-match .teamsdetails ul li span a {
        font-size: 13px;
    }
}

/* Fotografi olmayan oyuncular: eski "avatar.jpg" yerine sade bir profil ikonu */
.es-page img[src$="/avatar.jpg"] {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    padding-left: 28px;
    border-radius: 50%;
    background: var(--es-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231F7A3A'%3E%3Ccircle cx='12' cy='9' r='4'/%3E%3Cpath d='M4 20c0-4 3.6-6 8-6s8 2 8 6z'/%3E%3C/svg%3E") center / 70% no-repeat;
    overflow: hidden;
}

.es-entry__avatar[src$="/avatar.jpg"] {
    width: 32px;
    height: 32px;
    padding-left: 32px;
}

/* Gol / asist tum liste sayfasinda sezon-hafta listesi bos gelir; bos secimi gosterme */
.es-filter:has(.es-select:empty) {
    display: none;
}

/* Logo yanindaki 25. yil amblemi */
.es-brand__badge {
    align-self: center;
    width: auto;
    height: 52px;
    margin-right: 2px;
}

/* Kadro bilgisi olmayan maclarda bos alan birakma */
.es-match .teamsdetails:not(:has(li)) {
    display: none;
}

@media (max-width: 960px), (orientation: landscape) and (max-height: 500px) {
    .es-brand__badge {
        height: 40px;
    }
}

/* Ust bant: eski sitenin yesil arka plani (25. yil bandi), yeni tasarima uygun acik tonla */
.es-header {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0) 70%),
        url(../Images/Global/esbpl_header_bg.jpg) right 55% / cover no-repeat,
        var(--es-surface);
}

@media (max-width: 960px), (orientation: landscape) and (max-height: 500px) {
    /* Telefonda menu acilinca okunurluk icin beyaz zemin */
    .es-header.is-menu-open .es-nav {
        background: rgba(255, 255, 255, 0.96);
        border-radius: var(--es-radius-sm);
        padding: 8px;
        margin-bottom: 12px;
    }
}

/* Daha yuksek ust bant (masaustu) */
.es-header__inner {
    min-height: 112px;
}

.es-brand__badge {
    height: 76px;
}

.es-brand__name {
    font-size: 38px;
}

.es-header {
    background-position: 0 0, right center, 0 0;
}

@media (max-width: 960px), (orientation: landscape) and (max-height: 500px) {
    .es-header__inner {
        min-height: 80px;
    }

    .es-brand__badge {
        height: 50px;
    }

    .es-brand__name {
        font-size: 32px;
    }
}

/* ---------- Son rotus: tutarlilik ---------- */
body.es {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Rakamlar alt alta hizali dursun */
.es-table,
.es-score__result,
.es-fixture__time,
.es-rank__count,
.es-count,
.es-match .skor {
    font-variant-numeric: tabular-nums;
}

.es-table__row {
    transition: background-color 0.15s ease;
}

/* Secim kutulari: tarayici varsayilani yerine tasarima uygun gorunum */
.es-select,
.es-pager select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 34px;
    background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F5D54' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat;
    cursor: pointer;
}

.es-select:hover,
.es-pager select:hover {
    border-color: var(--es-accent);
}

/* Klavye ile gezinmede belirgin odak */
.es a:focus-visible,
.es button:focus-visible,
.es select:focus-visible {
    outline: 2px solid var(--es-accent);
    outline-offset: 2px;
}

.es-card--dark a:focus-visible {
    outline-color: #FFFFFF;
}

.es-h1 {
    letter-spacing: 0.5px;
}

/* =====================================================================
   Faz R4a - Entries, Search, News
   ===================================================================== */

/* Global.css'teki eski .userentry kutusunu sifirla */
.es-page .userentry {
    width: auto;
    float: none;
    display: block;
    margin: 0;
    padding: 14px 0;
    position: static;
    border-bottom: 0;
}

.es-page .userentry .es-entry__avatar {
    float: none;
    width: 32px;
    height: 32px;
    margin: 0;
}

.es-page .userentry .es-entry__avatar[src$="/avatar.jpg"] {
    padding-left: 32px;
}

.es-page .userentry .indexnumber {
    position: static;
    font-family: var(--es-font-body);
    font-size: 13px;
    color: var(--es-muted);
}

.es-page .userentry span {
    width: auto;
    float: none;
    display: inline;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.es-page .userentry .es-entry__body img {
    max-width: 100%;
    height: auto;
}

.es-page .leftentries:hover {
    background: transparent;
}

/* Arama sonuclari (HTML'i kod tarafindan uretiliyor) */
.es-results:empty {
    display: none;
}

.es-results .subject {
    float: none;
    width: auto;
    padding: 14px 0;
    border-bottom: 0;
    border-top: 1px solid var(--es-line);
}

.es-results .subject h3 {
    float: none;
    width: auto;
    margin: 0 0 4px;
    font-family: var(--es-font-body);
    font-size: 16px;
    font-weight: 600;
}

.es-results .subject h3 a {
    color: var(--es-accent);
    text-decoration: none;
}

.es-results .subject h3 a:hover {
    text-decoration: underline;
}

.es-results .subject span {
    float: none;
    width: auto;
    display: block;
    font-size: 14px;
    line-height: 1.55;
}

.es-results .subject span a {
    color: var(--es-muted);
    text-decoration: none;
}

/* Haber metni */
.es-article {
    font-size: 16px;
    line-height: 1.7;
    color: var(--es-ink);
    overflow-wrap: break-word;
}

.es-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--es-radius-sm);
}

.es-page .userentry .es-entry__date {
    font-size: 13px;
    color: var(--es-muted);
}

/* Telefonda once okunan icerik, sonra basliklar listesi */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    .es-reader__main {
        order: -1;
    }
}

/* =====================================================================
   Faz R4b - Teams, Players, Takimlar
   ===================================================================== */

.es-profile__cols {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.es-profile__side,
.es-profile__main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.es-profile__photo {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.es-profile__photo img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--es-radius-sm);
    background: var(--es-bg);
}

.es-profile__photo--logo img {
    max-width: 200px;
    object-fit: contain;
    background: transparent;
}

/* Bilgi listesi (etiket : deger) */
.es-facts {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    margin: 0;
    font-size: 14px;
}

.es-facts dt,
.es-facts dd {
    margin: 0;
    padding: 9px 0;
    border-top: 1px solid var(--es-line);
}

.es-facts dt {
    padding-right: 16px;
    color: var(--es-muted);
    font-weight: 500;
}

.es-facts dd {
    font-weight: 600;
    text-align: right;
    overflow-wrap: break-word;
}

.es-article--small {
    font-size: 14px;
    line-height: 1.6;
}

/* Kadro tablosu */
.es-table--squad .es-table__head,
.es-table--squad .es-table__row {
    grid-template-columns: minmax(0, 1fr) 48px 40px;
}

/* Mac sonucu satiri (takim / oyuncu sayfalari) */
.es-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.es-result,
.es-pmatch__game {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.es-result {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--es-radius-sm);
    background: var(--es-bg);
    color: var(--es-ink) !important;
    text-decoration: none;
    font-size: 14px;
    box-sizing: border-box;
}

.es-result:hover {
    background: var(--es-accent-soft);
}

.es-result__team {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.es-result__team--home {
    text-align: right;
}

.es-result__score {
    padding: 3px 0;
    border-radius: 8px;
    background: var(--es-accent);
    color: #FFFFFF;
    font-family: var(--es-font-display);
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.es-profile .es-kings {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.es-rank--two .es-rank__count + .es-rank__count {
    min-width: 28px;
    text-align: right;
    font-weight: 500;
}

/* Oyuncu: mac listesi (istatistik + mac) */
.es-pmatch {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-top: 1px solid var(--es-line);
    color: var(--es-ink) !important;
    text-decoration: none;
    font-size: 14px;
}

a.es-pmatch:hover {
    background: #F7F9F5;
}

.es-pmatch--head {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--es-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.es-pmatch__stats {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.es-pmatch--head .es-pmatch__game {
    display: block;
    text-align: center;
}

/* Takimlar sayfasi (HTML'i kod tarafindan uretiliyor) */
.es-teams {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.es-teams > div {
    display: contents;
}

.es-teams br {
    display: none;
}

/* "Guncel / Gecmis Sezon Takimlari" basliklari */
.es-teams > div[style] {
    display: block;
    grid-column: 1 / -1;
    margin: 8px 0 0;
    padding: 0;
    background: transparent !important;
    color: var(--es-ink) !important;
    font-family: var(--es-font-display);
    font-weight: 700;
    font-size: 26px;
    text-align: left;
}

.es-teams > div[style]:not(:first-child) {
    margin-top: 20px;
}

.es-teams a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    background: #FFFFFF;
    color: var(--es-ink) !important;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.es-teams a:hover {
    border-color: var(--es-accent);
    background: var(--es-accent-soft);
}

.es-teams a:has(img) {
    aspect-ratio: 1 / 1;
    padding: 14px;
    background: var(--es-bg);
}

.es-teams a img {
    width: 100%;
    height: 100%;
    max-width: 130px;
    max-height: 130px;
    object-fit: contain;
}

/* ---------- Tablet / telefon ---------- */
@media (max-width: 1050px) {
    .es-profile__cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-pmatch {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .es-pmatch--head .es-pmatch__game {
        display: none;
    }
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    .es-profile__photo img {
        max-width: 180px;
    }

    .es-pmatch {
        padding: 10px 16px;
    }

    .es-pmatch__stats {
        font-size: 13px;
    }

    .es-result,
    .es-pmatch__game {
        grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
        gap: 8px;
        font-size: 13px;
    }

    .es-teams {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .es-teams > div[style] {
        font-size: 22px;
    }
}

/* Sonuc renkleri (kod "green / red / 1638" gonderir): tasarim paletine cevir */
.es-result__score[style*="green"] {
    background-color: var(--es-accent) !important;
}

.es-result__score[style*="red"] {
    background-color: #C2453B !important;
}

.es-result__score[style*="1638"] {
    background-color: #7C8A80 !important;
}

/* Tek kolonda (takim sayfasi): bilgiler, sezon secimi, maclar, istatistikler, en sonda kadro */
@media (max-width: 1050px) {
    .es-profile__cols {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .es-profile__side,
    .es-profile__main {
        display: contents;
    }

    .es-profile__side > :first-child       { order: 1; }
    .es-profile__main > :nth-child(1)      { order: 2; }
    .es-profile__main > :nth-child(2)      { order: 3; }
    .es-profile__main > :nth-child(3)      { order: 4; }
    .es-profile__side > :nth-child(2)      { order: 5; }
}

/* =====================================================================
   Faz R4c - Hakkinda, Giris, Profil, Katil
   ===================================================================== */

.container.es-legacy:has(> .es-page--narrow) {
    max-width: 880px;
}

.es-h1--sm {
    font-size: 40px;
}

.es-form-card {
    gap: 10px;
}

.es-form-card > p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.55;
}

/* Form */
.es-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.es-form--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.es-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.es-field--full {
    grid-column: 1 / -1;
}

.es-field > label {
    font-size: 13px;
    font-weight: 600;
    color: var(--es-muted);
}

.es-field .es-input,
.es-field .es-select {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
}

.es-field .es-input[disabled] {
    background: var(--es-bg);
    color: var(--es-muted);
}

.es-field .es-textarea {
    min-height: 110px;
}

.es-field--actions {
    flex-direction: row;
}

.es-file {
    font-family: var(--es-font-body);
    font-size: 14px;
    color: var(--es-muted);
}

.es-file::file-selector-button {
    margin-right: 12px;
    padding: 10px 16px;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius-sm);
    background: #FFFFFF;
    color: var(--es-ink);
    font-family: var(--es-font-body);
    font-weight: 600;
    cursor: pointer;
}

.es-file::file-selector-button:hover {
    border-color: var(--es-accent);
}

.es-error:empty {
    display: none;
}

/* Hakkinda: icerik kontrolden geliyor (eski inline stiller ezilir) */
.es-about .subject {
    float: none !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.es-about .subject h3 {
    float: none !important;
    width: auto !important;
    margin: 0 0 8px !important;
    font-family: var(--es-font-display) !important;
    font-weight: 800 !important;
    font-size: 40px !important;
    line-height: 1.05 !important;
    color: var(--es-ink) !important;
}

.es-about .subject p {
    margin: 0 !important;
    font-family: var(--es-font-body) !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    color: var(--es-ink) !important;
}

.es-about .subject p a {
    color: var(--es-accent) !important;
    font-weight: 600;
    text-decoration: underline !important;
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    .es-h1--sm,
    .es-about .subject h3 {
        font-size: 30px !important;
    }

    .es-form--2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-field--actions .es-btn {
        flex: 1 1 auto;
    }
}

/* Kisa sayfalarda footer ekranin altinda dursun */
body.es > form {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.es > form > .es-main {
    flex: 1 0 auto;
}

/* Telefonda kisa form sayfalari (giris vb.): kart bos alanin ortasinda dursun */
@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    body.es > form > .es-main:has(.es-form-card) {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body.es > form > .es-main:has(.es-form-card) > .container.es-legacy {
        width: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }
}

/* ---------- Footer: link kolonlari ---------- */
.es-footer__top {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(0, 2fr);
    gap: 32px 48px;
    padding-top: 40px;
    padding-bottom: 32px;
}

.es-footer__brand {
    gap: 8px;
}

.es-footer__brand .es-social {
    margin-top: 10px;
}

.es-footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.es-footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.es-footer__title {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.es-footer__col a {
    color: var(--es-on-dark) !important;
    font-size: 14px;
    text-decoration: none;
}

.es-footer__col a:hover {
    color: #FFFFFF !important;
    text-decoration: underline;
}

.es-footer__bottom {
    border-top: 1px solid var(--es-dark-2);
}

.es-footer__bottom .es-wrap {
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 12px;
}

#demo:empty {
    display: none;
}

@media (max-width: 960px), (orientation: landscape) and (max-height: 500px) {
    .es-footer__top {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 32px;
        padding-bottom: 24px;
    }
}

@media (max-width: 560px) {
    .es-footer__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }
}

/* Sosyal medya ikonlari (Font Awesome) */
.es-social a {
    gap: 8px;
    padding: 0 14px;
    transition: background-color 0.15s ease;
}

.es-social a i {
    width: 16px;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    color: #FFFFFF;
}

/* Masaustu: "Haftanin basliklari" en fazla yandaki icerik kadar uzun olsun.
   Liste daha uzunsa kendi icinde kayar; kisaysa kart liste bitince biter. */
@media (min-width: 769px) and (min-height: 501px) {
    .es-reader {
        position: relative;
    }

    .es-reader__main {
        grid-column: 2;
        grid-row: 1;
        min-height: 480px;
    }

    .es-reader__topics {
        position: absolute;
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        top: 0;
        left: 0;
        right: 0;
        max-height: 100%;
        box-sizing: border-box;
    }

    .es-reader__topics .es-topics {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        margin-right: -8px;
        padding-right: 8px;
        scrollbar-width: thin;
        scrollbar-color: var(--es-border) transparent;
    }
}

/* =====================================================================
   Faz R4d - Kupa ve Playoff
   ===================================================================== */

.es-result--static:hover {
    background: var(--es-bg);
}

.es-result--static .es-result__score {
    background: var(--es-dark);
}

.es-cup-match {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.es-cup-match__meta {
    font-size: 12px;
    font-weight: 600;
    color: var(--es-muted);
}

.es-table--cup .es-table__head,
.es-table--cup .es-table__row {
    grid-template-columns: minmax(0, 1fr) repeat(8, 36px);
}

/* Playoff */
.es-playoff {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.es-playoff__title {
    font-family: var(--es-font-display);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.1;
    color: var(--es-ink);
}

.es-playoff__cols {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 20px;
    align-items: start;
}

.es-playoff__table {
    order: 2;
}

/* GridView tablosu */
.es-gridtable {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.es-gridtable th,
.es-gridtable td {
    padding: 10px 6px;
    text-align: center;
    border-top: 1px solid var(--es-line);
}

.es-gridtable th {
    border-top: 0;
    padding-top: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--es-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.es-gridtable th:first-child,
.es-gridtable td:first-child {
    width: 28px;
    padding-left: 20px;
    color: var(--es-muted);
    font-weight: 700;
}

.es-gridtable th:last-child,
.es-gridtable td:last-child {
    padding-right: 20px;
}

.es-gridtable .es-gridtable__team {
    width: 100%;
    max-width: 0;
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.es-gridtable tr:hover td {
    background: #F7F9F5;
}

@media (max-width: 1050px) {
    .es-playoff__cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .es-playoff__table {
        order: -1;
    }
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    .es-table--cup .es-table__head,
    .es-table--cup .es-table__row {
        grid-template-columns: minmax(0, 1fr) repeat(8, 26px);
        gap: 2px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
    }

    .es-table--cup .es-table__head {
        font-size: 11px;
        letter-spacing: 0;
    }

    .es-playoff__title {
        font-size: 24px;
    }

    .es-gridtable {
        font-size: 13px;
    }

    .es-gridtable th,
    .es-gridtable td {
        padding: 9px 3px;
    }

    .es-gridtable th {
        font-size: 11px;
        letter-spacing: 0;
    }

    .es-gridtable th:first-child,
    .es-gridtable td:first-child {
        width: 18px;
        padding-left: 12px;
    }

    .es-gridtable th:last-child,
    .es-gridtable td:last-child {
        padding-right: 12px;
    }
}

.es-gridtable th:not(:first-child):not(.es-gridtable__team),
.es-gridtable td:not(:first-child):not(.es-gridtable__team) {
    width: 40px;
    min-width: 40px;
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    .es-gridtable th:not(:first-child):not(.es-gridtable__team),
    .es-gridtable td:not(:first-child):not(.es-gridtable__team) {
        width: 20px;
        min-width: 20px;
        padding-left: 2px;
        padding-right: 2px;
    }
}

/* Kupa: eleme turlari tek kartta, agac (bracket) duzeni */
.es-bracket:not(:has(.es-round)) {
    display: none;
}

.es-bracket__rounds {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 20px;
}

.es-round {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.es-round--quarter { order: 1; }
.es-round--semi    { order: 2; }
.es-round--final   { order: 3; }

.es-round__title {
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--es-line);
    font-family: var(--es-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--es-muted);
}

/* Maclar sutun icinde dikeyde esit dagilir: agac gibi hizalanir */
.es-round__matches {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 10px;
}

.es-round--final .es-result {
    border: 2px solid var(--es-accent);
    background: var(--es-accent-soft);
}

/* Grup maclari: kart icinde izgara */
.es-cup-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 14px 20px;
}

@media (max-width: 900px) {
    .es-bracket__rounds {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        gap: 24px;
    }

    .es-round--final   { order: 1; }
    .es-round--semi    { order: 2; }
    .es-round--quarter { order: 3; }
}

/* ---------- Optastat (Power BI) sayfalari: beyaz baslik, solda yesil serit + dar kenar boslugu ---------- */
.pbi-section {
    background: var(--es-surface);
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    padding: 0 8px 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.pbi-section .pbi-title {
    float: none;
    width: auto;
    background: none;
    margin: 0 0 8px;
    overflow: visible;
}

.pbi-section .pbi-title h3 {
    float: none;
    width: auto;
    height: auto;
    margin: 0 -8px; /* bandi kartin kenarlarina kadar uzatir */
    padding: 10px 16px;
    background: var(--es-surface);
    border-left: 6px solid var(--es-accent);
    border-bottom: 1px solid var(--es-border);
    line-height: 1.2;
    font-family: var(--es-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--es-ink);
}

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
    .pbi-section {
        padding: 0 4px 4px;
    }

    .pbi-section .pbi-title {
        margin-bottom: 4px;
    }

    .pbi-section .pbi-title h3 {
        margin: 0 -4px;
        font-size: 18px;
        padding: 8px 12px;
    }
}

/* ---------- Ust bant: ESBPL logosu (yazi yerine) ---------- */
.es-brand {
    align-items: center;
    gap: 12px;
}

.es-brand__logo {
    display: block;
    width: auto;
    height: 92px;
}

/* Menu ve butonlar tek satir kalsin */
.es-nav__link,
.es-account .es-btn {
    white-space: nowrap;
}

/* 25. yil rozeti: logodan ayri, en sagda, ince cizgiyle ayrilmis */
.es-header__badge {
    display: block;
    width: auto;
    height: 84px;
    padding-left: 24px;
    border-left: 1px solid var(--es-border);
}

/* Dar masaustu / tablet yatay: daha sikisik yerlesim */
@media (min-width: 961px) and (max-width: 1240px) {
    .es-brand__logo {
        height: 76px;
    }

    .es-header__badge {
        height: 64px;
        padding-left: 14px;
    }

    .es-header__inner,
    .es-nav,
    .es-nav__list {
        gap: 4px;
    }

    .es-nav__link {
        padding-left: 8px;
        padding-right: 8px;
    }

    .es-account .es-btn {
        padding: 0 12px;
    }
}

@media (max-width: 960px), (orientation: landscape) and (max-height: 500px) {
    .es-brand__logo {
        height: 60px;
    }

    .es-header__badge {
        order: 1;
        height: 48px;
        margin-left: auto;
        padding-left: 0;
        border-left: 0;
    }

    .es-menu-toggle {
        order: 2;
    }

    .es-nav {
        order: 3;
    }
}
