.sp-template-event-details, .sp-template-event-performance, .sp-template-event-venue, .sp-event-logos, .sp-template-event-logos, .sp-template-event-results { display: none !important; }
    .ckm-event-wraper { display: flex; gap: 30px; max-width: 1300px; margin: 20px auto; padding: 0 20px; align-items: start; color: #333; }
    .event-main-content { flex: 1; min-width: 0; }
    /* Dyskretne okruszki nad wynikiem */
    .ckm-match-breadcrumbs {
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 15px; /* Odstęp od wielkiego czarnego banera */
        color: #888;
    }
    .ckm-match-breadcrumbs a {
        color: #888;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    .ckm-match-breadcrumbs a:hover {
        color: #111; /* Przyciemnienie przy najechaniu */
    }
    .ckm-match-breadcrumbs .sep {
        margin: 0 8px;
        color: #ccc;
        font-weight: 400;
    }
    .ckm-match-breadcrumbs .current-section {
        color: #00a859; /* Laserowa zieleń na końcu */
    }
    .ckm-sidebar-area { width: 340px; flex-shrink: 0; }
    .event-hero-section { background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.95)), url("' . esc_url($hero_bg) . '") no-repeat center center; background-size: cover; padding: 40px 20px; text-align: center; border-bottom: 5px solid #00a859; border-radius: 15px; color: #fff; display: flex; justify-content: space-around; align-items: center; }
    .hero-team img { height: 100px; width: auto; object-fit: contain; }
    .hero-score { font-size: 60px; font-weight: 900; line-height: 1; letter-spacing: -2px; }
    .match-details-bar { background: #fff; margin: -20px 40px 20px; border-radius: 12px; padding: 12px; display: flex; justify-content: space-around; box-shadow: 0 5px 15px rgba(0,0,0,0.1); font-weight: 800; border: 1px solid #eee; text-align: center; font-size: 13px; }
    .event-content-area { background:#fff; padding:25px; border-radius:15px; border:1px solid #eee; margin-bottom: 25px; }
    .match-data-tabs { background: #fff; border-radius: 15px; border: 1px solid #eee; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 30px; }
    .tabs-nav { display: flex; background: #0d2818; border-bottom: 2px solid #00a859; }
    .tab-btn { flex: 1; padding: 15px; border: none; background: none; color: #fff; font-weight: 900; text-transform: uppercase; font-size: 13px; cursor: pointer; transition: 0.3s; opacity: 0.6; }
    .tab-btn.active { opacity: 1; background: #00a859; }
    .tab-content { display: none; }
    .tab-content.active { display: block; }
    .half-label { background: #f4f7f5; padding: 10px 20px; font-size: 11px; font-weight: 900; color: #888; border-bottom: 1px solid #eee; text-transform: uppercase; }
    .timeline-row { position: relative; display: flex; align-items: center; padding: 12px 20px; border-bottom: 1px solid #f9f9f9; }
    .tm-min { width: 50px; font-weight: 900; color: #888; font-size: 15px; flex-shrink:0; }
    .tm-score { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 900; color: #333; background: #fafafa; padding: 2px 10px; border-radius: 12px; border: 1px solid #eee; }
    .lineups-container { padding-top: 20px; }
    
    .lineup-col:last-child { border-right: none; }
    .lineup-team-header { background: #111; color: #fff; padding: 10px 20px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
    .formation-header, .coach-header { background: #fafafa; padding: 8px 20px; font-size: 10px; font-weight: 900; color: #bbb; letter-spacing: 1.5px; border-bottom: 1px solid #eee; text-transform: uppercase; }
    .player-entry { display: flex; align-items: center; padding: 8px 20px; border-bottom: 1px solid #f9f9f9; text-decoration: none !important; color: inherit !important; }
    .p-nr { width: 25px; font-weight: 900; color: #00a859; font-size: 13px; flex-shrink:0; }
    .p-img { width: 36px; height: 36px; border-radius: 50%; background: #f0f0f0; margin: 0 12px; overflow: hidden; border: 1px solid #eee; flex-shrink:0; }
    .p-img img { width: 100%; height: 100%; object-fit: cover; }
    .p-name { font-weight: 800; text-transform: uppercase; font-size: 13px; }
    .sub-label, .staff-label { background: #111; color:#fff; padding: 8px 20px; font-size: 10px; font-weight: 900; border-bottom: 1px solid #eee; text-transform: uppercase; }
    .content-separator { border-top: 1px solid #ddd; margin: 40px 0 20px; position: relative; clear: both; }
    .content-separator span { position: absolute; top: -10px; left: 0; background: #fff; padding-right: 15px; color: #333; font-weight: 900; font-size: 11px; letter-spacing: 2px; }
    .ckm-real-content h4, .ckm-real-content .sp-template-event-performance, .ckm-real-content table.sp-event-performance { display: none !important; visibility: hidden !important; height: 0 !important; }
    .ckm-widget-box { background: #fff; border-radius: 12px; border: 1px solid #eee; padding: 20px; margin-bottom: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.widget-title { border-bottom: 2px solid #00a859; padding-bottom: 10px; margin: 0 0 15px; font-weight: 900; font-size: 14px; letter-spacing: 1px; }

/* Next Match */
.next-match-widget { text-align: center; background: #0d2818; color: #fff; }
.widget-match-row { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 15px; }
.w-team img { height: 60px; width: auto; }
.w-vs { font-weight: 900; color: #00a859; font-size: 20px; }
.w-btn { display: block; background: #00a859; color: #fff; padding: 10px; border-radius: 6px; font-weight: 800; margin-top: 15px; font-size: 12px; }

/* Results */
.res-row { display: flex; align-items: center; padding: 8px 0; border-bottom: 1px solid #f9f9f9; font-size: 12px; transition: 0.2s; }
.res-row:hover { padding-left: 5px; color: #00a859; }
.res-label { width: 22px; height: 22px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; margin-right: 10px; font-size: 10px; }
.res-label.win { background: #00a859; }
.res-label.draw { background: #999; }
.res-label.loss { background: #d63638; }
.res-teams { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 5px; }
.res-score { font-weight: 800; }

/* Table */
.w-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.w-table th { text-align: left; color: #bbb; padding-bottom: 8px; text-transform: uppercase; font-size: 10px; }
.w-table td { padding: 8px 0; border-bottom: 1px solid #f9f9f9; }
.w-row-highlight { background: #f4fdf7; color: #00a859; font-weight: 800; }
.w-row-highlight td { border-left: 3px solid #00a859; padding-left: 8px; }
.w-link-full { display: block; text-align: center; margin-top: 15px; font-size: 11px; font-weight: 800; color: #00a859; }
    


.lineups-container { padding-top: 20px; }
    
    /* MAGIA SIATKI (Wymuszone wyrównanie rzędami) */
    .lineups-grid { display: grid; grid-template-columns: 1fr 1fr; }
    .grid-item { border-bottom: 1px solid transparent; }
    
    /* GOSPODARZE (Lewa Kolumna) */
    .grid-item.home { grid-column: 1; border-right: 1px solid #eee; }
    
    /* GOŚCIE (Prawa Kolumna) */
    .grid-item.away { grid-column: 2; }
    
    /* KOTWICZENIE DO TYCH SAMYCH RZĘDÓW (To załatwia problem wysokości!) */
    .grid-item.head.home,       .grid-item.head.away       { grid-row: 1; }
    .grid-item.coach.home,      .grid-item.coach.away      { grid-row: 2; }
    .grid-item.starters.home,   .grid-item.starters.away   { grid-row: 3; }
    .grid-item.sub-head.home,   .grid-item.sub-head.away   { grid-row: 4; }
    .grid-item.subs.home,       .grid-item.subs.away       { grid-row: 5; }
    .grid-item.staff-head.home, .grid-item.staff-head.away { grid-row: 6; }
    .grid-item.staff.home,      .grid-item.staff.away      { grid-row: 7; }

    .lineup-team-header { background: #111; color: #fff; padding: 10px 20px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
    .formation-header, .coach-header { background: #fafafa; padding: 8px 20px; font-size: 10px; font-weight: 900; color: #bbb; letter-spacing: 1.5px; border-bottom: 1px solid #eee; text-transform: uppercase; }
    .player-entry { display: flex; align-items: center; padding: 8px 20px; border-bottom: 1px solid #f9f9f9; text-decoration: none !important; color: inherit !important; }
    .p-nr { width: 25px; font-weight: 900; color: #00a859; font-size: 13px; flex-shrink:0; }
    .p-img { width: 36px; height: 36px; border-radius: 50%; background: #f0f0f0; margin: 0 12px; overflow: hidden; border: 1px solid #eee; flex-shrink:0; }
    .p-img img { width: 100%; height: 100%; object-fit: cover; }
    .p-name { font-weight: 800; text-transform: uppercase; font-size: 13px; }
    .sub-label, .staff-label { background: #111; color:#fff; padding: 8px 20px; font-size: 10px; font-weight: 900; border-bottom: 1px solid #eee; text-transform: uppercase; }




    @media (max-width: 991px) {
        .ckm-event-wraper { flex-direction: column; }
        .ckm-sidebar-area { width: 100%; }
        .lineups-grid { grid-template-columns: 1fr; }
        .lineup-col { border-right: none; border-bottom: 15px solid #f4f7f5; }
    }

    @media (max-width: 768px) {
    /* 1. BLOKADA ROZPYCHANIA CAŁEJ STRONY */
    .ckm-event-wraper {
        padding: 0 10px !important;
        overflow-x: hidden !important; /* Zabijamy suwak na boki */
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. ODCHUDZANIE CZARNEGO BOHATERA (HERO) */
    .event-hero-section {
        padding: 20px 10px !important;
        gap: 10px !important;
        justify-content: space-between !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hero-team { flex: 1; }
    .hero-team img {
        height: 55px !important; /* Jeszcze mniejsze, by zmieścić wynik */
        width: auto !important;
        max-width: 60px !important;
        object-fit: contain;
    }

    .hero-score {
        font-size: 32px !important; /* Kompaktowy wynik na mobile */
        white-space: nowrap;
    }

    /* 3. NAPRAWA BELEK (Taby: Przebieg / Składy) */
    .match-data-tabs {
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 10px !important;
    }
    
    .tab-btn {
        padding: 12px 5px !important;
        font-size: 11px !important; /* Mniejszy tekst, żeby się nie zawijał */
    }

    /* 4. NAPRAWA PASKA SZCZEGÓŁÓW (Data/Stadion) */
    .match-details-bar {
        margin: -15px 10px 20px !important;
        flex-direction: column !important; /* Jeden pod drugim na małych ekranach */
        gap: 5px !important;
        font-size: 12px !important;
    }
}