/**
 * video.css — Agente de Mídia Multi-Canal | Spec vs-06
 * Reutiliza os tokens de cor/tipografia já definidos em public/css/style.css
 * (--green, --gold, --bg-band, --font-display, --font-body etc).
 * Não redefine :root — depende de style.css já estar carregado antes deste arquivo.
 */

/* ── facade base (compartilhada por todos os tamanhos) ──────────────────── */
.vthumb { position: relative; overflow: hidden; background: var(--green-deep); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,13,11,.30) 0%, transparent 26%, transparent 62%, rgba(10,13,11,.42) 100%);
}

.media-facade { position: relative; width: 100%; cursor: pointer; isolation: isolate; }
.media-facade .vthumb { width: 100%; height: 100%; aspect-ratio: 16/9; border-radius: 6px; }

.v-play {
  position: absolute; inset: 0; margin: auto; display: grid; place-items: center;
  border-radius: 50%; background: rgba(12,15,14,.52); backdrop-filter: blur(2px);
  border: 1.5px solid rgba(255,255,255,.55);
  transition: transform .2s cubic-bezier(.4,0,.2,1), background .2s ease, border-color .2s ease;
}
.v-play svg { fill: #fff; margin-left: 2px; }
.media-facade:hover .v-play { transform: scale(1.07); background: rgba(21,64,42,.78); border-color: var(--gold); }
.media-facade:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.media-facade:focus-visible .v-play { border-color: var(--gold); }

.v-plat {
  position: absolute; top: 9px; left: 9px; width: 24px; height: 24px; border-radius: 5px;
  display: grid; place-items: center; background: rgba(12,15,14,.6); backdrop-filter: blur(4px);
}
.v-plat svg { width: 14px; height: 14px; }
.v-plat--instagram { background: linear-gradient(135deg,#7A35B8,#C9337A 55%,#F5A340); }
.v-plat--facebook  { background: rgba(24,82,189,.94); }
.v-plat--twitter   { background: rgba(20,23,28,.94); }
.v-plat--tiktok    { background: rgba(12,15,14,.78); }

.v-dur {
  position: absolute; bottom: 9px; right: 9px; padding: 3px 7px; border-radius: 4px;
  background: rgba(12,15,14,.78); color: #fff; font: 600 11px/1 var(--font-body); letter-spacing: .03em;
}

/* estado pós-clique — esconde thumbnail/scrim/selos, mostra player */
.media-facade.is-playing { cursor: default; }
.media-facade.is-playing .mf-thumb,
.media-facade.is-playing .v-scrim,
.media-facade.is-playing .v-play,
.media-facade.is-playing .v-plat,
.media-facade.is-playing .v-dur { display: none; }
.mf-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mf-embed { position: absolute; inset: 0; width: 100%; height: 100%; overflow: auto; background: var(--surface); }

/* ── tamanhos (controlados via classe mf-{size} no elemento .media-facade) ── */
.mf-hero .v-play     { width: 84px; height: 84px; }
.mf-hero .v-play svg  { width: 28px; height: 28px; }

.mf-card .v-play     { width: 46px; height: 46px; }
.mf-card .v-play svg  { width: 16px; height: 16px; }

.mf-playlist .v-play  { width: 38px; height: 38px; }
.mf-playlist .v-play svg { width: 13px; height: 13px; }

.mf-row .v-play       { width: 34px; height: 34px; }
.mf-row .v-play svg    { width: 12px; height: 12px; }

/* facade na matéria usa o tamanho hero, com raio 6px (igual à imagem de capa atual) */
.art-figure .media-facade { aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; }
.art-figure .media-facade .v-play { width: 78px; height: 78px; }
.art-figure .media-facade .v-play svg { width: 26px; height: 26px; margin-left: 4px; }

@media (max-width: 680px) {
  .art-figure { margin-left: -18px; margin-right: -18px; max-width: none; }
  .art-figure .media-facade { border-radius: 0; }
}

/* ── VÍDEO BAND: dobra "Vídeos" na home ──────────────────────────────────── */
.video-band { background: var(--bg-band); color: #fff; padding: 56px 0; }
[data-theme="dark"] .video-band { background: var(--navy-deep); }
.video-band .section-head { border-bottom-color: rgba(255,255,255,.18); margin-bottom: 28px; }
.video-band .section-head h2 { color: #fff; }
.video-band .vb-kicker { display: flex; align-items: center; gap: 10px; }
.video-band .vb-kicker .live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198,162,78,.25); animation: pulse 2s infinite;
}
.video-band .see-all { color: var(--gold-bright); font-weight: 600; }
.video-band .see-all:hover { text-decoration: underline; text-underline-offset: 3px; }

.vfeat-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 36px; align-items: start; }

.vmain { display: flex; flex-direction: column; }
.vmain .vm-meta { display: flex; align-items: center; gap: 10px; margin: 16px 0 9px; flex-wrap: wrap; }
.vmain .vm-cat { font: 700 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-bright); }
.vmain .vm-chan { font-size: 12.5px; color: rgba(255,255,255,.6); }
.vmain h3 { font-family: var(--font-display); font-weight: 700; font-size: 27px; line-height: 1.16; letter-spacing: -.01em; margin: 0; color: #fff; }
.vmain:hover h3 { color: var(--gold-bright); }
.vmain .vm-dek { font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.72); margin: 11px 0 0; max-width: 54ch; }

.vplaylist { display: flex; flex-direction: column; }
.vpl-head {
  font: 700 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.18);
}
.vpl-item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.1); align-items: flex-start; cursor: pointer; }
.vpl-item:last-child { border-bottom: none; }
.vpl-item .media-facade.mf-playlist { flex: none; width: 142px; }
.vpl-item .vthumb { aspect-ratio: 16/9; border-radius: 7px; }
.vpl-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vpl-cat { font: 600 10px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 18ch; }
.vpl-body h5 {
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.26; margin: 0; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vpl-item:hover h5 { color: var(--gold-bright); }
.vpl-time { font-size: 11.5px; color: rgba(255,255,255,.5); }

@media (max-width: 1080px) {
  .vfeat-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .vpl-item .media-facade.mf-playlist { width: 120px; }
}

/* ── HUB de vídeos (/videos/) ─────────────────────────────────────────────── */
.vhub-hero { background: var(--bg-band); color: #fff; padding: 46px 0 52px; }
[data-theme="dark"] .vhub-hero { background: var(--navy-deep); }
.vhub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.vhub-head .vh-title { display: flex; flex-direction: column; gap: 10px; }
.vhub-head .vh-kick {
  display: flex; align-items: center; gap: 10px; font: 700 12px/1 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright);
}
.vhub-head .vh-kick .live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(198,162,78,.25); animation: pulse 2s infinite;
}
.vhub-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px,4vw,46px); letter-spacing: -.015em; margin: 0; color: #fff; }
.vhub-head p { margin: 0; color: rgba(255,255,255,.62); font-size: 15px; max-width: 42ch; }

.vfilter-bar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); }
.vfilter { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; height: 62px; }
.vfilter::-webkit-scrollbar { display: none; }
.vchip {
  flex: none; font: 600 13.5px/1 var(--font-body); color: var(--text-sec); background: transparent;
  border: 1px solid var(--border-str); border-radius: 100px; padding: 9px 16px; cursor: pointer;
  transition: all .15s ease; white-space: nowrap; display: flex; align-items: center; gap: 7px;
}
.vchip:hover { color: var(--text); border-color: var(--text-mut); }
.vchip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
[data-theme="dark"] .vchip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

.vgrid-section { padding: 46px 0 70px; }
.vgrid-count { font-size: 13px; color: var(--text-mut); margin: 0 0 22px; letter-spacing: .02em; }
.vgrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 34px 26px; }
.vgcard { display: flex; flex-direction: column; }
.vgcard .vthumb { aspect-ratio: 16/9; border-radius: 7px; margin-bottom: 12px; }
.vgcard .vg-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.vgcard .vg-cat { font: 600 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-deep); }
[data-theme="dark"] .vgcard .vg-cat { color: var(--gold); }
.vgcard h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.24; margin: 0 0 8px; color: var(--text); }
.vgcard:hover h3 { color: var(--green); }
[data-theme="dark"] .vgcard:hover h3 { color: var(--gold-bright); }
.vgcard .vg-by { font-size: 12.5px; color: var(--text-mut); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.vgcard .vg-by b { color: var(--text-sec); font-weight: 600; }
.vg-empty { grid-column: 1/-1; text-align: center; color: var(--text-mut); padding: 50px 0; font-size: 15px; }

.vmore { display: flex; justify-content: center; margin-top: 46px; }
.vmore button {
  font: 600 14px/1 var(--font-body); background: transparent; color: var(--green);
  border: 1px solid var(--green); border-radius: 5px; padding: 13px 26px; cursor: pointer;
  letter-spacing: .02em; transition: all .16s ease;
}
.vmore button:hover { background: var(--green); color: #fff; }
[data-theme="dark"] .vmore button { color: var(--gold); border-color: var(--gold); }
[data-theme="dark"] .vmore button:hover { background: var(--gold); color: var(--navy-deep); }

@media (max-width: 1080px) { .vgrid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px)  { .vgrid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .vgrid { grid-template-columns: 1fr; } }
