.roster-swiper {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}
.swiper-slide {
    display: flex;
    justify-content: center;
    width: auto;
}
.card-inner {
    width: 300px;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform .6s ease;
    position: relative;
}
@media (min-width: 1024px) {
    .swiper-slide.is-big .card-inner {
        transform: scale(1.08);
    }

    .swiper-slide.is-small .card-inner {
        transform: scale(0.72);
    }
}
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    backface-visibility: hidden;
    overflow: hidden;
}

.card-front {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.card-back {
    transform: rotateY(180deg);
    background-color: white;
    position: relative;
}
.back-small-img {
    position: absolute;
    top: 12px;
    left: -85px;
    width: 300px;
    height: 490px !important;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.6);
    z-index: 1;
}
.card-back-inner {
    padding: 20px;
    color: black;
    font-size: 14px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 2;
}
.back-right {
    position: absolute;
    right: 10px;
    top: 15px;
    width: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}
.player-title-back {
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 80px;
    text-shadow: 5px 5px 3px #8a1b21;
    font-family: "Bebas Neue", Sans-serif;
    text-align: center;
    align-self: center;
}
.info-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    font-size: 12px;
    margin-top: -30px;
}
.info-list div {
    width: 100%;
    text-align: center;
    padding-bottom: 8px;
    margin-bottom: 8px;
    position: relative;
}
.info-list div::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: black;
    position: absolute;
    left: 0;
    bottom: 0;
}
.info-list div:last-child::after {
    display: none;
}
.stats {
    position: absolute;
    top: 350px;
    left: 54%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stats-labels,
.stats-values {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
    font-weight: 700;
}
.stats-values {
    margin-top: 8px;
    font-weight: 600;
}
.stats-line {
    top: 80px;
    width: 100%;
    height: 1px;
    background: black;
    margin: 6px 0;
}
.roster-card.is-flipped .card-inner {    align-items: center;
    justify-content: center;
    transform: rotateY(180deg);
}
.swiper-button-next, .swiper-button-prev {
    color: #fff;
}
.swiper-slide.is-big .card-front,
.swiper-slide.is-big .card-back {
    border-radius: 20px;
}
.roster-swiper .swiper {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}
.swiper-button-prev,
.swiper-button-next {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    color: #8a1b21 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
}
.player-info-vertical {
    position: absolute;
    left: 10px;
    top: 47%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
}
.player-title {
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: -5px 5px 3px #8a1b21;
    font-family: "Bebas Neue", Sans-serif;
    font-size: 30px !important;
}
.player-title {
    margin-left: -10px;
}
@media (max-width: 767px) {
    .card-inner {
        width: 300px;
        height: 450px;
        margin: 0 auto;
    }
    .stats {
        top: 350px;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .card-inner {
        width: 300px;
        height: 450px;
        margin: 0 auto;
    }
    .stats {
        top: 350px;
    }
    .roster-swiper {
        width: 100%;
        max-width: 680px;
    }
    .player-title {
        font-size: 27px !important;
    }

}
