/* ═══════════════════════════════════════
   Public website — event details & sessions
   base.css is loaded by the website layout (do not import here)
═══════════════════════════════════════ */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 74svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

/* Event details: the complete cover stays visible inside an ambient backdrop. */
.hero.hero--event {
  display: block;
  min-height: 0;
  height: calc(var(--navbar-height) + clamp(320px, 56.25vw, calc(100svh - var(--navbar-height))));
  padding-bottom: 0;
  isolation: isolate;
  background: #050505;
}

.hero.hero--event::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: min(120px, 28%);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, var(--color-bg, #0b0b0b) 0%, transparent 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../../assets/tickets/hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
  transition: transform 12s ease;
}

.hero__picture {
  position: absolute;
  inset-inline: 0;
  top: var(--navbar-height);
  bottom: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.hero__picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__picture--backdrop img {
  object-fit: cover;
  filter: blur(24px) saturate(1.08) brightness(0.58);
  transform: scale(1.08);
}

.hero__picture--foreground {
  z-index: 1;
}

.hero__image {
  object-fit: contain;
  object-position: center;
  filter: saturate(1.03) contrast(1.02);
}

/* Readability scrim — darkens the lower half of the cover so the title
   stays legible on any image, in both light and dark themes. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0.12) 65%,
    rgba(0, 0, 0, 0) 100%
  );
}

/* Soft vignette for the cover photo when title is no longer overlaid. */
.hero.hero--event .hero__overlay {
  top: var(--navbar-height);
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.22) 40%,
    rgba(0, 0, 0, 0.08) 70%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero__overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero.hero--event .hero__overlay-bottom {
  z-index: 3;
  height: 38%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Keep the scrim dark on the event hero even in the light theme so the
   white vignette used elsewhere does not wash out the title. */
[data-theme="light"] .hero__overlay-bottom {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
}

[data-theme="light"] .hero.hero--event .hero__overlay-bottom {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
}

[data-theme="light"] .hero.hero--event::after {
  background: linear-gradient(to top, var(--color-bg, #f5f5f5) 0%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: start;
  gap: 10px;
}

.hero__content--badge-only {
  justify-content: flex-start;
  padding-top: clamp(1rem, 3vw, 1.75rem);
  padding-bottom: 0;
  min-height: 0;
}

.hero__content h1 {
  margin-top: 100px;
  max-width: 100%;
  font-size: clamp(2rem, 5vw, 3.125rem);
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (min-width: 901px) {
  .hero__content h1 {
    max-width: calc(100% - 340px);
  }
}

.hero__content p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .hero__content h1 {
  color: #fff;
}

[data-theme="light"] .hero__content p {
  color: rgba(255, 255, 255, 0.92);
}

/* ── Layout ── */
.event-details--without-cover {
  padding-top: calc(var(--navbar-height) + clamp(1.25rem, 3vw, 2rem));
}

.event-details--without-cover .event-sidebar {
  margin-top: 0;
}

.event-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 96%;
  margin-inline: auto;
  align-items: start;
}

/* Pull content slightly into the cover for a tighter handoff. */
.hero.hero--event + .event-layout {
  margin-top: -0.5rem;
  position: relative;
  z-index: 4;
}

/* ── Sessions panel ── */
.sessions-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sessions-panel__intro {
  margin-bottom: 0.85rem;
}

.sessions-panel__event-title {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  overflow-wrap: anywhere;
}

.event-category-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.event-category-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--color-primary) 35%, transparent);
  border-radius: 999px;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.sessions-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  position: relative;
  z-index: 40;
}

.sessions-panel__title {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 600;
  color: var(--color-text-secondary);
  line-height: 1.25;
}

.sessions-panel__timezone-hint {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-text-muted, var(--color-text-secondary));
}

.loc-dropdown {
  position: relative;
  z-index: 1;
}

.loc-dropdown.is-open {
  z-index: 50;
}

.loc-dropdown__panel {
  position: absolute;
  top: calc(100% + 8px);
  /* Keep panel inside the viewport in both LTR (trigger on right)
     and RTL (trigger on left) — physical `right: 0` pushed RTL panels off-screen. */
  inset-inline-end: 0;
  inset-inline-start: auto;
  min-width: min(260px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  background: var(--color-surface-dropdown);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  z-index: 300;
  display: none;
  box-shadow: var(--shadow-dropdown);
  animation: locPanelIn 160ms ease;
}

.loc-dropdown.is-open .loc-dropdown__panel {
  display: block;
}

.loc-dropdown.is-open .sessions-panel__location {
  color: var(--color-primary);
}

.loc-dropdown.is-open .sessions-panel__location-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

@keyframes locPanelIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loc-dropdown__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.375rem;
}

.loc-dropdown__search svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.loc-dropdown__search input {
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--color-text-primary);
  width: 100%;
}

.loc-dropdown__search input::placeholder {
  color: var(--color-text-muted);
}

.loc-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
}

.loc-dropdown__option:hover {
  background: var(--color-hover-subtle);
  color: var(--color-text-primary);
}

.loc-dropdown__option.is-selected {
  color: var(--color-primary);
  background: var(--color-primary-bg);
}

.loc-dropdown__option svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0;
}

.loc-dropdown__option.is-selected svg {
  opacity: 1;
}

.loc-dropdown__option-pin {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.loc-dropdown__option.is-selected .loc-dropdown__option-pin {
  color: var(--color-primary);
}

.sessions-panel__location {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--transition);
}

.sessions-panel__location:hover {
  color: var(--color-primary);
}

.sessions-panel__location svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.sessions-panel__location-chevron {
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.sessions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.session-card {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  min-height: 160px;
}

.session-card:hover {
  border-color: rgba(212, 146, 26, 0.2);
  box-shadow: 0 4px 20px #bd6f0946;
}

.session-card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.135rem;
  position: relative;
}

.session-card__top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 2px;
  background: repeating-linear-gradient(
      90deg,
      var(--color-border-dashed) 0 10px,
      transparent 10px 20px
    )
    bottom / 100% 2px no-repeat;
  pointer-events: none;
}

.session-card__pin {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.session-card__name {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.session-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.session-card__icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  transition:
    color var(--transition),
    background var(--transition);
}

.session-card__icon-btn:hover {
  color: var(--color-text-primary);
  background: var(--color-hover-medium);
}

.session-card__icon-btn svg {
  width: 17px;
  height: 17px;
}

.session-card__ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1a1205;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 146, 26, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  animation: ticketBtnPulse 2.4s ease-in-out infinite;
}

.session-card__ticket-btn:hover {
  color: #1a1205;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(212, 146, 26, 0.55);
  animation-play-state: paused;
}

.session-card__ticket-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(212, 146, 26, 0.4);
}

@keyframes ticketBtnPulse {
  0%,
  100% {
    box-shadow: 0 6px 18px rgba(212, 146, 26, 0.4);
  }
  50% {
    box-shadow: 0 6px 26px rgba(212, 146, 26, 0.7);
  }
}

@media (prefers-reduced-motion: reduce) {
  .session-card__ticket-btn {
    animation: none;
  }
}

.session-card__ticket-btn.is-disabled,
.session-card__ticket-btn:disabled {
  color: var(--color-text-muted, #9ca3af);
  border: 1.5px solid var(--color-border-dashed, #4b5563);
  background: transparent;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: none;
  animation: none;
  opacity: 0.7;
}

.session-card__note {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 1.125rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
}

.session-card__note svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.session-card__note--muted {
  color: var(--color-text-muted, #9ca3af);
}

.session-card__divider {
  margin-inline: 1.125rem;
  border: none;
  border-top: 1px dashed var(--color-border-dashed);
}

.session-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.125rem;
  flex-wrap: wrap;
}

.session-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.session-card__meta-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.session-card__meta-row svg {
  width: 14px;
  height: 14px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.session-card__badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.session-card__badges .badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-dashed);
  color: var(--color-text-secondary);
  background: transparent;
  white-space: nowrap;
}

.badge--popular,
.badge--selling {
  color: var(--color-primary);
  border-color: var(--color-primary-bg);
  background-color: var(--color-bg-elevated);
}

.session-card__offer {
  margin-top: 0.65rem;
}

/* Event details sidebar (not dashboard nav) */
.event-sidebar {
  margin-top: -160px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 10;
}

.sidebar-poster {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: transparent;
  border: none;
  overflow: visible;
  aspect-ratio: auto;
}

.sidebar-poster__media {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 3 / 4;
  background: var(--color-bg-card);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.sidebar-poster__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 42%
  );
}

.sidebar-poster:hover .sidebar-poster__media {
  transform: translateY(-3px);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.14);
}

.sidebar-poster__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 4.5s ease;
}

.sidebar-poster:hover .sidebar-poster__media img {
  transform: scale(1.04);
}

.sidebar-poster__caption {
  padding-inline: 0.15rem;
}

.sidebar-poster__name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
  overflow-wrap: anywhere;
  text-align: center;
}

[data-theme="light"] .sidebar-poster__media {
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.1),
    0 1px 4px rgba(15, 23, 42, 0.06);
  border-color: var(--color-border);
}

[data-theme="light"] .sidebar-poster:hover .sidebar-poster__media {
  box-shadow:
    0 16px 32px rgba(15, 23, 42, 0.14),
    0 2px 8px rgba(15, 23, 42, 0.08);
}

.sidebar-map {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4/3;
  /* Match the dark map so anti-aliased corner pixels never flash the page bg */
  background-color: #0b0b0b;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Keep the pin above the label gradient without stretching the card */
  padding-bottom: 2.75rem;
  isolation: isolate;
}

.sidebar-map::before {
  content: "";
  position: absolute;
  /* Slight overflow so cover fills past border-radius antialiasing */
  inset: -3px;
  z-index: 0;
  background-image: url(../../assets/tickets/map.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

.sidebar-map:hover::before {
  filter: grayscale(0.15) brightness(0.92);
}

.sidebar-map__pin {
  position: relative;
  z-index: 3;
}

.sidebar-map__pin-outer {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 146, 26, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mapPulse 2s ease-in-out infinite;
}

.sidebar-map__pin-inner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-map__pin-inner svg {
  width: 14px;
  height: 14px;
  color: #000;
}

@keyframes mapPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 146, 26, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(212, 146, 26, 0);
  }
}

.sidebar-map__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  width: 100%;
  padding: 1.75rem 0.875rem 0.75rem;
  text-align: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  overflow-wrap: anywhere;
  z-index: 2;
}

@media (max-width: 900px) {
  .event-layout {
    display: flex;
    flex-direction: column;
    margin-top: 0.75rem;
  }

  /* Wide desktop-cover fallbacks retain their natural 16:9 proportions. */
  .hero.hero--event {
    height: calc(var(--navbar-height) + 56.25vw);
  }

  /* Dedicated mobile covers use the full recommended 4:5 frame. */
  .hero.hero--event.hero--event-mobile-cover {
    height: calc(var(--navbar-height) + 125vw);
  }

  .hero__picture--backdrop img {
    filter: blur(18px) saturate(1.06) brightness(0.55);
  }

  .hero.hero--event .hero__overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.08) 55%,
      transparent 100%
    );
  }

  .hero.hero--event .hero__overlay-bottom {
    height: 28%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.22) 0%, transparent 100%);
  }

  [data-theme="light"] .hero.hero--event .hero__overlay-bottom {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
  }

  .hero.hero--event::after {
    height: min(56px, 24%);
  }

  .hero.hero--event + .event-layout {
    margin-top: 0.75rem;
  }

  .hero__content h1 {
    margin-top: 40px;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    line-height: 1.12;
  }

  .sessions-panel__event-title {
    font-size: clamp(1.5rem, 6vw, 1.9rem);
  }

  /* Flatten sidebar children so mobile order can be:
     poster → sessions (Book Ticket) → map */
  .event-sidebar {
    display: contents;
  }

  .sidebar-poster {
    order: 1;
    width: 100%;
    margin-bottom: 0.5rem;
    align-items: stretch;
    padding-inline: 0;
  }

  .sidebar-poster__media {
    /* Full-width poster banner on mobile (true 3:4 frame, cover crop). */
    width: 100%;
    aspect-ratio: 3 / 4;
    min-height: 0;
    max-height: none;
    margin-inline: 0;
    border-radius: var(--radius-card);
  }

  .sidebar-poster__media img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center center;
  }

  .sidebar-poster__caption {
    text-align: center;
  }

  .sessions-panel {
    order: 2;
    width: 100%;
  }

  .sidebar-map {
    order: 3;
    width: 100%;
    /* Mobile stack: don't let the map dominate the Filters / Map viewport */
    aspect-ratio: 16 / 9;
    max-height: min(240px, 42vw);
  }
}

@media (max-width: 560px) {
  .event-sidebar {
    width: 100%;
  }

  .event-sidebar img {
    width: 100%;
  }

  /* Wrap the card header so the booking button drops to its own full-width
     row instead of being clipped off-screen. */
  .session-card__top {
    flex-wrap: wrap;
    padding: 1.125rem 1rem;
  }

  .session-card__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .session-card__actions {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
  }

  .session-card__actions .session-card__ticket-btn {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }

  .session-card__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .sessions-panel__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Saved (favourited) state for session action buttons */
.session-card__icon-btn.is-favourited {
  color: var(--color-primary);
}

.session-card__icon-btn.is-favourited svg {
  fill: var(--color-primary);
}

/* Empty state when no sessions match the selected time filter */
.sessions-empty {
  list-style: none;
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

.sessions-about {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.sessions-about__title {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.sessions-about__text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.sessions-about__text > *:first-child {
  margin-top: 0;
}

.sessions-about__text > *:last-child {
  margin-bottom: 0;
}

.sessions-about__text p {
  margin: 0 0 0.75em;
}

.sessions-about__text p:last-child {
  margin-bottom: 0;
}

/* Preserve Quill size styles on the public event page (incl. legacy keyword sizes) */
.sessions-about__text span[style="font-size: small;"],
.sessions-about__text span[style="font-size: small"] {
  font-size: 0.75em !important;
}

.sessions-about__text span[style="font-size: large;"],
.sessions-about__text span[style="font-size: large"] {
  font-size: 1.5em !important;
}

.sessions-about__text span[style="font-size: huge;"],
.sessions-about__text span[style="font-size: huge"] {
  font-size: 2.5em !important;
}

.sessions-about__text img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.sessions-about__text .ql-video,
.sessions-about__text iframe.ql-video,
.sessions-about__text iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 220px;
  border: 0;
  border-radius: 12px;
  margin: 0.85rem 0;
  background: #000;
}

/* ═══════════════════════════════════════
   Event sections — artists & sponsors
═══════════════════════════════════════ */

.event-section-header {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.event-section-header--center {
  text-align: center;
}

.event-section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.625rem;
}

.event-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.625rem;
}

.event-section-sub {
  max-width: 560px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.event-section-header--center .event-section-sub {
  margin-inline: auto;
}

.event-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.event-section-divider span {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 146, 26, 0.55), transparent);
}

.event-section-divider svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  animation: sponsorStarPulse 2.4s ease-in-out infinite;
}

@keyframes sponsorStarPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Artists ── */
.event-artists {
  max-width: 96%;
  margin: clamp(2.5rem, 6vw, 4rem) auto;
  padding-inline: clamp(0.25rem, 2vw, 1rem);
}

.event-artists__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.artist-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(26, 26, 26, 0.95) 0%, rgba(12, 12, 12, 0.98) 100%);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-card) + 4px);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  animation: artistCardIn 0.7s ease both;
  animation-delay: var(--artist-delay, 0s);
}

@keyframes artistCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.artist-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 146, 26, 0.45);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(212, 146, 26, 0.08);
}

.artist-card__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  /* Light pad so black / dark logos stay visible in dark mode */
  background: #f4f2ed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artist-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 1rem;
  transition: transform 0.6s ease;
}

.artist-card:hover .artist-card__img {
  transform: scale(1.04);
}

.artist-card__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(15, 15, 15, 0.06);
  pointer-events: none;
}

.artist-card__glow {
  display: none;
}

.artist-card__body {
  padding: 1.125rem 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.artist-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.2;
}

.artist-card__role {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.artist-card__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.625rem;
}

.artist-card__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-secondary);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.artist-card__social-link:hover {
  color: var(--color-primary);
  border-color: rgba(212, 146, 26, 0.45);
  background: rgba(212, 146, 26, 0.08);
  transform: translateY(-2px);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-icon__fallback {
  font-size: 0.75rem;
  font-weight: 700;
}

/* ── Sponsors marquee ── */
.event-sponsors {
  position: relative;
  max-width: 100%;
  margin: clamp(2.5rem, 6vw, 5rem) auto clamp(3rem, 7vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  overflow: hidden;
}

.event-sponsors__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 146, 26, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(18, 18, 18, 0.35) 0%, transparent 35%, transparent 65%, rgba(18, 18, 18, 0.35) 100%);
}

.event-sponsors__orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: sponsorOrbFloat 10s ease-in-out infinite;
}

.event-sponsors__orb--left {
  top: 10%;
  left: -4%;
  background: rgba(212, 146, 26, 0.35);
}

.event-sponsors__orb--right {
  right: -4%;
  bottom: 8%;
  background: rgba(120, 80, 20, 0.25);
  animation-delay: -4s;
}

@keyframes sponsorOrbFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

.event-sponsors .event-section-header,
.sponsors-stage {
  position: relative;
  z-index: 1;
}

.sponsors-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 0.5rem;
}

.sponsors-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--color-bg) 0%,
    color-mix(in srgb, var(--color-bg) 82%, transparent) 7%,
    transparent 20%,
    transparent 80%,
    color-mix(in srgb, var(--color-bg) 82%, transparent) 93%,
    var(--color-bg) 100%
  );
}

.sponsors-track {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

/* When a row scrolls (or is manually scrollable) align it to the start so the
   marquee reads naturally instead of being centered. */
.sponsors-track.is-marquee,
.sponsors-track.is-scrollable {
  justify-content: flex-start;
}

.sponsors-track.is-scrollable {
  overflow-x: auto;
}

.sponsors-track--offset {
  margin-top: -0.25rem;
}

.sponsors-belt {
  display: flex;
  gap: 1rem;
  width: max-content;
  flex: 0 0 auto;
  padding-block: 0.25rem;
}

/* Only the marquee variant scrolls; it relies on JS-cloned cards for a seamless
   loop. Static rows simply stay centered within their track. */
.sponsors-belt.is-marquee.sponsors-belt--forward {
  animation: sponsorScrollForward 34s linear infinite;
}

.sponsors-belt.is-marquee.sponsors-belt--reverse {
  animation: sponsorScrollReverse 42s linear infinite;
}

.sponsors-stage:hover .sponsors-belt.is-marquee {
  animation-play-state: paused;
}

@keyframes sponsorScrollForward {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes sponsorScrollReverse {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

[dir="rtl"] .sponsors-belt.is-marquee.sponsors-belt--forward {
  animation-name: sponsorScrollReverse;
}

[dir="rtl"] .sponsors-belt.is-marquee.sponsors-belt--reverse {
  animation-name: sponsorScrollForward;
}

.sponsor-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 280px;
  max-width: 340px;
  padding: 0.875rem 1rem 0.875rem 0.875rem;
  border-radius: calc(var(--radius-card) + 2px);
  border: 1px solid rgba(212, 146, 26, 0.14);
  background: linear-gradient(135deg, rgba(28, 28, 28, 0.92) 0%, rgba(14, 14, 14, 0.96) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.sponsor-card--linked {
  cursor: pointer;
}

.sponsor-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(212, 146, 26, 0.42);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(212, 146, 26, 0.08);
}

.sponsor-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.07) 48%,
    transparent 66%
  );
  transform: translateX(-120%);
  animation: sponsorShine 5.5s ease-in-out infinite;
  pointer-events: none;
}

.sponsor-card:nth-child(2n) .sponsor-card__shine {
  animation-delay: 1.4s;
}

.sponsor-card:nth-child(3n) .sponsor-card__shine {
  animation-delay: 2.8s;
}

@keyframes sponsorShine {
  0%,
  72% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.sponsor-card__pulse {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(212, 146, 26, 0.2);
  opacity: 0;
  animation: sponsorPulse 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sponsorPulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.02);
  }
}

.sponsor-card__logo-wrap {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.sponsor-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.4s ease;
}

.sponsor-card:hover .sponsor-card__logo {
  transform: scale(1.06);
}

.sponsor-card__monogram {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.sponsor-card__meta {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.sponsor-card__name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sponsor-card__desc {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sponsor-card__cta {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: rgba(212, 146, 26, 0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.sponsor-card__cta svg {
  width: 14px;
  height: 14px;
}

.sponsor-card:hover .sponsor-card__cta {
  transform: rotate(-8deg) scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .artist-card,
  .sponsors-belt,
  .sponsor-card__shine,
  .sponsor-card__pulse,
  .event-sponsors__orb,
  .event-section-divider svg {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 768px) {
  .event-artists__grid {
    grid-template-columns: 1fr;
  }

  .sponsor-card {
    min-width: 250px;
  }
}

/* ═══════════════════════════════════════
   Hero "event ended" indicator
═══════════════════════════════════════ */

.hero__ended-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(15, 15, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero__ended-badge svg {
  width: 15px;
  height: 15px;
}

/* ═══════════════════════════════════════
   Event recap gallery
═══════════════════════════════════════ */

.event-gallery {
  position: relative;
  max-width: 96%;
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.event-gallery [x-cloak] {
  display: none !important;
}

.event-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.event-gallery__item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-surface, rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(212, 146, 26, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.event-gallery__item:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 146, 26, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.event-gallery__trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.event-gallery__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-gallery__item--video .event-gallery__media {
  background: #000;
}

.event-gallery__play {
  position: absolute;
  inset-block-start: 0.75rem;
  inset-inline-end: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: rgba(212, 146, 26, 0.85);
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.event-gallery__play svg {
  width: 16px;
  height: 16px;
  margin-inline-start: 2px;
}

.event-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.88);
}

.event-gallery-lightbox__stage {
  position: relative;
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.event-gallery-lightbox__media {
  max-width: 96vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  background: #000;
}

.event-gallery-lightbox__counter {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.event-gallery-lightbox__close,
.event-gallery-lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}

.event-gallery-lightbox__close:hover,
.event-gallery-lightbox__nav:hover {
  background: rgba(212, 146, 26, 0.85);
}

.event-gallery-lightbox__close {
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  z-index: 2;
}

.event-gallery-lightbox__close svg,
.event-gallery-lightbox__nav svg {
  width: 22px;
  height: 22px;
}

.event-gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  z-index: 2;
}

.event-gallery-lightbox__nav--prev {
  inset-inline-start: 1rem;
}

.event-gallery-lightbox__nav--next {
  inset-inline-end: 1rem;
}

@media (max-width: 768px) {
  .event-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .event-gallery-lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .event-gallery-lightbox__nav--prev {
    inset-inline-start: 0.5rem;
  }

  .event-gallery-lightbox__nav--next {
    inset-inline-end: 0.5rem;
  }
}
