:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --text: #15161a;
  --muted: #6a6e77;
  --line: #e4e4df;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 12px 40px rgba(20, 20, 30, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1013;
    --surface: #17191d;
    --text: #eceef2;
    --muted: #979ca8;
    --line: #2a2d34;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 40px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
  .jk img { filter: invert(1); }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

.accent-bar { height: 4px; background: var(--accent); }

header.site { padding: 22px 24px; }
.brands { max-width: 1040px; margin: 0 auto; display: flex; align-items: center; gap: 16px; min-height: 40px; }
.jk { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: .14em; font-size: 14px; }
.jk img { width: 28px; height: 28px; }
.x { color: var(--muted); font-size: 18px; }
.client-logo { max-height: 36px; max-width: 160px; object-fit: contain; }
.client-name { font-weight: 600; font-size: 15px; }

.wrap { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 12px 24px 64px; }

.intro { margin: 20px 0 28px; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.from { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; color: var(--muted); font-size: 15px; }
.from b { color: var(--text); font-weight: 600; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700;
}

.player {
  width: 100%; border-radius: 16px; overflow: hidden; background: #000; box-shadow: var(--shadow);
}
.player.portrait { max-width: min(100%, calc(78vh * 9 / 16)); margin: 0 auto; }
.player video { display: block; width: 100%; height: 100%; background: #000; }

.message {
  max-width: 680px; margin: 36px 0 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent); font-size: 17px;
}
.message p { margin: 0 0 12px; }
.message p:last-child { margin-bottom: 0; }

.links { margin-top: 40px; }
.links h2 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; transition: border-color .15s, transform .15s;
}
.link:hover { border-color: var(--accent); transform: translateY(-1px); }
.link-text { display: flex; flex-direction: column; min-width: 0; }
.label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.host { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrow { color: var(--muted); font-size: 18px; }
.link:hover .arrow { color: var(--accent); }

.reply { margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px;
  border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }

.card {
  max-width: 520px; margin: 8vh auto 0; padding: 36px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.card h1 { font-size: clamp(24px, 3.4vw, 32px); }
.card .btn { margin-top: 24px; }
.muted { color: var(--muted); margin: 12px 0 0; }
.gate form { margin-top: 28px; }
.gate label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.gate .row { display: flex; gap: 10px; }
.gate input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit;
}
.gate input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate .btn { margin-top: 0; }
.error { margin: 12px 0 0; color: #d4283b; font-size: 14px; }

.team-note {
  margin: 8px 0 0; padding: 10px 14px; border-radius: 10px; font-size: 14px;
  background: var(--surface); border: 1px dashed var(--line); color: var(--muted);
}

footer.site { padding: 28px 24px 36px; text-align: center; font-size: 13px; color: var(--muted); }
footer.site a { font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--text); }

@media (max-width: 560px) {
  header.site { padding: 16px; }
  .wrap { padding: 4px 16px 48px; }
  .player { border-radius: 12px; margin: 0 -4px; width: calc(100% + 8px); }
  .card { padding: 26px 22px; margin-top: 4vh; }
  .gate .row { flex-direction: column; }
}
