.history-page { background: #fff7dc; color: #2d0d68; }
.history-page.dialog-open { overflow: hidden; }
.history-topbar { background: rgba(255, 247, 220, .94); }
.history-topbar .site-menu .active { color: var(--pink-dark); }
.history-topbar .nav-ticket { color: #fff; }

.history-hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 86px); display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 8vw, 8rem) clamp(1.2rem, 5vw, 5.5rem) 0; color: #fff; background: radial-gradient(circle at 72% 35%, #f2297f 0 7%, transparent 30%), radial-gradient(circle at 92% 15%, #123db4 0 6%, transparent 26%), linear-gradient(140deg, #14032d 0%, #331071 52%, #141966 100%); }
.history-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .18; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(to bottom, #000, transparent 92%); }
.history-hero-inner { width: min(1240px, 100%); margin: auto; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.history-copy { position: relative; z-index: 2; }
.history-copy .eyebrow { color: #ff91bf; }
.history-copy h1 { margin: 0 0 1.4rem; font-family: "Bowlby One SC", Impact, sans-serif; font-size: clamp(4rem, 10vw, 9rem); line-height: .82; letter-spacing: -.04em; text-transform: uppercase; color: #fff; text-shadow: 8px 10px 0 #16042e; }
.history-copy h1 span { color: #ff3a91; -webkit-text-stroke: 2px #fff; }
.history-copy > p:not(.eyebrow) { max-width: 650px; color: #ede6ff; font-size: clamp(1rem, 1.7vw, 1.25rem); line-height: 1.7; }
.history-scroll { display: inline-flex; align-items: center; gap: 1rem; margin-top: .8rem; border-radius: 999px; padding: .95rem 1.25rem; text-decoration: none; font-weight: 900; background: var(--yellow); color: #2d0d68; box-shadow: 7px 8px 0 #0b071c; transition: transform .2s ease, box-shadow .2s ease; }
.history-scroll:hover { transform: translate(-2px, -2px); box-shadow: 10px 11px 0 #0b071c; }
.history-scroll span { font-size: 1.3rem; }
.history-ten { position: relative; display: grid; place-items: center; min-height: 430px; }
.history-ten::before { content: ""; position: absolute; width: min(42vw, 470px); aspect-ratio: 1; border: 2px solid #ffffff5a; border-radius: 50%; box-shadow: 0 0 0 28px #ffffff0a, 0 0 0 85px #ffffff0a; }
.history-ten-number { position: relative; z-index: 1; font-family: "Bowlby One SC", Impact, sans-serif; font-size: clamp(9rem, 24vw, 20rem); line-height: .75; letter-spacing: -.12em; color: transparent; -webkit-text-stroke: 4px #fff; filter: drop-shadow(10px 14px 0 #15042e); }
.history-ten-label { position: absolute; z-index: 2; right: 5%; bottom: 15%; padding: 1rem 1.2rem; border: 2px solid #16042e; border-radius: 50%; text-transform: uppercase; text-align: center; font-family: "Bowlby One SC", Impact, sans-serif; font-size: 1.1rem; line-height: 1.05; color: #32105f; background: var(--yellow); transform: rotate(-8deg); box-shadow: 6px 7px 0 #16042e; }
.history-ten i { position: absolute; width: 13px; aspect-ratio: 1; background: var(--yellow); transform: rotate(45deg); animation: history-spark 2.6s ease-in-out infinite; }
.history-ten i:nth-of-type(1) { left: 9%; top: 20%; }
.history-ten i:nth-of-type(2) { right: 2%; top: 24%; animation-delay: -.4s; background: #ff76b2; }
.history-ten i:nth-of-type(3) { left: 3%; bottom: 17%; animation-delay: -1s; background: #2ad3df; }
.history-ten i:nth-of-type(4) { right: 18%; bottom: 6%; animation-delay: -1.5s; }
.history-ten i:nth-of-type(5) { left: 48%; top: 3%; animation-delay: -2s; background: #2ad3df; }
@keyframes history-spark { 0%, 100% { transform: rotate(45deg) scale(.7); opacity: .55; } 50% { transform: rotate(135deg) scale(1.35); opacity: 1; } }
.history-stats { width: min(1240px, 100%); margin: clamp(3rem, 7vw, 6rem) auto 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #ffffff42; }
.history-stats p { display: flex; align-items: center; gap: 1rem; margin: 0; padding: 1.2rem 1.5rem; border-right: 1px solid #ffffff42; }
.history-stats p:last-child { border-right: 0; }
.history-stats strong { font-family: "Bowlby One SC", Impact, sans-serif; font-size: clamp(1.7rem, 3vw, 2.5rem); color: #ff78b4; }
.history-stats span { max-width: 130px; font-size: .82rem; line-height: 1.2; text-transform: uppercase; letter-spacing: .09em; font-weight: 900; color: #ddd1f6; }

.lineups-section { position: relative; width: min(1400px, 100%); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 5vw, 5.5rem); }
.history-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 2.5rem; }
.history-heading h2, .history-next h2 { margin: 0; font-family: "Bowlby One SC", Impact, sans-serif; font-size: clamp(2.6rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.035em; text-transform: uppercase; }
.history-heading h2 span, .history-next h2 span { color: var(--pink); }
.history-heading > p { max-width: 390px; margin: 0 0 .35rem; line-height: 1.65; color: #695a87; }
.history-filters { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2.4rem; padding-bottom: 1.4rem; border-bottom: 1px solid #2d0d681f; }
.history-filters button { border: 1px solid #2d0d6828; border-radius: 999px; padding: .75rem 1.1rem; background: #fff; color: #2d0d68; font-weight: 900; cursor: pointer; transition: .2s ease; }
.history-filters button:hover, .history-filters button.active { border-color: #2d0d68; background: #2d0d68; color: #fff; transform: translateY(-2px); }
.history-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.1rem, 2vw, 2rem); }
.history-card { min-width: 0; overflow: hidden; border: 1px solid #2d0d681c; border-radius: 25px; background: #fffdf8; box-shadow: 0 18px 50px #2e0e6512; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, opacity .25s ease; }
.history-card:hover { transform: translateY(-9px); box-shadow: 0 27px 65px #2e0e6526; }
.history-card[hidden] { display: none; }
.history-poster { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; background: radial-gradient(circle at 50% 30%, #4e2872, #140421 75%); }
.history-poster::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px #ffffff19; }
.history-poster img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.history-card:hover .history-poster img { transform: scale(1.035); }
.history-poster span { position: absolute; left: .8rem; top: .8rem; border: 1px solid #fff8; border-radius: 999px; padding: .35rem .65rem; background: #140421c9; color: #fff; font-family: "Bowlby One SC", Impact, sans-serif; font-size: .78rem; backdrop-filter: blur(8px); }
.history-card-copy { min-height: 175px; display: flex; flex-direction: column; align-items: flex-start; padding: 1.2rem 1.2rem 1.35rem; }
.history-card-copy p { margin: 0 0 .35rem; color: var(--pink-dark); text-transform: uppercase; letter-spacing: .11em; font-size: .72rem; font-weight: 900; }
.history-card-copy h3 { margin: 0 0 1.1rem; font-size: 1.25rem; line-height: 1.08; }
.poster-trigger { margin-top: auto; border: 0; padding: 0; background: none; color: #2d0d68; font-weight: 900; font-size: .86rem; cursor: pointer; text-align: left; }
.poster-trigger:hover { color: var(--pink-dark); }
.poster-trigger:focus-visible { outline: 3px solid var(--pink); outline-offset: 5px; border-radius: 3px; }
.history-next { padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 5vw, 5.5rem); text-align: center; color: #fff; background: radial-gradient(circle at 50% 0, #6f258d, transparent 55%), #16052f; }
.history-next .eyebrow { color: #ff91bf; }
.history-next h2 span { color: #ff6eae; }
.history-next > p:not(.eyebrow) { max-width: 620px; margin: 1.5rem auto; color: #ddd1f6; font-size: 1.08rem; }
.history-next > a { display: inline-flex; gap: .8rem; align-items: center; margin-top: .4rem; padding: .95rem 1.2rem; border-radius: 999px; background: var(--yellow); color: #2d0d68; text-decoration: none; font-weight: 900; box-shadow: 7px 8px 0 #05020b; }

.poster-dialog { width: min(94vw, 1030px); max-width: none; height: min(94vh, 920px); max-height: none; overflow: hidden; padding: 0; border: 1px solid #ffffff38; border-radius: 25px; color: #fff; background: #140421; box-shadow: 0 35px 100px #000a; }
.poster-dialog::backdrop { background: #08010ee8; backdrop-filter: blur(10px); }
.poster-dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid #ffffff25; background: #1f073b; }
.poster-dialog-bar small { color: #ff93bf; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.poster-dialog-bar h2 { margin: .2rem 0 0; font-size: clamp(1.1rem, 2vw, 1.45rem); }
.poster-close { width: 44px; aspect-ratio: 1; flex-shrink: 0; border: 1px solid #ffffff52; border-radius: 50%; background: #ffffff12; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.poster-close:hover { background: #fff; color: #2d0d68; }
.poster-dialog-body { position: relative; height: calc(100% - 137px); display: grid; place-items: center; padding: 1rem 5.5rem; overflow: hidden; background: radial-gradient(circle at 50% 40%, #3d1b5d, #0b0313 75%); }
.poster-dialog-body img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 5px; box-shadow: 0 20px 60px #0008; }
.poster-arrow { position: absolute; z-index: 2; top: 50%; width: 48px; aspect-ratio: 1; transform: translateY(-50%); border: 1px solid #ffffff55; border-radius: 50%; color: #fff; background: #1f073bcc; font-size: 1.25rem; cursor: pointer; backdrop-filter: blur(7px); }
.poster-arrow:hover { color: #2d0d68; background: var(--yellow); }
.poster-prev { left: 1.2rem; }
.poster-next { right: 1.2rem; }
.poster-dialog-footer { min-height: 57px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1.2rem; border-top: 1px solid #ffffff25; background: #1f073b; color: #aa9abc; font-size: .82rem; }
.poster-dialog-footer kbd { padding: .2rem .35rem; border: 1px solid #ffffff45; border-radius: 5px; color: #fff; background: #ffffff12; }
.poster-dialog-footer a { color: #ff93bf; font-weight: 900; }

@media (max-width: 1050px) {
  .history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .history-topbar .site-menu { font-size: .84rem; }
}

@media (max-width: 820px) {
  .history-hero-inner { grid-template-columns: 1fr; }
  .history-copy { padding-top: 1rem; }
  .history-ten { min-height: 280px; }
  .history-ten::before { width: min(80vw, 370px); }
  .history-ten-number { font-size: clamp(10rem, 45vw, 16rem); }
  .history-stats { margin-top: 2.5rem; }
  .history-stats p { flex-direction: column; align-items: flex-start; gap: .2rem; padding: 1rem; }
  .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-heading { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
}

@media (max-width: 680px) {
  .history-topbar .site-menu { gap: .4rem; font-size: .92rem; }
  .history-topbar .nav-ticket { text-align: center; }
  .history-hero { min-height: auto; padding-top: 4rem; }
  .history-copy h1 { font-size: clamp(3.8rem, 19vw, 6rem); text-shadow: 5px 7px 0 #16042e; }
  .history-copy h1 span { -webkit-text-stroke-width: 1.5px; }
  .history-ten-label { right: 3%; }
  .history-stats { grid-template-columns: 1fr; }
  .history-stats p { flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid #ffffff42; }
  .history-stats p:last-child { border-bottom: 0; }
  .history-grid { grid-template-columns: 1fr; }
  .history-card { display: grid; grid-template-columns: minmax(125px, 42%) 1fr; border-radius: 19px; }
  .history-poster { aspect-ratio: 4 / 5; }
  .history-card-copy { min-height: 0; padding: 1rem; }
  .history-card-copy h3 { font-size: 1.05rem; }
  .history-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 1rem; }
  .history-filters button { flex: 0 0 auto; }
  .poster-dialog { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .poster-dialog-body { height: calc(100% - 144px); padding: .7rem; }
  .poster-arrow { top: auto; bottom: .9rem; transform: none; background: #1f073bed; }
  .poster-prev { left: calc(50% - 58px); }
  .poster-next { right: calc(50% - 58px); }
  .poster-dialog-footer { min-height: 64px; }
  .poster-dialog-footer span { display: none; }
  .poster-dialog-footer a { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .history-ten i { animation: none; }
}
