/*
Theme Name: Cine Verde
Description: Catálogo de filmes e séries, com fundo azul-escuro e detalhes verdes.
Version: 1.0.20
Author: Cine Verde
Text Domain: cine-verde
Requires at least: 6.0
Requires PHP: 7.4
*/
/* GUIA DE EDIÇÃO
 * 01 Base e cores | 02 Cabeçalho e menu | 03 Destaques e carrossel
 * 04 Catálogo, capas e selos | 05 Single e relacionados
 * 06 Downloads, versões, trailer e galeria | 07 Gêneros | 08 Rodapé
 * 09 Responsivo | 10–12 Acabamentos da single e elenco
 * A ordem original dos seletores foi preservada para manter a cascata.
 */

/* ============================================================
 * 01 — Base e cores
 * ============================================================ */
:root {
  --green: #8acb64;
  --deep: #29621b;
  --ink: #eef2f7;
  --line: #d0d0d0;
  --page: #020814;
  --white: #fff;
  --width: 1260px;
  --catalog-width: 1314px;
  --panel: #0a1424;
  --dark-line: #253248;
  --article-ink: #20252b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.6 "Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a: hover {
  color: var(--green);
}

img {
  max-width: 100%;
  height: auto;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
}

a: focus-visible,button:focus-visible,input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--width),calc(100% - 32px));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.cv-icon {
  width: 19px;
  height: 19px;
  vertical-align: -4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}


/* ============================================================
 * 02 — Cabeçalho e menu
 * ============================================================ */
.site-header {
  background: var(--page);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 6px #0003;
}

.admin-bar .site-header {
  top: 32px;
}

.header-row {
  width: min(var(--catalog-width),calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -1.4px;
  white-space: nowrap;
  line-height: 1;
}

.brand span {
  color: var(--green);
}

.custom-logo-link {
  display: flex;
  align-items: center;
  flex: none;
}

.custom-logo {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 10px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 6px;
}

.site-nav li {
  position: relative;
}

.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 185px;
  background: var(--panel);
  padding: 8px;
  border: 1px solid var(--dark-line);
  border-radius: 10px;
}

.site-nav li:hover>.sub-menu,.site-nav li:focus-within>.sub-menu {
  display: block;
}

.site-nav a:hover,.site-nav .current-menu-item>a {
  color: var(--green);
  background: #0b1220;
}


/* 02.1 — Campo de busca do topo */
header .search {
  margin: 0 auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  width: 320px;
  max-width: 100%;
  flex: none;
  border: 1px solid var(--dark-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 14px #00000025;
}

.search input {
  align-self: stretch;
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 12px 12px;
  color: #fff;
  background: var(--panel);
  font-size: 13px;
}

.search button {
  align-self: stretch;
  border: 0;
  background: var(--green);
  color: var(--page);
  font-weight: 800;
  padding: 0 16px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  color: white;
  background: none;
  border: 0;
  padding: 8px;
}


/* ============================================================
 * 03 — Destaques e carrossel
 * ============================================================ */
.hero {
  background: #061021;
  color: white;
  padding: 24px 0 34px;
}

.hero .wrap {
  width: min(var(--catalog-width),calc(100% - 32px));
}

.hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hero-head h2 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
  text-transform: uppercase;
}

.hero-controls {
  display: flex;
  gap: 6px;
}

.hero-controls button {
  background: transparent;
  border: 1px solid var(--dark-line);
  color: #fff;
  border-radius: 3px;
  padding: 3px 10px;
}


/* 03.1 — Faixa de destaques */
.hero-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 108px)/7);
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.hero-track::-webkit-scrollbar {
  display: none;
}

.hero-item {
  scroll-snap-align: start;
  display: block;
  color: #fff;
}

/* Carrossel utiliza os mesmos cards do catálogo. */
.hero-track {
  padding: 4px 0 9px;
}

.hero-item .cv-hero-card {
  padding: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.hero-item .cv-hero-card:hover {
  border-color: var(--green);
}

.hero-item .card-title {
  font-size: 13px;
}


/* ============================================================
 * 04 — Catálogo e capas
 * ============================================================ */
.catalog {
  padding: 28px 0 38px;
}

body.home .catalog,body.blog .catalog,body.archive .catalog,body.search .catalog {
  width: min(var(--catalog-width),calc(100% - 32px));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg,#14243a,#081121 65%,transparent);
  border-bottom: 1px solid rgba(138,203,100,.25);
  position: relative;
}

.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 999px;
  background: var(--green);
}

.section-head h1,.section-head h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.6px;
}

.section-head .cv-icon {
  color: var(--green);
  width: 23px;
  height: 23px;
  margin-right: 5px;
}

.section-head strong {
  color: var(--green);
}

.section-head a {
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
}

.catalog-section + .catalog-section {
  margin-top: 38px;
}


/* 04.1 — Colunas do catálogo */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 18px;
}

.poster-card {
  border: 1px solid #18304d;
  background: linear-gradient(180deg,#081121,#0a1527);
  padding: 10px;
  min-width: 0;
  border-radius: 16px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 12px 24px #00000024;
}

.poster-card:hover {
  transform: translateY(-3px);
  border-color: rgba(138,203,100,.5);
  box-shadow: 0 0 0 1px rgba(138,203,100,.16),0 18px 32px #00000038;
}

.poster-image {
  display: block;
  position: relative;
  background: #0d1727;
  overflow: hidden;
  border-radius: 12px;
}

.poster-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg,transparent,rgba(2,8,20,.55));
  pointer-events: none;
}

.poster-image img,.poster-image .no-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  transition: transform .35s ease;
}

.poster-card:hover .poster-image img,.poster-card:hover .poster-image .no-poster {
  transform: scale(1.04);
}

.no-poster {
  display: grid!important;
  place-items: center;
  color: #aab7ca;
  background: #162235;
}

.no-poster .cv-icon {
  width: 36px;
  height: 36px;
}

/* Selos confinados à capa, sem classes genéricas de plugins. */
.cv-cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.cv-cover .cv-cover-labels {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cv-cover .cv-cover-version {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #020814;
  background: var(--green);
  line-height: 1.25;
  box-shadow: 0 3px 8px #0005;
}

.cv-cover .cv-cover-rating {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 7px;
  background: #f5c518;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  border-radius: 5px;
  line-height: 1.4;
  box-shadow: 0 3px 8px #0005;
}

.card-title {
  display: block;
  margin: 10px 3px 2px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related .poster-card {
  padding: 9px;
}

.related .card-title {
  font-size: 13px;
}

.pagination {
  margin: 24px 0;
  text-align: center;
}

.page-numbers {
  display: inline-block;
  padding: 5px 12px;
  margin: 2px;
  background: var(--panel);
  border: 1px solid var(--dark-line);
}

.page-numbers.current {
  background: var(--green);
  color: var(--page);
}


/* ============================================================
 * 05 — Single, ficha técnica e relacionados
 * ============================================================ */
.single-layout {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0,744px) minmax(0,1fr);
  gap: 22px;
  align-items: start;
  padding: 24px 0 36px;
}

.single-article {
  background: var(--white);
  color: var(--article-ink);
  border: 1px solid var(--line);
  min-width: 0;
}

.single-article a:hover {
  color: var(--deep);
}


/* 05.1 — Título WordPress */
.single-title {
  font-size: 21px;
  line-height: 1.35;
  margin: 0;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.article-inner {
  padding: 17px 21px 24px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 17px;
}

/* Selos discretos da data de publicação e dos gêneros */
.post-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid #dce9d4;
  border-radius: 5px;
  background: #f3f8ef;
  color: var(--deep);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.post-meta-genre:hover,
.post-meta-genre:focus-visible {
  background: #e6f2de;
  border-color: var(--green);
}

.post-meta .cv-icon {
  color: var(--deep);
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
}


/* 05.2 — Capa e ficha técnica */
.info-layout {
  display: grid;
  grid-template-columns: minmax(150px, 34%) minmax(0,1fr);
  gap: 15px;
  align-items: stretch;
}

.single-poster {
  position: relative;
  min-height: 0;
}

.single-poster img,.single-poster .no-poster {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.info h2 {
  margin: 0 0 4px;
  color: var(--deep);
  font-size: 17px;
}

.info dl {
  margin: 0;
}

.info-line {
  display: flex;
  flex-wrap: wrap;
  column-gap: 5px;
  margin: 0 0 5px;
}

.info-line dt {
  font-weight: 750;
}

.info-line dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.synopsis {
  margin: 20px 0;
}

.synopsis h2 {
  color: var(--deep);
  display: inline;
  font-size: 15px;
}

.synopsis p {
  display: inline;
  margin: 0;
}

.related h2 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
}

.related .poster-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.related .card-title {
  white-space: normal;
  min-height: 2.8em;
}

.article-inner h2.block-title {
  margin: 26px 0 16px;
  font-size: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}


/* ============================================================
 * 06 — Botões de download e trailer
 * ============================================================ */
.downloads {
  margin: 24px 0;
  padding: 16px 0 0;
  border-top: 1px solid #e1e8dd;
  background: #fff;
}

.downloads h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: 0 0 16px;
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  text-align: center;
  text-transform: uppercase;
}

.downloads h2 .cv-icon {
  width: 16px;
  height: 16px;
  color: var(--deep);
}


/* 06.1 — Frase acima dos downloads */
.downloads-intro {
  margin: 0 0 14px;
  color: var(--deep);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

/* Versões de séries: blocos independentes, empilhados verticalmente. */

/* 06.2 — Separação por versão */
.download-version-title {
  margin: 18px auto 8px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

/* Filmes: uma coluna. Séries: duas colunas centralizadas. */

/* 06.3 — Colunas de filmes e séries */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  max-width: 680px;
  padding: 4px;
  margin: 0 auto 12px;
  list-style: none;
}

.download-buttons li {
  display: flex;
  flex: 0 0 calc((100% - 14px) / 2);
  min-width: 0;
  margin: 0;
}

.download-buttons-film {
  max-width: 460px;
}

.download-buttons-film li {
  flex-basis: 100%;
}

@media (max-width: 540px) {
  .download-buttons li {
    flex-basis: 100%;
  }
}


/* 06.4 — Botões: fundo branco, borda verde e hover */
.single-article .download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 2px solid var(--green);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(138, 203, 100, 0.22);
  color: var(--deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.single-article .download-link .cv-icon,
.download-magnet {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.single-article .download-link:hover,
.single-article .download-link:focus-visible {
  background: #f8fff4;
  border-color: var(--deep);
  box-shadow: 0 0 0 4px rgba(138, 203, 100, 0.30);
  color: var(--deep);
  text-decoration: none;
  transform: translateY(-1px);
}

.single-article .download-link:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 2px;
}


/* 06.5 — Legenda externa */
.external-sub {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--deep);
  font-weight: 700;
}


/* 06.6 — Trailer e galeria */
.video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: 0;
  background: #111;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}


/* ============================================================
 * 07 — Página de gêneros
 * ============================================================ */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}

.genre-card {
  position: relative;
  min-height: 155px;
  isolation: isolate;
  display: flex;
  align-items: end;
  padding: 15px;
  color: #fff;
  background: var(--panel);
  overflow: hidden;
}

.genre-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.genre-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent,#000c);
  z-index: -1;
}

.genre-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  font-size: 18px;
}

.genre-card:hover {
  color: #b5ef82;
}


/* ============================================================
 * 08 — Rodapé
 * ============================================================ */
.site-footer {
  background: #02060e;
  color: #aab7c7;
  border-top: 1px solid var(--dark-line);
  padding: 44px 0 0;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 30px;
  padding-bottom: 38px;
}

.footer-grid h2 {
  color: #8acb64;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 15px;
}

.footer-grid ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-grid li {
  margin: 0 0 8px;
}

.footer-grid a:hover {
  color: #b5ef82;
}

.footer-grid .brand {
  color: white;
}

.footer-grid .brand span {
  color: var(--green);
}

.footer-grid .footer-mark {
  display: inline-block;
  margin-top: 6px;
  font-size: 32px;
  line-height: .95;
}

.footer-note {
  font-size: 11px;
  line-height: 2;
  font-weight: 650;
  letter-spacing: .6px;
  margin: 0 0 10px;
}

.footer-bottom {
  border-top: 1px solid var(--dark-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
  font-size: 11px;
}

.footer-grid .footer-note {
  margin: 0;
  line-height: 1.8;
}


/* ============================================================
 * 09 — Responsivo
 * ============================================================ */
@media(max-width:1100px) {
  .header-row {
    gap: 12px;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel);
    padding: 8px;
  }
  .site-nav.open {
    display: block;
  }
  header .search {
    margin-left: auto;
    margin-right: 0;
  }
  .single-layout {
    grid-template-columns: minmax(0,2fr) minmax(0,1fr);
  }
  .poster-grid {
    gap: 10px;
  }
}

@media(max-width:850px) {
  .poster-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .hero-track {
    grid-auto-columns: calc((100% - 54px)/4);
  }
  .single-layout {
    grid-template-columns: 1fr;
  }
  .related .poster-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .genre-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media(max-width:540px) {
  .admin-bar .site-header {
    top: 0;
  }
  .wrap,.hero .wrap,body.home .catalog,body.blog .catalog,body.archive .catalog,body.search .catalog {
    width: calc(100% - 22px);
  }
  .header-row {
    flex-wrap: wrap;
    padding: 10px 0;
  }
  header .search {
    order: 3;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
  }
  .menu-toggle {
    margin-left: auto;
  }
  .poster-grid,.related .poster-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .hero-track {
    grid-auto-columns: calc((100% - 36px)/3);
  }
  .info-layout {
    grid-template-columns: 115px minmax(0,1fr);
    gap: 10px;
  }
  .info-line {
    font-size: 13px;
  }
  .single-poster img {
    min-height: 170px;
    height: auto;
  }
  .article-inner {
    padding: 12px;
  }
  .single-article a:hover {
    color: var(--deep);
  }
  .single-title {
    padding: 14px 12px;
    font-size: 18px;
  }
  .genre-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .footer-grid>div:first-child {
    grid-column: 1/-1;
  }
}

@media (min-width:541px) and (max-width:1100px) {
  .custom-logo {
    width: 220px;
  }
  header .search {
    width: 260px;
  }
}

@media (max-width:540px) {
  .custom-logo {
    width: 210px;
    max-height: 60px;
  }
  .section-head h1,.section-head h2 {
    font-size: 19px;
  }
  .section-head .cv-icon {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .poster-card,.poster-image img {
    transition: none;
  }
  .poster-card:hover,.poster-card:hover .poster-image img {
    transform: none;
  }
}


/* ============================================================
 * 10 — Single moderno: títulos, trailer, elenco e comentários
 * ============================================================ */
.single-title,.section-head h1,.section-head h2,.downloads h2,.section-title {
  font-family: "Manrope","Inter",system-ui,sans-serif;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 14px;
  color: #1e2835;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
}

.section-title .block-title-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg,#0a1830,#14365a);
  color: #8acb64;
  box-shadow: 0 10px 18px rgba(2,8,20,.16);
}

.section-title .block-title-icon .cv-icon {
  width: 22px;
  height: 22px;
}

.info-title {
  margin-top: 0;
}

.synopsis p {
  display: block;
  margin-top: 8px;
}

.trailer-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 12px;
  background: linear-gradient(135deg,#081121,#0e1e36);
  box-shadow: 0 18px 34px rgba(2,8,20,.18);
}

.trailer-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(138,203,100,.15), transparent 34%);
  pointer-events: none;
}

.trailer-frame .video-frame {
  position: relative;
  border-radius: 12px;
}

.gallery {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.gallery a {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 12px;
  margin: 6px 0 18px;
}

.cast-card {
  text-align: center;
}

.cast-card img,.cast-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #eef1f4;
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
}

.cast-placeholder {
  display: grid;
  place-items: center;
  color: #44617f;
}

.cast-placeholder .cv-icon {
  width: 34px;
  height: 34px;
}

.cast-card strong {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: #20252b;
}

.cast-card span {
  display: block;
  font-size: 12px;
  color: #5b6470;
  line-height: 1.3;
}

.comments-wrap {
  margin-top: 24px;
  padding-top: 8px;
}

.comments-area .comment-list {
  margin: 0 0 16px;
  padding-left: 18px;
}

.comments-area .comment-body {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.comments-area .comment-form input[type="text"], .comments-area .comment-form input[type="email"], .comments-area .comment-form input[type="url"], .comments-area .comment-form textarea {
  width: 100%;
  border: 1px solid #d7dbe1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.comments-area .submit {
  background: #8acb64;
  color: #020814;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 800;
}

@media(max-width:850px) {
  .cast-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media(max-width:540px) {
  .section-title {
    font-size: 18px;
  }
  .section-title .block-title-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .cast-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}


/* ============================================================
 * 11 — Single: acabamento compacto, nota e carrossel de elenco
 * ============================================================ */
.single-article {
  border-radius: 16px;
  overflow: hidden;
}

.single-article .info-layout {
  grid-template-columns: 190px minmax(0,1fr);
  align-items: start;
  gap: 15px;
}

.single-article .single-poster {
  width: 190px;
  height: 285px;
}

.single-article .single-poster img,.single-article .single-poster .no-poster {
  display: block;
  width: 100%;
  height: 285px;
  min-height: 0;
  object-fit: cover;
  border-radius: 7px;
}

.single-article .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--deep);
}

.single-article .section-title .block-title-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  flex: none;
  background: none;
  box-shadow: none;
  border-radius: 0;
  color: #34872c;
}

.single-article .section-title .block-title-icon .cv-icon {
  width: 22px;
  height: 22px;
}

.single-article .info-title {
  margin: 0 0 8px;
}

.single-article .info-line {
  margin-bottom: 4px;
}

.cv-single-rating {
  display: inline-block;
  background: #f5c518;
  color: #151515;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 5px;
  line-height: 1.4;
}

.cv-cast-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.cv-cast-head .section-title {
  margin: 0 0 12px;
}

.cv-cast-controls {
  display: flex;
  gap: 5px;
}

.cv-cast-controls button {
  border: 1px solid #cbd8c5;
  background: #fff;
  color: var(--deep);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  font-size: 21px;
  line-height: 1;
}

.cv-cast-controls button:disabled {
  opacity: .4;
  cursor: default;
}

.single-article .cast-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: calc((100% - 48px)/5);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 2px 1px 10px;
}

.single-article .cast-card {
  scroll-snap-align: start;
  min-width: 0;
}

.single-article .cast-card strong,.single-article .cast-card span {
  overflow-wrap: anywhere;
}

@media(max-width:540px) {
  .single-article .info-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .single-article .single-poster {
    margin-inline: auto;
  }
  .single-article .cast-grid {
    grid-auto-columns: calc((100% - 24px)/3);
  }
  .single-article .section-title {
    font-size: 17px;
  }
}


/* ============================================================
 * 12 — Ajustes finais da ficha e miniaturas
 * ============================================================ */
.single-article .cast-placeholder {
  display: grid;
  place-items: center;
}

.single-article .cv-single-rating {
  padding: 1px 5px;
}
