/* ═══════════════════════════════════════════════════════════
   MOMMENTOS — EVENTOS
   Agenda (Index) · Detalhe · Meus eventos · Criar/Editar
   Baseado no protótipo eventos.html (css/pages/eventos.css).
   ═══════════════════════════════════════════════════════════ */

.ag [hidden],
.evd [hidden],
.mev [hidden],
.evf [hidden] {
  display: none !important;
}

.ag,
.evd,
.mev,
.evf {
  padding-bottom: clamp(72px, 10vw, 140px);
  overflow-x: clip;
}

/* Pastilhas de gradiente (paletas de mm.js) */
[data-mood='aubergine'].ag-swatch { --sw: linear-gradient(135deg, #1d0f33, #7c3aed 55%, #c9a24d); }
[data-mood='ocean'].ag-swatch { --sw: linear-gradient(135deg, #071a2e, #0ea5e9 55%, #7c3aed); }
[data-mood='garden'].ag-swatch { --sw: linear-gradient(135deg, #0b1f17, #16a34a 55%, #c9a24d); }
[data-mood='sunset'].ag-swatch { --sw: linear-gradient(135deg, #2a0f12, #f97316 55%, #db2777); }
[data-mood='gold'].ag-swatch { --sw: linear-gradient(135deg, #1f1606, #c9a24d 55%, #7c3aed); }
[data-mood='night'].ag-swatch { --sw: linear-gradient(135deg, #07061a, #4338ca 55%, #a855f7); }
[data-mood='rose'].ag-swatch { --sw: linear-gradient(135deg, #2a0b1c, #ec4899 55%, #c9a24d); }
[data-mood='jade'].ag-swatch { --sw: linear-gradient(135deg, #06201d, #0d9488 55%, #a855f7); }

.ag-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sw, var(--grad-brand));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* ═════════════ AGENDA ═════════════ */

/* ── Cabeçalho editorial ─────────────────────────────────── */
.ag-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
}

.ag-head-text {
  min-width: 0;
}

.ag-title {
  margin-top: 16px;
  font-size: clamp(2.6rem, 1.3rem + 5vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 13ch;
}

.ag-title em {
  padding-right: 0.08em;
}

.ag-sub {
  margin-top: 20px;
  max-width: 50ch;
  font-size: var(--fs-md);
  color: var(--ink-3);
}

.ag-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.ag-stats {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  padding-bottom: 6px;
}

.ag-stats > div {
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}

.ag-stats dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.ag-stats dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ag-stats dd.ag-stats-txt {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--purple);
}

.ag > .container .alert {
  margin-top: 24px;
}

/* ── Destaque cinematográfico ────────────────────────────── */
.ag-hero-wrap {
  max-width: 1560px;
  margin: clamp(32px, 5vw, 56px) auto 0;
  padding-inline: clamp(10px, 1.6vw, 24px);
}

.ag-hero-cover {
  min-height: clamp(560px, 80vh, 780px);
  border-radius: clamp(24px, 3vw, 40px) !important;
  box-shadow: var(--shadow-lg);
}

.ag-hero-cover.cover--shade::after {
  background:
    linear-gradient(180deg, rgba(5, 4, 10, 0.35) 0%, rgba(5, 4, 10, 0) 30%),
    linear-gradient(180deg, rgba(5, 4, 10, 0) 38%, rgba(5, 4, 10, 0.8) 100%),
    linear-gradient(90deg, rgba(5, 4, 10, 0.4) 0%, rgba(5, 4, 10, 0) 60%);
}

.ag-hero-cover .cover-glyph {
  font-size: clamp(220px, 40cqi, 560px);
  color: rgba(255, 255, 255, 0.1);
}

.ag-hero-cover > .cover-content {
  position: static;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: inherit;
  padding: clamp(20px, 4vw, 56px);
}

.ag-hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 200px);
}

.ag-live {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f3d48a;
}

.ag-live::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid #f3d48a;
  animation: ag-pulse 1.8s var(--ease) infinite;
}

@keyframes ag-pulse {
  from { transform: scale(0.5); opacity: 1; }
  to { transform: scale(1.7); opacity: 0; }
}

.ag-hero-big {
  position: absolute;
  top: clamp(20px, 4vw, 56px);
  right: clamp(20px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 0.78;
  color: #fff;
  pointer-events: none;
}

.ag-hero-big span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(6rem, 3rem + 10vw, 13rem);
  letter-spacing: -0.05em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.ag-hero-big em {
  margin-top: 0.35em;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(0.9rem, 0.6rem + 0.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.ag-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
}

.ag-hero-copy {
  min-width: 0;
}

.ag-hero-when,
.ag-hero-place {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.ag-hero-when svg,
.ag-hero-place svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #f3d48a;
}

.ag-hero-title {
  margin-top: 14px;
  max-width: 15ch;
  font-size: clamp(2.2rem, 1rem + 4.4vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  color: #fff;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.25);
}

.ag-hero-desc {
  margin-top: 18px;
  max-width: 54ch;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.ag-hero-place {
  display: flex;
  margin-top: 12px;
}

.ag-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.ag-btn-white {
  background: #fff;
  color: #17121f;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55);
}

.ag-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.6);
}

.ag-btn-white svg,
.ag-btn-glass svg {
  width: 17px;
  height: 17px;
  transition: transform var(--t);
}

.ag-btn-white:hover svg {
  transform: translateX(4px);
}

.ag-btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ag-btn-glass:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Contagem decrescente (sobre a capa) */
.ag-cd-card {
  width: 340px;
  max-width: 100%;
  padding: 22px;
  border-radius: 26px;
  background: rgba(10, 9, 16, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ag-cd-label,
.evd-cd-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ag-cd-label {
  color: rgba(255, 255, 255, 0.7);
}

.ag-cd,
.evd-cd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.ag-cd > div,
.evd-cd-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

.ag-cd > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.ag-cd b,
.evd-cd-grid b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Só dias/horas/minutos animam (os segundos ficam nítidos) */
.ag-cd b.tick,
.evd-cd-grid b.tick {
  animation: ag-tick 0.45s var(--ease);
}

@keyframes ag-tick {
  from { transform: translateY(-35%); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}

.ag-cd small,
.evd-cd-grid small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ag-cd small {
  color: rgba(255, 255, 255, 0.62);
}

.ag-cd-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ag-cd-foot small {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.7);
}

.ag-cd-foot strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f3d48a;
  white-space: nowrap;
}

.is-live .ag-cd b,
.is-live .evd-cd-grid b {
  opacity: 0.35;
}

/* ── A acontecer agora ───────────────────────────────────── */
.ag-now {
  margin-top: clamp(32px, 4vw, 48px);
}

.ag-now-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.ag-now-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-lg);
}

.ag-now-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--danger);
}

.ag-now-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--danger);
  animation: ag-pulse 1.6s var(--ease) infinite;
}

.ag-now-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.ag-now-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 10px 12px 10px 10px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  scroll-snap-align: start;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.ag-now-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple-line);
  box-shadow: var(--shadow);
}

.ag-now-thumb {
  width: 56px;
  height: 56px;
  min-height: 0;
  border-radius: 14px !important;
}

.ag-now-thumb .cover-glyph,
.ag-row-thumb .cover-glyph,
.mev-thumb-cover .cover-glyph {
  font-size: 46px;
  right: 2px;
  bottom: -6px;
  color: rgba(255, 255, 255, 0.4);
}

.ag-now-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ag-now-body strong {
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ag-now-body small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ag-now-body small svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.ag-now-go,
.ag-row-go {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-sunken);
  color: var(--ink);
  transition: all var(--t);
}

.ag-now-go svg,
.ag-row-go svg {
  width: 16px;
  height: 16px;
}

.ag-now-card:hover .ag-now-go,
.ag-row:hover .ag-row-go {
  background: var(--grad-brand);
  color: #fff;
  transform: rotate(45deg);
}

/* ── Ticker ──────────────────────────────────────────────── */
.ag-ticker {
  margin-top: clamp(28px, 4vw, 48px);
  padding-block: 18px;
  border-block: 1px solid var(--line);
}

.ag-ticker .marquee-track {
  gap: 0;
  padding-right: 0;
}

.ag-tick {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.ag-tick b {
  margin-right: 12px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--purple);
}

.ag-tick i {
  margin-inline: 26px;
  font-style: normal;
  color: var(--gold);
}

/* ── Explorar ────────────────────────────────────────────── */
.ag-explore {
  padding-top: clamp(56px, 8vw, 104px);
}

.ag-explore-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.ag-explore-head .section-title {
  margin-top: 10px;
}

.ag-views svg {
  width: 16px;
  height: 16px;
}

/* Pesquisa (GET) */
.ag-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px auto;
  gap: 10px;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 8px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.ag-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding-left: 14px;
  color: var(--ink-3);
}

.ag-search-field svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ag-search-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.ag-search-field input::placeholder {
  color: var(--ink-3);
}

.ag-search-field:focus-within {
  color: var(--purple);
}

.ag-sort .select {
  min-height: 48px;
  background-color: var(--surface-2);
  border-color: var(--line);
}

.ag-search-btn {
  min-height: 48px;
}

.ag-search-btn svg {
  width: 17px;
  height: 17px;
}

/* Barra de filtros */
.ag-toolbar {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-bottom: clamp(20px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
}

.ag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ag-chips .chip,
.ag-toggle,
.ag-qchip {
  height: 40px;
  gap: 8px;
}

.ag-toggle svg,
.ag-qchip svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.ag-subchips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border-radius: var(--r-lg);
  background: var(--surface-sunken);
}

.ag-subchips-label {
  padding: 0 10px 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ag-sub {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast);
}

.ag-sub:hover {
  color: var(--ink);
  background: var(--surface);
}

.ag-sub.is-active {
  background: var(--surface);
  color: var(--purple);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--purple-line);
}

.ag-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ag-qchip {
  max-width: min(260px, 100%);
  min-width: 0;
  border-color: var(--purple-line);
  background: var(--purple-soft);
  color: var(--purple-ink);
}

.ag-count {
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.ag-count b {
  font-family: var(--font-display);
  color: var(--ink);
}

.ag-results {
  margin-top: clamp(24px, 3vw, 40px);
  min-height: 240px;
}

/* ── Vista: Cartaz ───────────────────────────────────────── */
.ag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.ag-poster {
  position: relative;
  min-width: 0;
  border-radius: var(--r-xl);
}

.ag-grid .vcard-cover {
  aspect-ratio: 4 / 5;
}

.ag-grid .vcard-name {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.ag-grid .vcard:hover .vcard-cover {
  box-shadow: var(--shadow-lg);
}

/* Desfasamento editorial da coluna do meio (só com 3 colunas) */
@media (min-width: 961px) {
  .ag-grid {
    padding-bottom: clamp(48px, 5vw, 80px);
  }

  .ag-grid > .ag-poster:not([hidden]):nth-child(3n + 2) {
    top: clamp(48px, 5vw, 80px);
  }
}

.ag-edit {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  color: #17121f;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.55);
  transition: transform var(--t-fast), background var(--t-fast);
}

.ag-edit:hover {
  transform: translateY(-1px);
  background: #fff;
}

.ag-edit svg {
  width: 15px;
  height: 15px;
}

.ag-poster.is-own .vcard-price {
  top: 62px;
}

/* ── Linhas de evento ────────────────────────────────────── */
.ag-tl-items,
.ag-day-list {
  container-type: inline-size;
}

.ag-row {
  display: grid;
  grid-template-columns: 64px 76px minmax(0, 1fr) auto 38px;
  grid-template-areas: 'thumb time main star go';
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 10px 14px 10px 10px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.ag-row:hover {
  transform: translateY(-2px);
  border-color: var(--purple-line);
  box-shadow: var(--shadow);
}

.ag-row-thumb {
  grid-area: thumb;
  display: block;
  width: 64px;
  height: 64px;
  min-height: 0;
  border-radius: 14px !important;
}

.ag-row-time {
  grid-area: time;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.ag-row-time b {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ag-row-time small {
  font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.ag-row-main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ag-row-name {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ag-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.ag-row-meta .truncate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.ag-row-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ag-row-cat {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--purple);
}

.ag-row-star {
  grid-area: star;
  color: var(--gold);
}

.ag-row-star svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.ag-row-go {
  grid-area: go;
  width: 38px;
  height: 38px;
}

@container (max-width: 560px) {
  .ag-row {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    grid-template-areas:
      'thumb main main'
      'thumb time star';
    column-gap: 14px;
    row-gap: 6px;
  }

  .ag-row-thumb {
    width: 60px;
    height: 60px;
    align-self: start;
  }

  .ag-row-time {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }

  .ag-row-time b {
    font-size: var(--fs-sm);
  }

  .ag-row-go {
    display: none;
  }

  .ag-row-meta {
    gap: 8px;
    font-size: var(--fs-xs);
  }
}

/* ── Vista: Linha do tempo ───────────────────────────────── */
.ag-tl {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ag-tl-month {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: clamp(28px, 4vw, 48px) 0 16px;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.ag-tl-month:first-child {
  padding-top: 0;
}

.ag-tl-month em {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink-3);
}

.ag-tl-month::after {
  content: '';
  flex: 1;
  height: 1px;
  margin-left: 12px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.ag-tl-day {
  display: grid;
  grid-template-columns: clamp(96px, 14vw, 180px) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(18px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
}

.ag-tl-month + .ag-tl-day {
  border-top: 0;
}

.ag-tl-date {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.ag-tl-num {
  padding-right: 0.06em;
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 1.8rem + 5.6vw, 7.5rem);
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.ag-tl-day:hover .ag-tl-num {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ag-tl-dow {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ag-tl-rel {
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.ag-tl-items {
  display: grid;
  gap: 10px;
  min-width: 0;
}

/* ── Vista: Calendário ───────────────────────────────────── */
.ag-calwrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}

.ag-cal {
  padding: clamp(18px, 2.6vw, 32px);
}

.ag-cal .cal-title {
  font-size: var(--fs-lg);
}

.ag-cal .cal-day.is-event:not(.is-selected) {
  box-shadow: inset 0 0 0 1px var(--purple-line);
}

.ag-daypanel {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
}

.ag-day-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.ag-day-num {
  padding-right: 0.06em;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 0.8;
  letter-spacing: -0.04em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ag-day-dow {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.ag-day-rel {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.ag-day-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ag-day-empty {
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 40px 12px 20px;
  text-align: center;
  color: var(--ink-3);
}

.ag-day-empty > svg {
  width: 30px;
  height: 30px;
  color: var(--purple);
}

.ag-day-empty .btn {
  min-height: 44px;
}

/* ── Vazio · paginação ───────────────────────────────────── */
.ag-empty {
  padding-block: clamp(56px, 8vw, 96px);
}

.ag-empty-ico {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
}

.ag-empty-ico svg {
  width: 26px;
  height: 26px;
}

.ag-empty p {
  max-width: 42ch;
}

.ag-empty .btn {
  margin-top: 8px;
}

.ag-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(32px, 5vw, 56px);
}

.ag-pager .btn {
  min-height: 48px;
}

.ag-pager-num {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.ag-pager-num b {
  font-family: var(--font-display);
  color: var(--ink);
}

/* ═════════════ DETALHE ═════════════ */
.evd .breadcrumb {
  flex-wrap: nowrap;
  min-width: 0;
}

.evd .breadcrumb > * {
  flex-shrink: 0;
}

.evd .breadcrumb > .truncate {
  flex-shrink: 1;
  min-width: 0;
}

.evd-hero {
  min-height: clamp(440px, 64vh, 640px);
  border-radius: clamp(24px, 3vw, 40px) !important;
  box-shadow: var(--shadow-lg);
}

.evd-hero.cover--shade::after {
  background:
    linear-gradient(180deg, rgba(5, 4, 10, 0.4) 0%, rgba(5, 4, 10, 0) 28%),
    linear-gradient(180deg, rgba(5, 4, 10, 0) 36%, rgba(5, 4, 10, 0.82) 100%);
}

.evd-hero .cover-glyph {
  font-size: clamp(200px, 36cqi, 480px);
  color: rgba(255, 255, 255, 0.1);
}

.evd-hero > .cover-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: inherit;
  padding: clamp(20px, 4vw, 52px);
}

.evd-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.evd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.evd-star svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.evd-round {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(10, 9, 16, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background var(--t-fast), transform var(--t-fast);
}

.evd-round:hover {
  background: rgba(10, 9, 16, 0.65);
  transform: scale(1.05);
}

.evd-round svg {
  width: 18px;
  height: 18px;
}

.evd-hero-bottom {
  display: flex;
  align-items: flex-end;
  gap: clamp(18px, 3vw, 40px);
  min-width: 0;
}

.evd-bigdate {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 0.8;
  color: #fff;
}

.evd-bigdate span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(5rem, 2.6rem + 8vw, 10rem);
  letter-spacing: -0.05em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.evd-bigdate em {
  margin-top: 0.6em;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.evd-hero-copy {
  min-width: 0;
  padding-bottom: 6px;
}

.evd-title {
  max-width: 18ch;
  font-size: clamp(2rem, 1rem + 3.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  color: #fff;
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.25);
}

.evd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.evd-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.evd-hero-meta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #f3d48a;
}

.evd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 48px);
}

.evd-main {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  min-width: 0;
}

.evd-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agm-fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.agm-fact > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.agm-fact-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
}

.agm-fact-ico svg {
  width: 18px;
  height: 18px;
}

.agm-fact small {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.agm-fact strong {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.agm-fact span {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.agm-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--purple);
}

.agm-link svg {
  width: 14px;
  height: 14px;
}

.agm-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.evd-section {
  min-width: 0;
}

.evd-desc {
  margin-top: 16px;
  font-size: var(--fs-md);
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.evd-desc::first-letter {
  float: left;
  margin: 6px 12px 0 0;
  font-family: var(--font-serif);
  font-size: 3.6em;
  line-height: 0.8;
  color: var(--purple);
}

.evd-desc-empty {
  margin-top: 14px;
  font-style: italic;
  color: var(--ink-3);
}

.evd-reviews {
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
}

.evd-h2 {
  margin: 10px 0 20px;
  font-size: var(--fs-2xl);
}

.evd-reviews > div + div {
  margin-top: 20px;
}

/* Bilhete lateral */
.evd-aside {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: grid;
  gap: 14px;
  min-width: 0;
}

.evd-ticket {
  overflow: hidden;
  padding: 0;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}

.evd-ticket-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-bottom: 1px dashed var(--line-strong);
}

.evd-cal {
  display: grid;
  place-items: center;
  width: 64px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  line-height: 1;
}

.evd-cal-mon {
  width: 100%;
  padding: 6px 0;
  background: var(--grad-brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.evd-cal-day {
  padding: 8px 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.evd-ticket-when {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.evd-ticket-when strong {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.evd-ticket-when span {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.evd-cd {
  padding: 18px 22px;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line);
}

.evd-cd-label {
  color: var(--ink-3);
}

.evd-cd-grid {
  margin-top: 10px;
}

.evd-cd-grid > div + div {
  border-left: 1px solid var(--line);
}

.evd-cd-grid b {
  font-size: 1.7rem;
  color: var(--ink);
}

.evd-cd-grid small {
  font-size: 10px;
  color: var(--ink-3);
}

.evd-ticket-rows {
  display: grid;
  gap: 10px;
  padding: 18px 22px 4px;
}

.evd-ticket-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.evd-ticket-row svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--purple);
}

.evd-ticket-actions {
  display: grid;
  gap: 8px;
  padding: 16px 22px 22px;
}

.evd-ticket-actions .btn {
  min-height: 48px;
}

.evd-ticket-actions svg,
.evd-owner svg,
.evd-back svg {
  width: 17px;
  height: 17px;
}

.evd-owner {
  display: grid;
  gap: 12px;
  padding: 16px 22px 22px;
  border-top: 1px solid var(--line);
  background: var(--purple-soft);
}

.evd-owner-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--purple-ink);
}

.evd-owner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.evd-owner-actions form,
.evd-owner-actions .btn {
  width: 100%;
  min-height: 44px;
}

.evd-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-3);
}

.evd-back:hover {
  color: var(--purple);
}

/* ═════════════ MEUS EVENTOS ═════════════ */
.mev-ico-success {
  background: var(--success-soft) !important;
  color: var(--success) !important;
}

.mev-ico-warning {
  background: var(--warning-soft) !important;
  color: var(--warning) !important;
}

.mev-ico-gold {
  background: var(--gold-soft) !important;
  color: var(--gold-ink) !important;
}

.mev-stats .stat-card-ico svg {
  width: 19px;
  height: 19px;
}

.mev-toolbar {
  margin-bottom: 18px;
}

.mev-toolbar .segmented small {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.mev-list {
  display: grid;
  gap: 12px;
}

.mev-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  min-width: 0;
  padding: 12px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color var(--t), box-shadow var(--t);
}

.mev-item:hover {
  border-color: var(--purple-line);
  box-shadow: var(--shadow);
}

.mev-item.is-past .mev-thumb {
  filter: grayscale(0.7);
  opacity: 0.8;
}

.mev-thumb {
  display: block;
  min-width: 0;
}

.mev-thumb-cover {
  display: block;
  aspect-ratio: 4 / 3;
  min-height: 0;
  border-radius: var(--r-lg) !important;
}

.mev-thumb-cover > .cover-content {
  padding: 10px;
}

.mev-thumb-cover .vcard-date {
  width: 46px;
  padding: 6px 0 5px;
  border-radius: 12px;
}

.mev-thumb-cover .vcard-date strong {
  font-size: 18px;
}

.mev-thumb-cover .vcard-date span {
  font-size: 10px;
}

.mev-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.mev-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mev-name {
  font-size: var(--fs-lg);
  line-height: 1.2;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.mev-name a:hover {
  color: var(--purple);
}

.mev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.mev-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.mev-meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.mev-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 6px;
}

.mev-actions .btn {
  min-height: 40px;
}

.mev-actions svg {
  width: 16px;
  height: 16px;
}

.mev-del {
  color: var(--danger) !important;
}

.mev-del:hover {
  background: var(--danger-soft) !important;
}

/* ═════════════ CRIAR / EDITAR ═════════════ */
.evf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.evf-main {
  min-width: 0;
}

.evf .form-card-head h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.evf .form-card-head .badge {
  font-family: var(--font-body);
  font-size: 11px;
}

.evf-upload {
  min-height: 220px;
}

.evf-upload-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
}

.evf-upload-ico svg {
  width: 22px;
  height: 22px;
}

.evf-upload-text {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink);
}

.evf-upload-text em {
  font-style: normal;
  color: var(--purple);
}

/* Com imagem: a pré-visualização ocupa a zona inteira */
.evf-upload img[data-preview] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  object-fit: cover;
  pointer-events: none;
}

.evf-upload.has-image {
  min-height: 280px;
  border-style: solid;
}

.evf-upload.has-image::after {
  content: 'Clique ou largue outra imagem para trocar';
  position: absolute;
  inset: auto 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(5, 4, 10, 0.7));
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 600;
  pointer-events: none;
}

.evf-upload-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(10, 9, 16, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}

.evf-upload-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.evf-upload-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: var(--fs-sm);
  color: var(--success);
}

.evf-upload-name span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--ink-2);
}

.evf-upload-name svg,
.evf-upload-bar .btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.evf-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-md);
  color: var(--ink-3);
}

.evf-or::before,
.evf-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.evf-visibility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
}

.evf-visibility-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.evf-visibility-text strong {
  font-family: var(--font-display);
  color: var(--ink);
}

.toggle-label {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.evf-visibility-hint {
  display: block;
  margin-top: 10px;
}

/* Checkbox com o aspecto do .switch */
.evf-switch {
  position: relative;
  width: 50px;
  height: 30px;
  flex-shrink: 0;
  margin: 0;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background var(--t);
}

.evf-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform var(--t) var(--ease-spring);
}

.evf-switch:checked {
  background: var(--grad-brand);
}

.evf-switch:checked::after {
  transform: translateX(20px);
}

.evf-switch:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Barra de acções fixa */
.evf-bar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 10px 10px 18px;
  border-radius: var(--r-xl);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

.evf-bar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.evf-bar svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.evf-bar .btn {
  min-height: 46px;
}

/* Lateral: pré-visualização + dicas */
.evf-aside {
  min-width: 0;
}

.evf-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: grid;
  gap: 14px;
}

.evf-preview .vcard-date,
.evf-preview-cover .vcard-overlay {
  position: relative;
}

.evf-preview-cover {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl) !important;
  box-shadow: var(--shadow-lg);
}

.evf-preview-cover > .cover-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 18px;
}

.evf-preview-cover .vcard-name {
  overflow-wrap: anywhere;
}

.evf-tips h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-md);
}

.evf-tips h3 svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.evf-tips ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

.evf-tips li::marker {
  color: var(--purple);
}

/* ═════════════ RESPONSIVO ═════════════ */
@media (max-width: 1080px) {
  .evd-layout,
  .evf-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .evd-aside {
    position: static;
  }

  .evf-aside {
    order: -1;
  }

  .evf-sticky {
    position: static;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    align-items: start;
  }

  .evf-sticky > .eyebrow {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .ag-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .ag-hero-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .ag-cd-card {
    width: 100%;
    max-width: 440px;
  }

  .ag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-calwrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .ag-daypanel {
    position: static;
  }

  .mev-item {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .mev-actions {
    grid-column: 1 / -1;
    padding: 4px 0 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  .mev-actions .btn,
  .mev-actions form {
    flex: 1 1 0;
  }

  .mev-actions form .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .ag-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 4px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }

  .ag-chips::-webkit-scrollbar {
    display: none;
  }

  .ag-chips .chip,
  .ag-toggle,
  .ag-qchip {
    height: 44px;
    flex-shrink: 0;
  }

  .ag-sub {
    min-height: 44px;
  }

  .ag-explore .segmented button {
    min-height: 44px;
  }

  .ag-views {
    width: 100%;
  }

  .ag-views button,
  .ag-period button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .ag-period {
    flex: 1 1 100%;
  }

  .ag-search {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ag-sort {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .ag-search-btn span {
    display: none;
  }

  .evd-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .ag-stats {
    justify-content: space-between;
    gap: 12px;
  }

  .ag-stats > div {
    padding-left: 12px;
  }

  .ag-stats dt {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .ag-hero-cover {
    min-height: 0;
  }

  .ag-hero-top {
    max-width: none;
  }

  .ag-hero-big {
    position: static;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    margin-top: 18px;
  }

  .ag-hero-big span {
    font-size: 6.2rem;
  }

  .ag-hero-big em {
    margin-top: 0;
  }

  .ag-hero-cover > .cover-content {
    justify-content: flex-start;
    gap: 8px;
    padding: 20px;
  }

  .ag-hero-desc {
    display: -webkit-box;
    overflow: hidden;
    font-size: var(--fs-base);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
  }

  .ag-hero-ctas .btn {
    flex: 1 1 140px;
    justify-content: center;
    padding-inline: 18px;
  }

  .ag-hero-main {
    gap: 20px;
  }

  .ag-cd-card {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .ag-views button[aria-selected='false'] span {
    display: none;
  }

  .ag-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ag-tl-day {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .ag-tl-num {
    font-size: 3.4rem;
  }

  .ag-tl-dow {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .ag-tl-rel {
    padding: 2px 8px;
    font-size: 10.5px;
    white-space: normal;
  }

  .ag-cal {
    padding: 16px 12px;
  }

  .ag-now-strip {
    grid-auto-columns: minmax(0, 86%);
  }

  .evd-hero {
    min-height: 480px;
  }

  .evd-hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .evd-bigdate {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }

  .evd-bigdate span {
    font-size: 5rem;
  }

  .evd-bigdate em {
    margin-top: 0;
  }

  .mev-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
  }

  .mev-name {
    font-size: var(--fs-md);
  }

  .mev-actions .btn span,
  .mev-del span {
    display: inline;
  }

  .evf-sticky {
    grid-template-columns: minmax(0, 1fr);
  }

  .evf-preview {
    max-width: 280px;
  }

  .evf-bar {
    bottom: 8px;
    padding: 8px;
  }

  .evf-bar-note {
    display: none;
  }

  .evf-bar .btn {
    flex: 1 1 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ag-row:hover,
  .ag-now-card:hover,
  .ag-btn-white:hover {
    transform: none;
  }

  .ag-live::after,
  .ag-now-dot::after {
    display: none;
  }

  .ag-cd b.tick,
  .evd-cd-grid b.tick {
    animation: none;
  }
}
