/* Betflix theme — red/black, loads after galabet-rebuild.css */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --primary: #dc2626 !important;
  --hover-color: #b91c1c !important;
  --login-button-bg: #dc2626 !important;
  --headerBG: #0a0a0a !important;
  --menuBG: #0a0a0a !important;
  --body-bg: #0a0a0a !important;
  --footer-bg: #09090b !important;
  --secondary: #18181b !important;
  --site-bg: #0a0a0a;
  --site-panel: #18181b;
  --site-panel-2: #27272a;
  --site-input: #27272a;
  --site-text: #ffffff;
  --site-muted: #a1a1aa;
  --site-accent: #dc2626;
  --site-accent-hover: #b91c1c;
  --site-accent-soft: rgba(220, 38, 38, 0.18);
  --site-gold: #fbbf24;
  --site-danger: #ef4444;
  --gala-border: rgba(255, 255, 255, 0.08);
  --betflix-header-h: 64px;
}

html,
body,
body#bodyId {
  background: var(--site-bg) !important;
  background-image: none !important;
  color: var(--site-text) !important;
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
}

body.betflix-booting {
  overflow: hidden;
}

a {
  color: #e4e4e7;
}

a:hover {
  color: #fff;
}

/* ----- Boot loader ----- */
#betflixBoot {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

#betflixBoot.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.betflix-boot__logo {
  height: 56px;
  max-width: min(280px, 72vw);
  object-fit: contain;
  animation: betflix-boot-pulse 1.4s ease-in-out infinite;
}

.betflix-boot__bar {
  margin-top: 20px;
  width: 220px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
}

.betflix-boot__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, #ef4444, transparent);
  animation: betflix-boot-slide 1.2s ease-in-out infinite;
}

@keyframes betflix-boot-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes betflix-boot-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ----- Header ----- */
.gala-topbar {
  display: none !important;
}

.gala-header-shell {
  position: sticky;
  top: 0;
  z-index: 900;
}

.gala-header-shell .headBar {
  position: relative;
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(12px);
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: var(--betflix-header-h) !important;
}

.gala-header-shell .headBar > .container-fluid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 16px !important;
}

.gala-header-shell .headBar .row {
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.gala-header-shell .gala-header-logo-col {
  flex: 0 0 auto !important;
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
}

.gala-header-shell .headLogo {
  display: block;
  height: 40px;
}

.gala-header-shell .headLogo img {
  height: 40px !important;
  max-height: 40px !important;
  width: auto !important;
  object-fit: contain !important;
}

.gala-header-shell .gala-header-right-col {
  flex: 1 1 auto !important;
  max-width: none !important;
  width: auto !important;
  padding: 0 !important;
}

.gala-header-shell .headerItem {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.gala-header-shell .loginBtn,
.gala-header-shell #openModal,
.gala-header-shell .depositBtn,
.gala-header-shell .btn-primary {
  background: var(--site-accent) !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 8px 14px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.gala-header-shell .loginBtn:hover,
.gala-header-shell #openModal:hover,
.gala-header-shell .btn-primary:hover {
  background: var(--site-accent-hover) !important;
  filter: none !important;
}

.gala-header-shell #openModal {
  display: inline-flex !important;
}

.gala-header-shell .loginBtn {
  background: transparent !important;
  color: #d4d4d8 !important;
  box-shadow: none !important;
}

.gala-header-shell .loginBtn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.gala-header-shell .balText {
  display: inline-block;
  padding: 0.3rem 0.4rem;
  margin: 0 0 0 0.3rem;
  font-size: 10px;
  height: 30px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fbbf24 !important;
  border-radius: 6px !important;
  font-size: 11px !important;
}

.betflix-notify-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.betflix-notify-btn {
  position: relative;
}

.betflix-notify-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.betflix-notify-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(92vw, 340px);
  max-height: 420px;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 10060;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.betflix-notify-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.betflix-notify-panel__close {
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.betflix-notify-panel__list {
  overflow-y: auto;
  max-height: 300px;
  padding: 8px;
}

.betflix-notify-empty {
  padding: 24px 12px;
  text-align: center;
  color: #71717a;
  font-size: 13px;
}

.betflix-notify-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.betflix-notify-item.is-unread {
  background: rgba(220, 38, 38, 0.12);
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.betflix-notify-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
  flex-shrink: 0;
}

.betflix-notify-item__title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.betflix-notify-item__msg {
  color: #a1a1aa;
  font-size: 12px;
  line-height: 1.4;
}

.betflix-notify-item__time {
  color: #71717a;
  font-size: 11px;
  margin-top: 4px;
}

.betflix-notify-panel__mark {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
}

.betflix-notify-panel__mark:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width: 767.98px) {
  .betflix-notify-panel {
    position: fixed;
    top: 64px;
    right: 12px;
    left: auto;
  }
}

.gala-header-shell .userBtn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

.gala-header-shell .mainMenu {
  display: none !important;
}

.betflix-desktop-nav {
  display: none;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.betflix-desktop-nav a {
  color: #a1a1aa;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.betflix-desktop-nav a:hover,
.betflix-desktop-nav a.is-active {
  color: #fff;
}

.betflix-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #d4d4d8;
  cursor: pointer;
  border-radius: 8px;
}

.betflix-menu-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.betflix-mobile-nav {
  display: none;
  position: fixed;
  inset: var(--betflix-header-h) 0 0 0;
  z-index: 850;
  background: rgba(0, 0, 0, 0.96);
  padding: 20px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.betflix-mobile-nav.is-open {
  display: flex;
}

.betflix-mobile-nav a {
  color: #e4e4e7;
  font-size: 16px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.betflix-mobile-nav a:hover {
  color: #fff;
}

@media (min-width: 1024px) {
  .betflix-desktop-nav { display: flex; }
  .betflix-menu-btn { display: none; }
}

@media (max-width: 768px) {
  .gala-header-shell .headLogo,
  .gala-header-shell .headLogo img {
    height: 32px !important;
    max-height: 32px !important;
  }
}

/* ----- Hero banner ----- */
.betflix-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #09090b;
  padding-top: 0;
}

.betflix-hero__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  max-height: min(42vw, 500px);
  touch-action: pan-y;
}

@media (max-width: 991.98px) {
  body.betflix-site .betflix-hero {
    width: calc(100% + 24px);
    max-width: 100vw;
    padding: 0;
    margin-left: -12px;
    margin-right: -12px;
    box-sizing: border-box;
    overflow: hidden;
  }

  body.betflix-site .betflix-hero__viewport {
    aspect-ratio: 16 / 9;
    max-height: none;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    background: #09090b;
  }

  body.betflix-site .betflix-hero__slide,
  body.betflix-site .betflix-hero__slide a,
  body.betflix-site .betflix-hero__slide picture {
    overflow: hidden;
  }

  body.betflix-site .betflix-hero__slide picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  body.betflix-site .betflix-hero__slide img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center;
  }

  body.betflix-site .betflix-hero__dots {
    right: 10px;
    bottom: 10px;
  }
}

@media (min-width: 640px) {
  .betflix-hero__viewport {
    aspect-ratio: 16 / 5;
    max-height: min(32vw, 500px);
  }
}

.betflix-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.betflix-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.betflix-hero__slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.betflix-hero__slide picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.betflix-hero__slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.betflix-hero__dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
}

.betflix-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.betflix-hero__dot.is-active {
  width: 24px;
  background: #dc2626;
}

/* ----- Home sections ----- */
.betflix-home {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

@media (min-width: 1024px) {
  .betflix-home {
    padding-left: 48px;
    padding-right: 48px;
  }
}

.betflix-section {
  margin-top: 28px;
}

.betflix-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.betflix-section__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.betflix-section__icon {
  font-size: 1.1rem;
}

.betflix-section__more {
  color: #71717a;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.betflix-section__more:hover {
  color: #fff;
}

.betflix-hscroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.betflix-hscroll::-webkit-scrollbar {
  display: none;
}

.betflix-hscroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

/* Trend cards */
.betflix-trend-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  scroll-snap-align: start;
  cursor: pointer;
}

.betflix-trend-card__num {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(72px, 14vw, 140px);
  line-height: 0.9;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px #ef4444;
  user-select: none;
}

.betflix-trend-card__poster {
  width: clamp(120px, 28vw, 200px);
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.betflix-trend-card:hover .betflix-trend-card__poster {
  transform: scale(1.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.betflix-trend-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scroll game cards */
.betflix-game-card {
  flex: 0 0 auto;
  width: clamp(130px, 32vw, 180px);
  text-decoration: none;
  scroll-snap-align: start;
  position: relative;
}

.betflix-game-card__media {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #18181b;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.betflix-game-card:hover .betflix-game-card__media {
  transform: scale(1.06);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.betflix-game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.betflix-game-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.betflix-game-card:hover .betflix-game-card__play,
.betflix-game-card:focus-within .betflix-game-card__play {
  opacity: 1;
}

.betflix-game-card__play span {
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
}

/* Promo box */
.betflix-promo {
  margin-top: 32px;
  border-left: 3px solid #dc2626;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.08), transparent);
  border-radius: 0 12px 12px 0;
  padding: 20px 20px 20px 18px;
}

.betflix-promo__eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 6px;
}

.betflix-promo__title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}

.betflix-promo__title em {
  color: #dc2626;
  font-style: normal;
}

.betflix-promo__text {
  margin: 0 0 14px;
  color: #a1a1aa;
  font-size: 14px;
  max-width: 640px;
}

.betflix-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.betflix-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
}

.betflix-promo__cta:hover {
  background: #b91c1c;
  color: #fff !important;
}

.betflix-promo__link {
  color: #a1a1aa;
  font-size: 13px;
  text-decoration: none;
}

.betflix-promo__link:hover {
  color: #fff;
}

/* Winners feed */
.betflix-winners {
  margin-top: 32px;
}

.betflix-winners__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 360px;
  overflow: hidden;
}

.betflix-winner {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  font-size: 13px;
  animation: betflix-winner-in 0.5s ease;
}

.betflix-winner--big {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12), transparent);
}

.betflix-winner__user {
  color: #e4e4e7;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.betflix-winner__game {
  color: #71717a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.betflix-winner__amt {
  color: #4ade80;
  font-weight: 700;
  white-space: nowrap;
}

@keyframes betflix-winner-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hide old home widgets */
.gala-jackpot-bar,
.gala-payments-strip,
.gala-wins-section .gala-section-head--wins,
.gala-wins-track {
  display: none !important;
}

/* Legacy carousel override on home */
.gala-hero-banner,
#carousel-example-generic {
  display: none !important;
}

.mainWrap .centerWrap {
  padding-top: 0 !important;
}

/* Betflix: eski modal auth gizli — /auth sayfası kullanılır */
body.betflix-site #login2,
body.betflix-site #loginModal {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Game carousel legacy (subpages) */
.btn-primary,
.loginBtn.btn-primary,
.depositBtn.btn-primary,
#openModal.btn-primary {
  background: var(--site-accent) !important;
}

.btn-primary:hover,
.depositBtn:hover {
  background: var(--site-accent-hover) !important;
  box-shadow: none !important;
}

.playerNav {
  border-color: rgba(220, 38, 38, 0.5) !important;
}

.playerNav .mobile-section .pl-link:first-child {
  background: var(--site-accent) !important;
}

.balText {
  color: #fbbf24 !important;
}

/* Live casino — hide demo */
.gala-page--livecasino .gala-game-btn--demo,
.gala-page--livecasino .gala-home-demo-btn,
.game-carousel .gala-home-demo-btn--hidden {
  display: none !important;
}

.gala-page--livecasino .game-item__overlay {
  justify-content: center;
}

/* Footer base */
.footerRow,
.app-g6-footer footer {
  background: #09090b !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.footerRow h6 {
  color: #fff !important;
}

.footLink {
  color: #a1a1aa !important;
}

.footLink:hover {
  color: #fff !important;
}

/* Modals */
#login2 .modal-content,
#loginModal .modal-content {
  border-color: rgba(220, 38, 38, 0.45) !important;
}

#loginModal .gala-register-side,
.loginModal .loginBG {
  filter: saturate(0.7);
}
