/* ===== WATCH / VORTULM — design tokens ===== */
:root {
  --bg: #060606;
  --bg-panel: #0f0f0f;
  --bg-card: #121212;
  --text: #ececec;
  --text-dim: #8a8a8a;
  --line: rgba(255,255,255,0.09);
  --accent-movie: #00f2ea;
  --accent-toon: #ffb454;
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'Fira Code', Consolas, monospace;
  --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-movie); outline-offset: 3px; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,6,6,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.04em;
  text-decoration: none; color: var(--text);
}
.brand-sub { color: var(--text-dim); font-weight: 600; font-size: 14px; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  background: transparent; border: 1px solid transparent; color: var(--text-dim);
  padding: 7px 14px; cursor: pointer; transition: all 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--bg); background: var(--accent-movie); }
.nav-search input {
  background: var(--bg-panel); border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-body); font-size: 14px; padding: 9px 14px; width: 220px;
}
.nav-search input::placeholder { color: var(--text-dim); }
.nav-search input:focus { outline: none; border-color: var(--accent-movie); }

/* ===== Hero ===== */
.hero { padding: 90px 28px 60px; border-bottom: 1px solid var(--line); }
.hero-inner { max-width: var(--container); margin: 0 auto; max-width: 720px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent-movie);
  letter-spacing: 0.1em; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--text-dim); }
.hero-sub { font-size: 17px; color: #bcbcbc; max-width: 560px; line-height: 1.75; }

/* ===== Gallery ===== */
.gallery {
  max-width: var(--container); margin: 0 auto; padding: 50px 28px 100px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px;
}
.card {
  cursor: pointer; background: var(--bg-card); border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.card-poster-wrap { position: relative; aspect-ratio: 2/3; overflow: hidden; background: #000; }
.card-poster {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) brightness(0.85);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.card:hover .card-poster { filter: grayscale(0%) brightness(1); transform: scale(1.04); }
.card-type-tag {
  position: absolute; top: 10px; left: 10px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.06em; padding: 3px 8px;
  background: rgba(6,6,6,0.85); border: 1px solid var(--line);
}
.card-type-tag.movie { color: var(--accent-movie); }
.card-type-tag.cartoon { color: var(--accent-toon); }
.card-info { padding: 14px 14px 16px; }
.card-title { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.card-year { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(4px);
  z-index: 100; display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 40px 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--bg-panel); border: 1px solid var(--line); max-width: 880px; width: 100%;
  position: relative; margin-bottom: 40px;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  background: rgba(6,6,6,0.8); border: 1px solid var(--line); color: var(--text);
  width: 34px; height: 34px; font-size: 20px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--accent-movie); }
.modal-body { padding: 0; }

.modal-hero { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 32px; border-bottom: 1px solid var(--line); }
.modal-poster img { width: 100%; display: block; border: 1px solid var(--line); }
.modal-meta-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; margin-bottom: 10px; }
.modal-meta-tag.movie { color: var(--accent-movie); }
.modal-meta-tag.cartoon { color: var(--accent-toon); }
.modal-title { font-family: var(--font-display); font-size: clamp(22px,3vw,30px); font-weight: 700; margin-bottom: 10px; }
.modal-facts { font-size: 13.5px; color: var(--text-dim); line-height: 1.9; margin-bottom: 16px; }
.modal-facts strong { color: var(--text); font-weight: 600; }
.modal-streaming { display: flex; flex-wrap: wrap; gap: 8px; }
.stream-btn {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  border: 1px solid var(--line); color: var(--text); text-decoration: none;
  padding: 8px 14px; transition: all 0.2s;
}
.stream-btn:hover { border-color: var(--accent-movie); color: var(--accent-movie); }

.modal-trailer { padding: 0; border-bottom: 1px solid var(--line); }
.modal-trailer iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }
.modal-trailer-note {
  padding: 14px 32px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}

.modal-summary { padding: 28px 32px 36px; }
.modal-summary p { font-size: 16px; line-height: 1.85; color: #cfcfcf; }

@media (max-width: 640px) {
  .modal-hero { grid-template-columns: 1fr; }
  .modal-poster { max-width: 160px; }
}

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 60px 28px 30px; }
.footer-inner { max-width: 760px; margin: 0 auto; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 20px; }
.footer-legal, .footer-affiliate {
  font-family: var(--font-body); font-size: 13px; color: var(--text-dim); line-height: 1.8; margin-bottom: 16px;
}
.footer-links { display: flex; gap: 20px; margin: 24px 0 20px; font-family: var(--font-mono); font-size: 12px; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--accent-movie); }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: #555; }
