/* Southern Recognition — private video portal
   Palette matches the SR Command Center: deep charcoal ground, gold rule,
   cream type. The SR mark is one-color, reversed on dark. */

:root {
  --ink: #101216;
  --ink-2: #16181c;
  --ink-3: #1d2026;
  --line: #2a2c31;
  --gold: #c7a24a;
  --gold-lift: #d9b366;
  --cream: #f4efe3;
  --cream-bright: #fdf8ec;
  --muted: #8b8f98;
  --danger: #d0574a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1100px 620px at 50% -12%, #1c1f26 0%, rgba(28, 31, 38, 0) 62%),
    var(--ink);
  color: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 30px 0 26px;
}

.mark {
  height: 40px;
  width: auto;
  /* One-color mark reversed to cream on dark ground. */
  filter: brightness(0) invert(1) sepia(0.28) saturate(1.35) hue-rotate(2deg);
  opacity: 0.94;
}

.masthead-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), rgba(199, 162, 74, 0.45), var(--line));
}

.masthead-tag {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- shared ---------- */

/* `display: flex`/`grid` below would otherwise beat the `hidden` attribute and
   leak the theater onto the gate screen. This has to win. */
[hidden] {
  display: none !important;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 8px 0 56px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cream-bright);
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 58ch;
}

/* ---------- gate ---------- */

#gate {
  align-items: center;
  justify-content: center;
}

.gate-card {
  width: 100%;
  max-width: 470px;
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 44px 40px 34px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.gate-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

#gate-form {
  margin-top: 30px;
}

.field {
  display: block;
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

/* "if one was issued to you" — the username is optional here, and the label
   has to say so without shouting it in the same caps as the field name. */
.field-hint {
  text-transform: none;
  letter-spacing: 0.02em;
  opacity: 0.72;
}

input[type='password'],
input[type='text'],
input[type='email'] {
  width: 100%;
  padding: 14px 16px;
  background: #0c0e11;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream-bright);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type='password']:focus,
input[type='text']:focus,
input[type='email']:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 162, 74, 0.16);
}

button {
  width: 100%;
  padding: 14px 18px;
  background: linear-gradient(180deg, var(--gold-lift), var(--gold));
  color: #16130c;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.18s ease;
}

button:hover:not(:disabled) {
  filter: brightness(1.07);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.error {
  margin: 16px 0 0;
  color: var(--danger);
  font-size: 0.88rem;
}

.fineprint {
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #6d7078;
  font-size: 0.76rem;
  line-height: 1.5;
}

/* ---------- theater ---------- */

.theater-head {
  margin-bottom: 26px;
}

.player-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.player-ratio {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.player-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-meta {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.video-meta h2 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--cream-bright);
}

.video-meta p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
  font-size: 0.94rem;
}

/* ---------- assets ---------- */

.assets {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.assets-head {
  margin: 0 0 16px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.asset-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.asset-list a {
  display: block;
  padding: 15px 17px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.asset-list a:hover {
  border-color: var(--gold);
  background: var(--ink-3);
}

.asset-list .asset-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.asset-list .asset-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- multi-video switcher ---------- */

.switcher {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.switcher button {
  width: auto;
  padding: 10px 16px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
  font-weight: 500;
}

.switcher button[aria-current='true'] {
  border-color: var(--gold);
  color: var(--cream-bright);
  background: var(--ink-3);
}

/* ---------- footer ---------- */

.footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
  color: #6d7078;
  font-size: 0.76rem;
}

.footer-mark {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.35;
}

.footer p {
  margin: 0;
}

@media (max-width: 620px) {
  .frame {
    padding: 0 16px;
  }
  .gate-card {
    padding: 34px 26px 28px;
  }
}
