:root {
  --red: #ff2828;
  --red-dark: #e41c1c;
  --ink: #151515;
  --muted: #696969;
  --line: #e7e3dd;
  --paper: #f7f4ef;
  --white: #fff;
  --chip: #efebe5;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 18px 60px rgba(32, 24, 18, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.shell { width: min(1380px, calc(100% - 56px)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 88px; padding: 0 30px; background: rgba(247,244,239,.88); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(225,220,212,.78);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; }
.brand-icon { width: 42px; height: 42px; }
.brand-wordmark-img { width: 82px; height: 38px; object-fit: contain; object-position: left center; }
.top-nav { display: flex; align-items: center; gap: 4px; background: #ebe7e1; padding: 4px; border-radius: 999px; }
.nav-link { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; color: #69635e; }
.nav-link.active { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.watchlist-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: #ded8d0; font-size: 11px; }
.header-actions { display: flex; justify-content: flex-end; gap: 10px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(255,255,255,.75); border-radius: 13px; display: grid; place-items: center; cursor: pointer; }
.icon-button svg, .search-field svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.surprise-button, .primary-button {
  border: 0; background: var(--red); color: #fff; border-radius: 13px; padding: 12px 17px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 20px rgba(255,40,40,.16); transition: transform .18s ease, background .18s ease;
}
.surprise-button:hover, .primary-button:hover { background: var(--red-dark); transform: translateY(-1px); }
.dice { margin-right: 5px; }

.hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: center; min-height: 510px; padding-top: 50px; padding-bottom: 55px; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; color: #837b74; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow span { width: 22px; height: 3px; background: var(--red); }
.hero h1 { margin: 20px 0 18px; font-size: clamp(58px, 7.2vw, 108px); letter-spacing: -.065em; line-height: .84; max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-copy p { margin: 0; max-width: 620px; color: #67605b; font-size: 18px; line-height: 1.65; }
.hero-card { justify-self: end; width: min(100%, 445px); background: #171717; color: #fff; border-radius: var(--radius-xl); padding: 18px; display: grid; grid-template-columns: 43% 1fr; gap: 20px; box-shadow: var(--shadow); transform: rotate(1.1deg); }
.hero-card:hover { transform: rotate(0deg); transition: transform .25s ease; }
.mini-poster { position: relative; aspect-ratio: .72; border-radius: 16px; overflow: hidden; background:#2a2a2a; }
.mini-poster img { width:100%; height:100%; display:block; object-fit:cover; }
.mini-poster-shape { position:absolute; border-radius:50%; filter: blur(1px); }
.mini-poster-shape.one { width: 90%; height: 40%; left:-20%; top:15%; background: color-mix(in srgb, var(--c) 75%, transparent); transform: rotate(28deg); }
.mini-poster-shape.two { width: 55%; height: 55%; right:-20%; bottom:10%; border: 20px solid rgba(255,255,255,.12); }
.mini-poster span { position:absolute; z-index:2; left:13px; bottom:13px; right:13px; font-size: 10px; letter-spacing:.12em; font-weight:800; }
.hero-card-copy { display:flex; flex-direction:column; justify-content:center; padding-right:6px; }
.hero-card-copy .label { color:#aaa49e; text-transform:uppercase; letter-spacing:.1em; font-size:9px; font-weight:700; }
.hero-card-copy h3 { margin:8px 0 15px; font-size:26px; letter-spacing:-.03em; }
.score-row { display:flex; align-items:flex-start; gap:16px; margin-bottom: 15px; }
.score { display:flex; flex-direction:column; }
.score b { color:var(--red); font-size:27px; line-height:1; }
.hero-card .score b { font-size:20px; letter-spacing:-.02em; }
.score small { color:#a9a5a0; font-size:10px; margin-top:5px; }
.text-button { margin-top:auto; border:0; border-top:1px solid #333; background:transparent; color:#fff; text-align:left; padding:14px 0 0; cursor:pointer; font-size:13px; }
.text-button span { float:right; }

.services-section { padding: 40px 0 48px; border-top: 1px solid var(--line); }
.section-heading-line, .catalog-topline { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; }
.section-heading-line h2, .catalog-topline h2, .manifesto h2 { margin:6px 0 0; font-size:30px; letter-spacing:-.035em; }
.subtle-button, .clear-button { border:0; background:transparent; color:#77706a; cursor:pointer; text-decoration:underline; text-underline-offset:4px; font-size:13px; }
.services { display:grid; grid-template-columns: repeat(6, 1fr); gap:12px; margin-top:23px; }
.data-status { width:fit-content; display:flex; align-items:center; gap:8px; margin-top:18px; padding:8px 10px; border:1px solid var(--line); background:rgba(255,255,255,.66); border-radius:999px; color:#77706a; font-size:11px; }
.data-status .status-dot { width:7px; height:7px; border-radius:50%; background:#c2bbb2; }
.data-status[data-mode="live"] .status-dot { background:#20a866; box-shadow:0 0 0 4px rgba(32,168,102,.1); }
.data-status[data-mode="loading"] .status-dot { background:#e8a229; animation:pulse 1s infinite; }
.data-status[data-mode="error"] .status-dot { background:var(--red); }
.data-status button { border:0; border-left:1px solid var(--line); padding:0 1px 0 8px; background:transparent; color:var(--ink); font-weight:700; cursor:pointer; }
.data-status .status-action { border-left:1px solid var(--line); padding-left:8px; color:var(--ink); font-weight:700; }
@keyframes pulse { 50% { opacity:.35; } }
.service-btn { position:relative; min-height:76px; border:1px solid var(--line); background:rgba(255,255,255,.72); border-radius:16px; padding:14px; display:flex; align-items:center; gap:12px; cursor:pointer; transition:.18s ease; }
.service-btn:hover { transform:translateY(-2px); border-color:#d7d1c8; }
.service-btn.active { background:#fff; border-color:#c9c2b8; box-shadow:0 7px 25px rgba(60,50,40,.06); }
.service-badge { width:42px; height:42px; border-radius:12px; display:grid; place-items:center; color:white; font-weight:800; font-size:13px; letter-spacing:-.02em; }
.service-btn strong { font-size:14px; }
.service-btn small { display:block; color:#8b857f; font-size:11px; margin-top:2px; }
.service-check { position:absolute; right:11px; top:11px; width:18px; height:18px; border:1px solid #d7d1c8; border-radius:6px; display:grid; place-items:center; font-size:10px; color:#fff; }
.service-btn.active .service-check { background:var(--red); border-color:var(--red); }

.catalog-section { padding: 50px 0 80px; }
.result-count { font-size:13px; color:#817a73; }
.filter-bar { position:sticky; top:100px; z-index:30; display:flex; align-items:end; flex-wrap:wrap; gap:10px; padding:12px; margin-top:22px; background:rgba(24,24,24,.96); color:#fff; border-radius:18px; box-shadow:0 14px 38px rgba(24,20,17,.1); }
.segmented { display:flex; background:#2d2d2d; padding:3px; border-radius:11px; }
.segment { border:0; background:transparent; color:#a8a8a8; padding:9px 12px; border-radius:9px; cursor:pointer; font-size:12px; font-weight:700; }
.segment.active { background:#fff; color:#171717; }
.search-field { height:40px; min-width:220px; flex:1; display:flex; align-items:center; gap:8px; background:#2a2a2a; border:1px solid #3a3a3a; border-radius:11px; padding:0 11px; }
.search-field svg { color:#a5a5a5; flex:0 0 auto; }
.search-field input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:#fff; font-size:13px; }
.search-field input::placeholder { color:#858585; }
.select-wrap { display:flex; flex-direction:column; gap:3px; min-width:130px; }
.select-wrap span, .filter-label { font-size:9px; text-transform:uppercase; letter-spacing:.09em; color:#8f8f8f; font-weight:700; }
.select-wrap select { height:28px; border:0; outline:0; background:transparent; color:#fff; font-size:12px; font-weight:700; cursor:pointer; }
.select-wrap select option { color:#111; }
.score-filter { display:flex; align-items:center; gap:5px; padding-bottom:2px; }
.score-filter[hidden] { display:none; }
.score-filter .filter-label { margin-right:2px; }
.score-pill { border:1px solid #3a3a3a; background:#292929; color:#b8b8b8; border-radius:9px; padding:7px 8px; cursor:pointer; font-size:11px; }
.score-pill.active { background:var(--red); color:white; border-color:var(--red); }
.subtle-button.active { background:#242424; color:#fff; border-color:#242424; }
.ratings-note { margin:12px 0 0; padding:10px 13px; border:1px solid #ead7b1; border-radius:11px; background:#fff9ec; color:#776344; font-size:12px; }
.clear-button { color:#a9a9a9; text-decoration:none; padding:8px 7px; }
.active-filter-row { min-height:38px; display:flex; align-items:center; gap:7px; flex-wrap:wrap; padding-top:12px; }
.active-chip { display:inline-flex; align-items:center; gap:6px; background:#ebe5dd; border:1px solid #ded7ce; border-radius:999px; padding:6px 9px; font-size:11px; color:#6c655e; }
.active-chip button { border:0; background:transparent; padding:0; cursor:pointer; color:#8f8880; line-height:1; }

.card-grid { display:grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap:26px 15px; margin-top:14px; }
.media-card { min-width:0; }
.poster-wrap { position:relative; border-radius:17px; overflow:hidden; aspect-ratio:.68; background:#ddd; box-shadow:0 8px 25px rgba(34,29,25,.08); cursor:pointer; transform:translateZ(0); }
.poster-wrap::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.8), transparent 48%); pointer-events:none; }
.poster-art { position:absolute; inset:0; overflow:hidden; background:linear-gradient(155deg,var(--a),var(--b) 54%,var(--c)); }
.poster-image { position:absolute; z-index:2; inset:0; width:100%; height:100%; display:block; object-fit:cover; transition:transform .3s ease; }
.poster-art::before { content:""; position:absolute; width:125%; height:48%; left:-25%; top:18%; background:rgba(255,255,255,.13); transform:rotate(-22deg); border-radius:50%; }
.poster-art::after { content:""; position:absolute; width:80%; aspect-ratio:1; right:-35%; bottom:12%; border:22px solid rgba(255,255,255,.1); border-radius:50%; }
.poster-title { position:absolute; z-index:3; left:14px; right:14px; bottom:14px; color:#fff; font-weight:800; letter-spacing:-.025em; font-size:clamp(14px,1.3vw,20px); line-height:1.02; text-shadow:0 2px 8px rgba(0,0,0,.18); }
.poster-kicker { display:block; margin-bottom:5px; text-transform:uppercase; letter-spacing:.12em; font-size:8px; opacity:.74; font-weight:700; }
.rating-badge { position:absolute; z-index:4; top:10px; left:10px; width:58px; height:50px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; border:1px solid rgba(255,255,255,.75); border-radius:14px; background:rgba(255,255,255,.96); color:#111; font-weight:800; line-height:1; box-shadow:0 7px 22px rgba(0,0,0,.16); backdrop-filter:blur(8px); }
.rating-badge b { color:var(--red); font-size:18px; letter-spacing:-.04em; }
.rating-badge small { color:#6e6862; font-size:7px; text-transform:uppercase; letter-spacing:.08em; white-space:nowrap; }
.favorite-btn { position:absolute; z-index:5; right:10px; top:10px; width:34px; height:34px; border:0; border-radius:10px; display:grid; place-items:center; background:rgba(20,20,20,.48); color:white; backdrop-filter:blur(8px); cursor:pointer; font-size:17px; }
.favorite-btn.active { background:var(--red); }
.provider-stack { position:absolute; z-index:4; bottom:10px; right:10px; display:flex; flex-direction:column; gap:5px; align-items:flex-end; }
.provider-mini { height:23px; padding:0 7px; border-radius:7px; background:rgba(255,255,255,.92); display:flex; align-items:center; color:#171717; font-size:8px; font-weight:800; box-shadow:0 2px 8px rgba(0,0,0,.09); }
.card-copy { padding:10px 2px 0; }
.card-copy h3 { font-size:14px; line-height:1.25; margin:0 0 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.card-meta { color:#837c75; font-size:11px; display:flex; gap:6px; }
.poster-wrap:hover .poster-art { transform:scale(1.025); transition:transform .3s ease; }
.poster-wrap:hover .poster-image { transform:scale(1.025); }
.poster-wrap:hover { box-shadow:0 14px 34px rgba(34,29,25,.14); }

.empty-state { text-align:center; padding:80px 20px; }
.empty-state img { width:70px; opacity:.25; }
.empty-state h3 { font-size:28px; margin:16px 0 5px; }
.empty-state p { color:#817a73; margin:0 0 18px; }
.load-more-wrap { display:flex; justify-content:center; margin-top:42px; }
.load-more-wrap[hidden] { display:none; }
.load-more { border:1px solid #d9d2c9; background:#fff; border-radius:999px; padding:12px 22px; font-weight:700; cursor:pointer; }

.manifesto { display:grid; grid-template-columns:auto 1fr auto; gap:28px; align-items:center; background:#171717; color:#fff; border-radius:28px; padding:30px 34px; margin-bottom:70px; }
.manifesto-icon { width:76px; height:76px; border-radius:18px; background:var(--red); display:grid; place-items:center; }
.manifesto-icon img { width:58px; filter:brightness(0) invert(1); }
.manifesto p { max-width:700px; color:#aaa7a3; margin:8px 0 0; line-height:1.55; }
.surprise-button.large { padding:15px 20px; }
.site-footer { min-height:110px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px; border-top:1px solid var(--line); color:#867f78; font-size:12px; }
.footer-brand { display:flex; align-items:center; gap:8px; color:var(--ink); }
.footer-brand img { width:28px; }
.footer-wordmark { width:64px !important; height:30px; object-fit:contain; object-position:left center; }
.site-footer p { text-align:center; }
.footer-links { justify-self:end; display:flex; gap:16px; }
.footer-links button { border:0; background:transparent; color:inherit; cursor:pointer; padding:0; }

.modal-backdrop { position:fixed; inset:0; z-index:100; background:rgba(20,18,17,.7); backdrop-filter:blur(9px); display:grid; place-items:center; padding:24px; }
.modal-backdrop[hidden] { display:none; }
.detail-modal { position:relative; width:min(920px,100%); max-height:min(760px, calc(100vh - 48px)); overflow:auto; display:grid; grid-template-columns:40% 1fr; background:#faf8f4; border-radius:26px; box-shadow:0 30px 120px rgba(0,0,0,.35); }
.modal-close { position:absolute; z-index:4; right:16px; top:16px; width:42px; height:42px; border:1px solid rgba(20,20,20,.08); border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.96); color:#27231f; font-size:23px; font-weight:400; line-height:1; cursor:pointer; box-shadow:0 8px 24px rgba(0,0,0,.18); backdrop-filter:blur(10px); }
.modal-close:hover { transform:scale(1.04); background:#fff; }
.modal-poster { min-width:0; min-height:600px; background:linear-gradient(145deg,#333,#999); background-size:cover; background-position:center; position:relative; overflow:hidden; }
.modal-poster::before { content:""; position:absolute; width:130%; height:45%; left:-30%; top:20%; border-radius:50%; background:rgba(255,255,255,.14); transform:rotate(-25deg); }
.modal-poster::after { content:attr(data-title); position:absolute; left:26px; right:26px; bottom:28px; color:#fff; font-weight:800; font-size:34px; line-height:.95; letter-spacing:-.04em; }
.modal-content { min-width:0; padding:52px 46px 38px; }
.modal-meta { color:#7f7872; font-size:12px; font-weight:700; }
.modal-content h2 { margin:8px 0 16px; font-size:42px; line-height:.95; letter-spacing:-.05em; }
.modal-score-row { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:20px; }
.modal-score { flex:0 0 auto; min-width:150px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px 17px; }
.modal-score b { display:block; color:var(--red); font-size:30px; line-height:1; letter-spacing:-.04em; }
.modal-score span { display:block; margin-top:5px; color:#716a64; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.modal-score.primary { border-color:#efc2bd; box-shadow:0 9px 25px rgba(255,40,40,.08); }
.rating-source-links { flex-basis:100%; min-width:0; overflow-wrap:anywhere; font-size:11px; color:#857e77; padding-top:2px; }
.rating-source-links a { color:var(--red); text-decoration:none; font-weight:700; }
.rating-source-links a:hover { text-decoration:underline; }
.ratings-unavailable { color:#857e77; font-size:13px; padding:11px 0; }
.modal-synopsis { color:#5f5954; line-height:1.65; }
.tag-row { display:flex; flex-wrap:wrap; gap:7px; margin:18px 0 28px; }
.tag { background:#ece6de; border-radius:999px; padding:7px 10px; font-size:11px; color:#665f58; }
.where-to-watch { padding-top:20px; border-top:1px solid var(--line); }
.where-to-watch > div { display:flex; gap:8px; flex-wrap:wrap; margin-top:9px; }
.provider-large { display:flex; align-items:center; gap:8px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:9px 11px; font-size:12px; font-weight:700; }
.provider-dot { width:10px; height:10px; border-radius:3px; }
.modal-actions { display:flex; gap:9px; margin-top:28px; }
.secondary-button { border:1px solid #d6cfc6; background:transparent; border-radius:13px; padding:12px 16px; font-weight:700; cursor:pointer; }
.data-modal { position:relative; width:min(560px,100%); background:#faf8f4; border-radius:26px; padding:42px; box-shadow:0 30px 120px rgba(0,0,0,.35); }
.data-modal h2 { margin:9px 0 12px; font-size:38px; line-height:.98; letter-spacing:-.045em; }
.data-modal > p { color:#665f59; line-height:1.6; }
.token-field { display:flex; flex-direction:column; gap:7px; margin-top:24px; }
.token-field span { color:#78716a; font-size:10px; text-transform:uppercase; letter-spacing:.1em; font-weight:800; }
.token-field input { width:100%; border:1px solid #dcd4ca; outline:0; background:#fff; border-radius:13px; padding:13px 14px; }
.token-field input:focus { border-color:#aaa197; box-shadow:0 0 0 4px rgba(0,0,0,.04); }
.data-modal-actions { display:flex; gap:9px; margin-top:14px; }
.data-note { margin:22px 0 0; padding-top:18px; border-top:1px solid var(--line); font-size:11px; color:#8a827b !important; }
.toast { position:fixed; left:50%; bottom:24px; z-index:150; transform:translate(-50%, 20px); opacity:0; pointer-events:none; background:#171717; color:white; border-radius:999px; padding:10px 16px; font-size:12px; transition:.22s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }

@media (max-width: 1180px) {
  .site-header { grid-template-columns:1fr auto; }
  .top-nav { display:none; }
  .hero { gap:40px; }
  .services { grid-template-columns: repeat(3,1fr); }
  .card-grid { grid-template-columns: repeat(4,1fr); }
  .filter-bar { top:94px; }
}
@media (max-width: 780px) {
  .shell { width:min(100% - 28px, 680px); }
  .site-header { height:72px; padding:0 14px; }
  .brand-icon { width:36px; height:36px; }
  .brand-wordmark-img { width:72px; height:33px; }
  .icon-button { display:none; }
  .surprise-button { padding:10px 12px; font-size:12px; }
  .hero { grid-template-columns:1fr; min-height:0; padding-top:55px; gap:32px; }
  .hero h1 { font-size:clamp(52px,16vw,78px); }
  .hero-copy p { font-size:16px; }
  .hero-card { justify-self:stretch; width:100%; max-width:540px; transform:none; }
  .services { grid-template-columns: repeat(2,1fr); }
  .service-btn { min-height:68px; padding:11px; }
  .service-badge { width:38px; height:38px; }
  .catalog-section { padding-top:38px; }
  .filter-bar { position:static; align-items:stretch; border-radius:16px; }
  .segmented { width:100%; }
  .segment { flex:1; }
  .search-field { min-width:100%; }
  .score-filter { width:100%; flex-wrap:wrap; }
  .select-wrap { flex:1; min-width:120px; }
  .card-grid { grid-template-columns: repeat(2,1fr); gap:24px 11px; }
  .poster-title { font-size:16px; }
  .manifesto { grid-template-columns:auto 1fr; padding:24px; }
  .manifesto .surprise-button { grid-column:1/-1; width:100%; }
  .site-footer { grid-template-columns:1fr auto; padding:26px 0; }
  .site-footer p { display:none; }
  .detail-modal { grid-template-columns:minmax(0,1fr); max-width:560px; }
  .modal-poster { min-height:0; width:100%; aspect-ratio:1.3; }
  .modal-content { padding:30px 24px; }
  .modal-content h2 { font-size:36px; }
}
@media (max-width: 480px) {
  .header-actions .surprise-button { font-size:0; width:43px; height:43px; padding:0; border-radius:12px; }
  .header-actions .surprise-button .dice { font-size:18px; margin:0; }
  .services { grid-template-columns:1fr 1fr; gap:8px; }
  .service-btn strong { font-size:12px; }
  .service-btn small { font-size:10px; }
  .section-heading-line h2, .catalog-topline h2 { font-size:26px; }
  .rating-badge { width:52px; height:45px; }
  .favorite-btn { width:30px; height:30px; }
  .provider-mini { display:none; }
  .manifesto-icon { width:58px; height:58px; }
  .manifesto-icon img { width:43px; }
  .manifesto h2 { font-size:24px; }
  .modal-actions { flex-direction:column; }
  .data-modal { padding:34px 22px 24px; }
  .data-modal h2 { font-size:32px; }
  .data-modal-actions { flex-direction:column; }
}
