/* AGF - Slider + TJK 1./2. 6'lı Sonuçları CANLI */

.agf-hero-altili-grid{
    display:grid;
    grid-template-columns:minmax(0,1.18fr) minmax(500px,1fr);
    gap:17px;
    align-items:stretch;
}

.agf-hero-altili-grid .agf-slider-shell{
    margin:0;
    min-width:0;
    height:370px;
}

.agf-hero-altili-grid .modern-slider,
.agf-hero-altili-grid .modern-slider .carousel,
.agf-hero-altili-grid .modern-slider .carousel-inner,
.agf-hero-altili-grid .modern-slider .carousel-item{
    height:100%;
}

.agf-hero-altili-grid .modern-slider .carousel-item img{
    width:100%;
    height:100%;
    max-height:none;
    object-fit:cover;
    object-position:center;
}

/* Ana TJK kartı */
.agf-altili-card{
    min-width:0;
    height:370px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    background:#fff;
    border:1px solid #dfe5ef;
    border-radius:22px;
    box-shadow:0 12px 32px rgba(16,24,40,.07);
}

.agf-altili-head{
    flex:0 0 auto;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:14px 16px 10px;
    border-bottom:1px solid #edf0f5;
}

.agf-altili-kicker{
    display:flex;
    align-items:center;
    gap:7px;
    color:#e11d2e;
    font-size:8px;
    font-weight:950;
    letter-spacing:.07em;
}

.agf-altili-pulse{
    width:8px;height:8px;border-radius:50%;
    background:#ef3340;
    box-shadow:0 0 0 0 rgba(239,51,64,.44);
    animation:agfAltiliPulse 1.8s infinite;
}

@keyframes agfAltiliPulse{
    0%{box-shadow:0 0 0 0 rgba(239,51,64,.42)}
    70%{box-shadow:0 0 0 7px rgba(239,51,64,0)}
    100%{box-shadow:0 0 0 0 rgba(239,51,64,0)}
}

.agf-altili-head h2{
    margin:4px 0 0;
    color:#101828;
    font-size:18px;
    line-height:1.1;
    font-weight:900;
    letter-spacing:-.025em;
}

.agf-altili-meta{
    text-align:right;
}

.agf-altili-meta strong{
    display:block;color:#344054;font-size:10px;font-weight:900;
}

.agf-altili-meta span{
    display:block;margin-top:3px;color:#98a2b3;font-size:8px;font-weight:750;
}

/* Hipodrom menüsü */
.agf-altili-city-tabs{
    flex:0 0 40px;
    min-height:40px;
    padding:7px 10px;
    display:flex;
    align-items:center;
    gap:6px;
    overflow-x:auto;
    scrollbar-width:none;
    border-bottom:1px solid #edf0f5;
    background:#fafbfe;
}

.agf-altili-city-tabs::-webkit-scrollbar{display:none}

.agf-altili-city-btn{
    flex:0 0 auto;
    border:1px solid #e1e6ef;
    background:#fff;
    color:#475467;
    border-radius:8px;
    padding:6px 8px;
    font-size:8px;
    font-weight:900;
    line-height:1;
    cursor:pointer;
}

.agf-altili-city-btn.active{
    background:#175cd3;
    border-color:#175cd3;
    color:#fff;
    box-shadow:0 4px 11px rgba(23,92,211,.15);
}

.agf-altili-tab-placeholder{
    color:#98a2b3;
    font-size:8px;
    font-weight:750;
}

/* İç alan */
.agf-altili-body{
    flex:1;
    min-height:0;
    overflow:auto;
    padding:9px;
    background:#f7f9fc;
}

.agf-sixli-grid{
    height:100%;
    display:grid;
    gap:8px;
}

.agf-sixli-grid.two{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.agf-sixli-grid.one{
    grid-template-columns:1fr;
}

.agf-sixli-panel{
    min-width:0;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    background:#fff;
    border:1px solid #e3e7ee;
    border-radius:13px;
}

.agf-sixli-title{
    flex:0 0 34px;
    padding:7px 9px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:7px;
    border-bottom:1px solid #edf0f5;
    background:linear-gradient(180deg,#fff,#fbfcfe);
}

.agf-sixli-title span{
    color:#101828;
    font-size:11px;
    font-weight:950;
}

.agf-sixli-title small{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#98a2b3;
    font-size:6.5px;
    font-weight:750;
}

.agf-sixli-table-wrap{
    flex:1;
    min-height:0;
    overflow:auto;
}

.agf-sixli-table{
    width:100%;
    border-collapse:collapse;
    table-layout:fixed;
}

.agf-sixli-table th{
    position:sticky;
    top:0;
    z-index:1;
    padding:5px 4px;
    border-bottom:1px solid #e8ecf2;
    background:#f5f7fb;
    color:#667085;
    font-size:6.5px;
    font-weight:950;
    text-align:left;
    text-transform:uppercase;
}

.agf-sixli-table td{
    padding:5px 4px;
    border-bottom:1px solid #eef1f5;
    color:#344054;
    font-size:7.5px;
    line-height:1.15;
    font-weight:750;
    white-space:nowrap;
    vertical-align:middle;
}

.agf-sixli-table tbody tr:last-child td{
    border-bottom:0;
}

.agf-sixli-table th:nth-child(1),
.agf-sixli-table td:nth-child(1){
    width:34px;
    text-align:center;
}

.agf-sixli-table th:nth-child(2),
.agf-sixli-table td:nth-child(2){
    width:auto;
}

.agf-sixli-table th:nth-child(3),
.agf-sixli-table td:nth-child(3){
    width:53px;
}

.agf-sixli-table th:nth-child(4),
.agf-sixli-table td:nth-child(4){
    width:48px;
}

.agf-sixli-table th:nth-child(5),
.agf-sixli-table td:nth-child(5){
    width:31px;
    text-align:center;
}

.agf-altili-leg{
    display:inline-grid;
    place-items:center;
    width:22px;height:22px;
    border-radius:7px;
    background:#eef4ff;
    color:#175cd3;
    font-weight:950;
}

.agf-altili-horse{
    overflow:hidden;
    text-overflow:ellipsis;
    color:#101828!important;
    font-weight:850!important;
}

.agf-altili-agf{
    display:inline-grid;
    place-items:center;
    min-width:21px;height:19px;
    border-radius:6px;
    padding:0 4px;
    background:#ecfdf3;
    color:#067647;
    font-weight:950;
}

.agf-await{
    color:#98a2b3;
    font-style:italic;
    font-weight:650;
}

.agf-sixli-messages{
    flex:0 0 auto;
    border-top:1px solid #edf0f5;
    background:#fffdf5;
    padding:5px 7px;
}

.agf-altili-money{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#b54708;
    font-size:6.5px;
    line-height:1.45;
    font-weight:800;
}

/* Alt durum */
.agf-altili-foot{
    flex:0 0 31px;
    height:31px;
    padding:0 11px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    border-top:1px solid #edf0f5;
    background:#fbfcfe;
}

.agf-altili-foot span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#98a2b3;
    font-size:7px;
    font-weight:750;
}

.agf-altili-refresh{
    flex:0 0 auto;
    border:0;background:transparent;
    color:#175cd3;
    padding:3px;
    font-size:8px;
    font-weight:950;
    cursor:pointer;
}


/* Empty/loading */
.agf-altili-loading,
.agf-altili-empty{
    min-height:190px;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:7px;
    text-align:center;
    padding:20px;
    color:#667085;
    font-size:9px;
}

.agf-altili-empty strong{
    color:#344054;
    font-size:11px;
}

.agf-altili-empty span{
    max-width:330px;
    line-height:1.45;
}

.agf-altili-empty.error strong{
    color:#b42318;
}


.agf-altili-spinner{
    width:19px;height:19px;
    border:2px solid #d1e0ff;
    border-top-color:#175cd3;
    border-radius:50%;
    animation:agfAltiliSpin .7s linear infinite;
}

@keyframes agfAltiliSpin{to{transform:rotate(360deg)}}

@media(max-width:1199.98px){
    .agf-hero-altili-grid{
        grid-template-columns:minmax(0,1fr) minmax(460px,1fr);
        gap:13px;
    }

    .agf-hero-altili-grid .agf-slider-shell,
    .agf-altili-card{
        height:345px;
    }
}

@media(max-width:991.98px){
    .agf-hero-altili-grid{
        grid-template-columns:1fr;
    }

    .agf-hero-altili-grid .agf-slider-shell{
        height:auto;
    }

    .agf-hero-altili-grid .modern-slider,
    .agf-hero-altili-grid .modern-slider .carousel,
    .agf-hero-altili-grid .modern-slider .carousel-inner,
    .agf-hero-altili-grid .modern-slider .carousel-item{
        height:auto;
    }

    .agf-hero-altili-grid .modern-slider .carousel-item img{
        height:auto;
        max-height:360px;
        object-fit:contain;
    }

    .agf-altili-card{
        height:auto;
        min-height:390px;
    }

    .agf-sixli-grid.two{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .agf-sixli-panel{
        min-height:286px;
    }
}

@media(max-width:650px){
    .agf-sixli-grid.two{
        grid-template-columns:1fr;
    }

    .agf-sixli-panel{
        min-height:275px;
    }

    .agf-altili-card{
        border-radius:18px;
    }
}


/* =========================================================
   V5 - 6 AYAĞIN TAMAMI KAYDIRMASIZ GÖRÜNSÜN
   Veri/API mantığına dokunmaz; sadece yerleşim sıkılaştırılır.
   ========================================================= */

@media (min-width: 992px) {
    .agf-hero-altili-grid .agf-slider-shell,
    .agf-altili-card {
        height: 392px;
    }

    .agf-altili-head {
        padding: 12px 15px 9px;
    }

    .agf-altili-head h2 {
        margin-top: 3px;
        font-size: 17px;
    }

    .agf-altili-city-tabs {
        flex-basis: 37px;
        min-height: 37px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .agf-altili-body {
        overflow: hidden;
        padding: 7px;
    }

    .agf-sixli-grid,
    .agf-sixli-grid.two,
    .agf-sixli-grid.one {
        height: 100%;
        align-items: stretch;
    }

    .agf-sixli-panel {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .agf-sixli-title {
        flex: 0 0 29px;
        min-height: 29px;
        padding: 5px 8px;
    }

    .agf-sixli-title span {
        font-size: 10.5px;
    }

    .agf-sixli-title small {
        font-size: 6px;
    }

    .agf-sixli-table-wrap {
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .agf-sixli-table {
        height: 100%;
    }

    .agf-sixli-table thead {
        height: 20px;
    }

    .agf-sixli-table tbody {
        height: calc(100% - 20px);
    }

    .agf-sixli-table tbody tr {
        height: 16.666%;
    }

    .agf-sixli-table th {
        position: static;
        padding: 3px 4px;
        font-size: 6.2px;
        line-height: 1.05;
    }

    .agf-sixli-table td {
        padding: 3px 4px;
        font-size: 7.1px;
        line-height: 1.05;
    }

    .agf-altili-leg {
        width: 20px;
        height: 20px;
        border-radius: 6px;
    }

    .agf-altili-agf {
        min-width: 20px;
        height: 18px;
        border-radius: 6px;
    }

    .agf-sixli-messages {
        flex: 0 0 25px;
        min-height: 25px;
        padding: 4px 6px;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    .agf-altili-money {
        width: 100%;
        font-size: 6.2px;
        line-height: 1.2;
    }

    .agf-altili-foot {
        flex-basis: 29px;
        height: 29px;
    }
}

/* Tablet: iki panel yan yana kalabilir, ama iç scroll oluşmaz. */
@media (min-width: 651px) and (max-width: 991.98px) {
    .agf-altili-card {
        height: auto;
        min-height: 410px;
    }

    .agf-altili-body {
        overflow: visible;
    }

    .agf-sixli-grid.two {
        align-items: stretch;
    }

    .agf-sixli-panel {
        min-height: 305px;
        height: auto;
    }

    .agf-sixli-table-wrap {
        overflow: visible;
    }

    .agf-sixli-table th,
    .agf-sixli-table td {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

/* Telefon: paneller alt alta ve her panelin 6 ayağı da tam görünür. */
@media (max-width: 650px) {
    .agf-altili-body {
        overflow: visible;
    }

    .agf-sixli-grid,
    .agf-sixli-grid.two,
    .agf-sixli-grid.one {
        height: auto;
    }

    .agf-sixli-panel {
        min-height: 0;
        height: auto;
        overflow: hidden;
    }

    .agf-sixli-table-wrap {
        overflow: visible;
    }

    .agf-sixli-table th,
    .agf-sixli-table td {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .agf-sixli-messages {
        min-height: 27px;
    }
}
