@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #12121a;
  --surface: #1c1c28;
  --surface-2: #23232f;
  --border: #2e2e3d;
  --text: #f2f0ea;
  --text-dim: #9a97ae;
  --accent: #f2b705;
  --accent-dim: #b98d1a;
  --live: #e64848;
  --radius: 10px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 18, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-dim);
  flex: 0 0 auto;
}

.nav-links a:hover { color: var(--text); }

.search-form {
  flex: 1;
  max-width: 480px;
  margin-left: auto;
  position: relative;
}

.search-form input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px 10px 40px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
}

.search-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.search-form svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

/* ---------- Hero marquee ---------- */

.hero {
  border-bottom: 1px solid var(--border);
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 60% 100% at 20% 0%, rgba(242, 183, 5, 0.08), transparent 60%);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(230, 72, 72, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 14px;
  max-width: 18ch;
}

.hero p {
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 24px;
  font-size: 16px;
}

.marquee-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.marquee-strip::-webkit-scrollbar { height: 6px; }
.marquee-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.marquee-chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}

.marquee-chip:hover { color: var(--text); border-color: var(--accent-dim); }
.marquee-chip.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

/* ---------- Section headers ---------- */

.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.section-head .see-all {
  font-size: 13px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.section-head .see-all:hover { color: var(--accent); border-color: var(--accent); }

.row-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ---------- Ticket-stub video card (signature element) ---------- */

.ticket-card {
  flex: 0 0 auto;
  width: 260px;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.grid .ticket-card { width: 100%; }

.ticket-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
}

.ticket-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
  overflow: hidden;
}

.ticket-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ticket-thumb .no-thumb {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 28px;
}

.ticket-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(18, 18, 26, 0.85);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 4px;
}

.ticket-perf {
  position: relative;
  height: 1px;
  border-top: 1px dashed var(--border);
  margin: 0 12px;
}

.ticket-perf::before,
.ticket-perf::after {
  content: '';
  position: absolute;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
}
.ticket-perf::before { left: -18px; }
.ticket-perf::after { right: -18px; }

.ticket-stub {
  padding: 12px 14px 14px;
}

.ticket-stub h3 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticket-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.ticket-meta .cat { color: var(--accent-dim); }

/* ---------- Browse / filters ---------- */

.browse-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px 0 64px;
  align-items: start;
}

.filter-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  position: sticky;
  top: 90px;
}

.filter-panel h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.filter-panel .cat-list { list-style: none; margin: 0 0 20px; padding: 0; }
.filter-panel .cat-list li a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  padding-left: 10px;
}
.filter-panel .cat-list li a:hover,
.filter-panel .cat-list li a.active {
  color: var(--text);
  border-left-color: var(--accent);
}

.sort-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.results-meta {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}

.pagination button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination button.active { border-color: var(--accent); color: var(--accent); }

/* ---------- Video detail page ---------- */

.video-page {
  padding: 32px 0 64px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.player-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.player-wrap video { width: 100%; height: 100%; }

.video-info { margin-top: 20px; }
.video-info h1 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 10px;
}

.video-stub {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 12px 0;
  margin-bottom: 16px;
}

.video-stub .cat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--accent-dim);
}

.video-desc { color: var(--text-dim); font-size: 14.5px; white-space: pre-line; }

.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag-pill {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}
.tag-pill:hover { color: var(--accent); border-color: var(--accent-dim); }

.related-list { display: flex; flex-direction: column; gap: 14px; }
.related-list h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 4px;
}

.related-card {
  display: flex;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}
.related-card:hover { border-color: var(--accent-dim); }
.related-card .thumb {
  width: 110px;
  aspect-ratio: 16/9;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  flex: none;
}
.related-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-card .meta { font-size: 13px; }
.related-card .meta .dur { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

/* ---------- Empty / loading states ---------- */

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-dim);
}
.empty-state h3 { font-family: var(--font-display); color: var(--text); font-size: 20px; margin-bottom: 8px; }

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 37%, var(--surface) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 40px;
}

@media (max-width: 860px) {
  .browse-layout, .video-page { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ================================================================
   Legal & compliance pages — additive only, doesn't touch anything
   above. Reuses the same color/type tokens as the rest of the site.
   ================================================================ */

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 40px;
}
.footer-brand { max-width: 360px; }
.footer-brand p { font-size: 12.5px; color: var(--text-dim); margin: 8px 0 0; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px 20px; }
.footer-links a { font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: var(--accent); }

.report-link {
  font-size: 12px;
  color: var(--text-dim);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 1px;
}
.report-link:hover { color: var(--live); border-color: var(--live); }

.legal-page { padding: 40px 0 80px; }
.legal-hero { max-width: 720px; }
.legal-hero h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 36px); margin: 0 0 10px; }
.legal-hero > p { color: var(--text-dim); font-size: 15px; max-width: 60ch; }
.legal-updated { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin: 10px 0 28px; }

.legal-notice {
  background: rgba(242, 183, 5, 0.08);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 13.5px;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 32px;
  line-height: 1.6;
}
.legal-notice strong { color: var(--accent); }

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  max-width: 720px;
  margin-bottom: 28px;
  font-size: 13px;
  font-family: var(--font-mono);
}
.legal-toc a { color: var(--text-dim); }
.legal-toc a:hover { color: var(--accent); }

.legal-content { max-width: 720px; }
.legal-content h2 { font-family: var(--font-display); font-size: 21px; margin: 40px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 15px; margin: 22px 0 8px; color: var(--text); }
.legal-content p, .legal-content li { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
.legal-content ul, .legal-content ol { padding-left: 20px; margin: 10px 0; }
.legal-content a { color: var(--accent); border-bottom: 1px solid transparent; }
.legal-content a:hover { border-color: var(--accent); }
.legal-content strong { color: var(--text); }

.legal-placeholder {
  background: rgba(242, 183, 5, 0.15);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* Forms shared by contact / dmca / report pages */
.legal-form { max-width: 560px; margin-top: 20px; }
.legal-form .field { margin-bottom: 16px; }
.legal-form label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.legal-form .field-hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.legal-form input[type=text],
.legal-form input[type=email],
.legal-form input[type=url],
.legal-form select,
.legal-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
}
.legal-form input:focus, .legal-form select:focus, .legal-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.legal-form textarea { min-height: 110px; resize: vertical; }
.legal-form .checkbox-field {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.legal-form .checkbox-field input { width: auto; margin-top: 3px; flex: none; }
.legal-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.legal-form button[type=submit] {
  background: var(--accent);
  color: #171308;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 11px 22px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-body);
}
.legal-form button[type=submit]:hover { filter: brightness(1.08); }
.legal-form button[type=submit]:disabled { opacity: 0.5; cursor: not-allowed; }

.form-note-error {
  background: rgba(230, 72, 72, 0.12);
  border: 1px solid var(--live);
  color: #ff9d9d;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  max-width: 560px;
}
.form-note-success {
  background: rgba(76, 174, 109, 0.12);
  border: 1px solid #4cae6d;
  color: #9be0af;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  max-width: 560px;
}

@media (max-width: 640px) {
  .footer-grid { flex-direction: column; }
}
