* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: #103638; color: #f7f1df; }
body { margin: 0; font-family: var(--font); background: radial-gradient(ellipse at 50% 25%, #205355, transparent 75%); }
a { color: inherit; }
.page { width: min(1180px, 100%); margin: auto; padding: 22px max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)); }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 14px; }
.brand strong { display: block; font-size: 25px; font-weight: 600; letter-spacing: .02em; }
.subtitle { display: block; margin-top: 3px; font-size: 14px; color: #d5ddcd; }
.play-link { flex-shrink: 0; border: 1px solid #b9a773; border-radius: 24px; padding: 10px 17px; text-decoration: none; font-size: 15px; }
.release-status {
  flex: 0 0 auto;
  padding: .55em .85em;
  border: 1px solid #40533d;
  border-radius: 4px;
  color: #d1e5ce;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}
.play-link:hover, button:hover { background: #2b5551; }
.player { position: relative; display: grid; place-items: center; }
video { display: block; width: 100%; max-height: calc(100svh - 170px); aspect-ratio: 16 / 9; object-fit: contain; background: #092628; border-radius: 12px; box-shadow: 0 16px 48px #001f2360; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-top: 12px; }
.footer p { margin: 0; color: #d5ddcd; font-size: 15px; }
.viewing-controls { display: flex; align-items: center; gap: 12px; }
.viewing-hint { display: none; color: #ddd; font-size: 14px; line-height: 1.4; }
.teaser-page #teaser-fullscreen {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  min-height: 44px; padding: 8px 15px; border: 1px solid var(--ram-green); border-radius: 4px;
  color: var(--ram-black); background: var(--ram-green); font-weight: 600;
}
.teaser-page #teaser-fullscreen:hover { background: #78e466; }
.fullscreen-icon { font: 22px/1 "Segoe UI Symbol", system-ui, sans-serif; }
.teaser-page #teaser-video:fullscreen {
  width: 100%; height: 100%; max-height: none; aspect-ratio: auto;
  object-fit: contain; border-radius: 0; box-shadow: none; background: #000;
}
.credits { color: #b8cbbb; font-size: 12px; text-underline-offset: 3px; }
.credits-dialog {
  width: min(28rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #181818;
  color: #f6f6f6;
  box-shadow: 0 0 0 1px #555, 0 18px 64px #0009;
  overscroll-behavior: contain;
}
.credits-dialog:not([open]) { display: none; }
.credits-dialog::backdrop { background: rgb(0 0 0 / 72%); }
.credits-card { padding: clamp(20px, 5vw, 32px); }
.credits-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.credits-heading h2 { margin: 0; font-size: 1.25rem; }
.teaser-page .credits-close {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 50%; font-size: 1.6rem; line-height: 1;
}
.credits-track { margin: 1.25rem 0; padding-left: 14px; border-left: 3px solid var(--ram-green); }
.credits-track h3 { margin: 0; font-size: clamp(1.6rem, 5vw, 2rem); }
.credits-card p { margin: .45rem 0 0; color: #d4d4d4; font-size: .95rem; line-height: 1.5; }
.credits-sound h3 { margin: 0; font-size: 1rem; }
.credits-notes { margin-top: 1.25rem; border-top: 1px solid #444; }
.credits-notes summary { padding: .8rem 0; cursor: pointer; font-size: .875rem; }
.credits-notes summary:focus-visible { outline: 2px solid var(--ram-green); outline-offset: 2px; }
.credits-notes p { margin: 0 0 .65rem; }
html:has(.credits-dialog[open]) { overflow: hidden; }
button { font: inherit; font-size: 15px; color: #f8e6b2; background: transparent; border: 1px solid #698a7d; border-radius: 22px; padding: 9px 16px; cursor: pointer; white-space: nowrap; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid #f1d181; outline-offset: 4px; }
.error { text-align: center; color: #f8e6b2; line-height: 1.5; }
@media (orientation: portrait) {
  video:has(source[media]) { width: min(100%, calc((100svh - 180px) * 9 / 16)); max-height: none; aspect-ratio: 9 / 16; }
}
@media (orientation: portrait) and (max-width: 900px) {
  .footer { flex-wrap: wrap; }
  .viewing-controls { flex-basis: 100%; }
  .player:not(:has(source[media])) + .footer #rotation-hint { display: inline; }
}
@media (max-width: 560px) {
  .page { padding-top: 16px; padding-left: 14px; padding-right: 14px; }
  .heading { gap: 10px; margin-bottom: 16px; }
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 21px; }
  .subtitle { font-size: 12px; text-wrap: balance; }
  .play-link { font-size: 13px; padding: 9px 11px; }
  .release-status { max-width: 8em; padding: .5em .65em; font-size: 13px; }
  .footer { justify-content: space-between; }
  .footer p { display: none; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .page { padding-top: 10px; padding-bottom: 10px; }
  .heading { margin-bottom: 10px; }
  .brand img { width: 32px; height: 32px; }
  .brand strong { font-size: 20px; }
  .subtitle { margin-top: 0; font-size: 12px; }
  video { max-height: calc(100svh - 120px); }
  .footer { flex-wrap: wrap; min-height: 36px; margin-top: 8px; }
  .viewing-controls { flex-basis: 100%; }
  #landscape-hint { display: inline; }
}
