/* AO Player — popup video player (Alexandra O). No external fonts/CDN.
   Theme via custom properties; override on .ao-player in the host site. */
.ao-player {
  --ao-bg: #111214;
  --ao-fg: #f3f1ec;
  --ao-muted: #b9b5ac;
  --ao-accent: #c9a96a;
  --ao-backdrop: rgba(8, 8, 10, .82);
  --ao-radius: 10px;
  --ao-font: inherit;
  box-sizing: border-box;
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--ao-radius);
  background: var(--ao-bg);
  color: var(--ao-fg);
  font-family: var(--ao-font);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
.ao-player *, .ao-player *::before, .ao-player *::after { box-sizing: border-box; }
.ao-player::backdrop { background: var(--ao-backdrop); backdrop-filter: blur(2px); }
.ao-player[open] { animation: ao-in .18s ease-out; }
@keyframes ao-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ao-player[open] { animation: none; } }

.ao-player__stage { position: relative; background: #000; aspect-ratio: 16 / 9; max-height: calc(100dvh - 200px); }
.ao-player__stage.is-portrait { aspect-ratio: 9 / 16; max-height: calc(100dvh - 200px); margin: 0 auto; }
.ao-player__video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.ao-player__msg {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  padding: 24px; text-align: center; font-size: 15px; line-height: 1.5; color: var(--ao-fg); background: rgba(0,0,0,.7);
}
.ao-player__msg.is-on { display: flex; }

.ao-player__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; line-height: 1;
}
.ao-player__close:hover { background: rgba(0, 0, 0, .8); }
.ao-player__close:focus-visible, .ao-player__speed button:focus-visible {
  outline: 2px solid var(--ao-accent); outline-offset: 2px;
}

.ao-player__info { padding: 16px 20px 20px; display: grid; gap: 8px; }
.ao-player__title { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 600; text-wrap: balance; }
.ao-player__desc { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ao-muted); max-width: 72ch; }
.ao-player__desc.is-placeholder { font-style: italic; opacity: .8; }
.ao-player__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--ao-muted); }
.ao-player__speed { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ao-player__speed[hidden] { display: none; }
.ao-player__speed button {
  min-width: 44px; min-height: 44px; padding: 4px 10px; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--ao-fg); font: inherit;
}
.ao-player__speed button[aria-pressed="true"] { background: var(--ao-accent); border-color: var(--ao-accent); color: #111; }
.ao-player__kbd { margin-left: auto; opacity: .75; }

html.ao-lock, html.ao-lock body { overflow: hidden; }

@media (max-width: 640px) {
  .ao-player { width: 100vw; max-height: 100dvh; border-radius: 0; margin: auto 0; }
  .ao-player__stage { max-height: 70dvh; margin-top: 56px; } /* × sits above the video: native volume/mute top-right stays free (WebKit 390) */
  .ao-player__close { top: -50px; right: 8px; background: rgba(255, 255, 255, .12); }
  .ao-player__info { padding: 14px 16px 18px; }
  .ao-player__title { font-size: 16px; }
  .ao-player__desc { font-size: 14px; }
  .ao-player__kbd { display: none; }
}
