.zr-player {
  --max: 1500px;
  padding-block: clamp(.8rem, 3vw, 2rem) 2rem;
}

.zr-player-bar,
.zr-player-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.zr-player-bar {
  justify-content: space-between;
  gap: .7rem 1.5rem;
  margin-bottom: .9rem;
}

.zr-player-bar .eyebrow {
  margin: 0 0 .35rem;
}

.zr-player-bar h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.zr-player-links {
  gap: .3rem 1.1rem;
}

.zr-player-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.zr-player-frame {
  display: block;
  width: 100%;
  height: clamp(430px, calc(100vh - 170px), 900px);
  height: clamp(430px, calc(100svh - 170px), 900px);
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: #101b23;
}

.zr-player-note {
  max-width: 75ch;
  margin: .85rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}

@media (orientation: landscape) and (max-height: 560px) {
  .zr-player-frame {
    height: max(310px, calc(100svh - 38px));
  }
}

/* Fullscreen the iframe itself; the website controls stay outside the fullscreen view. */
.zr-player-stage {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.zr-player-controls {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .35rem .1rem .6rem;
  color: var(--muted);
  font-size: .9rem;
}
.zr-player-controls button {
  min-height: 44px;
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--surface, #15252b);
  color: var(--text, #f3f5ec);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.zr-player-controls button:focus-visible { outline: 3px solid var(--accent, #c6ff00); outline-offset: 2px; }
.zr-player-controls button:disabled { cursor: not-allowed; opacity: .55; }
.zr-player-frame:fullscreen {
  box-sizing: border-box;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #101b23;
}
