/*
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: #dc143c;
  --link-color-hover: #980925;
  --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: #e76881;
  --link-color-hover: #ed98a9;
  --blockquote-color: #343434;
  --toc-color: #32322c;
  --font-white: #ddd;
}

/* ===============================
   ESTILOS BASE
================================*/

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, center, dl, dt, dd, ol, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    vertical-align: baseline;
}

body {
  background: var(--primary-color);
  color: var(--font-color);
  font-family: arial;
  font-size: 14px;
  margin: 0;
}

a {
  text-decoration: none;
  color: var(--link-color);
}

a:hover {
  color: var(--link-color-hover);
  text-decoration: none;
}

p {
  margin: 0 0 1em 0;
}

img {
    max-width: 100%;
    border: 0;
    vertical-align: middle;
    color: transparent;
    height: auto;
}
figure {
  margin: 0 0 1em 0;
}

table, td, th {
    border-collapse: collapse;
}

/* ===============================
   ENCABEZADO Y PIE DE PÁGINA
================================*/
.site-header {
  background-color: #D53E65;
  color: #fff;
  height: 68px;
}

.site-footer {
background: #333;
  text-align: center;
}

footer p {
  margin: 0;
}

#boxfoot {
                margin: 0 auto;
                max-width: 1010px;
                padding: 12px;
                font-size: 14px;
                display: list-item;
            }

            #boxfoot > .left {
                float: left;
                clear: both;
            }

            #boxfoot > .left ul.menu-foot {
                float: left;
                list-style: none;
                list-style-image: none;
                margin: 0;
                padding: 0;
            }

            #boxfoot > .left ul.menu-foot li {
                border-right: #c9c9c9 1px solid;
                float: left;
            }

            #boxfoot > .left ul.menu-foot li a {
                color: #c9c9c9;
                display: block;
                line-height: 1;
                padding: 0 10px;
            }

            #boxfoot > .right {
                color: #c9c9c9;
                float: right;
                line-height: 1;
                text-align: right;
                padding-right: 10px;
            }

/* ===============================
   MENÚ PRINCIPAL
================================*/
#menu-wrapper {
  position: relative;
  background: #333;
  display: block;
}

.main-navigation {
  position: relative;
  background: #333;
}

.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;
}

/* === Vista móvil === */
@media (max-width: 768px) {
  .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;
  }
}

.menubawah {
    height: 40px;
    background: #444;
    font-family: arial, sans-serif;
    font-size: 12px;
    overflow: hidden;
}
.rdp-text .links {
    display: flex;
    margin-left: 34px;
}
.rdp-text .links a {
    padding: 13px 6.3px;
    font-size: 12px;
    overflow: hidden;
    display: block;
    color: var(--font-white);
}
.rdp-text .links a:hover {
  background:#222;color:#fff;
}
.rdp-text .icon {
    padding: 10px 7px;
    color: #fff;
    background: #282828;
    float: left;
    width: 20px;
    height: 20px;
}
@media screen and (max-width: 1010px) {
.menubawah {overflow: auto;font-size: 13px;}.rdp-text { display: block;width: 1010px;}.rdp-text .links a { display: block;float: left;padding: 13px 7px;font-size: 12px;}
}

/* ===============================
   LAYOUT GENERAL
================================*/
.ct-wrapper {
  margin: 0 auto;
  max-width: 1010px;
  background: var(--secondary-color);
}

#content-wrapper {
  padding: 15px;
  overflow: visible;
}

.content-layout {
  display: flex;
  gap: 20px;
}

.main-container {
  flex: 3;
  max-width: calc(100% - 320px);
}

.sidebar {
  flex: 1;
  background: var(--secondary-color);
}

/* === 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;
}

/* === Responsive: ocultar sidebar en móviles === */
@media (max-width: 992px) {
  .content-layout {
    flex-direction: column;
  }
  .sidebar {
    display: none;
  }
  .main-container {
    max-width: 100%;
  }
}

/* ===============================
   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: 92px;
  padding: 5px 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px dashed var(--border-color);
}

/* === Responsive === */
@media (max-width: 992px) {
  #content-wrapper {
    overflow: hidden;
    padding: 10px;
}
  .main-container {
    max-width: 100%;
  }
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

.single-title {
    font-size: 27px;
    letter-spacing: 0;
}
}

/* ===============================
   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;
  padding: 5px 0 3px 0;
  margin: 0 0 6px 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-inline-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    margin: 0 0 0.7em 0;
}

.post-meta .post-author,
.post-meta .post-date {
  color: var(--link-color);
}

.single-content {
  line-height: 22px;
  font-family: arial;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 15.4px;
  margin-bottom:10px;
}

/* ===============================
   DARK MODE SWITCH
================================*/
.theme-switch-wrapper {
  align-items: center;
  position: absolute;
  right: 50px;
  height: 40px;
  padding: 5px 10px 0 10px;
  display: flex;
  top: 0;
  z-index: 1000;
}

.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 {
  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 select:hover {

}

.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: 42px;
  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);
}

@media (max-width: 768px) {
  .AT-Search > label.AT-search-icon {
    top: 0;
    right: 0;
  }
  .modal__box {
    margin: 40% auto;
    padding: 15px;
  }
}

/* ===============================
   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: inline-block;
            }

            .anime-content figure {
                width: 150px;
                float: left;
                margin: 0 12px 0 0;
            }

            .anime-content figure figcaption {
                width: 150px;
                float: left;
                margin: 3px 0 5px 0;
            }

            .anime-content ul {
              padding: 0;
                margin: 0 0 10px 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: "";
                width: 7px;
                height: 7px;
                border-radius: 2px;
                background: #D53E65;
                display: inline-block;
                margin: 0 8px 0 0;
            }

            .aniInfo {
                display: flex;
                flex-wrap: wrap;
                clear: both;
            }

            .aniInfo .infonya {
                max-width: 49%;
                flex: 49%;
                -webkit-flex: 49%;
                -ms-flex: 49%;
                margin-bottom: 5px;
                margin-right: 4px;
                display: flex;
                border: 1px solid var(--border-color);
            }

            .infonya span {
                flex: 71%;
                max-width: 71%;
                -webkit-flex: 71%;
                -ms-flex: 71%;
                font-size: 110%;
                line-height: 1.5;
                padding: 4px 4px 5px 5px;
            }

            .infonya b {
                font-size: 105%;
                flex: 36%;
                max-width: 36%;
                -webkit-flex: 36%;
                -ms-flex: 36%;
                padding: 4px 3px 4px 6px;
                border-right: 1px solid var(--border-color);
                line-height: 1.5;
            }

            .infonya span svg {
                vertical-align: text-top;
                margin-top: 1px;
            }

            .infonya a {
                color: var(--font-color);
            }

            .sinopsis blockquote {
                background: var(--blockquote-color);
                position: relative;
                padding: 15px 15px;
                font-style: italic;
                border: none;
                margin: 0.6rem 0 1rem 0;
            }

            .sinopsis blockquote p {
                margin-bottom: 0.5rem;
            }

            .sinopsis blockquote:before {
                font-size: 1px;
                background: #D53E65 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-3HvK1A-_vXSGbwe-4ggcmUDVIjUyUvjpkXU4v35Z0DnskkLc1xpu3HOVR-3ksqiUt4UCObUQ0KoHKwsBZUMAsdB2Ia6OSIMDwOJMlV1cjY7UTdQIxgslRWktqiPHc37XjtGHQKaF1xQ/s0/Blockquote.png) no-repeat;
                content: "\f10e";
                display: flex;
                left: 0px;
                float: left;
                text-align: center;
                margin-top: -15px;
                margin-right: 10px;
                margin-left: -15px;
                line-height: 10px;
                color: #f4a460;
                top: 0;
                width: 32px;
                height: 32px;
            }
.claps_button {
                position: relative;
                padding: 0;
                background-color: transparent;
                border: 1px solid transparent;
            }

            .claps_button svg:hover {
                color: #b70634;
                fill: #b70634 !important;
                scale: 1.15;
            }

            .claps {
                border-radius: 0%;
                background-color: transparent;
                color: var(--font-color);
                border: none;
                z-index: 0;
            }

            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 {
                display: flex;
                cursor: pointer;
                align-items: self-end;
            }

            .c-star {
                width: var(--size, 17px);
                height: var(--size, 17px);
                fill: #cdcdcd;
                margin-right: 1px;
            }

            .c-star.active {
                fill: #D53E65;
            }

.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: #e94079;
  color: #fff;
  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: #ff4d8b;
}

.related-posts {
  padding-bottom: 20px;
  margin-bottom: 10px;
  max-width: 660px;
  border-bottom: 1px dashed var(--border-color);
}

.related-posts h3 {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 15px;
}

.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 {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  line-height: 1.3;
}

/* Responsive (2 columns en pantallas pequeñas) */
@media (max-width: 700px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 10px auto 0;
}

/* Responsive: apilar los enlaces en móviles */
@media (max-width: 700px) {
  .post-navigation {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

.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;
            }
.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;
            }
#disqus_thread>iframe[sandbox]{display:none!important}