/* ranking/assets/style.css */
.ranking-banner-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
    padding: 20px 0;
    background-color: #0a0a0a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.br-top-slider-container {
    width: 100%;
    max-width: 1110px; /* Increased by 150px from 960px */
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.br-top-slider-container .swiper-slide {
    text-align: center;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.br-top-slider-container .swiper-slide a {
    display: block;
    position: relative;
    width: 100%;
}

.br-top-slider-container img.br-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 0;
}

/* 2-column layout, max-width 960px to widen PC */
.br-banner-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 960px;
    margin: 0 auto;
    justify-content: center;
    gap: 0; 
}

.br-banner-item-frontend {
    text-align: center;
}

.br-banner-item-frontend img.br-img {
    width: 100%;
    height: auto;
    aspect-ratio: 400 / 120;
    object-fit: fill;
    display: block;
    margin: 0;
    transition: filter 0.2s ease-in-out;
}

.br-banner-item-frontend a {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Center last banner if odd count */
.br-banner-item-frontend:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
}

.br-banner-item-frontend:last-child:nth-child(odd) a {
    flex: 0 0 50%;
    max-width: 480px;
}

/* Glass Shine Effect */
.br-banner-item-frontend a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.7) 20%,
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.4) 80%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: br-shine 3s infinite linear;
    z-index: 2;
    pointer-events: none;
}

@keyframes br-shine {
    0% { left: -150%; }
    100% { left: 150%; }
}

/* Glowing Border Effect */
.br-banner-item-frontend a::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    box-sizing: border-box;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
    animation: br-border-pulse 3s infinite alternate ease-in-out;
    z-index: 3;
}

@keyframes br-border-pulse {
    0% {
        border-color: rgba(255, 215, 0, 0.4);
        box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.2), inset 0 0 5px rgba(255, 255, 255, 0.1);
    }
    33% {
        border-color: rgba(0, 255, 255, 0.8);
        box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.5), inset 0 0 8px rgba(255, 255, 255, 0.4);
    }
    66% {
        border-color: rgba(255, 0, 128, 0.8);
        box-shadow: inset 0 0 20px rgba(255, 0, 128, 0.5), inset 0 0 8px rgba(255, 255, 255, 0.4);
    }
    100% {
        border-color: rgba(255, 215, 0, 1);
        box-shadow: inset 0 0 30px rgba(255, 215, 0, 0.8), inset 0 0 12px rgba(255, 255, 255, 0.8);
    }
}

.br-banner-item-frontend a:hover img.br-img {
    filter: brightness(1.15); /* Transform & shadow removed for seamless tiling */
}

.swiper-button-next, .swiper-button-prev {
    color: rgba(255,255,255,0.8) !important;
}

.swiper-pagination-bullet-active {
    background: #fff !important;
}

@media (max-width: 820px) {
    .ranking-banner-container {
        padding: 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    .br-banner-list {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    .br-banner-item-frontend:last-child:nth-child(odd) a {
        flex: 0 0 50%; /* Exact size of a mobile column */
    }
}
