/* =====================
   RESET & DASAR
===================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f6fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =====================
   CONTAINER
===================== */
.showMatch {
    width: 100%;
    display: flex;
    justify-content: center;
}

.showMatch .w {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 12px;
}

/* =====================
   HOT MATCH LIST
===================== */
.hot-match_list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
    overflow: hidden;
    margin-bottom: 40px;
}

.hot-title {
    font-size: 26px;
    font-weight: 700;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.hot-match_time {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ff1b25;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

/* =====================
   MATCH ITEM (UMUM)
===================== */
.hot-match-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    margin: 10px;
    border-radius: 16px;
    background: #fff;
    transition: all .25s ease;
}

.hot-match-item:hover {
    transform: translateY(-2px);
}

/* =====================
   STATUS: BELUM MULAI
===================== */
.hot-match-item.prelive {
    background: linear-gradient(135deg, #f3edff, #e8dcff);
    border-left: 4px solid #874cff;
}

.hot-match-item.prelive .hot-info_right a {
    background: linear-gradient(135deg, #874cff, #a98bff);
    color: #fff;
    border-radius: 20px;
}

/* =====================
   STATUS: LIVE
===================== */
.hot-match-item.live-highlight {
    background: linear-gradient(135deg, #874cff, #e8dcff);
    border-left: 4px solid #ff3b3b;
}

/* badge LIVE */
.hot-live-badge {
    position: absolute;
    top: -8px;
    left: 14px;
    background: linear-gradient(135deg, #ff3b3b, #ff7a3b);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    animation: badgeBlink 1s infinite;
}

/* tombol LIVE */
.hot-match-item.live-highlight .hot-info_right.start a {
    background: linear-gradient(135deg, #ff3b3b, #ff7a3b);
    color: #fff;
    border-radius: 24px;
    font-weight: bold;
    animation: liveBtnPulse 1.2s infinite alternate;
}

/* =====================
   STATUS: SELESAI
===================== */
.hot-match-item:not(.live-highlight):not(.prelive) {
    background: #f1eff8;
    opacity: .75;
}

.hot-match-item:not(.live-highlight):not(.prelive) .hot-info_right a {
    background: #cfc8ea;
    color: #666;
    border-radius: 20px;
}

/* =====================
   LEFT INFO
===================== */
.hot-info_left {
    min-width: 90px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hot-time {
    font-size: 15px;
    font-weight: 600;
}

.hot-league a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

/* =====================
   CENTER INFO
===================== */
.hot-info_center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-home,
.hot-away {
    width: 40%;
    display: flex;
    align-items: center;
}

.hot-home { justify-content: flex-end; }
.hot-away { justify-content: flex-start; }

.hot-home img,
.hot-away img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.hot-home .text,
.hot-away .text {
    max-width: 120px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-score {
    width: 80px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

/* =====================
   RIGHT BUTTON
===================== */
.hot-info_right {
    width: 80px;
    text-align: center;
}

.hot-info_right a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
}

/* =====================
   ANIMASI (AMAN)
===================== */
@keyframes liveBtnPulse {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

@keyframes badgeBlink {
    0% { opacity: 1; }
    50% { opacity: .6; }
    100% { opacity: 1; }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {

    .hot-match-item {
        flex-wrap: wrap;
    }

    .hot-info_left { width: 22%; }
    .hot-info_center {
        width: 58%;
        flex-direction: column;
        align-items: flex-start;
    }
    .hot-info_right { width: 20%; }

    .hot-home,
    .hot-away {
        width: 100%;
        justify-content: flex-start;
    }

    .hot-score {
        width: auto;
        margin: 4px 0;
    }
}
/* ===============================
   🔥 FIRE EFFECT – REALISTIC
   =============================== */
.hot-match-item.live-highlight::after {
    content: "";
    position: absolute;
    left: -6px;
    top: 15%;
    width: 6px;
    height: 70%;
    background: linear-gradient(
        to bottom,
        rgba(255, 80, 0, 0),
        rgba(255, 120, 0, 0.9),
        rgba(255, 40, 0, 0.9),
        rgba(255, 80, 0, 0)
    );
    filter: blur(6px);
    animation: fireWave 1.2s infinite ease-in-out;
    pointer-events: none;
}

/* api bergelombang */
@keyframes fireWave {
    0% {
        opacity: .6;
        transform: translateY(0) scaleY(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-6px) scaleY(1.15);
    }
    100% {
        opacity: .6;
        transform: translateY(0) scaleY(1);
    }
}
/* ===============================
   🎯 LIVE BUTTON – CLICK MAGNET
   =============================== */
.hot-match-item.live-highlight .hot-info_right.start a {
    position: relative;
    overflow: hidden;
    animation: liveBeat 1.1s infinite;
}

/* denyut klik */
@keyframes liveBeat {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255,60,0,.6);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 18px rgba(255,90,0,.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255,60,0,.6);
    }
}

/* shimmer cahaya menyapu */
.hot-match-item.live-highlight .hot-info_right.start a::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -120%;
    width: 80%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );
    animation: shineMove 1.8s infinite;
}

@keyframes shineMove {
    0% { left: -120%; }
    60% { left: 120%; }
    100% { left: 120%; }
}
