/* =========================================================
   PuntersPortal Match Facts - Main Layout + Custom Side Panel
========================================================= */

.pp-home.pp-mf-page {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 22px !important;
    align-items: start !important;
    width: 100% !important;
}

.pp-home.pp-mf-page > .pp-main {
    grid-column: 1 / 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pp-home.pp-mf-page > .pp-mf-side-panel {
    grid-column: 2 / 3 !important;
    grid-row: 1 !important;
}

/* HERO */

.pp-mf-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    margin-bottom: 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 18%, rgba(245, 166, 35, 0.16), transparent 28%),
        linear-gradient(180deg, #121922 0%, #0d131b 100%);
    border: 1px solid rgba(245, 166, 35, 0.55);
    box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

.pp-mf-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: #f5a623;
    font-size: 14px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pp-mf-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 29px;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 0 #000;
}

.pp-mf-hero p {
    margin: 9px 0 0;
    color: #cbd7ea;
    font-size: 14px;
    line-height: 1.45;
}

.pp-mf-total {
    width: 92px;
    height: 78px;
    border-radius: 14px;
    background: #0f1722;
    border: 1px solid rgba(245, 166, 35, 0.5);
    display: grid;
    place-items: center;
    text-align: center;
    flex: 0 0 auto;
}

.pp-mf-total strong {
    display: block;
    color: #f5a623;
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
}

.pp-mf-total span {
    display: block;
    margin-top: -12px;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

/* DATE BAR */

.pp-mf-datebar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: center;
    padding: 10px;
    margin-bottom: 18px;
    border-radius: 16px;
    background: linear-gradient(180deg, #121922 0%, #0c121a 100%);
    border: 1px solid rgba(255,255,255,0.08);
}

.pp-mf-date-list {
    display: grid;
    grid-template-columns: repeat(9, minmax(70px, 1fr));
    gap: 8px;
}

.pp-mf-date-arrow,
.pp-mf-date {
    text-decoration: none;
}

.pp-mf-date-arrow {
    height: 54px;
    border-radius: 13px;
    background: #101824;
    border: 1px solid rgba(255,255,255,0.08);
    color: #f5a623;
    font-size: 28px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.pp-mf-date {
    height: 54px;
    border-radius: 13px;
    background: #101824;
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 6px;
    transition: 0.18s ease;
}

.pp-mf-date span,
.pp-mf-date em {
    color: #93a4bd;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
}

.pp-mf-date strong {
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
}

.pp-mf-date:hover,
.pp-mf-date-arrow:hover {
    border-color: rgba(245, 166, 35, 0.65);
}

.pp-mf-date.active {
    border-color: #f5a623;
    background:
        radial-gradient(circle at center bottom, rgba(245,166,35,0.25), transparent 70%),
        #141414;
}

.pp-mf-date.active span,
.pp-mf-date.active strong,
.pp-mf-date.active em {
    color: #f5a623;
}

/* LEAGUES */

.pp-mf-leagues {
    display: grid;
    gap: 16px;
    width: 100%;
}

.pp-mf-league-box {
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, #121922 0%, #0d131b 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.pp-mf-league-head {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, #151d28 0%, #101721 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pp-mf-league-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pp-mf-league-title span {
    display: block;
    color: #9fb0ca;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 4px;
}

.pp-mf-league-title h2 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.1;
}

.pp-mf-league-head > strong {
    color: #f5a623;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.pp-mf-flag {
    width: 22px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    flex: 0 0 auto;
}

.pp-mf-world {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

/* MATCH CARDS */

.pp-mf-match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
}

.pp-mf-card {
    position: relative;
    min-width: 0;
    padding: 13px;
    border-radius: 13px;
    background: #101822;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    transition: 0.18s ease;
}

.pp-mf-card:hover {
    border-color: rgba(245, 166, 35, 0.45);
}

.pp-mf-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.pp-mf-time {
    height: 30px;
    min-width: 52px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.45);
    color: #f5a623;
    font-size: 12px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.pp-mf-facts-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.25);
    color: #f5a623;
    font-size: 11px;
    font-weight: 900;
}

.pp-mf-teams {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    text-decoration: none;
    margin-bottom: 12px;
}

.pp-mf-team {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.pp-mf-team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
}

.pp-mf-team strong {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-mf-teams > span {
    color: #91a1bd;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.pp-mf-facts {
    display: grid;
    gap: 7px;
}

.pp-mf-fact {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.05);
}

.pp-mf-fact span {
    flex: 0 0 auto;
    font-size: 13px;
}

.pp-mf-fact p {
    margin: 0;
    color: #dce6f7;
    font-size: 12px;
    line-height: 1.35;
}

.pp-mf-view {
    display: inline-flex;
    margin-top: 10px;
    color: #f5a623;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.pp-mf-view:hover {
    text-decoration: underline;
}

/* EMPTY */

.pp-mf-empty {
    padding: 24px;
    margin-bottom: 16px;
    border-radius: 16px;
    background: #101822;
    border: 1px solid rgba(255,255,255,0.08);
    color: #cbd7ea;
    text-align: center;
    font-weight: 800;
}

/* CUSTOM SIDE PANEL */

.pp-mf-side-panel {
    display: grid;
    gap: 16px;
    width: 300px;
    min-width: 0;
}

.pp-mf-side-card {
    overflow: hidden;
    border-radius: 18px;
    padding: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(245,166,35,0.12), transparent 35%),
        linear-gradient(180deg, #121922 0%, #0d131b 100%);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.pp-mf-side-main {
    border-color: rgba(245,166,35,0.45);
}

.pp-mf-side-label {
    display: block;
    margin-bottom: 6px;
    color: #f5a623;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pp-mf-side-card h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    line-height: 1.15;
    text-shadow: 0 2px 0 #000;
}

.pp-mf-side-big-number {
    height: 110px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        radial-gradient(circle at center, rgba(245,166,35,0.18), transparent 68%),
        #0f1722;
    border: 1px solid rgba(245,166,35,0.35);
    margin-bottom: 12px;
}

.pp-mf-side-big-number strong {
    display: block;
    color: #f5a623;
    font-size: 42px;
    font-weight: 1000;
    line-height: 1;
}

.pp-mf-side-big-number span {
    display: block;
    margin-top: -22px;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.pp-mf-side-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pp-mf-side-stats div {
    padding: 12px 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}

.pp-mf-side-stats strong {
    display: block;
    color: #fff;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
}

.pp-mf-side-stats span {
    display: block;
    margin-top: 6px;
    color: #9fb0c7;
    font-size: 11px;
    font-weight: 800;
}

.pp-mf-side-match {
    display: block;
    text-decoration: none;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
}

.pp-mf-side-match:hover {
    border-color: rgba(245,166,35,0.45);
}

.pp-mf-side-time {
    width: fit-content;
    margin: 0 auto 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(245,166,35,0.12);
    border: 1px solid rgba(245,166,35,0.45);
    color: #f5a623;
    font-size: 12px;
    font-weight: 950;
}

.pp-mf-side-teams {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    text-align: center;
}

.pp-mf-side-teams div {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 6px;
}

.pp-mf-side-teams img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.pp-mf-side-teams strong {
    max-width: 100%;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-mf-side-teams span {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #0b121c;
    border: 1px solid rgba(255,255,255,0.08);
    color: #9fb0c7;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.pp-mf-side-facts-badge {
    margin: 13px auto 0;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(245,166,35,0.12);
    border: 1px solid rgba(245,166,35,0.42);
    color: #f5a623;
    font-size: 12px;
    font-weight: 950;
}

.pp-mf-fact-types {
    display: grid;
    gap: 9px;
}

.pp-mf-fact-types div {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px;
    border-radius: 13px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
}

.pp-mf-fact-types span {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(245,166,35,0.12);
}

.pp-mf-fact-types strong {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.pp-mf-quick-links {
    display: grid;
    gap: 9px;
}

.pp-mf-quick-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 13px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.06);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
}

.pp-mf-quick-links a:hover {
    color: #f5a623;
    border-color: rgba(245,166,35,0.45);
}

/* RESPONSIVE */

@media (max-width: 1280px) {
    .pp-home.pp-mf-page {
        grid-template-columns: 1fr !important;
    }

    .pp-home.pp-mf-page > .pp-main {
        grid-column: 1 / -1 !important;
    }

    .pp-mf-side-panel {
        display: none !important;
    }
}

@media (max-width: 1100px) {
    .pp-mf-match-grid {
        grid-template-columns: 1fr;
    }

    .pp-mf-date-list {
        display: flex;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .pp-mf-date {
        min-width: 78px;
    }
}

@media (max-width: 700px) {
    .pp-mf-hero {
        padding: 18px;
        align-items: flex-start;
    }

    .pp-mf-hero h1 {
        font-size: 23px;
    }

    .pp-mf-hero p {
        font-size: 13px;
    }

    .pp-mf-total {
        display: none;
    }

    .pp-mf-league-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pp-mf-match-grid {
        padding: 10px;
    }

    .pp-mf-datebar {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .pp-mf-date-arrow {
        height: 50px;
    }

    .pp-mf-teams {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .pp-mf-teams > span {
        display: none;
    }
}