@charset "UTF-8";

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.banner-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    padding: 10px;
    max-width: 100%;
    margin: 0 auto;
    justify-items: center;
}

.banner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

.banner-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 15%;
    max-width: 80px;
    max-height: 80px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-title {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.banner-link {
    display: block;
    width: 100%;
}

.banner-item:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .banner-container {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .banner-title {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .banner-container {
        max-width: 1200px;
    }
}

@media (prefers-color-scheme: dark) {
    .banner-title {
        color: #eee;
    }
    
    .banner-image {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
}

.banner-ad-container {
    width: 100%;
    height: 80px; 
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    background-color: #f5f5f5;
    box-sizing: border-box;
}

.banner-ad {
    width: 100%; 
    height: 100%;
    object-fit: fill; 
    display: block;
}

@media (max-width: 960px) {
    .banner-ad-container {
        height: 80px;
    }
}