/* Last matches Swiper slider layout */
.vbm-last-matches-slider {
    position: relative;
    margin: 15px 0;
    padding: 0 60px; /* Больше padding для стрелок */
}

.vbm-swiper-slider .swiper-container {
    overflow: hidden;
    position: relative;
}

.vbm-swiper-slider .swiper-wrapper {
    display: flex;
    transition-timing-function: ease-out;
}

.vbm-swiper-slider .swiper-slide {
    flex-shrink: 0;
    width: 400px;
    height: auto;
}

/* Блок матча - сохраняем оригинальные стили */
.vbm-last-matches .vbm-match-column {
    width: 100%;
}

.vbm-last-matches .vbm-match-block {
    background: #00335b;
    border-radius: 30px;
    border: 3px solid #fff;
    height: 100%;
    transition: transform 0.3s ease;
    margin: 10px 15px;
}

.vbm-last-matches .vbm-match-block:hover {
    transform: translateY(-5px);
}

.vbm-last-matches .vbm-match-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 12px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.vbm-last-matches .vbm-match-link:hover {
    text-decoration: none;
    color: inherit;
}

.vbm-last-matches .vbm-match-date {
    display: block;
    margin: 0;
    color: #fcfcfc;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.vbm-last-matches .vbm-teams-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 5px 0;
    flex: 1;
}

.vbm-last-matches .vbm-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.vbm-last-matches .vbm-team-logo {
    display: block;
    margin-bottom: 5px;
}

.vbm-last-matches .vbm-team-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #fff;
    padding: 2px;
    box-sizing: border-box;
}

.vbm-last-matches .vbm-team-name {
    color: #fcfcfc;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.vbm-last-matches .vbm-match-score {
    font-size: 30px;
    font-weight: 700;
    color: #fcfcfc;
    margin: 0 5px;
}

.vbm-last-matches .vbm-match-info {
    margin-top: auto;
    padding: 8px 0 0 0;
    text-align: center;
}

.vbm-last-matches .vbm-league {
    color: #8fa3b8;
    font-size: 11px;
    margin: 4px 0;
    font-weight: 500;
    line-height: 1.3;
}

.vbm-last-matches .vbm-venue {
    color: #8fa3b8;
    font-size: 11px;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.vbm-last-matches .vbm-league {
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    width: 80%;
    max-width: 160%;
    min-width: 150px;
    text-align: center;
}

/* Swiper Navigation - стили как в Elementor */
.vbm-swiper-slider .swiper-button-prev,
.vbm-swiper-slider .swiper-button-next {
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #00335b;
    color: #fff;
    transition: all 0.3s ease;
    margin-top: -20px;
    opacity: 0;
    visibility: hidden;
}

.vbm-swiper-slider:hover .swiper-button-prev,
.vbm-swiper-slider:hover .swiper-button-next {
    opacity: 1;
    visibility: visible;
}

.vbm-swiper-slider .swiper-button-prev:hover,
.vbm-swiper-slider .swiper-button-next:hover {
    background: #fff;
    color: #00335b;
    transform: scale(1.1);
}

.vbm-swiper-slider .swiper-button-prev:after,
.vbm-swiper-slider .swiper-button-next:after {
    font-size: 16px;
    font-weight: bold;
}

.vbm-swiper-slider .swiper-button-prev {
    left: 10px;
}

.vbm-swiper-slider .swiper-button-next {
    right: 10px;
}

.vbm-swiper-slider .swiper-button-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
    transform: none !important;
}

.vbm-swiper-slider .swiper-button-disabled:hover {
    background: #00335b !important;
    color: #fff !important;
}

/* Mobile version - вертикальный стек */
@media (max-width: 1024px) {
    .vbm-last-matches-slider {
        padding: 0 20px;
    }
    
    .vbm-swiper-slider .swiper-button-prev,
    .vbm-swiper-slider .swiper-button-next {
        display: none;
    }
    
    .vbm-swiper-slider .swiper-wrapper {
        flex-direction: column;
        transform: none !important;
    }
    
    .vbm-swiper-slider .swiper-slide {
        width: 100% !important;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .vbm-last-matches .vbm-match-block {
        margin: 5px 0;
    }
}

/* Остальные медиа-запросы остаются без изменений... */

.vbm-last-matches .vbm-match-block:hover {
    transform: translateY(-2px);
}

.vbm-last-matches .vbm-match-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    padding: 12px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.vbm-last-matches .vbm-match-link:hover {
    text-decoration: none;
    color: inherit;
}

.vbm-last-matches .vbm-match-date {
    display: block;
    margin: 0;
    color: #fcfcfc;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.vbm-last-matches .vbm-teams-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 5px 0;
    flex: 1;
}

.vbm-last-matches .vbm-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.vbm-last-matches .vbm-team-logo {
    display: block;
    margin-bottom: 5px;
}

.vbm-last-matches .vbm-team-logo img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #fff;
    padding: 2px;
    box-sizing: border-box;
}

.vbm-last-matches .vbm-team-name {
    color: #fcfcfc;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.vbm-last-matches .vbm-match-score {
    font-size: 30px;
    font-weight: 700;
    color: #fcfcfc;
    margin: 0 5px;
}

.vbm-last-matches .vbm-match-info {
    margin-top: auto;
    padding: 8px 0 0 0;
    text-align: center;
}

.vbm-last-matches .vbm-league {
    color: #8fa3b8;
    font-size: 11px;
    margin: 4px 0;
    font-weight: 500;
    line-height: 1.3;
}

.vbm-last-matches .vbm-venue {
    color: #8fa3b8;
    font-size: 11px;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

.vbm-last-matches .vbm-league {
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    width: 80%;
    max-width: 160%;
    min-width: 150px;
    text-align: center;
}

.vbm-last-matches.vbm-no-matches {
    text-align: center;
    padding: 40px;
}

.vbm-last-matches.vbm-no-matches p {
    color: #8fa3b8;
    font-size: 16px;
    margin: 0;
}

/* Navigation arrows */
.vbm-slider-nav {
    position: relative;
    width: 40px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #00335b;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.vbm-slider-container:hover .vbm-slider-nav {
    opacity: 1;
    visibility: visible;
}

.vbm-slider-nav:hover {
    background: #fff;
    color: #00335b;
    transform: scale(1.1);
}

.vbm-slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.vbm-slider-nav:disabled:hover {
    background: #00335b;
    color: #fff;
}

.vbm-slider-nav svg {
    width: 20px;
    height: 20px;
}

/* Hide scrollbar but keep functionality */
.vbm-last-matches-wrapper {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.vbm-last-matches-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Mobile version - вертикальный стек */
@media (max-width: 1024px) {
    .vbm-last-matches-slider {
        padding: 0 20px;
    }
    
    .vbm-slider-nav {
        display: none; /* Скрываем стрелки на мобильных */
    }
    
    .vbm-last-matches-wrapper {
        overflow: visible;
    }
    
    .vbm-last-matches {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        transform: none !important;
    }
    
    /* НА МОБИЛЬНЫХ ВОЗВРАЩАЕМ ОРИГИНАЛЬНУЮ ШИРИНУ */
    .vbm-last-matches-slider .vbm-match-column {
        flex: 1;
        min-width: 300px;
        max-width: 400px;
        width: auto;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .vbm-last-matches-slider {
        padding: 0 10px;
    }
    
    .vbm-last-matches .vbm-match-block {
        border-radius: 25px;
        border-width: 2px;
    }
    
    .vbm-last-matches .vbm-match-link {
        min-height: 180px;
        padding: 10px;
    }
    
    .vbm-last-matches .vbm-teams-container {
        gap: 10px;
    }
    
    .vbm-last-matches .vbm-team-logo img {
        width: 70px;
        height: 70px;
    }
    
    .vbm-last-matches .vbm-team {
        min-width: 70px;
    }
    
    .vbm-last-matches .vbm-team-name {
        font-size: 12px;
        max-width: 100px;
    }
    
    .vbm-last-matches .vbm-match-score {
        font-size: 24px;
        margin: 0 10px;
    }
    
    .vbm-last-matches .vbm-match-date {
        font-size: 14px;
    }
    
    .vbm-last-matches .vbm-match-info {
        padding: 0;
    }
    
    .vbm-last-matches .vbm-league {
        font-size: 10px;
        margin: 3px 0;
    }
    
    .vbm-last-matches .vbm-venue {
        font-size: 10px;
        margin: 0;
    }
    
    .vbm-last-matches .vbm-league {
        padding-bottom: 4px;
        margin-bottom: 4px;
        width: 70%;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .vbm-last-matches {
        gap: 30px;
    }
    
    .vbm-last-matches .vbm-match-block {
        border-radius: 20px;
        border-width: 2px;
    }
    
    .vbm-last-matches .vbm-match-link {
        min-height: 160px;
        padding: 8px;
    }
    
    .vbm-last-matches .vbm-team-logo img {
        width: 80px;
        height: 80px;
    }
    
    .vbm-last-matches .vbm-team {
        min-width: 60px;
    }
    
    .vbm-last-matches .vbm-team-name {
        font-size: 14px;
        max-width: 80px;
    }
    
    .vbm-last-matches .vbm-match-score {
        font-size: 20px;
        margin: 0 10px;
    }
    
    .vbm-last-matches .vbm-match-date {
        font-size: 13px;
    }
    
    .vbm-last-matches .vbm-teams-container {
        gap: 8px;
    }
    
    .vbm-last-matches .vbm-league {
        font-size: 10px;
        margin: 3px 0;
    }
    
    .vbm-last-matches .vbm-venue {
        font-size: 10px;
        margin: 0;
    }
    
    .vbm-last-matches .vbm-league {
        width: 60%;
        min-width: 100px;
    }
}

/* Mobile limited version */
.vbm-mobile-limited .swiper-slide {
    width: 100% !important;
    max-width: 500px;
    margin: 0 auto 15px !important;
}

.vbm-mobile-limited .swiper-slide[style*="display: none"] {
    display: none !important;
}

/* Mobile version - вертикальный стек */
@media (max-width: 1024px) {
    .vbm-last-matches-slider {
        padding: 0 20px;
    }
    
    .vbm-swiper-slider .swiper-button-prev,
    .vbm-swiper-slider .swiper-button-next {
        display: none;
    }
    
    .vbm-swiper-slider .swiper-wrapper {
        flex-direction: column;
        transform: none !important;
    }
    
    .vbm-swiper-slider .swiper-slide {
        width: 100% !important;
        max-width: 500px;
        margin: 0 auto 15px !important;
    }
    
    .vbm-last-matches .vbm-match-block {
        margin: 0;
    }
    
    /* Скрываем лишние матчи на мобильных */
    .vbm-mobile-limited .swiper-slide:nth-child(n+4) {
        display: none !important;
    }
}
