html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  color: rgba(242, 246, 255, 0.94);
  background: transparent;
  font-family: "Microsoft YaHei", sans-serif;
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.center-message {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 11;
  display: block;
  max-width: min(520px, 92vw);
  padding: 12px 14px;
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  color: rgba(242, 246, 255, 0.94);
  background: rgba(12, 16, 28, 0.82);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%) rotate(-1.4deg);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.center-message[hidden] {
  display: none;
}

.message-text {
  display: block;
  padding-right: 34px;
}

.message-text strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
}

.message-text strong::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 226, 114, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 226, 114, 0.18);
  content: "";
}

.center-message a {
  display: inline-block;
  margin-top: 6px;
  color: #fff;
  text-underline-offset: 3px;
}

.center-message a[hidden] {
  display: none;
}

.close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: rgba(242, 246, 255, 0.92);
  background: rgba(13, 17, 30, 0.7);
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  line-height: 1;
}

.control-button {
  position: fixed;
  top: 45%;
  z-index: 10;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: rgba(242, 246, 255, 0.92);
  background: linear-gradient(180deg, rgba(52, 62, 84, 0.92), rgba(13, 17, 30, 0.92));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.control-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.prev-button {
  left: 20px;
}

.next-button {
  right: 20px;
}

body:hover .control-button:not(:disabled),
.control-button:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.control-button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.control-button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #ffbc00;
  outline-offset: 3px;
}

@media (hover: none), (pointer: coarse) {
  .control-button:not(:disabled) {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .control-button {
    transition: none;
  }
}
