/* =========================================================
   FOOTBALL PULSE — MATCH EXPERIENCE
   Arquivo: static/css/fp_match.css
   BLOCO ME1
   Paleta: grafite, preto, prata, branco, vermelho ao vivo, azul técnico
   Verde: apenas micro-pulso técnico
   ========================================================= */

.fp-match-page {
    --match-bg: #02060d;
    --match-panel: rgba(5, 10, 18, 0.90);
    --match-border: rgba(255, 255, 255, 0.112);
    --match-border-soft: rgba(255, 255, 255, 0.078);
    --match-text: #ffffff;
    --match-muted: #aeb9c7;
    --match-soft: #d9e2ec;
    --match-blue: #78c7ff;
    --match-blue-soft: rgba(120, 199, 255, 0.13);
    --match-red: #f0182b;
    --match-red-soft: rgba(240, 24, 43, 0.14);
    --match-silver: #c7d1dc;
    --match-pulse: #5ff0bd;
    --match-shadow: 0 24px 80px rgba(0, 0, 0, 0.46);

    width: min(1860px, calc(100vw - 36px));
    margin: 0 auto;
    padding: 14px 0 46px;
}

.fp-match-page .fp-kicker {
    color: var(--match-blue);
    font-size: 9.5px;
    letter-spacing: 1.25px;
}

/* =========================
   Hero player
   ========================= */

.fp-match-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(390px, 0.65fr);
    gap: 14px;
}

.fp-match-player {
    position: relative;
    min-height: 520px;
    border: 1px solid var(--match-border);
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 62% 18%, rgba(255, 255, 255, 0.20), transparent 9%),
        radial-gradient(circle at 65% 24%, rgba(120, 199, 255, 0.15), transparent 18%),
        radial-gradient(circle at 48% 62%, rgba(95, 240, 189, 0.06), transparent 18%),
        linear-gradient(180deg, rgba(12, 32, 52, 0.44), rgba(0, 0, 0, 0.76)),
        linear-gradient(135deg, #07101b, #020407 70%);
    box-shadow: var(--match-shadow);
}

.fp-match-player-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.033) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px);
    background-size: 82px 82px;
    opacity: 0.15;
    mask-image: linear-gradient(to bottom, transparent, black 18%, black 76%, transparent);
}

.fp-match-player::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.58), transparent 45%, rgba(0,0,0,0.34)),
        linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.76));
    pointer-events: none;
}

.fp-match-live-badge {
    position: absolute;
    top: 18px;
    left: 22px;
    z-index: 3;
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 8px;
    background: var(--match-red);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 950;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(240, 24, 43, 0.30);
}

.fp-match-selo {
    position: absolute;
    top: 22px;
    right: 24px;
    z-index: 3;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fp-match-scoreboard {
    position: absolute;
    z-index: 3;
    left: 38px;
    right: 38px;
    top: 78px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.fp-match-team {
    text-align: center;
}

.fp-match-team div {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    margin: 0 auto 9px;
    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 25%, rgba(255,255,255,0.24), transparent 34%),
        rgba(120, 199, 255, 0.11);
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
    box-shadow: inset 0 0 18px rgba(255,255,255,0.10), 0 10px 28px rgba(0,0,0,0.30);
}

.fp-match-team strong {
    display: block;
    color: #ffffff;
    font-size: 13.4px;
    font-weight: 900;
    text-transform: uppercase;
}

.fp-match-team span {
    display: block;
    margin-top: 5px;
    color: var(--match-muted);
    font-size: 10.5px;
}

.fp-match-score-center {
    text-align: center;
}

.fp-match-score-center small {
    display: block;
    color: var(--match-blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.fp-match-score-center b {
    display: block;
    margin-top: 10px;
    color: #ffffff;
    font-size: clamp(54px, 4.7vw, 82px);
    line-height: 0.92;
    font-weight: 950;
    letter-spacing: -0.07em;
    text-shadow: 0 6px 26px rgba(0,0,0,0.50);
}

.fp-match-score-center span {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 0 13px;
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 8px;
    background: rgba(0,0,0,0.42);
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
}

.fp-match-field {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 90px;
    width: min(760px, 82%);
    height: 210px;
    transform: translateX(-50%);
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at center, rgba(120, 199, 255, 0.12), transparent 54%),
        rgba(0,0,0,0.18);
    opacity: 0.86;
}

.fp-match-field::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

.fp-match-field .player {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--match-blue);
    box-shadow: 0 0 16px rgba(120,199,255,0.70);
}

.fp-match-field .p1 { left: 24%; top: 42%; }
.fp-match-field .p2 { left: 38%; top: 62%; }
.fp-match-field .p3 { left: 51%; top: 45%; background: var(--match-red); box-shadow: 0 0 16px rgba(240,24,43,0.70); }
.fp-match-field .p4 { right: 32%; top: 58%; }
.fp-match-field .p5 { right: 20%; top: 36%; }

.fp-match-field .ball {
    position: absolute;
    left: 54%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255,255,255,0.80);
}

.fp-match-transmission {
    position: absolute;
    z-index: 3;
    left: 22px;
    bottom: 70px;
}

.fp-match-transmission div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-match-transmission div span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--match-red);
    box-shadow: 0 0 14px rgba(240, 24, 43, 0.82);
}

.fp-match-transmission strong {
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.fp-match-transmission small {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.72);
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
}

.fp-match-controls {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 54px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 0 26px;
    background: rgba(0,0,0,0.54);
    backdrop-filter: blur(10px);
}

.fp-match-control-left,
.fp-match-control-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fp-match-control-left button {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.fp-match-control-left strong,
.fp-match-control-right span {
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
}

.fp-match-progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
    overflow: hidden;
}

.fp-match-progress i {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: var(--match-red);
}

/* =========================
   Side hero
   ========================= */

.fp-match-side {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--match-border);
    border-radius: 22px;
    padding: 24px;
    background:
        radial-gradient(circle at 78% 14%, rgba(120, 199, 255, 0.11), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.050), rgba(255,255,255,0.014)),
        rgba(2, 6, 13, 0.90);
    box-shadow: var(--match-shadow);
}

.fp-match-side h1 {
    margin: 15px 0 12px;
    color: #ffffff;
    font-size: clamp(26px, 2.35vw, 42px);
    line-height: 1.02;
    font-weight: 850;
    letter-spacing: -0.050em;
}

.fp-match-side p {
    margin: 0;
    color: var(--match-muted);
    font-size: 13px;
    line-height: 1.65;
}

.fp-match-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.fp-match-actions a,
.fp-match-final a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid rgba(240, 24, 43, 0.26);
    border-radius: 999px;
    background: linear-gradient(135deg, #ff3a4a, var(--match-red));
    color: #ffffff;
    font-size: 10.2px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 14px 34px rgba(240, 24, 43, 0.12);
}

.fp-match-actions a.secondary,
.fp-match-final a.secondary {
    background: rgba(255, 255, 255, 0.040);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.fp-match-live-stats {
    display: grid;
    gap: 9px;
    margin-top: 24px;
}

.fp-match-live-stats div {
    border: 1px solid rgba(255,255,255,0.085);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255,255,255,0.030);
}

.fp-match-live-stats strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 850;
}

.fp-match-live-stats span {
    display: block;
    margin-top: 4px;
    color: var(--match-muted);
    font-size: 10.6px;
}

/* =========================
   Ticker
   ========================= */

.fp-match-ticker {
    min-height: 38px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.108);
    border-radius: 12px;
    background: rgba(3, 8, 14, 0.82);
    overflow: hidden;
}

.fp-match-ticker strong {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-right: 1px solid rgba(240, 24, 43, 0.22);
    background: rgba(240, 24, 43, 0.11);
    color: #ffffff;
    font-size: 10.3px;
    font-weight: 900;
    letter-spacing: 0.52px;
    text-transform: uppercase;
    white-space: nowrap;
}

.fp-match-ticker div {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow: hidden;
    white-space: nowrap;
}

.fp-match-ticker span {
    color: #d9e1ea;
    font-size: 11.7px;
}

.fp-match-ticker span::before {
    content: "";
    width: 5.5px;
    height: 5.5px;
    display: inline-block;
    margin-right: 11px;
    border-radius: 50%;
    background: var(--match-pulse);
    box-shadow: 0 0 12px rgba(95, 240, 189, 0.55);
}

.fp-match-ticker a {
    padding-right: 14px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 10.4px;
    font-weight: 850;
    white-space: nowrap;
}

/* =========================
   Generic sections
   ========================= */

.fp-match-section,
.fp-match-split {
    margin-top: 16px;
}

.fp-match-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    gap: 12px;
}

.fp-match-panel,
.fp-match-camera-grid a,
.fp-match-final,
.fp-match-commerce-grid a,
.fp-match-system-grid div {
    border: 1px solid var(--match-border);
    border-radius: 17px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.014)),
        rgba(2, 6, 13, 0.86);
    box-shadow: var(--match-shadow);
}

.fp-match-panel {
    min-height: 320px;
    padding: 17px;
}

.fp-match-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.fp-match-section-head span {
    display: block;
    margin-bottom: 5px;
    color: var(--match-blue);
    font-size: 9.4px;
    font-weight: 900;
    letter-spacing: 1.12px;
    text-transform: uppercase;
}

.fp-match-section-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(15.8px, 1.10vw, 20.8px);
    line-height: 1.10;
    font-weight: 820;
    letter-spacing: -0.024em;
}

.fp-match-section-head a {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, 0.110);
    border-radius: 999px;
    color: #dbe5ef;
    background: rgba(255, 255, 255, 0.030);
    font-size: 9.6px;
    font-weight: 850;
    letter-spacing: 0.36px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* =========================
   Cameras
   ========================= */

.fp-match-camera-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.fp-match-camera-grid a {
    min-height: 225px;
    overflow: hidden;
}

.fp-match-camera-visual {
    position: relative;
    min-height: 112px;
    background:
        radial-gradient(circle at 50% 48%, rgba(120, 199, 255, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014));
}

.fp-match-camera-visual span {
    position: absolute;
    top: 12px;
    left: 12px;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(120, 199, 255, 0.14);
    color: var(--match-blue);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.fp-match-camera-visual::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 54%;
    width: 96px;
    height: 54px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    background: rgba(0,0,0,0.26);
}

.fp-match-camera-grid strong {
    display: block;
    margin: 13px 13px 0;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
}

.fp-match-camera-grid p {
    margin: 8px 13px 13px;
    color: var(--match-muted);
    font-size: 11.4px;
    line-height: 1.48;
}

/* =========================
   Stats / Timeline
   ========================= */

.fp-match-stat-list {
    display: grid;
    gap: 8px;
}

.fp-match-stat-list div {
    min-height: 42px;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 80px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.080);
    border-radius: 12px;
    padding: 0 12px;
    background: rgba(255,255,255,0.030);
}

.fp-match-stat-list strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
}

.fp-match-stat-list span {
    color: var(--match-muted);
    font-size: 11px;
    text-align: center;
    text-transform: uppercase;
}

.fp-match-timeline {
    display: grid;
    gap: 9px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 4px;
}

.fp-match-timeline article,
.fp-match-place-list a,
.fp-match-store-grid a,
.fp-match-moments-list a,
.fp-match-interaction-grid article {
    border: 1px solid rgba(255,255,255,0.080);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255,255,255,0.030);
}

.fp-match-timeline small,
.fp-match-place-list small,
.fp-match-store-grid small,
.fp-match-moments-list small,
.fp-match-interaction-grid small {
    color: var(--match-blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.70px;
    text-transform: uppercase;
}

.fp-match-timeline strong,
.fp-match-place-list strong,
.fp-match-store-grid strong,
.fp-match-moments-list strong,
.fp-match-interaction-grid strong {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-size: 12.4px;
    font-weight: 850;
}

.fp-match-timeline span,
.fp-match-place-list span,
.fp-match-store-grid span,
.fp-match-moments-list span,
.fp-match-interaction-grid span {
    display: block;
    margin-top: 5px;
    color: var(--match-muted);
    font-size: 10.9px;
    line-height: 1.45;
}

/* =========================
   Places / Store / Moments / Interaction
   ========================= */

.fp-match-place-list,
.fp-match-moments-list {
    display: grid;
    gap: 9px;
}

.fp-match-place-list p {
    margin: 7px 0 0;
    color: var(--match-muted);
    font-size: 10.9px;
    line-height: 1.45;
}

.fp-match-store-grid,
.fp-match-interaction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.fp-match-store-grid a,
.fp-match-interaction-grid article {
    min-height: 128px;
}

.fp-match-moments-list a {
    min-height: 88px;
}

/* =========================
   Commerce / System
   ========================= */

.fp-match-commerce-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.fp-match-commerce-grid a {
    min-height: 120px;
    padding: 15px;
}

.fp-match-commerce-grid strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 850;
}

.fp-match-commerce-grid span {
    display: block;
    margin-top: 8px;
    color: var(--match-muted);
    font-size: 11.4px;
    line-height: 1.48;
}

.fp-match-system-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.fp-match-system-grid div {
    min-height: 86px;
    padding: 14px;
}

.fp-match-system-grid strong {
    display: block;
    color: #ffffff;
    font-size: 21px;
    font-weight: 850;
}

.fp-match-system-grid span {
    display: block;
    margin-top: 5px;
    color: var(--match-muted);
    font-size: 10.8px;
}

/* =========================
   Final
   ========================= */

.fp-match-final {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 16px;
    padding: 23px;
    border-color: rgba(120, 199, 255, 0.15);
}

.fp-match-final h2 {
    max-width: 900px;
    margin: 13px 0 9px;
    color: #ffffff;
    font-size: clamp(22px, 1.86vw, 34px);
    line-height: 1.04;
    font-weight: 820;
    letter-spacing: -0.045em;
}

.fp-match-final p {
    max-width: 830px;
    margin: 0;
    color: var(--match-muted);
    font-size: 12.8px;
    line-height: 1.60;
}

.fp-match-final > div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* =========================
   Hover
   ========================= */

.fp-match-camera-grid a,
.fp-match-panel,
.fp-match-timeline article,
.fp-match-place-list a,
.fp-match-store-grid a,
.fp-match-moments-list a,
.fp-match-interaction-grid article,
.fp-match-commerce-grid a,
.fp-match-system-grid div {
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.fp-match-camera-grid a:hover,
.fp-match-timeline article:hover,
.fp-match-place-list a:hover,
.fp-match-store-grid a:hover,
.fp-match-moments-list a:hover,
.fp-match-commerce-grid a:hover {
    transform: translateY(-1px);
    border-color: rgba(120, 199, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(120, 199, 255, 0.052), rgba(255, 255, 255, 0.014)),
        rgba(2, 6, 13, 0.88);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1480px) {
    .fp-match-hero,
    .fp-match-split,
    .fp-match-final {
        grid-template-columns: 1fr;
    }

    .fp-match-camera-grid,
    .fp-match-commerce-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fp-match-system-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fp-match-final > div:last-child {
        justify-content: flex-start;
    }
}

@media (max-width: 920px) {
    .fp-match-page {
        width: calc(100vw - 24px);
        padding-top: 12px;
    }

    .fp-match-player {
        min-height: 720px;
    }

    .fp-match-scoreboard {
        grid-template-columns: 1fr;
        left: 22px;
        right: 22px;
        gap: 14px;
    }

    .fp-match-field {
        bottom: 92px;
        width: 90%;
        opacity: 0.70;
    }

    .fp-match-controls {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 18px;
    }

    .fp-match-side,
    .fp-match-final {
        padding: 18px;
        border-radius: 18px;
    }

    .fp-match-side h1 {
        font-size: 31px;
        line-height: 1.04;
    }

    .fp-match-camera-grid,
    .fp-match-store-grid,
    .fp-match-interaction-grid,
    .fp-match-commerce-grid,
    .fp-match-system-grid {
        grid-template-columns: 1fr;
    }

    .fp-match-stat-list div {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px;
    }

    .fp-match-ticker {
        grid-template-columns: 1fr;
        padding-bottom: 10px;
    }

    .fp-match-ticker strong {
        min-height: 36px;
    }

    .fp-match-ticker div {
        padding: 0 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        white-space: normal;
    }

    .fp-match-ticker a {
        padding-left: 14px;
    }

    .fp-match-section-head {
        align-items: flex-start;
        flex-direction: column;
    }
}