/* Tigule Event Detail — polished, responsive */
.ed-page {
  --ed-red: #c8102e;
  --ed-red-dark: #8b0d20;
  --ed-ink: #0f172a;
  --ed-muted: #64748b;
  --ed-border: rgba(15, 23, 42, 0.08);
  --ed-radius: 20px;
  --ed-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
  padding-bottom: 2.75rem;
  overflow-x: clip;
}

.ed-page h1,
.ed-page h2,
.ed-page h3,
.ed-page h4,
.ed-page h5 {
  color: inherit;
}

@keyframes edFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes edGlow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.75; }
}

/* Status banners */
.ed-banner {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  margin-bottom: 1.15rem;
  border: 1px solid transparent;
  animation: edFadeUp 0.4s ease both;
}

.ed-banner--ended {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border-color: #e2e8f0;
}

.ed-banner--cancelled {
  background: #fff5f5;
  border-color: rgba(220, 53, 69, 0.25);
}

.ed-banner__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fff;
  color: var(--ed-red);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.ed-banner h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ed-ink);
}

.ed-banner p {
  margin: 0;
  color: var(--ed-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ========== HERO ========== */
.ed-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 1.35rem;
  color: #fff;
  box-shadow: 0 22px 50px rgba(200, 16, 46, 0.22);
  animation: edFadeUp 0.45s ease both;
}

.ed-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  filter: blur(36px) saturate(1.35) brightness(0.5);
}

.ed-hero__bg::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -60px;
  right: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
  animation: edGlow 5s ease-in-out infinite;
  pointer-events: none;
}

.ed-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(12, 4, 8, 0.78) 0%, rgba(90, 8, 21, 0.72) 48%, rgba(20, 6, 10, 0.88) 100%),
    linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
}

.ed-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas:
    "poster top"
    "poster content";
  gap: 0.75rem 1.75rem;
  padding: clamp(1.25rem, 3.2vw, 2rem);
  align-items: end;
}

.ed-hero__poster {
  grid-area: poster;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  background: #1e293b;
  transition: transform 0.25s ease;
}

.ed-hero__top {
  grid-area: top;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: end;
}

.ed-hero__content {
  grid-area: content;
  min-width: 0;
}

.ed-hero__share-label {
  margin-left: 0.15rem;
}

.ed-hero__poster:hover {
  transform: translateY(-3px) scale(1.01);
}

.ed-hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.ed-hero__date {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  min-width: 54px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  padding: 0.4rem 0.45rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.ed-hero__date-day {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ed-red);
  line-height: 1;
}

.ed-hero__date-mon {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ed-muted);
}

.ed-hero__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.ed-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  margin-bottom: 0.75rem;
}

.ed-hero__badge .ed-pill {
  margin-left: 0.25rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.65rem;
}

.ed-hero h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.ed-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.ed-hero__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  max-width: 100%;
}

.ed-hero__meta i {
  opacity: 0.95;
  flex-shrink: 0;
}

.ed-hero__price {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.ed-hero__price small {
  font-weight: 600;
  opacity: 0.9;
  margin-right: 0.15rem;
}

.ed-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ed-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 13px;
  font-size: 0.86rem;
  font-weight: 700;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.ed-btn:hover {
  transform: translateY(-2px);
}

.ed-btn--primary {
  background: #fff;
  color: var(--ed-red);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.ed-btn--primary:hover {
  color: var(--ed-red-dark);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.ed-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.ed-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ed-btn--danger {
  background: rgba(220, 53, 69, 0.92);
  color: #fff;
}

.ed-btn--danger:hover {
  background: #dc3545;
  color: #fff;
}

.share-button-group {
  position: relative;
}

.share-dropdown {
  border-radius: 14px;
  border: 1px solid var(--ed-border);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
  padding: 0.4rem;
  min-width: 190px;
}

.share-dropdown .dropdown-item {
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
}

/* ========== LAYOUT ========== */
.ed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.95fr);
  gap: 1.25rem;
  align-items: start;
}

.ed-card {
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  box-shadow: var(--ed-shadow);
  overflow: hidden;
  margin-bottom: 1.1rem;
  animation: edFadeUp 0.5s ease both;
}

.ed-card:nth-child(2) { animation-delay: 0.05s; }
.ed-card:nth-child(3) { animation-delay: 0.1s; }
.ed-card:nth-child(4) { animation-delay: 0.15s; }

.ed-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border-bottom: 1px solid #f1f5f9;
}

.ed-card__head h2,
.ed-card__head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ed-ink) !important;
}

.ed-card__head i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff5f7, #ffe8ec);
  color: var(--ed-red);
  font-size: 0.9rem;
}

.ed-card__body {
  padding: 1.2rem;
}

.ed-about {
  white-space: pre-line;
  color: #334155;
  line-height: 1.8;
  font-size: 0.98rem;
  margin: 0;
}

.ed-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.ed-fact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #fff 0%, #f8fafc 100%);
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 1.05rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ed-fact:hover {
  border-color: rgba(200, 16, 46, 0.2);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.ed-fact__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ed-red), var(--ed-red-dark));
  color: #fff;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.28);
}

.ed-fact__label {
  margin: 0 0 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ed-muted);
}

.ed-fact__primary {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ed-ink);
}

.ed-fact__secondary {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: var(--ed-muted);
}

/* Ticket tiers */
.ed-tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.ed-tier {
  position: relative;
  border: 1px solid var(--ed-border);
  border-radius: 18px;
  padding: 1.05rem;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ed-tier:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 16, 46, 0.28);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.ed-tier.is-disabled {
  opacity: 0.7;
}

.ed-tier.is-disabled:hover {
  transform: none;
}

.ed-tier__top {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
  align-items: flex-start;
}

.ed-tier__name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ed-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-tier__desc {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--ed-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ed-tier__badge {
  flex-shrink: 0;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #fff5f7;
  color: var(--ed-red);
  border: 1px solid rgba(200, 16, 46, 0.18);
  white-space: nowrap;
}

.ed-tier__badge.is-muted {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.ed-tier__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.ed-tier__price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ed-red);
  white-space: nowrap;
}

.ed-tier__sold {
  display: block;
  font-size: 0.72rem;
  color: var(--ed-muted);
  font-weight: 600;
}

.ed-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.58rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(135deg, var(--ed-red), var(--ed-red-dark));
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.28);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ed-buy:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.35);
}

.ed-buy.is-disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* Owner stats */
.ed-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ed-stat {
  background: linear-gradient(160deg, #fff, #f8fafc);
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 0.9rem;
}

.ed-stat__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ed-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.ed-stat__value {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ed-ink);
  white-space: nowrap;
}

/* Sidebar */
.ed-poster-card {
  position: relative;
  border-radius: var(--ed-radius);
  overflow: hidden;
  border: 1px solid var(--ed-border);
  box-shadow: var(--ed-shadow);
  margin-bottom: 1.1rem;
  background: #0f172a;
  animation: edFadeUp 0.5s ease 0.08s both;
}

.ed-poster-card img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}

.ed-poster-card:hover img {
  transform: scale(1.03);
}

.poster-download-btn {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 0.95rem;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: background 0.15s ease, transform 0.15s ease;
}

.poster-download-btn:hover {
  background: var(--ed-red);
  transform: translateY(-1px);
}

.ed-side-card {
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--ed-shadow);
  margin-bottom: 1.1rem;
}

.ed-side-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ed-red), var(--ed-red-dark));
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.3);
}

.ed-side-card h5 {
  margin: 0 0 0.4rem;
  font-weight: 800;
  color: var(--ed-ink) !important;
}

.ed-side-card p {
  margin: 0 0 0.95rem;
  color: var(--ed-muted);
  font-size: 0.88rem;
}

.ed-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--ed-muted);
}

.ed-empty i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.45;
}

/* Modals */
.poster-modal,
.confirmation-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.poster-modal.show,
.confirmation-modal.show {
  display: flex;
}

.poster-modal-content {
  position: relative;
  max-width: min(920px, 96vw);
  max-height: 90vh;
}

.poster-modal-content img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.poster-modal-close,
.confirmation-modal-close {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ed-ink);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.confirmation-modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  padding: 1.4rem;
  position: relative;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.confirmation-modal-header {
  text-align: center;
  margin-bottom: 0.85rem;
}

.confirmation-modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: #fff7ed;
  color: #c2410c;
}

.confirmation-modal-icon.danger {
  background: #fef2f2;
  color: #dc2626;
}

.confirmation-modal-icon.warning {
  background: #fffbeb;
  color: #d97706;
}

.confirmation-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ed-ink) !important;
}

.confirmation-modal-body {
  color: var(--ed-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.confirmation-modal-footer {
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.confirmation-modal-btn {
  padding: 0.65rem 1.05rem;
  border-radius: 11px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.confirmation-modal-btn-cancel {
  background: #f1f5f9;
  color: #334155;
}

.confirmation-modal-btn-confirm {
  background: var(--ed-red);
  color: #fff;
}

.confirmation-modal-btn-confirm.danger {
  background: #dc2626;
}

.refund-contact-buttons {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.ticket-result {
  margin-top: 0.85rem;
}

/* ========== DESKTOP / TABLET hero polish (mobile unchanged below) ========== */
@media (min-width: 768px) {
  .ed-hero {
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(200, 16, 46, 0.2);
  }

  .ed-hero__bg {
    filter: blur(40px) saturate(1.4) brightness(0.48);
  }

  .ed-hero__bg::after {
    background:
      linear-gradient(115deg, rgba(10, 4, 8, 0.82) 0%, rgba(110, 10, 28, 0.68) 45%, rgba(14, 6, 12, 0.9) 100%),
      linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.28) 100%);
  }

  .ed-hero__inner {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    grid-template-areas:
      "poster top"
      "poster content";
    align-items: center;
    gap: 0.85rem 1.85rem;
    padding: 1.35rem 1.5rem 1.45rem;
  }

  .ed-hero__poster {
    aspect-ratio: 1 / 1;
    max-height: 260px;
    border-radius: 16px;
    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.38),
      0 0 0 1px rgba(255, 255, 255, 0.18);
  }

  .ed-hero__poster::after {
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35));
  }

  .ed-hero__top {
    align-self: start;
    justify-content: flex-end;
  }

  /* Solid share chip — same family as mobile tile */
  .ed-hero__top .ed-btn.ed-btn--ghost.ed-hero__share,
  .ed-hero__top .ed-hero__share {
    background: #fff !important;
    color: var(--ed-red) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 0.55rem 1rem !important;
    min-height: 42px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  }

  .ed-hero__top .ed-btn.ed-btn--ghost.ed-hero__share:hover,
  .ed-hero__top .ed-hero__share:hover {
    background: #fff !important;
    color: var(--ed-red-dark) !important;
    transform: translateY(-1px);
  }

  .ed-hero__share-label {
    display: inline;
    font-weight: 800;
  }

  .ed-hero__content {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .ed-hero__badge {
    margin-bottom: 0;
    border-radius: 8px;
    border: none;
    background: var(--ed-red);
    backdrop-filter: none;
    box-shadow: 0 6px 16px rgba(200, 16, 46, 0.35);
  }

  .ed-hero__badge .ed-pill {
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.22);
  }

  .ed-hero__title {
    max-width: 36ch;
  }

  .ed-hero__title h1,
  .ed-hero h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1.18;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  }

  .ed-hero__meta {
    margin-bottom: 0;
    gap: 0.45rem;
  }

  .ed-hero__meta > span {
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    backdrop-filter: none;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  }

  .ed-hero__meta > span i {
    color: var(--ed-red);
    opacity: 1;
  }

  .ed-hero__price {
    background: #fff !important;
    color: var(--ed-red) !important;
    border: none !important;
  }

  .ed-hero__price small {
    color: #64748b;
  }

  .ed-hero__actions {
    margin-top: 0.15rem;
  }

  .ed-hero__actions .ed-btn--ghost {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
  }
}

@media (min-width: 992px) {
  .ed-hero__inner {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 1rem 2.1rem;
    padding: 1.5rem 1.75rem 1.6rem;
  }

  .ed-hero__poster {
    max-height: 300px;
    border-radius: 18px;
  }

  .ed-hero__title h1,
  .ed-hero h1 {
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
  }
}

/* ========== TABLET layout (non-hero) ========== */
@media (max-width: 991px) {
  .ed-grid {
    grid-template-columns: 1fr;
  }

  .ed-tiers {
    grid-template-columns: 1fr;
  }

  .ed-poster-card {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========== MOBILE — short full-bleed poster + text overlay ========== */
@media (max-width: 767px) {
  .ed-page {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .ed-hero {
    position: relative;
    display: block;
    border-radius: 0 0 18px 18px;
    margin-bottom: 0.95rem;
    height: min(52vw, 280px);
    max-height: 280px;
    min-height: 220px;
    box-shadow: 0 12px 28px rgba(200, 16, 46, 0.2);
    overflow: hidden;
  }

  /* Sharp poster fill — no blur plate */
  .ed-hero__bg {
    display: none;
  }

  .ed-hero__inner {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    z-index: 1;
  }

  /* Poster fills entire hero */
  .ed-hero__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    z-index: 0;
  }

  .ed-hero__poster:hover {
    transform: none;
  }

  .ed-hero__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: zoom-in;
  }

  .ed-hero__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(8, 4, 10, 0.22) 0%, transparent 28%),
      linear-gradient(180deg, transparent 42%, rgba(8, 4, 10, 0.78) 82%, rgba(8, 4, 10, 0.94) 100%);
    pointer-events: none;
    z-index: 1;
  }

  /* Date — top left */
  .ed-hero__date {
    top: 0.7rem;
    left: 0.7rem;
    z-index: 3;
    min-width: 44px;
    padding: 0.3rem 0.35rem;
    border-radius: 8px;
    background: #fff;
  }

  .ed-hero__date-day { font-size: 0.95rem; }
  .ed-hero__date-mon { font-size: 0.58rem; }

  /* Share — top right, clear of the date */
  .ed-hero__top {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    left: auto;
    bottom: auto;
    z-index: 4;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin: 0;
    pointer-events: none;
  }

  .ed-hero__top .share-button-group {
    pointer-events: auto;
    margin: 0;
  }

  /* Match date badge: solid white tile (beats .ed-btn--ghost) */
  .ed-hero__top .ed-btn.ed-btn--ghost.ed-hero__share,
  .ed-hero__top .ed-hero__share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    padding: 0 !important;
    border-radius: 10px !important;
    border: none !important;
    background: #fff !important;
    color: var(--ed-red) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  }

  .ed-hero__top .ed-btn.ed-btn--ghost.ed-hero__share:hover,
  .ed-hero__top .ed-hero__share:hover {
    background: #fff !important;
    color: var(--ed-red-dark) !important;
    transform: none;
  }

  .ed-hero__top .ed-hero__share i {
    font-size: 0.95rem;
    line-height: 1;
  }

  .ed-hero__share-label {
    display: none;
  }

  .ed-hero__top .share-dropdown {
    margin-top: 0.35rem !important;
  }

  /* Text — bottom left stack on the poster */
  .ed-hero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.7rem 0.85rem 0.8rem;
    text-align: left;
    pointer-events: none;
  }

  .ed-hero__content > * {
    pointer-events: auto;
  }

  .ed-hero__badge {
    align-self: flex-start;
    margin: 0;
    padding: 0.28rem 0.55rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    border-radius: 6px;
    border: none;
    background: rgba(200, 16, 46, 0.95);
    backdrop-filter: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  }

  .ed-hero__badge .ed-pill {
    margin-left: 0.3rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
    font-size: 0.55rem;
  }

  /* Title: rectangular ink behind each line */
  .ed-hero__title {
    max-width: calc(100% - 0.25rem);
    line-height: 1.35;
    padding-right: 0.15rem;
  }

  .ed-hero__title h1,
  .ed-hero h1 {
    display: inline;
    margin: 0;
    max-width: none;
    font-size: clamp(0.98rem, 4.2vw, 1.18rem);
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    text-shadow: none;
    padding: 0.14rem 0.4rem;
    background: rgba(12, 8, 14, 0.86);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: 4px;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  .ed-hero__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.35rem;
    margin: 0;
  }

  .ed-hero__meta > span {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.5rem;
    border-radius: 5px;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    backdrop-filter: none;
    max-width: 100%;
  }

  .ed-hero__meta > span i {
    color: var(--ed-red);
  }

  /* Keep organizer only in overlay */
  .ed-hero__meta > span:nth-child(n + 2),
  .ed-hero__meta > span.ed-hero__price {
    display: none !important;
  }

  .ed-hero__actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.3rem;
    margin-top: 0.15rem;
  }

  .ed-hero__actions form {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .ed-hero__actions form .ed-btn { width: auto; }

  .ed-hero__actions .ed-btn {
    min-height: 32px;
    padding: 0.35rem 0.6rem;
    font-size: 0.68rem;
    border-radius: 6px;
    justify-content: center;
  }

  .ed-hero__actions .ed-btn--ghost {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: none;
  }

  .ed-hero__actions .ed-btn--primary {
    background: #fff;
    color: var(--ed-red);
  }

  .ed-btn { width: auto; }

  .ed-grid {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .ed-card {
    border-radius: 16px;
    margin-bottom: 0.9rem;
  }

  .ed-card__head { padding: 0.85rem 1rem; }
  .ed-card__body { padding: 1rem; }

  .ed-facts {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .ed-fact {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 0.75rem;
    row-gap: 0.12rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
  }

  .ed-fact__icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    margin-bottom: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.9rem;
  }

  .ed-fact__label,
  .ed-fact__primary,
  .ed-fact__secondary {
    grid-column: 2;
  }

  .ed-fact__label {
    margin: 0;
    font-size: 0.68rem;
  }

  .ed-fact__primary {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .ed-fact__secondary {
    margin: 0.1rem 0 0;
    font-size: 0.84rem;
    color: var(--ed-muted);
  }

  .ed-tiers {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .ed-tier {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 16px;
    padding: 0.95rem 1rem;
  }

  .ed-tier__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .ed-tier__name {
    font-size: 1rem;
    white-space: normal;
  }

  .ed-tier__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: nowrap;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
  }

  .ed-tier__price {
    font-size: 1.12rem;
  }

  .ed-buy {
    flex-shrink: 0;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }

  .ed-stats { grid-template-columns: 1fr 1fr; gap: 0.55rem; }
  .ed-stat { padding: 0.85rem 0.7rem; }

  .ed-poster-card {
    max-width: none;
    border-radius: 16px;
  }

  .ed-poster-card img { max-height: 420px; }
  .poster-download-btn span { display: none; }
  .ed-side-card { border-radius: 16px; padding: 1.1rem; }
}

@media (max-width: 420px) {
  .ed-hero {
    height: min(58vw, 260px);
    max-height: 260px;
    min-height: 210px;
  }

  .ed-hero__content {
    padding: 0.65rem 0.75rem 0.75rem;
    gap: 0.32rem;
  }

  .ed-hero__title h1,
  .ed-hero h1 {
    font-size: 1.02rem;
  }

  .ed-hero__actions .ed-btn {
    min-height: 32px;
    font-size: 0.7rem;
  }

  .ed-stats { grid-template-columns: 1fr; }
}

/* Large desktop polish */
@media (min-width: 1200px) {
  .ed-hero__inner {
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-areas:
      "poster top"
      "poster content";
    gap: 0.85rem 2rem;
  }

  .ed-grid {
    gap: 1.4rem;
  }
}
