:root {
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: #14243a;
  background: #f5f7fa;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #008eae;
  outline-offset: 4px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
}
.brand {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  background: radial-gradient(
    ellipse at 30% 28%,
    #174d98 0,
    #122b50 55%,
    #091b31 100%
  );
  color: #f3f8ff;
  min-height: 600px;
}
.knot {
  position: absolute;
  width: clamp(180px, 23vw, 330px);
  height: auto;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
}
.brand p {
  font-size: 20px;
  line-height: 1.5;
  max-width: 29ch;
  margin: 0;
}
.access {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
.form-wrap {
  width: 100%;
  max-width: 410px;
}
.wordmark {
  width: 120px;
  height: auto;
  display: block;
}
.form-wrap .wordmark {
  margin-bottom: 40px;
}
h1 {
  font-size: 29px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.7px;
  margin: 0 0 16px;
}
.intro {
  color: #56677b;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 32px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.password-field {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #b4c1d1;
  border-radius: 8px;
}
.password-field:focus-within {
  border-color: #08779a;
}
input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  padding: 15px;
  color: #14243a;
  border-radius: 8px;
}
.reveal {
  background: none;
  border: 0;
  padding: 14px;
  color: #455f78;
  font-size: 13px;
}
#error {
  min-height: 22px;
  margin: 9px 0 14px;
  color: #a12727;
  font-size: 13px;
  line-height: 1.5;
}
.primary {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-radius: 8px;
  background: #0752c4;
  color: white;
  padding: 15px 18px;
  font-weight: 600;
}
.primary:hover {
  background: #0645a4;
}
.primary:disabled {
  opacity: 0.65;
  cursor: wait;
}
.private-note {
  color: #66758a;
  font-size: 12px;
  margin: 24px 0 0;
}
.watch {
  background: #071724;
  color: #eaf3ff;
  min-height: 100svh;
}
.watch header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw;
  border-bottom: 1px solid #263c50;
}
.watch .wordmark {
  background: #f5f7fa;
  border-radius: 4px;
  padding: 8px;
  width: 112px;
}
.exit {
  border: 1px solid #3a5269;
  color: #c4d3e4;
  background: transparent;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 13px;
}
.exit:hover {
  background: #172d41;
}
.cinema {
  max-width: 1360px;
  margin: auto;
  padding: 40px 5vw;
}
.video-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}
.video-heading h1 {
  font-size: 24px;
  margin: 0;
}
.video-heading p {
  font-size: 13px;
  color: #9bb1c7;
  margin: 0;
}
video {
  display: block;
  width: 100%;
  max-height: 72vh;
  aspect-ratio: 16/9;
  background: #02090e;
  border: 1px solid #263c50;
  border-radius: 8px;
}
.player-note {
  color: #9bb1c7;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 18px;
}
@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
  .brand {
    min-height: 210px;
    padding: 24px;
  }
  .brand .knot {
    width: 150px;
    left: auto;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
  }
  .brand p {
    font-size: 16px;
    max-width: 18ch;
    align-self: center;
  }
  .access {
    padding: 36px 24px 50px;
  }
  .form-wrap .wordmark {
    margin-bottom: 26px;
  }
  h1 {
    font-size: 25px;
  }
  .video-heading {
    display: block;
  }
  .video-heading p {
    margin-top: 10px;
  }
  .cinema {
    padding: 28px 16px;
  }
  .watch header {
    padding: 18px 16px;
  }
}

/* Quiet cinema presentation; the video remains the focus. */
.watch header {
  padding: 24px 4vw;
  border-bottom: 0;
}
.watch .wordmark {
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: 126px;
}
.watch {
  background: #07131f;
}
.exit {
  border-color: #293d50;
  color: #a7bbcf;
  padding: 9px 13px;
}
.cinema {
  max-width: 1480px;
  padding: 24px 4vw 40px;
}
.video-heading {
  display: block;
  margin-bottom: 24px;
}
.video-heading h1 {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.5px;
}
.video-heading p {
  margin-top: 10px;
  color: #91a8be;
}
.screen {
  overflow: hidden;
  border: 1px solid #2a3e50;
  border-radius: 12px;
  background: #02080d;
  box-shadow: 0 16px 48px #0004;
}
video {
  border: 0;
  border-radius: 0;
  max-height: 74vh;
  width: 100%;
  outline-offset: 5px;
}
.player-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 2px;
  color: #91a8be;
  font-size: 12px;
  letter-spacing: 0.1px;
}
@media (max-width: 760px) {
  .watch header {
    padding: 20px;
  }
  .cinema {
    padding: 20px 16px;
  }
  .watch .wordmark {
    width: 108px;
  }
  .video-heading {
    margin-bottom: 20px;
  }
  .screen {
    border-radius: 8px;
  }
  .player-footer {
    font-size: 11px;
  }
}
.admin-access {
  min-height: 100svh;
}

.deck-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #293d50;
  border-bottom: 1px solid #293d50;
  padding: 20px 0;
  margin-top: 8px;
}
.deck-row h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}
.deck-row p {
  color: #91a8be;
  font-size: 12px;
  margin: 0;
}
.deck-row nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.deck-row a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #3a5269;
  border-radius: 6px;
  color: #ccecff;
  font-size: 13px;
  text-decoration: none;
}
.deck-row a:hover {
  background: #172d41;
}
@media (max-width: 520px) {
  .deck-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}

/* Mobile: compact branding, readable inputs, and thumb-sized actions. */
button,
.deck-row a {
  min-height: 44px;
}
input {
  font-size: 16px;
}
.access,
.form-wrap,
.cinema {
  min-width: 0;
}
@media (max-width: 900px) {
  .entry .split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .entry .brand {
    min-height: 160px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 16px;
    align-items: center;
    padding: 24px;
  }
  .entry .brand .knot {
    position: static;
    width: 110px;
    transform: none;
    grid-column: 2;
    grid-row: 1;
  }
  .entry .brand p {
    grid-column: 1;
    grid-row: 1;
    font-size: 16px;
    max-width: 24ch;
  }
  .entry .access {
    padding: 28px 24px 36px;
    align-items: flex-start;
  }
  .entry .form-wrap {
    max-width: 440px;
  }
  .entry .form-wrap .wordmark {
    margin-bottom: 24px;
  }
  .entry .intro {
    margin-bottom: 24px;
  }
}
@media (max-width: 520px) {
  .entry .brand {
    padding: 20px;
    min-height: 144px;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 12px;
  }
  .entry .brand .knot {
    width: 88px;
  }
  .entry .brand p {
    font-size: 15px;
  }
  .entry .access {
    padding: 26px 20px max(28px, env(safe-area-inset-bottom));
  }
  .watch header {
    padding: 16px;
    gap: 16px;
  }
  .watch .cinema {
    padding: 12px 16px max(24px, env(safe-area-inset-bottom));
  }
  .video-heading h1 {
    font-size: 23px;
    line-height: 1.3;
  }
  .video-heading p {
    line-height: 1.5;
  }
  .player-footer {
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 12px;
  }
  .deck-row nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .deck-row a {
    padding: 12px 10px;
    justify-content: space-between;
    font-size: 13px;
  }
  .admin-access {
    padding: 28px 20px;
  }
}
@media (orientation: landscape) and (max-height: 500px) {
  .watch header {
    padding-block: 12px;
  }
  .watch .cinema {
    padding-top: 0;
  }
  .video-heading {
    margin-bottom: 12px;
  }
  .screen {
    max-width: calc(78svh * 16 / 9);
    margin-inline: auto;
  }
  video {
    max-height: 78svh;
  }
}

/* Language selection stays visible above the player, including on mobile. */
.video-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 24px;
}
.language-switch {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
  border-bottom: 1px solid #293d50;
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  color: #a7bbcf;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
}
.language-switch a[aria-current="page"] {
  color: #eaf3ff;
  border-bottom-color: #29c9ed;
}
.language-switch a:hover { color: #fff; }
.language-switch a:focus-visible {
  outline: 2px solid #29c9ed;
  outline-offset: 3px;
}
