/* SuprHit viewer styles: mobile-first, no JavaScript, no external fonts. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f3f6;
  --border: #e6e3eb;
  --text: #17141d;
  --muted: #6b6578;
  --accent: #ffb627;      /* fills: buttons, active chips, timeline dots */
  --accent-ink: #1b1300;  /* text on --accent */
  --accent-text: #b35900; /* amber dark enough to read on white */
  --pink: #d6336c;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* header / footer */
.site-header { background: var(--bg); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.35rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--accent-text); }
.brand-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-tag { color: var(--text); font-size: .95rem; font-weight: 600; padding-left: 10px; border-left: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 24px 0; color: var(--muted); font-size: .875rem; background: var(--surface-2); }
.site-footer a { color: var(--muted); }

/* buttons, pills */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink) !important; font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text) !important; padding: 6px 14px; font-weight: 600; }
.pill { display: inline-block; font-size: .75rem; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.pill-accent { background: rgba(214, 51, 108, .08); color: var(--pink); border-color: rgba(214, 51, 108, .35); }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); margin-bottom: 8px; }

/* home: filter row (toggle + biggest languages) and the search/filter panel */
.filter-bar { padding-top: 16px; }
.filter-row { display: flex; align-items: center; gap: 8px; }
.filter-toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-size: .875rem; font-weight: 600; }
.filter-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.filter-toggle:hover { border-color: var(--text); }
.filter-toggle[aria-expanded="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-size: .7rem; background: var(--accent); color: var(--accent-ink); }
.quick-langs { display: flex; flex-wrap: nowrap; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.quick-langs::-webkit-scrollbar { display: none; }
.quick-langs .chip { flex: none; white-space: nowrap; }
.filter-panel { margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); }
.filter-panel .search-form { margin: 0; max-width: none; }
.facet { margin-top: 12px; }
.facet-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facet .chips { margin: 4px 0 0; }
.clear-all { display: inline-block; margin-top: 12px; font-size: .875rem; font-weight: 600; }
h2 small { font-size: .875rem; font-weight: 500; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* movie grid */
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; box-shadow: 0 1px 2px rgba(23, 20, 29, .05); }
.card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 18px rgba(23, 20, 29, .08); }
.tags { color: var(--muted); font-size: .8rem !important; margin-top: 4px !important; }

.poster { aspect-ratio: 2 / 3; background: var(--surface-2); }
.poster picture { display: block; width: 100%; height: 100%; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; font-weight: 800; letter-spacing: .05em; color: rgba(255, 255, 255, .9); background: linear-gradient(150deg, #ff4f8b 0%, #7b2ff7 55%, #1e1b4b 100%); }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin: 12px 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { font-weight: 600; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--border); }
.tl-item { position: relative; padding: 0 0 28px 16px; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.tl-item.is-upcoming::before { background: var(--bg); border-color: var(--pink); }
.tl-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; font-size: .875rem; color: var(--muted); }
.tl-item p { margin-bottom: .4em; }

/* creator content: picks, kind chips, spoilers, replies */
.pill-pick { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.picks-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); margin: 0 0 8px; }
.review-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.review-sort a { font-size: .85rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); text-decoration: none; }
.review-sort a[aria-current="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.notice { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.tl-creator { margin: 2px 0; }
.tl-all summary { cursor: pointer; color: var(--accent-text); font-weight: 600; padding: 8px 0; }
.reply-by { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.cta p { margin: 0; }
/* "Add a link": a <details>, so it works without JavaScript */
.add-link { display: block; }
.add-link summary { list-style: none; }
.add-link summary::-webkit-details-marker { display: none; }
.add-link details[open] summary { margin-bottom: 12px; }
.link-form { display: grid; gap: 12px; margin-bottom: 12px; }
.link-form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.link-form input, .link-form select, .link-form textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; width: 100%; box-sizing: border-box; }
.link-form button { justify-self: start; }
.link-done { max-width: 620px; padding-top: 40px; padding-bottom: 40px; }

/* search */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-form { display: flex; gap: 8px; max-width: 560px; margin: 16px 0; }
.search-form input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.search-form input:focus { outline: none; border-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); text-decoration: none; font-size: .875rem; }
.chip span { opacity: .7; margin-left: 4px; }
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

.notfound { text-align: center; padding: 80px 16px; }
.notfound .lead { margin: 0 auto 24px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* hashtags and official accounts */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.tag-list, .accounts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.tag:hover { border-color: var(--accent); }
.tag-official { border-color: var(--accent); color: var(--accent-text); }
.tags-lang { min-width: 6.5em; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.share-box { margin: 16px 0; }
.share-switch { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 8px; }
.share-switch select { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font: inherit; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.accounts a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.accounts a:hover { border-color: var(--accent); }
[hidden] { display: none !important; }

/* creator pages */
.creator-page { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 32px; max-width: 980px; }
.creator-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.creator-head h1 { margin: 0 0 6px; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800; font-size: 1.6rem; color: var(--muted); flex: none; }
.badge-unclaimed { color: var(--muted); }
.claim-box p { margin: 0 0 10px; }
.claim-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.creator-post > p { margin: 0 0 4px; }
.pager { display: flex; gap: 8px; justify-content: space-between; margin-top: 16px; }
.notice-error { border-color: var(--pink); }
.steps { display: grid; gap: 10px; padding-left: 20px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px 8px; user-select: all; }
.see-all { margin-top: 16px; text-align: center; }
.sort-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 16px; }

/* guides (/for-creators, /for-studios) and the directory */
.guide { display: grid; gap: 28px; padding-top: 24px; padding-bottom: 32px; max-width: 980px; }
.guide h1 { font-size: clamp(1.7rem, 5vw, 2.5rem); letter-spacing: -.02em; margin: 0 0 8px; }
.guide-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.guide-grid h3 { margin: 0 0 6px; }
.guide-grid p { margin: 0; color: var(--muted); }
.dir-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.dir-item { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; min-width: 0; }
.dir-item h3 { margin: 0 0 6px; font-size: 1rem; }
.dir-item h3 a { color: var(--text); }
.avatar-sm { width: 44px; height: 44px; font-size: .95rem; }
.dir-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.dir-head .lead { margin: 0; }
.dir-tools { display: grid; gap: 12px; }
.dir-item h2 { margin: 0 0 6px; font-size: 1rem; }
.dir-item h2 a { color: var(--text); }
.pager { align-items: center; }
.dir-tools .search-form, .dir-tools .facet, .dir-tools .clear-all { margin: 0; }

/* movie page (roadmap S4.3): compact, little scrolling */
.movie-hero { border-bottom: 1px solid var(--border); padding: 12px 0 4px; }
.movie-head { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
.poster-lg { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
@media (min-width: 720px) { .movie-head { grid-template-columns: 180px 1fr; gap: 24px; } .movie-hero { padding-top: 20px; } }
.movie-info { min-width: 0; }
.movie-info h1 { font-size: clamp(1.4rem, 5vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 4px; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.crumbs a { color: var(--muted); }
.movie-meta { font-size: .85rem; margin: 0 0 2px; line-height: 1.45; }
.movie-meta .badge { margin: 0; font-size: .75rem; }
.where { display: inline-block; margin: 6px 0 4px; font-size: .85rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(255, 182, 39, .18); color: var(--accent-ink); }
.synopsis { font-size: .9rem; color: var(--muted); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.buzz { margin: 10px 0 8px; font-size: .9rem; line-height: 1.5; }
.buzz a { color: var(--text); text-decoration: none; }
.buzz a:hover { text-decoration: underline; }
.buzz-day { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: rgba(214, 51, 108, .08); color: var(--pink); font-size: .8rem; font-weight: 600; }

/* quick links: one sticky, sideways-scrolling row */
.quick-links { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--border); }
.quick-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.quick-row::-webkit-scrollbar { display: none; }
.quick-row a { flex: none; padding: 9px 10px; font-size: .875rem; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.quick-row a:hover { color: var(--text); }
.quick-row a[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent); }
.movie-body { display: grid; gap: 16px; padding-top: 14px; padding-bottom: 16px; }
.movie-body > section, .add-link { scroll-margin-top: 52px; min-width: 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-size: 1.2rem; }
.up { color: var(--muted); text-decoration: none; font-size: .9rem; padding: 2px 6px; }
.btn-sm { padding: 5px 12px; font-size: .85rem; }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 6; padding: 8px 14px; border-radius: 999px; background: var(--text); color: var(--bg); text-decoration: none; font-size: .85rem; font-weight: 700; box-shadow: 0 4px 14px rgba(23, 20, 29, .2); }

/* folded sections: one line until opened */
.fold > details > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.fold > details > summary::-webkit-details-marker { display: none; }
.fold > details > summary h2 { margin: 0; font-size: 1.1rem; display: inline; }
.fold > details > summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 700; }
.fold > details[open] > summary::after { content: "–"; }
.fold > details[open] > summary { margin-bottom: 10px; }
.more-fold summary, .more-filters summary { cursor: pointer; color: var(--accent-text); font-weight: 600; font-size: .875rem; padding: 4px 0; }
.trailer h2 { font-size: 1.1rem; margin-bottom: 6px; }
.trailer .player, .trailer .player-frame { max-width: 420px; }

/* "From the team" placeholder: the team's section, waiting for them */
.official-empty { border: 1px dashed var(--border); border-radius: var(--radius); padding: 16px 18px; background: linear-gradient(180deg, var(--surface-2), transparent 80%); }
.official-empty .picks-h { margin-bottom: 2px; }
.official-empty h2 { font-size: 1.1rem; margin: 0 0 4px; }
.official-empty > p.muted { margin: 0 0 12px; }
.official-slots { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.official-slots li { font-size: .8rem; color: var(--muted); border: 1px dashed var(--border); border-radius: 999px; padding: 3px 10px; }
.official-cta { margin: 0; }
.official-cta a { color: var(--accent-text); font-weight: 600; }

/* filters */
.post-filters { display: grid; gap: 6px; margin-bottom: 10px; }
.filter-line { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; align-items: center; padding-bottom: 2px; }
.filter-line::-webkit-scrollbar { display: none; }
.filter-line .chip { flex: none; padding: 3px 10px; font-size: .825rem; }
.filter-line .facet-label { flex: none; min-width: 3.5em; }
.more-filters[open] { display: grid; gap: 6px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.active-filters .chip { font-size: .8rem; padding: 2px 10px; }

/* creator posts: dense rows on phones, a grid on wider screens */
.picks { margin-bottom: 12px; }
.post-list { display: grid; gap: 8px; margin-bottom: 8px; }
@media (min-width: 720px) { .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1040px) { .post-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.post-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 8px 18px; min-width: 0; }
.post-card.is-pinned { border-color: var(--accent); }
.post-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: start; }
@media (min-width: 720px) { .post-list .post-row { grid-template-columns: 1fr; gap: 8px; } }
.post-row.is-playing { grid-template-columns: 1fr; }
.post-main { min-width: 0; }
.post-card h3 { font-size: .9rem; line-height: 1.3; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card h3 a { color: var(--text); text-decoration: none; }
.post-by { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.35; }
.post-by a { color: var(--text); font-weight: 600; text-decoration: none; }
.post-meta { display: block; }
.post-kind { font-weight: 600; color: var(--accent-text); }
.pick { font-weight: 700; color: var(--accent-text); }
.post-desc { display: none; font-size: .8rem; color: var(--muted); margin: 4px 0 0; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 720px) { .post-desc { display: -webkit-box; } }
.post-report { position: absolute; right: 8px; bottom: 2px; margin: 0; font-size: .7rem; }
.post-report a { color: var(--muted); opacity: .7; }
.spoiler > summary { cursor: pointer; color: var(--accent-text); font-weight: 600; font-size: .85rem; padding: 6px 0; }
.reply { margin-top: 6px; font-size: .85rem; padding: 4px 10px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.reply summary { cursor: pointer; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-text); }
.reply p { margin: 4px 0; }
.shorts-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scroll-snap-type: x mandatory; }
.shorts-row .post-card { flex: 0 0 132px; scroll-snap-align: start; padding: 6px 6px 16px; }
.shorts-row .post-row { grid-template-columns: 1fr; gap: 6px; }
.shorts-row .player { aspect-ratio: 9 / 16; }
.shorts-row .post-meta { display: inline; }
.shorts-row .post-card.is-playing { flex-basis: min(320px, 85vw); }
.more { text-align: center; margin: 4px 0 12px; }

/* a still that becomes the player */
.player { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #111; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 34px; height: 24px; margin: -12px 0 0 -17px; border-radius: 7px; background: rgba(0, 0, 0, .7); }
.play::after { content: ""; position: absolute; left: 13px; top: 6px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.player-plain { display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); text-decoration: none; }
.player-plain .play { display: none; }
.player-name { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.player-link .player-name { text-transform: none; }
.player-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.shorts-row .player-frame { aspect-ratio: 9 / 16; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* the site-wide nav style (a wrapping flex row) doesn't apply here */
nav.quick-links { display: block; }
nav.filter-line { flex-wrap: nowrap; }
nav.filter-line a, nav.quick-links a { font-size: .825rem; }
/* grids whose items scroll sideways must not grow wider than the screen */
.movie-body, .post-list, .post-filters { grid-template-columns: minmax(0, 1fr); }
.movie-body > *, .post-filters > *, .post-list > * { min-width: 0; }
.post-list { align-items: start; }
@media (min-width: 720px) { .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .post-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shorts-row .post-card { flex-basis: 116px; }
.shorts-row .player { aspect-ratio: 3 / 4; }
.movie-meta { overflow-wrap: anywhere; }

/* movie cards: compact, 3 to a row on phones */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.card { border-radius: 10px; }
.poster { position: relative; }
.poster-ph { font-size: 1.6rem; }
.card-body { padding: 6px 7px 7px; }
.card-body h3 { font-size: .82rem; line-height: 1.25; margin: 0 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { font-size: .72rem; line-height: 1.35; margin: 0; }
.card-line { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-line .lang { text-decoration: none; font-weight: 700; font-size: .66rem; color: var(--text); margin-left: 3px; padding: 0 3px; border: 1px solid var(--border); border-radius: 4px; }
.card-genres { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-status { position: absolute; top: 5px; left: 5px; display: inline-flex; align-items: center; gap: 3px; max-width: calc(100% - 10px); padding: 3px 6px 3px 4px; border-radius: 999px; background: rgba(23, 20, 29, .78); color: #fff; font-size: .68rem; line-height: 1; }
.card-status svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card-status b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-status.st-in_theaters { background: var(--accent); color: var(--accent-ink); }
.card-status.st-upcoming { background: var(--pink); }
.card-stats { display: flex; margin: 5px 0 0; padding-top: 5px; border-top: 1px solid var(--border); }
.card-stats div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column-reverse; align-items: center; text-align: center; }
.card-stats dd { margin: 0; font-weight: 800; font-size: .9rem; line-height: 1.1; color: var(--accent-text); }
.card-stats dt { font-size: .58rem; text-transform: uppercase; letter-spacing: .02em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.card-stats div + div { border-left: 1px solid var(--border); }
@media (min-width: 640px) { .card-body { padding: 8px 10px 10px; } .card-body h3 { font-size: .9rem; } .card-body p { font-size: .78rem; } .card-stats dt { font-size: .62rem; } }
.section { padding-top: 18px; padding-bottom: 8px; }
.section > h2 { margin-bottom: 10px; }
/* narrow phones (~104px cards): two counts, so their labels stay whole */
@media (max-width: 419px) {
  .card-stats div:nth-child(2):nth-last-child(2) { display: none; }
  .card-stats div:nth-child(3) { border-left: 1px solid var(--border); }
  .card-stats dt { text-transform: none; letter-spacing: 0; font-size: .6rem; }
}
/* the card status icons, explained once above the lists */
.status-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px auto 0; font-size: .75rem; color: var(--muted); }
.status-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.status-legend .card-status { position: static; font-style: normal; padding: 3px; }
/* Filters: a chevron that points up while the panel is open; "Clear all" beside it */
.filter-toggle .filter-chevron { width: 14px; height: 14px; transition: transform .15s; }
.filter-toggle[aria-expanded="true"] .filter-chevron { transform: rotate(180deg); }
.filter-clear { flex: none; font-size: .85rem; font-weight: 600; white-space: nowrap; padding: 5px 4px; }

/* "Suggest a link": a line of text that opens the form */
.add-link-summary { cursor: pointer; list-style: none; font-size: .95rem; }
.add-link-summary::-webkit-details-marker { display: none; }
.add-link-summary span { color: var(--accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.add-link-summary span::after { content: " ▸"; }
.add-link details[open] .add-link-summary span::after { content: " ▾"; }
/* platform choice: chips; each platform shows only its own fields */
.platform-pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.platform-pick legend { font-weight: 600; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.platform-pick .chip { display: inline-flex; align-items: center; cursor: pointer; font-weight: 600; font-size: .85rem; }
.platform-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.platform-pick .chip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.platform-pick .chip:has(input:focus-visible) { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.link-form .pf-field, .link-form .pf-title, .link-form .pf-hint { display: none; }
.link-form .pf-hint { margin: -6px 0 0; }
.link-form:has(#pf-youtube:checked) [data-for~="youtube"],
.link-form:has(#pf-instagram:checked) [data-for~="instagram"],
.link-form:has(#pf-x:checked) [data-for~="x"],
.link-form:has(#pf-reddit:checked) [data-for~="reddit"],
.link-form:has(#pf-website:checked) [data-for~="website"] { display: grid; }
.link-form:has(#pf-instagram:checked) .pf-title[data-for~="instagram"],
.link-form:has(#pf-reddit:checked) .pf-title[data-for~="reddit"],
.link-form:has(#pf-website:checked) .pf-title[data-for~="website"] { display: inline; }
/* browsers without :has() see every field, with a generic label */
@supports not selector(:has(*)) {
  .link-form .pf-field { display: grid; }
  .link-form .pf-title[data-for="website"] { display: inline; }
}
