.page-timeline { background: #07080b; }
.page-timeline h1, .page-timeline h2, .page-timeline h3 {
  font-family: Cinzel, serif;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: .02em;
}
.page-timeline h1 { font-size: clamp(2.1rem, 6vw, 4.1rem); line-height: 1.02; margin: .15rem 0 .4rem; }
.page-timeline h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .2rem 0 .7rem; }
.banner { margin: 0; padding: .8rem 1.2rem; text-align: center; }
.banner.ok { background: rgba(198, 161, 90, .16); color: var(--gold-bright); }
.banner.err { background: rgba(140, 36, 40, .35); color: #f4ecdc; }
.hp { position: absolute; left: -9999px; }
.section-copy, .tl-hint, .signed-in { color: var(--muted); }
.hero-actions, .row-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }

.tl-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.tl-bg, .tl-vignette, .tl-fog, #embers { position: absolute; inset: 0; }
.tl-bg { background: url("/assets/img/timeline/timeline-hero.webp") center 62% / cover no-repeat; }
.tl-vignette {
  background:
    linear-gradient(90deg, rgba(7, 8, 11, .9) 0%, rgba(7, 8, 11, .55) 46%, rgba(7, 8, 11, .28) 100%),
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .72) 100%);
}
.tl-fog {
  background: linear-gradient(180deg, transparent 50%, rgba(230, 211, 162, .05), transparent);
  animation: fogDrift 28s ease-in-out infinite;
  pointer-events: none;
}
#embers { width: 100%; height: 100%; pointer-events: none; }
@keyframes fogDrift {
  0%, 100% { opacity: .35; }
  50% { opacity: .75; }
}
.tl-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0 2.2rem;
}
.tl-hero h1 { line-height: 1.12; }
.tl-hero h1 .title-season {
  display: block;
  white-space: nowrap;
}
.tl-hero .lede { max-width: 38rem; }

.tl-stage, .tl-band { width: min(1180px, calc(100% - 1.2rem)); margin: 0 auto 2rem; }
.tl-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.2rem; }
#tl-search, .stack-form input, .stack-form textarea, .stack-form select {
  background: #100e0c;
  color: var(--parchment);
  border: 1px solid rgba(198, 161, 90, .45);
  border-radius: 2px;
  padding: .65rem .75rem;
  font: inherit;
}
#tl-search {
  min-width: min(100%, 16rem);
  flex: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23c6a15a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: .75rem center;
  padding-left: 2.3rem;
}
.era-bar, .cat-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.cat-row { margin: .7rem 0; }
.chip {
  border: 1px solid rgba(198, 161, 90, .55);
  background: transparent;
  color: var(--gold-bright);
  border-radius: 999px;
  padding: .35rem .7rem;
  font-family: Cinzel, serif;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.chip.is-on, .chip[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.zoom-label {
  font-family: Cinzel, serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: .72rem;
  margin: .2rem 0 .4rem;
}
.chart-frame {
  background: #07080b;
  border: 1px solid rgba(198, 161, 90, .4);
  border-radius: 12px;
  overflow: hidden;
  touch-action: none;
}
#tl-svg { width: 100%; height: 420px; display: block; cursor: grab; }
#tl-svg:active { cursor: grabbing; }
#tl-mini { width: 100%; height: 64px; display: block; margin-top: .45rem; cursor: pointer; }
.tl-point, .tl-cluster { cursor: pointer; }
.tl-label { font-family: Inter, sans-serif; font-size: 11px; fill: #f4ecdc; }
.seed-mark { font-family: Cinzel, serif; font-size: 8px; letter-spacing: .08em; fill: #c6a15a; }
#tl-svg text.axis { fill: #cbbfa8; font-size: 11px; font-family: Inter, sans-serif; }
.event-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
.event-list button {
  width: 100%;
  text-align: left;
  background: rgba(16, 14, 12, .9);
  color: var(--parchment);
  border: 1px solid rgba(198, 161, 90, .35);
  border-radius: 8px;
  padding: .7rem .8rem;
  cursor: pointer;
}
.event-list strong { display: block; color: var(--gold-bright); font-family: Cinzel, serif; }
.event-list span { color: var(--muted); font-size: .88rem; }
.badge-row { font-size: 9px; fill: #1a140c; font-family: Inter, sans-serif; }

.tl-panel {
  position: fixed;
  z-index: 50;
  top: var(--header);
  right: 0;
  width: min(420px, 100%);
  height: calc(100% - var(--header));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #100e0c;
  color: var(--parchment);
  border-left: 1px solid rgba(198, 161, 90, .72);
  box-shadow:
    inset 1px 0 0 rgba(230, 211, 162, .18),
    -8px 0 28px rgba(198, 161, 90, .16),
    -18px 0 50px rgba(0, 0, 0, .45);
  padding: 0;
}
.tl-panel .ls-modal-card { flex: 1; min-height: 0; overflow: auto; }
.tl-panel[hidden], .lightbox[hidden], #join-forms[hidden], .stack-form[hidden] { display: none !important; }
.tl-panel h2 { font-size: 1.45rem; margin-top: .3rem; }
.tl-x {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(198, 161, 90, .45);
  background: rgba(12, 13, 17, .92);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  float: right;
}
.seed-flag {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: Cinzel, serif;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .15rem .4rem;
}
.alt-list, .media-list, .film-links { list-style: none; padding: 0; margin: .4rem 0 1rem; }
.alt-list li, .media-card {
  border-top: 1px solid rgba(198, 161, 90, .28);
  padding: .55rem 0;
}
.media-card iframe, .media-card img, .media-card embed { width: 100%; max-height: 220px; background: #07080b; border: 0; }
.media-card a { color: var(--gold-bright); }
.stack-form { display: grid; gap: .4rem; margin-top: .8rem; }
.stack-form textarea { min-height: 6rem; }
.year-row { display: grid; gap: .4rem; }
.year-row label { display: grid; gap: .2rem; color: var(--gold); font-size: .82rem; }
.ornament { display: flex; align-items: center; gap: .8rem; width: min(1180px, calc(100% - 1.2rem)); margin: .2rem auto 1rem; color: var(--gold); }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(198, 161, 90, .75), transparent); }
.queue-link { width: min(1180px, calc(100% - 1.2rem)); margin: 0 auto 2rem; }
.queue-link a { color: var(--gold); }
.signout { margin-top: .6rem; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, .88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.lightbox img { max-width: min(100%, 1100px); max-height: 80vh; }
.lightbox p { color: var(--parchment); max-width: 40rem; }
.review { margin-top: 1.4rem; }
.review article { border-top: 1px solid rgba(198, 161, 90, .3); padding: .8rem 0; }
.admin-main { padding-top: 1.4rem; }

@media (min-width: 720px) {
  .year-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .tl-hero { min-height: auto; }
  .tl-bg { background-position: 40% center; }
  #tl-svg { height: 340px; }
  .tl-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 78vh;
    border-left: 0;
    border-top: 1px solid rgba(198, 161, 90, .72);
    border-radius: 16px 16px 0 0;
    box-shadow:
      inset 0 1px 0 rgba(230, 211, 162, .18),
      0 -8px 28px rgba(198, 161, 90, .16),
      0 -16px 40px rgba(0, 0, 0, .5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-fog { animation: none; }
}
