body.iptv-auth-gate-open {
  overflow: hidden;
}

.iptv-auth-gate[hidden] {
  display: none !important;
}

.iptv-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.iptv-auth-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.iptv-auth-gate__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 38px 32px 32px;
  border-radius: 18px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  text-align: center;
}

.iptv-auth-gate__dialog h2 {
  margin: 0 0 12px;
  color: #111;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.iptv-auth-gate__dialog p {
  margin: 0 0 24px;
  color: #444;
  font-size: 17px;
  line-height: 1.55;
}

.iptv-auth-gate__close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.iptv-auth-gate__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.iptv-auth-gate__actions a {
  min-width: 130px;
  text-align: center;
}

[data-iptv-auth-gate] {
  cursor: pointer;
}

[data-iptv-auth-gate]:focus-visible {
  outline: 3px solid #00c91b;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .iptv-auth-gate__dialog {
    padding: 34px 20px 24px;
  }

  .iptv-auth-gate__actions {
    flex-direction: column;
  }

  .iptv-auth-gate__actions a {
    width: 100%;
  }
}
