*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

#rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#rotate-overlay img {
  width: min(60vw, 60vh);
  height: auto;
}

@media (orientation: portrait) {
  #rotate-overlay { display: flex; }
}

#fullscreen-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  color: #fff;
  font-family: sans-serif;
  text-align: center;
}

#fullscreen-overlay p {
  font-size: clamp(1rem, 3vw, 1.4rem);
  max-width: 60%;
}

#fullscreen-btn {
  cursor: pointer;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  width: clamp(3rem, 8vw, 5rem);
  aspect-ratio: 6 / 5;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  transition: background 0.2s;
}

#fullscreen-btn:hover { background: rgba(255,255,255,0.3); }

#fullscreen-btn svg {
  width: 55%;
  height: 55%;
}

#exit-fullscreen-btn {
  display: none;
  position: fixed;
  bottom: 5px;
  right: 5px;
  width: 48px;
  height: 40px;
  cursor: pointer;
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 10000;
  transition: background 0.2s;
}

#exit-fullscreen-btn:hover { background: rgba(0,0,0,0.7); }

#exit-fullscreen-btn svg {
  width: 55%;
  height: 55%;
}

#enter-fullscreen-corner-btn {
  display: none;
  position: fixed;
  bottom: 5px;
  right: 5px;
  width: 48px;
  height: 40px;
  cursor: pointer;
  background: rgba(0,0,0,0.45);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  color: #fff;
  z-index: 10000;
  transition: background 0.2s;
}

#enter-fullscreen-corner-btn:hover { background: rgba(0,0,0,0.7); }

#enter-fullscreen-corner-btn svg {
  width: 55%;
  height: 55%;
}

#f11-hint {
  position: fixed;
  bottom: 55px;
  right: 5px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-family: sans-serif;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

#f11-hint.visible {
  opacity: 1;
}
