/* videos-page.css — Catálogo de packs + vídeos avulsos */

.page-videos {
  background: #050508;
  color: #f2f2f5;
  font-family: 'Manrope', var(--font-body), sans-serif;
}

.page-videos .container {
  width: min(100%, var(--site-max));
  margin-inline: auto;
  padding-inline: var(--px);
  box-sizing: border-box;
}

/* Hero — foto full-bleed + overlay suave (nível B mais claro) */
.videos-hero {
  position: relative;
  min-height: min(52vh, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #050508;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .videos-hero {
    min-height: min(64vh, 520px);
  }
}

.videos-hero .hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: brightness(0.78) contrast(1.04) saturate(0.95);
}

.videos-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0.38) 40%,
      rgba(0, 0, 0, 0.72) 100%
    );
}

/* Fade inferior do hero → fundo da página */
.videos-hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(32%, 140px);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 5, 8, 0.55) 40%,
    #050508 100%
  );
}

.videos-hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 7vh, 4rem) 0 clamp(1rem, 2.5vh, 1.5rem);
  min-width: 0;
}

.videos-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.45);
  color: #ffb4b8;
  font-size: 0.78rem;
  font-weight: 700;
}

.videos-hero-title {
  font-family: 'Bricolage Grotesque', var(--font-display), sans-serif;
  font-size: clamp(1.7rem, 7vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  overflow-wrap: anywhere;
}

.videos-hero-title em {
  font-style: normal;
  color: var(--brand-red);
}

.videos-hero-sub {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.videos-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

/* Section headers */
.section-header-page {
  margin: var(--section-y, 2.75rem) 0 1.25rem;
}

.page-videos .container > .packs-section:first-child .section-header-page {
  margin-top: clamp(1.5rem, 4vw, 2.25rem);
}

.section-header-page h2 {
  font-family: 'Bricolage Grotesque', var(--font-display), sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header-page h2 em {
  font-style: normal;
  color: var(--brand-red);
}

.section-header-page p {
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

.section-divider {
  height: 1px;
  margin: 2.5rem 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

/* Packs */
.packs-grid,
.videos-grid {
  overflow-x: clip;
}

.packs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: 18px;
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  translate: 0;
  scale: 1;
  transition:
    translate 0.35s var(--ease-out, ease),
    scale 0.35s var(--ease-out, ease),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.pack-card:hover {
  translate: 0 -6px;
  scale: 1.02;
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(229, 9, 20, 0.2);
}

.pack-card.featured {
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 14px 36px rgba(229, 9, 20, 0.18);
}

.pack-card.featured:hover {
  box-shadow: 0 20px 44px rgba(229, 9, 20, 0.28);
}

.pack-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(229, 9, 20, 0.15);
  color: var(--brand-red);
}

.pack-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.pack-name {
  font-size: 1.25rem;
  font-weight: 800;
}

.pack-price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.pack-price-old {
  text-decoration: line-through;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
}

.pack-price-current {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.pack-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.25rem 0;
}

.pack-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.pack-features i {
  color: var(--brand-red);
  font-size: 0.75rem;
}

.pack-see-videos {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.pack-see-videos:hover {
  border-color: var(--brand-red);
  color: #ffb4b8;
  background: rgba(229, 9, 20, 0.08);
}

.pack-cta-group,
.video-buy-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 380px) {
  .pack-cta-group,
  .video-buy-group {
    grid-template-columns: 1fr 1fr;
  }
}

.pack-cta,
.video-buy {
  min-height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  scale: 1;
  transition: scale 0.25s var(--ease-out, ease), box-shadow 0.25s ease, filter 0.25s ease;
}

.pack-cta:hover,
.video-buy:hover {
  scale: 1.03;
  filter: brightness(1.06);
}

.pack-cta.whatsapp,
.video-buy.whatsapp {
  background: #25d366;
  box-shadow: 0 0 0 transparent;
}

.pack-cta.whatsapp:hover,
.video-buy.whatsapp:hover {
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.pack-cta.telegram,
.video-buy.telegram {
  background: #229ed9;
}

.pack-cta.telegram:hover,
.video-buy.telegram:hover {
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.35);
}

/* Upsell */
.upsell-box {
  margin: 0.5rem 0 1rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.14), rgba(229, 9, 20, 0.1));
  border: 1px solid rgba(255, 107, 0, 0.35);
}

.upsell-box-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  color: #ff9d4d;
  margin-bottom: 0.4rem;
}

.upsell-box-title {
  font-family: 'Bricolage Grotesque', var(--font-display), sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.upsell-box-title em {
  font-style: normal;
  color: #ff6b00;
}

.upsell-box-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  max-width: 40rem;
}

.upsell-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(120deg, #ff8421 0%, #ff6b00 45%, #e85d00 100%);
  background-size: 180% 100%;
  background-position: 0% 50%;
  scale: 1;
  outline: 1px solid transparent;
  outline-offset: 2px;
  transition:
    scale 0.3s var(--ease-out, ease),
    background-position 0.5s ease,
    box-shadow 0.3s ease,
    outline-color 0.3s ease;
  box-shadow: 0 8px 22px rgba(255, 107, 0, 0.3);
}

.upsell-cta:hover {
  scale: 1.03;
  background-position: 100% 50%;
  box-shadow: 0 14px 28px rgba(255, 107, 0, 0.42);
  outline-color: rgba(255, 107, 0, 0.5);
}

/* Video cards */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 3rem;
}

.page-videos .video-card {
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  translate: 0;
  scale: 1;
  transition:
    translate 0.35s var(--ease-out, ease),
    scale 0.35s var(--ease-out, ease),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.page-videos .video-card:hover {
  translate: 0 -6px;
  scale: 1.02;
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(229, 9, 20, 0.18);
}

.page-videos .video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1a1a22;
  overflow: hidden;
}

/* Embed XVideos / plataforma — preenche o thumb em 16:9 */
.page-videos .video-thumb--embed {
  aspect-ratio: 16 / 9;
  background: #000;
}

.page-videos .video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 0;
  background: #000;
}

.page-videos .video-thumb--embed .video-badges-top {
  z-index: 2;
  pointer-events: none;
}

.page-videos .video-badge.embed {
  background: rgba(229, 9, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-videos .video-thumb-img,
.page-videos .video-thumb-preview,
.page-videos .video-thumb-img--hover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  scale: 1;
  transition: scale 0.55s var(--ease-out, ease), filter 0.45s ease, opacity 0.55s ease;
}

/* Reveal opcional: segunda foto no hover
   <img class="video-thumb-img" ...>
   <img class="video-thumb-img--hover" ...>
*/
.page-videos .video-thumb-img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
}

.page-videos .video-card:hover .video-thumb-img,
.page-videos .video-card:hover .video-thumb-preview,
.page-videos .video-card:hover .video-thumb-placeholder {
  scale: 1.06;
  filter: brightness(1.08);
}

.page-videos .video-card:hover .video-thumb-img--hover {
  opacity: 1;
  scale: 1.06;
}

.page-videos .video-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(229, 9, 20, 0.7);
  font-size: 2rem;
  background: linear-gradient(160deg, #1a0a0c, #121218);
  scale: 1;
  transition: scale 0.55s var(--ease-out, ease), filter 0.45s ease;
}

.video-badges-top {
  position: absolute;
  inset: 0.55rem 0.55rem auto;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.video-badges-left {
  display: flex;
  gap: 0.3rem;
}

.page-videos .video-badge {
  padding: 0.18rem 0.45rem;
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
}

.page-videos .video-badge.hd {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.page-videos .video-badge.new {
  background: var(--brand-red);
}

.page-videos .video-badge.rating {
  color: #ffd166;
}

.video-views-badge,
.page-videos .video-duration {
  position: absolute;
  bottom: 0.5rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
}

.video-views-badge {
  left: 0.5rem;
}

.page-videos .video-duration {
  right: 0.5rem;
}

.video-progress-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.video-progress-fill {
  width: 0;
  height: 100%;
  background: var(--brand-red);
  transition: width 0.35s ease;
}

.page-videos .video-card:hover .video-progress-fill {
  width: 65%;
}

.video-info {
  padding: 0.85rem 0.9rem 0.4rem;
}

.page-videos .video-title {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.video-subtitle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.55rem;
}

.video-tag {
  font-size: 0.68rem;
  color: #ff8a95;
  font-weight: 700;
}

.video-footer {
  padding: 0.75rem 0.9rem 1rem;
  margin-top: auto;
}

.video-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.video-price-current {
  font-size: 1.15rem;
  font-weight: 800;
}

.video-discount-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: #22c55e;
}

/* Bot notice */
.bot-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0 0 3rem;
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(34, 158, 217, 0.1);
  border: 1px solid rgba(34, 158, 217, 0.35);
}

.bot-notice-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #229ed9;
  color: #fff;
  font-size: 1.25rem;
}

.bot-notice-title {
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.bot-notice-text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.bot-notice-cta {
  margin-inline-start: auto;
  min-height: 42px;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: #229ed9;
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  display: grid;
}

.modal-content {
  width: min(640px, 100%);
  max-height: min(88svh, 820px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title-text {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
}

.modal-title-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  place-items: center;
}

.modal-body {
  overflow: auto;
  padding: 0.85rem 1.1rem;
}

.modal-videos-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-video-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.modal-video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a22;
}

.modal-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-video-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--brand-red);
}

.modal-video-duration {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 0.6rem;
  font-weight: 700;
}

.modal-video-title {
  font-weight: 800;
  font-size: 0.9rem;
}

.modal-video-desc {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0.15rem 0;
}

.modal-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.modal-video-tag {
  font-size: 0.65rem;
  color: #ff8a95;
  font-weight: 700;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-footer-summary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.modal-footer-count {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.modal-footer-price {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-footer-actions {
  display: flex;
  gap: 0.45rem;
}

@media (min-width: 700px) {
  .packs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Mobile / touch: sem scale que estoura a grelha */
@media (max-width: 700px), (pointer: coarse) {
  .pack-card:hover,
  .page-videos .video-card:hover {
    translate: 0;
    scale: 1;
  }

  .pack-cta:hover,
  .video-buy:hover,
  .upsell-cta:hover {
    scale: 1;
  }

  .page-videos .video-card:hover .video-thumb-img,
  .page-videos .video-card:hover .video-thumb-preview,
  .page-videos .video-card:hover .video-thumb-placeholder {
    scale: 1.03;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pack-card,
  .page-videos .video-card,
  .pack-cta,
  .video-buy,
  .upsell-cta,
  .page-videos .video-thumb-img,
  .page-videos .video-thumb-preview,
  .page-videos .video-thumb-img--hover,
  .page-videos .video-thumb-placeholder {
    transition: none;
  }

  .pack-card:hover,
  .page-videos .video-card:hover,
  .pack-cta:hover,
  .video-buy:hover,
  .upsell-cta:hover {
    translate: 0;
    scale: 1;
  }
}
