/* ---------- Base ---------- */
:root {
  --navy: #1b2a4a;
  --navy-deep: #14203a;
  --gold: #c6a45c;
  --paper: #faf9f6;
  --ink: #21252b;
  --ink-soft: #6b7280;
  --chip: #1b4a68;
  --radius-pill: 999px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.pill-button {
  display: inline-block;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--gold);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 1rem 3.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.pill-button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }
.pill-button:active { transform: translateY(0); }

/* ---------- Gate (captive portal) ---------- */
.gate-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 1.5rem;
}

.gate-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.gate-emblem { width: 88px; height: 88px; margin-bottom: 0.75rem; }

.gate-firm {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  color: var(--navy);
}

.gate-tagline {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0.25rem 0 1.25rem;
}

.gate-instructions { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.5rem; }

.gate-form input {
  width: 100%;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 0.15em;
  padding: 0.9rem 1rem;
  border: 2px solid #d7d9de;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.gate-form input:focus { outline: none; border-color: var(--navy); }

.gate-form .pill-button { background: var(--navy); color: #fff; width: 100%; }

.gate-error { color: #b3261e; font-size: 0.9rem; margin-bottom: 1rem; }

.gate-help { color: var(--ink-soft); font-size: 0.85rem; margin-top: 1.5rem; }

/* ---------- Watch page: hero ---------- */
.watch-body { max-width: 720px; margin: 0 auto; background: var(--paper); }

.hero {
  background: var(--navy);
  text-align: center;
  padding: 2.5rem 1.5rem 2.25rem;
  border-radius: 0 0 28px 28px;
}

.hero-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  background: #fff;
  display: block;
  margin: 0 auto 1rem;
}

.hero-firm {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold);
  text-shadow:
    -1px -1px 0 #000, 1px -1px 0 #000,
    -1px 1px 0 #000, 1px 1px 0 #000,
    0 2px 3px rgba(0, 0, 0, 0.4);
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}

.hero-attorney {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-start { margin-bottom: 1rem; }

.lang-toggle {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.lang-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  cursor: pointer;
}
.lang-btn.active {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  border-color: var(--gold);
}

/* ---------- Player ---------- */
.player-section { padding: 1.25rem 1rem 0; }

.player-frame {
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.player-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; }

.player-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 58, 0.88);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1rem;
}
.player-overlay[hidden] { display: none; }

.overlay-text { font-size: 1.1rem; }
.overlay-text span { font-weight: 800; color: var(--gold); }
.overlay-next { font-size: 1.3rem; font-weight: 700; }

.overlay-cancel {
  margin-top: 0.5rem;
  background: transparent;
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.6rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.overlay-cancel:hover { background: rgba(255, 255, 255, 0.12); }

.tap-to-play { border: none; cursor: pointer; font-size: 1.1rem; font-weight: 600; }
.tap-icon {
  font-size: 1.6rem;
  background: var(--gold);
  color: var(--navy-deep);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
}

.now-playing {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0.9rem 0.25rem 0.6rem;
}

.player-nav { display: flex; justify-content: space-between; gap: 0.75rem; }

.nav-button {
  flex: 1;
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--gold);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-button:disabled { opacity: 0.35; cursor: default; }
.nav-button:not(:disabled):hover { background: var(--navy); color: #fff; }

/* ---------- Video list ---------- */
.video-list-section { padding: 1.5rem 1rem 2rem; }

.video-list { list-style: none; counter-reset: vid; }

.video-item {
  counter-increment: vid;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.5rem;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.12s ease;
}
.video-item:hover { background: rgba(27, 42, 74, 0.06); }

.video-item::before {
  content: counter(vid) ".";
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 1.6rem;
  text-align: right;
}

.play-chip {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--chip);
  color: #fff;
  border: 2px solid var(--gold);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding-left: 3px;
  position: relative;
  overflow: hidden;
}

.video-item.playing .play-chip { background: var(--gold); color: var(--navy-deep); }
.video-item.played .play-chip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--gold);
}

.video-meta { display: flex; flex-direction: column; }
.video-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.video-status { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  border-top: 1px solid #e6e4de;
}
.site-footer p:first-child {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

@media (min-width: 720px) {
  .hero { border-radius: 0 0 32px 32px; }
}
