/**
 * Afisha v2 - Event Page Styles
 * @namespace .ep-  (event-page)
 * @task P1-1 Event Page CSS
 * @version 1.0.0
 * @date 2026-04-12
 *
 * Depends on: design-system/tokens.css -> afisha-v2/tokens.css
 * Covers 12 blocks, 5 event states, dark+light, mobile-first.
 *
 * 2026-05-01 — V3 editorial hero internals (.ep-hero__grid + poster + spine
 * + datemark + lede + cta + ended-note + .ep-countdown--v3 band) extracted
 * to design-system/components/event-hero-editorial.css. Imported below.
 */

@import url('../design-system/components/event-hero-editorial.css?v=3');

/* ==========================================================================
   0. Scoped Tokens
   ========================================================================== */

.ep {
  /* Hero */
  --ep-hero-max-h: 70vh;
  --ep-hero-overlay: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65) 100%);

  /* Quick-facts */
  --ep-qf-icon: 20px;
  --ep-qf-bg: var(--bg-secondary);
  --ep-qf-border: var(--border-color);

  /* Tickets */
  --ep-ticket-accent: var(--color-brand-accent);
  --ep-ticket-radius: var(--border-radius-lg);

  /* Venue / Map */
  --ep-map-h: 260px;
  --ep-map-radius: var(--border-radius-lg);

  /* Gallery */
  --ep-gallery-gap: var(--space-sm);
  --ep-gallery-radius: var(--border-radius);

  /* Sticky header */
  --ep-sticky-h: 56px;
  --ep-sticky-bg: var(--bg-primary);
  --ep-sticky-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  --ep-sticky-z: var(--z-sticky);

  /* Badge */
  --ep-badge-radius: var(--border-radius-sm);

  /* Section */
  --ep-section-gap: var(--space-xl);
}

/* ==========================================================================
   1. Page Wrapper
   ========================================================================== */

.ep {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--gutter);
  font-family: var(--font-ui);
  color: var(--text-primary);
  line-height: var(--line-height-normal);
}

/* W1.3 (D-P0-3): empty <aside class="ep__sidebar"> removed; layout now flex column.
   .ep__sidebar rules deleted (dead code). If desktop sticky sidebar returns in W3,
   resurrect with a dedicated SPEC. */
.ep__layout {
  display: flex;
  flex-direction: column;
  gap: var(--ep-section-gap);
}

.ep__main {
  display: flex;
  flex-direction: column;
  gap: var(--ep-section-gap);
  min-width: 0;
}

/* ==========================================================================
   3. Hero
   ========================================================================== */

.ep-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .ep-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xl);
    align-items: start;
  }

  .ep-hero:has(.ep-hero__media[data-orientation="landscape"]) {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .ep-hero:has(.ep-hero__media[data-orientation="square"]) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* -- Image -- */
.ep-hero__media {
  position: relative;
  border-radius: var(--afisha-card-radius);
  overflow: hidden;
  width: 100%;
  max-height: 70vh;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-lg);
}
/* aspect-ratio hints только на mobile где image stack full-width */
@media (max-width: 767px) {
  .ep-hero__media {
    aspect-ratio: 3 / 4;
    min-height: auto;
  }
  .ep-hero__media[data-orientation="landscape"] { aspect-ratio: 3 / 2; }
  .ep-hero__media[data-orientation="square"] { aspect-ratio: 1 / 1; }
}

.ep-hero__img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .ep-hero__img {
    width: 100%;
    height: 100%;
    max-height: none;
  }
}

.ep-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--ep-hero-overlay);
  pointer-events: none;
}

.ep-hero__badge-wrap {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
}

/* -- Info -- */
.ep-hero__info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-sm);
}

.ep-hero__title {
  font-family: var(--font-display);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  margin: 0;
}

@media (max-width: 767px) {
  .ep-hero__title {
    font-size: var(--font-size-2xl);
  }
}

.ep-hero__subtitle {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin: 0;
}

/* -- Meta rows -- */
.ep-hero__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ep-hero__meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

.ep-hero__meta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.ep-hero__meta-row a {
  color: var(--color-primary);
  text-decoration: none;
}

.ep-hero__meta-row a:hover {
  text-decoration: underline;
}

/* -- Actions -- */
.ep-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.ep-hero__actions .ep-cta--primary {
  width: 100%;
  min-height: 52px;
  font-size: var(--font-size-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-glow);
}

.ep-hero__actions .ep-cta--secondary,
.ep-hero__actions .ep-cta--ghost {
  width: 100%;
}

@media (min-width: 768px) {
  .ep-hero__actions {
    flex-direction: row;
    align-items: center;
  }

  .ep-hero__actions .ep-cta--primary {
    flex: 1 1 auto;
    min-width: 240px;
  }

  .ep-hero__actions .ep-cta--secondary,
  .ep-hero__actions .ep-cta--ghost {
    width: auto;
  }
}

/* ==========================================================================
   4. Quick-Facts (Info Cards Grid)
   ========================================================================== */

.ep-quickfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.ep-quickfacts__card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--ep-qf-bg);
  border: 1px solid var(--ep-qf-border);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-fast);
}

.ep-quickfacts__card:hover {
  border-color: var(--border-color-hover);
}

.ep-quickfacts__icon {
  width: var(--ep-qf-icon);
  height: var(--ep-qf-icon);
  flex-shrink: 0;
  opacity: 0.7;
}

.ep-quickfacts__content {
  min-width: 0;
}

.ep-quickfacts__label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-caps);
  margin-bottom: var(--space-xs);
}

.ep-quickfacts__value {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
}

.ep-quickfacts__value a {
  color: var(--color-primary);
  text-decoration: none;
}

.ep-quickfacts__value a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. Artists (Lineup)
   ========================================================================== */

.ep-artists {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ep-artists__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.ep-artists__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .ep-artists__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ep-artists__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ep-artist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ep-artist-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ep-artist-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-pill);
  object-fit: cover;
}

.ep-artist-card__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-align: center;
  color: var(--text-primary);
}

.ep-artist-card__style {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   6. Schedule
   ========================================================================== */

.ep-schedule {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ep-schedule__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.ep-schedule__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ep-schedule__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--color-primary);
}

@media (min-width: 480px) {
  .ep-schedule__item {
    grid-template-columns: 100px 1fr;
  }
}

.ep-schedule__time {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  white-space: nowrap;
}

.ep-schedule__desc {
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.ep-schedule__desc-sub {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

/* ==========================================================================
   7. Tickets
   ========================================================================== */

.ep-tickets {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ep-tickets__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.ep-tickets__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .ep-tickets__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ep-tickets__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ep-ticket {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--ep-ticket-radius);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ep-ticket:hover {
  border-color: var(--ep-ticket-accent);
  box-shadow: var(--shadow-md);
}

.ep-ticket--featured {
  border-color: var(--ep-ticket-accent);
  position: relative;
}

.ep-ticket--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ep-ticket-accent);
  border-radius: var(--ep-ticket-radius) var(--ep-ticket-radius) 0 0;
}

.ep-ticket__name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.ep-ticket__price {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--ep-ticket-accent);
}

.ep-ticket__perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.ep-ticket--sold-out {
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   8. Venue / Map
   ========================================================================== */

.ep-venue {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ep-venue__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.ep-venue__map {
  width: 100%;
  height: var(--ep-map-h);
  border-radius: var(--ep-map-radius);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  overflow: hidden;
}

.ep-venue__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ep-venue__map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.ep-venue__address {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-base);
  color: var(--text-secondary);
}

.ep-venue__address-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
  margin-top: 2px;
}

.ep-venue__directions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  text-decoration: none;
}

.ep-venue__directions:hover {
  text-decoration: underline;
}

/* ==========================================================================
   9. Editorial (Description)
   ========================================================================== */

.ep-editorial {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ep-editorial__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.ep-editorial__body {
  font-family: var(--font-editorial);
  font-size: var(--font-size-base);
  line-height: var(--line-height-loose);
  color: var(--text-primary);
}

.ep-editorial__body p {
  margin: 0 0 var(--space-md);
}

.ep-editorial__body p:last-child {
  margin-bottom: 0;
}

.ep-editorial__body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ep-editorial__body a:hover {
  color: var(--color-link-hover);
}

.ep-editorial__body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: var(--space-md) 0;
}

.ep-editorial__body blockquote {
  margin: var(--space-md) 0;
  padding: var(--space-md) var(--space-lg);
  border-left: 3px solid var(--color-primary);
  background: var(--bg-secondary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* ==========================================================================
   10. FAQ
   ========================================================================== */

.ep-faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ep-faq__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.ep-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ep-faq__item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.ep-faq__item:hover {
  border-color: var(--border-color-hover);
}

.ep-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  text-align: left;
  gap: var(--space-sm);
}

.ep-faq__question:hover {
  background: var(--bg-hover);
}

.ep-faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  opacity: 0.5;
}

.ep-faq__item[open] .ep-faq__chevron,
.ep-faq__item--open .ep-faq__chevron {
  transform: rotate(180deg);
}

.ep-faq__answer {
  padding: 0 var(--space-md) var(--space-md);
  font-size: var(--font-size-sm);
  line-height: var(--line-height-loose);
  color: var(--text-secondary);
}

/* ==========================================================================
   11. Gallery
   ========================================================================== */

.ep-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ep-gallery__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.ep-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ep-gallery-gap);
}

@media (min-width: 480px) {
  .ep-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .ep-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ep-gallery__item {
  position: relative;
  border-radius: var(--ep-gallery-radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.ep-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

.ep-gallery__item:hover img {
  transform: scale(1.05);
}

.ep-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition-fast);
}

.ep-gallery__item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

.ep-gallery__more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: var(--ep-gallery-radius);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.ep-gallery__more:hover {
  background: var(--bg-hover);
  color: var(--color-primary);
}

/* ==========================================================================
   12. Recommended Events
   ========================================================================== */

.ep-recommended {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ep-recommended__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin: 0;
}

.ep-recommended__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .ep-recommended__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ep-recommended__grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   13. Social Proof / Share / Comments
   ========================================================================== */

.ep-social {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Share buttons */
.ep-share {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.ep-share__label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  margin-right: var(--space-xs);
}

.ep-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-pill);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.ep-share__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--bg-hover);
}

.ep-share__btn svg {
  width: 18px;
  height: 18px;
}

/* Comments section */
.ep-comments {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ep-comments__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.ep-comments__count {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: var(--font-weight-normal);
}

/* ==========================================================================
   14. Sticky Header
   ========================================================================== */

.ep-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ep-sticky-h);
  background: var(--ep-sticky-bg);
  box-shadow: var(--ep-sticky-shadow);
  z-index: var(--ep-sticky-z);
  transform: translateY(-100%);
  transition: transform var(--transition-normal);
  will-change: transform;
}

.ep-sticky--visible {
  transform: translateY(0);
}

.ep-sticky__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  gap: var(--space-md);
}

.ep-sticky__title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.ep-sticky__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* ==========================================================================
   15. Countdown Timer
   ========================================================================== */

.ep-countdown {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 100%);
  border: 1px solid rgba(232, 197, 71, 0.2);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-glow);
  margin-top: var(--space-sm);
}

.ep-countdown__segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
  padding: var(--space-xs);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(232, 197, 71, 0.35);
  border-radius: var(--border-radius-sm);
}

.ep-countdown__value {
  font-family: var(--font-mono, ui-monospace, Menlo, monospace);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(232, 197, 71, 0.45);
}

.ep-countdown__label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-caps);
  margin-top: 0;
}

.ep-countdown__sep {
  display: none;
}

@media (max-width: 479px) {
  .ep-countdown {
    gap: var(--space-xs);
    padding: var(--space-sm);
  }

  .ep-countdown__segment {
    min-width: 52px;
    padding: var(--space-xs);
  }

  .ep-countdown__value {
    font-size: var(--font-size-2xl);
  }
}

/* ==========================================================================
   16. CTA Buttons
   ========================================================================== */

.ep-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  min-height: var(--button-height, 44px);
  font-family: var(--font-ui);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast),
              color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
}

.ep-cta:active {
  transform: scale(0.97);
}

/* Primary */
.ep-cta--primary {
  background: var(--color-primary);
  color: var(--color-black);
  border-color: var(--color-primary);
}

.ep-cta--primary:hover {
  background: var(--color-brand-accent-hover);
  border-color: var(--color-brand-accent-hover);
}

/* Secondary */
.ep-cta--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.ep-cta--secondary:hover {
  background: var(--afisha-cta-secondary-hover-bg, rgba(232, 197, 71, 0.1));
}

/* Ghost */
.ep-cta--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.ep-cta--ghost:hover {
  border-color: var(--border-color-hover);
  color: var(--text-primary);
}

/* Small */
.ep-cta--sm {
  padding: var(--space-xs) var(--space-md);
  min-height: 36px;
  font-size: var(--font-size-sm);
}

/* Disabled */
.ep-cta[disabled],
.ep-cta--disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

/* ==========================================================================
   17. Status Badges
   ========================================================================== */

.ep-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-caps);
  border-radius: var(--ep-badge-radius);
  line-height: 1.2;
  white-space: nowrap;
}

.ep-badge--upcoming {
  background: rgba(232, 197, 71, 0.15);
  color: var(--color-brand-accent);
}

.ep-badge--live {
  background: rgba(76, 175, 80, 0.15);
  color: var(--color-success);
}

.ep-badge--live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  animation: ep-pulse 1.5s ease-in-out infinite;
}

.ep-badge--ended {
  background: var(--bg-tertiary, var(--color-surface));
  color: var(--text-muted);
}

.ep-badge--canceled {
  background: rgba(244, 67, 54, 0.15);
  color: var(--color-error);
}

.ep-badge--sold-out {
  background: rgba(255, 152, 0, 0.15);
  color: var(--color-warning);
}

/* ==========================================================================
   18. Event States (root modifiers on .ep)
   ========================================================================== */

/* -- Ended -- */
.ep--ended .ep-hero__media {
  filter: grayscale(0.55) contrast(0.95);
}

.ep--ended .ep-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.ep--ended .ep-hero__ended-tag,
.ep--ended .ep-badge--ended {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-caps);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ep--ended .ep-tickets {
  opacity: 0.5;
  pointer-events: none;
}

.ep--ended .ep-countdown {
  display: none;
}

.ep--ended .ep-hero__actions {
  margin-top: var(--space-sm);
}

.ep--ended .ep__main {
  gap: var(--space-lg);
}

.ep--ended .ep-section {
  margin-top: 0;
}

/* -- Canceled -- */
.ep--canceled .ep-hero__media {
  filter: grayscale(0.6);
}

.ep--canceled .ep-tickets {
  display: none;
}

.ep--canceled .ep-countdown {
  display: none;
}

/* -- Sold Out -- */
.ep--sold-out .ep-ticket {
  opacity: 0.5;
  pointer-events: none;
}

/* -- Live -- */
.ep--live .ep-hero__media {
  border: 2px solid var(--color-success);
}

/* ==========================================================================
   19. Animations
   ========================================================================== */

@keyframes ep-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes ep-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ep-slide-down {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

/* Apply fade-in to sections */
.ep-quickfacts,
.ep-artists,
.ep-schedule,
.ep-tickets,
.ep-venue,
.ep-editorial,
.ep-faq,
.ep-gallery,
.ep-recommended,
.ep-social {
  animation: ep-fade-in 0.4s ease both;
}

/* Stagger with nth-child on main sections */
.ep__main > :nth-child(1) { animation-delay: 0s; }
.ep__main > :nth-child(2) { animation-delay: 0.05s; }
.ep__main > :nth-child(3) { animation-delay: 0.1s; }
.ep__main > :nth-child(4) { animation-delay: 0.15s; }
.ep__main > :nth-child(5) { animation-delay: 0.2s; }
.ep__main > :nth-child(6) { animation-delay: 0.25s; }
.ep__main > :nth-child(7) { animation-delay: 0.3s; }
.ep__main > :nth-child(8) { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .ep-quickfacts,
  .ep-artists,
  .ep-schedule,
  .ep-tickets,
  .ep-venue,
  .ep-editorial,
  .ep-faq,
  .ep-gallery,
  .ep-recommended,
  .ep-social {
    animation: none;
  }

  .ep-badge--live::before {
    animation: none;
  }

  .ep-sticky {
    transition: none;
  }

  .ep-gallery__item img {
    transition: none;
  }

  .ep-artist-card {
    transition: none;
  }

  .ep-cta {
    transition: none;
  }
}

/* ==========================================================================
   20. Dark Theme Refinements
   ========================================================================== */

.dark-theme .ep-quickfacts__card {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

.dark-theme .ep-schedule__item {
  background: var(--color-bg-card);
}

.dark-theme .ep-ticket {
  background: var(--color-bg-card);
  border-color: var(--color-border);
}

.dark-theme .ep-faq__item {
  border-color: var(--color-border);
}

.dark-theme .ep-venue__map {
  border-color: var(--color-border);
}

.dark-theme .ep-share__btn {
  border-color: var(--color-border);
}

.dark-theme .ep-sticky {
  --ep-sticky-bg: var(--color-bg-elevated);
  --ep-sticky-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.dark-theme .ep-gallery__more {
  background: var(--color-bg-card);
}

.dark-theme .ep-artist-card {
  background: var(--color-bg-card);
}

.dark-theme .ep-editorial__body blockquote {
  background: var(--color-bg-card);
  border-left-color: var(--color-brand-accent);
}

/* ==========================================================================
   21. Print Styles
   ========================================================================== */

@media print {
  .ep-sticky,
  .ep-share,
  .ep-comments,
  .ep-gallery,
  .ep-cta--secondary,
  .ep-cta--ghost {
    display: none !important;
  }

  .ep {
    padding: 0;
    font-size: 12pt;
    color: #000;
  }

  .ep__layout {
    display: block;
  }

  .ep-hero {
    display: block;
  }

  .ep-hero__media {
    max-height: 300px;
    page-break-inside: avoid;
  }

  .ep-quickfacts {
    display: block;
  }

  .ep-quickfacts__card {
    display: inline-block;
    border: 1px solid #ccc;
    margin: 4px;
    padding: 8px;
  }

  .ep-venue__map {
    display: none;
  }
}

/* ==========================================================================
   === P1.1 SPLIT-LAYOUT HERO ===
   Right-col Combo: eyebrow / H1 / subtitle / hairline / date / city /
   fact-strip / hairline / primary CTA / secondary row.
   SPEC: docs/specs/INK-MKT-AFI-003-event-detail-v2-p1.md §P1.1
   DS-token mapping (SPEC used forward-looking names not yet in tokens.css):
     --color-surface-0     -> var(--bg-primary)
     --color-surface-1     -> var(--bg-secondary)
     --color-text-tertiary -> var(--text-muted)
     --color-text-secondary-> var(--text-secondary)
     --color-border-subtle -> var(--border-color)
     --color-accent-gold   -> var(--color-primary)
     --space-3             -> var(--space-sm)
     --space-5             -> var(--space-lg)
     --space-12            -> var(--space-2xl)
   ========================================================================== */

.ep-hero--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: var(--space-xl);
  background: var(--bg-primary);
  border-radius: var(--afisha-card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ep-hero--split .ep-hero__media {
  background: var(--bg-primary);
  box-shadow: none;
  border-radius: 0;
  position: relative;
}

/* Mobile ruled band (<768px): solid surface-0 + hairline top, 40% of media height */
@media (max-width: 767px) {
  .ep-hero--split .ep-hero__media::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    pointer-events: none;
  }
}

/* Body (right column): surface-1, flow layout */
.ep-hero__body {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-secondary);
  min-width: 0;
}

@media (min-width: 768px) {
  .ep-hero--split {
    grid-template-columns: 1fr 1fr;
  }
  .ep-hero__body {
    padding: var(--space-xl) var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .ep-hero--split {
    grid-template-columns: 3fr 2fr;
  }
  .ep-hero__body {
    padding: var(--space-2xl, 3rem) var(--space-xl);
  }
}

/* Eyebrow — mono xs uppercase tracked-out */
.ep-hero__eyebrow {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 var(--space-sm) 0;
}

/* H1 override for split hero — serif, fluid clamp, balance wrap */
.ep-hero--split .ep-hero__title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

/* Empty state: fact-strip hidden → give H1 more headroom */
.ep-hero--split.ep-hero--empty .ep-hero__title {
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
}

/* Subtitle — humanist sans, lg, secondary text, 55ch max */
.ep-hero--split .ep-hero__subtitle {
  font-family: var(--font-body, var(--font-ui, sans-serif));
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 55ch;
  margin: var(--space-sm) 0 0 0;
}

/* Hairline rule */
.ep-hero__rule {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: var(--space-lg) 0;
  width: 100%;
  height: 0;
}

/* Date / city meta rows inside split hero — inherit existing .ep-hero__meta,
   just tighten color to secondary */
.ep-hero--split .ep-hero__meta {
  gap: var(--space-sm);
}

.ep-hero--split .ep-hero__meta-row {
  color: var(--text-secondary);
}

/* Fact-strip: horizontal flex, flat (no box/card), hairline dividers between cells */
.ep-hero__fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ep-hero__fact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: 0 var(--space-lg);
  border-left: 1px solid var(--border-color);
  min-width: 0;
}

.ep-hero__fact:first-child {
  padding-left: 0;
  border-left: 0;
}

.ep-hero__fact dt {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0;
}

.ep-hero__fact dd {
  font-family: var(--font-body, var(--font-ui, sans-serif));
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin: 0;
}

/* CTA group */
.ep-hero__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

/* Primary CTA (gold full-width) */
.ep-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: 52px;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-primary);
  color: var(--color-brand, #000);
  font-family: inherit;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.ep-cta-primary:hover {
  background: var(--color-brand-accent-hover, var(--color-primary));
  color: var(--color-brand, #000);
  text-decoration: none;
  transform: translateY(-1px);
}

.ep-cta-primary:active {
  transform: translateY(0);
}

/* Secondary row (50/50 ghost placeholders) */
.ep-hero__secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.ep-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: 48px;
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.ep-cta-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Placeholder/disabled state (P1.3 will enable these) */
.ep-cta-secondary[data-disabled="true"],
.ep-cta-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ep-cta-secondary[data-disabled="true"]:hover,
.ep-cta-secondary:disabled:hover {
  border-color: var(--border-color);
  color: var(--text-primary);
  background: transparent;
}

.ep-cta-secondary svg {
  flex-shrink: 0;
  opacity: 0.8;
}

/* Mobile: secondary row stays 50/50 per SPEC, but allow single column on very narrow */
@media (max-width: 380px) {
  .ep-hero__secondary-row {
    grid-template-columns: 1fr;
  }
}

/* Cancelled state: keep red tint on poster, no hero badge */
.ep--canceled .ep-hero--split .ep-hero__media {
  filter: saturate(0.4);
}

/* Remove margin between ended-tag/countdown and the CTA group */
.ep-hero--split .ep-countdown,
.ep-hero--split .ep-hero__ended-tag {
  margin-top: var(--space-md);
}

/* P1.5 — Venue MapLibre (epic-mo5h7gek-r9zz2) */
.ep-venue { margin-top: var(--space-xl, 2rem); }
.ep-venue__heading {
  font: 700 var(--font-size-xl, 1.5rem) var(--font-serif, serif);
  margin-bottom: var(--space-md, 1rem);
  color: var(--color-text-primary);
}
.ep-venue__map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  border-radius: var(--afisha-card-radius, 12px);
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: pointer;
}
.ep-venue__map.is-loaded { cursor: default; }
.ep-venue__map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--color-text-secondary);
  font: var(--font-size-sm, 0.875rem) var(--font-sans, sans-serif);
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}
.ep-venue__marker {
  width: 32px;
  height: 32px;
  background: var(--color-accent-gold, #FFD700);
  border: 2px solid var(--color-text-primary);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.ep-venue__marker::before {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--color-text-primary);
  border-radius: 50%;
  transform: rotate(45deg);
}
.ep-venue__popup .maplibregl-popup-content {
  background: var(--bg-primary);
  color: var(--color-text-primary);
  border: 1px solid var(--border-color);
  padding: var(--space-sm, 0.75rem);
  font: var(--font-size-sm, 0.875rem) var(--font-sans, sans-serif);
  max-width: 240px;
  word-wrap: break-word;
}
.ep-venue__popup .maplibregl-popup-tip { border-top-color: var(--border-color); }
.ep-venue__actions {
  display: flex;
  gap: var(--space-md, 1rem);
  margin-top: var(--space-md, 1rem);
  flex-wrap: wrap;
}
.ep-venue__open-listing, .ep-venue__directions, .ep-venue__search-link {
  color: var(--color-accent-gold, #FFD700);
  font: 500 var(--font-size-sm, 0.875rem) var(--font-sans, sans-serif);
  text-decoration: none;
  border-bottom: 1px dotted;
  padding-bottom: 2px;
}
.ep-venue__open-listing:hover, .ep-venue__directions:hover, .ep-venue__search-link:hover {
  color: var(--color-text-primary);
  border-bottom-style: solid;
}
.ep-venue--no-coords .ep-venue__fallback {
  padding: var(--space-lg, 1.5rem);
  background: var(--bg-secondary);
  border-radius: var(--afisha-card-radius, 12px);
  text-align: center;
}
@media (max-width: 767px) {
  .ep-venue__map { aspect-ratio: 4 / 3; }
}

/* P1.4 — Other Events grid (moved from sidebar, full-width main column) */
.ep-other-events { margin-top: var(--space-xl, 2rem); }
.ep-other-events__title {
  font: 700 var(--font-size-xl, 1.5rem) var(--font-serif, serif);
  margin-bottom: var(--space-md, 1rem);
  color: var(--color-text-primary);
}
.ep-other-events__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md, 1rem);
}
@media (max-width: 767px) {
  .ep-other-events__grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   V3 GOLDEN HERO — Editorial Asymmetric Spread (Founder approved 2026-05-01)
   42% poster | 6% spine | 52% info (desktop)
   Override existing .ep-hero grid when paired with .ep-hero--v3
   ========================================================================== */

.ep-hero.ep-hero--v3 {
  display: block;
  grid-template-columns: none;
  gap: 0;
  margin-bottom: 0;
  padding: 0;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
  border-bottom: 1px solid var(--border-default, var(--color-border, rgba(255,255,255,0.08)));
}

/* === Editorial hero internals (.ep-hero__grid + poster + spine + datemark
       + lede + cta + ended-note + .ep-countdown--v3 + ended sepia) extracted
       on 2026-05-01 to design-system/components/event-hero-editorial.css.
       The .ep-hero.ep-hero--v3 wrapper above stays page-local because it
       overrides legacy .ep-hero (catalog hero), which is page-context-specific.
   === */

/* Inline countdown variant inside hero info (legacy — superseded by v3 band) */
.ep-hero--v3 .ep-countdown--inline {
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  justify-content: flex-start;
}

/* ==========================================================================
   V3 — BREADCRUMBS, COUNTDOWN BAND, SECTION OVERRIDES
   Scoped under .ep--v3 parent to avoid bleeding into legacy pages.
   ========================================================================== */

/* === .ep-countdown--v3 band + children extracted 2026-05-01 to
       design-system/components/event-hero-editorial.css === */

/* ----- Quick Facts (V3) — horizontal scrolling strip with edge-fade mask ----- */
.ep--v3 .ep-quickfacts {
  display: flex;
  grid-template-columns: none;
  flex-wrap: nowrap;
  gap: var(--space-lg);
  overflow-x: auto;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card, var(--bg-secondary));
  border-bottom: 1px solid var(--border-color, rgba(255,255,255,0.08));
  scrollbar-width: none;
  -webkit-mask: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
  mask: linear-gradient(to right, transparent 0%, black 2%, black 98%, transparent 100%);
  margin-bottom: 0;
}
.ep--v3 .ep-quickfacts::-webkit-scrollbar { display: none; }

.ep--v3 .ep-quickfacts__card {
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  white-space: nowrap;
}
.ep--v3 .ep-quickfacts__card:hover { border-color: transparent; }
.ep--v3 .ep-quickfacts__icon {
  width: 20px;
  height: 20px;
  color: var(--color-brand-accent, #e8c547);
  opacity: 1;
}
.ep--v3 .ep-quickfacts__label {
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: var(--font-size-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-caps, 0.08em);
  color: var(--text-muted);
  margin-right: var(--space-xs);
  margin-bottom: 0;
  display: inline;
}
.ep--v3 .ep-quickfacts__value {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  display: inline;
}

/* ----- Article-style sections (V3) — DM Serif Display + ruled lines ----- */
.ep--v3 .ep__main {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--space-2xl, 3rem) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl, 3rem);
}
@media (min-width: 768px) {
  .ep--v3 .ep__main {
    padding: var(--space-2xl, 3rem) var(--space-xl);
  }
}

.ep--v3 .ep__main > section {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
}
.ep--v3 .ep__main > section:first-child {
  padding-top: 0;
  border-top: 0;
}

.ep--v3 .ep-editorial__title,
.ep--v3 .ep-faq__title,
.ep--v3 .ep-schedule__title,
.ep--v3 .ep-tickets__title,
.ep--v3 .ep-venue__title,
.ep--v3 .ep-artists__title,
.ep--v3 .ep-gallery__title,
.ep--v3 .ep-other-events__title,
.ep--v3 .ep-comments__title {
  font-family: "DM Serif Display", var(--font-display, Georgia, serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-md);
  line-height: 1.15;
}

.ep--v3 .ep-editorial__body {
  font-family: var(--font-editorial, Georgia, "Times New Roman", serif);
  font-size: var(--font-size-lg, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
}
.ep--v3 .ep-editorial__body p + p { margin-top: var(--space-md); }

/* ----- Other events grid (V3) — full 3-col desktop ----- */
/* W1.2 (D-P0-2) — single content-width token + wrap. The OUTER section bleeds full-width
   (background tint + border-top span viewport); the INNER __wrap caps content
   at the same width as the listing page. Eliminates the 3-rule cascade. */
.ep--v3 { --ep-content-w: 1200px; }
.ep--v3 .ep-other-events {
  background: var(--bg-secondary, var(--color-bg-elevated));
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
  padding-block: var(--space-2xl, 3rem);
  margin-top: var(--space-2xl, 3rem);
  /* no max-width here — full-bleed wrapper */
}
.ep--v3 .ep-other-events__wrap {
  margin-inline: auto;
  padding-inline: var(--gutter, var(--space-lg));
}
.ep--v3 .ep-other-events__title {
  margin: 0 0 var(--space-lg);
}
/* Other Events rail (Founder 2026-05-13):
   - Mobile (< 1024px): horizontal carousel with scroll-snap.
   - Desktop (>= 1024px): 4-column grid, single row, no scroll. */
.ep--v3 .ep-other-events__grid {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--space-md);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: var(--space-sm);
}
.ep--v3 .ep-other-events__grid::-webkit-scrollbar { height: 6px; }
.ep--v3 .ep-other-events__grid::-webkit-scrollbar-thumb {
  background: var(--border-color, rgba(255,255,255,0.12));
  border-radius: 3px;
}

.ep--v3 .ep-other-events__grid > .afisha-card {
  flex: 0 0 auto;
  width: clamp(260px, 70vw, 320px);
  scroll-snap-align: start;
}

@media (min-width: 1024px) {
  .ep--v3 .ep-other-events__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .ep--v3 .ep-other-events__grid > .afisha-card {
    width: auto;
    flex: initial;
  }
}

/* ----- FAQ (V3) — soft ruled lines, no heavy borders ----- */
.ep--v3 .ep-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.ep--v3 .ep-faq__item {
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  border-radius: var(--border-radius, 6px);
  overflow: hidden;
  background: var(--bg-card, var(--bg-secondary));
}
.ep--v3 .ep-faq__question {
  font-family: var(--font-ui, inherit);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  padding: var(--space-md) var(--space-lg);
}

/* ----- Share + Comments (V3) — restyle to match ----- */
.ep--v3 .ep-share {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-md) 0;
}
.ep--v3 .ep-share__label {
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: var(--font-size-xs, 0.75rem);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-caps, 0.08em);
  color: var(--text-muted);
  margin-right: var(--space-xs);
}
.ep--v3 .ep-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-color, rgba(255,255,255,0.12));
  border-radius: var(--border-radius-pill, 50%);
  background: transparent;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast, 150ms ease), color var(--transition-fast, 150ms ease);
  cursor: pointer;
}
.ep--v3 .ep-share__btn:hover {
  border-color: var(--color-brand-accent, #e8c547);
  color: var(--color-brand-accent, #e8c547);
}

.ep--v3 .ep-organizer {
  font-family: var(--font-mono, ui-monospace, "SF Mono", Menlo, monospace);
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-caps, 0.08em);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding: var(--space-md) 0;
}

/* Mobile: V3 page-local section padding (countdown mobile rules moved to
   design-system/components/event-hero-editorial.css) */
@media (max-width: 639px) {
  .ep--v3 .ep__main {
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-xl);
  }
  .ep--v3 .ep-other-events {
    margin-left: calc(var(--space-md) * -1);
    margin-right: calc(var(--space-md) * -1);
    padding: var(--space-xl) var(--space-md);
  }
}
