body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  color: #fff;
  padding: 20px;
  line-height: 1.6;
}

.channel-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 auto;
  max-width: 1400px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(11, 15, 25, 0.98) 100%);
  border-radius: 24px;
  border: 1px solid rgba(234, 179, 8, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.channel {
  flex: 1 1 100%;
  max-width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(234, 179, 8, 0.15);
  margin: 10px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.channel:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.3);
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 1) 100%);
}

.channel h2 {
  text-align: center;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 28px;
  margin: 20px 0;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.tab-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14px;
}

.tab-btn:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tab-btn.active {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
}

video {
  width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
  color: white;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
  animation: pulse 2s infinite;
}

.live-time {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 8px;
  z-index: 10;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-icon:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.loading-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 12px;
  display: none;
  z-index: 20;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bảng Caro (Big Road) */
button {
  padding: 12px 20px;
  font-size: 16px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

button:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.style-one span {
  display: inline-block;
  padding: 8px 12px;
  margin: 4px;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.style-one span:hover {
  transform: scale(1.05);
}

.B { 
  background: linear-gradient(135deg, #ff4d4d 0%, #cc0000 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.P { 
  background: linear-gradient(135deg, #4d79ff 0%, #0033cc 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 255, 0.3);
}

.T { 
  background: linear-gradient(135deg, #808080 0%, #404040 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(128, 128, 128, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .channel-container {
    padding: 15px;
    gap: 16px;
  }

  .channel {
    margin: 5px;
    border-radius: 16px;
  }

  .channel h2 {
    font-size: 24px;
    margin: 15px 0;
  }

  h1 {
    font-size: 20px;
    padding: 12px;
  }

  .tab-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .live-badge, .live-time {
    font-size: 12px;
    padding: 4px 8px;
  }

  .volume-icon {
    padding: 6px;
  }
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.live-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(to right, #ff4d4d 50%, transparent 50%);
  background-size: 200% 100%;
  z-index: 5;
  animation: progress 30s linear infinite;
}

@keyframes progress {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

/* 🧩 Bảng caro - style-two */
.style-two {
display: grid;
grid-auto-flow: column;           /* mỗi cột theo chiều dọc */
grid-template-rows: repeat(6, 1fr); /* 6 hàng cố định */
gap: 4px;
padding: 10px;
background: #eee;
border: 1px solid #ccc;
width: max-content;
}

.cell {
width: 30px;
height: 30px;
border: 1px solid #999;     /* 👉 border để thấy rõ "ô" */
text-align: center;
line-height: 30px;
font-weight: bold;
font-size: 14px;
border-radius: 4px;
background-color: white;
}

.cell.B { background-color: #e74c3c; color: white; }
.cell.P { background-color: #3498db; color: white; }
.cell.T { background-color: #7f8c8d; color: white; }
.style-two {
display: grid;
grid-auto-flow: column;
grid-template-rows: repeat(6, 1fr);
gap: 4px;
padding: 10px;
background: #eee;
border: 1px solid #ccc;
width: max-content;
overflow-x: auto;       /* ✅ Cho phép cuộn ngang nếu dài */
}

#board {
overflow-x: auto;       /* ✅ Bọc ngoài cũng nên có */
max-width: 100%;        /* ✅ Giới hạn trong khung trình duyệt */
}
#board::-webkit-scrollbar {
height: 6px;
}
#board::-webkit-scrollbar-thumb {
background: #aaa;
border-radius: 3px;
}

/* đặt cược */
.chip-container {
  margin: 40px auto;
  display: flex;
  align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  justify-content: center;
  gap: 35px;
  flex-wrap: nowrap;
  padding: 30px;
  max-width: 1400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.chip {
  width: 140px; /* Tăng kích thước chip */
  height: 140px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.chip:hover {
  transform: scale(1.2) translateY(-10px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.chip.selected {
  outline: 5px solid #FFD700;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  animation: pulse-gold 2s infinite;
}

.chip-max-btn {
  width: 140px;
  height: 140px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chip-max-btn:hover {
  transform: scale(1.2) translateY(-10px);
}

.bet-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 40px auto;
  max-width: 1400px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.bet-area button {
  padding: 20px 40px;
  margin: 15px;
  font-size: 22px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  min-width: 280px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bet-area button:hover {
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Gift section styles */
.gift-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin: 40px auto;
  max-width: 1400px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.gift-item {
  width: 280px;
  height: 320px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.gift-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gift-item:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.gift-item:hover::before {
  opacity: 1;
}

.gift-item img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}

.gift-item:hover img {
  transform: scale(1.1);
}

.gift-item .gift-name {
  font-size: 24px;
  font-weight: 700;
  color: #FFD700;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gift-item .gift-price {
  font-size: 20px;
  color: #fff;
  margin-top: 10px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 12px;
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
  50% { box-shadow: 0 0 50px rgba(255, 215, 0, 0.8); }
  100% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .chip-container {
    gap: 20px;
    padding: 20px;
  }

  .chip, .chip-max-btn {
    width: 100px;
    height: 100px;
  }

  .bet-area {
    padding: 25px;
  }

  .bet-area button {
    padding: 15px 30px;
    font-size: 18px;
    min-width: 200px;
  }

  .gift-container {
    gap: 25px;
    padding: 25px;
  }

  .gift-item {
    width: 220px;
    height: 280px;
  }

  .gift-item img {
    width: 140px;
    height: 140px;
  }

  .gift-item .gift-name {
    font-size: 20px;
  }

  .gift-item .gift-price {
    font-size: 16px;
  }
}

/* Rewards Section Styles */
.gifts-rewards-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(3, 7, 18, 0.95) 100%) !important;
  border: 1px solid rgba(234, 179, 8, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  border-radius: 24px !important;
  padding: 40px !important;
  margin: 40px auto !important;
  max-width: 1400px !important;
}

.gifts-rewards-section h2 {
  font-size: 36px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  margin-bottom: 20px !important;
}

.reward-item {
  background: rgba(31, 41, 55, 0.6) !important;
  border: 1px solid rgba(234, 179, 8, 0.3) !important;
  border-radius: 20px !important;
  padding: 30px !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
}

.reward-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(234, 179, 8, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.reward-item:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 12px 32px rgba(234, 179, 8, 0.2) !important;
  border-color: rgba(234, 179, 8, 0.5) !important;
}

.reward-item:hover::before {
  opacity: 1;
}

.reward-item img {
  width: 100px !important;
  height: 100px !important;
  object-fit: contain !important;
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 15px !important;
  border-radius: 16px !important;
  margin-right: 25px !important;
  transition: transform 0.4s ease !important;
}

.reward-item:hover img {
  transform: scale(1.1);
}

.reward-item h4 {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 8px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.reward-item p {
  font-size: 16px !important;
  line-height: 1.5 !important;
}

.reward-item .text-yellow-400 {
  color: #fbbf24 !important;
  font-weight: 600 !important;
}

.reward-item .text-gray-300 {
  color: #d1d5db !important;
}

.reward-item .text-gray-500 {
  color: #6b7280 !important;
}

.reward-item span {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #fbbf24 !important;
  background: rgba(234, 179, 8, 0.1) !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  margin-left: 20px !important;
}

#toggle-rewards-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%) !important;
  color: white !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  padding: 15px 30px !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3) !important;
  margin-top: 40px !important;
}

#toggle-rewards-btn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(234, 179, 8, 0.4) !important;
}

/* Grid layout adjustments */
.grid {
  gap: 30px !important;
}

@media (max-width: 768px) {
  .gifts-rewards-section {
    padding: 20px !important;
    margin: 20px auto !important;
  }

  .gifts-rewards-section h2 {
    font-size: 28px !important;
  }

  .reward-item {
    padding: 20px !important;
  }

  .reward-item img {
    width: 80px !important;
    height: 80px !important;
    margin-right: 15px !important;
  }

  .reward-item h4 {
    font-size: 20px !important;
  }

  .reward-item p {
    font-size: 14px !important;
  }

  .reward-item span {
    font-size: 16px !important;
    padding: 6px 12px !important;
  }

  #toggle-rewards-btn {
    font-size: 16px !important;
    padding: 12px 24px !important;
  }
}

