/*
Theme Name: TemplateAnime
Theme URI: https://animefillerguide.com/
Author: Souhiro
Author URI: https://animefillerguide.com/
Description: TemplateAnime es una plantilla completa de WordPress diseñada para fans del anime. Permite mostrar series y películas con todos sus datos, ofreciendo filtros avanzados por géneros, temáticas, demografía, estudio, rating y más. Incluye sidebar, widgets personalizables y un diseño responsivo optimizado para una experiencia de navegación rápida y atractiva.
Version: 1.0
License: GNU GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: templateanime
*/

/* ===============================
   VARIABLES PRINCIPALES
================================*/
:root {
  --primary-color: #e9e8ed;
  --secondary-color: #fff;
  --font-color: #2a2e2e;
  --bg-color: #fff;
  --heading-color: #292922;
  --border-color: #ddd;
  --link-color: #934707;
  --link-color-hover: #7b4313;
  --blockquote-color: #F6F6F6;
  --toc-color: #FFFFE0;
  --font-white: #eee;
}

[data-theme="dark"] {
  --primary-color: #222;
  --secondary-color: #292929;
  --font-color: #b8b8b8;
  --bg-color: #161625;
  --heading-color: #818cab;
  --border-color: #444242;
  --link-color: #faaf40;
  --link-color-hover: #f7c57a;
  --blockquote-color: #343434;
  --toc-color: #32322c;
  --font-white: #ddd;
}
/* ===============================
   ESTRUCTURA BASE
================================*/
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-family: sans-serif;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
} 

body {
  background: var(--primary-color);
  color: var(--font-color);
  font-family: arial, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
.ct-wrapper {
  margin: 0 auto;
  max-width: 1010px;
  background: var(--secondary-color);
}
.site-header {
  width: 100%;
  min-width: 0;
}
#menu-wrapper {
  position: relative;
  max-width: 1010px;
  min-height: 50px;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  background: #333;
}
#content-wrapper {
  overflow: visible;
}
.content-layout {
  padding: 15px;
  display: flex;
  gap: 20px;
}
.main-container {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 660px;
}
.sidebar {
  flex: 0 0 300px;
}
.site-footer {
  background: #333;
  text-align: center;  
}

/* ===============================
   ESTILOS BASE
================================*/

*, *::before, *::after {
  box-sizing: inherit;
}
a {
  text-decoration: none;
  color: var(--link-color);
}
a:hover {
  color: var(--link-color-hover);
  text-decoration: none;
}
p {
  margin: 0 0 1em 0;
}
embed, iframe, object, figure, img, picture {
  max-width: 100%;
  height: auto;
}
figure {
  margin: 0 0 1em 0;
}
table, td, th {
  border-collapse: collapse;
  margin: 0 0 1em 0;
  vertical-align: baseline;
}
h2 {
  font-size: 1.5em;
  margin: 0 0 0.83em 0;
}
h3, h4 {
   font-size: 1.3em;
   margin: 0 0 0.83em 0;
}

h3[id], h4[id] {scroll-margin-top: 10px;}

/* ===============================
   ENCABEZADO Y PIE DE PÁGINA
================================*/
.site-header {
}
.header-inner {
  background-color: #ffb339;
  max-height:68px;;
}
img.custom-logo {
  width: 269px;
  height: 69px;
  display: block;
  object-fit: contain;
}
.seo-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#boxfoot {margin: 0 auto;max-width: 1010px;padding: 12px;display: flex;justify-content: space-between;}
#boxfoot > .left {}
#boxfoot > .right {color: #c9c9c9;}
#boxfoot > .left ul.menu-foot {list-style: none;margin: 0;padding: 0;}
#boxfoot > .left ul.menu-foot li {float: left;border-right: 1px solid #c9c9c9;}
#boxfoot > .left ul.menu-foot li a {padding: 0 10px;color: #c9c9c9;}

/* ===============================
   MENÚ PRINCIPAL
================================*/
.main-navigation {
  width: auto;
}

.main-navigation .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0px;
}

.main-navigation .menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 17px 14px;
  display: block;
}

.main-navigation .menu li a:hover {
  background: #444;
  color: #ffe4ec;
}
.main-navigation .menu li:first-child {
    background: #444;
}

/* === Botón hamburguesa === */
.menu-toggle {
  display: none;
  background: #444;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  padding: 9px 14px;
}

/* === Sidebar Widgets === */
.widget {
  margin-bottom: 20px;
}

.widget-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--link-color);
  display: inline-block;
  padding-bottom: 4px;
}

/* ===============================
   TARJETAS DE ANIME
================================*/
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.anime-card {
  overflow: hidden;
  transition: all 0.25s ease;
}

.anime-thumb img {
  max-width: 150px;
  max-height: 212px;
  object-fit: cover;
  display: block;
}

.anime-info {
  flex-grow: 1;
}

.anime-title {
  font-family: "Verdana", Arial, sans-serif;
  font-size: 17px;
  letter-spacing: -0.5px;
  font-weight: normal;
  line-height: 1.2;
  margin: 5px 0 4px 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.anime-title a {
  color: inherit;
  text-decoration: none;
}

.anime-title a:hover {
  color: #e63;
}

/* === Rating === */
.anime-rating {
  background: #fff5f0;
  position: relative;
  float: right;
  font-weight: bold;
  margin: -27px 9px 0 0;
  border-radius: 2px;
  padding: 2px 3px 2px 4px;
}

.rating-star {
  color: #e63;
}

/* === Descripción === */
.anime-desc {
  font-size: 13px;
  line-height: normal;
  height: 98px;
  padding: 5px 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px dashed var(--border-color);
}

/* ===============================
   ELEMENTOS INDIVIDUALES
================================*/
h1.archive-title {
    background-color: var(--blockquote-color);
    padding: 10px;
    border: 1px solid #bbb;
    margin: 7px 0 10px;
    position: relative;
    text-align: center;
    font-size: 1.4em;
}
h1.page-title {
      background-color: var(--blockquote-color);
      padding: 10px;
      border: 1px solid #bbb;
      margin: 7px 0 10px;
      position: relative;
      text-align: center;
      font-size: 1.4em;
}

.adsense-mobile-top {
  margin-bottom: 15px;
}

.breadcrumbs {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--font-color);
}

.single-title {
  font-size: 27px;
  letter-spacing: -1.4px;
  margin: 5px 0 9px 0;
  font-family: "Verdana", segoe ui, Arial, Helvetica, sans-serif;
  font-weight: normal;
  line-height: 31px;
  clear: both;
}

.post-meta {
  font-style: italic;
}
.post-meta p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    line-height: 1.2;
    height: calc(1.2em * 1);
}

.post-meta .post-author,
.post-meta .post-date {
  color: var(--link-color);
}

.single-content {
  line-height: 22px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 15.4px;
  margin-bottom:10px;
}

/* ===============================
   DARK MODE SWITCH
================================*/
.theme-switch-wrapper {
    position: absolute;
    top: 0;
    right: 50px;
    max-height: 50px;
    max-width: 76px;
    padding: 10px;
}

.night-light-label input[type="checkbox"] {
  position: absolute;
  visibility: hidden;
}

.night-light-label {
  display: block;
  box-sizing: border-box;
  height: 30px;
  width: 56px;
  border: 2px solid #fff;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
}

.night-light-ball {
  position: absolute;
  width: 22px;
  height: 22px;
  top: 2px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  z-index: 99;
  transition: 300ms;
}

.night-light-label input:checked + .night-light-ball {
  transform: translateX(24px);
}

.moon-svg,
.sun-svg {
  fill: #fed965;
  width: 15px;
  height: 15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.moon-svg {
  right: 6px;
}

.sun-svg {
  left: 6px;
}

/* ===============================
   FILTROS DE ANIME
================================*/
.filtro-anime {}

.filter-title {
  font-size: 1.2em;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.filter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.filter-item label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.filter-item select {
  width: 100%;
  padding: 6px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--font-color);
  background: var(--primary-color);
  font-size: 13px;
  transition: background 0.2s ease;
}

.filter-item.full {
  grid-column: span 2;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #333;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-btn:hover {
  background: #222;
}

/* ===============================
   BUSCADOR (FULL SCREEN)
================================*/
.AT-Search {
  display: block;
  padding: 0 1em;
  text-align: center;
  width: 100%;
  z-index: 999;
}

#AT-Search {
  display: none;
}

.AT-Search > label.AT-search-icon {
  position: absolute;
  background-color: #111;
  line-height: 47px;
  height: 50px;
  width: 50px;
  top: 0;
  right: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.AT-Search > label.AT-search-icon:hover {
  transform: scale(0.95);
  background-color: #222;
}

.modal__overlay {
  display: none;
  position: fixed;
  inset: 0;
  backdrop-filter: blur(5px);
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999999;
  transition: opacity 0.4s ease;
}

input#AT-Search:checked ~ .modal__overlay {
  display: block;
  opacity: 1;
}

.modal__box {
  max-width: 600px;
  margin: 15% auto;
  padding: 20px;
  border-radius: 5px;
  box-sizing: border-box;
}

.modal__overlay .search-close {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 20px;
  background: #999;
  color: #fff;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
}

.searchx form {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.searchx input[type="search"] {
  width: 100%;
  height: 48px;
  padding: 6px 48px 6px 12px;
  font-size: 15px;
  font-family: inherit;
  color: #ebebeb;
  background-color: #282828;
  border: none;
  border-radius: 4px;
  outline: none;
}

.searchx input[type="search"]::placeholder {
  color: #aaa;
}

.searchx button[type="submit"] {
  position: absolute;
  right: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: #aaa;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.searchx button[type="submit"]:hover {
  color: #fff;
  transform: scale(1.1);
}

/* ===============================
   BOTONES SCROLL
================================*/
.scroll-btn {
  position: fixed;
  right: 0.7em;
  z-index: 100;
  width: 40px;
  height: 40px;
  background: #444;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.scroll-btn svg {
  width: 25px;
  height: 25px;
  fill: #fff;
}

.scroll-btn:hover {
  background: #666;
  transform: translateY(-2px);
}

.scroll-up {
  bottom: 13em;
}

.scroll-down {
  bottom: 9.5em;
}

/* ===============================
   TABLA DE CONTENIDO
================================*/
.toc {
  border: 1px solid #e0c700;
  background-color: var(--toc-color);
  padding: 10px;
  display: block;
  margin-bottom: 1rem;
}

.toc-title button {
  background: transparent;
  font-size: 17px;
  position: relative;
  outline: none;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  color: var(--font-color);
  font-weight: bold;
  padding: 0 0 0 15px;
}

/* ===============================
   ESTILOS INFO ANIME
================================*/

.anime-content {
  display: flex;
  gap: 12px;
}

.anime-content img {
  min-width: 148px;
  min-height: 210px;
}

.anime-content figure figcaption {
  float: left;
  width: 150px;
  margin: 3px 0 5px 0;
}

.anime-content ul {
  margin: 0 0 10px 0;
  padding: 0;
  overflow: hidden;
  column-count: 1;
  list-style: none !important;
}

.anime-content ul li {
  margin: 0 0 2px 0;
}

.anime-content ul li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 8px 0 0;
  border-radius: 2px;
  background: #f7ab30;
}

/* --- aniInfo --- */

.aniInfo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.aniInfo .infonya {
  display: flex;
  margin-right: 4px;
  margin-bottom: 5px;
  border: 1px solid var(--border-color);
}

.infonya span {
  padding: 4px 4px 5px 5px;
  font-size: 110%;
  line-height: 1.5;
}

.infonya b {
  padding: 4px 3px 4px 6px;
  font-size: 105%;
  line-height: 1.5;
  border-right: 1px solid var(--border-color);
}

.infonya span svg {
  margin-top: 1px;
  vertical-align: text-top;
}

.infonya a {
  color: var(--font-color);
}

/* --- Sinopsis / Blockquote --- */

.sinopsis blockquote {
  position: relative;
  margin: 0.6rem 0 1rem 0;
  padding: 15px 15px;
  background: var(--blockquote-color);
  border: none;
  font-style: italic;
}

.sinopsis blockquote p {
  margin-bottom: 0.5rem;
}

.sinopsis blockquote:before {
  content: "\f10e";
  display: flex;
  position: relative;
  float: left;
  width: 32px;
  height: 32px;
  margin-left: -15px;
  margin-right: 10px;
  margin-top: -15px;
  line-height: 10px;
  font-size: 1px;
  text-align: center;
  color: #f4a460;
  background: #ffb339 url(images/Blockquote.png) no-repeat;
}

/* --- Claps Button --- */

.claps_button {
  position: relative;
  padding: 0;
  background-color: transparent;
  border: 1px solid transparent;
}

.claps_button svg:hover {
  color: #e99000;
  fill: #e99000 !important;
  scale: 1.15;
}

.claps {
  z-index: 0;
  border: none;
  border-radius: 0%;
  background-color: transparent;
  color: var(--font-color);
}

button.is_clicked ~ span span.claps {
  animation: clap 1s ease-in-out forwards;
}

button.is_clicked ~ span span.vot {
  animation: clap 1s ease-in-out forwards;
}

/* --- Star Rating --- */

.star-rating {
  display: flex;
  align-items: self-end;
  cursor: pointer;
}

.c-star {
  width: var(--size, 17px);
  height: var(--size, 17px);
  fill: #cdcdcd;
  margin-right: 1px;
}

.c-star.active {
  fill: #f7ab30;
}


.widget-area {
  position: -webkit-sticky;
  position: sticky;
  top: 10px;
}
.discord-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #404040;
  color: #fff;
  border-radius: 4px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 0.7em 0;
}

.discord-widget .discord-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-widget svg {
  color: #fff;
  flex-shrink: 0;
}

.discord-widget .discord-btn {
  background-color: #ffb339;
  color: #222222;
  line-height: 1.6;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  transition: background 0.25s ease;
}

.discord-widget .discord-btn:hover {
  background-color: #ffa30f;
}

.related-posts {
  padding-bottom: 20px;
  margin-bottom: 10px;
  max-width: 660px;
  border-bottom: 1px dashed var(--border-color);
}

.related-posts p {
  font-size: 1.4em;
  font-weight: bold;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.related-item {
  text-align: left;
}

.related-thumb img {
  max-width: 100%;
  height: 83px;
  object-fit: cover;
}

.related-title {
  font-size: 15px;
  display: block;
  margin-top: 6px;
  color: #000;
  text-decoration: none;
  line-height: 1.3;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 10px auto 0;
}

.title-arc {
    background-color: var(--primary-color);
    font-size: 87%;
    font-weight: bold;
    text-align: center;
}
.number { width: 4%;}
.start {width: 7%;}
.title {width: 74%;}
.chapter {width: 15%;}
.number-2 {width: 4%;}
.title-2 {width: 73%;}
.chapter-2 {width: 18%;}
.title-3 {width: 70%;}
.chapter-3 {width: 21%;}
.title-4 {width: 54%;}
.chapter-4 {width: 29%;}
.sub-num {width: 5%;}
.start-2 {width: 10%;}
span.minuto {color: var(--font-color);}
.gray {color: #2a2a2a;}
.blue {color: #496fe3;}
.purple {color: #b149c9;}
.red {color: #ec130e;}
.green {color: #0e8a16;}
.marron {color: #b85e25;}
.marron a {color: #b85e25;}
.small {font-size: 11px;font-family: inherit;vertical-align: bottom;}
.title-m::before {content: "MANGA";padding: 22px 0px;background: #e6e6e6;color: #64686C;float:left;transform: scale(-1);font-size: 14px;margin-right: 8px;min-width: 20px;-ms-writing-mode: tb-lr; writing-mode: vertical-lr;}
.title-n::before {content: "NOVEL";padding: 20px 0px;background: #cde4ff;color: #64686C;float:left;transform: scale(-1);font-size: 14px;margin-right: 8px;min-width: 20px;-ms-writing-mode: tb-lr; writing-mode: vertical-lr;}
.continua-manga {margin-bottom: 1em;}
.continua-manga caption {padding-bottom: 0px;text-align: left;}
.continua-manga th {border-radius: 5px;padding: 3px;width: 49%;font: inherit;color: #fff;}
.continua-manga td {padding: 5px;}
.continua-manga p {margin-bottom: 0.5rem;}
.new {
    background: #D93760;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 1px 5px;
    border-radius: 3px;
    vertical-align: bottom;
}
.nota {
display: flex;
padding: 13px 13px 4px 13px;
margin-bottom: 1rem;
border: 1px solid #d9d9d9;
border-radius: 2px;
}
.nota-icono {
margin-right: 10px;
}
.nota svg {
 fill: #D93760;
vertical-align: sub;
}
#disqus_thread>iframe[sandbox]{display:none!important}
.arc {padding: 10px;border-bottom: 1px solid #9a9a9a;border-left: 1px solid #9a9a9a;}
.filler { background: #fbdede;}

.pagination-custom {
    list-style: none;
    display: flex;
    gap: 10px;
    padding: 0;
}

.pagination-custom li a,
.pagination-custom li span {
    padding: 5px 12px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    color:var(--font-color);
}

.pagination-custom .current {
    background: var(--link-color);
    border: 1px solid var(--link-color);
    color: #fff;
}

.home-wrapper {
  margin: auto;
  padding: 40px 20px;
}

.home-hero {
  text-align: center;
  margin-bottom: 70px;
}

.home-hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.home-hero p {
  font-size: 18px;
}

.what-is-filler {
  text-align: center;
  margin-bottom: 70px;
}

.what-is-filler h2 {
  font-size: 32px;
  margin-bottom: 50px;
}

.filler-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.filler-step {
  max-width: 260px;
}

.filler-step img {
  width: 140px;
  height: auto;
  margin-bottom: 15px;
}

.filler-step p {
  font-size: 15px;
}

.arrow {
  font-size: 40px;
  color: #e99000;
}

.popular-shows h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}



@media (max-width: 992px) {
  #content-wrapper {
    overflow: hidden;
}
.content-layout {
    flex-direction: column;
    padding: 10px;
}
.main-container {
  max-width: 100%;
}
.sidebar {
    display: none;
    flex: unset;
    width: 100%;
  }
/* === tarjetas de animes === */
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
/* === buscador === */
  .modal__box {
    margin: 40% auto;
    padding: 15px;
  }

}

@media (max-width: 768px) {
/* === Menú Movil === */
    .header-inner {
    justify-items: center;
}
  .menu-toggle {
    display: block;
  }
  .main-navigation .menu {
    display: none;
    flex-direction: column;
    background: #444;
    width: 100%;
  }
  .main-navigation .menu.open {
    display: flex;
  }
  .main-navigation .menu li {
    border-bottom: 1px solid #525151;
    text-align: left;
  }
  .main-navigation .menu li a {
    display: block;
  }
/* === tarjetas de animes (home) === */
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
/* === post relacionados === */
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 480px) {
/* === tarjetas de animes === */
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
/* === post relacionados === */
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
/* === titulo === */
    .single-title {
    letter-spacing: -0.5px;
  }
.anime-content {
  gap: 0px;
  flex-direction: column;
}
.anime-content figure {
  align-self: anchor-center;
}
/* === footer === */
#boxfoot {flex-direction: column;align-items: center;gap: 6px;}

/* === home === */
  .filler-steps {
    flex-direction: column;
    gap: 35px;
  }

  .filler-step {
    max-width: 100%;
  }

  .filler-step img {
    max-width: 140px;
    height: auto;
  }

  .arrow {
    display: none;
  }
}