/* Shared design tokens and components. Change colours and fonts here. */
:root {
  --black: #0a0908;
  --panel: #12100d;
  --panel-2: #1a1712;
  --line: #2e281d;
  --gold: #d4af5f;
  --gold-light: #f1d99a;
  --gold-deep: #8a6c2f;
  --text: #f3ecdd;
  --muted: #a89f8c;
  --danger: #ef8b7a;
  --ok: #9ccf9a;
  --display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Consolas, monospace;
  --radius: 4px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--black); color: var(--text); font: 400 16px/1.65 var(--body); }
img, video, iframe { display: block; max-width: 100%; border: 0; }
a { color: var(--gold-light); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--gold); color: var(--black); padding: 8px 14px; }
.skip:focus { top: 12px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .34em; color: var(--gold); text-decoration: none; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 24px; border: 1px solid var(--gold-deep); border-radius: var(--radius);
  background: transparent; color: var(--text); font: 600 .92rem var(--body); text-decoration: none; cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { border-color: var(--gold-light); transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--gold { background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, #b8923f); border-color: transparent; color: #171106; }
.btn--gold:hover { box-shadow: 0 10px 34px rgb(212 175 95 / .28); }
.btn--small { min-height: 34px; padding: 4px 13px; font-size: .8rem; }
.btn--danger { border-color: #6b342b; color: var(--danger); }
.btn--danger:hover { border-color: var(--danger); }
.btn--block { width: 100%; }

label { display: block; font-size: .83rem; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; background: var(--black); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); font: 400 1rem var(--body);
  transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgb(212 175 95 / .16); }
textarea { resize: vertical; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--gold); }
input[type="file"] { padding: 9px; font-size: .88rem; }
input[type="file"]::file-selector-button { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); border-radius: 3px; padding: 4px 10px; margin-right: 10px; cursor: pointer; }
[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .8rem; margin: 4px 0 0; min-height: 0; }

/* Video player */
.player { width: min(1200px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); overflow: auto; }
.player[open] { animation: pop .3s ease; }
.player::backdrop { background: rgb(3 3 2 / .92); backdrop-filter: blur(6px); }
.player__panel { padding: 14px; }
.player__bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.player__title { font-size: 1.25rem; overflow-wrap: anywhere; }
.player__tools { display: flex; gap: 8px; margin-left: auto; }
.player__btn, .player__quality { width: auto; min-height: 36px; padding: 4px 12px; background: var(--black); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); font: 600 .8rem var(--body); cursor: pointer; }
.player__btn:hover { border-color: var(--gold); }
.player__stage { aspect-ratio: 16 / 9; max-height: 72dvh; width: 100%; background: #000; }
.player--portrait .player__stage { aspect-ratio: 9 / 16; height: 72dvh; }
.player__stage video, .player__stage iframe { width: 100%; height: 100%; object-fit: contain; }
.player__desc { color: var(--muted); margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.player__desc:empty, .player__note:empty { display: none; }
.player__note { color: var(--gold-light); margin: 10px 0 0; }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
