: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;
}

/* Impede o tema de adicionar sublinhados/linhas aos links do plugin. */
.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;
  box-shadow: none;
}

/* =========================================================
   HOMEPAGE
========================================================= */
.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;
}

.biqv-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.biqv-home-card {
  min-width: 0;
  margin: 0;
}

.biqv-home-card-title {
  margin: 10px 4px 0;
  color: #4e4e4e;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  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: 11px;
  font-weight: 600;
  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 THUMBNAILS
========================================================= */
.biqv-video-trigger {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0;
  outline: 0;
  background: #eef2f4;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none !important;
}

.biqv-video-trigger:hover,
.biqv-video-trigger:focus,
.biqv-video-trigger:active {
  border: 0 !important;
  box-shadow: none !important;
}

.biqv-video-trigger:focus-visible {
  outline: 2px solid var(--biqv-blue);
  outline-offset: 2px;
}

.biqv-card-image,
.biqv-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  transition: transform .35s ease;
}

.biqv-video-trigger:hover .biqv-card-image {
  transform: scale(1.025);
}

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

.biqv-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  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;
}

.biqv-video-card {
  flex: 0 0 calc((100% - (2 * var(--biqv-carousel-gap))) / 3);
  min-width: 0;
  margin: 0;
}

.biqv-video-card-inner {
  height: 100%;
  padding: 9px 9px 16px;
  border: 1px solid var(--biqv-border);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.biqv-video-card-inner:hover {
  border-color: #cfeaf5;
  box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

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

.biqv-video-card-title {
  margin: 17px 5px 0;
  color: #292929;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
}

/* =========================================================
   SETAS DO CARROSSEL - SEM QUALQUER BACKGROUND
========================================================= */
.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-visible {
  outline: 1px dotted var(--biqv-blue);
  outline-offset: 2px;
}

.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;
  background: #000;
}

.biqv-lightbox iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.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;
  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
========================================================= */
@media (max-width: 900px) {
  :root {
    --biqv-page-gutter: 20px;
    --biqv-card-gap: 20px;
  }

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

  .biqv-carousel-shell {
    width: calc(100% - 20px);
    padding: 30px 44px 35px;
  }

  .biqv-video-card {
    flex-basis: calc((100% - var(--biqv-carousel-gap)) / 2);
  }
}

/* =========================================================
   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-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .biqv-home-card-title {
    margin-left: 2px;
    margin-right: 2px;
  }

  .biqv-home-more-wrap {
    margin-top: 24px;
  }

  .biqv-page-intro {
    padding: 26px 15px 36px;
  }

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

  .biqv-page-lead {
    margin-bottom: 12px;
  }

  .biqv-category-band {
    min-height: 50px;
  }

  .biqv-category-title {
    font-size: 15px;
  }

  .biqv-carousel-shell {
    width: 100%;
    padding: 25px 42px 30px;
  }

  .biqv-video-card {
    flex-basis: 100%;
  }

  .biqv-video-card-title {
    font-size: 13px;
  }

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

  .biqv-lightbox {
    padding: 12px;
  }

  .biqv-lightbox-dialog {
    width: 100%;
  }
}

/* =========================================================
   MOBILE PEQUENO
========================================================= */
@media (max-width: 420px) {
  .biqv-carousel-shell {
    padding-left: 35px;
    padding-right: 35px;
  }

  .biqv-home {
    padding-left: 14px;
    padding-right: 14px;
  }

  .biqv-play {
    width: 30px;
    height: 30px;
  }
}

/* =========================================================
   ACESSIBILIDADE / REDUZIR MOVIMENTO
========================================================= */
@media (prefers-reduced-motion: reduce) {
  .biqv-carousel-track,
  .biqv-card-image,
  .biqv-home-more,
  .biqv-video-card-inner {
    transition: none !important;
  }
}
