/* Tela principal dos ingressos (/ingressos): destaques + busca + cards.
   Usa as variáveis do tema (tickets-theme.css). Prefixos: home-*, billboard-*, spot-*, ev-*. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Topo --------------------------------------------------------------------------- */
.home-stage { padding: 96px 0 0; }
.home-bar { padding: 22px 0 6px; }
.home-bar--top { padding-top: 112px; }

/* Busca -------------------------------------------------------------------------- */
.home-search {
  display: flex; align-items: stretch; gap: 0; padding: 8px; border-radius: 26px; text-align: left;
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 28px 60px -28px rgba(90, 20, 60, .55);
}
.home-search__field {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; padding: 0 16px;
  flex: 0 1 220px; border-left: 1px solid var(--line); cursor: text;
}
.home-search__field--grow { flex: 1 1 auto; border-left: 0; }
.home-search__field > i { color: var(--magenta); font-size: .95rem; flex: none; }
.home-search__field input,
.home-search__field select {
  width: 100%; min-width: 0; height: 52px; padding: 0; border: 0; outline: 0; background: transparent;
  font: 600 1rem/1.2 var(--font); color: var(--ink); appearance: none; -webkit-appearance: none;
}
.home-search__field input::placeholder { color: #8a7f87; font-weight: 500; }
.home-search__field select { cursor: pointer; text-overflow: ellipsis; }
.home-search__field:focus-within { background: rgba(254,113,152,.08); border-radius: 18px; }
.home-search__btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 52px; padding: 0 30px; margin-left: 6px;
  border: 0; border-radius: 20px; background: var(--btn-pink); color: #fff; font: 800 1rem/1 var(--font);
  box-shadow: 0 14px 26px -14px rgba(140, 26, 85, .9); cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), filter .2s;
}
.home-search__btn:hover { transform: translateY(-1px); filter: brightness(1.07); color: #fff; }

/* O tema define "button, input, select {width:100%}": aqui os botões têm largura própria */
.home-search__btn, .home-chip { width: auto; }

/* Chips -------------------------------------------------------------------------- */
.home-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 0; }
.home-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 17px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.9); color: var(--ink);
  font: 700 .9rem/1 var(--font); transition: background .2s, color .2s, transform .2s var(--ease);
}
.home-chip:hover { background: #fff; transform: translateY(-1px); }
.home-chip.is-active { background: var(--magenta); border-color: var(--magenta); color: #fff; }


/* Cabeçalho de seção ------------------------------------------------------------- */
.home-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 0 0 16px; }
.home-section-head h2 { margin: 0; font-size: clamp(1.4rem, 3.2vw, 1.9rem); font-weight: 900; letter-spacing: -.03em; color: var(--ink); }
.home-section-head span { color: var(--muted); font-size: .92rem; font-weight: 600; }
.home-section-head a { color: var(--magenta); font-weight: 800; }

/* Destaques (billboard) ------------------------------------------------------------ */
.billboard { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: stretch; }
.billboard__stage { position: relative; min-width: 0; }
.billboard__track { display: grid; height: 100%; border-radius: 30px; overflow: hidden; box-shadow: 0 34px 60px -34px rgba(60, 10, 40, .75); background: #1d0f18; touch-action: pan-y; }
.billboard__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.billboard__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .5s var(--ease), visibility 0s; }

.spot { position: relative; isolation: isolate; display: flex; align-items: center; gap: 36px; min-height: 460px; padding: 36px 76px; overflow: hidden; color: #fff; text-decoration: none; background: #1d0f18; }
.spot:hover { color: #fff; }
.spot__backdrop { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(34px) saturate(1.25); transform: scale(1.1); opacity: .85; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20, 6, 14, .88) 0%, rgba(20, 6, 14, .62) 55%, rgba(20, 6, 14, .35) 100%); }
.spot__poster { flex: 0 0 auto; width: clamp(170px, 31%, 250px); aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .8); transition: transform .5s var(--ease); }
.spot__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot:hover .spot__poster { transform: scale(1.025) rotate(-.6deg); }
.spot__info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; flex: 1; }
.spot__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.spot__tag { padding: 6px 13px; border-radius: 999px; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.spot__tag--hot { background: #e11d48; border-color: #e11d48; }
.spot__tag--out { background: #141214; border-color: #141214; }
.spot__title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -.035em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.spot__meta { display: flex; align-items: baseline; gap: 9px; font-size: 1.02rem; font-weight: 600; color: rgba(255, 255, 255, .9); }
.spot__meta i { width: 1.1em; flex: none; color: #ff7aa8; }
.spot__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 14px; }
.spot__price small { display: block; font-size: .78rem; font-weight: 600; opacity: .8; line-height: 1.1; }
.spot__price strong { font-size: 1.75rem; font-weight: 900; letter-spacing: -.02em; }
.spot__btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; background: #fff; color: var(--magenta); font-weight: 900; font-size: 1rem; transition: transform .25s var(--ease), box-shadow .25s; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .7); }
.spot:hover .spot__btn { transform: translateY(-2px); box-shadow: 0 20px 34px -16px rgba(0, 0, 0, .8); }
.spot__btn i { transition: transform .25s var(--ease); }
.spot:hover .spot__btn i { transform: translateX(3px); }

.billboard__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; cursor: pointer; background: rgba(20, 6, 14, .45); color: #fff; font-size: .95rem;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, transform .2s var(--ease);
}
.billboard__nav:hover { background: #fff; color: var(--magenta); transform: translateY(-50%) scale(1.08); }
.billboard__nav--prev { left: 18px; }
.billboard__nav--next { right: 18px; }

.billboard__list { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 30px; background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 22px 44px -30px rgba(90, 20, 60, .55); }
.bb-row { position: relative; display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 8px 14px 8px 8px; border-radius: 20px; border: 1px solid transparent; color: var(--ink); text-decoration: none; transition: background .2s, border-color .2s, box-shadow .2s; }
.bb-row:hover { color: var(--ink); }
.bb-row.is-active { background: #fff; border-color: rgba(163, 33, 99, .18); box-shadow: 0 14px 26px -18px rgba(90, 20, 60, .6); }
.bb-row.is-active::before { content: ""; position: absolute; left: -1px; top: 18%; bottom: 18%; width: 4px; border-radius: 4px; background: var(--magenta); }
.bb-row__thumb { flex: none; width: 52px; height: 66px; border-radius: 13px; overflow: hidden; background: #e9dfe4; }
.bb-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-row__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.bb-row__date { font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--magenta); }
.bb-row__title { font-size: .95rem; font-weight: 900; line-height: 1.2; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bb-row__price { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; line-height: 1.15; }
.bb-row__price small { font-size: .66rem; font-weight: 600; color: var(--muted); }
.bb-row__price strong { font-size: .95rem; font-weight: 900; color: var(--ink); white-space: nowrap; }
.bb-row__meta { font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1099px) {
  .billboard { grid-template-columns: 1fr; }
  .billboard__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .spot { min-height: 0; }
}
@media (max-width: 991px) { .spot { gap: 32px; padding: 34px 76px; } }
@media (max-width: 767px) {
  .home-stage { padding-top: 84px; }
  .billboard { gap: 12px; }
  .billboard__track { border-radius: 24px; }
  .spot { flex-direction: column; align-items: stretch; gap: 14px; min-height: 0; padding: 12px 12px 16px; }
  .spot__poster { width: 100%; aspect-ratio: 16 / 10; border-radius: 16px; box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .8); }
  .spot__poster img { object-position: center 22%; }
  .spot__info { align-items: stretch; gap: 8px; padding: 0 6px; }
  .spot__tags { align-self: flex-start; }
  .spot__title { font-size: 1.45rem; -webkit-line-clamp: 2; }
  .spot__meta { font-size: .95rem; }
  .spot__foot { flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
  .spot__price strong { font-size: 1.45rem; }
  .spot__btn { flex: none; justify-content: center; padding: 13px 20px; font-size: .95rem; }
  .spot__btn:only-child { flex: 1; }
  .billboard__nav { display: none; }
  .billboard__list { grid-template-columns: 1fr; padding: 8px; border-radius: 24px; }
  .bb-row { padding: 6px 12px 6px 6px; }
  .bb-row__thumb { width: 46px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) { .billboard__slide, .spot__poster, .spot__btn, .bb-row { transition: none; } }

.ev-flag { position: absolute; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px; font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: #fff; z-index: 2; }
.ev-flag--hot  { background: #e11d48; }
.ev-flag--out  { background: #141214; }
.ev-flag--past { background: #6b6068; }

/* Resultados --------------------------------------------------------------------- */
.home-results { padding: 14px 0 20px; }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ev-card {
  display: flex; flex-direction: column; padding: 0; border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 22px 44px -28px rgba(90, 20, 60, .55);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.ev-card:hover { transform: translateY(-5px); box-shadow: 0 30px 52px -28px rgba(90, 20, 60, .7); color: var(--ink); }
.ev-card__poster { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #e9dfe4; }
.ev-card__poster > img:first-child { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.ev-card:hover .ev-card__poster > img:first-child { transform: scale(1.04); }
.ev-card.is-past .ev-card__poster > img:first-child { filter: grayscale(1) opacity(.7); }
.ev-card__date {
  position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; align-items: center; min-width: 52px; padding: 8px 10px;
  border-radius: 16px; background: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; line-height: 1.1; box-shadow: 0 8px 18px -10px rgba(0,0,0,.5);
}
.ev-card__date strong { font-size: 1.35rem; font-weight: 900; }
.ev-card__age { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 6px; }
.ev-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.ev-card__title { font-size: 1.12rem; font-weight: 900; line-height: 1.2; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.ev-card__meta { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; color: var(--muted); font-weight: 600; }
.ev-card__meta i { width: 1.1em; margin-right: 4px; color: var(--magenta); }
.ev-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.ev-card__price small { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; line-height: 1.1; }
.ev-card__price strong { font-size: 1.15rem; font-weight: 900; color: var(--ink); }
.ev-card__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--btn-pink); color: #fff; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.ev-card.is-past .ev-card__btn { background: #6b6068; }

.home-empty { padding: 46px 20px; border-radius: 26px; text-align: center; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); }
.home-empty > i { font-size: 2.4rem; color: var(--magenta); }
.home-empty h3 { margin: 10px 0 4px; font-weight: 900; }
.home-empty p { margin: 0 0 18px; color: var(--muted); }

.home-pager { display: flex; justify-content: center; margin-top: 26px; }
.home-pager .pagination { gap: 6px; flex-wrap: wrap; justify-content: center; }
.home-pager .page-link { border-radius: 12px !important; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.7); color: var(--ink); font-weight: 700; }
.home-pager .page-item.active .page-link { background: var(--magenta); border-color: var(--magenta); color: #fff; }

/* Responsivo --------------------------------------------------------------------- */
@media (max-width: 991px) { .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 767px) {
  .home-bar--top { padding-top: 92px; }
  .home-search { flex-direction: column; padding: 10px; gap: 4px; border-radius: 24px; }
  .home-search__field, .home-search__field--grow { flex: none; border-left: 0; border-top: 1px solid var(--line); padding: 0 12px; }
  .home-search__field--grow { border-top: 0; }
  .home-search__btn { margin: 6px 0 0; width: 100%; }
  .home-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 4px 6px; margin-inline: -4px; scrollbar-width: none; }
  .home-chips::-webkit-scrollbar { display: none; }
  .home-chip { flex: none; }
}
@media (max-width: 520px) {
  .home-grid { grid-template-columns: 1fr; }
  .ev-card { flex-direction: row; border-radius: 22px; }
  .ev-card__poster { flex: 0 0 38%; aspect-ratio: auto; min-height: 190px; }
  .ev-card__date { top: 10px; left: 10px; min-width: 44px; padding: 6px 8px; }
  .ev-card__age { display: none; }
  .ev-card__body { padding: 14px; }
  .ev-card__btn { display: none; }
  .ev-flag { top: auto; bottom: 10px; right: auto; left: 10px; font-size: .64rem; padding: 4px 9px; }
}
@media (prefers-reduced-motion: reduce) { .ev-card, .ev-card__poster > img:first-child { transition: none; } }

/* Linhas de chips rolam na horizontal sem barra visível */
.home-chips { scrollbar-width: none; }
.home-chips::-webkit-scrollbar { display: none; height: 0; }
