:root {
  --vl-radius: 0px;
  --vl-gold: #8B6519;
}
.vl-wrapper,
.vl-wrapper * {
  box-sizing: border-box;
}

.vl-wrapper {
  width: 100%;
  margin: 0 auto;
}

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

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

.vl-featured {
  display: flex;
  align-self: stretch;
  min-height: 0;
}

.vl-featured > .vl-video-card {
  flex: 1;
  height: 100%;
  min-height: 0;
}

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

.vl-side-list .vl-card,
.vl-side-list .vl-video-card {
  height: 100%;
  min-height: 0;
}

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

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

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



.vl-video-card:focus-visible,
.vl-side-button:focus-visible,
.vl-close:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.vl-video-title {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: block;
  margin: 0;
  padding: 30px 16px 13px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0,0,0,0.91) 0%, rgba(0,0,0,0.62) 58%, transparent 100%);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.28;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  overflow-wrap: anywhere;
}

.vl-video-mini .vl-video-title {
  font-size: 12px;
  padding: 19px 10px 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vl-side-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  padding: 16px 24px;
  background: #8B6519;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  border-radius: var(--vl-radius) !important;
  transition: background-color 0.2s ease;
}

.vl-side-button:hover,
.vl-side-button:focus {
  background: #C1902C !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.vl-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 80px;
  height: 80px;
  background: rgba(201, 148, 41, 0.93);
  border: none !important;
  border-radius: 50%;
  box-shadow: 0 2px 16px rgba(0,0,0,0.24);
  pointer-events: none;
}

.vl-play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 17px solid #ffffff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

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

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

.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);
}

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

.vl-close {
  position: fixed;
  z-index: 1000000;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: #8B6519 !important;
  color: #ffffff !important;
  font-family: Arial, sans-serif;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--vl-radius) !important;
  transition: opacity 0.2s ease;
}

.vl-close:hover {
  opacity: 0.82;
}

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

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

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

  .vl-featured,
  .vl-featured > .vl-video-card,
  .vl-side-list .vl-card,
  .vl-side-list .vl-video-card {
    height: auto;
  }

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

  .vl-side-button {
    grid-column: 1 / -1;
  }

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

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

  .vl-side-list,
  .vl-grid-all {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .vl-side-list {
    grid-template-rows: auto;
  }

  .vl-side-button {
    grid-column: auto;
  }

  .vl-lightbox {
    padding: 16px;
  }

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

  .vl-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

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

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

  .vl-video-title {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vl-video-card img,
  .vl-side-button,
  .vl-close {
    transition: none;
  }
}
