/* Coverflow d'esdeveniments. Només tokens de :root / launch.css. */
main .drift-hero {
  display: none !important;
}

.ev-cover {
  --ev-slide: min(38vw, 560px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  height: calc(100dvh - var(--header-h, 7.65rem));
  min-height: calc(100dvh - var(--header-h, 7.65rem));
  max-height: calc(100dvh - var(--header-h, 7.65rem));
  box-sizing: border-box;
  background:
    radial-gradient(720px 520px at 50% 48%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #071018 0%, #0c1824 46%, #050505 100%);
  padding: 1.15rem 0 1rem;
}

.ev-cover__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  mix-blend-mode: overlay;
}

.ev-head,
.ev-meta {
  position: relative;
  z-index: 2;
  width: min(1080px, calc(100% - 10vw));
  margin: 0 auto;
}

.ev-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}

.ev-kicker,
.ev-cat,
.ev-tabs button,
.ev-sound {
  font-family: var(--font-body), Barlow, sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.ev-kicker {
  margin: 0 0 0.22rem;
  color: var(--accent);
}

.ev-head h2,
.ev-name {
  margin: 0;
  font-family: var(--font-display), Impact, sans-serif;
  font-style: italic;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.ev-head h2 {
  font-size: clamp(1.85rem, 3.1vw, 2.85rem);
  color: #fff;
  text-shadow: none;
}

.ev-head__tools {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}

.ev-tabs {
  display: none !important;
}

.ev-tabs button,
.ev-sound,
.ev-nav {
  background: transparent;
  color: var(--fg-muted);
  border: 0;
  cursor: pointer;
}

.ev-tabs button {
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.ev-tabs button[aria-selected="true"] {
  color: var(--fg);
  border-bottom-color: var(--accent);
}

.ev-sound {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--fg-dim);
}

.ev-sound[aria-pressed="true"] {
  color: var(--accent);
}

.ev-sound svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.ev-stage {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0.15rem;
  padding: 1.45rem 0 1.15rem;
  display: flex;
  align-items: stretch;
}

.ev-glow {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 0;
  width: min(560px, 48vw);
  height: 70%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(10px);
}

.ev-cover .swiper {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0 auto;
}

.ev-cover .swiper-wrapper,
.ev-cover .swiper-slide {
  height: 100%;
}

.ev-cover .swiper-slide {
  width: var(--ev-slide);
  display: flex;
  align-items: stretch;
}

.ev-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1.05rem;
  background: #111 center / cover no-repeat;
  border: 1px solid rgb(255 255 255 / 0.14);
  opacity: 0.92;
  filter: none;
  box-shadow: 0 16px 36px rgb(0 0 0 / 0.35);
  transform: translateZ(0);
}

.ev-card::after {
  display: none;
}

.ev-cover .swiper-slide-active .ev-card {
  opacity: 1;
  filter: saturate(1.04) contrast(1.02);
  box-shadow:
    0 22px 48px rgb(0 0 0 / 0.42),
    0 0 0 1px color-mix(in srgb, var(--accent) 70%, white);
}

.ev-cover .swiper-slide-active .ev-card::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  z-index: 2;
  pointer-events: none;
  border-radius: 0.7rem;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, white);
}

.ev-cover.is-ready .ev-card {
  transition: opacity 0.45s var(--ease-motor), filter 0.45s var(--ease-motor), box-shadow 0.45s var(--ease-motor);
}

.ev-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.ev-bar {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  left: 1.1rem;
  z-index: 3;
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 18%, transparent);
  opacity: 0;
}

.ev-cover .swiper-slide-active .ev-bar {
  opacity: 1;
}

.ev-bar > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.ev-cover .swiper-slide-shadow-left,
.ev-cover .swiper-slide-shadow-right,
.ev-cover .swiper-slide-shadow-coverflow {
  display: none;
}

.ev-stage::before,
.ev-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 6vw;
  pointer-events: none;
}

.ev-stage::before {
  left: 0;
  background: linear-gradient(90deg, #071018, transparent);
}

.ev-stage::after {
  right: 0;
  background: linear-gradient(270deg, #050505, transparent);
}

.ev-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  color: var(--fg);
  transform: translateY(-50%);
}

.ev-nav--prev { left: max(1rem, 3vw); }
.ev-nav--next { right: max(1rem, 3vw); }

.ev-nav svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.ev-tabs button:hover,
.ev-sound:hover,
.ev-nav:hover {
  color: var(--fg);
}

.ev-tabs button:focus-visible,
.ev-sound:focus-visible,
.ev-nav:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.ev-meta {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.1rem 1.25rem;
  align-items: center;
  margin: 0.15rem auto 0;
  padding-bottom: 0.1rem;
  pointer-events: none;
}

.ev-index {
  margin: 0;
  font-family: var(--font-body), Barlow, sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.22em;
  color: rgb(255 255 255 / 0.45);
}

.ev-cat {
  margin: 0 0 0.28rem;
  color: var(--accent);
}

.ev-name {
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  line-height: 1;
  color: #fff;
}

.ev-date {
  margin: 0.35rem 0 0;
  color: var(--fg-muted);
  font-family: var(--font-body), Barlow, sans-serif;
  font-size: 0.95rem;
}

#ev-cover.band-white,
#ev-cover.band-black {
  background:
    radial-gradient(720px 520px at 50% 48%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #071018 0%, #0c1824 46%, #050505 100%) !important;
  color: #fff !important;
}

#ev-cover.band-white h2,
#ev-cover.band-white .ev-name,
#ev-cover.band-black h2,
#ev-cover.band-black .ev-name {
  color: #fff !important;
  text-shadow: none !important;
}

#ev-cover.band-white .ev-index,
#ev-cover.band-black .ev-index {
  color: rgb(255 255 255 / 0.45) !important;
}

#ev-cover.band-white .ev-tabs button,
#ev-cover.band-black .ev-tabs button,
#ev-cover.band-white .ev-sound,
#ev-cover.band-black .ev-sound,
#ev-cover.band-white .ev-date,
#ev-cover.band-black .ev-date {
  color: rgb(255 255 255 / 0.62) !important;
}

#ev-cover.band-white .ev-tabs button[aria-selected="true"],
#ev-cover.band-black .ev-tabs button[aria-selected="true"],
#ev-cover.band-white .ev-kicker,
#ev-cover.band-white .ev-cat,
#ev-cover.band-black .ev-kicker,
#ev-cover.band-black .ev-cat {
  color: var(--accent) !important;
}

@media (max-width: 800px) {
  .ev-cover {
    --ev-slide: min(72vw, 380px);
    padding: 0.85rem 0 0.75rem;
  }

  .ev-head,
  .ev-head__tools {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .ev-head__tools {
    flex-direction: column;
    gap: 0.65rem;
  }

  .ev-tabs {
    display: none !important;
  }

  .ev-tabs button {
    flex: none;
  }

  .ev-meta {
    grid-template-columns: 1fr;
  }

  .ev-nav {
    width: 2.3rem;
    height: 2.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-cover .ev-card,
  .ev-cover .ev-bar > span {
    transition: none !important;
    filter: none !important;
  }
}
