/**
 * V-League NBA-Style Match Ticker
 * Horizontal scrolling game scores carousel
 */

/* Ticker Bar Container */
.vl-ticker-bar {
    background: #FFFFFF;
    border-bottom: 1px solid #E5E5E5;
    position: relative;
    z-index: 1001;
    height: 105px;
    max-width: 100vw;
    overflow: hidden;
}

.vl-ticker-container {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 100%;
    padding: 0;
}

/* Date Column */
.vl-ticker-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-right: 1px solid #E5E5E5;
    height: 100%;
    min-width: 70px;
    background: #F8F8F8;
}

.vl-ticker-day {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.05em;
}

.vl-ticker-date-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-top: 2px;
}

/* Navigation Arrows */
.vl-ticker-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vl-ticker-nav:hover {
    background: #F0F0F0;
    color: #00AA5B;
}

.vl-ticker-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Games Wrapper - Scrollable Container */
.vl-ticker-games-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
    min-width: 0;
    /* Critical for flex child to shrink */
}

.vl-ticker-games {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
    gap: 0;
}

/* Individual Game Card */
.vl-ticker-game {
    display: flex;
    flex-direction: column;
    min-width: 260px;
    height: 100%;
    padding: 8px 18px;
    border-right: 1px solid #E5E5E5;
    background: #FFFFFF;
    transition: background 0.2s ease;
}

.vl-ticker-game:hover {
    background: #F8F8F8;
}

.vl-ticker-game.is-live {
    background: rgba(0, 170, 91, 0.05);
}

/* Game Time / Status */
.vl-ticker-game-time {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.vl-game-time {
    color: #1A1A1A;
    font-weight: 600;
}

.vl-live-badge {
    background: #E31837;
    color: #FFFFFF;
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: 700;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.vl-final-badge {
    color: #666;
    font-weight: 600;
    font-size: 0.65rem;
}

/* Teams Container */
.vl-ticker-teams {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

/* Individual Team Row */
.vl-ticker-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vl-ticker-team.winner .vl-ticker-team-name,
.vl-ticker-team.winner .vl-ticker-team-score {
    font-weight: 700;
    color: #1A1A1A;
}

.vl-ticker-team-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.vl-ticker-team-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.vl-ticker-team-logo-placeholder {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #00AA5B, #008847);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    color: #FFFFFF;
    flex-shrink: 0;
}

.vl-ticker-team-name {
    font-size: 0.8rem;
    color: #333;
    white-space: nowrap;
}

.vl-ticker-team-score {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    min-width: 28px;
    text-align: right;
}

/* Game Link */
.vl-ticker-game-link {
    margin-top: 2px;
}

.vl-ticker-game-link a {
    font-size: 0.65rem;
    color: #00AA5B;
    text-decoration: none;
    font-weight: 500;
}

.vl-ticker-game-link a:hover {
    text-decoration: underline;
}

/* View All Calendar Link */
.vl-ticker-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 100%;
    background: #F8F8F8;
    border-left: 1px solid #E5E5E5;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.vl-ticker-view-all:hover {
    background: #E8E8E8;
    color: #00AA5B;
}

/* No Games Message */
.vl-ticker-no-games {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 30px;
    color: #999;
    font-size: 0.85rem;
}

/* Adjust header position when ticker is present */
/* body.has-ticker .vl-header {
    top: 100px;
} */

/* body.has-ticker .vl-main {
    padding-top: 65px;
} */

/* Mobile Responsive */
@media (max-width: 768px) {
    .vl-ticker-bar {
        height: 55px;
    }

    .vl-ticker-date {
        padding: 0 12px;
        min-width: 55px;
    }

    .vl-ticker-day {
        font-size: 0.6rem;
    }

    .vl-ticker-date-num {
        font-size: 0.7rem;
    }

    .vl-ticker-game {
        min-width: 200px;
        padding: 6px 12px;
    }

    .vl-ticker-team-name {
        font-size: 0.7rem;
    }

    .vl-ticker-nav {
        width: 28px;
    }

    .vl-ticker-view-all {
        width: 40px;
    }

    /* body.has-ticker .vl-header {
        top: 55px;
    } */

    /* body.has-ticker .vl-main {
        padding-top: 55px;
    } */
}

/* Hide ticker on very small screens */
@media (max-width: 480px) {
    .vl-ticker-game-link {
        display: none;
    }

    .vl-ticker-game {
        min-width: 130px;
        padding: 6px 10px;
    }
}