/* Shared cinema palette and navigation */
:root { --cinema-red:#ed3541; --cinema-black:#0c0d10; --cinema-surface:#17191e; --cinema-edge:#34363d; --cinema-muted:#b8bac3; --max:1280px; }
body { --display:"Barlow Condensed","Arial Narrow",Impact,Arial,sans-serif; --label:"Space Mono",ui-monospace,monospace; }
body:not([data-theme="light"]) { background:#0d0e11; }
body:before { display:none; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid #ffb45e !important; outline-offset:3px; }
.site-topbar { background:#101115 !important; box-shadow:none; backdrop-filter:none; }
.site-topbar .topbar-inner { max-width:1344px; padding:0 clamp(16px,4vw,54px); min-height:70px; gap:32px; flex-wrap:nowrap; }
.topbar-brand { gap:10px; }
.site-topbar .brand-mark { flex:none; width:45px; height:30px; border-radius:2px; clip-path:none; box-shadow:none; background:#d92a36; font:900 1.18rem/1 Arial,sans-serif; font-style:italic; letter-spacing:-.12em; padding-right:3px; }
.wordmark { font:800 1.24rem/1 var(--display); letter-spacing:.045em; color:#f7f6f3; white-space:nowrap; }
.site-topbar .topbar-nav { gap:clamp(10px,2vw,28px); justify-content:flex-end; flex-wrap:nowrap; }
.site-topbar .topbar-nav a,.more-nav summary,.site-topbar .theme-toggle,.site-topbar .nav-toggle { color:#c4c6cb; font:600 .9rem/1.2 Inter,Arial,sans-serif; letter-spacing:0; text-transform:none; }
.site-topbar .topbar-nav a { flex:0 0 auto; padding:12px 1px; min-height:44px; border-radius:0; }
.site-topbar .topbar-nav a.active { color:#fff; background:transparent; box-shadow:inset 0 -2px var(--cinema-red); }
.site-topbar .topbar-nav a:hover { color:#fff; background:transparent; }
.site-topbar .theme-toggle,.site-topbar .nav-toggle { border:1px solid #44464d; border-radius:6px !important; background:transparent; min-height:38px; padding:7px 14px; width:auto; }
.more-nav { position:relative; }
.more-nav summary { padding:12px 2px; cursor:pointer; list-style:none; }
.more-nav summary::-webkit-details-marker { display:none; }
.more-nav summary::after { content:""; display:inline-block; width:6px; height:6px; margin:0 2px 3px 9px; border:solid currentColor; border-width:0 1.5px 1.5px 0; transform:rotate(45deg); }
.more-nav[open] summary::after { transform:rotate(225deg); margin-bottom:0; }
.more-nav>div { position:absolute; z-index:10; top:100%; right:-12px; width:210px; border:1px solid #3a3c42; border-radius:8px; background:#191a1e; padding:7px; box-shadow:0 16px 40px #0007; }
.site-topbar .more-nav a { display:flex; justify-content:flex-start; min-height:38px; width:100%; padding:8px 11px; border-radius:4px; }
.site-topbar .more-nav a:hover { background:#292b31; }
body[data-theme="light"] .site-topbar,body[data-theme="light"] .site-topbar .topbar-nav,body[data-theme="light"] .more-nav>div { background:#fff !important; border-color:#d6d8de; }
body[data-theme="light"] .site-topbar :is(.wordmark,summary,.nav-toggle,.theme-toggle,a),body[data-theme="light"] .site-topbar .topbar-nav a.active { color:#1d2029; }
body[data-theme="light"] .site-topbar .more-nav a:hover { background:#f2f2f5; }
@media(min-width:801px){ .site-topbar .nav-toggle{display:none;} .site-topbar .topbar-nav { position:static; display:flex; align-items:center; flex-direction:row; width:auto; box-shadow:none; padding:0; } }
@media(max-width:800px){
  .site-topbar .topbar-inner { min-height:60px; justify-content:space-between; }
  .site-topbar .nav-toggle { display:block; }
  .site-topbar .topbar-nav { display:none; position:absolute; top:100%; left:0; right:0; padding:12px 18px 18px; border-bottom:1px solid #373940; max-height:75dvh; overflow:auto; background:#141519; }
  .site-topbar .topbar-nav.nav-open { display:grid; grid-template-columns:1fr 1fr; gap:0 18px; align-items:start; }
  .site-topbar .topbar-nav a { display:flex; width:100%; justify-content:flex-start; padding:12px 3px; }
  .site-topbar .more-nav { grid-column:1/-1; }
  .more-nav>div { position:static; width:100%; display:grid; grid-template-columns:1fr 1fr; box-shadow:none; }
  .site-topbar .theme-toggle { margin-top:10px; justify-self:start; }
}
/* Home. The image is a crop for the spotlight; each catalogue poster displays in full. */
.cinema-wrap { width:min(1250px,calc(100% - clamp(32px,8vw,108px))); margin-inline:auto; }
.cinema-hero { isolation:isolate; position:relative; overflow:hidden; color:white; background:#0c0d10; border-bottom:1px solid #383237; }
.feature-frame { position:absolute; z-index:-1; inset:0 0 0 33%; }
.feature-frame img { width:100%; height:100%; object-fit:cover; object-position:50% 11%; display:block; }
.feature-frame::after { content:""; position:absolute; inset:-1px; background:linear-gradient(90deg,#0c0d10 1%,rgba(12,13,16,.81) 10%,rgba(12,13,16,.13) 48%,transparent 75%),linear-gradient(to top,rgba(11,12,15,.91),transparent 28%); }
.hero-layer { min-height:clamp(390px,33vw,480px); display:flex; align-items:center; justify-content:space-between; gap:20px; position:relative; }
.cinema-copy { padding:44px 0 50px; max-width:61%; }
.film-label { margin:0 0 12px; color:#c8c7ca; display:flex; align-items:center; gap:10px; font:700 .78rem/1.2 var(--label); text-transform:uppercase; letter-spacing:.12em; }
.film-label::before { content:""; width:27px; height:3px; background:var(--cinema-red); }
.cinema-copy h1 { color:#faf9f6; font:900 clamp(4.3rem,7.4vw,7.1rem)/.88 var(--display); letter-spacing:-.035em; margin:17px 0 18px; }
.cinema-copy h1>span:first-child { color:#ff4650; }
.title-period,.tracker-heading span { color:#f3424b; }
.hero-deck { color:#dddde0; font:400 1.02rem/1.55 Inter,Arial,sans-serif; max-width:415px; margin:0 0 24px; }
.cinema-actions { display:flex; gap:10px; flex-wrap:wrap; }
.cinema-button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 19px; border-radius:5px; font:700 .94rem/1.25 Inter,Arial,sans-serif; text-decoration:none; }
.cinema-button.primary { background:#c92432; color:white; border:1px solid #df3741; }
.cinema-button.primary:hover { background:#b21c28; }
.cinema-button.secondary { border:1px solid #64616b; background:#1a191dbd; color:white; }
.cinema-button.secondary:hover { border-color:white; }
.feature-controls { align-self:flex-end; margin:0 0 20px auto; min-width:145px; color:white; text-align:right; }
.feature-controls a,.feature-controls strong { color:#fff; display:block; }
.feature-controls small { display:block; color:#dfdbe0; letter-spacing:.11em; text-transform:uppercase; font:600 .75rem/1.5 var(--label); }
.feature-controls strong { font:750 1.2rem/1.25 var(--display); }
.feature-controls strong span { color:#c3c1c7; }
.feature-tabs { display:flex; justify-content:flex-end; gap:4px; }
.feature-tabs button { width:30px; height:26px; padding:0; border:0; background:transparent; position:relative; }
.feature-tabs button::before { content:""; display:block; height:3px; background:#b9b4b567; border-radius:3px; }
.feature-tabs button[aria-pressed="true"]::before { background:#fc4b54; }
.cinema-shelf { padding:36px 0 30px; }
.shelf-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:18px; }
.shelf-head h2,.tracker-heading { margin:0; font:800 clamp(2.15rem,3.3vw,3.2rem)/.98 var(--display); letter-spacing:-.025em; }
.shelf-head .film-label { color:#b0afb5; margin:0 0 7px; }
.text-link { color:inherit; border-bottom:1px solid #d94951; padding-bottom:3px; font:650 .92rem/1.4 Inter,Arial,sans-serif; }
.poster-shelf { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:clamp(10px,1.5vw,23px); }
.shelf-film { color:inherit; min-width:0; }
.shelf-film strong { display:block; font:700 1.18rem/1.17 var(--display); margin:10px 0 4px; }
.shelf-film small,.shelf-pager { font:500 .8rem/1.4 var(--label); color:#b2b3ba; }
.shelf-art { position:relative; overflow:hidden; background:#15171b; aspect-ratio:2/3; border:1px solid #34363c; border-radius:5px; }
.shelf-art img { width:100%; height:100%; object-fit:contain; display:block; }
.shelf-film:hover .shelf-art { border-color:#ef5c66; }
.shelf-art span { position:absolute; top:8px; left:8px; padding:3px 6px; color:#fff; background:#0b0c10e6; font:700 .74rem/1.3 var(--label); border-radius:3px; }
.shelf-pager { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:17px; }
.shelf-pager div { display:flex; gap:6px; }
.shelf-pager button { background:transparent; color:inherit; padding:6px 11px; border:1px solid currentColor; border-radius:4px; min-height:36px; }
.shelf-pager button:disabled { opacity:.42; }
body[data-page="home"] .section-head h2 { font:800 clamp(1.85rem,3.3vw,3rem)/1.04 var(--display); text-transform:none; }
body[data-page="home"] .dashboard-strip { padding-top:12px; }
body[data-page="home"] :is(.panel,.stat-card,.feature-card,.universe-tile) { border-radius:7px !important; box-shadow:none !important; }
body[data-theme="light"] :is(.shelf-pager,.shelf-film small,.shelf-head .film-label) { color:#51535c; }
@media(max-width:800px){
  .poster-shelf { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 12px; }
  .cinema-copy h1 { font-size:clamp(3.4rem,8.8vw,4.5rem); }
  .feature-frame { left:25%; }
  .feature-controls { min-width:0; max-width:36%; }
}
@media(max-width:540px){
  .cinema-wrap { width:calc(100% - 32px); }
  .hero-layer { min-height:420px; display:block; }
  .cinema-copy { padding:136px 0 28px; max-width:100%; }
  .cinema-copy h1 { font-size:clamp(3.15rem,12.5vw,4.35rem); margin:12px 0; }
  .feature-frame { inset:0 0 12% 0; }
  .feature-frame img { object-position:50% 17%; }
  .feature-frame:after { background:linear-gradient(0deg,#0c0d10 4%,rgba(12,13,16,.83) 33%,rgba(12,13,16,.09) 79%),linear-gradient(90deg,#0c0d1070,transparent); }
  .hero-deck { max-width:345px; font-size:1rem; }
  .feature-controls { position:absolute; top:10px; right:0; max-width:55%; padding:5px 8px 0; border-radius:4px; background:#08090d9e; }
  .feature-controls small { display:none; }
  .feature-controls strong { font-size:.98rem; }
  .cinema-button { padding-inline:13px; }
  .cinema-shelf { padding-top:24px; }
  .shelf-head { gap:10px; }
  .shelf-head h2 { font-size:2.05rem; }
  .text-link { font-size:.84rem; }
  .shelf-film strong { font-size:1.04rem; }
  .shelf-art span { top:4px; left:4px; }
}
/* Tracker and shared title artwork */
body[data-page="tracker"] .hero { background:linear-gradient(110deg,#131316,#24151a 63%,#101116); padding:0; }
body[data-page="tracker"] .hero::before,body[data-page="tracker"] .hero::after { display:none; }
.hero .hero-inner { padding:23px clamp(16px,4vw,54px) 18px; }
.hero .hero-grid { padding:0; gap:clamp(18px,4vw,50px); }
.tracker-heading { color:white; font-size:clamp(3rem,5.1vw,5rem); }
.hero .hero-sub { font-size:1rem; margin:12px 0 17px; }
.hero .progress-panel,.hero .upnext { border-radius:7px !important; box-shadow:none !important; }
.hero .upnext-wrap { max-width:none; margin-top:17px; }
.hero .upnext-heading { display:none; }
.hero .upnext { gap:12px; padding:7px 12px; align-items:center; }
.upnext .upnext-body { flex:1; }
.upnext .upnext-tag { display:none; }
.upnext .upnext-actions { flex-direction:row; width:auto; }
.upnext .upnext-actions button { width:auto; }
.hero .upnext-meta,.hero .upnext-label,.hero .progress-copy,.hero .stat-cell span { font-size:.76rem; }
body[data-page="tracker"] .controls { position:relative; top:auto; z-index:5; background:#131419; box-shadow:none; }
.controls .controls-inner { padding:14px clamp(16px,4vw,54px) 0; }
.controls .filter-row { gap:13px; }
.controls .filter-block { min-width:0; }
.controls .pill { font-size:.78rem; padding:5px 10px; min-height:32px; }
.controls .pill-n { display:none; }
.controls .tabs-row { padding-bottom:0; }
.controls .tab { font:700 .875rem Inter,Arial,sans-serif; }
#timelineView,#queueView,#watchedView { scroll-margin-top:85px; }
body[data-page="tracker"] main.content-shell { padding-top:26px; }
body[data-page="tracker"] .section-heading { margin:0 0 14px; }
body[data-page="tracker"] .section-heading h2 { font:800 clamp(2rem,4vw,3.4rem)/1 var(--display); text-transform:none; letter-spacing:-.025em; }
body[data-page="tracker"] .section-kicker { color:#dbd9df; font-size:.78rem; }
body[data-page="tracker"] .section-desc { font-size:1rem; }
body[data-page="tracker"] .result-count,body[data-page="tracker"] .tool-btn { font-size:.8rem; }
#timelineList { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:20px 16px; }
#timelineList .year-divider { display:none; }
#timelineList .today-marker { grid-column:1/-1; }
#timelineList .card { display:flex; flex-direction:column; min-width:0; margin:0; border:1px solid #33353b !important; border-radius:7px !important; background:#181a1f !important; color:#f7f6f2; box-shadow:none !important; }
#timelineList .card.hidden { display:none; }
#timelineList .card:hover { border-color:#686970 !important; box-shadow:none !important; }
#timelineList .card-tag { display:none; }
#timelineList .card-body { display:flex; flex-direction:column; align-items:stretch; min-width:0; gap:0; padding:0 !important; }
#timelineList .card-poster { position:relative; flex:0 0 auto; width:100%; aspect-ratio:2/3; border:0; border-radius:0; box-shadow:none; background:#111216; }
#timelineList .poster-image { object-fit:contain; }
#timelineList .card-copy { padding:12px 13px 9px; }
#timelineList .card-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px; font:500 .73rem/1.3 var(--label); color:#d3d2d9; }
#timelineList .issue { position:absolute; top:8px; left:8px; z-index:1; background:#101115eb; border:0; color:#fff; padding:4px 7px; border-radius:3px; font:700 .78rem/1.1 var(--label); }
#timelineList :is(.card-date,.card-type) { color:#cccdd3; font-size:inherit; }
#timelineList .card-title { color:#fbfaf8; margin:7px 0 5px; font:750 1.32rem/1.12 var(--display) !important; text-transform:none; }
#timelineList .card-year { color:#c0bfc7; font:500 .88rem/1.25 Inter,Arial,sans-serif; }
#timelineList .card-uni { color:#c1bfc7 !important; font-size:.8rem; text-transform:none; letter-spacing:0; }
#timelineList .card-note { color:#c5c5cd; font-size:.81rem; }
#timelineList .card-links { gap:10px; }
#timelineList .card-link { font:550 .8rem/1.4 Inter,Arial,sans-serif !important; color:#dedbe0 !important; text-decoration:underline; }
#timelineList .card-actions { display:flex; flex-direction:column; gap:6px; align-items:stretch; margin:auto 0 0; padding:6px 12px 12px; background:none !important; border:none !important; backdrop-filter:none; }
body[data-page="tracker"] #timelineList .act-btn { flex:none; min-height:35px; border-radius:4px; background:#282a31 !important; color:#f5f4f2 !important; border:1px solid #464851; font:650 .85rem/1.25 Inter,Arial,sans-serif; text-transform:none; letter-spacing:0; }
body[data-page="tracker"] #timelineList .queue-btn { background:transparent !important; }
body[data-page="tracker"] #timelineList .act-btn[aria-pressed="true"] { background:#70303a !important; border-color:#c75562; }
body[data-page="tracker"] #timelineList .act-btn:hover:not(:disabled) { border-color:#e7747b; }
body[data-page="tracker"] #timelineList .act-btn:disabled { opacity:.54; }
body.compact-mode #timelineList { display:block; }
body.compact-mode #timelineList .year-divider { display:flex; }
body.compact-mode #timelineList .card { display:grid; grid-template-columns:minmax(0,1fr) 160px !important; align-items:center; margin:0 0 9px; }
body.compact-mode #timelineList .card.hidden { display:none; }
body.compact-mode #timelineList .card-body { grid-column:1; grid-row:1; flex-direction:row; align-items:center; gap:6px; }
body.compact-mode #timelineList .card-poster { width:64px; flex:none; }
body.compact-mode #timelineList .issue { position:static; }
body.compact-mode #timelineList .card-actions { grid-column:2 !important; grid-row:1 !important; padding:7px 9px; margin:0; }
body.compact-mode #timelineList .card-links { display:none; }
.list-thumbnail { display:block; width:42px; height:63px; flex:none; border-radius:3px; object-fit:contain; background:#0e1014; }
.title-with-art { display:flex; align-items:center; gap:12px; min-width:0; }
.title-with-art>div { min-width:0; overflow-wrap:anywhere; }
.appearance-row { gap:12px; }
.watched-card .shelf-thumbnail { width:100%; aspect-ratio:2/3; height:auto; object-fit:contain; border-radius:4px; background:#121318; }
.queue-item .list-thumbnail { align-self:center; }
.queue-list .queue-item { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.queue-item .queue-info { flex:1; min-width:120px; }
.movie-pick-card .movie-pick-art { padding:0; min-height:0; background:#101114; }
.movie-pick-art img { width:100%; height:100%; object-fit:contain; }
.character-card-art:has(img) .character-avatar[hidden] { display:none !important; }
.recent-thumbnail { float:right; width:55px; height:82px; margin:0 0 8px 9px; border-radius:3px; object-fit:contain; }
@media(max-width:1030px){ #timelineList { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:810px){
  #timelineList { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 11px; }
  .hero .hero-grid { grid-template-columns:1fr 1fr; }
  .hero .progress-panel { padding:14px; }
  .appearance-row { flex-wrap:wrap; }
}
@media(max-width:620px){
  #timelineList { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 9px; }
  #timelineList .card-copy { padding:10px 9px 5px; }
  #timelineList .card-actions { padding:6px 8px 9px; }
  #timelineList .card-title { font-size:1.15rem !important; }
  .hero .hero-grid { grid-template-columns:1fr; gap:15px; }
  .hero .hero-inner { padding:20px 16px 15px; }
  .hero .hero-sub { margin:8px 0 12px; }
  .hero .upnext { display:flex; flex-wrap:wrap; }
  .hero .upnext-actions { flex:1 1 100%; }
  .hero .upnext-actions button { flex:1; }
  .hero .progress-main { padding:9px 0; }
  .hero .progress-number strong { font-size:2rem; }
  .hero .panel-heading { padding-bottom:7px; }
  .controls .filter-row { flex-wrap:wrap; }
  .controls .pills { flex-wrap:wrap; }
  body.compact-mode #timelineList .card { grid-template-columns:minmax(0,1fr) !important; }
  body.compact-mode #timelineList .card-actions { grid-row:2 !important; grid-column:1 !important; flex-direction:row; }
  body.compact-mode #timelineList .act-btn { width:auto; flex:1; }
  .queue-item .queue-actions { width:100%; }
  .movie-pick-art img { max-height:250px; }
  .appearance-row>div:last-child { flex-wrap:wrap; }
}
@media(prefers-reduced-motion:reduce){ *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; } }
.feature-tabs button::before { width:100%; flex:1; }
@media(max-width:620px){
  .controls .tabs-row,.controls .tabs { width:100%; min-width:0; }
  .controls .tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; }
  .controls .tab { min-width:0; padding:10px 3px; gap:4px; font-size:.8rem; }
  .controls .tab-icon { display:none; }
}
body[data-theme="light"][data-page="tracker"] { background:#f4f4f5 !important; color:#202126 !important; }
body[data-theme="light"][data-page="tracker"] .content-shell :is(h2,.section-kicker,.section-desc,.hide-watched,.result-count,.year-num,.status-note) { color:#32343a; }
body[data-theme="light"] #timelineList .card { background:#fff !important; border-color:#c6c7cc !important; }
body[data-theme="light"] #timelineList :is(.card-title,.card-year,.card-type,.card-date,.card-meta,.card-note,.card-links a,.card-uni) { color:#363840 !important; }
body[data-theme="light"] #timelineList .card-actions .act-btn { color:#292a30 !important; background:#f0f0f2 !important; border-color:#b8bac0; }
body[data-theme="light"] #timelineList .card-actions .act-btn[aria-pressed="true"] { background:#f9d7db !important; border-color:#b84b58; }
