:root {
  --vl-radius: 4px;
}

/* =========================
   WRAPPER / TÍTULO
========================= */

.vl-wrapper {
  margin: 0 auto;
}

.vl-titulo {
  text-align: center;
  font-size: clamp(32px, 4vw, 42px);
  color: #49c5b1;
  margin: 0 0 50px;
}

/* =========================
   GRIDS
========================= */

.vl-grid-home {
  display: grid;
  grid-template-columns: minmax(0, 3.4fr) minmax(150px, 1fr);
  gap: 32px;
  align-items: stretch;
}

.vl-side-list {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr)) auto;
  gap: 20px;
  min-height: 0;
}

.vl-grid-all {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.vl-card {
  min-width: 0;
}

.vl-featured,
.vl-side-list {
  min-width: 0;
}

/* =========================
   VIDEO CARDS
========================= */

.vl-video-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  appearance: none;
  border-radius: var(--vl-radius) !important;
}

.vl-video-card img,
.vl-video-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  border-radius: var(--vl-radius) !important;
}

.vl-video-placeholder {
  background: #111;
}

.vl-video-card:hover img {
  transform: scale(1.04);
}

.vl-video-mini {
  height: 100%;
  aspect-ratio: auto;
}

.vl-side-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  padding: 16px 24px;
  border-radius: 8px;
  background: #49c5b1;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.vl-side-button:hover,
.vl-side-button:focus {
  background: #3fb7a4;
  color: #fff;
  text-decoration: none;
}

.vl-side-button:focus {
  outline: 2px solid #49c5b1;
  outline-offset: 3px;
}

/* =========================
   PLAY BUTTON
========================= */

.vl-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.vl-video-mini .vl-play {
  width: 52px;
  height: 52px;
}

.vl-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-left: 16px solid #49c5b1;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.vl-video-mini .vl-play::before {
  border-left-width: 12px;
  border-top-width: 8px;
  border-bottom-width: 8px;
}

/* =========================
   LOADER
========================= */

.vl-loader {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.vl-loader::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 3px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: vl-spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes vl-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* =========================
   LIGHTBOX
========================= */

.vl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
}

.vl-lightbox-inner {
  position: relative;
  width: min(900px, 85vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--vl-radius) !important;
}

.vl-lightbox iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--vl-radius) !important;
}

.vl-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1000000;
  transition: opacity .2s ease, transform .2s ease;
  background-color: #49c5b1 !important;
}

.vl-close img {
  display: block;
  width: 100%;
  height: 100%;
}

.vl-close:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.vl-close:focus {
  outline: none;
}

/* Mobile */
@media (max-width: 600px) {
  .vl-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 9px;
  }
}

.vl-no-scroll {
  overflow: hidden;
}

.vl-empty {
  text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .vl-grid-home {
    grid-template-columns: 1fr;
  }

  .vl-side-list {
    grid-template-rows: none;
    grid-template-columns: 1fr;
  }

  .vl-video-mini {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .vl-grid-all {
    grid-template-columns: 1fr;
  }

  .vl-titulo {
    margin-bottom: 32px;
  }
}

@media (max-width: 600px) {
  :root {
    --vl-radius: 22px;
  }

  .vl-wrapper {
    width: 100%;
  }

  .vl-lightbox {
    padding: 16px;
  }

  .vl-lightbox-inner {
    width: 100%;
  }

  .vl-play {
    width: 58px;
    height: 58px;
  }

  .vl-play::before {
    border-left-width: 13px;
    border-top-width: 8px;
    border-bottom-width: 8px;
  }
}
