:root {
  --biqv-blue: #2eafe1;
  --biqv-text: #222222;
  --biqv-muted: #5f5f5f;
  --biqv-border: #e6e6e6;
  --biqv-band: #fafafa;
  --biqv-max-width: 1420px;
  --biqv-page-gutter: 30px;
  --biqv-card-gap: 24px;
}

/* =========================================================
   BASE / RESET
========================================================= */
.biqv-home,
.biqv-page,
.biqv-lightbox,
.biqv-home *,
.biqv-page *,
.biqv-lightbox * {
  box-sizing: border-box;
}

.biqv-home,
.biqv-page {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background: #fff;
  color: var(--biqv-text);
  font-family: inherit;
}

/* Remove linhas / sublinhados dos links */
.biqv-home a,
.biqv-page a,
.biqv-home a:hover,
.biqv-page a:hover,
.biqv-home a:focus,
.biqv-page a:focus,
.biqv-home a:active,
.biqv-page a:active,
.biqv-home a:visited,
.biqv-page a:visited {
  text-decoration: none !important;
  text-decoration-line: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* =========================================================
   HOMEPAGE (1 DESTAQUE + 3 LATERAIS ALINHADOS)
========================================================= */
.biqv-home {
  padding: 30px var(--biqv-page-gutter) 42px;
}

.biqv-home-inner {
  width: 100%;
  max-width: var(--biqv-max-width);
  margin: 0 auto;
}

.biqv-home-title {
  margin: 0 0 28px;
  text-align: center;
  color: var(--biqv-text);
  font: inherit;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

/* Layout Principal da Homepage: Esquerda (Destaque) / Direita (3 empilhados) */
.biqv-home-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: stretch;
}

.biqv-home-featured {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.biqv-home-featured .biqv-home-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.biqv-home-featured .biqv-video-trigger {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
}

/* Lista Lateral de 3 Vídeos Empilhados */
.biqv-home-side-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.biqv-home-card {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.biqv-home-card-title {
  margin: 8px 2px 0;
  color: #4e4e4e;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.biqv-home-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.biqv-home-more {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--biqv-blue);
  background: var(--biqv-blue);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 450 !important;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease;
}

.biqv-home-more:hover,
.biqv-home-more:focus {
  background: #fff;
  color: var(--biqv-blue) !important;
  text-decoration: none !important;
}

/* =========================================================
   VIDEO THUMBNAIL
   16:9
   SEM BORDAS
   SEM LINHAS
   SEM ZOOM
========================================================= */
.biqv-video-trigger {
  position: relative;
  display: block;

  width: 100%;
  aspect-ratio: 16 / 9;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden !important;

  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;

  border-radius: 0 !important;

  outline: 0 !important;

  background: transparent !important;

  box-shadow: none !important;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transform: none !important;
  transition: none !important;
}

.biqv-video-trigger:hover,
.biqv-video-trigger:focus,
.biqv-video-trigger:focus-visible,
.biqv-video-trigger:active {
  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;

  outline: 0 !important;

  background: transparent !important;

  box-shadow: none !important;

  transform: none !important;
  transition: none !important;
}

/* Remove possíveis pseudo-elementos do tema */
.biqv-video-trigger::before,
.biqv-video-trigger::after,
.biqv-video-trigger:hover::before,
.biqv-video-trigger:hover::after,
.biqv-video-trigger:focus::before,
.biqv-video-trigger:focus::after {
  display: none !important;
  content: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: none !important;
}

/* =========================================================
   IMAGEM / THUMBNAIL
========================================================= */
.biqv-card-image,
.biqv-image-placeholder {
  position: absolute !important;

  top: -3px !important;
  left: -3px !important;
  right: auto !important;
  bottom: auto !important;

  display: block !important;

  width: calc(100% + 6px) !important;
  height: calc(100% + 6px) !important;

  min-width: 0 !important;
  min-height: 0 !important;

  max-width: none !important;
  max-height: none !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: cover !important;
  object-position: center center !important;

  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;

  border-radius: 0 !important;

  outline: 0 !important;

  box-shadow: none !important;

  transform: none !important;
  transition: none !important;

  vertical-align: top !important;
}

/* Absolutamente nenhum zoom no hover */
.biqv-video-trigger:hover .biqv-card-image,
.biqv-video-trigger:focus .biqv-card-image,
.biqv-video-trigger:active .biqv-card-image,
.biqv-home-card:hover .biqv-card-image,
.biqv-video-card:hover .biqv-card-image {
  top: -3px !important;
  left: -3px !important;

  width: calc(100% + 6px) !important;
  height: calc(100% + 6px) !important;

  transform: none !important;
  transition: none !important;

  scale: 1 !important;

  border: 0 !important;
  outline: 0 !important;

  box-shadow: none !important;
}

.biqv-image-placeholder {
  background: linear-gradient(135deg, #edf3f5, #dbe8ec);
}

/* =========================================================
   PLAY
========================================================= */
.biqv-play {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 34px;
  height: 34px;

  transform: translate(-50%, -50%) !important;

  border: 0 !important;
  border-radius: 50%;

  outline: 0 !important;

  background: rgba(255,255,255,.82);

  box-shadow: 0 1px 7px rgba(0,0,0,.12);

  pointer-events: none;
}

.biqv-play span {
  position: absolute;

  top: 50%;
  left: 54%;

  width: 0;
  height: 0;

  transform: translate(-50%, -50%);

  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid rgba(110,110,110,.75);
}

/* =========================================================
   PÁGINA TODOS OS VÍDEOS
========================================================= */
.biqv-page-width {
  width: calc(100% - (var(--biqv-page-gutter) * 2));
  max-width: var(--biqv-max-width);

  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   INTRO
========================================================= */
.biqv-page-intro {
  padding: 32px var(--biqv-page-gutter) 46px;
  background: #fff;
}

.biqv-page-intro-inner {
  text-align: center;
}

.biqv-page-title {
  margin: 0 0 27px;

  color: var(--biqv-text);

  font: inherit;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.biqv-page-lead {
  width: 100%;
  max-width: 760px;

  margin: 0 auto 14px;

  color: var(--biqv-blue);

  font: inherit;
  font-size: clamp(14px, 1.25vw, 17px);
  font-weight: 700;
  line-height: 1.3;
}

.biqv-page-copy {
  width: 100%;
  max-width: 800px;

  margin: 0 auto;

  color: #666;

  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

/* =========================================================
   CATEGORIAS
========================================================= */
.biqv-category-list {
  width: 100%;
  background: #fff;
}

.biqv-category {
  width: 100%;

  margin: 0;
  padding: 0;
}

.biqv-category-band {
  width: 100%;
  min-height: 56px;

  display: flex;
  align-items: center;

  background: var(--biqv-band);
}

.biqv-category-title {
  margin: 0;
  padding: 0;

  color: var(--biqv-blue);

  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

/* =========================================================
   CARROSSEL
========================================================= */
.biqv-carousel-shell {
  position: relative;

  width: calc(100% - (var(--biqv-page-gutter) * 2));
  max-width: var(--biqv-max-width);

  margin: 0 auto;

  padding: 32px 50px 38px;
}

.biqv-carousel-window {
  width: 100%;
  overflow: hidden;
}

.biqv-carousel-track {
  --biqv-carousel-gap: var(--biqv-card-gap);

  display: flex;

  gap: var(--biqv-carousel-gap);

  align-items: stretch;

  transform: translate3d(0,0,0);

  transition: transform .36s cubic-bezier(.2,.7,.2,1);

  will-change: transform;
}

/* =========================================================
   CARD
========================================================= */
.biqv-video-card {
  flex: 0 0 calc((100% - (2 * var(--biqv-carousel-gap))) / 3);

  min-width: 0;

  margin: 0;
  padding: 0;

  border: 0 !important;

  outline: 0 !important;

  background: transparent !important;

  box-shadow: none !important;

  transform: none !important;
}

.biqv-video-card:hover,
.biqv-video-card:focus,
.biqv-video-card:active {
  border: 0 !important;

  outline: 0 !important;

  box-shadow: none !important;

  transform: none !important;
}

/* =========================================================
   INTERIOR DO CARD
========================================================= */
.biqv-video-card-inner {
  height: 100%;

  padding: 0 0 16px;

  overflow: hidden;

  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;

  border-radius: 0 !important;

  outline: 0 !important;

  background: #fff;

  box-shadow: none !important;

  transform: none !important;
  transition: none !important;
}

.biqv-video-card-inner:hover,
.biqv-video-card-inner:focus,
.biqv-video-card-inner:focus-visible,
.biqv-video-card-inner:active {
  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;

  outline: 0 !important;

  box-shadow: none !important;

  transform: none !important;
  transition: none !important;
}

.biqv-video-card-inner::before,
.biqv-video-card-inner::after,
.biqv-video-card-inner:hover::before,
.biqv-video-card-inner:hover::after {
  display: none !important;
  content: none !important;

  border: 0 !important;

  background: none !important;

  box-shadow: none !important;
}

.biqv-video-card-inner > .biqv-video-trigger,
.biqv-home-card > .biqv-video-trigger,
.biqv-page-thumb,
.biqv-page-thumb:hover,
.biqv-page-thumb:focus,
.biqv-page-thumb:active {
  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;

  outline: 0 !important;

  box-shadow: none !important;

  transform: none !important;
}

.biqv-page-thumb .biqv-play,
.biqv-video-card .biqv-play {
  width: 30px;
  height: 30px;
}

.biqv-video-card-title {
  margin: 17px 14px 0;

  color: #292929;

  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;

  border: 0 !important;

  outline: 0 !important;

  text-decoration: none !important;

  box-shadow: none !important;
}

/* =========================================================
   SETAS DO CARROSSEL
========================================================= */
.biqv-carousel-arrow,
.biqv-carousel-arrow:hover,
.biqv-carousel-arrow:focus,
.biqv-carousel-arrow:active,
.biqv-carousel-arrow[disabled] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;

  text-decoration: none !important;

  appearance: none;
  -webkit-appearance: none;
}

.biqv-carousel-arrow {
  position: absolute;

  top: 50%;

  z-index: 5;

  display: flex;

  width: 38px;
  height: 50px;

  align-items: center;
  justify-content: center;

  margin: 0;
  padding: 0;

  transform: translateY(-50%);

  color: var(--biqv-blue) !important;

  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 200;
  line-height: 1;

  cursor: pointer;
}

.biqv-carousel-prev {
  left: 2px;
}

.biqv-carousel-next {
  right: 2px;
}

.biqv-carousel-arrow:hover {
  color: var(--biqv-blue) !important;
  opacity: .72;
}

.biqv-carousel-arrow:focus,
.biqv-carousel-arrow:focus-visible {
  outline: none !important;
}

.biqv-carousel-arrow[disabled] {
  opacity: .18;
  cursor: default;
}

.biqv-empty {
  margin: 20px 0;

  text-align: center;

  color: var(--biqv-muted);

  font-size: 14px;
}

/* =========================================================
   LIGHTBOX
========================================================= */
body.biqv-no-scroll {
  overflow: hidden;
}

.biqv-lightbox {
  position: fixed;

  inset: 0;

  z-index: 999999;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 26px;

  background: rgba(0,0,0,.90);
}

.biqv-lightbox-dialog {
  position: relative;

  width: min(1100px, 92vw);

  aspect-ratio: 16 / 9;

  border: 0 !important;

  outline: 0 !important;

  background: #000;

  box-shadow: none !important;
}

.biqv-lightbox iframe {
  display: block;

  width: 100%;
  height: 100%;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;

  outline: 0 !important;

  box-shadow: none !important;
}

.biqv-lightbox-close,
.biqv-lightbox-close:hover,
.biqv-lightbox-close:focus,
.biqv-lightbox-close:active {
  position: absolute;

  top: -45px;
  right: 0;

  width: 38px;
  height: 38px;

  margin: 0;
  padding: 0;

  border: 0 !important;

  outline: 0 !important;

  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;

  box-shadow: none !important;

  color: #fff !important;

  font: 300 34px/1 Arial, sans-serif;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;
}

/* =========================================================
   TABLET / RESPONSIVO
========================================================= */
@media (max-width: 900px) {
  :root {
    --biqv-page-gutter: 20px;
    --biqv-card-gap: 20px;
  }

  .biqv-home {
    padding-top: 28px;
    padding-bottom: 38px;
  }

  /* Homepage Layout em Mobile/Tablet */
  .biqv-home-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .biqv-home-featured .biqv-video-trigger {
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
  }

  .biqv-home-side-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .biqv-page .biqv-carousel-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 30px 0 35px;
  }

  .biqv-page .biqv-carousel-window {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    touch-action: pan-x pinch-zoom;
    scrollbar-width: none;
    cursor: grab;
  }

  .biqv-page .biqv-carousel-window::-webkit-scrollbar {
    display: none;
  }

  .biqv-page .biqv-carousel-window:active {
    cursor: grabbing;
  }

  .biqv-page .biqv-carousel-track {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: var(--biqv-carousel-gap);
    align-items: stretch;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .biqv-page .biqv-video-card {
    flex: 0 0 calc((100vw - 60px) / 2);
    width: calc((100vw - 60px) / 2);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .biqv-page .biqv-carousel-arrow {
    display: none !important;
  }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 640px) {
  :root {
    --biqv-page-gutter: 15px;
    --biqv-card-gap: 14px;
  }

  .biqv-home {
    padding: 24px var(--biqv-page-gutter) 34px;
  }

  .biqv-home-title {
    margin-bottom: 20px;
  }

  .biqv-home-side-list {
    grid-template-columns: 1fr;
  }
}