/* ===========================================================================
 *  KALENDAR2 - MOBIL / TABLET DUZENI                         (2026-09-26)
 *
 *  Site 1280px sabit masaustu duzeniyle cizildi (kalendar2.css). Bu dosya
 *  bundle DISINDA, ondan SONRA yuklenir ve yalnizca 1024px altinda devreye
 *  girer; masaustunde tek bir kurali bile etkilemez (1024-1279px arasi eski
 *  "butunu kucult" davranisi aynen kalir).
 *
 *    < 1024px : ust cubuk + hamburger cekmece menu, tek sutun icerik,
 *               yan sutunlar icerigin altinda (tablette iki sutun izgara)
 *    <  600px : telefon ince ayarlari
 *
 *  Eski CSS'te cok sayida !important oldugu icin burada da gerekiyor.
 *  Renk: sitenin mavi kristal paleti (altin YOK).
 * =========================================================================== */

/* Masaustunde mobil ogeler hic gorunmez */
.k2-mbar,
.k2-mbar-perde,
.k2-mmenu-baslik,
.k2-mmenu-hesap,
.k2-mhero-cta { display: none; }

@media (max-width: 1023px) {

    /* ------------------------------------------------------------ temel */
    html, body {
        min-width: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    body { -webkit-tap-highlight-color: rgba(80, 190, 255, .18); }

    .wrapper {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        transform: none !important;
        overflow: visible !important;
    }

    img, iframe, video { max-width: 100%; }

    /* ---------------------------------------------------- ust cubuk */
    .k2-mbar {
        position: fixed;
        z-index: 9000;
        left: 0; right: 0; top: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        height: 58px;
        padding: 0 12px;
        padding-top: env(safe-area-inset-top);
        box-sizing: content-box;
        background: linear-gradient(180deg, rgba(6, 30, 58, .82), rgba(2, 12, 28, .72));
        border-bottom: 1px solid rgba(110, 210, 255, .28);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
        transition: background .2s ease-out;
    }
    html.k2-kaydi .k2-mbar { background: linear-gradient(180deg, rgba(4, 22, 44, .96), rgba(2, 10, 24, .94)); }
    .k2-mbar::after {
        content: "";
        position: absolute; left: 12%; right: 12%; bottom: -1px; height: 1px;
        background: linear-gradient(90deg, transparent, rgba(123, 225, 255, .9), transparent);
        box-shadow: 0 0 10px rgba(89, 200, 255, .8);
    }
    .k2-mbar-logo {
        display: flex !important;
        align-items: center;
        gap: 8px;
        min-width: 0;
        color: #eaf8ff !important;
        text-decoration: none !important;
    }
    /* kirpilmis seffaf logo (images/og/logo-mobil.png) - daire yok, amblem buyuk */
    .k2-mbar-logo img {
        width: auto; height: 46px;
        margin: 0 -2px 0 -4px;
        filter: drop-shadow(0 0 8px rgba(70, 180, 255, .55)) drop-shadow(0 2px 3px rgba(0, 0, 0, .6));
    }
    .k2-mbar-logo span {
        font: 700 18px/1 'Candara', Arial, sans-serif;
        letter-spacing: 2px;
        color: #f2fbff;
        text-shadow: 0 0 12px rgba(90, 206, 255, .7);
        white-space: nowrap;
    }
    .k2-mbar-logo b { color: #6fd0ff; }
    .k2-mbar-online {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        padding: 6px 10px;
        color: #cfeeff;
        font: 700 13px/1 'Candara', Arial, sans-serif;
        border: 1px solid rgba(110, 210, 255, .35);
        background: rgba(4, 26, 52, .7);
        border-radius: 20px;
        white-space: nowrap;
    }
    .k2-mbar-online i {
        width: 8px; height: 8px; border-radius: 50%;
        background: #5ff5c8;
        box-shadow: 0 0 8px #5ff5c8;
        animation: k2mNabiz 1.8s ease-in-out infinite;
    }
    .k2-mbar .k2-mbar-menu {
        position: relative;
        flex: 0 0 44px;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(130, 220, 255, .6) !important;
        border-radius: 0 !important;
        background: linear-gradient(180deg, rgba(34, 140, 210, .9), rgba(6, 50, 96, .95)) !important;
        clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
        box-shadow: none !important;
    }
    .k2-mbar-menu span {
        position: absolute;
        left: 12px; right: 12px;
        height: 2px;
        background: #eaf8ff;
        border-radius: 2px;
        box-shadow: 0 0 6px rgba(120, 220, 255, .9);
        transition: transform .22s ease-out, opacity .18s;
    }
    .k2-mbar-menu span:nth-child(1) { top: 14px; }
    .k2-mbar-menu span:nth-child(2) { top: 21px; }
    .k2-mbar-menu span:nth-child(3) { top: 28px; }
    html.k2-menu-acik .k2-mbar-menu span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    html.k2-menu-acik .k2-mbar-menu span:nth-child(2) { opacity: 0; }
    html.k2-menu-acik .k2-mbar-menu span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* ------------------------------------------------ cekmece menu */
    .k2-mbar-perde {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9100;
        background: rgba(0, 4, 12, .62);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease-out, visibility .25s;
    }
    html.k2-menu-acik .k2-mbar-perde { opacity: 1; visibility: visible; }
    /* Kaydirma kilidi modalx.js'te (body position:fixed) - iOS'ta da calisir */

    /* Cekmece: ust -> MENU basligi + kapat, hesap butonlari (yan yana),
       INDIR, menu satirlari. Satirlar 46px: kucuk telefonda da hepsi sigar. */
    #k2-mmenu {
        position: fixed !important;
        z-index: 9200 !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        bottom: 0 !important;
        width: min(300px, 84vw) !important;
        height: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 0 calc(16px + env(safe-area-inset-bottom)) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translateX(105%) !important;
        visibility: hidden;
        transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s !important;
        background:
            radial-gradient(ellipse at 50% 0, rgba(72, 190, 255, .20), transparent 42%),
            linear-gradient(170deg, rgba(10, 50, 90, .99), rgba(2, 10, 24, .995) 60%) !important;
        border: 0 !important;
        border-left: 1px solid rgba(120, 215, 255, .45) !important;
        box-shadow: -12px 0 40px rgba(0, 0, 0, .6) !important;
        clip-path: none !important;
        filter: none !important;
    }
    #k2-mmenu::before,
    #k2-mmenu::after { display: none !important; }
    html.k2-menu-acik #k2-mmenu {
        transform: translateX(0) !important;
        visibility: visible;
        transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s !important;
    }

    .k2-mmenu-baslik {
        order: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 auto;
        height: 58px;
        padding: 0 10px 0 18px;
        padding-top: env(safe-area-inset-top);
        box-sizing: content-box;
        color: #8fd6ff;
        font: 700 13px/1 'Candara', Arial, sans-serif;
        letter-spacing: 4px;
        border-bottom: 1px solid rgba(110, 210, 255, .2);
    }
    .k2-mmenu-baslik .k2-mmenu-kapat {
        width: 40px !important; height: 40px !important;
        margin: 0 !important; padding: 0 !important;
        color: #eaf8ff !important;
        font-size: 26px !important; line-height: 1 !important;
        border: 1px solid rgba(130, 220, 255, .4) !important;
        border-radius: 0 !important;
        background: rgba(10, 50, 90, .6) !important;
        box-shadow: none !important;
    }

    /* hesap butonlari en ustte, yan yana */
    .k2-mmenu-hesap {
        order: 1;
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
        padding: 14px 14px 12px;
        border-bottom: 1px solid rgba(110, 210, 255, .14);
    }
    .k2-mmenu-hesap .k2-mmenu-btn {
        flex: 1 1 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-width: 0;
        height: 42px;
        padding: 0 6px;
        color: #ffffff !important;
        font: 700 12.5px/1.1 'Candara', Arial, sans-serif;
        letter-spacing: 1.2px;
        text-align: center;
        text-decoration: none !important;
        border: 1px solid rgba(140, 225, 255, .7);
        background:
            radial-gradient(circle at 50% 0, rgba(160, 235, 255, .28), transparent 58%),
            linear-gradient(180deg, rgba(34, 140, 210, .96), rgba(6, 50, 96, .98));
        clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    }
    .k2-mmenu-hesap .k2-mmenu-btn-ikincil {
        border-color: rgba(120, 200, 240, .45);
        background: linear-gradient(180deg, rgba(22, 60, 96, .95), rgba(6, 24, 46, .98));
    }

    #k2-mmenu .menu {
        order: 2;
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 6px 0 !important;
        transform: none !important;
        background: none !important;
        border: 0 !important;
        clip-path: none !important;
    }
    #k2-mmenu .menu::before,
    #k2-mmenu .menu::after { display: none !important; }
    /* ul "contents": li'ler ve MARKET alt paneli ayni sutunda siralanir,
       alt panel order ile MARKET'in hemen altina girer */
    #k2-mmenu .menu ul {
        display: contents !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
    }
    #k2-mmenu .menu li,
    #k2-mmenu .menu li.menu-download {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
    }
    #k2-mmenu .menu li.menu-download  { order: 0 !important; }
    #k2-mmenu .menu li.menu-anasayfa  { order: 1 !important; }
    #k2-mmenu .menu li.menu-kaydol    { order: 2 !important; }
    #k2-mmenu .menu li.menu-siralama  { order: 3 !important; }
    #k2-mmenu .menu li.menu-market    { order: 4 !important; }
    #k2-mmenu .menu .menu-altmenu     { order: 5 !important; }
    #k2-mmenu .menu li.menu-wiki      { order: 6 !important; }
    #k2-mmenu .menu li.menu-destek    { order: 7 !important; }
    /* KAYDOL satiri: hesap butonlarinda zaten var */
    #k2-mmenu .menu li.menu-kaydol    { display: none !important; }

    #k2-mmenu .menu li::before,
    #k2-mmenu .menu li::after,
    #k2-mmenu .menu li a::before,
    #k2-mmenu .menu li a::after { display: none !important; }
    #k2-mmenu .menu li a {
        position: relative;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: auto !important;
        height: 46px !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 18px !important;
        color: #dff2ff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        letter-spacing: 1.6px !important;
        text-align: left !important;
        text-shadow: none !important;
        background: none !important;
        border: 0 !important;
        clip-path: none !important;
        box-shadow: none !important;
        transform: none !important;
    }
    /* satir sonunda ince ok */
    #k2-mmenu .menu li:not(.menu-download) a::after {
        content: "" !important;
        display: block !important;
        position: static !important;
        width: 7px !important; height: 7px !important;
        border: 0 !important;
        border-top: 2px solid rgba(143, 214, 255, .55) !important;
        border-right: 2px solid rgba(143, 214, 255, .55) !important;
        background: none !important;
        transform: rotate(45deg) !important;
        box-shadow: none !important;
    }
    #k2-mmenu .menu li.menu-market a::after { transform: rotate(135deg) !important; }
    #k2-mmenu .menu li a:active,
    #k2-mmenu .menu li a:hover {
        background: linear-gradient(90deg, rgba(40, 150, 230, .28), transparent) !important;
        color: #ffffff !important;
    }
    /* aktif sayfa */
    #k2-mmenu .menu li.k2-aktif a {
        color: #ffffff !important;
        background: linear-gradient(90deg, rgba(40, 150, 230, .22), transparent 80%) !important;
        box-shadow: inset 3px 0 0 #6fd0ff !important;
    }

    /* INDIR: cekmecede de birincil buton */
    #k2-mmenu .menu li.menu-download a {
        justify-content: center !important;
        height: 42px !important;
        margin: 6px 14px 8px !important;
        letter-spacing: 2px !important;
        border: 1px solid rgba(140, 225, 255, .75) !important;
        background:
            radial-gradient(circle at 50% 0, rgba(160, 235, 255, .30), transparent 58%),
            linear-gradient(180deg, rgba(34, 140, 210, .96), rgba(6, 50, 96, .98)) !important;
        clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px) !important;
    }

    /* MARKET alt secenekleri: sola hizali alt satirlar (girinti + ince cizgi) */
    #k2-mmenu .menu .menu-altmenu {
        position: static !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        margin: 0 0 4px 18px !important;
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        background: none !important;
        border: 0 !important;
        border-left: 1px solid rgba(110, 210, 255, .25) !important;
        box-shadow: none !important;
        clip-path: none !important;
    }
    #k2-mmenu .menu .menu-altmenu::before,
    #k2-mmenu .menu .menu-altmenu::after { display: none !important; }
    #k2-mmenu .menu .menu-altmenu a,
    #k2-mmenu .menu .menu-altmenu a.menu-altmenu-btn-ep {
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        min-width: 0 !important;
        height: 40px !important;
        margin: 0 !important;
        justify-content: flex-start !important;
        padding: 0 18px 0 16px !important;
        color: #a9d6f2 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        line-height: 1 !important;
        text-align: left !important;
        text-shadow: none !important;
        border: 0 !important;
        background: none !important;
        box-shadow: none !important;
        clip-path: none !important;
        transform: none !important;
    }
    #k2-mmenu .menu .menu-altmenu a:active,
    #k2-mmenu .menu .menu-altmenu a:hover { color: #ffffff !important; background: rgba(40, 150, 230, .18) !important; }
    #k2-mmenu .language-block { display: none !important; }

    /* --------------------------------------------------- baslik alani */
    .header {
        position: relative !important;
        width: 100% !important;
        height: 390px !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background-size: cover !important;
        background-position: center top !important;
    }
    body.tam-genislik .header { height: 150px !important; }

    .header .big-light,
    .header .small-light,
    .header .sparks { display: none !important; }

    /* Aktif oyuncu kutusu: ust cubukta sayisi var, burada gizli */
    .header .server-block { display: none !important; }

    /* Masaustu GIRIS YAP kutusu yerine ilk ekran eylemleri:
       OYUNU INDIR (birincil) + GIRIS YAP | KAYIT OL (ikincil) */
    .header .header-login-cta { display: none !important; }
    .k2-mhero-cta {
        position: absolute;
        z-index: 5;
        left: 50%;
        bottom: 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: min(420px, calc(100% - 28px));
        transform: translateX(-50%);
    }
    body.tam-genislik .k2-mhero-cta { display: none; }
    .k2-mhero-ikili { display: flex; gap: 10px; }
    .k2-mhero-ikili .k2-mhero-btn { flex: 1 1 0; }
    .k2-mhero-cta .k2-mhero-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 0;
        height: 44px;
        padding: 0 10px;
        box-sizing: border-box;
        color: #eaf8ff !important;
        font: 700 13px/1 'Candara', Arial, sans-serif;
        letter-spacing: 1.4px;
        text-decoration: none !important;
        text-shadow: 0 0 8px rgba(84, 186, 255, .55);
        border: 1px solid rgba(120, 205, 245, .5);
        background: linear-gradient(180deg, rgba(14, 52, 90, .88), rgba(4, 20, 40, .92));
        clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
    }
    .k2-mhero-cta .k2-mhero-birincil {
        height: 50px;
        color: #ffffff !important;
        font-size: 15px;
        letter-spacing: 2.4px;
        border-color: rgba(150, 228, 255, .85);
        background:
            radial-gradient(circle at 50% 0, rgba(170, 238, 255, .38), transparent 58%),
            linear-gradient(180deg, rgba(38, 148, 220, .98), rgba(6, 52, 100, .98));
        box-shadow: inset 0 1px 0 rgba(236, 252, 255, .3);
    }
    .k2-mhero-cta .k2-mhero-btn:active { filter: brightness(1.2); }

    /* WIKI butonu: OYUNU INDIR ile ayni satirda (yukseklik ayni kalir, cerceve ust kisima tasmaz) */
    .k2-mhero-ana { display: flex; gap: 10px; }
    .k2-mhero-ana .k2-mhero-birincil { flex: 1 1 0; min-width: 0; }
    .k2-mhero-cta .k2-mhero-wiki { flex: 0 0 104px; height: 50px; font-size: 14px; letter-spacing: 1.8px; }
    .k2-mhero-cta .k2-mhero-wiki svg { flex: none; }


    /* Buyuk giris alani (logo + eylemler) YALNIZ ana sayfada. Ic sayfalarda
       header ust cubugun altinda ince bir serit, icerik hemen baslar. */
    body:not(.k2-anasayfa) .header { height: 72px !important; }
    body:not(.k2-anasayfa) .k2-mhero-cta { display: none !important; }

    /* Tekrarlari ayikla: ana sayfada INDIR/KAYDOL bloklari ilk ekrandaki
       butonlarla ayni; ic sayfalarda video + Facebook sayfayi uzatiyor. */
    body.k2-anasayfa .right-sidebar .download-block,
    body.k2-anasayfa .right-sidebar .register-block { display: none !important; }
    body:not(.k2-anasayfa) .right-sidebar .vote-block,
    body:not(.k2-anasayfa) .right-sidebar .fast-links { display: none !important; }
    /* Siralama sayfalarinda soldaki mini siralamalar ayni verinin tekrari */
    body.k2-sayfa-KarakterSiralama .left-sidebar .top-player-block,
    body.k2-sayfa-LoncaSiralama .left-sidebar .top-player-block { display: none !important; }

    /* -------------------------------------------------- uc sutun -> tek */
    .container {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 14px 14px 0 !important;
        box-sizing: border-box !important;
        gap: 18px !important;
    }
    .container > .content {
        order: 1;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }
    .container > .right-sidebar { order: 2; }
    .container > .left-sidebar  { order: 3; }
    .container > .left-sidebar,
    .container > .right-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        float: none !important;
        display: block !important;
        column-count: 2;
        column-gap: 16px;
    }
    .left-sidebar > br, .right-sidebar > br,
    .left-sidebar br + br { display: none !important; }
    .left-sidebar > *, .right-sidebar > * {
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 16px !important;
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
    }
    .left-sidebar form:empty,
    .left-sidebar > div:empty { display: none !important; }
    .right-sidebar .download-block,
    .right-sidebar .register-block { height: auto !important; }
    .sidebar-block { width: auto !important; }

    /* Facebook kutusu: eklenti icerigini sabit genislikte cizer; kutu ortalanir */
    .fast-links .fb-page {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    .fast-links .fb-page > span,
    .fast-links .fb-page iframe {
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Facebook kutusu genislige sigsin */
    .fast-links .fb-page > span,
    .fast-links .fb-page iframe { max-width: 100% !important; }

    /* icerik bloklari */
    .content .slider.k2-slider,
    .content .k2-slider {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 632 / 215;
    }
    .content .k2-slider .k2-slider-stage { height: 100% !important; }
    .content .panel,
    .content .panel-buyuk,
    .content .news-block,
    .content table,
    .content .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    /* genis tablolar yatay kaydirilir, sayfa kaymaz */
    .content .table-hermes,
    .content table.table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .content .table-hermes > thead,
    .content .table-hermes > tbody,
    .content table.table > thead,
    .content table.table > tbody {
        display: table !important;
        width: 100% !important;
        min-width: 520px;
    }

    /* formlar parmakla rahat kullanilsin (iOS 16px alti = otomatik zoom) */
    input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
    input[type="number"], input[type="search"], select, textarea, .form-control {
        font-size: 16px !important;
        max-width: 100% !important;
    }

    /* ----------------------------------------------------- modallar
       Pencere kendi icinde kisilmaz; KARARTMA katmani kayar (uzun kayit formu
       parmakla asagi kaydirilir, arkadaki sayfa modalx.js ile kilitli). */
    .modalx-overlay {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding: calc(12px + env(safe-area-inset-top)) 12px calc(28px + env(safe-area-inset-bottom)) !important;
        box-sizing: border-box !important;
    }
    .modalx-overlay .modal_window {
        max-height: none !important;
        overflow: visible !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }
    #login_modal,
    #reg_modal,
    .modal_window.sozlesme_page {
        width: 100% !important;
        max-width: 460px !important;
        clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)) !important;
    }
    #login_modal::before,
    #reg_modal::before,
    .modal_window.sozlesme_page::before { inset: 7px !important; }
    #login_modal .popup-block,
    #reg_modal .popup-block,
    .modal_window.sozlesme_page .popup-block {
        max-width: none !important;
        padding: 26px 18px 22px !important;
    }
    #login_modal .reg-title,
    #reg_modal .reg-title,
    .modal_window.sozlesme_page .reg-title {
        margin: 0 52px 18px 0 !important;
        padding: 12px 14px !important;
        font-size: 17px !important;
        text-align: left !important;
    }
    #login_modal .reg-form,
    #reg_modal .reg-form,
    .modal_window.sozlesme_page .reg-form {
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #login_modal .reg-form form,
    #reg_modal .reg-form form { width: auto !important; max-width: 100% !important; }
    #login_modal .form-control,
    #reg_modal .form-control,
    .modal_window.sozlesme_page .form-control {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 46px !important;
        margin: 0 0 10px !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
    }
    #login_modal .close-r,
    #reg_modal .close-r,
    .modal_window.sozlesme_page .close-r {
        top: 12px !important;
        right: 12px !important;
    }
    #login_modal .login-button,
    #reg_modal .login-button,
    #login_modal .button-n,
    #reg_modal .button-n,
    #login_modal button[type="submit"],
    #reg_modal button[type="submit"],
    #reg_modal input[type="submit"] {
        width: 100% !important;
        max-width: 100% !important;
        height: 48px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    #video_modal { width: 100% !important; max-width: 720px !important; height: auto !important; }
    #video_modal .close-r { margin-left: 0 !important; right: 6px !important; top: 6px !important; }
    #video_modal iframe { width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; }
    /* ------------------------------------------------------- footer */
    .footer.k2-footer { width: 100% !important; height: auto !important; margin-top: 18px !important; }
    .k2-footer-alt {
        flex-direction: column !important;
        gap: 10px !important;
        height: auto !important;
        padding: 16px 14px calc(16px + env(safe-area-inset-bottom)) !important;
        text-align: center !important;
    }
    .k2-footer-belgeler {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 8px 14px !important;
    }

    #k2-yukari { right: 14px !important; bottom: calc(16px + env(safe-area-inset-bottom)) !important; }
}

/* ============================================================== telefon */
@media (max-width: 599px) {
    .header { height: 356px !important; }
    body.tam-genislik .header { height: 76px !important; }

    .container { padding: 10px 10px 0 !important; gap: 14px !important; }
    .container > .left-sidebar,
    .container > .right-sidebar { column-count: 1; }

    .k2-mbar-logo span { font-size: 16px; letter-spacing: 1.5px; }
    .k2-mbar-online { padding: 5px 8px; font-size: 12px; }

    .k2-footer-belgeler a { font-size: 12px !important; }

    /* Eski sablonun "telefonda gizle" sutunlari (Lonca, Bayrak, Sinif) */
    .content .hidden-xs { display: none !important; }
    .content .table-hermes > thead,
    .content .table-hermes > tbody,
    .content table.table > thead,
    .content table.table > tbody { min-width: 0 !important; }

    /* Tanitim videosu kapagi tam genislik */
    .right-sidebar .video,
    .right-sidebar .video img { width: 100% !important; height: auto !important; }
    .right-sidebar .video { box-sizing: border-box !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }

    /* Duyuru karti: GM rozeti ustte kucuk, metin tam genislik */
    .content .news {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
    .content .news .news-img {
        width: 64px !important;
        min-width: 0 !important;
        margin: 0 auto !important;
    }
    .content .news .news-img img { width: 64px !important; height: auto !important; padding: 0 !important; }
    .content .news .news-i { width: auto !important; min-width: 0 !important; max-width: 100% !important; }
    .content .news .news-i h2 { font-size: 18px !important; line-height: 1.3 !important; text-align: center !important; }
    .content .news .news-info {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px 12px !important;
    }
    .content .news .news-i .news-info span { border-left: 0 !important; padding: 0 8px !important; }
    .content .news .news-info .read-more { flex: 1 1 100% !important; justify-content: center !important; margin-top: 4px !important; }

    /* Slider yazisi telefonda daha kucuk */
    .k2-slide-copy { transform: none !important; width: auto !important; padding: 8px 12px !important; left: 10px !important; right: 58px !important; bottom: 18px !important; }
    .k2-slide-copy strong { font-size: 13px !important; line-height: 1.25 !important; }
    .k2-slide-copy small { font-size: 11px !important; }
    .k2-slide-alert { width: 34px !important; height: 34px !important; font-size: 18px !important; line-height: 34px !important; right: 10px !important; bottom: 22px !important; }
}

@media (max-width: 359px) {
    .k2-mbar-logo span { display: none; }
}

@keyframes k2mNabiz { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
    #k2-mmenu, .k2-mbar-perde, .k2-mbar-menu span { transition: none !important; }
    .k2-mbar-online i { animation: none; }
}

/* ===========================================================================
 *  KUCUK MASAUSTU / YATAY TABLET: 1024 - 1279px            (2026-09-27)
 *  Eskiden kalendar2.css "transform: scale(calc(100vw / 1280))" ile butunu
 *  kucultuyordu; ama calc() sayi degil uzunluk urettigi icin kural GECERSIZDI,
 *  1280px duzen tasip sag sutun + Aktif Oyuncu kutusu kesiliyordu.
 *  Artik ayni uc sutun akiskan: yan sutunlar 220-290px, orta sutun kalan alan.
 * =========================================================================== */
@media (min-width: 1024px) and (max-width: 1279px) {
    html, body { overflow-x: hidden !important; }
    .wrapper {
        width: 100% !important;
        min-width: 0 !important;
        transform: none !important;
    }
    .header,
    .footer.k2-footer { width: 100% !important; }

    .container {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 20px !important;
        padding: 0 14px !important;
        box-sizing: border-box !important;
    }
    .container > .left-sidebar,
    .container > .right-sidebar {
        flex: 0 0 clamp(220px, 22vw, 290px) !important;
        width: clamp(220px, 22vw, 290px) !important;
        min-width: 0 !important;
        margin: 0 !important;
        float: none !important;
    }
    .container > .content {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 632px !important;
        margin: 0 auto !important;
        float: none !important;
    }
    .tam-genislik .container > .content { max-width: none !important; }

    .left-sidebar > *, .right-sidebar > * { max-width: 100% !important; box-sizing: border-box !important; }
    .right-sidebar .download-block,
    .right-sidebar .register-block,
    .sidebar-block { width: auto !important; }
    .right-sidebar .video,
    .right-sidebar .video img { width: 100% !important; height: auto !important; box-sizing: border-box !important; }
    .fast-links .fb-page,
    .fast-links .fb-page > span,
    .fast-links .fb-page iframe { width: 100% !important; max-width: 100% !important; }

    /* Aktif Oyuncu kutusu sag kenara yaslanir */
    .header .server-block { left: auto !important; right: 14px !important; }

    /* orta sutun daralinca icerik esnesin */
    .content .k2-slider,
    .content .slider.k2-slider { width: 100% !important; max-width: 100% !important; }
    .content .k2-king-board { max-width: 100% !important; }
    .content .table-hermes,
    .content table.table { display: block !important; overflow-x: auto !important; }
    .content .table-hermes > thead,
    .content .table-hermes > tbody,
    .content table.table > thead,
    .content table.table > tbody { display: table !important; width: 100% !important; }
}