/* Top Events — Split-Hero, Lineup, Tickets-CTA */

.eeg-top-events--archive {
  margin: 0 0 32px;
}

.eeg-top-events {
  --eeg-te-pink: #e6007e;
  --eeg-te-pink-soft: rgba(230, 0, 126, 0.2);
  --eeg-te-bg: #09090b;
  --eeg-te-panel: #121216;
  --eeg-te-line: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(1100px 420px at 92% -12%, var(--eeg-te-pink-soft), transparent 55%),
    var(--eeg-te-bg);
  border-radius: 28px;
  padding: clamp(16px, 2vw, 24px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 28px 80px rgba(0, 0, 0, 0.28);
}

.eeg-top-events__head,
.eeg-top-events__layout {
  position: relative;
  z-index: 1;
}

.eeg-top-events__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.eeg-top-events__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  line-height: 1.1;
}

.eeg-top-events__title span {
  display: inline-block;
}

.eeg-top-events__title span::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  background: var(--eeg-te-pink);
  border-radius: 99px;
}

.eeg-top-events a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.eeg-top-events__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.78fr);
  gap: 16px;
  align-items: stretch;
}

.eeg-te-card {
  min-width: 0;
}

.eeg-te-card--hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  background: #101014;
  border: 1px solid var(--eeg-te-line);
}

.eeg-te-card--hero .eeg-te-card__media {
  position: relative;
  display: block;
  min-height: 420px;
  overflow: hidden;
  background: #000;
}

.eeg-te-card--hero .eeg-te-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.88) contrast(1.04);
  transform: scale(1.03);
  transition: transform 0.7s ease;
}

.eeg-te-card--hero .eeg-te-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 55%, rgba(16, 16, 20, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.28));
  pointer-events: none;
}

.eeg-te-card--hero .eeg-te-card__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    480px circle at var(--mx, 40%) var(--my, 30%),
    rgba(255, 255, 255, 0.14),
    transparent 42%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: screen;
}

.eeg-te-card--hero .eeg-te-card__media:hover img,
.eeg-te-card--hero .eeg-te-card__media:focus-visible img {
  transform: scale(1.07);
}

.eeg-te-card--hero .eeg-te-card__media:hover .eeg-te-card__shine,
.eeg-te-card--hero .eeg-te-card__media:focus-visible .eeg-te-card__shine {
  opacity: 1;
}

.eeg-te-card__panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px 26px 26px;
  background: linear-gradient(180deg, #16161c 0%, #0d0d11 100%);
}

.eeg-te-card--hero .eeg-te-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.eeg-te-card--hero .eeg-te-cal {
  align-self: flex-start;
}

.eeg-te-card--hero .eeg-te-card__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-wrap: balance;
}

.eeg-te-card--hero .eeg-te-card__title a {
  color: #fff;
  text-decoration: none;
}

.eeg-te-card--hero .eeg-te-card__title a:hover,
.eeg-te-card--hero .eeg-te-card__title a:focus-visible {
  color: #fff;
  text-decoration: none;
}

.eeg-te-card--hero .eeg-te-card__date,
.eeg-te-card--hero .eeg-te-card__location {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 600;
}

.eeg-te-card--hero .eeg-btn {
  margin-top: 8px;
  align-self: flex-start;
}

.eeg-te-badge {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.eeg-te-badge--cat {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.eeg-te-badge--tip {
  background: var(--eeg-te-pink);
  color: #fff;
}

.eeg-te-cal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 8px 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.eeg-te-cal__day {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.eeg-te-cal__month {
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eeg-te-pink);
}

.eeg-top-events__side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eeg-te-card--row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex: 1;
}

.eeg-te-card__main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  padding: 10px;
  border-radius: 18px;
  background: var(--eeg-te-panel);
  border: 1px solid var(--eeg-te-line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.eeg-te-card--row .eeg-te-card__media {
  position: relative;
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1f;
}

.eeg-te-card--row .eeg-te-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.eeg-te-card--row .eeg-te-badge--tip {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 3px 7px;
  font-size: 9px;
}

.eeg-te-card--row .eeg-te-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eeg-te-card--row .eeg-te-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.eeg-te-card--row .eeg-te-badge {
  padding: 3px 8px;
  font-size: 10px;
}

.eeg-te-card--row .eeg-te-card__title {
  margin: 0;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eeg-te-card--row .eeg-te-card__location {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eeg-te-card--row .eeg-te-cal {
  flex-shrink: 0;
  min-width: 50px;
  padding: 7px 8px 8px;
}


.eeg-te-card__main:hover,
.eeg-te-card__main:focus-visible {
  transform: translateX(4px);
  border-color: rgba(230, 0, 126, 0.55);
  background: #18181e;
}

.eeg-te-card__main:hover img,
.eeg-te-card__main:focus-visible img {
  transform: scale(1.06);
}

.eeg-top-events.eeg-te-animate .eeg-te-card {
  opacity: 0;
  transform: translateY(18px);
}

.eeg-top-events.is-visible .eeg-te-card {
  animation: eeg-te-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.eeg-top-events.is-visible .eeg-top-events__side .eeg-te-card:nth-child(1) { animation-delay: 0.08s; }
.eeg-top-events.is-visible .eeg-top-events__side .eeg-te-card:nth-child(2) { animation-delay: 0.14s; }
.eeg-top-events.is-visible .eeg-top-events__side .eeg-te-card:nth-child(3) { animation-delay: 0.2s; }

@keyframes eeg-te-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .eeg-te-card--hero {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.9fr);
  }
}

@media (max-width: 980px) {
  .eeg-top-events__layout {
    grid-template-columns: 1fr;
  }

  .eeg-te-card--hero {
    min-height: 0;
  }

  .eeg-te-card--hero .eeg-te-card__media {
    min-height: 240px;
  }
}

@media (max-width: 720px) {
  .eeg-te-card--hero {
    grid-template-columns: 1fr;
  }

  .eeg-te-card--hero .eeg-te-card__media {
    min-height: 220px;
  }

  .eeg-te-card__panel {
    padding: 20px 18px 18px;
  }
}

@media (max-width: 640px) {
  .eeg-top-events--archive {
    margin-bottom: 24px;
  }

  .eeg-top-events {
    border-radius: 20px;
    padding: 8px;
  }

  .eeg-top-events__title {
    font-size: 1.35rem;
  }

  .eeg-te-card--row {
    flex-direction: column;
    gap: 0;
  }

  .eeg-te-cta--compact {
    align-self: stretch;
    margin: 0 10px 10px;
    text-align: center;
  }

  .eeg-te-card--row .eeg-te-card__media {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eeg-te-card,
  .eeg-te-card__media img,
  .eeg-te-card__main,
  .eeg-te-card__shine {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
