/* Christmas Party Nights 2026: poster-video hero (homepage, Casino Royale page, venue pages)
   and the 2026 calendar/card helpers. Site colours (#FF0000 red, black, white), Roboto + Poppins. */
.cpn-hero {
  --red: #ff0000;
  --red-deep: #b30000;
  --ink: #0b0b0b;
  position: relative;
  background: var(--ink);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  isolation: isolate;
}
.cpn-hero *, .cpn-hero *::before, .cpn-hero *::after { box-sizing: border-box; }

/* red band, as on the old slider */
.cpn-hero__band {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  text-align: center;
  font-family: 'Roboto', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(13px, 1.9vw, 24px);
  line-height: 1.2;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-wrap: balance;
}

.cpn-hero__slide[hidden] { display: none; }
.cpn-hero__slide { position: relative; }

/* stage: the poster video, with a blurred copy of its own poster filling the sides */
.cpn-hero__stage {
  position: relative;
  padding: clamp(14px, 2.6vw, 34px) 16px 0;
}
.cpn-hero__ambient {
  position: absolute;
  inset: -40px;
  z-index: -1;
  background-size: cover;
  background-position: center;
  filter: blur(38px) saturate(1.25) brightness(.45);
  transform: scale(1.1);
}
.cpn-hero__frame {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 50px rgba(0, 0, 0, .6), 0 4px 12px rgba(0, 0, 0, .5);
}
.cpn-hero__frame video,
.cpn-hero__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cpn-hero .cpn-hero__toggle {
  position: absolute;
  padding: 0;
  margin: 0;
  line-height: 0;
  min-height: 0;
  box-shadow: none;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}
.cpn-hero .cpn-hero__toggle:hover, .cpn-hero .cpn-hero__toggle:focus { background: var(--red); color: #fff; }
.cpn-hero .cpn-hero__toggle svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cpn-hero__icon-play path { fill: currentColor; stroke: none; }
.cpn-hero__toggle[aria-pressed="true"] .cpn-hero__icon-play { display: none; }
.cpn-hero__toggle[aria-pressed="false"] .cpn-hero__icon-pause { display: none; }

/* info row under the video */
.cpn-hero__info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px 16px 22px;
}
.cpn-hero__title {
  margin: 0;
  color: #fff;
  font-family: 'Roboto', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}
.cpn-hero__sub {
  margin: 6px 0 0;
  color: #f2d6d6;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.45;
}
.cpn-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cpn-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border: 2px solid var(--red);
  border-radius: 5px;
  background: var(--red);
  color: #fff !important;
  font-family: 'Roboto', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 6px 14px rgba(255, 0, 0, .25);
  transition: background-color .2s, color .2s, transform .2s;
}
.cpn-hero__btn:hover { background: #fff; color: var(--red) !important; }
.cpn-hero__btn:active { transform: translateY(1px); }
.cpn-hero__btn--ghost { background: transparent; box-shadow: none; }
.cpn-hero__btn--ghost:hover { background: var(--red); color: #fff !important; }
.cpn-hero__btn:focus-visible,
.cpn-hero__tab:focus-visible,
.cpn-hero__toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* tabs: one per show, with a fill line that runs for the length of the clip */
.cpn-hero__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px 26px;
  gap: 8px;
}
.cpn-hero__tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 56px;
  padding: 10px 14px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 5px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .2s, border-color .2s;
}
.cpn-hero__tab:hover { background: rgba(255, 255, 255, .1); }
.cpn-hero__tab[aria-selected="true"] { border-color: var(--red); background: rgba(255, 0, 0, .14); }
.cpn-hero__tab-city { font-weight: 700; font-size: 15px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.cpn-hero__tab-when { font-size: 12.5px; line-height: 1.3; color: #e8c9c9; }
.cpn-hero__tab-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
}
.cpn-hero__tab[aria-selected="true"] .cpn-hero__tab-fill { transform: scaleX(var(--p, 0)); }

/* single-show version (venue pages) has no tabs */
.cpn-hero--single .cpn-hero__info { padding-bottom: 28px; }

@media (min-width: 768px) {
  /* keep the buttons and tabs above the fold on short laptop screens */
  .cpn-hero__frame { width: min(100%, 1040px, calc((100vh - 340px) * 16 / 9)); min-width: 560px; }
  .cpn-hero--single .cpn-hero__frame { width: min(100%, 1040px, calc((100vh - 250px) * 16 / 9)); }
}

@media (max-width: 767px) {
  .cpn-hero__band { letter-spacing: .14em; padding: 11px 16px; }
  .cpn-hero__frame { border-radius: 4px; }
  .cpn-hero__info { flex-direction: column; align-items: stretch; text-align: center; padding: 16px 16px 18px; }
  .cpn-hero__ctas { flex-direction: column; }
  .cpn-hero__btn { width: 100%; }
  .cpn-hero__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 20px; }
  .cpn-hero__tab { min-height: 52px; padding: 8px 12px 10px; }
  .cpn-hero .cpn-hero__toggle { width: 40px; height: 40px; right: 8px; bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cpn-hero__btn, .cpn-hero__tab, .cpn-hero__toggle { transition: none; }
}


/* calendars on the event cards (Shared Parties, Casino Royale): same size as the 2025 artwork they replace */
.elementor-widget-image img.cpn-cal--card { width: 82px !important; max-width: 100%; height: auto; }

/* venue pages: Louis's Canva clip under the venue details */
.cpn-clip { max-width: 960px; margin: 40px auto 10px; padding: 0 16px; }
.cpn-clip video { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 6px; background: #000; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
