/* =========================================================
   CATÁLOGO — rails, cards, faixa de títulos e bottom sheet
   Usa os tokens do tema (--fire, --gradient-fire, --card...)
   ========================================================= */
html.is-locked, html.is-locked body { overflow: hidden; }

.hd-icon { width: 1em; height: 1em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Rails */
.rail { margin-top: 28px; }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.rail__title { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 800; }
.rail__title .hd-icon { width: 20px; height: 20px; color: var(--fire); }
.rail--vip .rail__title .hd-icon { color: #ff9ec4; }
.rail__hint { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted-foreground); }
.tag-18 {
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #ff9ec4;
  border: 1px solid rgba(255, 158, 196, .45);
}

.hscroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.hscroll::-webkit-scrollbar { display: none; }

/* Card */
.card {
  flex: 0 0 clamp(132px, 38vw, 184px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}
main button.card { width: auto; max-width: none; min-height: 0; padding: 0 !important; font-size: inherit !important; }
.card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.card__cat { margin-top: -4px; font-size: 12px; color: var(--muted-foreground); }

.poster {
  --c1: #7a0f2e; --c2: #1a0610;
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background:
    radial-gradient(90% 60% at 80% 10%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.poster::after {
  content: "";
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .7));
  pointer-events: none;
}
.poster img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease;
}
.poster img.is-loaded { opacity: 1; }
.poster__video {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.poster__video.is-playing { opacity: 1; }
.poster__fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 34px 12px 48px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: break-word;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}
.card:active .poster { transform: scale(.97); }
@media (hover: hover) { .card:hover .poster { transform: translateY(-4px); box-shadow: var(--shadow-fire); border-color: var(--fire); } }

.badge {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-fire);
}
.badge--18 { left: auto; right: 8px; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .25); }
.poster__play {
  position: absolute; right: 8px; bottom: 8px; z-index: 3;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.poster__play .hd-icon { width: 15px; height: 15px; margin-left: 2px; fill: currentColor; stroke: none; }
.card--vip .poster img { filter: blur(3px) brightness(.72); transform: scale(1.06); }
.card--vip .poster__fallback { filter: blur(3px); opacity: .6; }
.poster__lock {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ff9ec4;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .5));
}
.poster__lock .hd-icon {
  width: 44px; height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: rgba(255, 158, 196, .14);
  border: 1px solid rgba(255, 158, 196, .45);
}

/* Faixa "E ainda tem" */
.more { margin-top: 28px; }
.more__label { margin-bottom: 10px; font-size: 13px; font-weight: 700; color: var(--fire); text-transform: uppercase; letter-spacing: .12em; text-align: center; }
.marquee {
  display: grid; gap: 10px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row { display: flex; width: max-content; animation: hd-marquee 48s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 56s; }
.marquee__group { display: flex; gap: 10px; padding-right: 10px; }
.chip {
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
}
@keyframes hd-marquee { to { transform: translateX(-50%); } }

/* Bottom sheet */
.sheet {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: flex-end; justify-content: center;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .32s;
}
.sheet.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .28s ease;
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 1.5rem 1.5rem 0 0;
  background: var(--card);
  border: 2px solid var(--fire);
  border-bottom: 0;
  box-shadow: var(--shadow-fire);
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 640px) {
  .sheet { align-items: center; padding: 16px; }
  .sheet__panel { border-radius: 1.5rem; border-bottom: 2px solid var(--fire); transform: translateY(60px) scale(.94); opacity: 0; transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .25s ease; }
  .sheet.is-open .sheet__panel { opacity: 1; }
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { width: 42px; height: 4px; margin: 0 auto 16px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.sheet__close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--foreground);
  background: rgba(255, 255, 255, .07);
  border: 0;
  cursor: pointer;
}
.sheet__close .hd-icon { width: 20px; height: 20px; }
.sheet__top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-right: 40px; }
.sheet__poster { flex: 0 0 96px; }
.sheet__poster .poster { border-radius: 12px; }
.sheet__poster .poster__fallback { font-size: 12px; padding: 8px; }
.sheet__cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fire);
  background: color-mix(in oklab, var(--fire) 10%, transparent);
}
.sheet__title { margin-top: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem !important; line-height: 1.1 !important; }
.sheet__info { margin-top: 6px; font-size: 13px; color: var(--muted-foreground); }
.sheet__desc { margin-bottom: 16px; font-size: 14px; color: var(--muted-foreground); }
.sheet__actions { display: grid; gap: 10px; }
.sheet__actions > * { width: 100% !important; max-width: none !important; }
.sheet__vip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #ffd1e3;
  background: rgba(255, 158, 196, .08);
  border: 1px solid rgba(255, 158, 196, .3);
}
.sheet__vip .hd-icon { width: 18px; height: 18px; color: #ff9ec4; }
.sheet__vip[hidden] { display: none; }
.divider { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: 12.5px; color: var(--muted-foreground); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.sheet__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12.5px; color: var(--muted-foreground); }
.sheet__note .hd-icon { width: 14px; height: 14px; color: var(--fire); }
