/* Mini novelas e shorts (kind 'shorts'): grade de capas 2:3, filtros, paginação, página da novela e episódios. */
.sh-page { padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.sh-count { font-size: 13px; }

/* Busca e filtros por idioma */
.sh-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sh-search { flex: 1 1 240px; min-width: 0; max-width: 420px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { min-height: 36px; padding: 0 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 14px;
  color: inherit; background: transparent; border: 1px solid var(--md-sys-color-outline-variant, #c4c6d0); }
.sh-chip:hover { background: var(--md-sys-color-surface-container-high); }
.sh-chip.is-on { background: var(--md-sys-color-secondary-container, #d7e3f8);
  color: var(--md-sys-color-on-secondary-container, inherit); border-color: transparent; }
.sh-chip:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }

/* Grade e cartões */
.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 14px; }
.sh-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: inherit; text-decoration: none; }
.sh-cover { position: relative; aspect-ratio: 2 / 3; border-radius: 12px; overflow: hidden;
  background: var(--md-sys-color-surface-container-high); }
.sh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; box-sizing: border-box;
  padding: 12px; background: linear-gradient(160deg, var(--md-sys-color-primary-container, #d7e3f8),
    var(--md-sys-color-surface-container-high)); }
.sh-noimg-title { font-size: 15px; font-weight: 500; line-height: 1.25; text-align: center; overflow: hidden;
  color: var(--md-sys-color-on-primary-container, inherit); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.sh-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.sh-cover > .sh-tags { position: absolute; left: 6px; top: 6px; max-width: calc(100% - 12px); }
.sh-tag { padding: 1px 6px; border-radius: 6px; font-size: 10px; line-height: 16px; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, .6); white-space: nowrap; }
.sh-tag-dub { background: #1f5fbf; }
.sh-tag-leg { background: #6a3fb0; }
.sh-tag-br { background: #1e7a46; }
.sh-badge { position: absolute; right: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px;
  background: rgba(0, 0, 0, .65); color: #fff; }
.sh-title { font-size: 14px; line-height: 18px; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.sh-card:hover .sh-title { color: var(--md-sys-color-primary); }
.sh-card:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; border-radius: 12px; }

/* Paginação (topo e rodapé) */
.sh-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.sh-pg-nums { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.sh-pg-num { min-width: 40px; min-height: 40px; padding: 0 8px; }
.sh-pg-num.is-current { background: var(--md-sys-color-primary-container, #d7e3f8);
  color: var(--md-sys-color-on-primary-container, inherit); border-radius: 999px; }
.sh-pg-gap { padding: 0 4px; color: var(--md-sys-color-on-surface-variant, inherit); }
.sh-pg-status { display: none; font-size: 14px; }

/* Página da novela */
.sh-hero { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 20px; align-items: start; }
.sh-hero-art { aspect-ratio: 2 / 3; border-radius: 14px; overflow: hidden; background: var(--md-sys-color-surface-container-high); }
.sh-hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-hero-art .sh-noimg-title { font-size: 20px; -webkit-line-clamp: 6; }
.sh-hero-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sh-hero-info .btn { align-self: flex-start; min-height: 44px; }
.sh-synopsis { margin: 0; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }

/* Lista de episódios */
.sh-eps { display: flex; flex-direction: column; gap: 8px; }
.sh-ep { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  width: 100%; min-height: 56px; padding: 10px 12px; box-sizing: border-box; border: 1px solid var(--md-sys-color-outline-variant, #c4c6d0);
  border-radius: 12px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sh-ep:hover { background: var(--md-sys-color-surface-container-high); }
.sh-ep.is-next { border-color: var(--md-sys-color-primary); }
.sh-ep:focus-visible { outline: 2px solid var(--md-sys-color-primary); outline-offset: 2px; }
.sh-ep-num { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 500; background: var(--md-sys-color-secondary-container, #d7e3f8);
  color: var(--md-sys-color-on-secondary-container, inherit); }
.sh-ep-info { display: flex; flex-direction: column; min-width: 0; }
.sh-ep-title { font-weight: 500; }
.sh-ep-flag { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600;
  line-height: 18px; vertical-align: middle; background: var(--md-sys-color-primary, #3b6fd1); color: var(--md-sys-color-on-primary, #fff); }
.sh-ep-bar { grid-column: 2; height: 4px; border-radius: 2px; background: var(--md-sys-color-surface-container-highest, #e3e3e3); overflow: hidden; }
.sh-ep-bar > span { display: block; height: 100%; background: var(--md-sys-color-primary); }

/* Celular: grade de 3 colunas, paginação só com Anterior/Próxima e "página / total" */
@media (max-width: 600px) {
  .sh-search { max-width: none; }
  .sh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .sh-title { font-size: 13px; line-height: 17px; }
  .sh-pg-nums { display: none; }
  .sh-pg-status { display: inline; }
  .sh-hero { grid-template-columns: 110px 1fr; gap: 14px; }
  .sh-hero-art .sh-noimg-title { font-size: 14px; -webkit-line-clamp: 5; }
  .sh-ep { padding: 12px; }
}
