
.mfd{
    --mfd-navy:#073a69;
    --mfd-navy-dark:#062f57;
    --mfd-red:#b20d18;
    --mfd-red-bright:#f01525;
    --mfd-gold:#c99537;
    --mfd-gold-dark:#8c5d16;
    --mfd-cream:#f8f3ea;
    --mfd-cream-2:#efe2cf;
    --mfd-line:#dbc9ad;
    --mfd-text:#0b3158;
    position:relative;
    color:var(--mfd-text);
    font-family:inherit;
    background:
        radial-gradient(circle at 8% 82%,rgba(201,149,55,.06) 0 3px,transparent 3.5px),
        radial-gradient(circle at 93% 66%,rgba(201,149,55,.05) 0 4px,transparent 4.5px),
        linear-gradient(180deg,#fffdf9,#fbf8f2);
}

/* HERO – obraz podle schváleného návrhu */
.mfd-hero{
    position:relative;
    overflow:hidden;
    background:#111;
}
.mfd-hero img{
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:1448/295;
    object-fit:cover;
}
/* zakrytí jediné části, kterou uživatel nechce: červená stuha s koulí */
.mfd-hero__ribbon-cover{
    position:absolute;
    left:14%;
    bottom:0;
    width:30%;
    height:36%;
    z-index:2;
    pointer-events:none;
    background:
        linear-gradient(105deg,
            rgba(14,18,19,.97) 0%,
            rgba(14,18,19,.94) 38%,
            rgba(14,18,19,.72) 68%,
            rgba(14,18,19,0) 100%);
    clip-path:polygon(0 8%,82% 8%,100% 100%,0 100%);
}

/* menu přímo pod hero */
.mfd-nav{
    display:flex;
    align-items:center;
    background:linear-gradient(180deg,#fbfaf6,#f0eee9);
    border:1px solid #e5dfd4;
    border-top:0;
    border-radius:0 0 8px 8px;
    overflow:hidden;
    box-shadow:0 6px 16px rgba(43,34,20,.05);
    margin-bottom:14px;
}
.mfd-nav a{
    position:relative;
    min-width:138px;
    padding:13px 26px;
    text-align:center;
    color:var(--mfd-navy);
    text-decoration:none!important;
    text-transform:uppercase;
    font-weight:900;
    letter-spacing:.02em;
    font-size:.88rem;
    transition:.16s ease;
}
.mfd-nav a:not(:last-child)::after{
    content:"";
    position:absolute;
    right:0;
    top:25%;
    height:50%;
    width:1px;
    background:#ddd7cc;
}
.mfd-nav a:hover{
    background:#f8f1e5;
    color:var(--mfd-red);
}
.mfd-nav a.is-active{
    color:#fff;
    background:linear-gradient(180deg,#ff2633,#e80e1d);
    border-radius:7px;
    margin:0;
}
.mfd-nav a.is-active::after{display:none}

/* společné karty */
.mfd-standings{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    padding:0 10px;
    margin:0 0 12px;
}
.mfd-card,
.mfd-panel{
    background:rgba(255,255,255,.93);
    border:1px solid #e7d7bd;
    border-radius:9px;
    box-shadow:0 5px 18px rgba(78,54,22,.08);
    overflow:hidden;
}

/* nadpis poháru */
.mfd-cup-title{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:60px;
    padding:0 15px;
}
.mfd-cup{
    width:38px;
    height:38px;
    fill:#dda112;
    flex:0 0 38px;
    filter:drop-shadow(0 1px 0 rgba(255,255,255,.8));
}
.mfd-cup-title h2{
    margin:0;
    font-size:clamp(1.5rem,2.1vw,2rem);
    line-height:1;
    font-weight:1000;
    text-transform:uppercase;
    letter-spacing:-.02em;
    white-space:nowrap;
}
.mfd-card--big .mfd-cup-title h2{color:var(--mfd-navy)}
.mfd-card--small .mfd-cup-title h2{color:var(--mfd-red)}
.mfd-cup-title__line{
    height:1px;
    flex:1;
    margin-left:4px;
    background:linear-gradient(90deg,#ddb76d,transparent);
}

/* tabulky */
.mfd-table-wrap,
.mfd-fixtures-table-wrap{
    width:100%;
    overflow-x:auto;
}
.mfd-table{
    width:100%;
    border-collapse:collapse;
    table-layout:auto;
}
.mfd-table--standings{
    min-width:570px;
}
.mfd-table th{
    padding:9px 10px;
    text-align:center;
    color:#fff;
    font-weight:900;
    font-size:.90rem;
    white-space:nowrap;
}
.mfd-table th:nth-child(2){text-align:left}
.mfd-card--big .mfd-table th{
    background:linear-gradient(180deg,#075081,#063c69);
}
.mfd-card--small .mfd-table th{
    background:linear-gradient(180deg,#b31119,#8f0710);
}
.mfd-table td{
    padding:8px 10px;
    text-align:center;
    border-bottom:1px solid #e8dfd1;
    color:#0b3158;
    font-size:1rem;
    white-space:nowrap;
}
.mfd-table tbody tr:nth-child(even):not(.mfd-place-1):not(.mfd-place-2):not(.mfd-place-3){
    background:#fbfaf7;
}
.mfd-table tbody tr:last-child td{border-bottom:0}
.mfd-team{
    text-align:left!important;
    font-weight:800;
}
.mfd-points{font-weight:1000}
.mfd-rank span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:26px;
    height:26px;
    padding:0 6px;
    border-radius:50%;
    font-weight:1000;
}
.mfd-place-1{
    background:linear-gradient(90deg,#fff1b9,#fff8dc 68%,#fff)!important;
}
.mfd-place-2{
    background:linear-gradient(90deg,#e8edf2,#f7f9fb 68%,#fff)!important;
}
.mfd-place-3{
    background:linear-gradient(90deg,#f1d2b1,#fbebdb 68%,#fff)!important;
}
.mfd-place-1 .mfd-rank span{
    color:#fff;background:#d7a52c;box-shadow:inset 0 0 0 2px #f9df86;
}
.mfd-place-2 .mfd-rank span{
    color:#fff;background:#aeb8c4;box-shadow:inset 0 0 0 2px #dbe0e6;
}
.mfd-place-3 .mfd-rank span{
    color:#fff;background:#c77b31;box-shadow:inset 0 0 0 2px #eab982;
}

/* hlavní sekční nadpis */
.mfd-section-heading{
    display:flex;
    align-items:center;
    gap:12px;
    padding:13px 16px 9px;
    background:#fff;
}
.mfd-section-heading__icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--mfd-red-bright);
    font-size:1.7rem;
    line-height:1;
}
.mfd-section-heading h2{
    margin:0;
    color:var(--mfd-navy-dark);
    font-size:clamp(1.45rem,2vw,2rem);
    font-weight:1000;
    text-transform:uppercase;
    letter-spacing:-.02em;
}

/* nejbližší zápasy přesně jako v návrhu */
.mfd-next{
    margin:0 10px 14px;
}
.mfd-fixtures-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    min-width:760px;
    table-layout:fixed;
}
.mfd-fixtures-table th{
    padding:8px 10px;
    background:linear-gradient(180deg,#b30d17,#930810);
    color:#fff;
    text-align:center;
    font-size:.90rem;
    font-weight:900;
    white-space:nowrap;
}
.mfd-fixtures-table th:first-child{border-radius:6px 0 0 0}
.mfd-fixtures-table th:last-child{border-radius:0 6px 0 0}
.mfd-fixtures-table td{
    padding:8px 12px;
    border-right:1px solid #eee2cf;
    border-bottom:1px solid #e8dcc9;
    color:#0b3158;
    font-size:1rem;
    background:#fff;
    vertical-align:middle;
}
.mfd-fixtures-table tbody tr:nth-child(even) td:not(.mfd-fixtures-date):not(.mfd-fixtures-service){
    background:#fbfaf7;
}
.mfd-fixtures-date{
    width:150px;
    text-align:center;
    font-weight:900;
    color:#3f2b0d!important;
    background:linear-gradient(180deg,#e1bf78,#cfaa5c)!important;
}
.mfd-fixtures-time{
    width:100px;
    text-align:center;
    color:#285585!important;
    font-weight:800;
    background:#f3f6f8!important;
}
.mfd-fixtures-home{
    text-align:right;
    font-weight:800;
}
.mfd-fixtures-away{
    text-align:left;
    font-weight:800;
}
.mfd-fixtures-home::after{
    content:"—";
    float:right;
    margin-left:20px;
    color:#6d6d6d;
}
.mfd-fixtures-service{
    width:240px;
    text-align:center;
    background:linear-gradient(180deg,#fbf5ea,#f3eadc)!important;
    border-right:0!important;
}
.mfd-fixtures-service span{
    display:block;
    margin-bottom:3px;
    color:#8c5d16;
    text-transform:uppercase;
    font-size:.80rem;
    font-weight:900;
    letter-spacing:.08em;
}
.mfd-fixtures-service strong{
    display:block;
    color:#0b3158;
    line-height:1.35;
    font-size:.95rem;
}

/* rozlosování */
.mfd-page{
    margin:0 10px 14px;
}
.mfd-schedule-list{
    display:grid;
    gap:15px;
    padding:5px 14px 16px;
}
.mfd-schedule-card{
    border:1px solid #e4d3b8;
    border-radius:8px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 3px 12px rgba(84,59,24,.05);
}
.mfd-schedule-card__date{
    padding:10px 15px;
    text-align:center;
    background:linear-gradient(180deg,#f7efe4,#efe2cf);
    color:#7a4410;
    font-size:.92rem;
    font-weight:1000;
    letter-spacing:.04em;
}
.mfd-fixtures-table--schedule{
    min-width:680px;
}
.mfd-fixtures-table--schedule th:first-child{width:100px}
.mfd-fixtures-table--schedule .mfd-fixtures-service{width:250px}

/* jednotlivci */
.mfd-individuals{
    margin:0 10px 14px;
}
.mfd-individuals-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    padding:4px 14px 15px;
}
.mfd-card--individuals{
    box-shadow:none;
}
.mfd-individuals-title{
    padding:12px 15px;
    color:var(--mfd-navy);
    font-weight:1000;
    font-size:1.05rem;
    text-transform:uppercase;
    border-bottom:1px solid #e6d7c1;
}
.mfd-table--individuals{min-width:520px}
.mfd-table--individuals th{background:linear-gradient(180deg,#075081,#063c69)}

.mfd-empty{
    padding:22px!important;
    text-align:center!important;
    color:#777;
}
.mfd-empty--block{padding:30px!important}

/* responzivní */
@media(max-width:991.98px){
    .mfd-standings,
    .mfd-individuals-grid{
        grid-template-columns:1fr;
    }
    .mfd-nav a{
        min-width:0;
        flex:1 1 25%;
        padding:12px 12px;
        font-size:.78rem;
    }
    .mfd-hero__ribbon-cover{
        left:10%;
        width:38%;
    }
}

@media(max-width:640px){
    .mfd{
        margin-left:-1px;
        margin-right:-1px;
    }
    .mfd-hero{
        overflow:hidden;
    }
    .mfd-hero img{
        width:165%;
        max-width:none;
        margin-left:-32%;
        aspect-ratio:auto;
    }
    .mfd-hero__ribbon-cover{
        left:0;
        width:54%;
        height:38%;
    }
    .mfd-nav{
        display:grid;
        grid-template-columns:1fr 1fr;
        border-radius:0 0 7px 7px;
    }
    .mfd-nav a{
        padding:11px 7px;
        font-size:.72rem;
        border-bottom:1px solid #e1dbd1;
    }
    .mfd-nav a:not(:last-child)::after{display:none}
    .mfd-standings{
        padding:0 5px;
        gap:10px;
    }
    .mfd-cup-title{min-height:54px}
    .mfd-cup-title h2{font-size:1.45rem}
    .mfd-cup{width:32px;height:32px;flex-basis:32px}
    .mfd-next,.mfd-page,.mfd-individuals{margin-left:5px;margin-right:5px}
    .mfd-section-heading{padding:11px 12px 7px}
    .mfd-section-heading h2{font-size:1.35rem}
}



/* =====================================================
   Mobilní optimalizace 1.0.10
   ===================================================== */
.mfd-next-mobile{display:none;}

@media(max-width:640px){
    /* Hero: na mobilu zobrazit celý obrázek bez ořezu */
    .mfd-hero img{
        width:100%;
        max-width:100%;
        height:auto;
        margin-left:0;
        aspect-ratio:auto;
        object-fit:contain;
    }
    .mfd-hero__ribbon-cover{
        left:14%;
        bottom:0;
        width:30%;
        height:36%;
    }

    /* Pořadí: na mobilu jen důležité údaje – pořadí, družstvo a body */
    .mfd-table--standings{
        min-width:0;
        table-layout:fixed;
    }
    .mfd-table--standings th,
    .mfd-table--standings td{
        padding:8px 6px;
        font-size:.88rem;
    }
    .mfd-table--standings th:nth-child(1),
    .mfd-table--standings td:nth-child(1){width:48px;}
    .mfd-table--standings th:nth-child(2),
    .mfd-table--standings td:nth-child(2){width:auto;}
    .mfd-table--standings th:nth-child(8),
    .mfd-table--standings td:nth-child(8){width:58px;}
    .mfd-table--standings th:nth-child(3),
    .mfd-table--standings td:nth-child(3),
    .mfd-table--standings th:nth-child(4),
    .mfd-table--standings td:nth-child(4),
    .mfd-table--standings th:nth-child(5),
    .mfd-table--standings td:nth-child(5),
    .mfd-table--standings th:nth-child(6),
    .mfd-table--standings td:nth-child(6),
    .mfd-table--standings th:nth-child(7),
    .mfd-table--standings td:nth-child(7){display:none;}
    .mfd-table--standings .mfd-team{
        white-space:normal;
        line-height:1.2;
        overflow-wrap:anywhere;
    }
    .mfd-rank span{
        min-width:28px;
        height:28px;
        padding:0 5px;
    }

    /* Nejbližší zápasy: místo široké tabulky kompaktní karty pod sebou */
    .mfd-next > .mfd-fixtures-table-wrap{display:none;}
    .mfd-next-mobile{display:block;}
    .mfd-next-mobile__date{
        padding:10px 12px;
        text-align:center;
        font-weight:900;
        color:#3f2b0d;
        background:linear-gradient(180deg,#e1bf78,#cfaa5c);
        border-top:1px solid #d5b36c;
    }
    .mfd-next-mobile__match{
        display:grid;
        grid-template-columns:64px minmax(0,1fr);
        align-items:stretch;
        border-bottom:1px solid #e8dcc9;
        background:#fff;
    }
    .mfd-next-mobile__match:nth-child(even){background:#fbfaf7;}
    .mfd-next-mobile__time{
        display:flex;
        align-items:center;
        justify-content:center;
        padding:10px 6px;
        color:#285585;
        background:#f3f6f8;
        font-weight:900;
        border-right:1px solid #e8dcc9;
    }
    .mfd-next-mobile__teams{
        display:flex;
        flex-wrap:wrap;
        align-items:center;
        gap:4px 7px;
        padding:10px 11px;
        line-height:1.22;
        min-width:0;
    }
    .mfd-next-mobile__teams strong{
        font-size:.91rem;
        overflow-wrap:anywhere;
    }
    .mfd-next-mobile__dash{color:#777;font-weight:700;}
    .mfd-next-mobile__service{
        padding:9px 12px 11px;
        text-align:center;
        background:linear-gradient(180deg,#fbf5ea,#f3eadc);
    }
    .mfd-next-mobile__service span{
        margin-right:7px;
        color:#8c5d16;
        text-transform:uppercase;
        font-size:.72rem;
        font-weight:900;
        letter-spacing:.06em;
    }
    .mfd-next-mobile__service strong{font-size:.88rem;}
}


/* 1.0.10 – finální mobilní přepsání */
@media (max-width:640px){
    .mfd-hero{background:#111;}
    .mfd-hero img{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        height:auto !important;
        margin:0 !important;
        aspect-ratio:auto !important;
        object-fit:contain !important;
    }

    .mfd-table-wrap{overflow-x:hidden !important;}
    .mfd-table--standings{
        width:100% !important;
        min-width:0 !important;
        table-layout:fixed !important;
    }
    .mfd-table--standings th,
    .mfd-table--standings td{
        padding:7px 4px !important;
        font-size:.82rem !important;
    }
    .mfd-table--standings th:nth-child(1),
    .mfd-table--standings td:nth-child(1){width:44px !important;}
    .mfd-table--standings th:nth-child(2),
    .mfd-table--standings td:nth-child(2){width:auto !important;}
    .mfd-table--standings th:nth-child(8),
    .mfd-table--standings td:nth-child(8){width:48px !important;}
    .mfd-table--standings th:nth-child(n+3):nth-child(-n+7),
    .mfd-table--standings td:nth-child(n+3):nth-child(-n+7){display:none !important;}
    .mfd-table--standings .mfd-team{
        white-space:normal !important;
        overflow-wrap:normal !important;
        word-break:normal !important;
        line-height:1.15 !important;
        font-size:.86rem !important;
    }
    .mfd-rank span{
        min-width:27px !important;
        height:27px !important;
        padding:0 4px !important;
    }
    .mfd-cup-title{min-height:48px !important;padding:0 10px !important;gap:8px !important;}
    .mfd-cup-title h2{font-size:1.18rem !important;}
    .mfd-cup{width:28px !important;height:28px !important;flex-basis:28px !important;}

    .mfd-next .mfd-fixtures-table-wrap{display:none !important;}
    .mfd-next-mobile{display:block !important;}
    .mfd-next-mobile__date{
        padding:8px 10px !important;
        font-size:.88rem !important;
        text-align:left !important;
    }
    .mfd-next-mobile__match{
        display:grid !important;
        grid-template-columns:54px minmax(0,1fr) !important;
    }
    .mfd-next-mobile__time{padding:9px 4px !important;font-size:.88rem !important;}
    .mfd-next-mobile__teams{
        display:flex !important;
        flex-wrap:nowrap !important;
        gap:5px !important;
        padding:9px 8px !important;
        min-width:0 !important;
    }
    .mfd-next-mobile__teams strong{
        min-width:0 !important;
        font-size:.80rem !important;
        line-height:1.15 !important;
        overflow-wrap:anywhere !important;
    }
    .mfd-next-mobile__dash{flex:0 0 auto !important;}
    .mfd-next-mobile__service{
        display:flex !important;
        align-items:center !important;
        gap:7px !important;
        padding:8px 10px !important;
        text-align:left !important;
    }
    .mfd-next-mobile__service span{margin:0 !important;flex:0 0 auto !important;}
    .mfd-next-mobile__service strong{font-size:.80rem !important;line-height:1.2 !important;}
}


/* =====================================================
   1.0.11 – mobilní Rozlosování bez horizontálního posuvu
   ===================================================== */
.mfd-schedule-mobile{display:none;}

@media (max-width:640px){
    .mfd-schedule-list{
        gap:12px !important;
        padding:4px 8px 12px !important;
    }
    .mfd-schedule-card__date{
        padding:10px 8px !important;
        font-size:.88rem !important;
    }
    .mfd-schedule-card > .mfd-fixtures-table-wrap{
        display:none !important;
    }
    .mfd-schedule-mobile{
        display:block !important;
        width:100%;
    }
    .mfd-schedule-mobile__match{
        display:grid;
        grid-template-columns:58px minmax(0,1fr);
        align-items:stretch;
        border-bottom:1px solid #e8dcc9;
        background:#fff;
    }
    .mfd-schedule-mobile__match:nth-child(even){
        background:#fbfaf7;
    }
    .mfd-schedule-mobile__time{
        display:flex;
        align-items:center;
        justify-content:center;
        padding:11px 4px;
        color:#285585;
        background:#f3f6f8;
        border-right:1px solid #e8dcc9;
        font-size:.90rem;
        font-weight:900;
    }
    .mfd-schedule-mobile__teams{
        display:flex;
        align-items:center;
        justify-content:center;
        flex-wrap:wrap;
        gap:3px 6px;
        min-width:0;
        padding:10px 7px;
        text-align:center;
        line-height:1.18;
    }
    .mfd-schedule-mobile__teams strong{
        min-width:0;
        font-size:.84rem;
        overflow-wrap:anywhere;
    }
    .mfd-schedule-mobile__dash{
        flex:0 0 auto;
        color:#777;
        font-weight:700;
    }
    .mfd-schedule-mobile__service{
        display:flex;
        align-items:center;
        justify-content:center;
        flex-wrap:wrap;
        gap:4px 7px;
        padding:9px 8px 10px;
        background:linear-gradient(180deg,#fbf5ea,#f3eadc);
        text-align:center;
    }
    .mfd-schedule-mobile__service span{
        color:#8c5d16;
        text-transform:uppercase;
        font-size:.70rem;
        font-weight:900;
        letter-spacing:.06em;
    }
    .mfd-schedule-mobile__service strong{
        color:#0b3158;
        font-size:.80rem;
        line-height:1.2;
    }
}

/* =====================================================
   1.0.12 – jednotlivci muži/ženy + výkony po družstvech
   ===================================================== */
.mfd-individuals-grid--top,
.mfd-individuals-grid--all{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
.mfd-card--women .mfd-individuals-title{
    color:var(--mfd-red);
}
.mfd-card--women .mfd-table--individuals th{
    background:linear-gradient(180deg,#b31119,#8f0710);
}
.mfd-count{
    color:#7b8792;
    font-size:.82em;
    font-weight:800;
}
.mfd-empty--compact{
    min-height:110px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px!important;
    font-size:.92rem;
}

/* Výkony + průměry */
.mfd-performance-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
    padding:4px 14px 16px;
}
.mfd-performance-card{
    overflow:hidden;
    border:1px solid #e1cfb3;
    border-radius:9px;
    background:#fff;
    box-shadow:0 4px 16px rgba(78,54,22,.07);
}
.mfd-performance-card__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    min-height:76px;
    padding:12px 15px;
    color:#fff;
    background:
        linear-gradient(110deg,rgba(255,255,255,.06),transparent 45%),
        linear-gradient(180deg,var(--mfd-navy),var(--mfd-navy-dark));
}
.mfd-performance-card:nth-child(even) .mfd-performance-card__head{
    background:
        linear-gradient(110deg,rgba(255,255,255,.06),transparent 45%),
        linear-gradient(180deg,#a90d18,#850711);
}
.mfd-performance-card__eyebrow{
    display:block;
    margin-bottom:2px;
    color:#e8c981;
    font-size:.68rem;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.11em;
}
.mfd-performance-card__head h3{
    margin:0;
    color:#fff;
    font-size:1.16rem;
    font-weight:1000;
    line-height:1.15;
    text-transform:uppercase;
}
.mfd-performance-card__stats{
    display:flex;
    gap:7px;
    flex:0 0 auto;
}
.mfd-performance-card__stats > div{
    min-width:82px;
    padding:6px 8px;
    text-align:center;
    border:1px solid rgba(255,255,255,.18);
    border-radius:6px;
    background:rgba(255,255,255,.09);
}
.mfd-performance-card__stats span{
    display:block;
    margin-bottom:1px;
    color:#f2dfb2;
    font-size:.62rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.mfd-performance-card__stats strong{
    display:block;
    color:#fff;
    font-size:1rem;
    font-weight:1000;
}
.mfd-table--performance{
    min-width:500px;
}
.mfd-table--performance th{
    background:#f1e6d4;
    color:#75420d;
    border-bottom:1px solid #d9c5a5;
}
.mfd-table--performance th:first-child{
    text-align:left;
}
.mfd-table--performance td{
    font-size:.94rem;
}
.mfd-performance-value{
    color:var(--mfd-red)!important;
    font-weight:1000;
}

@media(max-width:991.98px){
    .mfd-individuals-grid--top,
    .mfd-individuals-grid--all,
    .mfd-performance-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    .mfd-individuals-grid--top,
    .mfd-individuals-grid--all{
        padding:4px 8px 12px;
        gap:10px;
    }
    .mfd-individuals-title{
        padding:10px 11px;
        font-size:.96rem;
    }
    .mfd-table--individuals{
        min-width:485px;
    }
    .mfd-performance-grid{
        padding:4px 8px 12px;
        gap:11px;
    }
    .mfd-performance-card__head{
        align-items:flex-start;
        flex-direction:column;
        min-height:0;
        padding:11px 12px;
    }
    .mfd-performance-card__stats{
        width:100%;
    }
    .mfd-performance-card__stats > div{
        flex:1 1 50%;
    }
    .mfd-table--performance{
        min-width:460px;
    }
}


/* v1.0.15 – družstva + zachování prázdných hráčských pozic */
.mfd-table--performance tbody tr{
    min-height:42px;
}
.mfd-table--performance td{
    height:42px;
}
.mfd-performance-slot--empty td{
    background:#fbfaf8;
    border-bottom-color:#eee5d8;
}
.mfd-performance-slot--empty td:first-child{
    position:relative;
}
.mfd-performance-slot--empty td:first-child::after{
    content:"";
    display:block;
    width:72px;
    max-width:45%;
    height:1px;
    margin:0 auto;
    background:#e6ded2;
}


/* v1.0.16 – přesné bloky Google Sheets Výkony + průměry */
.mfd-performance-cup{
    grid-column:1 / -1;
    margin:14px 0 8px;
}
.mfd-performance-cup__title{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 14px;
    border-bottom:2px solid #e6c97a;
}
.mfd-performance-cup__title h3{
    margin:0;
    color:#082f55;
    font-size:1.35rem;
    font-weight:900;
    text-transform:uppercase;
}
.mfd-performance-card--big .mfd-performance-card__head{background:#0b4f78}
.mfd-performance-card--small .mfd-performance-card__head{background:#b30b18}
.mfd-table--performance th:nth-child(1){width:25%}
.mfd-table--performance th:nth-child(2){width:48%}
.mfd-table--performance th:nth-child(3){width:17%}
.mfd-table--performance th:nth-child(4){width:10%}
.mfd-performance-badges{
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    align-items:center;
}
.mfd-performance-badge{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:3px 7px;
    border:1px solid #ead8b9;
    border-radius:999px;
    background:#fffaf0;
    white-space:nowrap;
}
.mfd-performance-badge small{
    color:#8a5a16;
    font-size:.72rem;
    font-weight:800;
}
.mfd-performance-badge strong{
    color:#082f55;
    font-size:.84rem;
    font-weight:900;
}
.mfd-muted{color:#9aa5ae}
.mfd-performance-slot--empty td{height:40px}
.mfd-performance-slot--empty td:first-child::after{
    width:55%;
    max-width:95px;
}
@media(max-width:760px){
    .mfd-performance-grid{grid-template-columns:1fr}
    .mfd-table--performance{min-width:650px}
    .mfd-performance-cup__title h3{font-size:1.12rem}
}


/* v1.0.17 – čistší oddělení družstev */
.mfd-performance-card__head{
    min-height:86px;
}
.mfd-performance-card__stats:empty{
    display:none;
}
.mfd-table--performance tbody tr:last-child td{
    border-bottom:0;
}


/* v1.0.18 – výkon bez čísla kola; soupeř je v tooltipu */
.mfd-performance-badge{
    padding:4px 9px;
}
.mfd-performance-badge small{
    display:none !important;
}
