#banner-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-bottom: 20px;
}

#banner-wrapper a {
  display: block;
}

#banner-wrapper a img {
  width: 100%;
  /*border: 2px solid #ffd804;*/
  border-radius: 8px;
  transition: transform .3s, box-shadow .3s;
}

#banner-wrapper a img:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  #banner-wrapper {
    grid-template-columns: 1fr;
  }
}


/* === Toplist style === */
.toplist-item {
  display: flex;
  align-items: center;
  background: #2e0030;
  border: 2px solid #ffd804;
  border-radius: 8px;
  padding: 12px 35px;
  margin-bottom: 16px;
  gap: 12px;
}

.toplist-logo img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
}

.toplist-text {
    text-align: center;
  flex: 1;
}
.toplist-text h2 {
  font-size: 18px;
  color: #ffd804;
  margin: 0 0 4px;
}
.toplist-text p {
  font-size: 14px;
  color: #fff;
  margin: 0;
}

.toplist-rating {
  color: #ffd804;
  text-align: center;
  font-size: 14px;
}

/*Button*/
.btn-play {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 2px solid #ffd804;
  color: #ffd804;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background .3s, color .3s, transform .3s;
}
.btn-play:hover {
  background: #ffd804;
  color: #000;
  transform: translateY(-2px);
}

/*Mobile*/
@media (max-width: 768px) {
  .toplist-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }

  .toplist-text {
    margin: 8px 0;
  }

  /*rating button 1 block */
  .toplist-rating, .btn-play {
    width: 100%;
  }

  .toplist-rating {
    margin-bottom: 8px;
  }
  .btn-play {
    margin-bottom: 4px;
  }
}

/* === Badge thứ hạng === */
.toplist-item {
  position: relative; 
  display: flex;
  align-items: center;
  background: #2e0030;
  border: 2px solid #ffd804;
  border-radius: 8px;
  padding: 12px 35px 12px 45px; 
  margin-bottom: 16px;
  gap: 12px;
}

.toplist-rank {
  position: absolute;
  top: 12px;
  left: -10px;
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/*icon 👑 */
.toplist-rank.rank-1 {
  background: linear-gradient(135deg, #ffd804, #ff63d8, #ff3d94);
  animation: pulseGlow 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.toplist-rank.rank-1 .crown {
  font-size: 14px;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px #ffd804; transform: scale(1); }
  50% { box-shadow: 0 0 12px #ff63d8; transform: scale(1.05); }
  100% { box-shadow: 0 0 5px #ffd804; transform: scale(1); }
}

.toplist-rank.rank-2 {
  background: linear-gradient(135deg,#8a4fff,#4f34ff);
}

.toplist-rank.rank-default {
  background: linear-gradient(135deg,#6a6aff,#3f3fff);
}

.toplist-logo img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
}
.toplist-text {
  text-align: center;
  flex: 1;
}
.toplist-text h2 {
  font-size: 28px;
  color: #ffd804;
  margin: 0 0 4px;
}
.toplist-text p {
  font-size: 14px;
  color: #fff;
  margin: 0;
}
.toplist-rating {
  color: #ffd804;
  text-align: center;
  font-size: 14px;
}
.btn-play {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 2px solid #ffd804;
  color: #000;
  background: #ffd804;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background .3s, color .3s, transform .3s;
}
.btn-play:hover {
  background: #ed81ff;
  color: #000;
  transform: translateY(-2px);
}

/* === Responsive: Mobile === */
@media (max-width: 768px) {
  .toplist-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 35px; 
  }

  .toplist-text {
    margin: 8px 0;
  }

  .toplist-rating, .btn-play {
    width: 100%;
  }
  .toplist-rating {
    margin-bottom: 8px;
  }
}

.khungcuonsang {
background:rgb(46 0 48 / 68%);
 position: relative;
 width: auto;
 height: 50vh;
 border: 2px solid #eeee22;
 border-radius: 8px;
 overflow-y: auto;
 padding: 15px;
 animation: glowing-border 2s infinite alternate;
 z-index: 999;
 margin-top: 20px;
}

@keyframes glowing-border {
 0% { border-color: #eeee22; box-shadow: 0 0 10px #eeee22; }
 50% { border-color: #eeee22; box-shadow: 0 0 15px #eeee22; }
 100% { border-color: #eeee22; box-shadow: 0 0 10px #eeee22; }
} 

/* === Floating Catfish Bar === */
#catfish-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 0px 50px;
  box-sizing: border-box;
}

.catfish-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/*nút đóng [x] Đóng quảng cáo */
.catfish-close {
  position: absolute;
  top: -38px; 
  right: 0px;
  background: #ff2600;
  color: #fff;
  padding: 4px 10px;
  font-size: 14px;
  border: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s;
}
.catfish-close:hover {
  background: #ff4500;
}

#catfish-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PC 2 cột */
  gap: 1px 8px;
}

#catfish-wrapper a {
  display: block;
}

#catfish-wrapper a img {
  width: 100%;1px 8px
  max-height: 90px;
  /*border: 2px solid #ffd804;*/
  border-radius: 6px;
  transition: transform .3s, box-shadow .3s;
}

#catfish-wrapper a img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Mobile: 1 cột */
@media (max-width: 768px) {
  #catfish-wrapper {
    grid-template-columns: 1fr;}
  .catfish-close {
    top: -25px;
    right: 5px;
    font-size: 12px;
    padding: 3px 8px;
  }
}


