/* ═══════════════════════════════════════════════════════════════
   FEATURED MATCH PRO v3 — Bold, cinematic match card
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@500;700;800;900&display=swap');

/* ────────────────────────────────────────────
   OUTER WRAPPER
   ──────────────────────────────────────────── */
.fmp-container {
    position: relative;
    margin: 10px 12px 4px;
    border-radius: 26px;
    overflow: hidden;
    height: 260px;
    background: #07070f;
    box-shadow:
        0 30px 70px rgba(0,0,0,0.75),
        0 0 0 1px rgba(255,255,255,0.08),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ────────────────────────────────────────────
   AUTO-ADVANCE PROGRESS BAR
   ──────────────────────────────────────────── */
.fmp-progress-bar {
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    z-index: 50;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(90deg, #e94560, #ff9900, #ffd700);
    box-shadow: 0 0 14px rgba(233,69,96,0.9), 0 0 28px rgba(255,153,0,0.4);
}

/* ────────────────────────────────────────────
   SLIDES TRACK
   ──────────────────────────────────────────── */
.fmp-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ────────────────────────────────────────────
   SINGLE SLIDE
   ──────────────────────────────────────────── */
.fmp-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Stadium photo */
.fmp-bg {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 25%;
    filter: brightness(0.28) saturate(0.8);
    transform: scale(1.12);
    transition: transform 10s ease;
    will-change: transform;
}
.fmp-slide.fmp-active .fmp-bg {
    transform: scale(1);
}

/* Team color diagonal split */
.fmp-color-split {
    position: absolute;
    inset: 0;
    z-index: 1;
    mix-blend-mode: screen;
    opacity: 0.65;
}

/* Bottom darkness fade */
.fmp-bottom-fade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.96) 0%,
        rgba(0,0,0,0.5)  45%,
        rgba(0,0,0,0.15) 75%,
        transparent      100%
    );
}

/* ────────────────────────────────────────────
   TOP BAR
   ──────────────────────────────────────────── */
.fmp-topbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 15px 0;
    gap: 8px;
}

.fmp-league-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px 5px 6px;
    border-radius: 40px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
}
.fmp-league-badge img {
    width: 20px; height: 20px;
    object-fit: contain;
    border-radius: 50%;
}

/* Status pill */
.fmp-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.fmp-status.live {
    background: rgba(220,38,38,0.92);
    border-color: rgba(255,120,120,0.3);
    box-shadow: 0 0 20px rgba(220,38,38,0.7), 0 4px 14px rgba(0,0,0,0.4);
    animation: fmpLivePulse 2s ease-in-out infinite;
}
.fmp-status.scheduled {
    background: rgba(20,20,36,0.88);
    border-color: rgba(255,195,0,0.45);
    color: #ffc300;
}
.fmp-status.finished {
    background: rgba(20,20,36,0.75);
    border-color: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
}
.fmp-live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fff;
    animation: fmpDotBlink 1s ease-in-out infinite;
}
@keyframes fmpDotBlink {
    0%,100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.15; transform: scale(0.5); }
}
@keyframes fmpLivePulse {
    0%,100% { box-shadow: 0 0 18px rgba(220,38,38,0.6), 0 4px 14px rgba(0,0,0,0.4); }
    50%      { box-shadow: 0 0 32px rgba(220,38,38,1),   0 4px 14px rgba(0,0,0,0.4); }
}

/* ────────────────────────────────────────────
   SCORE BODY  (teams + scoreboard)
   ──────────────────────────────────────────── */
.fmp-body {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 14px 0;
    gap: 6px;
}

/* ── Team column ── */
.fmp-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* ── Logo system ──
   Structure inside fmp-logo-ring:
     .fmp-logo-glow  (blurred neon circle)
     .fmp-logo-img-wrap > img
   No ::before/::after to avoid z-index traps.
*/
.fmp-logo-ring {
    position: relative;
    width: 74px;
    height: 74px;
    flex-shrink: 0;
}

/* Neon glow circle — uses background set inline via JS */
.fmp-logo-glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    /* background color set inline */
    filter: blur(14px);
    opacity: 0;
    animation: fmpGlowBreath 2.6s ease-in-out infinite;
}
.fmp-slide.fmp-active .fmp-logo-glow {
    opacity: 1;
}
@keyframes fmpGlowBreath {
    0%,100% { opacity: 0.4; transform: scale(0.9); }
    50%      { opacity: 0.85; transform: scale(1.1); }
}

/* Spinning ring */
.fmp-logo-spinner {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(
        transparent 0deg,
        rgba(255,255,255,0.55) 60deg,
        transparent 120deg,
        rgba(255,255,255,0.2) 200deg,
        transparent 280deg
    );
    animation: fmpSpin 5s linear infinite;
}
@keyframes fmpSpin { to { transform: rotate(360deg); } }

/* Logo frame */
.fmp-logo-img-wrap {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(10,10,22,0.7);
    border: 2px solid rgba(255,255,255,0.14);
    /* team color border set inline */
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.12),
        0 10px 30px rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.fmp-logo-img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.9));
}

.fmp-team-name {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow:
        0 0 30px rgba(0,0,0,1),
        0 2px 8px rgba(0,0,0,1);
}

/* ── Score center ── */
.fmp-score-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

/* Scoreboard pill */
.fmp-scoreboard {
    display: flex;
    align-items: center;
    background: rgba(5,5,14,0.92);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 10px 20px;
    gap: 0;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 18px 50px rgba(0,0,0,0.85),
        0 4px 16px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.6);
}
/* Top gloss */
.fmp-scoreboard::before {
    content: '';
    position: absolute;
    top: 0; left: 18%; right: 18%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
}
/* Subtle inner gradient */
.fmp-scoreboard::after {
    content: '';
    position: absolute;
    inset: 0; border-radius: 22px;
    background: linear-gradient(155deg,
        rgba(255,255,255,0.04) 0%,
        transparent 55%,
        rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

/* Score digits */
.fmp-score-digit {
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    font-size: 60px;
    line-height: 1;
    letter-spacing: -1px;
    color: #ffffff;
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
    text-shadow:
        0 0 50px rgba(255,255,255,0.35),
        0 0 100px rgba(200,100,255,0.1),
        0 4px 14px rgba(0,0,0,0.9);
    transition: color 0.25s, text-shadow 0.25s;
}
.fmp-score-digit.fmp-goal-pop {
    animation: fmpGoalPop 0.7s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes fmpGoalPop {
    0%   { transform: scale(1);    color: #fff;    text-shadow: 0 0 50px rgba(255,255,255,0.35); }
    20%  { transform: scale(1.7);  color: #ffd700; text-shadow: 0 0 80px rgba(255,215,0,1), 0 0 140px rgba(255,130,0,0.8); }
    60%  { transform: scale(1.3);  color: #ffe980; }
    100% { transform: scale(1);    color: #fff;    text-shadow: 0 0 50px rgba(255,255,255,0.35); }
}

/* Colon separator */
.fmp-colon-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    padding-bottom: 5px;
    position: relative;
    z-index: 1;
}
.fmp-colon-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    transition: background 0.3s;
}
.fmp-colon-dot:nth-child(1) { animation: fmpColonPulse 1.15s ease-in-out infinite; }
.fmp-colon-dot:nth-child(2) { animation: fmpColonPulse 1.15s ease-in-out 0.575s infinite; }
@keyframes fmpColonPulse {
    0%,100% { opacity: 1; transform: scale(1);    background: rgba(255,255,255,0.5); }
    50%      { opacity: 0.2; transform: scale(0.55); background: rgba(255,255,255,0.2); }
}

/* Match minute info */
.fmp-match-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.fmp-minute-label {
    font-family: 'Inter', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1.2px;
    text-transform: uppercase;
}
.fmp-minute-bar-wrap {
    width: 82px; height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.fmp-minute-bar {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #e94560, #ffd700);
    box-shadow: 0 0 10px rgba(233,69,96,0.8);
    transition: width 1.2s ease;
}

/* ────────────────────────────────────────────
   BOTTOM ACTION STRIP
   ──────────────────────────────────────────── */
.fmp-bottom {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 14px;
    gap: 10px;
}

/* Dot indicators */
.fmp-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.fmp-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none; padding: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.fmp-dot.fmp-active {
    width: 22px;
    border-radius: 3px;
    background: linear-gradient(90deg, #e94560, #ff9900);
    box-shadow: 0 0 10px rgba(233,69,96,0.8);
}
.fmp-dot:hover:not(.fmp-active) {
    background: rgba(255,255,255,0.6);
    transform: scale(1.4);
}

/* Watch / action button */
.fmp-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: none;
    border-radius: 50px;
    padding: 10px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s, box-shadow 0.18s;
}
.fmp-watch-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 55%);
    pointer-events: none;
}
.fmp-watch-btn:active { transform: scale(0.93); }

.fmp-watch-btn.fmp-has-stream {
    background: linear-gradient(135deg, #e94560 0%, #c62d46 100%);
    color: #fff;
    box-shadow:
        0 8px 28px rgba(233,69,96,0.6),
        0 0 0 1px rgba(233,69,96,0.4),
        inset 0 1px 0 rgba(255,255,255,0.25);
    animation: fmpWatchPulse 2.8s ease-in-out infinite;
}
@keyframes fmpWatchPulse {
    0%,100% { box-shadow: 0 8px 28px rgba(233,69,96,0.5), 0 0 0 1px rgba(233,69,96,0.3), inset 0 1px 0 rgba(255,255,255,0.25); }
    50%      { box-shadow: 0 8px 38px rgba(233,69,96,0.9), 0 0 0 5px rgba(233,69,96,0.12), inset 0 1px 0 rgba(255,255,255,0.25); }
}
.fmp-watch-btn.fmp-no-stream {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.13);
}

.fmp-play-icon {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 8px;
    flex-shrink: 0;
}

/* Share button */
.fmp-share-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.65);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s;
    flex-shrink: 0;
}
.fmp-share-btn:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
    transform: scale(1.1);
}

/* ────────────────────────────────────────────
   NAV ARROWS
   ──────────────────────────────────────────── */
.fmp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.82);
    cursor: pointer;
    z-index: 20;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.55);
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.fmp-nav:hover {
    background: #e94560;
    border-color: rgba(233,69,96,0.6);
    color: #fff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 4px 22px rgba(233,69,96,0.65);
}
.fmp-nav:active { transform: translateY(-50%) scale(0.93); }
.fmp-nav i { font-size: 11px; }
.fmp-nav-prev { left: 12px; }
.fmp-nav-next { right: 12px; }

/* ────────────────────────────────────────────
   SKELETON LOADER
   ──────────────────────────────────────────── */
.fmp-skeleton {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #07070f;
    z-index: 30;
    border-radius: inherit;
}
.fmp-skel-inner {
    display: flex;
    align-items: center;
    gap: 22px;
}
.fmp-skel-circle {
    width: 66px; height: 66px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    animation: fmpShimmer 1.7s ease-in-out infinite;
}
.fmp-skel-score {
    width: 120px; height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    animation: fmpShimmer 1.7s ease-in-out 0.18s infinite;
}
@keyframes fmpShimmer {
    0%,100% { opacity: 0.3; }
    50%      { opacity: 0.75; }
}

/* ────────────────────────────────────────────
   GOAL CELEBRATION OVERLAY
   ──────────────────────────────────────────── */
.fmp-goal-overlay {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    border-radius: inherit;
}
.fmp-goal-overlay.fmp-show {
    animation: fmpGoalOverlayAnim 2.2s ease-out forwards;
}
.fmp-goal-text {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: 76px;
    letter-spacing: 5px;
    color: #ffd700;
    text-shadow:
        0 0 70px rgba(255,215,0,1),
        0 0 130px rgba(255,140,0,0.7),
        0 4px 28px rgba(0,0,0,1),
        5px 5px 0 rgba(170,70,0,0.5);
    animation: fmpGoalBounce 0.55s cubic-bezier(0.34,1.7,0.64,1) forwards;
}
@keyframes fmpGoalOverlayAnim {
    0%   { opacity: 0; background: rgba(255,215,0,0); }
    8%   { opacity: 1; background: rgba(255,215,0,0.12); }
    80%  { opacity: 1; background: rgba(255,215,0,0.06); }
    100% { opacity: 0; background: rgba(255,215,0,0); }
}
@keyframes fmpGoalBounce {
    0%   { transform: scale(0) rotate(-10deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg);   opacity: 1; }
}

/* ────────────────────────────────────────────
   GOAL CONFETTI PARTICLES
   ──────────────────────────────────────────── */
.fmp-particle {
    position: absolute;
    pointer-events: none;
    z-index: 41;
    animation: fmpParticleFly var(--dur, 1.4s) ease-out forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes fmpParticleFly {
    0%   { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); }
    100% { opacity: 0; transform: var(--tx) rotate(720deg) scale(0); }
}

/* ────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────── */
@media (max-width: 380px) {
    .fmp-container    { height: 236px; }
    .fmp-logo-ring    { width: 60px; height: 60px; }
    .fmp-score-digit  { font-size: 48px; min-width: 30px; }
    .fmp-scoreboard   { padding: 8px 16px; }
    .fmp-team-name    { font-size: 10px; }
    .fmp-watch-btn    { padding: 9px 15px; font-size: 10.5px; }
    .fmp-goal-text    { font-size: 58px; }
}
@media (min-width: 480px) {
    .fmp-container    { height: 272px; }
    .fmp-logo-ring    { width: 80px; height: 80px; }
    .fmp-score-digit  { font-size: 66px; min-width: 40px; }
    .fmp-team-name    { font-size: 12px; max-width: 100px; }
}
@media (min-width: 600px) {
    .fmp-container    { height: 288px; }
    .fmp-score-digit  { font-size: 72px; }
}
