/* videos.css — Videos Hub + modal (mobile-first) */

.screen-section--fluid {
  height: auto;
  max-height: none;
  min-height: calc(100svh - var(--nav-h));
  overflow: visible;
}

.section-videos {
  background: #0a0a0a;
  color: #fff;
  margin-top: clamp(2.5rem, 8vw, 4.5rem);
  padding: var(--section-y, clamp(2.75rem, 7vw, 4.5rem)) 0;
}

.section-videos > .vh-header,
.section-videos > .vh-sub,
.section-videos > .vh-layout {
  width: min(100%, var(--site-max));
  margin-inline: auto;
  padding-inline: var(--px);
  box-sizing: border-box;
}

.vh-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.vh-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.vh-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vh-line {
  margin-top: 0.55rem;
  height: 3px;
  width: min(100%, 40rem);
  background: linear-gradient(90deg, var(--brand-red), transparent);
  border-radius: 2px;
}

.vh-sub {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

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

@media (min-width: 480px) {
  .vh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.video-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 9, 20, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #1a1a1a;
  cursor: pointer;
  border: 0;
  padding: 0;
  display: block;
  width: 100%;
}

.video-card__thumb--embed {
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: default;
  overflow: hidden;
}

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

.video-card__thumb--embed .video-card__badge {
  z-index: 2;
  pointer-events: none;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease;
}

.video-card__thumb:hover .video-card__play {
  background: rgba(0, 0, 0, 0.4);
}

.video-card__play span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.92);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.45);
}

.video-card__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand-red);
  color: #fff;
}

.video-card__badge--hd {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.video-card__duration {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 0.68rem;
  font-weight: 700;
}

.video-card__body {
  padding: 0.75rem 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.video-card__title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card__meta {
  font-size: 0.72rem;
  color: #ff6b8a;
}

.video-card__stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
}

.video-card__stats .rating {
  color: var(--brand-red);
  font-weight: 700;
}

.video-card__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.video-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  min-height: 26px;
  padding: 0.2rem 0.25rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card__pill--tg {
  background: #229ed9;
}

.video-card__pill--wa {
  background: #25d366;
}

.video-card__pill--pr {
  background: #f07206;
}

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

.vh-sidebar {
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.85rem;
}

.vh-sidebar__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.75rem;
}

.vh-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.5rem;
}

.vh-mini {
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.vh-mini__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.vh-mini__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vh-mini__badge {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  font-size: 0.55rem;
  font-weight: 800;
  padding: 0.12rem 0.3rem;
  border-radius: 3px;
  background: var(--brand-red);
  color: #fff;
}

.vh-mini__rating {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: var(--brand-red);
  font-weight: 700;
  text-align: center;
}

/* Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.video-modal[hidden] {
  display: none !important;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.video-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal__title {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.video-modal__close:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .vh-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .vh-sidebars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

/* Desktop: grelha + “últimas postagens” ao lado (mesmo trilho do site) */
@media (min-width: 1100px) {
  .vh-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
    align-items: start;
    gap: 1.25rem;
  }

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

  .vh-sidebars {
    grid-template-columns: 1fr;
    gap: 1rem;
    position: sticky;
    top: calc(var(--nav-h) + 0.75rem);
  }

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