/* Acervo de Vídeos ('homevideos') e Vídeo Aulas ('courses'): grade, pastas, ordenação e miniaturas WebP. */
.hv-page { padding-bottom: 32px; }
.hv-body { display: flex; flex-direction: column; gap: 16px; }
.hv-count { font-size: 13px; }

/* Migalhas */
.hv-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 14px; }
.hv-crumb { background: none; border: 0; padding: 4px 6px; border-radius: 8px; color: var(--md-sys-color-primary); font: inherit; cursor: pointer; }
.hv-crumb:hover { background: var(--md-sys-color-surface-container-high); }
.hv-sep { font-size: 18px; color: var(--md-sys-color-on-surface-variant); }

/* Chips (pastas e anos) */
.hv-row { display: flex; flex-direction: column; gap: 6px; }
.hv-row-label { font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }
.hv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hv-chip { border: 1px solid var(--md-sys-color-outline-variant, #c4c6d0); background: transparent; color: inherit;
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; }
.hv-chip:hover { background: var(--md-sys-color-surface-container-high); }
.hv-chip.is-active { background: var(--md-sys-color-secondary-container, #d7e3f8); border-color: transparent; }
.hv-chip:focus-visible, .hv-card:focus-visible, .hv-crumb:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }

/* Anos e meses */
.hv-year { margin-top: 12px; }
.hv-year-title { margin: 0 0 4px; font-size: 22px; line-height: 28px; font-weight: 500; }
.hv-month { margin-top: 12px; }
.hv-month-title { margin: 0 0 10px; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--md-sys-color-on-surface-variant); }

/* Grade e cartões */
.hv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.hv-card { background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.hv-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--md-sys-color-surface-container-high); box-shadow: var(--elev-1); transition: transform .15s ease, box-shadow .15s ease; }
.hv-card:hover .hv-thumb { transform: translateY(-2px); box-shadow: var(--elev-3); }
.hv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.hv-card:hover .hv-thumb img { transform: scale(1.03); }
.hv-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--md-sys-color-on-surface-variant); }
.hv-noimg .material-symbols-outlined, .hv-noimg .icon { font-size: 40px; }
.hv-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; pointer-events: none; }
.hv-dur { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; font-size: 12px; background: rgba(0, 0, 0, .7); color: #fff; }
.hv-title { margin-top: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-sub { font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hv-more { display: flex; justify-content: center; padding: 12px 0; }

@media (max-width: 600px) {
  .hv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hv-year-title { font-size: 19px; line-height: 24px; }
}
