.carousel-cell {
  width: 100%;
  display: flex;
}

.carousel-cell .banner-item img {
  max-width: 100%;
}

/* Banner Bottom */
#banners-bottom-container {
  position: relative;
}
.banners-bottom {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 950px;
  width: 100%;
  z-index: 9999;
  background: transparent; /* Tùy chỉnh nền nếu cần */
  padding: 0; /* Khoảng cách bên trong */
}

.banners-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mặc định 2 cột */
}

.banners-bottom-grid a img {
  width: 100%;
  height: auto;
}

/* Điều chỉnh trên thiết bị mobile */
@media (max-width: 768px) {
  .banners-bottom-grid {
    grid-template-columns: 1fr; /* Mỗi banner 1 hàng */
  }
}

#open-banner-bottom {
  position: fixed;
  bottom: 20px;
  left: 10px;
  background: red;
  color: white;
  border: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 5px;
}

#close-banner-bottom {
  position: absolute;
  top: -24px;
  left: 0;
  background: red;
  color: white;
  border: none;
  display: flex;
  align-items: center; /* Căn giữa biểu tượng theo chiều dọc */
  justify-content: center; /* Căn giữa biểu tượng theo chiều ngang */
  font-size: 14px; /* Kích thước biểu tượng chữ */
  line-height: 1; /* Đảm bảo nội dung không bị ảnh hưởng bởi chiều cao dòng */
  cursor: pointer;
  padding: 5px;
}

a.btn {
  display: inline-block; /* Hiển thị như một nút */
  padding: 12px 24px; /* Khoảng cách trong nút */
  font-size: 16px; /* Kích thước chữ */
  font-weight: bold; /* Chữ đậm */
  color: white; /* Màu chữ */
  text-decoration: none; /* Bỏ gạch chân */
  text-align: center; /* Căn giữa chữ */
  background: #c9aa71; /* Nền chuyển màu nổi bật */
  border: none; /* Không viền */
  border-radius: 8px; /* Bo góc */
  transition: all 0.3s ease;
  cursor: pointer; /* Con trỏ dạng bàn tay */
}

a.btn:hover {
  background: #af9463; /* Đổi hướng gradient khi hover */
  transform: translateY(-2px); /* Nút nhích lên khi hover */
  box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.3);
}

a.btn:active {
  transform: translateY(2px); /* Nút nhấn xuống khi click */
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2); /* Giảm đổ bóng khi click */
}

/* Top List Styles */
.top-list-container {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.top-list-item {
    display: grid;
    grid-template-columns: 80px 1fr 2fr 1fr;
    gap: 20px;
    align-items: center;
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.top-list-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.top-list-item.highlighted {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
}

.top-list-item .position-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    justify-self: center;
    transition: all 0.3s ease;
}

/* Vị trí #1 - Nổi bật đặc biệt */
.top-list-item[data-position="1"] .position-badge {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    animation: pulseGlow 2s infinite;
    border: 3px solid #fff;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
        transform: scale(1.05);
    }
}

.top-list-item[data-position="1"] .position-number {
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Toàn bộ item vị trí #1 nổi bật */
.top-list-item[data-position="1"] {
    border: 3px solid #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
    transform: scale(1.02);
    position: relative;
    overflow: visible;
}

.top-list-item[data-position="1"]::before {
    content: "👑 VỊ TRÍ QUÁN QUÂN";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    z-index: 10;
}

.top-list-item[data-position="1"] .casino-title {
    color: #e53e3e;
    font-size: 20px;
    font-weight: 800;
}

/* Vị trí #2 và #3 cũng nổi bật nhẹ */
.top-list-item[data-position="2"] .position-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid #fff;
}

.top-list-item[data-position="3"] .position-badge {
    background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
    box-shadow: 0 5px 15px rgba(205, 127, 50, 0.4);
    border: 2px solid #fff;
}

.top-list-item .position-number {
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.top-list-item .brand-column {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-width: 320px;
    flex: 0 0 320px;
}

.top-list-item .brand-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.top-list-item .casino-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    text-transform: uppercase;
}

.top-list-item .casino-logo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-list-item .casino-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.top-list-item .no-logo {
    font-size: 36px;
    font-weight: bold;
    color: #6c757d;
    text-transform: uppercase;
}

.top-list-item .casino-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
    text-transform: uppercase;
}

.top-list-item .content-column {
    padding-right: 15px;
}

.top-list-item .casino-content {
    margin: 0;
    color: #5a6c7d;
    line-height: 1.5;
    font-size: 14px;
}

.top-list-item .casino-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    width: 100%;
}

.top-list-item .btn-register,
.top-list-item .btn-review {
    flex: none;
    width: 100%;
    padding: 8px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.top-list-item .btn-register {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.top-list-item .btn-register:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #17a2b8 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.top-list-item .btn-review {
    background: linear-gradient(135deg, #007bff 0%, #6f42c1 100%);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.3);
}

.top-list-item .btn-review:hover {
    background: linear-gradient(135deg, #0056b3 0%, #5a2d91 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* Responsive cho buttons */
@media (max-width: 768px) {
    .casino-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .casino-actions .btn-register,
    .casino-actions .btn-review {
        flex: none;
        width: 100%;
        max-width: none;
        padding: 12px 15px;
        font-size: 16px;
    }
}

.top-list-item .highlight-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #ffc107 0%, #ff8800 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 0 12px 0 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.4);
}

/* Rating Stars */
.casino-rating {
    margin-top: 8px;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 140px;
    width: 140px;
}

.casino-rating .star {
    color: #ffd700;
    display: inline-block;
    font-size: 22px;
}

.casino-rating .star.filled {
    color: #ffa500;
}

/* Tags */
.casino-tags {
    margin-top: 12px;
}

.casino-tags .tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.casino-tags .tag:nth-child(2n) {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}

.casino-tags .tag:nth-child(3n) {
    background: linear-gradient(135deg, #4ecdc4 0%, #26d0ce 100%);
}

.casino-tags .tag:nth-child(4n) {
    background: linear-gradient(135deg, #45b7d1 0%, #2196f3 100%);
}

.casino-tags .tag:nth-child(5n) {
    background: linear-gradient(135deg, #96ceb4 0%, #4caf50 100%);
}

/* Responsive cho rating và tags */
@media (max-width: 768px) {
    .casino-rating {
        margin-top: 6px;
        font-size: 14px;
        text-align: center;
    }
    
    .casino-tags {
        margin-top: 10px;
        text-align: center;
    }
    
    .casino-tags .tag {
        font-size: 11px;
        padding: 3px 6px;
        margin-right: 4px;
        margin-bottom: 3px;
    }
}

/* Top List Mobile Responsive */
@media (max-width: 768px) {
    .top-list-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        text-align: center;
        padding: 16px;
        gap: 15px;
    }
    
    .top-list-item .position-badge {
        width: 40px;
        height: 40px;
        justify-self: center;
    }
    
    .top-list-item .position-number {
        font-size: 16px;
    }
    
    .top-list-item .brand-column {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        min-width: auto;
        flex: none;
    }
    
    .top-list-item .brand-info {
        align-items: center;
        text-align: center;
    }
    
    .top-list-item .casino-logo {
        width: 105px;
        height: 105px;
    }
    
    .top-list-item .casino-title {
        font-size: 16px;
        text-align: center;
    }
    
    .top-list-item .content-column {
        padding-right: 0;
    }
    
    .top-list-item .casino-content {
        text-align: center;
        font-size: 13px;
    }
    
    .top-list-item .casino-actions {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }
    
    .top-list-item .btn-register,
    .top-list-item .btn-review {
        width: 100%;
        min-width: unset;
        padding: 12px 16px;
    }
    
    .top-list-item .highlight-badge {
        position: static;
        border-radius: 20px;
        justify-self: center;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .top-list-container {
        margin: 16px 0;
    }
    
    .top-list-item {
        margin-bottom: 12px;
        padding: 12px;
    }
}

/* Hiệu ứng đặc biệt cho vị trí quán quân (có thể custom) */
.top-list-item.champion-position {
    border: 3px solid #ffd700;
    background: linear-gradient(135deg, #fff9c4 0%, #fff 50%, #fff9c4 100%);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: champion-glow 3s ease-in-out infinite alternate;
    transform: scale(1.02);
    z-index: 10;
}

.top-list-item.champion-position::before {
    content: "👑 VỊ TRÍ QUÁN QUÂN"; /* Default value, có thể được override bởi inline CSS */
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    z-index: 15;
    animation: crown-float 2s ease-in-out infinite alternate;
}

.top-list-item.champion-position .position-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    color: #333;
    border: 3px solid #ff6b35;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    animation: badge-pulse 2s ease-in-out infinite;
}

.top-list-item.champion-position .casino-title {
    color: #d4351c;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 22px;
}

.top-list-item.champion-position .btn-register {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    animation: button-glow 2.5s ease-in-out infinite alternate;
}

.top-list-item.champion-position .btn-register:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #e8841b 50%, #e6c200 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.top-list-item.champion-position .btn-review {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.top-list-item.champion-position .btn-review:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 50%, #de7ce9 100%);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Hiệu ứng nổi bật cho vị trí á quân (có thể bật/tắt) */
.top-list-item.runner-up-position {
    border: 2px solid #c0c0c0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 50%, #f8f9fa 100%);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.3), 0 6px 20px rgba(0, 0, 0, 0.1);
    transform: scale(1.01);
}

.top-list-item.runner-up-position::before {
    content: "🥈 Á QUÂN";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #333;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(192, 192, 192, 0.3);
}

.top-list-item.runner-up-position .position-badge {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #333;
    border: 2px solid #a0a0a0;
    font-weight: 800;
}

/* Hiệu ứng nổi bật cho vị trí hạng ba (có thể bật/tắt) */
.top-list-item.third-place-position {
    border: 2px solid #cd7f32;
    background: linear-gradient(135deg, #fff8f0 0%, #fff 50%, #fff8f0 100%);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.3), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.top-list-item.third-place-position::before {
    content: "🥉 HẠNG BA";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(205, 127, 50, 0.3);
}

.top-list-item.third-place-position .position-badge {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    color: white;
    border: 2px solid #b8860b;
    font-weight: 800;
}

/* Animations */
@keyframes champion-glow {
    0% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    100% {
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.8), 0 12px 35px rgba(0, 0, 0, 0.2);
    }
}

@keyframes crown-float {
    0% {
        transform: translateX(-50%) translateY(0px);
    }
    100% {
        transform: translateX(-50%) translateY(-3px);
    }
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
}

@keyframes button-glow {
    0% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }
    100% {
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    }
}

/* Responsive cho các hiệu ứng đặc biệt */
@media (max-width: 768px) {
    .top-list-item.champion-position,
    .top-list-item.runner-up-position,
    .top-list-item.third-place-position {
        transform: none;
        margin-top: 20px;
    }
    
    .top-list-item.champion-position::before,
    .top-list-item.runner-up-position::before,
    .top-list-item.third-place-position::before {
        position: static;
        transform: none;
        display: inline-block;
        margin-bottom: 10px;
        border-radius: 15px;
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .top-list-item.champion-position .casino-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .top-list-item.champion-position::before,
    .top-list-item.runner-up-position::before,
    .top-list-item.third-place-position::before {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* Ẩn hoàn toàn debug info */
.debug-info,
[style*="font-size: 10px"][style*="color: #999"],
div[style*="font-size: 10px; color: #999"],
div[style*="Debug:"] {
    display: none !important;
}
