:root {
  --frame-w: 460px;
  --frame-h: 820px;
  --frame-radius: 6px;
  --font-title: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

#hs-popup-root,
#hs-popup-root * {
  box-sizing: border-box;
  font-family: var(--font-title);
}

#hs-popup-root {
  color: #ffffff;
}

.hs-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

.hs-popup.active {
  display: flex;
}

.hs-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-frame {
  position: relative;
  width: min(var(--frame-w), calc(100vw - 160px));
  height: min(var(--frame-h), calc(100vh - 80px));
  background: #000000;
  border-radius: var(--frame-radius);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

@media (max-width: 900px) {
  .hs-frame {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

.hs-topfade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent);
  z-index: 6;
  pointer-events: none;
}

.hs-progress {
  position: absolute;
  top: 10px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.hs-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.hs-fill {
  width: 0;
  height: 100%;
  background: #ffffff;
  transition: width linear;
}

.hs-header {
  position: absolute;
  top: 20px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}

.hs-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hs-flag {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #ffffff;
}

.hs-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hs-metaText {
  display: flex;
  flex-direction: column;
}

.hs-country {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.hs-hint {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.2;
}

.hs-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hs-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

.hs-close line {
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
}

.hs-slider {
  position: absolute;
  inset: 0;
}

.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hs-slide.active {
  opacity: 1;
}

.hs-video {
  position: absolute;
  inset: 0;
  background: #000000;
}

.hs-video iframe,
.hs-video img {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.hs-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 60px;
  z-index: 20;
}

.hs-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
}

.hs-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
}

.hs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  user-select: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hs-nav:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.05);
}

.hs-nav-left {
  left: calc(50% - (var(--frame-w) / 2) - 70px);
}

.hs-nav-right {
  right: calc(50% - (var(--frame-w) / 2) - 70px);
}

.hs-tap {
  position: absolute;
  inset: 0;
  bottom: 120px;
  z-index: 19;
  display: grid;
  grid-template-columns: 32% 36% 32%;
}

@media (max-width: 900px) {
  .hs-nav {
    display: none;
  }
}
