/* Commentator Swiper Styles */

/* Swiper container for >3 items */
.commentator-swiper-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-commentators {
    width: 100%;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
}

.slider-commentators .swiper-wrapper {
    display: flex;
    align-items: center;
    transition-property: transform;
}

.slider-commentators .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc((100% - 12px) / 2);
    flex-shrink: 0;
    min-width: 0;
}

@media (min-width: 640px) {
    .slider-commentators .swiper-slide {
        width: calc((100% - 16px) / 2);
    }
}

@media (min-width: 1024px) {
    .slider-commentators .swiper-slide {
        width: calc((100% - 20px) / 2);
    }
}

.slider-commentators .swiper-slide a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Navigation buttons */
[class*="commentator-prev"],
[class*="commentator-next"] {
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

[class*="commentator-prev"]:hover,
[class*="commentator-next"]:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: #FF6601;
}

[class*="commentator-prev"].swiper-button-disabled,
[class*="commentator-next"].swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* Pagination - Hidden */
.slider-commentators .swiper-pagination {
    display: none !important;
}

/* Score area team logos: 20px mobile, 35px desktop */
.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
@media (min-width: 1024px) {
    .team-logo {
        width: 35px;
        height: 35px;
    }
}

/* Single item layout - full width */
.commentator-single-item {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Two items layout - centered */
.commentator-two-items {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Responsive adjustments */
@media (min-width: 640px) {
    .slider-commentators {
        padding: 0 12px;
    }
}

@media (min-width: 1024px) {
    .slider-commentators {
        padding: 0 16px;
    }
    
    [class*="commentator-prev"],
    [class*="commentator-next"] {
        width: 32px;
        height: 32px;
    }
}

/* Hide pagination if only 2-3 slides visible (when slidesPerView = 2) */
.slider-commentators .swiper-pagination:has(.swiper-pagination-bullet:only-child) {
    display: none;
}


.cakhia-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    padding-top: 2rem;
    padding-bottom: 2rem;
    width: 100%;
}
.cakhia-loading div[role="status"] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;   
    width: 60px;
}
.fill-brand {
    fill: #FF6601;
}

/* Match Card Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.match-card {
    position: relative;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

/* Running border: 4 line chạy liên tục khi hover, theo style Socolive */
.match-card.running-border .match-item-inner {
    position: relative;
    overflow: hidden;
}

.match-card.running-border .match-item-inner > span {
    pointer-events: none;
    display: none;
}

.match-card.running-border:hover .match-item-inner > span {
    display: block;
}

/* (1) Line trên: trái → phải */
.match-card.running-border .match-item-inner > span:nth-child(1) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, rgba(12, 0, 43, 0), #FF6601);
    z-index: 100;
    animation: 2s linear infinite running-border-1;
}

@keyframes running-border-1 {
    0% {
        transform: translate(-100%);
    }
    to {
        transform: translate(100%);
    }
}

/* (2) Line phải: trên → dưới (delay 1s) */
.match-card.running-border .match-item-inner > span:nth-child(2) {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(12, 0, 43, 0), #FF6601);
    z-index: 100;
    animation: 2s linear 1s infinite running-border-2;
}

@keyframes running-border-2 {
    0% {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(100%);
    }
}

/* (3) Line dưới: phải → trái */
.match-card.running-border .match-item-inner > span:nth-child(3) {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to left, rgba(12, 0, 43, 0), #FF6601);
    z-index: 100;
    animation: 2s linear infinite running-border-3;
}

@keyframes running-border-3 {
    0% {
        transform: translate(100%);
    }
    to {
        transform: translate(-100%);
    }
}

/* (4) Line trái: dưới → trên (delay 1s) */
.match-card.running-border .match-item-inner > span:nth-child(4) {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to top, rgba(12, 0, 43, 0), #FF6601);
    z-index: 100;
    animation: 2s linear 1s infinite running-border-4;
}

@keyframes running-border-4 {
    0% {
        transform: translateY(100%);
    }
    to {
        transform: translateY(-100%);
    }
}

.match-card:nth-child(1) {
    animation-delay: 0.05s;
}

.match-card:nth-child(2) {
    animation-delay: 0.1s;
}

.match-card:nth-child(3) {
    animation-delay: 0.15s;
}

.match-card:nth-child(4) {
    animation-delay: 0.2s;
}

.match-card:nth-child(5) {
    animation-delay: 0.25s;
}

.match-card:nth-child(6) {
    animation-delay: 0.3s;
}

.match-card:nth-child(n+7) {
    animation-delay: 0.35s;
}

.svg-loading {
    width: 2rem;          /* w-8 */
    height: 2rem;         /* h-8 */
    color: var(#FF6601); /* text-neutral-tertiary */
    fill: var(#FF6601);   /* fill-brand */
    animation: spin 1s linear infinite; /* animate-spin */
    }

    @keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
    }