:root {
  --bg: #0b0c10;
  --panel: #14161d;
  --panel-2: #1b1e27;
  --text: #f4f5f7;
  --muted: #9aa0ac;
  --line: #272b36;
  --gold: #ffce5c;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ambient color wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(37, 99, 235, 0.20), transparent 55%),
    radial-gradient(700px 600px at 50% 120%, rgba(234, 88, 12, 0.14), transparent 60%),
    var(--bg);
}

.wrap { max-width: 980px; margin: 0 auto; padding: 26px 20px 72px; }

/* ---- header ---- */
header.site { display: flex; align-items: baseline; gap: 10px; margin-bottom: 30px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.logo .dot { color: var(--gold); }
.domain { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }

/* ---- hero ---- */
.hero { margin: 14px 0 34px; }
.hero-title { font-size: clamp(30px, 5vw, 46px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; }
.hero-em {
  background: linear-gradient(90deg, #ffce5c, #fb923c 40%, #a855f7 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--muted); font-size: 17px; max-width: 30em; margin: 0; line-height: 1.5; }

.section-h { font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 16px; font-weight: 700; }

/* ---- catalog grid ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 18px;
}
.poster-btn { all: unset; cursor: pointer; display: block; border-radius: 14px; }
.poster-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- poster ---- */
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--from), var(--to));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-btn:hover .poster { transform: translateY(-5px); box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.95); }
.poster-btn:hover .poster::after { opacity: 1; }
.poster::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 2px var(--accent);
  border-radius: 14px; opacity: 0; transition: opacity 0.18s ease;
}
.poster-chip {
  position: absolute; top: 9px; left: 9px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
  padding: 3px 8px; border-radius: 999px;
}
.card-meta { padding: 11px 2px 0; }
.card-meta h3 { font-size: 15px; margin: 0 0 3px; letter-spacing: -0.01em; line-height: 1.2; }
.card-meta p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.4; }

/* ---- recommendation screen ---- */
.rec-screen { max-width: 760px; margin: 0 auto; }
.back {
  all: unset; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px; margin-bottom: 18px;
}
.back:hover { color: var(--text); }

.rec-card {
  display: flex;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.rec-poster { flex: 0 0 220px; }
.rec-poster .poster { aspect-ratio: auto; height: 100%; border-radius: 0; border: none; box-shadow: none; }
.rec-poster .poster::after { display: none; }

.rec-body { flex: 1; padding: 26px 28px; min-width: 0; }
.rec-eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rec-show { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.svc-badge {
  font-size: 11px; font-weight: 700; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  padding: 3px 9px; border-radius: 999px;
}
.rec-code { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; }
.rec-title { margin: 4px 0 0; font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; }

.rec-rating { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 14px; font-weight: 800; font-size: 18px; }
.rec-rating .star { color: var(--gold); }
.rec-rating-sub { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

.rec-synopsis { color: #cdd2da; font-size: 15.5px; line-height: 1.55; margin: 16px 0 0; }

.arc-note {
  margin: 18px 0 0; padding: 13px 15px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  color: #cdd2da; font-size: 13.5px; line-height: 1.45;
  display: flex; align-items: flex-start; gap: 11px;
}
.arc-note strong { color: var(--text); font-weight: 600; }
.arc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 8px; margin-top: 5px; }

.rec-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  all: unset;
  border-radius: 12px; padding: 13px 20px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: filter 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, white), var(--accent));
  color: #0b0c10; flex: 1; box-shadow: 0 10px 24px -10px var(--accent);
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary .arr { transition: transform 0.15s ease; }
.btn-primary:hover .arr { transform: translateX(3px); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--muted); }

.fineprint { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 20px; }

/* ---- responsive ---- */
@media (max-width: 560px) {
  .rec-card { flex-direction: column; align-items: center; padding-top: 22px; }
  .rec-poster { flex: none; width: 140px; }
  .rec-poster .poster { aspect-ratio: 2 / 3; height: auto; border-radius: 12px; }
  .rec-body { padding: 22px; }
  .rec-title { font-size: 25px; }
  .btn { flex: 1 1 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
}
