/* BoulaxaTV - camada global de responsividade e polimento */
:root {
  --btv-bg: #0f0f0f;
  --btv-panel: #181818;
  --btv-line: rgba(255, 255, 255, .1);
  --btv-blue: #0ba7fc;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
}

body.btv-ui-ready .header,
body.btv-ui-ready .navbar,
body.btv-ui-ready .topbar,
body.btv-ui-ready .search-btn,
body.btv-ui-ready .notifications-btn,
body.btv-ui-ready #bfSearchTopbar,
body.btv-ui-ready .bf-search-topbar,
footer,
.footer,
.footer-simple,
.btv-footer {
  display: none !important;
}

.btv-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147482000;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(12, 15, 22, .92);
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}

.btv-nav-left,
.btv-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Em desktop, ações da navbar ficam coladas à esquerda dos botões da janela. */
@media (min-width: 900px) and (pointer: fine) {
  .btv-navbar {
    padding-right: 178px !important;
  }

  .btv-nav-right {
    margin-left: auto !important;
    margin-right: 0 !important;
    gap: 8px !important;
  }

  .btv-window-bar {
    top: 0 !important;
    right: 12px !important;
  }
}

.btv-logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
}

.btv-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btv-nav-links a {
  color: #f4f7fb;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 11px;
  border-radius: 999px;
}

.btv-nav-links a:hover {
  background: rgba(255,255,255,.08);
}

.btv-search-toggle,
.btv-notification-toggle,
.btv-user-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.btv-search-toggle:hover,
.btv-notification-toggle:hover,
.btv-user-toggle:hover {
  background: rgba(255,255,255,.09);
}

.btv-user-toggle img,
.btv-dropdown-head img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.btv-notification-pill {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--btv-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

.btv-dropdown {
  position: absolute;
  right: 18px;
  top: 60px;
  width: min(290px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(12, 15, 22, .98);
  box-shadow: 0 28px 90px rgba(0,0,0,.62);
  backdrop-filter: blur(18px);
}

.btv-dropdown-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11,167,252,.18), rgba(255,255,255,.04));
}

.btv-dropdown-head strong,
.btv-dropdown-head small {
  display: block;
}

.btv-dropdown-head small {
  color: #aeb9c8;
  margin-top: 3px;
}

.btv-dropdown a,
.btv-dropdown button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #f4f7fb;
  text-decoration: none;
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btv-dropdown a:hover,
.btv-dropdown button:hover {
  background: rgba(11,167,252,.14);
  color: #bfeeff;
}

.btv-search-panel {
  position: fixed;
  inset: 0;
  z-index: 2147481900;
  display: none;
  background: rgba(15,15,15,.96);
  padding: 82px 28px 28px;
}

.btv-search-panel.is-open {
  display: block;
}

.btv-search-input-wrap {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  width: min(980px, 100%);
  margin: 0 auto 24px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: #121212;
  color: #fff;
  padding: 9px 10px 9px 18px;
}

.btv-search-input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  min-height: 36px;
}

.btv-search-close {
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 9px 14px;
  font-weight: 900;
  cursor: pointer;
}

.btv-search-results {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 276px));
  gap: 14px;
}

.btv-result-card {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: #202020;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-decoration: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  box-shadow: inset 0 -70px 60px rgba(0,0,0,.78);
  cursor: pointer;
}

.btv-result-card span {
  color: #9fe1ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.btv-result-card strong {
  font-size: 15px;
  line-height: 1.2;
}

.btv-profile-result {
  position: relative;
  padding-left: 72px;
}

.btv-profile-result-avatar {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.82);
  background: #111;
  box-shadow: 0 10px 26px rgba(0,0,0,.42);
}

.btv-notification-panel {
  position: fixed;
  right: 18px;
  top: 66px;
  z-index: 2147482100;
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100vh - 86px);
  overflow: auto;
  display: none;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(12,15,22,.98);
  box-shadow: 0 28px 90px rgba(0,0,0,.62);
  backdrop-filter: blur(18px);
}

.btv-notification-panel.is-open {
  display: grid;
  gap: 8px;
}

.btv-notification-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: #fff;
  text-decoration: none;
}

.btv-notification-img {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #222;
}

.btv-notification-copy strong,
.btv-notification-copy small {
  display: block;
}

.btv-notification-copy small {
  color: #b7c1cf;
  margin-top: 4px;
  line-height: 1.35;
}

.btv-live-page .content {
  padding-top: 66px !important;
  margin-top: 0 !important;
}

.btv-live-page #bf-recent-clicks,
.btv-live-page .bf-dynamic-row#bf-recent-clicks,
.btv-live-page [id*="recent"],
.btv-live-page [data-row="recent"],
.btv-live-page [class*="recent"],
.btv-live-page [id*="continue"],
.btv-live-page [class*="continue"] {
  display: none !important;
}

.btv-live-page .hero,
.btv-live-page .hero-video,
.btv-live-page .hero-overlay,
.btv-live-page .hero-content {
  display: none !important;
}

/* Barra clássica de janela: apenas PC */
.btv-window-bar {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 2147483200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(12, 15, 22, .82);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .42);
  backdrop-filter: blur(16px);
}

.btv-window-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.btv-window-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.btv-minimize { background: #35c96f; }
.btv-maximize { background: #f4c542; }
.btv-close { background: #ff4d61; }

.btv-minimize span {
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.btv-maximize span {
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.btv-close span {
  position: relative;
  width: 15px;
  height: 15px;
}

.btv-close span::before,
.btv-close span::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 2px;
  height: 15px;
  border-radius: 2px;
  background: currentColor;
}

.btv-close span::before { transform: rotate(45deg); }
.btv-close span::after { transform: rotate(-45deg); }

/* Nova logo quadrada */
.logo img,
.logo-img,
.checkout-logo,
.auth-logo,
.login-logo,
.settings-head img,
.bf-admin-sidebar img,
.bf-admin-logo {
  object-fit: contain !important;
}

.logo img,
.logo-img {
  width: 100px !important;
  height: 100px !important;
  max-width: 100px !important;
  max-height: 100px !important;
}

/* Vídeo do hero como banner 16:9 real */
.hero {
  position: relative !important;
  height: min(72vw, calc(100vh - 170px)) !important;
  min-height: 520px !important;
  max-height: 820px !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  background: #000 !important;
}

.hero-video {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center center !important;
  transform: none !important;
  animation: none !important;
  filter: none !important;
  pointer-events: none !important;
}

.hero-overlay { z-index: 1 !important; }
.hero-content { z-index: 2 !important; }

/* Remove fade/blur das bordas das fileiras e dos cards */
.row::before,
.row::after,
.row-cards::before,
.row-cards::after,
.card::before,
.card::after {
  display: none !important;
  opacity: 0 !important;
  content: none !important;
  background: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

.row,
.row-cards,
.card,
.card img {
  filter: none !important;
  backdrop-filter: none !important;
}

.row-cards > .card,
.content .card,
.bf-dynamic-row .card,
.bf-search-banner {
  width: clamp(190px, 19vw, 276px) !important;
  min-width: clamp(190px, 19vw, 276px) !important;
  max-width: clamp(190px, 19vw, 276px) !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.row-cards > .card img,
.content .card img,
.bf-dynamic-row .card img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}

.bf-fav-btn {
  position: absolute !important;
  left: 10px !important;
  top: 10px !important;
  right: auto !important;
  z-index: 12 !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(0,0,0,.62) !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  backdrop-filter: blur(10px) !important;
}

/* Responsividade geral */
@media (max-width: 899px), (pointer: coarse) {
  .btv-window-bar {
    display: none !important;
  }

  .btv-navbar {
    padding-right: 14px !important;
  }
}

@media (max-width: 760px) {
  .header {
    padding: 10px 14px !important;
  }

  .header-container {
    gap: 12px !important;
  }

  .logo img,
  .logo-img {
    width: 100px !important;
    height: 100px !important;
  }

  .hero {
    height: 58vh !important;
    min-height: 360px !important;
    max-height: 560px !important;
  }

  .hero-content {
    left: 16px !important;
    right: 16px !important;
    bottom: 12% !important;
    max-width: calc(100vw - 32px) !important;
  }

  .hero-logo {
    width: min(300px, 78vw) !important;
  }

  .content {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .row-cards > .card,
  .content .card,
  .bf-dynamic-row .card,
  .bf-search-banner {
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
  }
}

@media (min-width: 2200px) {
  body {
    font-size: 18px;
  }

  .logo img,
  .logo-img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
  }

  .row-cards > .card,
  .content .card,
  .bf-dynamic-row .card,
  .bf-search-banner {
    width: 330px !important;
    min-width: 330px !important;
    max-width: 330px !important;
  }
}
