.event-card {
    display: grid;

    /* 🔥 균형 구조 */
    grid-template-columns: 2fr 1fr 2fr;

    align-items: center;
    justify-items: center;

    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 10px;
    border-bottom: 1px solid #555;

    text-decoration: none;
    color: white;

    /*transition: background 0.15s ease;*/
    transition: 0.2s ease;

    column-gap: 1rem;
    padding:0.05rem 1.2rem;
    height: 10rem;

    background-color: rgba(255,255,255,0.08);
}

.event-card:hover {
    /*background: #2a2a2a;*/
    background-color: rgba(255,255,255,0.12);
}

.event-card:active {
    background: #333;
}

.countdown[data-status="upcoming"] {
    filter: brightness(1.15);
}

.countdown[data-status="finished"] {
    opacity: 1.0;
    filter: grayscale(0.6);
}

.countdown[data-status="live"] {
    animation: blink 2.5s infinite;
    color: red;
}

.countdown[data-status="live"] .status {
    color: #ff0000;
    font-weight: 700;
    animation: blink 0.8s infinite;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
}

.event-card:has(.countdown[data-status="finished"]) {
    opacity: 0.4;
}

.event-img {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.event-img img {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 20%;
    /*transform: translateX(6rem);*/
    margin-bottom: 5px;

}

.event-info {
    margin: 10px 0;
    line-height: 2.0;
    justify-self: center;
    text-align: center;
}

 /* 정보 */
.event-info h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.event-info p {
    text-align: center;
    color: #bbb;
    font-size: 20px;
    margin-bottom: 5px;
}

.countdown {
    font-size: 2.2rem;
    font-weight: bold;
    color: crimson;
    text-align: center;
}

.match-list {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    background: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-card {
    padding: 10px;
    margin: 8px 0;
    background: #222;
    color: white;
    border-radius: 6px;
}


.match-item {
    width: 100%;
    display: grid;
    grid-template-columns: 25.0rem 10.0rem 20.0rem 5rem;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #444;
    font-size: 1.2rem;
    cursor: pointer;
    max-width: 100%;   
    margin: 0 auto; 
    background-color: rgba(255,255,255,0.03);
}

.match-item:hover {
    background-color: rgba(255,255,255,0.10);
}

.fighter-left {
    justify-self: center;
    text-align: center;
    margin-left: 30px;
}

.fighter-right {
    justify-self: center;
    text-align: center;
    margin-left: 30px;
}

.vs {
    justify-self: center;
    text-align: center;
    font-weight: bold;
}


 .divider{
    display:none;
}

.winner {
    color: #6fbf73;
    font-weight: 700;
}

.loser {
    color: #7a7a7a;
}

.video-btn {
    width: 90px;
    height: 48px;
    cursor: pointer;
    margin-left: 330px;
    justify-self: center;
    transition: all 0.15s ease;
}

.video-btn:hover {
    transform: scale(1.15);
    opacity: 0.8;
}


@media (max-width: 1100px) {
    .event-card {
        grid-template-columns: 120px 1fr;
        grid-template-rows: auto auto;
        height: auto;
        padding: 1rem;
    }

    .event-img {
        grid-row: 1 / 3;
    }

    .countdown {
        grid-column: 2;
    }

    .event-info {
        width: 230px;
        min-width: 0;
    }

    .event-info h2 {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .event-info p {
        display:none;
    }
    
    .match-item{
        display:grid;
        grid-template-columns: 1fr 40px;
        align-items:center;
    }
    
    .match-info{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:6px;
        margin-right: 100px;
    }
    
    .divider{
        display:flex;
        width: 50px;
        height: 1px;
        background: #555;
    }

    .vs {
        display:none;
    }
  
    .video-btn {
        display:flex;
        justify-content:center;
        align-items:center;
        margin-left: 0px;
        margin-right: 100px;
    }

    .fighter-left,
    .fighter-right {
        width:100%;
        text-align:center;
        transform: translateX(-14px);
    }
}

@media (max-width: 600px) {
    .event-info h2 {font-size: 1.2rem;}
}

@media (max-width: 400px) {
    .countdown {font-size: 1.6rem;}
    .event-info h2 {font-size: 1.0rem;}
}