:root {
  --bg: #0e0f12; --panel: #17191e; --panel-2: #1e2128; --text: #ecebe7; --muted: #9b9a95;
  --line: #2a2d35; --accent: #e0b25c; --accent-ink: #1b1406; --danger: #ef8a7f;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand svg { width: 26px; height: 26px; }
nav.top a { text-decoration: none; color: var(--muted); margin-left: 22px; font-size: 15px; }
nav.top a:hover { color: var(--text); }
nav.top a.btn { color: var(--accent-ink); }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 600; padding: 9px 18px; border-radius: 8px; border: 0; cursor: pointer; font-size: 15px;
}
.btn:hover { filter: brightness(1.06); }
main { flex: 1; }
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.015em; max-width: 18ch; }
.hero p { color: var(--muted); font-size: 18px; max-width: 58ch; margin: 0 0 26px; }
.section-title { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 36px 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.tile { text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; }
.tile:hover { border-color: #3a3e48; }
.thumb { aspect-ratio: 16 / 9; background: var(--panel-2) center / cover no-repeat; position: relative; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.72); font-size: 12px; padding: 2px 6px; border-radius: 4px; }
.tile .meta { padding: 12px 14px 14px; }
.tile .meta b { display: block; margin-bottom: 2px; }
.tile .meta span { color: var(--muted); font-size: 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin: 56px 0 24px; }
.features div { border-top: 1px solid var(--line); padding-top: 16px; }
.features b { display: block; margin-bottom: 4px; }
.features p { color: var(--muted); margin: 0; font-size: 15px; }
footer { border-top: 1px solid var(--line); margin-top: 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 22px; padding-bottom: 28px; }
footer a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.player { margin: 28px 0 0; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; }
.watch h1 { font-size: 26px; margin: 18px 0 4px; }
.watch .sub { color: var(--muted); margin: 0 0 14px; }
.watch .desc { max-width: 72ch; }
.credit { color: var(--muted); font-size: 13px; margin-top: 18px; }
.auth { max-width: 380px; margin: 72px auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 30px 28px; }
.auth h1 { font-size: 24px; margin: 0 0 6px; }
.auth p.lead { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.auth label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
.auth input {
  width: 100%; font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text);
}
.auth input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.auth .btn { width: 100%; margin-top: 22px; padding: 11px; }
.auth .small { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }
.form-error { background: rgba(239,138,127,.12); color: var(--danger); border: 1px solid rgba(239,138,127,.35); padding: 9px 12px; border-radius: 8px; font-size: 14px; margin: 0 0 6px; }
.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-size: 64px; margin: 0; color: var(--muted); }
@media (max-width: 600px) {
  nav.top a:not(.btn) { display: none; }
  .hero { padding: 44px 0 24px; }
  .auth { margin: 32px auto; padding: 24px 20px; }
}
