/* Nút ảnh dùng chung, trạng thái tương tác và các thành phần nội dung. */
.vt-art-link {
  position: relative;
  display: block;
}

.vt-art-link > img,
.vt-art-link > picture,
.vt-art-link picture img {
  width: 100%;
  height: 100%;
}

.vt-art-link > img,
.vt-art-link > picture {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vt-art-link__base {
  transition: opacity 120ms ease;
}

.vt-art-link:hover .vt-art-link__base,
.vt-art-link:active .vt-art-link__base,
.vt-art-link:focus-visible .vt-art-link__base {
  opacity: 0;
}

.vt-art-link--glow img {
  object-fit: contain;
  transition: filter 120ms ease;
}

.vt-art-link--glow:hover img,
.vt-art-link--glow:focus-visible img {
  filter: brightness(1.12);
}

.vt-bulletin__frames {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: #291500;
  touch-action: pan-y;
}

.vt-bulletin__banner {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}

.vt-bulletin__banner[aria-hidden="false"] {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.vt-bulletin__banner:focus-visible {
  outline: 3px solid #ffd16d;
  outline-offset: -3px;
}

.vt-bulletin__controls {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.vt-bulletin__control {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border: 1px solid #bd863c;
  border-radius: 6px;
  background: linear-gradient(#fff5d4, #ecd092);
  color: #812812;
  font-size: 26px;
  line-height: 1;
}

.vt-bulletin__rotation {
  font-size: 15px;
}

.vt-bulletin__dots {
  display: flex;
  gap: 2px;
}

.vt-bulletin__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
}

.vt-bulletin__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid #ad7837;
  border-radius: 50%;
  background: #d8b678;
}

.vt-bulletin__dot[aria-pressed="true"]::before {
  background: #a3321a;
  box-shadow: 0 0 0 3px #ae763b38;
}

.vt-bulletin__control:hover {
  background: #ffe8ad;
}

.vt-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #b9864659;
}

.vt-categories__tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  height: 48px;
  padding: 0 10px;
  border: 1px solid #b9864666;
  border-radius: 8px;
  background: #fff8df80;
  color: #77491e;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.vt-categories__tab:hover {
  border-color: #b57932;
  background: #fff5d5;
  color: #8f2713;
}

.vt-categories__tab[aria-selected="true"] {
  border-color: #d9a34e;
  background: linear-gradient(180deg, #ac331b, #7e1f10);
  box-shadow:
    inset 0 1px 0 #ffe2a34d,
    0 3px 8px #69270c29;
  color: #fff1c4;
}

.vt-categories__tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-right: 1px solid #d9a34e;
  border-bottom: 1px solid #d9a34e;
  background: #7e1f10;
  transform: rotate(45deg);
}

.vt-categories__glyph,
.vt-bulletin__all svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vt-categories__tab:focus-visible,
.vt-bulletin__all:focus-visible {
  outline: 2px solid #8f2713;
  outline-offset: 4px;
}

.vt-bulletin__panel {
  position: relative;
  min-height: 328px;
  padding-bottom: 58px;
}

.vt-entries {
  padding: 0 0 0 4px;
  list-style: none;
}

.vt-entries li + li {
  border-top: 1px solid var(--color-primary);
}

.vt-entry__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 24px 9px 16px;
  font-size: 16px;
  font-weight: 600;
}

.vt-entry__link:hover {
  background: #fff0c7;
  color: var(--color-red);
}
.vt-entry__title {
  max-width: 75%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
}
.vt-entry__date {
  display: flex;
  flex-shrink: 0;
}
.vt-bulletin__empty {
  padding: 18px 16px;
  font-size: 16px;
}

.vt-bulletin__all {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 206px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #d9a34e;
  border-radius: 8px;
  background: linear-gradient(180deg, #ac331b, #7e1f10);
  box-shadow:
    inset 0 1px 0 #ffe2a34d,
    0 3px 8px #69270c29;
  color: #fff1c4;
  font-size: 16px;
  font-weight: 600;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.vt-bulletin__all:hover {
  background: linear-gradient(180deg, #c44423, #942815);
  box-shadow:
    inset 0 1px 0 #ffe2a366,
    0 4px 12px #69270c40;
}

.vt-bulletin__all svg {
  transition: transform 160ms ease;
}

.vt-bulletin__all:hover svg {
  transform: translateX(3px);
}

.vt-video-trigger {
  position: absolute;
  top: 78px;
  left: 103px;
  width: 71px;
  height: 71px;
  transition: transform 160ms;
}

.vt-gallery__pager {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.vt-gallery__pager::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  background: url("../images/ui/gallery-dot-ruby.webp") center / contain no-repeat;
  filter: grayscale(0.85) brightness(0.65);
  transform: translate(-50%, -50%);
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.vt-gallery__pager:hover::before {
  filter: grayscale(0.3) brightness(0.95);
}

.vt-gallery__pager[aria-pressed="true"]::before {
  filter: drop-shadow(0 0 5px #efba4073);
  transform: translate(-50%, -50%) scale(1.15);
}

.vt-gallery__carousel {
  position: absolute;
  inset: 0;
}

.vt-gallery__viewport {
  position: absolute;
  top: 230px;
  left: 331px;
  width: 1248px;
  height: 501px;
  overflow: hidden;
  touch-action: pan-y;
}
.vt-gallery__slide {
  position: absolute;
  top: 0;
  left: 185px;
  z-index: 0;
  width: 890px;
  height: 501px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.848315);
  transition:
    transform 320ms ease,
    opacity 320ms ease,
    filter 320ms ease;
}
.vt-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vt-gallery__slide.vt-slide-current {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.vt-gallery__slide.vt-slide-before {
  z-index: 2;
  opacity: 1;
  filter: brightness(0.5);
  transform: translate(-252.5px, 2px) scale(0.848315);
}
.vt-gallery__slide.vt-slide-after {
  z-index: 2;
  opacity: 1;
  filter: brightness(0.5);
  transform: translate(240.5px, 2px) scale(0.848315);
}
.vt-gallery__arrow {
  position: absolute;
  top: 444px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
}
.vt-gallery__arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 160ms ease;
}
.vt-gallery__arrow:hover img,
.vt-gallery__arrow:focus-visible img {
  filter: brightness(1.15) drop-shadow(0 0 5px #efba4073);
}
.vt-gallery__arrow--backward img {
  transform: scaleX(-1);
}
.vt-gallery__arrow--backward {
  left: 228px;
}
.vt-gallery__arrow--forward {
  left: 1620px;
}
.vt-gallery__pagination {
  position: absolute;
  top: 799px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.vt-download-dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 36px 28px 28px;
  overflow-y: auto;
  border: 1px solid #e0b564;
  border-radius: 16px;
  background: radial-gradient(ellipse at top, #6f281a 0%, #361811 65%, #21130e 100%);
  box-shadow:
    0 20px 80px #0008,
    inset 0 0 0 5px #d19b3b18;
  color: #fff4d5;
}

.vt-download-dialog::backdrop {
  background: #120b08c9;
}

.vt-download-dialog__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffe4a4;
  font-size: 28px;
}

.vt-download-dialog__brand {
  margin-bottom: 8px;
  color: #e9b967;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.vt-download-dialog h2 {
  color: #ffe3a0;
  font-size: clamp(26px, 5vw, 32px);
  text-align: center;
  text-transform: uppercase;
}

.vt-download-dialog__description {
  margin: 12px 0 24px;
  color: #e6d6ba;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.vt-download-dialog__choices {
  display: grid;
  gap: 12px;
}

.vt-download-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 80px;
  padding: 16px;
  border: 1px solid #dbaa55;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff1c9, #eac681);
  color: #682811;
  text-align: left;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.vt-download-choice:hover:not(:disabled) {
  background: #fff3cc;
  box-shadow: 0 0 18px #e9b95440;
}

.vt-download-choice__number {
  color: #a86522;
  font-size: 20px;
  font-weight: 700;
}

.vt-download-choice__label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.vt-download-choice strong,
.vt-download-choice small {
  display: block;
}

.vt-download-choice strong {
  font-size: 16px;
}

.vt-download-choice small {
  margin-top: 4px;
  font-size: 12px;
}

.vt-download-choice__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vt-download-choice:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vt-download-dialog :focus-visible {
  outline: 2px solid #fff1c9;
  outline-offset: 3px;
}

.vt-lightbox {
  position: fixed;
  width: min(1100px, 94vw);
  max-width: 94vw;
  padding: 44px 12px 12px;
  border: 1px solid #c49a47;
  border-radius: 8px;
  background: #20170e;
  color: #fff2ca;
}
.vt-lightbox::backdrop {
  background: #000c;
}
.vt-lightbox--topup {
  width: min(862px, 94vw);
}
.vt-lightbox__dismiss {
  position: absolute;
  top: 0;
  right: 4px;
  width: 44px;
  height: 44px;
  font-size: 32px;
}
.vt-lightbox__content img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  margin: auto;
  object-fit: contain;
}
.vt-lightbox__content iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (max-width: 1023px) {
  .vt-categories {
    gap: 5px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  .vt-categories__tab {
    flex-direction: column;
    gap: 5px;
    height: 60px;
    padding: 6px 4px;
    font-size: 11.5px;
  }
  .vt-categories__glyph {
    width: 19px;
    height: 19px;
  }
  .vt-bulletin__panel {
    min-height: 246px;
    padding-bottom: 54px;
  }
  .vt-entries {
    padding: 0;
  }
  .vt-entry__link {
    gap: 8px;
    padding: 8.5px 8px 4.5px;
    font-size: 12px;
  }
  .vt-bulletin__empty {
    font-size: 12px;
  }
  .vt-bulletin__all {
    width: 100%;
    height: 42px;
    font-size: 13px;
  }

  .vt-video-trigger {
    top: 42px;
    left: 52px;
    width: 50px;
    height: 50px;
  }

  .vt-gallery__viewport {
    top: 100px;
    left: 29px;
    width: 332px;
    height: 187px;
  }
  .vt-gallery__slide {
    left: 0;
    width: 332px;
    height: 187px;
  }
  .vt-gallery__slide.vt-slide-before,
  .vt-gallery__slide.vt-slide-after {
    opacity: 0;
  }
  .vt-gallery__arrow {
    top: 294px;
    width: 44px;
    height: 44px;
  }
  .vt-gallery__arrow--backward {
    left: 29px;
  }
  .vt-gallery__arrow--forward {
    left: 317px;
  }
  .vt-gallery__pagination {
    top: 294px;
    left: 50%;
    gap: 4px;
  }
  .vt-gallery__pagination .vt-gallery__pager {
    width: 36px;
    height: 44px;
  }
  .vt-gallery__pagination .vt-gallery__pager::before {
    width: 24px;
    height: 24px;
  }
}

.vt-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 50;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border: 1px solid #c49a47;
  border-radius: 8px;
  transform: translateX(-50%);
  background: #291a0b;
  color: #fff0c4;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 4px 20px #0005;
}
