/* Timeline cards, logos, countdowns and animations use contentsList.css unchanged.
   This page only adds PEAR colors, period markers and its filter dialog. */
body#pageChronology:not(.no-scroll){overflow-x:clip;overflow-y:visible}
#pageChronology{
 --phase-body-font-color:var(--primary-text-color);
 --phase-line-color:#5b9dff80;--phase-line-thickness:.2rem;--phase-line-width:7vw;
 --phase-movie-background-color:var(--component-background-color);
 --phase-description-border-color:var(--component-border-color);
 --phase-icon-background-color:#29293f;--phase-icon-low-background-color:#29293fa6;--phase-icon-font-color:#fff;
 --side-background-color:#212134;--side-up-down-gradient-color-1:#212134;--side-up-down-gradient-color-2:#212134b3;--side-up-down-gradient-color-3:#21213400;
 color:var(--primary-text-color);padding-top:10rem;
}
#chronology-root{margin:0 auto;max-width:1700px;overflow-anchor:none}
#pageChronology .chronology-intro{text-align:center;max-width:760px;margin:20px auto 40px;padding-inline:20px}
#pageChronology .chronology-eyebrow{font-size:.7rem;letter-spacing:.15em;color:var(--link-color);margin:0 0 10px}
#pageChronology .chronology-intro h1{padding:0;margin:0 0 14px}
#pageChronology .chronology-intro>p:last-child{color:var(--secondary-text-color);font-size:.875rem;line-height:1.6}
#pageChronology .chronology-actions{grid-template-columns:1fr max-content;pointer-events:none}
#pageChronology .chronology-actions>*{pointer-events:auto}
#pageChronology .chronology-actions .actions-right{grid-column:2;grid-row:1;justify-self:end}
#pageChronology .chronology-jumps{display:flex;align-items:center;justify-self:center;gap:3px;margin-left:6rem;grid-column:1;grid-row:1;padding:4px;border-radius:12px;box-shadow:0 4px 16px #0002}
#pageChronology .chronology-jumps a{display:flex;align-items:center;justify-content:center;min-height:36px;padding:.6rem 1rem;border-radius:8px;font-size:.75rem;font-weight:400;color:var(--secondary-text-color);text-decoration:none;white-space:nowrap;transition:background .18s,color .18s,box-shadow .18s}
#pageChronology .chronology-jumps a:hover{background:#5b9dff10;color:var(--primary-text-color)}
#pageChronology .chronology-jumps a[aria-current="location"]{color:var(--link-color);background:#5b9dff18;box-shadow:inset 0 0 0 1px #5b9dff40;font-weight:500}
#pageChronology .chronology-jumps a:focus-visible{outline:2px solid var(--link-color);outline-offset:2px}
#pageChronology .chronology-filter-icon{position:relative;background-image:url('/assets/img/icon/filters.svg');background-size:55%}
#pageChronology .chronology-filter-icon.has-filters::after{content:'';position:absolute;right:4px;top:4px;width:6px;height:6px;background:var(--link-color);border-radius:50%}
#pageChronology .release-card{cursor:default}
#pageChronology .release-card .movie-block{color:inherit;text-decoration:none;cursor:pointer}
#pageChronology .release-card .movie-block:focus-visible{outline:2px solid var(--link-color);outline-offset:5px}
#pageChronology .release-card .movie-logo{display:flex;align-items:center;justify-content:center}
#pageChronology .release-card .movie-logo img{max-width:100%}
#pageChronology .release-card .description h3 a{color:inherit;text-decoration:none}
#pageChronology .release-card .description h3 a:hover{color:var(--link-color)}
#pageChronology .release-card .description-text:empty{display:none}
#pageChronology .phase .buttons{display:flex;align-items:center;gap:.5rem;min-height:1.25rem}
#pageChronology .phase.right .buttons{justify-content:flex-end}
#pageChronology .phase .buttons a{display:inline-flex;align-items:center;text-decoration:none;margin:0}
#pageChronology .phase .description .tags{flex-wrap:wrap;height:auto;overflow:visible;gap:.4rem;padding:0 1rem}
#pageChronology .phase .description .tags .tag{margin:0}
#pageChronology .phase .description .tags .tag-orphan{outline:1px dashed var(--component-border-color)}
/* Cinematic period headings; separators belong to the vertical timeline. */
#pageChronology .release-period>h2{display:flex;align-items:center;justify-content:center;gap:24px;width:min(620px,calc(100% - 32px));margin:22px auto 30px;padding:0;border:0;border-radius:0;background:none;color:var(--primary-text-color);font-size:1rem;font-weight:500;line-height:1.5;letter-spacing:.15em;text-align:center;text-transform:uppercase}
#pageChronology .release-period>h2>span{position:relative;max-width:100%;padding:15px 4px;text-wrap:balance}
#pageChronology .release-period[data-period^='year-']>h2{font-size:1.75rem;letter-spacing:.22em}
#pageChronology .release-period[data-period='today']>h2{position:absolute;width:1px;height:1px;padding:0;margin:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#pageChronology .chronology-now{display:flex;align-items:center;justify-content:center;gap:24px;padding:30px 16px;margin:24px 0}
#pageChronology .chronology-now>div{display:flex;flex-direction:column;align-items:center;gap:10px}
#pageChronology .chronology-now strong{padding:14px 4px;border:0;border-radius:0;background:none;color:var(--primary-text-color);font-size:1.25rem;font-weight:500;letter-spacing:.15em;text-transform:uppercase}
#pageChronology .chronology-now time{font-size:.875rem;color:var(--secondary-text-color)}
#pageChronology .chronology-direction,#pageChronology .chronology-message{font-size:.75rem;color:var(--secondary-text-color);text-align:center;margin:20px 0}
#pageChronology .chronology-message:empty{display:none}
#pageChronology .chronology-load{display:table;min-height:40px;padding:10px 18px;margin:24px auto;border:1px solid var(--component-border-color);border-radius:24px;background:var(--component-background-color);color:var(--link-color);font-size:.8rem;text-decoration:none}
#pageChronology .chronology-load[hidden]{display:none}
#pageChronology .chronology-load[aria-disabled=true]{opacity:.5;pointer-events:none}
#pageChronology .chronology-empty{padding:25px;text-align:center;color:var(--secondary-text-color);font-size:.875rem}
#pageChronology .chronology-undated{padding:30px 0;margin:30px 0;border-top:1px solid var(--component-border-color)}
#pageChronology .chronology-undated>summary{text-align:center;cursor:pointer;font-size:1.2rem;color:var(--link-color)}
#pageChronology .chronology-undated>summary>span{display:block;margin:10px 0 30px;font-size:.75rem;color:var(--secondary-text-color)}
#pageChronology .chronology-undated .release-period>h2{display:none}
#chronology-filter-dialog{position:fixed;inset:0;width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 40px);margin:auto;padding:24px;border:1px solid var(--component-border-color);border-radius:var(--component-border-radius);background:#212134;color:#fff;box-shadow:0 24px 90px #0008;overflow:auto}
#chronology-filter-dialog::backdrop{background:#10101bbf;backdrop-filter:blur(8px)}
#chronology-filter-dialog .chronology-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
#chronology-filter-dialog h2{margin:0;text-align:left;font-size:1.25rem}
#chronology-filter-dialog .chronology-filter-close{width:32px;height:32px;border:0;border-radius:50%;background:#ffffff0a;color:#fff;font-size:24px;cursor:pointer}
#chronology-filters{display:grid;gap:18px}
#chronology-filters label{display:grid;gap:8px;font-size:.8rem;color:var(--secondary-text-color)}
#chronology-filters input,#chronology-filters select{width:100%;min-width:0;min-height:44px;padding:10px 12px;font:inherit;font-size:.9rem;background:#181826;border:1px solid var(--component-border-color);border-radius:8px;color:#fff}
#chronology-filters button{min-height:44px;padding:12px 18px;border:0;border-radius:8px;background:var(--link-color);color:#10182a;font:inherit;font-size:.875rem;font-weight:500;cursor:pointer}
#chronology-filters>a{color:var(--link-color);text-align:center;font-size:.8rem}
/* Upcoming releases use the available width, without a horizontal scroll region. */
#pageHome .home-upcoming{margin:50px auto 30px;width:100%;padding-inline:20px}
#pageHome .home-upcoming-header{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}
#pageHome .home-upcoming-header h2{font-size:1.5rem;font-weight:500;margin:6px 0 0;color:#fff}
#pageHome .home-upcoming-header p{font-size:.7rem;letter-spacing:.12em;color:var(--link-color);margin:0}
#pageHome .home-upcoming-header>a{color:var(--link-color);font-size:.8rem;text-decoration:none;white-space:nowrap}
#pageHome .home-upcoming-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
#pageHome .upcoming-card{min-width:0;cursor:pointer}
#pageHome .upcoming-card .release-card-surface{height:100%;border:1px solid var(--component-border-color);border-radius:var(--component-border-radius);padding:20px;background:var(--component-background-color)}
#pageHome .upcoming-card .movie-block{display:flex;flex-direction:column-reverse;align-items:stretch;gap:14px}
#pageHome .upcoming-card .release-card-image{display:flex;align-items:center;justify-content:center;height:100px}
#pageHome .upcoming-card .release-card-image img{width:auto;max-width:100%;height:auto;max-height:100px;object-fit:contain}
#pageHome .upcoming-card .release-label{font-size:.75rem;color:var(--secondary-text-color)}
#pageHome .upcoming-card h3{font-size:1rem;font-weight:500;line-height:1.4;margin:12px 0}
#pageHome .upcoming-card h3 a{color:#fff;text-decoration:none}
#pageHome .upcoming-card .tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:14px}
#pageHome .upcoming-card .tag{display:inline-flex;align-items:center;padding:.1875rem .75rem;border-radius:3rem;font-size:.625rem;line-height:normal;background:#282834;color:var(--secondary-text-color)}
@media(max-width:800px){
 #pageChronology .chronology-actions{padding-inline:1rem;gap:.4rem}
 #pageChronology .chronology-jumps{margin:0;justify-self:start;gap:0}
 #pageChronology .chronology-jumps a{font-size:.65rem;padding:.7rem .45rem}
 #pageChronology .phase.right .buttons{justify-content:flex-start}
 #pageChronology .chronology-now{gap:12px;padding-inline:16px}
 #pageChronology .chronology-now strong{font-size:1.05rem;padding:12px 4px}
 #pageChronology .release-period>h2{font-size:.875rem;letter-spacing:.1em;gap:12px}
 #pageChronology .release-period[data-period^='year-']>h2{font-size:1.5rem}
 #pageHome .home-upcoming-header{align-items:start;flex-direction:column;gap:12px}
}
@media(prefers-reduced-motion:reduce){#pageChronology .phase .movie-block{transition:none;transform:none}}

@media(min-width:1800px){#pageHome .home-upcoming-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1000px){#pageHome .home-upcoming-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#pageHome .home-upcoming-grid{grid-template-columns:1fr}}

#pageChronology #future .gotoPast img{display:block;width:100%;height:100%}
#pageChronology #future .gotoPast:focus-visible{outline:2px solid var(--link-color);outline-offset:8px;border-radius:4px}

#pageChronology #pageScroll[hidden]{display:none}

#pageChronology .chronology-now>span{display:none}

/* Reserve the logo row before lazy images load, so the initial scroll stays aligned. */
@media(max-width:800px){#pageChronology .phase .content-block .movie-block .movie-logo{min-height:7rem}}
