:root {
  /* Beey-like light UI palette */
  --bg0: #f7f1e8;
  --bg1: #f4eadf;
  --bg2: #fffaf3;
  --fg: #3f3f3f;
  --muted: rgba(63, 63, 63, 0.70);
  --link: #f5a23a;
  --linkHover: #e58c14;
  --card: rgba(0, 0, 0, 0.05);
}

html, body {
  height: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(900px 650px at 12% 22%, rgba(245, 162, 58, 0.18) 0%, rgba(245, 162, 58, 0.00) 60%),
    radial-gradient(900px 650px at 82% 18%, rgba(255, 255, 255, 0.70) 0%, rgba(255, 255, 255, 0.00) 55%),
    radial-gradient(900px 650px at 78% 92%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.00) 58%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg1) 55%, var(--bg0) 100%);
  color: var(--fg);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px;
}

h1, h2, h3 {
  margin: 0 0 12px 0;
  font-weight: 650;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--linkHover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

code {
  background: var(--card);
  color: var(--fg);
  padding: 2px 6px;
  border-radius: 6px;
}

.playerRoot {
  margin-top: 18px;
}

.playerWrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

.playerStage {
  position: relative;
  width: 100%;
  background: #000;
}

.playerVideo {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  position: relative;
  z-index: 1;
}

.playerSubtitle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(5% + env(safe-area-inset-bottom, 0px));
  padding: 0 4%;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
}

.playerSubtitleInner {
  max-width: min(92%, 980px);
  text-align: center;
  font-weight: 750;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.98);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.75),
    0 0 1px rgba(0, 0, 0, 0.75);
  font-size: clamp(16px, 2.2vw, 26px);
}

.playerWrap:fullscreen .playerSubtitle {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  padding: 0 6%;
}

.playerWrap:fullscreen .playerSubtitleInner {
  font-size: clamp(22px, 3.2vw, 44px);
  padding: 14px 18px;
  border-radius: 14px;
}

.playerWrap:fullscreen .playerControls {
  background: rgba(255, 255, 255, 0.35);
}

.playerWrap:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  border: 0;
  background: #000;
}

.playerWrap:fullscreen .playerStage {
  height: 100%;
}

.playerWrap:fullscreen .playerVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.playerWrap:fullscreen .playerControls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
}

/* Fallback class for environments where :fullscreen is unreliable */
.playerWrap.isFullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border-radius: 0;
  border: 0;
  background: #000;
}

.playerWrap.isFullscreen .playerStage {
  height: 100%;
}

.playerWrap.isFullscreen .playerVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.playerWrap.isFullscreen .playerControls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.35);
}

.playerWrap.isFullscreen .playerSubtitle {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  padding: 0 6%;
}

.playerWrap.isFullscreen .playerSubtitleInner {
  font-size: clamp(22px, 3.2vw, 44px);
  padding: 14px 18px;
  border-radius: 14px;
}

.playerControls {
  display: flex;
  gap: 10px;
  padding: 12px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.playerBtn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: rgba(255, 255, 255, 0.85);
  color: var(--fg);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 650;
  cursor: pointer;
}

.playerBtn:hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.95);
}

.playerBtn:active {
  transform: translateY(1px);
}

.playerStatus {
  padding: 12px 14px;
  border-radius: 12px;
  display: inline-block;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
}

