:root {
  --ink: #182019;
  --muted: #718077;
  --paper: #f3f4ee;
  --paper-deep: #e8ece3;
  --card: #ffffff;
  --line: rgba(24, 32, 25, 0.11);
  --green: #1d4b37;
  --green-deep: #112b20;
  --mint: #bed9c3;
  --yellow: #f0c672;
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  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='.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.10'/%3E%3C/svg%3E");
  z-index: 5;
}
.shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 1; }
.topbar { min-height: 88px; display: flex; align-items: center; gap: 42px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 18px; letter-spacing: -0.04em; font-weight: 780; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px 10px 10px 3px; background: var(--green); color: var(--mint); font-family: Georgia, serif; font-size: 18px; font-style: italic; }
.brand-accent { color: #698c70; }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.privacy-pill { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: .01em; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6aa871; box-shadow: 0 0 0 4px rgba(106, 168, 113, .13); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 90px; padding: 88px 0 78px; }
.eyebrow { margin: 0 0 16px; color: #819184; font-size: 10px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 650px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 7vw, 96px); font-weight: 400; letter-spacing: -.065em; line-height: .89; }
.hero h1 em { color: #6b866e; font-style: italic; }
.hero-text { max-width: 500px; margin: 30px 0 32px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button { min-height: 42px; border: 1px solid transparent; border-radius: 11px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 8px 18px rgba(29, 75, 55, .18); }
.button-primary:hover { background: var(--green-deep); }
.button-primary span { color: var(--yellow); font-size: 20px; line-height: 0; font-weight: 400; }
.button-quiet { color: #4f6356; background: transparent; border-color: var(--line); }
.button-quiet:hover { background: rgba(255, 255, 255, .68); border-color: rgba(29, 75, 55, .24); }
.file-button { cursor: pointer; }

.hero-card { min-height: 310px; padding: 30px; border-radius: 30px; overflow: hidden; color: #f1f6ed; background: radial-gradient(circle at 85% 15%, rgba(190, 217, 195, .23), transparent 29%), linear-gradient(145deg, #244d39, #122a20 78%); box-shadow: 0 22px 65px rgba(29, 75, 55, .18); position: relative; }
.hero-card::after { content: ""; position: absolute; width: 230px; height: 230px; right: -75px; bottom: -110px; border: 1px solid rgba(190, 217, 195, .22); border-radius: 50%; box-shadow: 0 0 0 22px rgba(190, 217, 195, .05), 0 0 0 44px rgba(190, 217, 195, .035); }
.hero-card-top, .hero-card-bottom { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.hero-card .eyebrow { color: #a9c4ae; margin: 0; }
.hero-count { font-size: 12px; color: #bfd2c2; }
.film-strip { display: flex; gap: 13px; margin: 65px 0 54px; transform: rotate(-7deg); }
.film-strip span { flex: 1; height: 52px; border-radius: 7px; background: linear-gradient(135deg, #a8c9a9, #dbe3bd 56%, #678c6d); opacity: .92; box-shadow: 0 6px 19px rgba(0, 0, 0, .16); }
.film-strip span:nth-child(2) { background: linear-gradient(135deg, #efc26c, #bd8455); }
.film-strip span:nth-child(3) { background: linear-gradient(135deg, #b6cfe0, #65758e); }
.film-strip span:nth-child(4) { background: linear-gradient(135deg, #d2a9af, #7c4953); }
.film-strip span:nth-child(5) { background: linear-gradient(135deg, #e2d8b1, #8e805b); }
.film-strip span:nth-child(6) { background: linear-gradient(135deg, #a8c9a9, #456b5d); }
.hero-card-bottom strong, .hero-card-bottom span { display: block; }
.hero-card-bottom strong { font-size: 14px; letter-spacing: -.01em; }
.hero-card-bottom span { margin-top: 5px; color: #98b59e; font-size: 11px; }
.hero-orbit { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid rgba(190, 217, 195, .45); border-radius: 50%; color: var(--yellow); font-size: 17px; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 55px; }
.stat-card { min-height: 145px; padding: 23px 24px; background: rgba(255, 255, 255, .67); border: 1px solid rgba(24, 32, 25, .06); border-radius: var(--radius); }
.stat-card-warm { background: #eee5cc; }
.stat-card-dark { background: #d4e2d3; }
.stat-label, .stat-note { display: block; color: var(--muted); font-size: 11px; }
.stat-label { margin-bottom: 22px; color: #637167; font-weight: 650; }
.stat-card strong { display: block; margin-bottom: 3px; font-family: Georgia, serif; font-size: 37px; font-weight: 400; letter-spacing: -.06em; }
.stat-note { color: #89958b; }

.toolbar { display: flex; flex-wrap: wrap; gap: 18px 12px; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.search-box { display: flex; align-items: center; gap: 10px; width: min(390px, 100%); height: 45px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.66); }
.search-icon { color: #819184; font-size: 22px; transform: rotate(-18deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #9aa49c; }
.sort-box { display: flex; align-items: center; gap: 10px; color: #89958b; font-size: 11px; }
.sort-box select { border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.grid-size-control { flex: 0 0 190px; padding-left: 16px; border-left: 1px solid var(--line); }
.grid-size-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); font-size: 11px; font-weight: 700; }
.grid-size-heading output { min-width: 24px; padding: 2px 6px; border-radius: 6px; text-align: center; background: #d9e7d7; font-variant-numeric: tabular-nums; }
.grid-size-control input { display: block; width: 100%; margin: 6px 0 5px; accent-color: var(--green); cursor: pointer; }
.grid-size-control > span { display: block; color: var(--muted); font-size: 9px; line-height: 1.4; }
.browse-order-note { margin: -7px 0 18px; color: #667a69; font-size: 12px; line-height: 1.6; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 46px; padding: 50px 0 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 29px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 36px; font-weight: 400; letter-spacing: -.055em; }
.section-heading h2 span { margin-left: 5px; color: #9aa49c; font-family: inherit; font-size: 17px; vertical-align: middle; }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; }
.chip { min-height: 30px; padding: 0 11px; border: 1px solid transparent; border-radius: 30px; color: #7a897e; background: transparent; font-size: 11px; }
.chip:hover { color: var(--ink); background: rgba(255,255,255,.55); }
.chip.is-active { color: #28543d; border-color: rgba(29,75,55,.12); background: #d9e7d7; font-weight: 700; }
.category-chips { justify-content: start; margin-bottom: 24px; gap: 8px; }
.category-chips .chip { min-height: 38px; padding: 0 18px; font-size: 13px; }
.section-heading h2 #catalogTitle { margin: 0; color: inherit; font-size: inherit; vertical-align: baseline; }
.movie-meta { flex-wrap: wrap; gap: 6px; }
.media-badge { color: var(--green); font-weight: 700; }
.page-picker { display: flex; align-items: center; gap: 8px; }
.page-picker input { width: 78px; min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); }
.pagination { flex-wrap: wrap; }
.pagination #pageMessage { flex-basis: 100%; margin: 0; text-align: center; }
.pagination #pageMessage:empty { display: none; }
button:disabled, input:disabled, select:disabled { cursor: default; opacity: .5; }
button:disabled:hover { transform: none; }
.chip:focus-visible, .page-picker input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.movie-grid { display: grid; grid-template-columns: repeat(var(--grid-columns, 3), minmax(0, 1fr)); gap: 15px; }
.movie-card { min-width: 0; overflow: hidden; border: 1px solid rgba(24, 32, 25, .06); border-radius: 18px; background: rgba(255,255,255,.78); transition: transform .25s ease, box-shadow .25s ease; }
.movie-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(31, 48, 36, .10); }
.movie-art { position: relative; height: 180px; padding: 14px; display: flex; align-items: end; background: var(--accent); overflow: hidden; }
.movie-art::before, .movie-art::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; }
.movie-art::before { width: 180px; height: 180px; top: -84px; right: -50px; }
.movie-art::after { width: 115px; height: 115px; top: -50px; right: -17px; }
.movie-art-index { position: absolute; top: 13px; left: 14px; font-family: Georgia, serif; color: rgba(255,255,255,.63); font-size: 12px; }
.movie-art-glyph { position: absolute; top: 41px; right: 25px; color: rgba(255,255,255,.72); font-family: Georgia, serif; font-size: 48px; font-style: italic; }
.movie-art-title { position: relative; z-index: 1; max-width: 88%; color: #fff; font-family: Georgia, serif; font-size: 22px; line-height: .92; letter-spacing: -.045em; text-shadow: 0 2px 15px rgba(0,0,0,.18); }
.favorite-button { position: absolute; z-index: 2; top: 10px; right: 10px; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: rgba(19, 35, 24, .16); font-size: 15px; }
.favorite-button.is-favorite { color: var(--yellow); background: rgba(19, 35, 24, .37); }
.movie-body { padding: 15px; }
.movie-meta { display: flex; flex-wrap: wrap; gap: 6px; min-height: 17px; color: #829087; font-size: 10px; }
.movie-meta span:not(:last-child)::after { content: "·"; margin-left: 6px; color: #bbc2ba; }
.movie-card h3 { margin: 8px 0 5px; color: #263229; font-family: Georgia, serif; font-size: 19px; font-weight: 400; letter-spacing: -.035em; }
.movie-note { min-height: 18px; margin: 0 0 12px; overflow: hidden; color: #839087; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.playback-note { margin: -4px 0 12px; color: #667a69; font-size: 10px; line-height: 1.5; }
.movie-actions { display: flex; align-items: center; gap: 7px; }
.movie-action { min-height: 30px; flex: 1; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: #526459; background: transparent; font-size: 10px; font-weight: 700; }
.movie-action:hover { border-color: rgba(29,75,55,.25); background: #eef3eb; }
.movie-action.primary { color: #fff; border-color: var(--green); background: var(--green); }
.movie-action.primary:hover { background: var(--green-deep); }
.movie-action:disabled { cursor: not-allowed; color: #b1bab2; background: #f3f4f0; }
.local-file-name { margin-top: 10px; overflow: hidden; color: #628066; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed rgba(24, 32, 25, .15); border-radius: var(--radius); }
.empty-icon { color: #adbfad; font-size: 29px; }
.empty-state h3 { margin: 12px 0 5px; font-family: Georgia, serif; font-size: 25px; font-weight: 400; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }

.side-panel { align-self: start; padding: 28px; border-radius: var(--radius); color: #edf3ea; background: var(--green-deep); box-shadow: 0 15px 38px rgba(17, 43, 32, .12); }
.side-kicker { display: flex; align-items: center; gap: 8px; color: #a8c2aa; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.side-panel h2 { margin: 38px 0 15px; font-family: Georgia, serif; font-size: 34px; font-weight: 400; letter-spacing: -.06em; line-height: .95; }
.side-panel > p { margin: 0; color: #aec3b0; font-size: 12px; line-height: 1.65; }
.side-rule { height: 1px; margin: 29px 0 21px; background: rgba(190, 217, 195, .17); }
.side-list { display: grid; gap: 14px; }
.side-list > div { display: grid; grid-template-columns: 26px 1fr; gap: 8px; color: #c6d7c6; font-size: 11px; line-height: 1.45; }
.side-number { color: var(--yellow); font-family: Georgia, serif; font-size: 12px; }
.side-footer { display: flex; align-items: center; gap: 7px; margin-top: 28px; color: #7f9e86; font-size: 10px; }
.lock-icon { color: var(--yellow); font-size: 18px; }

.footer { display: flex; justify-content: space-between; gap: 15px; padding: 20px 0 30px; border-top: 1px solid var(--line); color: #929c94; font-size: 10px; }
.movie-dialog { width: min(610px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 28px 80px rgba(17, 43, 32, .25); }
.movie-dialog::backdrop { background: rgba(17, 43, 32, .48); backdrop-filter: blur(5px); }
.dialog-card { padding: 32px; position: relative; }
.dialog-close { position: absolute; top: 16px; right: 18px; width: 31px; height: 31px; padding: 0; border: 0; border-radius: 50%; color: #779080; background: transparent; font-size: 24px; }
.dialog-close:hover { background: #e2e8df; }
.dialog-card h2 { margin: 0; font-family: Georgia, serif; font-size: 36px; font-weight: 400; letter-spacing: -.055em; }
.dialog-intro { max-width: 470px; margin: 11px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; color: #647267; font-size: 10px; font-weight: 750; letter-spacing: .03em; }
.field-wide { grid-column: 1 / -1; }
.field b { color: #bf8058; }
.field small { color: #a4aea5; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: 0; padding: 11px 12px; color: var(--ink); background: rgba(255,255,255,.7); font-size: 12px; font-weight: 450; letter-spacing: 0; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(29,75,55,.45); box-shadow: 0 0 0 3px rgba(29,75,55,.08); }
.form-message { min-height: 18px; margin: 13px 0 0; color: #a65f44; font-size: 11px; }
.dialog-actions { display: flex; justify-content: end; gap: 8px; margin-top: 4px; }
.toast { position: fixed; z-index: 10; right: 22px; bottom: 22px; max-width: 330px; padding: 12px 16px; border-radius: 11px; color: #ecf4ea; background: var(--green-deep); box-shadow: 0 12px 30px rgba(17,43,32,.22); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

[hidden] { display: none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.catalog-hero { padding:65px 0 55px; gap:65px; }
.catalog-hero h1 { font-size:clamp(48px,6.5vw,84px); }
.catalog-selects { display:flex; flex-wrap:wrap; gap:18px; }
.catalog-selects select { max-width:180px; min-height:36px; }
.catalog-caption { color:var(--muted); font-size:12px; margin:-10px 0 24px; }
.card-status { display:block; margin-top:12px; }
.card-status select { width:100%; color:#718077; background:transparent; border:0; border-top:1px solid var(--line); padding:10px 0 0; font-size:11px; }
.pagination { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:28px; }
.pagination span { font-size:12px; color:var(--muted); }
.category-chips { justify-content: start; margin: 0 0 24px; gap: 8px; }
.category-chips .chip { min-height: 38px; padding: 0 18px; font-size: 13px; border-color: var(--line); }
.section-heading h2 #catalogTitle { margin: 0; color: inherit; font-size: inherit; }
.media-badge { color: #365d45; font-weight: 700; }
.pagination { flex-wrap: wrap; justify-content: start; padding: 12px 0; margin: 0 0 18px; border-block: 1px solid var(--line); }
.page-picker { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12px; color: var(--muted); }
.page-picker input { width: 84px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.pagination .form-message { width: 100%; min-height: 0; margin: 0; }
.episode-actions { margin-top: 20px; }
.direct-catalog-note { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 20px; padding: 16px; border: 1px solid #cbd8ce; border-radius: 12px; background: #e8efe9; }
.direct-catalog-note p { flex: 1 1 300px; margin: 0; color: #42634e; font-size: 13px; line-height: 1.6; }
.check-results { display: grid; gap: 10px; }
.check-candidate { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border: 1px solid #dce5dc; border-radius: 12px; }
.check-candidate > div { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.check-candidate > .check-candidate-art { position: relative; flex: 0 0 64px; width: 64px; height: 96px; overflow: hidden; border-radius: 7px; background: linear-gradient(145deg,#3f6850,#182e24); color: #e4ecdf; }
.check-poster-fallback { display: grid !important; place-items: center; height: 100%; font-family: Georgia,serif; font-size: 36px !important; color: #e4ecdf !important; }
.check-candidate-art .poster-state { position: absolute; bottom: 5px; left: 3px; right: 3px; font-size: 8px; line-height: 1.2; text-align: center; color: #e4ecdf; }
.check-candidate-art:has(.movie-poster[data-loaded="true"]) .poster-state { display: none; }
.check-candidate strong, .check-candidate span { display: block; }
.check-candidate span { color: #627867; font-size: 12px; margin-top: 5px; }
.imdb-rating { position: absolute; z-index: 2; top: 12px; left: 10px; max-width: calc(100% - 55px); padding: 6px 8px; border-radius: 7px; color: #e5e9de; background: rgba(18,30,24,.92); font-size: 11px; line-height: 1.4; }
.imdb-rating a { color: #f5d985; text-decoration: none; }
.imdb-rating a:hover { text-decoration: underline; }
.imdb-rating b { font-size: 10px; }
.imdb-rating small { display: block; color: #d0d9ce; font-size: 9px; }
.movie-art:has(.imdb-rating) .movie-art-index { display: none; }
.ratings-caption,.ratings-attribution { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0 0 10px; }
.ratings-attribution { margin-bottom: 18px; font-size: 10px; }
@media(max-width: 600px) { .page-picker { margin-left: 0; } .pagination { gap: 8px; } }
button:disabled { opacity:.45; cursor:default; transform:none !important; }
.connection-message { background:#f1e1c7; color:#72502a; border-radius:12px; padding:17px; margin-bottom:22px; font-size:13px; line-height:1.6; }
.source-panel { padding:24px; }
.source-panel h2 { margin-top:26px; }
.source-status-list { margin-top:20px; }
.source-status { padding:18px 0; border-top:1px solid #ffffff20; }
.source-status-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:13px; font-weight:650; }
.source-status-heading > span { font-family:Georgia,serif; font-size:20px; color:#d7e7cd; }
.source-status p { color:#9fb6a3; font-size:10px; line-height:1.6; margin:8px 0 0; overflow-wrap:anywhere; }
.source-status time { display:block; font-size:9px; color:#799881; margin-top:7px; }
.source-badge { display:inline-block; margin-top:7px; font-size:9px; color:#adc3b1; border:1px solid #ffffff23; padding:3px 6px; border-radius:5px; }
.status-indexed { color:#c2eab6; background:#acd78a15; }
.status-scanning { color:#f0c672; }
.status-partial, .status-paused { color:#f0c672; }
.status-unavailable, .status-javascript { color:#d7aca0; }
.scan-actions { margin-top:18px; display:grid; gap:10px; }
.scan-button { background:#c4dac0; color:#183222; font-size:11px; min-height:38px; }
.text-button { border:0; background:transparent; color:#b9ccb9; font-size:10px; text-decoration:underline; text-underline-offset:3px; line-height:1.5; }
.is-scanning { animation:pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity:.4; } }
.movie-source-row { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:18px 0; border-top:1px solid var(--line); }
.movie-source-row strong,.movie-source-row small,.movie-source-row span { display:block; }
.movie-source-row strong { font-size:14px; }
.movie-source-row small { color:var(--muted); font-size:11px; margin-top:5px; }
.movie-source-row span { color:#9aa49c; font-size:10px; margin-top:5px; }
.movie-source-row a { flex-shrink:0; }
.dialog-footnote { margin-top:20px; font-size:11px; color:var(--muted); line-height:1.6; }
.player-dialog { width:min(1050px,95vw); }
.player-dialog video { width:100%; max-height:70vh; background:#000; margin-top:20px; border-radius:10px; }
:focus-visible { outline:2px solid #a37731; outline-offset:4px; }

@media (max-width: 980px) {
  .hero { gap: 45px; }
  .content-grid { grid-template-columns: 1fr; }
  .side-panel { display: none; }
  .source-panel { display:block; width:100%; }
  .source-status-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 25px; }
}
@media (max-width: 700px) {
  .shell { width: min(100% - 28px, 560px); }
  .topbar { min-height: 72px; gap: 18px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 60px 0 55px; }
  .hero-card { min-height: 260px; }
  .film-strip { margin: 48px 0 40px; }
  .stats-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 34px; }
  .stat-card:last-child { grid-column:1/-1; min-height:105px; }
  .stat-card { min-height: 123px; padding: 15px; }
  .stat-label { margin-bottom: 17px; font-size: 10px; }
  .stat-card strong { font-size: clamp(22px, 7vw, 30px); }
  .stat-note { font-size: 9px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .sort-box { justify-content: space-between; }
  .catalog-selects { gap:12px; justify-content:space-between; }
  .grid-size-control { flex: 1 1 180px; padding-left: 0; border-left: 0; }
  .catalog-selects select { max-width:140px; font-size:11px; }
  .content-grid { padding-top: 35px; }
  .section-heading { align-items: start; flex-direction: column; }
  .filter-chips { justify-content: start; }
  .movie-grid { gap: 10px; }
  .movie-art { height: 150px; }
  .movie-art-title { font-size: 18px; }
  .movie-body { padding: 12px; }
  .movie-card h3 { font-size: 17px; }
  .movie-actions { flex-wrap: wrap; }
  .movie-action { min-width: calc(50% - 4px); }
  .footer { flex-direction: column; }
  .dialog-card { padding: 26px 20px 21px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .source-status-list { grid-template-columns:1fr; }
}
@media (max-width: 390px) {
  .movie-art { height: 170px; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-card { min-height: 104px; }
}

/* Native playback for catalog streams, direct links, and local files. */
.movie-art { height: auto; aspect-ratio: 2 / 3; }
.movie-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #213d30; opacity: 0; transition: opacity .2s ease; }
.movie-poster[data-loaded="true"] { opacity: 1; }
.movie-art:has(.movie-poster[data-loaded="true"])::before, .movie-art:has(.movie-poster[data-loaded="true"])::after,
.movie-art:has(.movie-poster[data-loaded="true"]) .movie-art-glyph,
.movie-art:has(.movie-poster[data-loaded="true"]) .movie-art-title,
.movie-art:has(.movie-poster[data-loaded="true"]) .movie-art-index,
.movie-art:has(.movie-poster[data-loaded="true"]) .poster-state { display: none; }
.movie-art > .poster-state { position: absolute; bottom: 12px; left: 18px; color: #d9e5d9; font-size: 11px; }
.movie-art .favorite-button { z-index: 3; color: #1d4b37; background: rgba(250,252,247,.94); }
.movie-art .favorite-button.is-favorite { color: #f2d184; background: #1d4b37; }
.artwork-caption { font-size: 12px; line-height: 1.5; margin: -7px 0 18px; color: #667a69; }
.player-dialog .dialog-card { padding-top: 30px; }
.player-dialog h2 { padding-right: 24px; overflow-wrap: anywhere; }
.episode-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.episode-position { flex: 1 1 170px; text-align: center; color: #526d5a; font-size: 13px; line-height: 1.5; }
.episode-navigation .button { flex: 0 1 auto; }
.player-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0 16px; }
.player-controls .field { flex: 1 1 200px; min-width: 0; }
.player-controls select { width: 100%; min-width: 0; text-overflow: ellipsis; }
.player-controls button { flex: 0 0 auto; }
.player-fallback { padding: 12px 16px; margin: 0 0 16px; border: 1px solid #bacac0; border-radius: 10px; background: #e8efe9; color: #254a39; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.player-fallback[hidden] { display: none; }
.player-stage { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; min-height: 160px; max-height: 55vh; overflow: hidden; border-radius: 12px; background: #101a16; color: #c7d8cd; }
.player-dialog .player-stage video { display: block; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; max-height: 65vh; }
.player-dialog .player-stage video[hidden] { display: none; }
.player-placeholder { padding: 24px; text-align: center; font-size: 15px; }
.playback-timeline { width:100%; padding:12px 14px; margin-top:8px; border:1px solid #2a3c50; border-radius:10px; background:#0b141f; color:#c5d5e4; }
.playback-buffer-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 18px; font-size:12px; font-variant-numeric:tabular-nums; }
.playback-buffer-heading output { color:#e5f0f7; }
.playback-transfer { color:#88bcff; font-variant-numeric:tabular-nums; }
.playback-seek { position:relative; display:flex; align-items:center; height:32px; }
.playback-seek svg { position:absolute; left:8px; width:calc(100% - 16px); height:8px; border-radius:4px; overflow:hidden; background:#050a12; pointer-events:none; }
.buffered-range { fill:#17488b; stroke:#4385da; stroke-width:.8px; }
.buffered-range rect { vector-effect:non-scaling-stroke; }
.playback-played { fill:#64dbae; }
.playback-seek input { position:relative; appearance:none; -webkit-appearance:none; width:100%; height:32px; margin:0; padding:0; border:0; border-radius:4px; background:transparent; cursor:pointer; }
.playback-seek input::-webkit-slider-runnable-track { height:8px; border:0; background:transparent; }
.playback-seek input::-moz-range-track { height:8px; border:0; background:transparent; }
.playback-seek input::-moz-range-progress { background:transparent; }
.playback-seek input::-webkit-slider-thumb { appearance:none; -webkit-appearance:none; width:16px; height:16px; margin-top:-4px; border:2px solid #a1f7d5; border-radius:50%; background:#64dbae; }
.playback-seek input::-moz-range-thumb { box-sizing:border-box; width:16px; height:16px; border:2px solid #a1f7d5; border-radius:50%; background:#64dbae; }
.playback-seek input:focus-visible { outline:2px solid #8bcaff; outline-offset:2px; }
.playback-seek input:disabled { cursor:default; opacity:.45; }
.playback-buffer-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 16px; color:#a4b9cc; font-size:11px; line-height:1.6; }
.playback-buffer-legend { display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px; }
.playback-buffer-legend i { display:inline-block; width:12px; height:8px; border:1px solid #3671bb; border-radius:2px; background:#17488b; }
.playback-buffer-legend i.played-key { margin-left:6px; border-color:#8debc7; background:#64dbae; }
.player-progress { color: #526d5a; font-size: 12px; line-height: 1.6; margin: 12px 0 0; }
.player-status { font-size: 14px; line-height: 1.6; margin: 14px 0; overflow-wrap: anywhere; }
.player-status[data-state="error"] { background: #fff0de; color: #794011; padding: 12px 14px; border-radius: 8px; }
.player-status[data-state="loading"] { color: #42684f; }
.direct-video-details { border-top: 1px solid #dce5dc; padding-top: 14px; margin-top: 14px; }
.direct-video-details summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.direct-video-form { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.direct-video-form .field { flex: 1 1 260px; min-width: 0; }
.player-dialog .dialog-footnote { line-height: 1.6; }
@media (max-width: 700px) {
  .episode-position { flex-basis: 100%; order: -1; text-align: left; }
  .episode-navigation .button { flex: 1 1 140px; }
  .player-controls { gap: 10px; }
  .player-controls .field { flex-basis: 100%; }
  .player-controls button { width: 100%; }
  .player-stage { min-height: 150px; }
}

/* Compact, poster-first cinema library. No external fonts or decorative assets. */
:root { color-scheme: dark; --ink:#edf2f7; --muted:#9aa8b8; --paper:#0c1016; --paper-deep:#101720; --card:#151c25; --line:#293340; --green:#62d9aa; --green-deep:#16392c; --mint:#a0efd0; --radius:16px; }
html { scroll-behavior:auto; }
.cinema-library { background:radial-gradient(ellipse at 80% 0,#152323 0,transparent 45%),var(--paper); }
.cinema-library .shell { width:min(1440px,calc(100% - 64px)); }
.topbar { min-height:72px; gap:36px; }
.brand { font-size:21px; letter-spacing:-.05em; }
.brand-mark { color:#0c2118; background:var(--green); width:32px; height:32px; }
.brand-accent { color:var(--green); }
.nav-links { font-size:12px; gap:22px; }
.header-actions { margin-left:auto; display:flex; align-items:center; gap:8px; }
.button { min-height:36px; padding:0 14px; border-radius:9px; font-size:12px; }
.button-primary { color:#082016; background:var(--green); border-color:var(--green); }
.button-primary:hover { background:#83e9c0; }
.button-quiet { color:#c6d2df; background:#151d27; border:1px solid #2b3745; }
.button-quiet:hover { background:#202c39; border-color:#526675; }
.library-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:26px 0 22px; }
.library-intro .eyebrow { color:#86b9a6; font-size:9px; letter-spacing:.16em; margin:0 0 7px; }
.library-intro h1 { margin:0; font-size:clamp(25px,3vw,37px); font-weight:650; letter-spacing:-.055em; line-height:1.15; }
.library-intro h1 > span { color:var(--green); }
.library-intro .category-chips { margin:0; flex-shrink:0; }
.chip { color:#a5b2c1; font-size:11px; white-space:nowrap; }
.chip:hover { color:#edf2f7; background:#1c2632; }
.chip.is-active { color:#8eecc4; border-color:#2e5948; background:#183429; }
.category-chips .chip { border-color:#2c3946; font-size:12px; min-height:37px; padding:0 18px; }
.toolbar { align-items:center; gap:12px 18px; padding:14px; border:1px solid var(--line); background:#111821; border-radius:14px; scroll-margin-top:16px; }
.search-box { flex:1 1 300px; width:auto; height:43px; color:var(--ink); border-color:#2a3948; background:#0b121a; }
.search-box input { font-size:13px; color:var(--ink); }
.search-box input::placeholder { color:#889aaa; }
.search-icon { color:var(--green); }
.catalog-selects { align-items:center; justify-content:flex-end; flex:1 1 auto; gap:12px; }
.sort-box { color:var(--muted); }
.sort-box select { font-size:11px; color:#dbe5ed; min-height:36px; }
select option { background:#151d27; color:#e1eaf2; }
.grid-size-control { flex-basis:180px; border-color:#2e3d4c; padding-left:14px; }
.grid-size-heading { color:#b4c3d1; font-size:10px; }
.grid-size-heading output { color:#8eecc4; background:#19392d; }
.grid-size-control > span { font-size:8px; color:#92a5b5; }
.content-grid { display:block; padding:22px 0 28px; }
.section-heading { align-items:center; margin:0 0 10px; gap:14px; }
.section-heading h2 { margin:0; font-family:inherit; font-size:22px; font-weight:600; letter-spacing:-.035em; }
.section-heading h2 span { color:#8ea1b0; font-size:12px; }
.section-heading h2 #catalogTitle { font-size:inherit; color:var(--ink); }
.catalog-description { display:flex; flex-wrap:wrap; gap:4px 18px; margin-bottom:12px; }
.catalog-caption,.browse-order-note { margin:0; color:#9bafbe; font-size:10px; line-height:1.6; }
.catalog-caption { color:#d0dce5; }
.pagination { padding:0 0 14px; margin:0; border:0; gap:8px; }
.pagination .button { min-height:31px; font-size:10px; padding:0 11px; }
.pagination span,.page-picker { font-size:10px; }
.page-picker input { background:#111923; min-height:31px; height:31px; width:66px; padding:4px 8px; }
.movie-grid { gap:16px; }
.movie-card { border-color:#27313d; border-radius:12px; background:#141c25; transition:transform .15s ease,border-color .15s ease; }
.movie-card:hover { transform:translateY(-3px); border-color:#4b7e69; box-shadow:none; }
.movie-art { background:linear-gradient(140deg,var(--accent),#13232b); }
.movie-art-title { font-family:inherit; font-size:20px; font-weight:600; line-height:1.1; margin-bottom:24px; }
.movie-body { padding:12px; }
.movie-meta { font-size:9px; color:#a2b3c3; }
.media-badge { color:#8bc7ad; }
.movie-card h3 { font-family:inherit; font-size:14px; line-height:1.3; font-weight:600; color:#edf2f7; letter-spacing:-.02em; min-height:2.6em; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin:8px 0; }
.movie-note { display:none; }
.playback-note { color:#96aab9; font-size:9px; line-height:1.5; margin:0 0 12px; }
.movie-action { border-color:#344555; color:#bdcddd; font-size:10px; min-height:33px; }
.movie-action:hover { background:#223241; border-color:#668577; }
.movie-action.primary { color:#092418; background:#63d7a8; border-color:#63d7a8; }
.movie-action.primary:hover { background:#8cecc5; }
.card-status select { color:#9eb2c1; border-color:#2a3946; font-size:9px; padding-top:8px; }
.movie-art .favorite-button { color:#e8f5ef; border-color:#ffffff25; background:#10271fde; }
.movie-art .favorite-button.is-favorite { color:#ffd77e; background:#183e2e; }
.imdb-rating { background:#0c171ee8; font-size:10px; }
.imdb-rating small { color:#bed2df; font-size:8px; }
.library-details { margin-bottom:30px; border:1px solid var(--line); border-radius:12px; background:#111923; }
.library-details > summary { padding:16px 18px; color:#ccd9e5; font-size:12px; font-weight:600; cursor:pointer; }
.library-details > summary::marker { color:var(--green); }
.library-details > summary > span { float:right; color:#899fb0; font-size:10px; font-weight:400; }
.library-details-body { padding:18px; border-top:1px solid var(--line); }
.library-counts { display:grid; grid-template-columns:repeat(3,1fr); gap:15px; }
.library-counts span,.library-counts strong { display:block; }
.library-counts span { font-size:11px; color:#95acbd; }
.library-counts strong { font-size:23px; font-weight:550; margin-top:6px; }
.detail-summary { color:#9db4c4; font-size:11px; }
.direct-catalog-note { background:#14261f; border-color:#294b3c; padding:12px; }
.direct-catalog-note p { color:#abc6b9; font-size:11px; }
.artwork-caption,.ratings-caption,.ratings-attribution { margin:8px 0; color:#9eb2c1; font-size:10px; }
.artwork-caption a,.ratings-attribution a { color:#8bdabb; text-decoration:underline; text-underline-offset:3px; }
.source-panel { background:#0e151e; border:1px solid #273847; padding:18px; border-radius:10px; margin-top:18px; }
.source-panel #scanSummary { color:#a0b4c3; font-size:11px; }
.source-status-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 24px; }
.source-status-heading { font-size:12px; }
.source-status-heading > span { font-family:inherit; font-size:16px; }
.scan-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.scan-button { color:#0b2519; background:#85dab2; }
.footer { padding:16px 0 24px; color:#889cac; font-size:10px; }
.movie-dialog { color:var(--ink); background:#121b25; border:1px solid #344758; border-radius:17px; box-shadow:0 25px 90px #0008; }
.movie-dialog::backdrop { background:#02070dd9; backdrop-filter:blur(4px); }
.dialog-card { padding:26px; }
.dialog-card h2 { font-family:inherit; font-size:28px; line-height:1.2; font-weight:600; letter-spacing:-.035em; }
.dialog-close { color:#afc3d2; }
.dialog-close:hover { background:#243748; }
.field { color:#a8bdcc; font-size:11px; }
.field input,.field select,.field textarea { color:#e5edf4; background:#0b141e; border-color:#344859; }
.field input:focus,.field select:focus,.field textarea:focus { border-color:#6adcb0; box-shadow:0 0 0 3px #6adcb016; }
.back-to-catalog { margin:0 0 17px; color:#9be7c7; }
.player-dialog { width:min(1120px,96vw); }
.player-stage { background:#04080c; color:#b1c8d8; max-height:62vh; }
.player-progress,.episode-position { color:#9fb8c9; }
.player-status[data-state="loading"] { color:#90d6b6; }
.player-status[data-state="error"] { background:#39271e; color:#ffd4b6; }
.player-fallback { background:#152d23; color:#bae1cc; border-color:#3d6754; }
.player-details { margin:20px 0 24px; padding:20px; border:1px solid #304354; border-radius:12px; background:#0c151f; }
.player-details-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.player-details-heading h3 { margin:0; font-size:18px; line-height:1.4; font-weight:600; color:#e8f0f6; }
.player-detail-rating { flex-shrink:0; font-size:16px; font-weight:600; color:#f6d476; }
.player-detail-rating a { color:inherit; text-decoration:none; }
.player-detail-rating a:hover { text-decoration:underline; }
.player-detail-rating a span { display:inline-block; margin-right:6px; padding:2px 6px; border-radius:4px; background:#f0c951; color:#151711; font-size:12px; font-weight:800; }
.player-detail-note { margin:10px 0 0; color:#9db3c4; font-size:11px; line-height:1.6; overflow-wrap:anywhere; }
.player-detail-note:empty { display:none; }
.player-description { margin:16px 0 0; color:#39ff14; font-size:14px; line-height:1.8; overflow-wrap:anywhere; white-space:pre-line; }
.trailer-section { margin:20px 0 24px; padding:20px; border:1px solid #304354; border-radius:12px; background:#0c151f; }
.trailer-section h3 { margin:0; color:#e8f0f6; font-size:18px; font-weight:600; }
.trailer-badge { color:#9be7c7; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.trailer-privacy { margin:12px 0; color:#9db3c4; font-size:11px; line-height:1.7; }
.trailer-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:14px; }
.trailer-actions a { color:#9be7c7; font-size:12px; }
.trailer-stage { margin-top:18px; width:100%; min-height:200px; aspect-ratio:16/9; background:#000; border-radius:10px; overflow:hidden; }
.trailer-stage[hidden] { display:none; }
.trailer-stage iframe { display:block; width:100%; height:100%; min-height:200px; border:0; }
.direct-video-details { border-color:#304354; }
.check-candidate { border-color:#2f4354; }
.check-candidate span { color:#a1b8c8; }
.connection-message { color:#ffd1a8; background:#392c1f; }
.form-message { color:#ffd1a8; }
.toast { color:#cdf4e3; background:#1b4935; border:1px solid #4b7e66; }
:focus-visible { outline:2px solid #7fe7bd; outline-offset:3px; }
@media(max-width:900px) { .export-link { display:none; } .catalog-selects { justify-content:space-between; } .source-status-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
  .cinema-library .shell { width:calc(100% - 24px); }
  .topbar { min-height:62px; gap:12px; } .brand { font-size:19px; } .header-actions .button { min-height:32px; font-size:10px; }
  .library-intro { flex-direction:column; align-items:stretch; gap:16px; padding:22px 0 18px; } .library-intro h1 { font-size:30px; }
  .category-chips { display:flex; justify-content:stretch; } .category-chips .chip { flex:1; }
  .toolbar { padding:12px; gap:10px; } .search-box { flex-basis:auto; width:100%; }
  .catalog-selects { gap:10px; } .catalog-selects select { max-width:160px; }
  .grid-size-control { flex:1 1 100%; border:0; padding:5px 0 0; }
  .section-heading { gap:10px; margin-bottom:10px; } .section-heading h2 { font-size:22px; }
  #filterChips { width:100%; flex-wrap:nowrap; overflow-x:auto; padding-bottom:5px; } #filterChips .chip { flex-shrink:0; }
  .content-grid { padding-top:20px; } .movie-grid { gap:10px; } .movie-body { padding:10px; }
  .movie-card h3 { font-size:14px; } .movie-art { height:auto; } .library-details > summary > span { display:none; }
  .library-counts { grid-template-columns:1fr; } .source-status-list { grid-template-columns:1fr; }
  .dialog-card { padding:22px 17px; } .dialog-card h2 { font-size:24px; } .player-dialog .dialog-card { padding-top:22px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }

/* Dense poster views retain card opening without adding visible controls. */
.category-browser { flex:1 1 100%; display:flex; flex-wrap:wrap; align-items:end; gap:12px 30px; border-bottom:1px solid #2b3947; padding:2px 0 14px; }
.format-categories h2 { font-size:16px; margin:0 0 10px; letter-spacing:-.02em; }
#mediaTypeChips { display:flex; flex-wrap:wrap; gap:8px; }
.type-toggle { display:flex; align-items:center; gap:9px; padding:9px 15px; border:1px solid #3a4b59; border-radius:8px; color:#adbfcd; cursor:pointer; font-size:13px; }
.type-toggle:has(input:checked) { color:#9ff0cc; background:#18392c; border-color:#43886a; }
.type-toggle input { width:17px; height:17px; margin:0; accent-color:#62d9aa; cursor:pointer; }
.genre-field { flex:0 1 270px; display:flex; flex-direction:column; gap:8px; color:#bbcedb; font-size:12px; }
.genre-field select { width:100%; min-height:39px; padding:8px 11px; border:1px solid #3a5060; border-radius:8px; color:#e5f0f5; background:#0b151f; }
.genre-coverage { flex-basis:100%; margin:0; color:#91acbd; font-size:10px; line-height:1.5; }
@media(max-width:700px) { .category-browser { gap:14px; } .genre-field { flex-basis:100%; } .type-toggle { flex:1; } #mediaTypeChips { width:100%; } }
.cinema-library .movie-grid { gap:var(--grid-gap,16px); }
.movie-card { container-type:inline-size; }
@container (max-width:130px) {
  .movie-art { padding:6px; }
  .movie-art-glyph,.movie-art-index,.imdb-rating,.movie-meta,.playback-note,.card-status { display:none; }
  .movie-art-title { font-size:13px; line-height:1.15; margin:0 0 14px; max-width:100%; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .movie-art > .poster-state { left:5px; bottom:4px; font-size:8px; }
  .movie-art .favorite-button { top:4px; right:4px; width:22px; height:22px; font-size:13px; }
  .movie-body { padding:6px; }
  .movie-card h3 { font-size:11px; margin:2px 0 6px; overflow-wrap:anywhere; }
  .movie-actions { display:block; }
  .movie-action:not(.primary) { display:none; }
  .movie-action.primary { display:block; width:100%; min-width:0; min-height:26px; padding:0 3px; font-size:9px; border-radius:5px; }
}
@container (max-width:70px) {
  .movie-art { padding:4px; }
  .movie-art-title { font-size:9px; margin:0; }
  .movie-art > .poster-state { display:none; }
  .movie-art .favorite-button { top:2px; right:2px; width:18px; height:18px; font-size:11px; }
  .movie-body { padding:4px; }
  .movie-card h3 { font-size:9px; }
  .movie-action.primary { font-size:0; min-height:24px; }
  .movie-action.primary::after { content:'▶'; font-size:11px; }
}

/* The tile itself opens the title; independent controls stay above its hit area. */
.movie-card { position:relative; }
.card-open { position:absolute; inset:0; z-index:1; width:100%; height:100%; padding:0; border:0; border-radius:inherit; color:inherit; background:transparent; cursor:pointer; }
.card-open:hover { background:transparent; transform:none; }
.card-open:focus-visible { outline:none; box-shadow:inset 0 0 0 2px #7fe7bd; }
.movie-card:focus-within { border-color:#4b7e69; }
.movie-card .movie-art,.movie-card .movie-body { pointer-events:none; }
.movie-card .favorite-button,.movie-card .imdb-rating,.movie-card .card-status { pointer-events:auto; z-index:3; }
.movie-card .card-status { position:relative; }
.tile-preview { position:fixed; z-index:9; padding:16px 18px; border:1px solid #416455; border-radius:12px; color:#e7f2ec; background:#101e24f7; box-shadow:0 12px 38px #0008; overflow:auto; overflow-wrap:anywhere; font-size:12px; line-height:1.65; }
.tile-preview[hidden] { display:none; }
.tile-preview strong { display:block; font-size:14px; line-height:1.4; }
.tile-preview p { margin:10px 0; color:#39ff14; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden; }
.tile-preview small { display:block; color:#93b1a3; font-size:10px; }
.tile-preview small:empty { display:none; }
