/*
Theme Name: Kinema
Theme URI: https://serveronlineplay.com/
Author: Server Online Play
Author URI: https://serveronlineplay.com/
Description: Tema WordPress para catálogos de filmes e séries. Multi-idioma (PT-BR, EN, ES, RU) e com dois esquemas de cores, ambos configuráveis em Opções do Tema.
Version: 2.1.2
License: Proprietary - Uso exclusivo, código particular não distribuído publicamente
Text Domain: kinema
*/

/* ======================= */
/* VARIÁVEIS DE COR */
/* ======================= */
:root {
  --brand-cyan: #2dd4ff;
  --brand-blue: #3b82f6;
  --brand-deep: #111827;
}

/* ======================= */
/* SCROLLBAR PERSONALIZADO */
/* ======================= */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--brand-deep);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-cyan), var(--brand-blue));
  border-radius: 10px;
  border: 2px solid var(--brand-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-blue), var(--brand-cyan));
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-cyan) var(--brand-deep);
}

/* ======================= */
/* RESET GLOBAL */
/* ======================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  height: auto;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ======================= */
/* BODY BASE */
/* ======================= */
body {
  background-color: #0a0f24;
  font-family: "Arial", sans-serif;
  color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* ======================= */
/* CONTAINER */
/* ======================= */
.container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  overflow: visible !important;
}

/* ======================= */
/* HEADER */
/* ======================= */
header {
  background-color: #061128;
  color: #fff;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(10px);
  height: auto;
  min-height: 85px;
  overflow: visible !important;
}

header .container {
  height: auto;
  min-height: 85px;
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======================= */
/* FLEX PRINCIPAL */
/* ======================= */
.kn-header-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  min-height: 65px;
  padding: 10px 0;
}

/* ======================= */
/* LOGO */
/* ======================= */
.kn-site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.kn-site-logo img,
.custom-logo {
  height: 40px !important;
  width: auto !important;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* ---- titulo em texto ----
   A classe existia no header desde sempre, mas sem uma regra sequer: no
   dia em que o site ficasse sem logo enviada, o titulo sairia como link
   cru. Agora ela e o caminho normal. */
.kn-logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.kn-logo-text span { color: #fff; }
.kn-logo-text b    { color: var(--brand-cyan); font-weight: 700; }
.kn-logo-text:hover { opacity: 0.85; }

@media (max-width: 768px) {
  .kn-logo-text { font-size: 20px; gap: 4px; }
}

.kn-site-logo img:hover,
.custom-logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 12px rgba(45, 212, 255, 0.6));
}

/* ======================= */
/* MENU DESKTOP */
/* ======================= */
.kn-menu-site {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  justify-content: flex-start;
  overflow: visible !important;
}

.kn-menu-principal {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

.kn-menu-principal > li {
  position: relative;
}

.kn-menu-principal > li > a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 4px;
  font-size: 13px;
  transition: 0.25s;
  white-space: nowrap;
}

.kn-menu-principal > li:hover > a {
  color: #00d4ff;
}

/* ======================= */
/* MEGA MENU DESKTOP */
/* ======================= */
.kn-menu-principal li .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0);

  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;

  background: linear-gradient(180deg, #0b162e, #0f1b2d);
  padding: 30px 20px 20px 20px;

  border-radius: 12px;
  min-width: 500px;
  max-width: 650px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 99999;

  list-style: none;
}

.kn-menu-principal li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.kn-menu-principal li .sub-menu li a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: #cbd5e1;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}

.kn-menu-principal li .sub-menu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* ======================= */
/* BUSCA DESKTOP */
/* ======================= */
.kn-searchform {
  width: 200px;
  min-width: 140px;
  flex-shrink: 1;
  margin-left: auto;
}

.kn-searchform form {
  display: flex;
  width: 100%;
}

.kn-searchform input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  height: 38px;
  border: none;
  outline: none;
  border-radius: 25px 0 0 25px;
  background: #1a1a2e;
  color: #fff;
  font-size: 13px;
}

.kn-searchform button {
  padding: 0 14px;
  height: 38px;
  border: none;
  background: #00aaff;
  color: #fff;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.kn-searchform button:hover {
  background: #0095e6;
}

/* ======================= */
/* TOPO AREA */
/* ======================= */
.kn-topo-area {
  background-color: #061128;
  padding-bottom: 90px;
}

/* ======================= */
/* HAMBURGER */
/* ======================= */
.kn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}

.kn-hamburger:hover {
  background: rgba(45, 212, 255, 0.1);
}

.kn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brand-cyan);
  border-radius: 2px;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.kn-hamburger.kn-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.kn-hamburger.kn-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.kn-hamburger.kn-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ======================= */
/* MENU MOBILE DROPDOWN */
/* ======================= */
.kn-mobile-menu {
  display: none;
  flex-direction: column;
  background: linear-gradient(180deg, #0b162e, #0f1b2d);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: sticky;
  top: 85px;
  z-index: 9998;
  width: 100%;
}

.kn-mobile-menu.kn-open {
  max-height: 800px;
}

.kn-mobile-menu-inner {
  padding: 12px 20px 24px;
}

/* ======================= */
/* NAV MOBILE — ITENS PAI */
/* ======================= */
.kn-mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.kn-mobile-nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s, padding-left 0.2s;
}

.kn-mobile-nav > li:last-child > a {
  border-bottom: none;
}

.kn-mobile-nav > li > a:hover {
  color: var(--brand-cyan);
  padding-left: 6px;
}

/* Seta indicadora de submenu */
.kn-submenu-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--brand-cyan);
  transition: transform 0.3s ease;
  pointer-events: none;
  margin-left: 8px;
  flex-shrink: 0;
}

/* ======================= */
/* SUBMENU MOBILE          */
/* ======================= */
.kn-mobile-nav .sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.kn-mobile-nav .sub-menu li a {
  display: block;
  padding: 10px 0 10px 16px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.2s, padding-left 0.2s;
}

.kn-mobile-nav .sub-menu li:last-child a {
  border-bottom: none;
}

.kn-mobile-nav .sub-menu li a:hover {
  color: var(--brand-cyan);
  padding-left: 22px;
}

/* ======================= */
/* BUSCA MOBILE */
/* ======================= */
.kn-mobile-search form {
  display: flex;
  width: 100%;
}

.kn-mobile-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  height: 38px;
  border: none;
  outline: none;
  border-radius: 25px 0 0 25px;
  background: #1a1a2e;
  color: #fff;
  font-size: 13px;
}

.kn-mobile-search button {
  padding: 0 14px;
  height: 38px;
  border: none;
  background: var(--brand-blue);
  color: #fff;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.kn-mobile-search button:hover {
  background: #2563eb;
}

/* ======================= */
/* RESPONSIVO + ZOOM       */
/* breakpoint em 1024px    */
/* cobre zoom 125% em      */
/* notebooks 1280~1366px   */
/* ======================= */
@media (max-width: 1024px) {

  /* Esconde itens desktop */
  .kn-menu-site,
  .kn-searchform {
    display: none !important;
  }

  /* Mostra hamburger */
  .kn-hamburger {
    display: flex;
    margin-left: 0;
  }

  /* Menu mobile ativo via JS */
  .kn-mobile-menu {
    display: flex;
    top: 110px;
  }

  /* Header cresce para duas linhas: logo + hamburger */
  header {
    height: auto;
    min-height: auto;
    padding: 0;
  }

  header .container {
    height: auto;
    padding: 0 16px;
  }

  /* Flex em coluna: logo em cima, hamburger abaixo */
  .kn-header-flex {
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    height: auto;
    min-height: auto;
  }

  /* Logo levemente menor */
  .kn-site-logo img,
  .custom-logo {
    height: 36px !important;
  }

  /* Mega menu desktop desativado no mobile */
  .kn-menu-principal li .sub-menu {
    display: none !important;
  }
}
/* ======================= */
/* CARDS DE FILMES */
/* ======================= */
.kn-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.kn-card {
  background-color: #061128;
  border-radius: 12px;
  border: 5px solid #0d1b39;
  width: 220px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  margin-bottom: 20px;
}

.kn-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.kn-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 15px rgba(0, 170, 255, 0.5);
  border-color: #007cf0;
}

.kn-card-thumbnail {
  position: relative;
  overflow: hidden;
}

.kn-card-thumbnail img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  aspect-ratio: 2 / 3; /* melhora CLS e SEO */
  transition: transform 0.4s ease;
}

.kn-card:hover .kn-card-thumbnail img {
  transform: scale(1.05);
}

.kn-card-placeholder {
  width: 100%;
  height: 200px;
  background-color: #333;
  display: block;
  object-fit: cover;
}

.kn-card-imdb-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
  font-weight: bold;
  padding: 5px;
  text-align: center;
}

.kn-card-imdb-bottom .star {
  color: yellow;
  font-size: 16px;
}

.kn-card-title {
  font-size: 15px;
  margin: 10px 0;
  color: white;
  min-height: 40px;
}

.kn-card-title a {
  text-decoration: none;
  color: white;
}

.kn-card-title a:hover {
  color: var(--brand-cyan);
}

.kn-card-date {
  font-size: 12px;
  color: #000;
  margin-top: 5px;
  margin-bottom: 10px;
  padding: 5px;
  border: 1px solid white;
  border-radius: 5px;
  background: #fff;
}

/* ======================= */
/* RESPONSIVO */
/* ======================= */
@media (max-width: 992px) {
  /* CONTAINER */
  .container {
    width: 90%;
    flex-direction: column;
    align-items: center;
  }

  /* MENU */
  .kn-menu-site {
    width: 100%;
    justify-content: center;
  }

  .kn-menu-principal {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-top: 10px;
  }

  .kn-menu-principal li a {
    font-size: 16px;
  }

  /* SEARCHFORM */
  .kn-searchform {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .kn-searchform form {
    width: 100%;
    justify-content: center;
  }

  .kn-searchform input[type="search"] {
    width: 70%;
    min-width: 200px;
  }

  .kn-searchform button {
    padding: 0 15px;
    font-size: 16px;
  }

  .kn-slider-controls {
    justify-content: center;
    width: 100%;
  }

  .kn-slider-generos {
    width: 100%;
  }

  .kn-slider-generos a {
    font-size: 13px;
    padding: 8px 16px;
  }

  /* CARDS */
  .kn-card {
    width: calc(50% - 15px); /* 2 colunas */
  }

  .kn-card-thumbnail img {
    height: 220px;
  }
}

@media (max-width: 576px) {
  .kn-searchform input[type="search"] {
    width: 100%;
    font-size: 14px;
    height: 40px;
  }

  .kn-searchform button {
    height: 40px;
    font-size: 14px;
  }

  .kn-menu-principal li a {
    font-size: 14px;
  }

  .kn-slider-generos a {
    font-size: 12px;
    padding: 7px 14px;
  }

  /* CARDS MOBILE */
  .kn-cards-container {
    gap: 10px;
  }

  .kn-card {
    width: calc(50% - 10px); /* mantém 2 colunas até em telas pequenas */
    max-width: none;
  }

  .kn-card-thumbnail img {
    height: auto;
  }
}



/* ======================= */
/* SEÇÃO "CONFIRA OS ÚLTIMOS" */
/* ======================= */
.kn-section-title {
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 20px;
  background: linear-gradient(90deg, #007cf0 0%, #ff4b2b 100%);
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  width: 100%;
  position: relative;
  left: 0;
  z-index: 1;
  box-sizing: border-box;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

/* ======================= */
/* SECTION-TITLE RESPONSIVO */
/* ======================= */
@media (max-width: 768px) {
  .kn-section-title {
    font-size: 16px;
    padding: 14px 16px;
    margin-top: 20px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .kn-section-title {
    font-size: 14px;
    padding: 12px 12px;
    margin-top: 16px;
    margin-bottom: 10px;
    letter-spacing: 0;
  }
}

/* ======================= */
/* STICKY SLIDER */
/* ======================= */
.kn-sticky-slider-area {
  margin-top: 30px;
  width: 100%;
}

.kn-slider-sticky-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.kn-slider-sticky {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 20px;
  padding-bottom: 10px;
  width: 100%;
  -ms-overflow-style: none; /* IE/Edge */
  scrollbar-width: none; /* Firefox */
}

.kn-slider-sticky::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* CARD DENTRO DO SLIDER */
.kn-slider-sticky .kn-card {
  flex: 0 0 auto;
  width: 200px;
  background-color: #061128;
  border-radius: 10px;
  border: 4px solid #0d1b39;
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.kn-slider-sticky .kn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 170, 255, 0.4);
  border-color: #007cf0;
}

/* IMAGEM */
.kn-slider-sticky .kn-card-thumbnail img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  aspect-ratio: 2 / 3; /* 🔧 estabilidade visual */
  display: block;
}

/* IMDB NOTA */
.kn-card-imdb-bottom {
  background-color: #f5c518;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 5px 0;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}

.kn-card-imdb-bottom::before {
  content: "\2605 ";
  color: #000;
}

/* CONTEÚDO DO CARD */
.kn-slider-sticky .kn-card-content {
  padding: 10px;
}

.kn-slider-sticky .kn-card-title {
  font-size: 16px;
  margin: 10px 0;
  color: #fff;
  min-height: 40px;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

.kn-card-date {
  background: linear-gradient(#ccc, #999);
  padding: 5px 8px;
  border-radius: 5px;
  margin-top: 5px;
  font-size: 12px;
  color: #000;
  display: inline-block;
}

/* SETAS DE NAVEGAÇÃO */
.kn-slider-arrow-sticky {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: #000;
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.kn-slider-arrow-sticky.left {
  left: -20px;
}

.kn-slider-arrow-sticky.right {
  right: -20px;
}

.kn-slider-arrow-sticky:hover {
  background: #0d6efd;
  color: #fff;
  transform: scale(1.05);
}

/* ======================= */
/* CABEÇALHO DO FILME (TÍTULO + DATA) */
/* ======================= */
.kn-filme-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.kn-fh-titulo { min-width: 0; }

.kn-filme-header h1 {
  color: #fff;
  font-size: 32px;
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}

/* nome original, logo abaixo do titulo */
.kn-filme-header .kn-titulo-original {
  margin: 5px 0 0;
  color: #8fa3c4;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
}

/* generos no lugar onde ficava a data */
.kn-filme-header .kn-filme-generos {
  margin: 0;
  font-size: 14px;
  color: #ccc;
  text-align: right;
}

.kn-filme-header .kn-filme-generos a {
  color: #00c6ff;
  text-decoration: none;
  font-weight: 600;
}

.kn-filme-header .kn-filme-generos a:hover { text-decoration: underline; }

/* Responsivo */
@media (max-width: 768px) {
  .kn-filme-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .kn-filme-header .kn-filme-generos {
    text-align: left;
  }
}


/* ======================= */
/* FILME INFO (CONTAINER PRINCIPAL) */
/* ======================= */


.kn-filme-info {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
  align-items: flex-start;
}

/* COLUNA ESQUERDA (CAPA + TRAILER + TAGS) */
.kn-filme-capa {
  flex: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* CAPA IMAGEM */
.kn-capa-imagem {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

/* ======================= */
/* BADGES COLADAS NA CAPA */
/* ======================= */

/* GRUPOS */
.kn-badges-capa-esquerda,
.kn-badges-capa-direita {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: row;
  z-index: 5;
}

.kn-badges-capa-esquerda { left: 0; }
.kn-badges-capa-direita { right: 0; }

/* ESTILO GERAL DAS BADGES */
.kn-badge-qualidade,
.kn-badge-ano,
.kn-badge-categoria,
.kn-badge-idioma {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  height: 26px;
  display: flex;
  align-items: center;
  line-height: 1;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* CURVAS ESQUERDA */
.kn-badges-capa-esquerda .kn-badge-categoria:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.kn-badges-capa-esquerda .kn-badge-idioma:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* CURVAS DIREITA */
.kn-badges-capa-direita .kn-badge-qualidade:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.kn-badges-capa-direita .kn-badge-ano:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* CORES */
.kn-badge-categoria { background-color: #17a2b8; }
.kn-badge-idioma { background-color: #6f42c1; }
.kn-badge-qualidade { background-color: #28a745; }
.kn-badge-ano { background-color: #000; }

/* ======================= */
/* RESPONSIVO */
/* ======================= */
@media (max-width: 991px) {
  .kn-slider-sticky .kn-card {
    width: 160px;
  }

  .kn-slider-sticky .kn-card-thumbnail img {
    height: 240px;
  }

  .kn-filme-info {
    flex-direction: column;
    align-items: center;
  }

  .kn-filme-capa {
    max-width: 90%;
    align-items: center;
  }

  .kn-slider-arrow-sticky {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .kn-section-title {
    font-size: 16px;
    padding: 15px;
  }

  .kn-slider-sticky .kn-card {
    width: 140px;
  }

  .kn-slider-sticky .kn-card-thumbnail img {
    height: 200px;
  }

  .kn-badge-qualidade,
  .kn-badge-ano,
  .kn-badge-categoria,
  .kn-badge-idioma {
    font-size: 10px;
    padding: 4px 8px;
  }
}



/* ======================= */
/* CAPA IMG */
/* ======================= */
.kn-capa-imagem img {
  width: 100%;
  height: auto; /* trava a altura no aspect-ratio e ignora width/height do HTML */
  border-radius: 12px;
  border: 3px solid #0d1b39;
  object-fit: cover;
  aspect-ratio: 2 / 3; /* ⚡ Evita CLS (layout shift) */
  display: block;
  transition: transform 0.3s ease;
}

.kn-capa-imagem img:hover {
  transform: scale(1.03);
}

/* ======================= */
/* NOTA IMDb */
/* ======================= */
.kn-filme-nota {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #f5c518;
  color: #000;
  text-align: center;
  font-weight: 700;
  padding: 8px 0;
  font-size: 16px;
  border-radius: 0 0 12px 12px;
}

.kn-filme-nota a {
  text-decoration: none;
  color: inherit;
}


.kn-badge-ano {
  text-decoration: none;
}

/* ======================= */
/* TRAILER MINI */
/* ======================= */
.kn-filme-trailer-mini {
  background: #061128;
  padding: 15px;
  border-radius: 12px;
  border: 3px solid #0d1b39;
  box-shadow: 0 4px 12px rgba(0, 124, 240, 0.1);
}

.kn-filme-trailer-mini h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
  border-bottom: 2px solid #007cf0;
  padding-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kn-filme-trailer-mini iframe {
  width: 100%;
  height: auto; /* sem altura fixa, o aspect-ratio abaixo passa a valer */
  border-radius: 12px;
  border: none;
  display: block;
  aspect-ratio: 16 / 9; /* reserva a altura antes do iframe carregar */
}

/* ======================= */
/* SERVIÇOS DISPONÍVEIS */
/* ======================= */
.kn-filme-onde-assistir-mini {
  background: #061128;
  padding: 15px;
  border-radius: 12px;
  border: 3px solid #0d1b39;
  box-shadow: 0 4px 12px rgba(0, 124, 240, 0.1);
  margin-top: 20px;
  text-align: center;
}

.kn-filme-onde-assistir-mini h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
  border-bottom: 2px solid #007cf0;
  padding-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Grid dos provedores */
.kn-providers-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.kn-provider-item {
  display: inline-block;
  text-align: center;
  width: 90px;
  text-decoration: none;
  transition: transform 0.2s;
}

.kn-provider-item:hover {
  transform: scale(1.08);
}

.kn-provider-item img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(255,255,255,0.2);
}

.kn-provider-item span {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: #fff;
}


/* ======================= */
/* MAIS ACESSADOS (AJUSTADO) */
/* ======================= */

.kn-posts-relacionados {
  width: 100%;
  background: #061128;
  margin-top: 60px;
  padding: 50px 30px;
  border-top: 2px solid #007cf0;
  border-bottom: 2px solid #007cf0;
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 124, 240, 0.15);
  box-sizing: border-box;
}

.kn-posts-relacionados h2 {
  font-size: 28px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 45px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  position: relative;
}

.kn-posts-relacionados h2::after {
  content: '';
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #007cf0, transparent);
  position: absolute;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
  border-radius: 3px;
}

/* Container */
.kn-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

/* Cards */
.kn-posts-relacionados .kn-card {
  background: #0d1b39;
  border: 1px solid transparent;
  border-radius: 14px;
  width: 200px; /* ← Aumentado */
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 0 15px rgba(0, 124, 240, 0.2);
  text-align: center;
}

.kn-posts-relacionados .kn-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(0, 124, 240, 0.4);
  border-color: #007cf0;
}

/* Thumbnail */
.kn-card-thumbnail {
  width: 100%;
  height: 300px; /* ← Mais alto */
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  background: #0a1530;
}

.kn-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.kn-card:hover .kn-card-thumbnail img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* Título */
.kn-card-title {
  font-size: 15.5px;
  color: #ffffff;
  padding: 12px 10px;
  text-align: center;
  line-height: 1.4;
  min-height: 50px; /* ligeiramente maior */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  transition: color 0.2s ease;
}

.kn-card:hover .kn-card-title {
  color: #66b3ff;
}

/* Responsivo */
@media (max-width: 992px) {
  .kn-posts-relacionados .kn-card {
    width: 45%;
    max-width: 200px;
  }

  .kn-card-thumbnail {
    height: 240px;
  }
}

@media (max-width: 576px) {
  .kn-cards-container {
    gap: 18px;
  }

  .kn-posts-relacionados .kn-card {
    width: 46%;
  }

  .kn-card-thumbnail {
    height: 220px;
  }

  .kn-card-title {
    font-size: 13.5px;
  }
}
/* ======================= */
/* DOWNLOADS */
/* ======================= */

/* ===== CONTAINER GERAL ===== */
.kn-filme-download {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ===== HEADER PRINCIPAL ===== */
.kn-dl-header-box {
    text-align: center;
    padding: 40px 20px;
    border-radius: 20px;
    margin-bottom: 10px;

    background: radial-gradient(circle at top, rgba(30, 60, 120, 0.35), rgba(5,10,25,0.95));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
}

.kn-dl-header-box h2 {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.kn-dl-header-box p {
    font-size: 15px;
    color: #9fb3c8;
    margin: 0;
}

/* ===== CARD ===== */
.kn-download-grupo {
    background: rgba(10, 15, 30, 0.95);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    position: relative;
}

/* Glow sutil */
.kn-download-grupo::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(120deg, transparent, rgba(0,198,255,0.3), transparent);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
}

/* ===== HEADER DO GRUPO ===== */
.kn-grupo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(135deg, #007cf0, #00c6ff);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-size: 14px;
}

.kn-grupo-icon { display: inline-flex; }
.kn-grupo-title { flex: 1 1 auto; }

.kn-grupo-qtd {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: none;
    white-space: nowrap;
}

/* ===== LISTA =====
   Cada linha possui um botao de revelacao: a URL real nao vem no HTML. */
.kn-lista-download {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 2px solid #0d1b39;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: #061128;
}

.kn-download-item {
    display: block;
    padding: 0;
    border: 1px solid #12213f;
    border-radius: 10px;
    background: #08152f;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.kn-download-item:hover {
    border-color: #00c6ff;
    background: #0a1a3a;
    transform: translateY(-1px);
}

.kn-download-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
}

/* resolucao, na frente */
.kn-di-qual {
    flex: 0 0 auto;
    min-width: 64px;
    padding: 6px 10px;
    border-radius: 7px;
    background: linear-gradient(135deg, #007cf0, #00c6ff);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-align: center;
}

/* peso em corpo grande, e o que sobrou do titulo embaixo */
.kn-di-txt { flex: 1 1 auto; min-width: 0; }

.kn-di-txt b {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.kn-di-txt small {
    display: block;
    margin-top: 2px;
    color: #8fa3c4;
    font-size: 12px;
}

.kn-di-tipo {
    flex: 0 0 auto;
    padding: 3px 9px;
    border: 1px solid #2a3f68;
    border-radius: 999px;
    color: #8fa3c4;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.kn-di-seta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0d1b39;
    color: #00c6ff;
    transition: background 0.18s ease, color 0.18s ease;
}

.kn-download-item:hover .kn-di-seta { background: #00c6ff; color: #061128; }

/* ===== LEGENDAS ===== */
.kn-download-legendas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.kn-btn-legenda {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #2a3f68;
    border-radius: 999px;
    color: #ffd35c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.kn-btn-legenda:hover { background: #ffd35c; color: #061128; }

@media (max-width: 600px) {
    /* a linha nao cabe em fila unica: o texto ocupa a largura toda e a
       resolucao sobe para junto do tipo */
    .kn-download-info { flex-wrap: wrap; gap: 10px; padding: 12px; }
    .kn-di-txt { flex: 1 1 100%; order: 3; }
    .kn-di-qual { order: 1; }
    .kn-di-tipo { order: 2; }
    .kn-di-seta { order: 4; margin-left: auto; }
}

/* ===== DOWNLOADS SOB DEMANDA: mesma faixa original + copiar link ===== */
.kn-download-row { display: flex; align-items: stretch; min-width: 0; }
.kn-download-reveal.kn-download-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    margin: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
}
.kn-download-reveal:disabled,
.kn-btn-download-copy:disabled { opacity: .7; cursor: progress; }
.kn-btn-download-copy {
    flex: 0 0 auto;
    align-self: center;
    margin: 0 12px 0 0;
    padding: 8px 11px;
    border: 1px solid #344d77;
    border-radius: 7px;
    background: transparent;
    color: #b8dafa;
    font: 700 11px/1.3 system-ui, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
.kn-btn-download-copy:hover { border-color: #00c6ff; background: #122e54; color: #fff; }
.kn-download-reveal:focus-visible,
.kn-btn-download-copy:focus-visible,
.kn-download-url:focus-visible { outline: 2px solid #00c6ff; outline-offset: 2px; }
.kn-download-manual[hidden], .kn-download-status[hidden] { display: none !important; }
.kn-download-manual { margin: 0 13px 10px; color: #aac0df; font-size: 12px; }
.kn-download-url {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 5px;
    padding: 9px;
    border: 1px solid #34466d;
    border-radius: 6px;
    background: #061128;
    color: #fff;
    font: 12px/1.3 system-ui, sans-serif;
}
.kn-download-status { margin: 0 12px 10px; font-size: 12px; color: #8edce5; }
.kn-download-status.kn-status-error { color: #ffaaa8; }
.kn-download-legenda-item { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.kn-download-legenda-item .kn-btn-download-copy { margin: 0; }
.kn-download-legenda-item .kn-download-manual { flex: 1 1 100%; margin: 0; }
.kn-download-legenda-item .kn-download-status { flex: 1 1 100%; margin: 0; }
.kn-btn-legenda.kn-download-reveal { background: transparent; cursor: pointer; font-family: inherit; }
@media (max-width: 600px) {
    .kn-download-row { flex-wrap: wrap; }
    .kn-download-row > .kn-btn-download-copy { margin: 0 12px 12px auto; }
    .kn-download-reveal.kn-download-info { flex: 1 1 100%; }
}
body.kinema-dark .kn-download-url { background: #101219; border-color: #353a46; }

/* ======================= */
/* CONTEÚDO (SINOPSE + INFO + LINK) */
/* ======================= */
.kn-filme-conteudo {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* SINOPSE */
.kn-filme-detalhes {
  background: #061128;
  padding: 20px;
  border-radius: 12px;
  border: 3px solid #0d1b39;
}

.kn-filme-detalhes h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffffff;
  border-bottom: 2px solid #007cf0;
  padding-bottom: 5px;
}

.kn-filme-sinopse {
  margin-bottom: 20px;
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
  text-align: justify;
}

/* ======================= */
/* MODAL PLAYER */
/* ======================= */
.kn-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  overscroll-behavior: contain;
}

.kn-modal-overlay.kn-aberto {
  display: flex;
}

.kn-modal-content {
  position: relative;
  width: 90%;
  height: 90dvh;
  max-height: 100dvh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kn-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.kn-modal-iframe {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  border: 0;
  display: block;
}

.kn-modal-close {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
  font-weight: 800;
  border: none;
  padding: 14px 22px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.kn-modal-close:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}

/* Evita rolagem quando modal aberto */
html.kn-no-scroll,
body.kn-no-scroll {
  overflow: hidden !important;
  height: 100% !important;
}

/* ======================= */
/* PLAYER EMBED FIXO */
/* ======================= */
.kn-filme-links {
  background: #061128;
  border-radius: 12px;
  border: 3px solid #0d1b39;
  overflow: hidden;
  position: relative;
  height: 600px; /* Desktop fixo */
}

.kn-iframe-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kn-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ======================= */
/* RESPONSIVO */
/* ======================= */
@media (max-width: 768px) {
  .kn-filme-info {
    flex-direction: column;
    align-items: center;
  }

  .kn-filme-trailer-mini iframe {
    height: auto; /* era 200px fixo, o que anulava o aspect-ratio */
  }

  .kn-filme-links {
    height: 320px;
  }

  .kn-modal-close {
    font-size: 16px;
    padding: 12px 18px;
  }
}

@media (max-width: 480px) {
  .kn-modal-content {
    border-radius: 8px;
    width: 94%;
    height: 92dvh;
  }

  .kn-modal-close {
    font-size: 15px;
    padding: 10px 16px;
  }
}

/* ======================= */
/* FILMES MAIS ACESSADOS */
/* ======================= */
.kn-mais-acessados-outside {
  width: 100%;
  background: #061128;
  margin-top: 50px;
  padding: 50px 20px;
  overflow-x: hidden;
}

.kn-mais-acessados {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.kn-mais-acessados h2 {
  font-size: 28px;
  color: #ffffff;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kn-posts-mais-acessados {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.kn-post-mais-acessado {
  background: #0d1b39;
  padding: 10px;
  border-radius: 12px;
  width: 160px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.kn-post-mais-acessado:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 124, 240, 0.5);
}

.kn-post-mais-acessado a {
  text-decoration: none;
  display: block;
}

.kn-post-mais-acessado img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  aspect-ratio: 2 / 3; /* ⚡ evita CLS */
  display: block;
}

.kn-post-mais-acessado p {
  font-size: 14px;
  color: #ffffff;
  margin-top: 10px;
  padding: 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ======================= */
/* RESPONSIVO */
/* ======================= */
@media (max-width: 768px) {
  .kn-posts-mais-acessados {
    justify-content: center;
  }

  .kn-post-mais-acessado {
    width: 45%;
  }

  .kn-post-mais-acessado img {
    height: 250px;
  }
}

/* ======================= */
/* COMENTÁRIOS WP */
/* ======================= */

.kn-comentarios-filme {
  background: #061128;
  padding: 20px;
  border-radius: 12px;
  border: 3px solid #0d1b39;
  margin-top: 40px;
}

/* Título dos comentários */
.kn-comentarios-filme h2,
.kn-comentarios-filme h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffffff;
  border-bottom: 2px solid #007cf0;
  padding-bottom: 5px;
}

/* Lista de comentários */
.commentlist,
.comments-area ol {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.commentlist li {
  padding: 15px;
  margin-bottom: 15px;
  background: #0d1b39;
  border-radius: 10px;
  border: 2px solid #11254c;
}

.comment-author {
  color: #00aaff;
  font-weight: bold;
  margin-bottom: 5px;
}

.comment-metadata a {
  color: #cccccc;
  font-size: 12px;
  text-decoration: none;
}

.comment-content {
  color: #ffffff;
  margin-top: 10px;
  line-height: 1.5;
}

/* Avatar */
.comment-author img {
  border-radius: 50%;
  margin-right: 10px;
}

/* Responder */
.comment-reply-link {
  color: #00ff00;
  font-weight: bold;
  font-size: 14px;
}

.comment-reply-link:hover {
  color: #00cc00;
}

/* ========================= */
/* FORMULÁRIO DE COMENTÁRIO */
/* ========================= */

.comment-respond {
  margin-top: 30px;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 12px;
  background: #0b162e;
  border: 2px solid #11254c;
  color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 15px;
}

.comment-respond textarea {
  min-height: 140px;
  resize: vertical;
}

.comment-respond label {
  color: #00aaff;
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

/* Botão enviar */
.comment-respond input[type="submit"] {
  background: linear-gradient(135deg, #007cf0, #0057a3);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 10px;
  font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.comment-respond input[type="submit"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 14px rgba(0,0,0,.3);
}

.kn-comentarios-filme {
  margin-top: 40px !important;
}


/* ======================= */
/* FOOTER 2 COLUNAS */
/* ======================= */
.kn-site-footer {
  background: #060e23;
  color: #ccc;
  border-top: 2px solid #007cf0;
  padding: 50px 20px;
  font-size: 14px;
}

.kn-footer-conteudo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

/* LOGO */
.kn-footer-logo img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(0, 124, 240, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.kn-footer-logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(0, 124, 240, 0.6));
}

/* TEXTO E LINKS */
.kn-footer-copy {
  flex: 1;
  text-align: right;
}

.kn-footer-text {
  color: #9bb4e4;
  font-size: 14px;
  line-height: 1.7;
  max-width: 650px;
  margin-left: auto;
}

.kn-footer-text strong {
  color: #fff;
}

.kn-footer-sitemap {
  color: #9bb4e4;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.kn-footer-sitemap:hover {
  color: #fff;
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .kn-footer-conteudo {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .kn-footer-copy {
    text-align: center;
  }

  .kn-footer-logo img {
    width: 150px;
    height: 150px;
  }

  .kn-footer-text {
    font-size: 13px;
    margin: 0 auto;
    max-width: 90%;
  }
}


/* ======================= */
/* PAGINAÇÃO */
/* ======================= */
.kn-pagination-container {
  width: 100%;
  max-width: 100vw;
  background: linear-gradient(#ccc, #999);
  padding: 15px 0;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow-x: auto;
  box-sizing: border-box;
}

.kn-pagination {
  font-weight: bold;
  color: #000;
  text-align: center;
}

.kn-pagination a,
.kn-pagination span {
  margin: 0 6px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.kn-pagination a:hover {
  color: #007cf0;
}

.kn-pagination span.current {
  background: #007cf0;
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
}

/* Mobile pagination */
@media (max-width: 576px) {
  .kn-pagination-container {
    padding: 10px;
    margin-top: 30px;
    border-radius: 8px;
  }

  .kn-pagination {
    flex-wrap: wrap;
    font-size: 13px;
  }

  .kn-pagination a,
  .kn-pagination span {
    margin: 4px;
    font-size: 13px;
    padding: 6px 10px;
    display: inline-block;
    white-space: nowrap;
  }

  .kn-pagination span.current {
    padding: 6px 10px;
    border-radius: 5px;
    font-size: 13px;
  }
}

/* ======================= */
/* 404 PAGE */
/* ======================= */
.kn-page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  color: #fff;
}

.kn-page-404 h1 {
  font-size: 24px;
  margin-bottom: 15px;
}

.kn-page-404 p {
  font-size: 16px;
  margin-bottom: 30px;
}

.kn-btn-voltar {
  background-color: #0d6efd;
  color: white;
  padding: 10px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.25s ease;
}

.kn-btn-voltar:hover {
  background-color: #0070e0;
}

/* ======================= */
/* FILTROS */
/* ======================= */
.kn-filtros-archive,
.kn-filtros-category {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  margin-top: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.kn-filtros-archive label,
.kn-filtros-category label {
  font-weight: 500;
  margin-right: 5px;
  color: #333;
}

.kn-filtros-archive select,
.kn-filtros-category select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 14px;
  min-width: 140px;
  transition: border-color 0.2s ease;
}

.kn-filtros-archive select:focus,
.kn-filtros-category select:focus {
  border-color: #007cf0;
  outline: none;
}

.kn-filtros-archive button,
.kn-filtros-category button {
  padding: 8px 16px;
  border: none;
  background-color: #007cf0;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.kn-filtros-archive button:hover,
.kn-filtros-category button:hover {
  background-color: #005f8d;
}

@media (max-width: 768px) {
  .kn-section-title {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .kn-filtros-archive,
  .kn-filtros-category {
    width: 100%;           /* ← ocupa todo o pai */
    margin-top: 12px;
    box-sizing: border-box;
  }

  .kn-filtros-archive select,
  .kn-filtros-category select,
  .kn-filtros-archive button,
  .kn-filtros-category button {
    width: 100%;
    min-width: unset;
    box-sizing: border-box;
  }
}

/* ======================= */
/* ACESSIBILIDADE E SEGURANÇA VISUAL */
/* ======================= */
body {
  overflow-x: hidden;
  background-color: #0a0f24;
  font-family: 'Arial', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}



/* ======================= */
/* FICHA FINAL DO POST     */
/* Substitui o antigo <h2> centralizado do single.php.        */
/* Mesmo visual, mas sem semântica de heading (evita ser lido */
/* pelo Google como título repetido / over-optimization).     */
/* ======================= */
.kn-filme-titulo-completo {
  font-size: 1.35em;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
  text-align: center;
  margin: 1em 0 0.4em;
}

/* o negrito vem do <strong> na marcacao, e nao do bloco inteiro: assim a
   frase respira em vez de virar um bloco pesado de texto */
.kn-filme-titulo-completo strong { font-weight: 700; }

/* Variante com detalhe da cor da marca — se quiser, comenta o
   bloco acima e descomenta este:

.filme-titulo-completo {
  font-size: 1.5em;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 30px 0 10px;
  padding-top: 20px;
  border-top: 2px solid #007cf0;
}
*/

/* ======================= */
/* ALINHAMENTO DO BADGE DE DATA NO CARD                        */
/* O .card-date é inline-block e ficava logo depois do título, */
/* então título de 2 ou 3 linhas jogava o badge pra alturas    */
/* diferentes. Aqui o card vira coluna flex e o badge é        */
/* empurrado pro rodapé, alinhando todos na mesma linha.       */
/* Escopado em .cards-container pra não afetar o slider.       */
/* ======================= */
.kn-cards-container > .kn-card {
  display: flex;
  flex-direction: column;
}

.kn-cards-container > .kn-card > .kn-card-link {
  flex: 1 1 auto;
}

.kn-cards-container > .kn-card > .kn-card-date {
  margin-top: auto; /* empurra pro rodapé; largura continua cheia (stretch) */
}

/* =====================================================================
   ESQUEMA DE CORES: DARK
   Ativado em Opções do Tema → Esquema de cores → Dark.
   Adiciona a classe .kinema-dark no <body>.

   Tudo aqui é OVERRIDE: nenhuma regra acima foi modificada, então o
   esquema Original continua exatamente como sempre foi. Pra remover o
   Dark por completo, basta apagar este bloco inteiro.

   Acentos semânticos foram mantidos de propósito (amarelo do IMDb,
   gradiente roxo/ciano do botão de download, dourado da legenda) —
   eles comunicam função, não tema.
   ===================================================================== */

body.kinema-dark {
  --d-bg:        #0b0b0e;  /* fundo da página        */
  --d-surface:   #151519;  /* cards e painéis        */
  --d-surface-2: #1c1c21;  /* superfície aninhada    */
  --d-border:    #2b2b33;  /* bordas                 */
  --d-accent:    #3d8bfd;  /* azul da marca, clareado para contraste */
  --d-accent-2:  #5aa9ff;
  --d-txt:       #e7e8ec;
  --d-txt-mut:   #9b9ca4;

  background-color: var(--d-bg);
  color: var(--d-txt);
}

/* ---- Cabeçalho e navegação ---- */
body.kinema-dark header,
body.kinema-dark .kn-topo-area          { background-color: var(--d-surface); }
body.kinema-dark .kn-mobile-menu        { background: linear-gradient(180deg, #141418, #1b1b21); }
body.kinema-dark .kn-logo-text span { color: var(--d-txt); }
body.kinema-dark .kn-logo-text b    { color: var(--d-accent-2); }

body.kinema-dark .kn-menu-principal > li > a { color: var(--d-txt); }
body.kinema-dark .kn-menu-principal > li > a:hover { color: var(--d-accent-2); }

/* ---- Cards de listagem ---- */
body.kinema-dark .kn-card,
body.kinema-dark .kn-slider-sticky .kn-card {
  background-color: var(--d-surface);
  border-color: var(--d-border);
}
body.kinema-dark .kn-card:hover,
body.kinema-dark .kn-slider-sticky .kn-card:hover,
body.kinema-dark .kn-posts-relacionados .kn-card:hover { border-color: var(--d-accent); }

body.kinema-dark .kn-posts-relacionados .kn-card,
body.kinema-dark .kn-post-mais-acessado,
body.kinema-dark .commentlist li { background: var(--d-surface-2); }

body.kinema-dark .kn-card-date {
  background: linear-gradient(#33343d, #24252c);
  border-color: var(--d-border);
  color: var(--d-txt);
}

/* ---- Faixa de título de seção ---- */
body.kinema-dark .kn-section-title {
  background: linear-gradient(90deg, #1a3560 0%, #5c2a2a 100%);
  color: var(--d-txt);
}

/* ---- Página do filme ---- */
body.kinema-dark .kn-filme-detalhes,
body.kinema-dark .kn-filme-links,
body.kinema-dark .kn-filme-trailer-mini,
body.kinema-dark .kn-filme-onde-assistir-mini,
body.kinema-dark .kn-posts-relacionados,
body.kinema-dark .kn-mais-acessados-outside,
body.kinema-dark .kn-comentarios-filme {
  background: var(--d-surface);
  border-color: var(--d-border);
}

body.kinema-dark .kn-filme-header .kn-titulo-original { color: var(--d-txt-mut); }
body.kinema-dark .kn-filme-header .kn-filme-generos { color: var(--d-txt-mut); }
body.kinema-dark .kn-filme-header .kn-filme-generos a { color: var(--d-accent-2); }

body.kinema-dark .kn-capa-imagem img { border-color: var(--d-border); }

body.kinema-dark .kn-filme-detalhes h2,
body.kinema-dark .kn-filme-trailer-mini h2,
body.kinema-dark .kn-filme-onde-assistir-mini h2,
body.kinema-dark .kn-comentarios-filme h3 { border-bottom-color: var(--d-accent); }

body.kinema-dark .kn-posts-relacionados {
  border-top-color: var(--d-accent);
  border-bottom-color: var(--d-accent);
}
body.kinema-dark .kn-posts-relacionados h2::after { background: var(--d-accent); }

body.kinema-dark .kn-filme-titulo-completo { color: var(--d-txt); }

/* ---- Área de downloads ---- */
body.kinema-dark .kn-dl-header-box {
  background: radial-gradient(circle at top, rgba(61, 139, 253, 0.16), rgba(11, 11, 14, 0.96));
  border-color: var(--d-border);
}
body.kinema-dark .kn-download-grupo {
  background: rgba(21, 21, 25, 0.95);
  border-color: var(--d-border);
}

/* ---- Rodapé e paginação ---- */
body.kinema-dark .kn-site-footer {
  background: #0e0e12;
  color: var(--d-txt-mut);
  border-top-color: var(--d-accent);
}
body.kinema-dark .kn-pagination,
body.kinema-dark .kn-pagination span { color: var(--d-txt); }
body.kinema-dark .kn-pagination a:hover { color: var(--d-accent-2); }

/* ---- Formulário de busca ---- */
body.kinema-dark .kn-searchform input[type="search"],
body.kinema-dark .kn-mobile-search input[type="search"] {
  background: var(--d-surface-2);
  border-color: var(--d-border);
  color: var(--d-txt);
}
body.kinema-dark .comment-respond input[type="submit"] { background: var(--d-accent); }

/* ======================= */
/* ÍCONES SVG INLINE                                            */
/* Substituem o Font Awesome. Dimensionados em "em" para        */
/* acompanhar o font-size do elemento pai, igual ao FA fazia    */
/* com os <i>. O flex:0 0 auto evita que o SVG seja espremido   */
/* dentro de .btn-legenda e .di-seta, que são flex.             */
/* ======================= */
.kinema-icon {
  display: inline-block;
  height: 1em;
  width: auto;
  flex: 0 0 auto;
  vertical-align: -0.125em;
  fill: currentColor;
}

/* Dá o mesmo respiro que o espaço depois do <i> dava.
   O .di-seta fica de fora: la o icone e centralizado num circulo, e a
   margem o empurraria para a esquerda. */
.kn-btn-legenda .kinema-icon { margin-right: 6px; }
.kn-di-seta .kinema-icon { margin: 0; height: 1.15em; }


/* ===== AVISO DE ANÚNCIOS NOS DOWNLOADS ===== */
.kn-aviso-anuncio {
    margin: 12px 14px 0;
    padding: 11px 14px;
    border: 1px solid rgba(255, 193, 7, .42);
    border-left: 4px solid #ffc107;
    border-radius: 9px;
    background: rgba(255, 193, 7, .10);
    color: #ffd76a;
    font-size: 12px;
    line-height: 1.45;
}
.kn-anuncio-badge {
    flex: 0 0 auto;
    padding: 4px 9px;
    border: 1px solid rgba(255, 193, 7, .45);
    border-radius: 999px;
    background: rgba(255, 193, 7, .10);
    color: #ffd76a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .35px;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .kn-anuncio-badge { order: 2; }
}

.kn-section-title h1, .kn-archive-h1 { margin:0; font:inherit; color:inherit; }
