/* LFC Match Previews – front-end design v0.6.1 */

body.single-lfc_match_preview .entry-title:empty,
body.single-lfc_match_preview .post-title:empty,
body.single-lfc_match_preview .page-title:empty,
body.single-lfc_match_preview h1.entry-title:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.lfc-match-hero,
.lfc-match-hero * {
    box-sizing: border-box;
}

.lfc-match-hero {
    position: relative;
    overflow: hidden;
    margin: 0 0 34px;
    padding: 30px 34px 20px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #57000d 0%, #8d0015 48%, #c8102e 100%);
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
}

.lfc-match-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: -155px;
    top: -190px;
    border-radius: 50%;
    border: 60px solid rgba(255,255,255,.055);
    pointer-events: none;
}

.lfc-match-hero__eyebrow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 22px;
    color: rgba(255,255,255,.82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lfc-match-hero__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: .65;
}

.lfc-match-hero__teams {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr);
    align-items: center;
    gap: 24px;
    max-width: 680px;
    margin: 0 auto 28px;
}

.lfc-match-team {
    min-width: 0;
    text-align: center;
}

.lfc-match-team__crest {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 104px;
    height: 104px;
    margin: 0 auto 12px;
    padding: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
    color: #7a0012;
    font-size: 25px;
    font-weight: 800;
}

.lfc-match-team__crest img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lfc-match-team__name {
    color: #fff;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.12;
    font-weight: 750;
    letter-spacing: -.025em;
}

.lfc-match-hero__versus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 32px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;
    background: rgba(0,0,0,.12);
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.lfc-match-hero__facts {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    border-top: 1px solid rgba(255,255,255,.20);
    border-bottom: 1px solid rgba(255,255,255,.20);
}

.lfc-match-fact {
    min-width: 0;
    padding: 14px 15px 13px;
    text-align: center;
}

.lfc-match-fact + .lfc-match-fact {
    border-left: 1px solid rgba(255,255,255,.16);
}

.lfc-match-fact span,
.lfc-match-fact strong {
    display: block;
}

.lfc-match-fact span {
    margin-bottom: 3px;
    color: rgba(255,255,255,.66);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.lfc-match-fact strong {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    text-overflow: ellipsis;
}

.lfc-match-hero__updated {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 14px;
    color: rgba(255,255,255,.78);
    font-size: 11px;
}

.lfc-match-hero__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    margin-right: 2px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.lfc-match-hero__updated-time {
    opacity: .85;
}

.lfc-preview-body {
    max-width: 820px;
    margin: 0 auto;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
}

.lfc-preview-body > p:first-child {
    margin: 0 0 34px;
    color: #202020;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 450;
}

.lfc-preview-section {
    margin: 0 0 38px;
}

.lfc-preview-section h2 {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 10px;
    color: #222;
    font-size: 27px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.025em;
}

.lfc-preview-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 10px;
    background: #c8102e;
}

.lfc-preview-section p {
    margin: 0 0 12px;
}

.lfc-preview-section p:last-child {
    margin-bottom: 0;
}

.lfc-preview-section--form {
    padding: 22px 24px;
    border: 1px solid #e9e9e9;
    border-radius: 7px;
    background: #f8f8f8;
}

.lfc-preview-section--form h2 {
    margin-bottom: 16px;
}

.lfc-form-row {
    margin-bottom: 9px;
    padding: 11px 13px;
    border-radius: 5px;
    background: #fff;
}

.lfc-form-row__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.lfc-form-row__top strong {
    font-size: 14px;
}

.lfc-form-badges {
    display: inline-flex;
    gap: 5px;
    flex: 0 0 auto;
}

.lfc-form-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.lfc-form-badge--win { background: #218744; }
.lfc-form-badge--draw { background: #777; }
.lfc-form-badge--loss { background: #c8102e; }

.lfc-form-row__results {
    margin-top: 7px;
    color: #626262;
    font-size: 12px;
    line-height: 1.45;
}

.lfc-preview-section--team-news {
    padding: 24px 26px;
    border-left: 4px solid #c8102e;
    border-radius: 0 7px 7px 0;
    background: #fbf6f7;
}

.lfc-preview-section--watch {
    padding: 0 0 0 20px;
    border-left: 2px solid #c8102e;
}

.lfc-preview-sources-box {
    margin-top: 44px;
    border-top: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
}

.lfc-preview-sources-box summary {
    display: flex;
    align-items: baseline;
    gap: 9px;
    padding: 14px 2px;
    cursor: pointer;
    list-style: none;
    color: #333;
}

.lfc-preview-sources-box summary::-webkit-details-marker {
    display: none;
}

.lfc-preview-sources-box summary::after {
    content: "+";
    margin-left: auto;
    color: #c8102e;
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
}

.lfc-preview-sources-box[open] summary::after {
    content: "–";
}

.lfc-preview-sources-box summary span {
    font-size: 15px;
    font-weight: 750;
}

.lfc-preview-sources-box summary small {
    color: #777;
    font-size: 11px;
}

.lfc-preview-sources-box .lfc-preview-sources {
    margin: 0;
    padding: 0 0 16px 20px;
    font-size: 12px;
    line-height: 1.55;
}

.lfc-preview-sources-box .lfc-preview-sources li {
    margin: 4px 0;
}

.lfc-preview-sources-box .lfc-preview-sources a {
    color: #a40019;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.lfc-preview-sources-box .lfc-preview-sources a:hover {
    text-decoration: underline;
}

@media (max-width: 760px) {
    .lfc-match-hero {
        padding: 24px 16px 16px;
        border-radius: 6px;
    }

    .lfc-match-hero__eyebrow {
        margin-bottom: 18px;
        font-size: 10px;
    }

    .lfc-match-hero__teams {
        grid-template-columns: minmax(0,1fr) 40px minmax(0,1fr);
        gap: 10px;
        margin-bottom: 22px;
    }

    .lfc-match-team__crest {
        width: 76px;
        height: 76px;
        padding: 10px;
    }

    .lfc-match-team__name {
        font-size: 18px;
    }

    .lfc-match-hero__versus {
        width: 38px;
        height: 38px;
        margin-bottom: 29px;
        font-size: 10px;
    }

    .lfc-match-hero__facts {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .lfc-match-fact:nth-child(3) {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.16);
    }

    .lfc-match-fact:nth-child(4) {
        border-top: 1px solid rgba(255,255,255,.16);
    }

    .lfc-preview-body {
        font-size: 14px;
        line-height: 1.65;
    }

    .lfc-preview-body > p:first-child {
        margin-bottom: 28px;
        font-size: 16px;
    }

    .lfc-preview-section {
        margin-bottom: 31px;
    }

    .lfc-preview-section h2 {
        font-size: 23px;
    }

    .lfc-preview-section--form,
    .lfc-preview-section--team-news {
        padding: 18px 16px;
    }

    .lfc-form-row__top {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .lfc-form-row__results {
        font-size: 11px;
    }
}
