:root {
  --genre-stripe-w: 6px;
  --c-white: #ffffff;
  --c-slate-50: #f8fafc;
  --c-slate-100: #f1f5f9;
  --c-slate-200: #e2e8f0;
  --c-slate-300: #e5e7eb;
  --c-slate-600: #475569;
  --c-slate-700: #334155;
  --c-gray-900: #111827;
}

.event-page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #020617;
}

body.event-overlay-active {
  overflow: hidden;
}

.event-page-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 10% 10%,
      rgba(79, 70, 229, 0.25),
      transparent 55%
    ),
    radial-gradient(circle at 90% 20%, rgba(6, 182, 212, 0.2), transparent 60%),
    linear-gradient(135deg, #0f172a, #0b1120 45%, #020617 100%);
  pointer-events: none;
}

.event-page-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

#event-ssr-root.hidden {
  display: none !important;
}


.ssr-modal-shell {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  inset: 0;
  position: fixed;
  z-index: 50;
  align-items: center;
  display: none;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
}

.modal-backdrop.show {
  display: flex;
}

.ssr-modal-shell .modal-backdrop {
  background: #959697;
}

.event-spa-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
}

.event-spa-overlay.is-visible {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.event-spa-overlay iframe {
  border: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
}

.modal-panel {
  position: relative;
  overflow: hidden;
  padding-left: calc(1.5rem + var(--genre-stripe-w, 6px)) !important;
  border-left: none !important;
}

.modal-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 5;
  width: var(--genre-stripe-w, 6px) !important;
  background: var(--genre-accent, #6366f1);
  pointer-events: none;
  content: "";
}

.chip {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  max-width: 100%;
  overflow: hidden;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--c-slate-200, #e2e8f0);
  border-radius: 9999px;
  background: var(--c-white, #fff);
  font-size: 0.75rem;
  line-height: 1rem;
  vertical-align: top;
}

.chip > span {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.chip {
  text-decoration: none;
}

a.chip:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.link-chip {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  margin: 0.15rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--c-slate-100, #f1f5f9);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.link-chip:hover {
  background: var(--c-slate-200, #e2e8f0);
}

.dj-heading > a {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 0.35rem;
  text-decoration: none;
}

.dj-heading > a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 0.375rem;
}

.event-description .event-description-link {
  color: #0369a1;
  text-decoration: underline;
}

.event-description .event-description-link:hover,
.event-description .event-description-link:focus-visible {
  color: #0c4a6e;
}

.chip-btn {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--c-slate-200, #e2e8f0);
  border-radius: 9999px;
  background-color: var(--c-white, #fff);
  font-size: 0.8rem;
  cursor: pointer;
}

.chip-btn.active {
  border-color: var(--c-gray-900, #111827);
  background: var(--c-gray-900, #111827);
  color: var(--c-white, #fff);
}

.section-title {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  color: var(--c-slate-600, #475569);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dj-heading {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  overflow: hidden;
  width: 100%;
  margin-bottom: 0.25rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dj-heading > a {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

h1.dj-heading {
  margin: 0 0 0.25rem;
  font-size: inherit;
}

.dj-heading > span,
.dj-heading > a > span {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.img-hover-wrap {
  position: relative;
  display: inline-block;
  overflow: visible !important;
}

.img-hover-wrap .img-zoom {
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 1000;
  display: none;
  width: auto !important;
  height: auto !important;
  max-width: 12.5rem !important;
  max-height: 12.5rem !important;
  object-fit: contain !important;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.img-hover-wrap .img-zoom:not(img) {
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
}

.img-hover-wrap:hover .img-zoom {
  display: block !important;
}

.img-hover-wrap[data-img-global-active="1"] .img-zoom {
  display: none !important;
}

.img-thumb,
.img-thumb-lg,
.img-thumb-list {
  display: inline-block;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
  background: var(--c-slate-300, #e5e7eb);
}

.img-thumb {
  max-height: 42px;
  max-width: 24px;
  border-radius: 4px;
}

.img-thumb-lg {
  max-height: 96px;
  max-width: 54px;
  border-radius: 10px;
}

.img-thumb-list {
  max-height: 64px;
  max-width: 36px;
  border-radius: 8px;
}

.img-thumb-tall {
  display: block;
  height: auto;
  max-height: 150px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
  border-radius: 10px;
  background: var(--c-slate-300, #e5e7eb);
}

.details-grid {
  width: 100%;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.details-grid .thumb-col {
  align-items: center;
  display: flex;
  justify-content: center;
}

.details-grid .thumb-col .img-hover-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 150px;
  max-height: 150px;
  margin: 0 auto;
}

.details-grid .thumb-col .img-thumb-tall {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 150px;
}

.details-grid .right-col {
  padding-right: 1.5rem;
}

.ssr-modal-shell .details-grid .right-col {
  padding-right: 0;
}

@media (min-width: 768px) {
  .details-grid {
    gap: 1.5rem;
  }

  .modal-backdrop .details-grid,
  .ssr-modal-shell .modal-backdrop .details-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
  }
}

.share-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.share-row .chip-btn,
.share-row #copyLinkBtn,
.share-row #shareBtn {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0.5rem 0.8rem;
  border-radius: 9999px;
  line-height: 1.25rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    filter 0.15s ease;
}

#copyLinkBtn {
  border: 0;
  background: linear-gradient(180deg, #22d3ee, #6366f1);
  color: #ffffff;
}

#copyLinkBtn:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

#shareBtn {
  border: 0;
  background: linear-gradient(180deg, #34d399, #10b981);
  color: #ffffff;
}

#shareBtn:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.ssr-close-btn {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid #fca5a5;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  background: var(--c-white, #ffffff);
  color: #b91c1c;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.ssr-close-btn:hover,
.ssr-close-btn:focus {
  background: #fee2e2;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.12);
  transform: translateY(-1px);
}

.ssr-close-btn i,
.ssr-close-btn svg {
  height: 16px;
  width: 16px;
}

.ssr-close-btn i {
  margin-right: 0.2rem;
}

.ssr-modal-shell #ssrModalContent .text-slate-500,
.ssr-modal-shell #ssrModalContent .text-slate-400 {
  color: rgba(248, 250, 252, 0.92) !important;
}

.ssr-modal-shell #ssrModalContent .section-title {
  color: var(--c-slate-600, #475569) !important;
}

.ssr-modal-shell #ssrModalContent .section-title .icon {
  color: currentColor !important;
}

.ssr-modal-shell #ssrModalContent .text-slate-500 a,
.ssr-modal-shell #ssrModalContent .text-slate-400 a {
  color: rgba(248, 250, 252, 0.92) !important;
}
