.match-subtabs{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:20px 0;
}

.match-subtab{
    border:0;
    background:#f1f3f5;
    color:#222;
    padding:10px 16px;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
}

.match-subtab.active{
    background:#ff2b63;
    color:#fff;
}

.match-tab-content{
    margin-top:10px;
}

.tab-pane{
    display:none;
}

.tab-pane.active{
    display:block;
}

.match-box{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:18px;
    margin-bottom:18px;
}

.event{
    padding:10px 0;
    border-bottom:1px solid #eee;
}

.event:last-child{
    border-bottom:0;
}

/* summary / predictions */

.summary-grid,
.prediction-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:14px;
}

.summary-card,
.prediction-card{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:14px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.summary-label,
.prediction-label{
    font-size:12px;
    font-weight:700;
    color:#6b7280;
    text-transform:uppercase;
}

.summary-value,
.prediction-value{
    font-size:16px;
    font-weight:700;
    color:#111827;
}

.latest-event{
    font-size:15px;
    line-height:1.6;
}

.prediction-note{
    margin-top:16px;
    padding:12px 14px;
    background:#fff4f7;
    border:1px solid #ffd3df;
    border-radius:12px;
    color:#b4234d;
    font-weight:600;
}

/* stats */

.stats-compare-head,
.stats-compare-row{
    display:grid;
    grid-template-columns:80px 1fr 80px;
    gap:12px;
    align-items:center;
}

.stats-compare-head{
    font-weight:700;
    padding-bottom:10px;
    margin-bottom:10px;
    border-bottom:1px solid #e5e7eb;
}

.stats-compare-row{
    padding:10px 0;
    border-bottom:1px solid #f1f5f9;
}

.stats-compare-row:last-child{
    border-bottom:0;
}

.stats-home{
    text-align:left;
    font-weight:700;
}

.stats-type{
    text-align:center;
    color:#374151;
}

.stats-away{
    text-align:right;
    font-weight:700;
}

/* lineups */

.lineup-pitch-wrap{
    margin-bottom:18px;
}

.pitch-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    background:#0b1016;
    color:#fff;
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
    padding:10px 12px;
    border-radius:10px 10px 0 0;
}

.pitch-center{
    opacity:.95;
}

.pitch-team-right{
    text-align:right;
}

.lineup-pitch{
    position:relative;
    min-height:560px;
    border-radius:0 0 14px 14px;
    overflow:hidden;
    background:linear-gradient(180deg,#4caf50 0%, #46a44c 100%);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

.pitch-mark{
    position:absolute;
    pointer-events:none;
}

.pitch-border{
    inset:20px;
    border:2px solid rgba(255,255,255,.35);
    border-radius:6px;
}

.pitch-half-vertical{
    top:20px;
    bottom:20px;
    left:50%;
    width:2px;
    transform:translateX(-50%);
    background:rgba(255,255,255,.35);
}

.pitch-circle{
    left:50%;
    top:50%;
    width:130px;
    height:130px;
    transform:translate(-50%,-50%);
    border:2px solid rgba(255,255,255,.35);
    border-radius:50%;
}

.pitch-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:rgba(255,255,255,.55);
    top:50%;
}

.pitch-dot-center{
    left:50%;
    transform:translate(-50%,-50%);
}

.pitch-dot-left{
    left:115px;
    transform:translateY(-50%);
}

.pitch-dot-right{
    right:115px;
    transform:translateY(-50%);
}

.pitch-box-vertical{
    top:50%;
    width:95px;
    height:280px;
    transform:translateY(-50%);
    border:2px solid rgba(255,255,255,.35);
}

.pitch-box-left{
    left:20px;
    border-left:none;
}

.pitch-box-right{
    right:20px;
    border-right:none;
}

.pitch-six-vertical{
    top:50%;
    width:40px;
    height:130px;
    transform:translateY(-50%);
    border:2px solid rgba(255,255,255,.35);
}

.pitch-six-left{
    left:20px;
    border-left:none;
}

.pitch-six-right{
    right:20px;
    border-right:none;
}

.pitch-goal-vertical{
    top:50%;
    width:16px;
    height:70px;
    transform:translateY(-50%);
    border:2px solid rgba(255,255,255,.28);
}

.pitch-goal-left{
    left:20px;
    border-left:none;
}

.pitch-goal-right{
    right:20px;
    border-right:none;
}

.pitch-player{
    position:absolute;
    transform:translate(-50%,-50%);
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    z-index:2;
    width:100px;
}

.player-rating{
    position:absolute;
    top:-16px;
    right:18px;
    min-width:30px;
    height:18px;
    padding:0 6px;
    border-radius:6px;
    color:#fff;
    font-size:11px;
    font-weight:800;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 8px rgba(0,0,0,.25);
    z-index:4;
}

.player-rating.rating-good{
    background:#65a30d;
}

.player-rating.rating-mid{
    background:#1f2937;
}

.player-rating.rating-bad{
    background:#b45309;
}

.shirt-badge-wrap{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.shirt-badge{
    width:40px;
    height:40px;
    border-radius:12px 12px 8px 8px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-weight:800;
    font-size:14px;
    box-shadow:0 2px 8px rgba(0,0,0,.25);
    margin-bottom:5px;
}

.home-player .shirt-badge{
    background:#4f8cff;
}

.away-player .shirt-badge{
    background:#ff4b4b;
}

.player-mini-name{
    font-size:12px;
    line-height:1.15;
    color:#fff;
    font-weight:700;
    text-shadow:0 1px 2px rgba(0,0,0,.45);
    max-width:100px;
    white-space:normal;
}

.player-icons{
    position:absolute;
    display:flex;
    flex-direction:column;
    gap:3px;
    z-index:5;
}

.player-icons-right{
    left:100%;
    margin-left:4px;
    top:50%;
    transform:translateY(-50%);
}

.player-icons-left{
    right:100%;
    margin-right:4px;
    top:50%;
    transform:translateY(-50%);
}

.player-icon{
    min-width:16px;
    height:16px;
    border-radius:4px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:10px;
    font-weight:800;
    box-shadow:0 1px 4px rgba(0,0,0,.25);
    line-height:1;
}

.icon-goal{
    background:#ffffff;
    color:#111827;
    padding:0 4px;
    min-width:20px;
}

.icon-sub-in{
    background:#16a34a;
    color:#fff;
}

.icon-sub-out{
    background:#dc2626;
    color:#fff;
}

.icon-yellow{
    width:12px;
    min-width:12px;
    height:16px;
    background:#facc15;
    border-radius:2px;
}

.icon-red{
    width:12px;
    min-width:12px;
    height:16px;
    background:#dc2626;
    border-radius:2px;
}

.lineup-lists{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-top:18px;
}

.lineup-col{
    background:#11161d;
    border-radius:14px;
    padding:14px;
    color:#e5edf7;
}

.lineup-col-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:12px;
    padding-bottom:10px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.lineup-section-title{
    margin:14px 0 8px;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
    color:#9fb0c6;
}

.lineup-row{
    display:grid;
    grid-template-columns:34px 1fr 32px;
    gap:10px;
    align-items:center;
    padding:8px 0;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.lineup-row:last-child{
    border-bottom:none;
}

.ln-num{
    font-weight:800;
    color:#fff;
}

.ln-name{
    font-weight:600;
}

.ln-pos{
    text-align:right;
    color:#8ea0b8;
    font-size:12px;
}

.lineup-sub{
    opacity:.86;
}

.lineup-empty{
    color:#93a4bb;
    font-size:13px;
}

@media (max-width: 900px){
    .lineup-lists{
        grid-template-columns:1fr;
    }

    .lineup-pitch{
        min-height:440px;
    }

    .pitch-player{
        width:72px;
    }

    .player-rating{
        top:-14px;
        right:10px;
        min-width:26px;
        height:16px;
        font-size:10px;
        padding:0 4px;
    }

    .shirt-badge{
        width:34px;
        height:34px;
        font-size:12px;
    }

    .player-mini-name{
        font-size:10px;
        max-width:72px;
    }

    .pitch-box-vertical{
        height:220px;
    }

    .pitch-six-vertical{
        height:110px;
    }

    .pitch-dot-left{
        left:90px;
    }

    .pitch-dot-right{
        right:90px;
    }
}

.formation-note{
    opacity:.72;
    font-size:11px;
    font-weight:600;
}

.icon-assist{
    background:#e5e7eb;
    color:#111827;
    padding:0 4px;
    min-width:20px;
}

.ln-main{
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
}

.ln-events{
    display:flex;
    flex-wrap:wrap;
    gap:4px;
}

.ln-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:18px;
    padding:1px 6px;
    border-radius:5px;
    font-size:10px;
    font-weight:800;
    line-height:1;
}

.ln-goal{
    background:#ffffff;
    color:#111827;
}

.ln-assist{
    background:#dbeafe;
    color:#1d4ed8;
}

.ln-sub-in{
    background:#16a34a;
    color:#fff;
}

.ln-sub-out{
    background:#dc2626;
    color:#fff;
}

.ln-yellow{
    background:#facc15;
    color:#111827;
}

.ln-red{
    background:#dc2626;
    color:#fff;
}

.player-photo-wrap {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.player-photo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    background: #222;
}

.player-photo.placeholder {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #444;
}

/* важно */
.shirt-badge-wrap {
    position: relative;
}

@media (max-width: 768px){

    .lineup-pitch-wrap{
        overflow:hidden;
        position:relative;
        min-height:620px;
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .lineup-pitch{
        transform: rotate(90deg) translateY(5px);
        transform-origin: center center;

        width: 660px;
        height: 485px;

        margin: 0;
        flex: 0 0 auto;
    }

    .pitch-player{
        transform: translate(-50%, -50%) rotate(-90deg);
        width: 70px;
    }

    .player-photo-wrap{
        top: -18px;
    }

    .player-photo{
        width: 26px;
        height: 26px;
    }

    .player-photo.placeholder{
        width: 26px;
        height: 26px;
    }

    .shirt-badge{
        width: 28px;
        height: 28px;
        font-size: 11px;
        line-height: 28px;
    }

    .player-mini-name{
        font-size: 9px;
        max-width: 60px;
    }

    .player-rating{
        top:-12px;
        right:6px;
        font-size:9px;
        min-width:22px;
        height:14px;
    }

    .player-icons{
        transform: scale(0.8);
    }

    .pitch-head{
        display:none;
    }
}

.match-summary-header{
    margin-bottom:18px;
}

.summary-top{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:20px;
    margin-bottom:18px;
}

.summary-team{
    display:flex;
    align-items:center;
    gap:10px;
}

.summary-team-right{
    justify-content:flex-end;
    text-align:right;
}

.summary-team-logo{
    width:42px;
    height:42px;
    object-fit:contain;
    background:#fff;
    border-radius:50%;
    padding:5px;
    border:1px solid #e5e7eb;
}

.summary-team-name{
    font-weight:800;
    font-size:16px;
    color:#111827;
}

.summary-center-main{
    text-align:center;
}

.summary-status{
    font-size:12px;
    font-weight:800;
    color:#6b7280;
    text-transform:uppercase;
    margin-bottom:6px;
}

.summary-scoreline{
    font-size:26px;
    font-weight:900;
    color:#111827;
    line-height:1.1;
}

.summary-score-sep{
    margin:0 8px;
}

.summary-venue{
    margin-top:6px;
    font-size:13px;
    color:#6b7280;
}

@media (max-width: 768px){
    .summary-top{
        grid-template-columns:1fr;
        text-align:center;
    }

    .summary-team,
    .summary-team-right{
        justify-content:center;
        text-align:center;
    }

    .summary-team-name{
        font-size:16px;
    }

    .summary-scoreline{
        font-size:24px;
    }
}

.is-live-blink {
    color: #ff2b5f;
    font-weight: 800;
    animation: liveBlink 1s infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.pred-clean-box {
    background: #111111;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    padding: 18px;
    color: #ffffff;
}

.pred-clean-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pred-clean-head h3 {
    margin: 0;
    font-size: 24px;
    color: #ffffff;
}

.pred-clean-market {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 999px;
    padding: 6px 10px;
}

.pred-clean-main {
    background: #171717;
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.pred-clean-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #bfbfbf;
    margin-bottom: 8px;
}

.pred-clean-tip {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
}

.pred-clean-confidence {
    margin-top: 10px;
    font-size: 14px;
    color: #d6d6d6;
}

.pred-clean-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.pred-clean-card {
    background: #171717;
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    padding: 14px;
}

.pred-clean-card-title {
    font-size: 12px;
    text-transform: uppercase;
    color: #bfbfbf;
    margin-bottom: 8px;
}

.pred-clean-card-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.pred-clean-section {
    background: #171717;
    border: 1px solid #2c2c2c;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.pred-clean-section h4 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #ffffff;
}

.pred-clean-probs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pred-clean-prob {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #101010;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #e5e5e5;
}

.pred-clean-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pred-clean-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #101010;
    border: 1px solid #2a2a2a;
    color: #f0f0f0;
    font-size: 13px;
}

.pred-clean-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pred-clean-list {
    display: grid;
    gap: 10px;
}

.pred-clean-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #101010;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
}

.pred-clean-row span {
    color: #bfbfbf;
    font-size: 14px;
}

.pred-clean-row strong {
    color: #ffffff;
    font-size: 14px;
    text-align: right;
}

.pred-clean-analysis {
    display: grid;
    gap: 10px;
}

.pred-clean-analysis-item {
    background: #101010;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 12px;
    color: #ededed;
    line-height: 1.5;
}

.pred-clean-empty {
    color: #bfbfbf;
}

@media (max-width: 900px) {
    .pred-clean-grid,
    .pred-clean-probs,
    .pred-clean-two {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .pred-clean-grid,
    .pred-clean-probs,
    .pred-clean-two {
        grid-template-columns: 1fr;
    }

    .pred-clean-tip {
        font-size: 24px;
    }

    .pred-clean-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .pred-clean-row strong {
        text-align: left;
    }
}