/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', sans-serif;
  background: #111;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== UTILITIES ===== */
.desktop-only { display: flex !important; }
.mobile-only  { display: none !important; }
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: flex !important; }
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid #e10028;
  width: 100%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1px 16px;
  gap: 12px;
}
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo img { height: 22px; width: auto; }
.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: #ffe313;
  letter-spacing: 2px;
}

/* Desktop Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #ccc;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-item img { height: 28px; width: 28px; object-fit: contain; margin-bottom: 2px; }
.nav-item:hover, .nav-item.active {
  color: #ffe313;
  background: rgba(225, 0, 40, 0.15);
}

/* Auth Buttons */
.header-auth { display: flex; gap: 8px; flex-shrink: 0; }
.btn-login {
  padding: 7px 18px;
  border: 1.5px solid #ffe313;
  border-radius: 20px;
  color: #ffe313;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-login:hover { background: #ffe313; color: #111; }
.btn-register {
  padding: 7px 18px;
  background: linear-gradient(135deg, #e10028, #ff4560);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(225, 0, 40, 0.4);
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(225, 0, 40, 0.5); }

/* Mobile Auth */
.mobile-header-right { display: flex; gap: 6px; align-items: center; }
.btn-login-sm, .btn-register-sm {
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
}
.btn-login-sm { border: 1px solid #ffe313; color: #ffe313; }
.btn-register-sm { background: #e10028; color: #fff; }

/* Mobile Action Bar */
.mobile-action-bar {
  display: none;
  background: linear-gradient(90deg, #129f71, #129f71);
  width: 100%;
}
@media (max-width: 768px) {
  .mobile-action-bar { display: flex; }
}
.user-area {
  width: 38%;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-btns { display: flex; flex-direction: column; gap: 4px; }
.btn-outline-yellow {
  padding: 3px 10px;
  border: 1px solid #ffe313;
  border-radius: 4px;
  color: #ffe313;
  font-size: 10px;
  text-align: center;
  cursor: pointer;
}
.action-btns {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  align-items: center;
  background: linear-gradient(110deg, transparent 28px, #10825e 0) left;
}
.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #ffe313;
  font-size: 10px;
  padding: 6px 4px;
  cursor: pointer;
}
.action-btn i { font-size: 22px; }

/* ===== ANNOUNCEMENT MARQUEE ===== */
.announce-bar {
  background: #222;
  padding: 5px 40px 5px 40px;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.announce-icon {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 36px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.announce-icon i { color: #ffe313; font-size: 14px; }
.marquee-track {
  display: flex;
  gap: 40px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}
.marquee-track span {
  font-size: 12px;
  color: #eee;
  flex-shrink: 0;
}

/* ===== BANNER SWIPER ===== */
.banner-section { width: 100%; }
.banner-swiper { width: 100%; }
.banner-swiper .swiper-slide { line-height: 0; }
.banner-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.swiper-button-next,
.swiper-button-prev {
  color: #ffe313 !important;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 36px !important;
  height: 36px !important;
}
.swiper-button-next::after,
.swiper-button-prev::after { font-size: 14px !important; }

/* ===== MOBILE CATEGORY MENU ===== */
.mobile-categories {
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 4px;
  background: #151520;
  width: 100%;
  padding: 10px 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-categories::-webkit-scrollbar { display: none; }
@media (max-width: 768px) { .mobile-categories { display: flex; } }
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 4px;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 68px;
}
.cat-item:hover { background: rgba(255,255,255,0.06); }
.cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.cat-icon i {
  font-size: 24px;
  color: #fff;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-item span {
  font-size: 11px;
  color: #ccc;
  font-weight: 500;
  line-height: 1.3;
}

/* ===== SECTION COMMON ===== */
.section { width: 100%; max-width: 1400px; margin: 0 auto; padding: 24px 16px; }
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: #e10028;
  border-radius: 2px;
}

/* ===== DESKTOP MARQUEE ===== */
.desktop-marquee {
  width: 100%;
  background: #1c1c2e;
  border-top: 1px solid #2a2a40;
  border-bottom: 1px solid #2a2a40;
  padding: 10px 0;
  overflow: hidden;
}
.desktop-marquee .marquee-track {
  animation-duration: 50s;
}

/* ===== AMBASSADOR (LiusSuarez) ===== */
.ambassador-section {
  width: 100%;
  background: linear-gradient(135deg, #0d0d1f 0%, #1a0a0f 100%);
  padding: 32px 0;
}
.ambassador-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.ambassador-inner img {
  max-height: 320px;
  width: auto;
}
.ambassador-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: #ffe313;
  margin-bottom: 8px;
}
.ambassador-text p {
  font-size: 15px;
  color: #ccc;
  max-width: 400px;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .ambassador-inner { flex-direction: column; text-align: center; }
  .ambassador-inner img { max-height: 200px; }
  .ambassador-text h2 { font-size: 20px; }
}

/* ===== JACKPOT ===== */
.jackpot-section {
  width: 100%;
  padding: 24px 0;
}
.jackpot-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}
.jackpot-label {
  font-size: 14px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.jackpot-amount {
  font-size: 52px;
  font-weight: 900;
  color: #ffe313;
  text-shadow: 0 0 30px rgba(255,227,19,0.5);
  letter-spacing: 4px;
  font-family: monospace;
}
.jackpot-amount span { color: #ff4560; }
@media (max-width: 768px) { .jackpot-amount { font-size: 34px; } }

/* ===== GAME CARD — UNIFIED ===== */
/* shared base: all game/product cards use same shape & ratio */
.products-section {
  width: 100%;
  background: #111;
  padding: 32px 0;
}
.game-hot-section {
  width: 100%;
  background: #0d0d1a;
  padding: 32px 0;
}

/* Unified grid — same columns for both grids */
.products-grid,
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 1200px) {
  .products-grid, .games-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
  .products-grid, .games-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .products-grid, .games-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .products-grid, .games-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Unified card */
.product-card,
.game-card {
  border-radius: 12px;
  overflow: hidden;
  background: #1c1c2e;
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
  display: block;
  text-decoration: none;
  border: 1px solid transparent;
}
.product-card:hover,
.game-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 28px rgba(225, 0, 40, 0.32);
  border-color: rgba(225, 0, 40, 0.35);
}

/* Unified image — same aspect ratio 3:4 for all cards */
.product-card img,
.game-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* Fallback placeholder when image is missing */
.card-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #1c1c2e 0%, #2a2a40 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.card-placeholder i {
  font-size: 36px;
  color: #ffe313;
  opacity: 0.6;
}
.card-placeholder span {
  font-size: 12px;
  color: #666;
}

/* Label overlay at bottom of every card */
.product-card .card-label,
.game-card   .card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, transparent 100%);
  padding: 28px 10px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* HOT badge */
.hot-badge {
  position: absolute;
  top: 7px; left: 7px;
  background: #e10028;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
/* NEW badge */
.new-badge {
  position: absolute;
  top: 7px; right: 7px;
  background: #ffe313;
  color: #111;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* ===== DOWNLOAD APP ===== */
.download-section {
  width: 100%;
  background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
  padding: 40px 0;
}
.download-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.download-text h2 { font-size: 26px; font-weight: 700; color: #ffe313; margin-bottom: 8px; }
.download-text p  { font-size: 14px; color: #aaa; margin-bottom: 20px; }
.download-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
.download-btn i { font-size: 20px; }
.download-btn:hover { background: rgba(255,255,255,0.18); }
.download-qr img { width: 120px; height: 120px; border-radius: 8px; }
@media (max-width: 768px) {
  .download-inner { flex-direction: column; text-align: center; }
  .download-btns { justify-content: center; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: #0d0d1a;
  border-top: 2px solid #1a1a3e;
  padding: 32px 0 100px;
}
@media (min-width: 769px) { .site-footer { padding-bottom: 32px; } }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.footer-top {
  display: flex;
  gap: 40px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo-text {
  font-size: 28px;
  font-weight: 900;
  color: #ffe313;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.footer-brand p { font-size: 13px; color: #888; line-height: 1.7; max-width: 280px; }
.footer-links-group {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 14px; font-weight: 600; color: #ffe313; margin-bottom: 4px; }
.footer-col a {
  font-size: 13px;
  color: #888;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { color: #fff; }
.footer-partners, .footer-payment { margin-bottom: 20px; }
.partner-label { font-size: 12px; color: #555; margin-bottom: 10px; }
.partner-logos {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.partner-logos img { height: 32px; width: auto; opacity: 0.6; filter: grayscale(1); }
.partner-logos img:hover { opacity: 1; filter: grayscale(0); }
.payment-logos { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.payment-badge {
  padding: 4px 12px;
  background: #1c1c2e;
  border: 1px solid #2a2a40;
  border-radius: 4px;
  font-size: 11px;
  color: #aaa;
}
.payment-badge-img {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
}
.payment-badge-img img { height: 32px; width: auto; max-width: 90px; object-fit: contain; display: block; }
.footer-bottom {
  border-top: 1px solid #1a1a3e;
  padding-top: 16px;
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: #555; margin-bottom: 4px; }
.footer-warning { color: #e10028 !important; font-size: 11px !important; }

/* ===== FLOATING ASIDE ===== */
.floating-aside {
  position: fixed;
  right: 8px;
  top: 35%;
  z-index: 50;
  display: flex;
  flex-direction: column;
}
.aside-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,0.5);
  border-radius: 12px;
  padding: 4px;
}
.aside-top-icon img { width: 52px; height: auto; }
.aside-item img { width: 52px; height: auto; transition: transform 0.2s; }
.aside-item:hover img { transform: scale(1.1); }

/* ===== SCROLL TOP ===== */
.scroll-top-btn {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 50;
  width: 40px;
  height: 40px;
  background: #e10028;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(225,0,40,0.4);
  transition: background 0.2s;
}
.scroll-top-btn:hover { background: #c00020; }
.scroll-top-btn.visible { display: flex; }
@media (min-width: 769px) {
  .scroll-top-btn { bottom: 24px; }
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #1a1a2e;
  border-top: 1px solid #2a2a40;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  height: 64px;
}
@media (max-width: 768px) { .mobile-nav { display: flex; } }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  padding: 4px 0;
  color: #888;
  font-size: 10px;
  transition: color 0.2s;
}
.mobile-nav-item img { width: 24px; height: 24px; object-fit: contain; }
.mobile-nav-item i { font-size: 20px; }
.mobile-nav-item:hover,
.mobile-nav-item.active { color: #ffe313; }
.mobile-nav-item.active img { filter: brightness(0) saturate(100%) invert(88%) sepia(60%) saturate(800%) hue-rotate(5deg); }

/* ===== PROMO BANNER ===== */
.promo-swiper { padding: 12px 0; }
.promo-swiper .swiper-slide img {
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}
.promo-swiper .swiper-slide img:hover { transform: scale(1.02); }

/* ===== SPINNER (loading) ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo { font-size: 40px; font-weight: 900; color: #ffe313; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: 0.5; transform: scale(0.95); } to { opacity: 1; transform: scale(1.05); } }

/* ===== USER BADGE (HEADER) ===== */
.user-badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid #2a2a40;
  border-radius: 8px; padding: 6px 12px;
}
.user-badge i { font-size: 22px; color: #ffe313; }
.user-name  { font-size: 12px; font-weight: 600; color: #fff; }
.user-balance { font-size: 11px; color: #ffe313; }

/* ===== DESKTOP CATEGORY NAV ===== */
.desktop-category-nav {
  width: 100%;
  background: #16162a;
  border-bottom: 1px solid #2a2a40;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  padding: 0;
  overflow-x: auto;
}
.dcat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  gap: 6px;
  color: #aaa;
  font-size: 12px;
  font-weight: 500;
  border-right: 1px solid #2a2a40;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 90px;
}
.dcat-item:last-child { border-right: none; }
.dcat-item:hover, .dcat-item.active {
  background: rgba(255,227,19,0.07);
  color: #ffe313;
}
.dcat-item i {
  font-size: 22px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== WHY US GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 16px;
}
.why-card {
  background: #1c1c2e; border-radius: 12px;
  padding: 24px 16px; text-align: center;
  border: 1px solid #2a2a40; transition: border-color 0.2s;
}
.why-card:hover { border-color: #ffe313; }
.why-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.why-icon-wrap i { font-size: 26px; color: #fff; }
.why-title { font-weight: 700; color: #ffe313; font-size: 15px; margin-bottom: 6px; }
.why-desc  { font-size: 13px; color: #888; line-height: 1.6; }

/* ===== AMBASSADOR IMG ===== */
.ambassador-img-wrap { flex-shrink: 0; }
.ambassador-img-wrap img { max-height: 300px; width: auto; }
@media (max-width: 768px) {
  .ambassador-img-wrap { display: none; }
}

/* ===== ANNOUNCE BAR always visible ===== */
.announce-bar { display: flex !important; }

/* ===== PROVIDER HORIZONTAL SCROLL ROW ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-header .section-title { margin-bottom: 0; }
.section-viewall {
  font-size: 12px;
  color: #ffe313;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.section-viewall:hover { opacity: 1; }

.provider-scroll-wrap {
  position: relative;
  overflow: hidden;
}
.provider-scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.provider-scroll-row::-webkit-scrollbar { display: none; }

/* Provider card — game-image style, same size as lobby cards */
.prov-card {
  flex: 0 0 130px;
  scroll-snap-align: start;
  background: #1c1c2e;
  border: 1px solid #2a2a40;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.prov-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225,0,40,0.5);
  box-shadow: 0 8px 24px rgba(225,0,40,0.25);
}

/* Image area */
.prov-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prov-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s;
  position: relative;
  z-index: 1;
}
.prov-card:hover .prov-img-wrap img { transform: scale(1.06); }

/* Fallback icon — shown when no image or image errors */
.prov-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}
.prov-img-fallback i { font-size: 28px; color: #ffe313; }
.prov-img-wrap.img-err img { display: none; }
.prov-img-wrap.img-err .prov-img-fallback { z-index: 1; }

/* Play overlay on hover */
.prov-overlay {
  position: absolute;
  inset: 0;
  background: rgba(225,0,40,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.prov-overlay i {
  width: 38px;
  height: 38px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e10028;
  font-size: 14px;
  padding-left: 3px;
}
.prov-card:hover .prov-overlay { opacity: 1; }

/* Text body */
.prov-body {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.prov-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.prov-count {
  font-size: 10px;
  color: #22c55e;
  font-weight: 600;
}

/* Mobile: slightly smaller cards */
@media (max-width: 480px) {
  .prov-card { flex: 0 0 105px; }
  .prov-name { font-size: 11px; }
  .prov-overlay i { width: 30px; height: 30px; font-size: 11px; }
}

/* Provider row nav arrows */
.prov-row-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  background: rgba(15,15,30,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.85;
  backdrop-filter: blur(4px);
  user-select: none;
}
.prov-row-nav:hover { background: #e10028; border-color: #e10028; opacity: 1; }
.prov-row-nav.prev { left: 4px; }
.prov-row-nav.next { right: 4px; }
.prov-row-nav.hidden { opacity: 0; pointer-events: none; }

/* ===== LANGUAGE SWITCHER ===== */

/* Mobile header lang button */
.mobile-lang-btn {
  background: transparent;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.mobile-lang-btn .mlb-flag-img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
.mobile-lang-btn .mlb-flag-emoji {
  font-size: 22px;
  line-height: 1;
}

/* Mobile side panel overlay */
.lang-side-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: transparent;
}
.lang-side-overlay.open { display: block; }

/* Mobile side panel */
.lang-side-panel {
  display: none !important;
  position: fixed !important;
  top: 0;
  right: 0;
  height: 100vh;
  width: 190px;
  z-index: 9998;
  background: rgba(8,8,20,0.97);
  flex-direction: column;
  overflow: hidden;
}
.lang-side-panel.open {
  display: flex !important;
  animation: langPanelIn 0.28s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes langPanelIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.lang-side-header {
  padding: 18px 16px 10px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lang-side-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}

.lang-side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  cursor: pointer;
  transition: background 0.15s;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  font-weight: 500;
}
.lang-side-item:hover { background: rgba(255,255,255,0.06); }
.lang-side-item.active {
  background: rgba(225,0,40,0.18);
  color: #fff;
}
.lang-side-item.active .lang-side-name { color: #ff4d6d; font-weight: 700; }

.lang-side-flag {
  width: 32px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lang-side-flag img {
  width: 32px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
}
.lang-side-flag .flag-emoji {
  font-size: 22px;
  line-height: 1;
}
.lang-side-name { white-space: nowrap; }

/* Desktop drawer lang switcher */
.lang-panel {
  background: rgba(12,12,26,0.98);
  border: none;
  border-radius: 8px;
  padding: 4px 0;
  z-index: 9999;
  margin-top: 4px;
}
.lang-panel-title {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  padding: 6px 14px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Desktop single-column list items */
.desk-lang-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background 0.15s;
}
.desk-lang-list-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.desk-lang-list-item.active { background: rgba(225,0,40,0.18); }
.desk-lang-list-item.active .desk-lang-name { color: #ff4d6d; font-weight: 700; }
.desk-lang-flag {
  width: 32px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.desk-lang-name { white-space: nowrap; }

/* lang-option still used for active state on desktop list */
.lang-panel-desktop { position: static; margin-top: 4px; }

.desk-drawer-sep {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 8px 0;
}
.desk-drawer-lang-item { position: relative; }
