html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 0;
  background: #000;
}

.embed-body {
  margin: 0;
  padding: 0;
  background: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.video-embed-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-embed-wrapper video,
.embed-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.password-screen,
.embed-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.password-overlay {
  width: min(92%, 420px);
  padding: 24px;
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.92);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.password-overlay h1 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.password-overlay p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.password-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.password-mobile-space {
  display: none;
}

.password-row input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 17px;
  box-sizing: border-box;
}

.password-row button {
  flex: 0 0 auto;
  height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #1677ff;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.password-row button:hover {
  background: #0f63d8;
}

.auth-error {
  margin-top: 12px !important;
  color: #ffb4b4 !important;
}

.embed-message strong {
  display: block;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 520px) {
  .password-screen,
  .embed-message {
    padding: 10px;
  }

  .password-overlay {
    width: min(94%, 360px);
    padding: 14px;
    border-radius: 14px;
  }

  .password-overlay h1 {
    display: none;
  }

  .password-overlay p {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.45;
  }

  .password-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
  }

  .password-mobile-space {
    display: none;
  }

  .password-row input {
    flex: 1;
    min-width: 0;
    width: auto;
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
  }

  .password-row button {
    flex: 0 0 92px;
    width: 92px;
    height: 48px;
    padding: 0 8px;
    font-size: 14px;
  }

  .auth-error {
    margin-top: 10px !important;
    font-size: 12px;
  }
}