/*
Theme Name: Kuro
Theme URI: https://wptheme.site/
Author: Jach
Author URI: https://wptheme.site/
Description: Tema de WordPress para plataformas de cómics y webtoons, inspirado en diseños modernos de lectura online.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: honeytoon
Tags: dark-mode, comics, webtoons, entertainment, custom-menu, featured-images, full-width-template

This theme is designed for comic and webtoon reading platforms.
*/

/* ===================================
   CSS Variables
   =================================== */

:root {
    --color-bg-primary: #0d1b2a;
    --color-bg-secondary: #132238;
    --color-bg-card: #1a2d4a;
    --color-text-primary: #f1e9e3;
    --color-text-secondary: #8e979f;
    /* Acento principal (antes amarillo; nombre legacy para no romper var(--color-yellow)) */
    --color-primary: #2c78d4;
    --color-primary-hover: #5a9ae8;
    --color-on-primary: #ffffff;
    --color-yellow: #2c78d4;
    --color-yellow-hover: #5a9ae8;
    --color-purple: #7c41a4;
    --color-pink: #be558e;
    --color-dark-purple: #714468;
    --color-accent: #41316a;
    --color-border: #2a2535;
    --color-red: #e74c3c;
    --color-green: #2ecc71;
    --color-orange: #f39c12;
    --color-gray: #6b7280;
    --font-primary: 'Space Grotesk', sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --brand-logo-height: 32px;

    /* Typography scale */
    --text-xs: 12px;
    --text-sm: 13px;
    --text-md: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 22px;
    --text-2xl: 28px;
    --text-3xl: 34px;
    --text-4xl: 46px;

    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-black: 800;

    --lh-tight: 1.15;
    --lh-snug: 1.3;
    --lh-normal: 1.6;
    --lh-relaxed: 1.85;

    /* Lector de capítulos: ancho máximo de la columna (estilo webtoon, márgenes laterales) */
    --reader-column-max-width: 700px;

    /* Cabeceras de sección (home): acento magenta como en referencia */
    --section-header-accent: #ff0062;
}

/* ===================================
   Reset & Base
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-size: var(--text-base);
    line-height: var(--lh-normal);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    line-height: var(--lh-tight);
    font-weight: var(--weight-black);
    letter-spacing: 0.4px;
}

p {
    color: rgba(241, 233, 227, 0.92);
}

small {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* Restore list styles inside content */
.entry-content ul,
.entry-content ol {
    list-style: revert;
    padding-left: 1.3em;
}

.entry-content li + li {
    margin-top: 8px;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* El header sticky ya ocupa espacio en el flujo; no sumar padding extra aquí. */
.site-main {
    padding-top: 0;
}

/* Si el header está en modo overlay (fixed), evita que tape el contenido */
.site-header.site-header--overlay + .site-main {
    padding-top: 76px;
}

/* En home, el hero debe seguir “arriba” bajo el overlay */
body.home .site-header.site-header--overlay + .site-main .hero-slider,
body.front-page .site-header.site-header--overlay + .site-main .hero-slider {
    margin-top: -76px;
}

/* ===================================
   Pages (Page / Post content)
   =================================== */

.page-main {
    padding: 28px 0 60px;
}

/* Listados ( /mangas/*, /capitulos/*, géneros, etc. ) y búsqueda */
.archive-comic,
.search-results {
    padding: 28px 0 60px;
    box-sizing: border-box;
}

.archive-header {
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cuando el template ya usa el header del home, no dupliques espaciado/borde */
.archive-header > .section-header {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/* Fallback absoluto: cualquier H1 dentro de archive-header se ve como home */
.archive-header h1:not(.section-title):not(.archive-title):not(.page-title):not(.search-title) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
}

.archive-header h1:not(.section-title):not(.archive-title):not(.page-title):not(.search-title)::before {
    content: "//";
    color: var(--section-header-accent);
    font-weight: 900;
    letter-spacing: 0.06em;
    font-size: 1.05em;
    line-height: 1;
    transform: translateY(-0.5px);
}

.archive-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
}

.archive-title::before {
    content: "//";
    color: var(--section-header-accent);
    font-weight: 900;
    letter-spacing: 0.06em;
    font-size: 1.05em;
    line-height: 1;
    transform: translateY(-0.5px);
}

.search-header {
    margin: 0 0 4px;
}

.search-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
}

/* Fallback: si alguna página usa .page-title para listados */
.page-main .page-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
}

.page-main .page-title::before {
    content: "//";
    color: var(--section-header-accent);
    font-weight: 900;
    letter-spacing: 0.06em;
    font-size: 1.05em;
    line-height: 1;
    transform: translateY(-0.5px);
}

.search-title::before {
    content: "//";
    color: var(--section-header-accent);
    font-weight: 900;
    letter-spacing: 0.06em;
    font-size: 1.05em;
    line-height: 1;
    transform: translateY(-0.5px);
}

.page-article {
    max-width: 860px;
}

.page-header {
    margin-bottom: 18px;
}

.panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panel-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 0;
    border: 1px solid rgba(203, 16, 79, 0.28);
    background: rgba(0, 0, 0, 0.5);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.panel-user__name {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 0;
    border: 1px solid rgba(203, 16, 79, 0.35);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(230, 235, 240, 0.88);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.btn-logout:hover {
    background: rgba(203, 16, 79, 0.12);
    border-color: rgba(203, 16, 79, 0.7);
    transform: translateY(-1px);
    color: #ffffff;
}

@media (max-width: 520px) {
    .panel-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.page-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: #ffffff;
    margin: 0;
}

.page-title::before {
    content: "//";
    color: var(--section-header-accent);
    font-weight: 900;
    letter-spacing: 0.06em;
    font-size: 1.05em;
    line-height: 1;
    transform: translateY(-0.5px);
}

.entry-content {
    color: rgba(241, 233, 227, 0.92);
    font-size: 16px;
    line-height: 1.85;
}

.panel-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 18px;
}

.panel-article {
    max-width: none;
}

.panel-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 0;
    border: 1px solid rgba(203, 16, 79, 0.35);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(230, 235, 240, 0.88);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--transition);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.panel-tab svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.panel-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 34px;
    align-items: start;
}

.panel-layout .comics-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .panel-layout {
        grid-template-columns: 1fr;
    }

    .panel-layout .comics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.panel-tab:hover {
    color: #ffffff;
    border-color: rgba(203, 16, 79, 0.7);
    box-shadow: 0 0 0 1px rgba(203, 16, 79, 0.18);
}

.panel-tab.is-active {
    color: #ffffff;
    border-color: rgba(203, 16, 79, 0.85);
    background: rgba(203, 16, 79, 0.12);
}

.auth-card {
    max-width: 520px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.auth-label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--color-text-secondary);
}

.auth-input {
    background: rgba(18, 16, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
    padding: 12px 14px;
    border-radius: 12px;
    outline: none;
    transition: var(--transition);
}

.auth-input:focus {
    border-color: rgba(44, 120, 212, 0.6);
    box-shadow: 0 0 0 4px rgba(44, 120, 212, 0.12);
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 6px;
    color: rgba(241, 233, 227, 0.9);
    font-size: 14px;
}

.auth-alert {
    border: 1px solid rgba(231, 76, 60, 0.35);
    background: rgba(231, 76, 60, 0.12);
    color: rgba(241, 233, 227, 0.95);
    padding: 10px 12px;
    border-radius: 12px;
}

.auth-hint {
    margin-top: 14px;
    color: var(--color-text-secondary);
}

.auth-hint a {
    color: var(--color-yellow);
}

.auth-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.entry-content > * + * {
    margin-top: 16px;
}

.entry-content h2 {
    font-size: 26px;
    line-height: 1.25;
    margin-top: 28px;
    font-weight: 800;
}

.entry-content h3 {
    font-size: 20px;
    line-height: 1.3;
    margin-top: 22px;
    font-weight: 800;
}

.entry-content a {
    color: var(--color-yellow);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--color-yellow-hover);
}

/* Buttons inside entry-content should keep their intended contrast */
.entry-content a.btn-primary {
    color: var(--color-on-primary);
    text-decoration: none;
}

.entry-content a.btn-primary:hover {
    color: var(--color-on-primary);
}

.entry-content a.btn-secondary {
    color: var(--color-text-primary);
    text-decoration: none;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.3em;
}

.entry-content li + li {
    margin-top: 8px;
}

.entry-content blockquote {
    margin: 18px 0;
    padding: 14px 16px;
    border-left: 3px solid rgba(44, 120, 212, 0.6);
    background: rgba(18, 16, 26, 0.6);
    border-radius: 12px;
    color: rgba(241, 233, 227, 0.9);
}

.entry-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95em;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 8px;
}

.entry-content pre {
    overflow: auto;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content pre code {
    background: transparent;
    padding: 0;
}

.entry-content hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 26px 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content th,
.entry-content td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content th {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
}

.entry-content img,
.entry-content video {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.entry-content .wp-block-image figcaption {
    color: var(--color-text-secondary);
    font-size: 12px;
    margin-top: 8px;
}

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="url"],
.entry-content input[type="password"],
.entry-content input[type="search"],
.entry-content textarea,
.entry-content select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 16, 26, 0.65);
    color: var(--color-text-primary);
    outline: none;
}

.entry-content textarea {
    min-height: 140px;
    resize: vertical;
}

.entry-content input:focus,
.entry-content textarea:focus,
.entry-content select:focus {
    border-color: rgba(44, 120, 212, 0.55);
    box-shadow: 0 0 0 3px rgba(44, 120, 212, 0.12);
}

.entry-content input[type="submit"],
.entry-content button,
.entry-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    background: var(--color-yellow);
    color: var(--color-on-primary);
    font-weight: 700;
}

.entry-content input[type="submit"]:hover,
.entry-content button:hover,
.entry-content .wp-block-button__link:hover {
    background: var(--color-yellow-hover);
}

@media (max-width: 768px) {
    .page-main {
        padding-top: 18px;
    }
    .page-title {
        font-size: 26px;
    }
}

/* ===================================
   Header
   =================================== */

.site-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 1000;
    background: rgba(13, 27, 42, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 0;
    transform: translate3d(0, 0, 0);
}

/* Front page: header overlays hero (like reference) */
.site-header.site-header--overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--wp-admin--admin-bar--height, 0px);
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.site-header.site-header--overlay.site-header--scrolled {
    background: rgba(13, 27, 42, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Solo lector de capítulo: se oculta al bajar y vuelve al subir (JS añade .honeytoon-header-hidden) */
body.honeytoon-reader-capitulo .site-header {
    transition: transform 0.32s ease, opacity 0.25s ease, border-color 0.25s ease, visibility 0.32s ease;
    will-change: transform;
}

body.honeytoon-reader-capitulo .site-header.honeytoon-header-hidden {
    transform: translate3d(0, -110%, 0);
    opacity: 0;
    visibility: hidden;
    border-bottom-color: transparent;
    pointer-events: none;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 24px;
    min-height: 56px;
}


/* Fallback for older WP that doesn't set the CSS var */
body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Brand logo sizing (header + footer) */
.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-logo img,
.site-logo .custom-logo,
.site-logo .custom-logo-link img,
.footer-logo img,
.footer-logo .custom-logo,
.footer-logo .custom-logo-link img {
    height: var(--brand-logo-height) !important;
    width: auto !important;
    max-height: var(--brand-logo-height) !important;
}

.site-logo .custom-logo-link,
.footer-logo .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.brand-title {
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 16px;
    line-height: 1;
    color: var(--color-text-primary);
}

.brand-title:hover {
    color: var(--color-yellow);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Solo el primer nivel del menú es horizontal */
.main-navigation > ul,
.main-navigation #primary-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Submenus siempre en columna */
.main-navigation .sub-menu {
    display: block;
}

.main-navigation li {
    position: relative;
}

/* Dropdown submenus */
.main-navigation .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    max-width: 320px;
    padding: 8px;
    background: rgba(18, 16, 26, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.main-navigation .sub-menu li {
    width: 100%;
    display: block;
}

.main-navigation .sub-menu a {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 12px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: rgba(241, 233, 227, 0.92);
    background: transparent;
    border: 1px solid transparent;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.main-navigation .sub-menu .sub-menu {
    top: -6px;
    left: calc(100% + 10px);
}

/* Evita que el submenu “se corte” al cruzar el gap con el mouse */
.main-navigation li.menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px;
}

/* Indicador (flecha) para items con submenu */
.main-navigation li.menu-item-has-children > a::after {
    content: "▾";
    font-size: 12px;
    opacity: 0.7;
    margin-left: 6px;
}

/* Estilo hover dentro del submenu acorde al theme */
.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu .current-menu-item > a {
    background: rgba(44, 120, 212, 0.10);
    border-color: rgba(44, 120, 212, 0.18);
    color: var(--color-yellow);
}

.main-navigation a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--color-text-primary);
    font-size: var(--text-md);
    font-weight: var(--weight-medium);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.site-header .main-navigation a {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.6px;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 0;
    border: 1px solid transparent;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-yellow);
}

/* Header menu: contorno rosa al hover/activo (rectángulo) */
.site-header .main-navigation > ul > li > a:hover,
.site-header .main-navigation > ul > li.current-menu-item > a,
.site-header .main-navigation > ul > li.current-menu-ancestor > a,
.site-header .main-navigation > ul > li.current-menu-parent > a {
    border-color: rgba(203, 16, 79, 0.75);
    color: #ffffff;
    background: rgba(203, 16, 79, 0.10);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 16, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    padding: 8px 16px;
    min-width: 280px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.search-form:focus-within,
.search-form:hover {
    border-color: rgba(203, 16, 79, 0.65);
    box-shadow: 0 0 0 1px rgba(203, 16, 79, 0.18);
}

.search-form svg {
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.search-form input[type="search"] {
    background: none;
    border: none;
    color: var(--color-text-primary);
    font-size: var(--text-md);
    width: 100%;
    outline: none;
}

.search-form input[type="search"]::placeholder {
    color: var(--color-text-secondary);
}

.age-badge {
    background: linear-gradient(135deg, var(--color-purple), var(--color-pink));
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.age-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(124, 65, 164, 0.4);
}

.btn-account {
    background: rgba(255, 255, 255, 0.9);
    color: #0d1b2a;
    font-size: var(--text-md);
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.btn-account:hover {
    background: #ffffff;
    transform: translateY(-2px);
    border-color: rgba(203, 16, 79, 0.55);
    box-shadow: 0 0 0 1px rgba(203, 16, 79, 0.16);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   Hero Slider
   =================================== */

.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    margin-bottom: 40px;
}

body.home .hero-slider,
body.front-page .hero-slider {
    height: 600px;
}

.hero-slider::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    pointer-events: none;
    z-index: 9;
    background: linear-gradient(to bottom, rgba(13, 27, 42, 0) 0%, rgba(13, 27, 42, 0.65) 45%, rgba(13, 27, 42, 1) 100%);
}

.slider-container {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(13, 27, 42, 0.92) 0%,
            rgba(13, 27, 42, 0.75) 38%,
            rgba(13, 27, 42, 0.35) 62%,
            rgba(13, 27, 42, 0.12) 78%,
            transparent 100%
        );
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 86px 40px 52px;
    /* Align to theme .container left edge */
    margin-left: max(20px, calc((100vw - 1280px) / 2 + 20px));
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 2px 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(241, 233, 227, 0.86);
}

.slide-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.95;
}

.slide-meta__item--rating {
    color: var(--color-yellow);
    font-size: 14px;
    transform: translateY(-0.5px);
}

.slide-meta__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.6px;
}

.slide-title {
    font-size: var(--text-4xl);
    font-weight: var(--weight-black);
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 14px;
}

.slide-description {
    font-size: var(--text-md);
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA del slider: color solicitado + icono play */
.hero-slider .btn-primary.hero-slider__cta {
    background: #cb104f;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(203, 16, 79, 0.35);
}

.hero-slider .btn-primary.hero-slider__cta:hover {
    background: #e01a5c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(203, 16, 79, 0.45);
}

.hero-slider__play-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: block;
}

/* Slider pagination: mismo acento que el CTA "Leer ahora" (#cb104f) */
.slider-dots {
    --slider-dot-size: 8px;
    --slider-dot-pill-w: 28px;
    --slider-dot-inactive: rgba(203, 16, 79, 0.42);
    --slider-dot-inactive-hover: rgba(203, 16, 79, 0.62);
    --slider-dot-active: #cb104f;
    position: absolute;
    bottom: 24px;
    right: max(20px, calc((100vw - 1280px) / 2 + 20px));
    left: auto;
    transform: none;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 12;
    padding: 0;
    margin: 0;
    list-style: none;
}

.slider-dot {
    width: var(--slider-dot-size);
    height: var(--slider-dot-size);
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--slider-dot-inactive);
    cursor: pointer;
    flex-shrink: 0;
    transition: width 0.22s ease, border-radius 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.slider-dot:hover:not(.active) {
    background: var(--slider-dot-inactive-hover);
}

.slider-dot.active {
    width: var(--slider-dot-pill-w);
    height: var(--slider-dot-size);
    border-radius: 999px;
    background: var(--slider-dot-active);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.slider-dot:focus-visible {
    outline: 2px solid rgba(203, 16, 79, 0.9);
    outline-offset: 3px;
}

/* ===================================
   Buttons
   =================================== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-yellow);
    color: var(--color-on-primary);
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    padding: 12px 28px;
    border-radius: 24px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--color-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 120, 212, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-primary);
    font-size: var(--text-md);
    font-weight: var(--weight-medium);
    padding: 12px 0;
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    color: var(--color-yellow);
}

/* ===================================
   Comics Section
   =================================== */

.comics-section {
    padding: 40px 0;
}

/* ===================================
   Géneros (6 cards antes de tendencias)
   =================================== */
.genre-section {
    padding: 22px 0 10px;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.genre-card {
    position: relative;
    display: block;
    min-height: 150px;
    padding: 18px 18px;
    border-radius: 14px;
    background-color: #1a2230;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.genre-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 120, 212, 0.22);
    mix-blend-mode: multiply;
}

.genre-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 10, 14, 0.78) 0%,
        rgba(8, 10, 14, 0.35) 55%,
        rgba(8, 10, 14, 0.15) 100%
    );
}

.genre-card__content {
    position: relative;
    z-index: 1;
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.genre-card__kicker {
    font-size: 11px;
    font-weight: 600;
    color: rgba(230, 235, 240, 0.82);
}

.genre-card__title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.genre-card__cta {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0b0b0b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    width: fit-content;
}

.genre-card__cta-arrow {
    opacity: 0.95;
}

.genre-card:hover {
    transform: translateY(-4px);
    border-color: rgba(203, 16, 79, 0.65);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

@media (max-width: 1024px) {
    .genre-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .genre-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .genre-card__content {
        max-width: 78%;
    }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.15;
    text-transform: none;
    color: #ffffff;
}

.section-title__slashes {
    color: var(--section-header-accent);
    font-weight: 900;
    letter-spacing: 0.06em;
    font-size: 1.05em;
    line-height: 1;
    transform: translateY(-0.5px);
}

.section-title__text {
    min-width: 0;
}

/* Enlace "Ver Todo →" (píldora, texto magenta como en referencia) */
.section-link.section-link--catalog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 0;
    background: rgba(203, 16, 79, 0.08);
    border: 1px solid rgba(203, 16, 79, 0.28);
    color: var(--section-header-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.section-link.section-link--catalog:hover {
    text-decoration: none;
    background: rgba(203, 16, 79, 0.14);
    border-color: rgba(203, 16, 79, 0.5);
    color: #ff4d94;
    filter: none;
}

.section-link__text {
    text-transform: lowercase;
}

.section-link__arrow {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transform: translateY(-0.5px);
}

.section-link__arrow-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* Enlaces de sección legacy (solo texto) */
.section-link:not(.section-link--catalog) {
    color: var(--color-yellow);
    font-size: 14px;
    font-weight: 500;
}

.section-link:not(.section-link--catalog):hover {
    text-decoration: underline;
}

.chapters-section > .section-title {
    margin-bottom: 14px;
}

/* Ficha / capítulos: barra e icono en azul del sitio (no magenta de home) */
.chapters-header .section-title__slashes,
.chapters-section > .section-title .section-title__slashes {
    color: var(--color-primary);
}

/* Single manga: barras de "Capítulos" en rosa */
body.single-manga .chapters-header .section-title__slashes,
body.single-manga .chapters-section > .section-title .section-title__slashes {
    color: #cb104f;
}

.comics-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
}

/* ===================================
   Single Manga (Ficha) layout
   =================================== */

/* Fondo con destacada difuminada (solo en single manga) */
body.single-manga .single-comic {
    position: relative;
    isolation: isolate;
    background: #070f18;
}

body.single-manga .single-comic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 520px;
    background-image: var(--manga-hero-bg);
    background-size: cover;
    background-position: center;
    filter: blur(22px) saturate(1.1);
    opacity: 0.32;
    transform: scale(1.12);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
    z-index: -2;
    pointer-events: none;
}

body.single-manga .single-comic::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 520px;
    background: linear-gradient(
        to bottom,
        rgba(8, 10, 14, 0.12) 0%,
        rgba(8, 10, 14, 0.62) 45%,
        rgba(8, 10, 14, 0.92) 75%,
        rgba(8, 10, 14, 1) 100%
    );
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 75%, rgba(0,0,0,0) 100%);
    z-index: -1;
    pointer-events: none;
}

.comic-header--split {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 28px;
    padding: 26px 0 18px;
    align-items: center;
}

.manga-hero__left {
    position: relative;
}

.manga-title-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}

.manga-title-badges .comic-badge,
.manga-title-badges .type-badge {
    border-radius: 0;
}

.manga-title-badges .type-badge,
.manga-title-badges .comic-badge {
    display: inline-flex;
    align-items: center;
    position: static;
    top: auto;
    right: auto;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    line-height: 1.1;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* En este contexto, desactivar fondos sólidos del estado */
.manga-title-badges .comic-badge {
    background: rgba(0, 0, 0, 0.5) !important;
    color: #ffffff !important;
}

/* Tipo (mismo acento que cards) */
.manga-title-badges .type-badge.type-badge--manga { border-color: #00e5ff; }
.manga-title-badges .type-badge.type-badge--manhwa { border-color: #ff0062; }
.manga-title-badges .type-badge.type-badge--manhua { border-color: #e040fb; }

/* Estado (mismo acento que cards) */
.manga-title-badges .comic-badge.comic-badge--finalizado { border-color: #e74c3c; }
.manga-title-badges .comic-badge.comic-badge--en-emision { border-color: #2ecc71; }
.manga-title-badges .comic-badge.comic-badge--pausado { border-color: #f39c12; }
.manga-title-badges .comic-badge.comic-badge--cancelado { border-color: #6b7280; }

.manga-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
    background: transparent;
    border-radius: 0;
    border: 0;
    display: block;
}

.manga-hero__left-actions {
    margin-top: 12px;
    padding: 12px;
    background: rgba(10, 13, 18, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.manga-hero__left-actions .manga-rating {
    padding-top: 0;
    border-top: 0;
    margin-bottom: 0;
}

.manga-hero__left-actions .manga-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manga-hero__left-actions .lib-btn {
    width: 100%;
    justify-content: flex-start;
    border-radius: 0;
    padding: 11px 12px;
    font-size: 12px;
    white-space: nowrap;
    border-color: rgba(203, 16, 79, 0.28);
    background: rgba(10, 13, 18, 0.55);
    color: rgba(230, 235, 240, 0.92);
}

.manga-hero__left-actions .lib-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.manga-hero__left-actions .lib-btn:hover,
.manga-hero__left-actions .lib-btn:focus-visible {
    border-color: rgba(203, 16, 79, 0.65);
    box-shadow: 0 0 0 1px rgba(203, 16, 79, 0.22);
    background: rgba(10, 13, 18, 0.7);
    color: #ffffff;
    outline: none;
}

.manga-hero__right .manga-kicker {
    margin-bottom: 10px;
}

.manga-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(200, 206, 214, 0.75);
    font-size: 12px;
    margin: -26px 0 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manga-breadcrumb a {
    color: rgba(200, 206, 214, 0.75);
    text-decoration: none;
}

.manga-breadcrumb a:hover {
    color: #cb104f;
}

.manga-breadcrumb__prefix {
    color: rgba(200, 206, 214, 0.65);
}

.manga-breadcrumb__sep {
    opacity: 0.5;
}

.manga-breadcrumb__current {
    color: #00e5ff;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}

.manga-genres-below {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.manga-genres-below .genre-tag {
    border-radius: 0;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(203, 16, 79, 0.5);
    color: rgba(241, 233, 227, 0.92);
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.manga-synopsis-box {
    margin-top: 14px;
    padding: 14px 14px;
    background: rgba(10, 13, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.manga-synopsis-box__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(200, 206, 214, 0.85);
    margin-bottom: 10px;
}

.manga-synopsis-box__slashes {
    color: #cb104f;
    font-weight: 900;
}

.manga-synopsis-box .comic-description {
    margin: 0;
    color: rgba(220, 226, 234, 0.82);
    font-size: 13px;
    line-height: 1.55;
}

.manga-synopsis-box .comic-description p {
    margin: 0;
}

.manga-synopsis-text {
    margin: 0;
    color: rgba(220, 226, 234, 0.82);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.manga-hero-stats {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.manga-hero-stat {
    padding: 10px 10px;
    background: rgba(10, 13, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.manga-actions--below-stats {
    margin-top: 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
}

.manga-actions--below-stats .lib-btn {
    flex: 1 1 0;
    width: auto;
    justify-content: center;
    border-radius: 0;
    padding: 11px 12px;
    font-size: 12px;
    white-space: nowrap;
    border-color: rgba(203, 16, 79, 0.28);
    background: rgba(10, 13, 18, 0.55);
    color: rgba(230, 235, 240, 0.92);
}

.manga-actions--below-stats .lib-btn svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.manga-actions--below-stats .lib-btn:hover,
.manga-actions--below-stats .lib-btn:focus-visible {
    border-color: rgba(203, 16, 79, 0.65);
    box-shadow: 0 0 0 1px rgba(203, 16, 79, 0.22);
    background: rgba(10, 13, 18, 0.7);
    color: #ffffff;
    outline: none;
}

@media (max-width: 520px) {
    .manga-actions--below-stats {
        flex-wrap: wrap;
    }
    .manga-actions--below-stats .lib-btn {
        flex: 1 1 calc(50% - 10px);
    }
}

.manga-hero-stat__label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200, 206, 214, 0.7);
    margin-bottom: 8px;
}

.manga-hero-stat__value {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: rgba(230, 235, 240, 0.95);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manga-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.manga-genres-inline .genre-tag {
    margin-right: 6px;
}

/* Genre tags (pill style) */
.genre-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(241, 233, 227, 0.92);
    background: rgba(190, 85, 142, 0.14);
    border: 1px solid rgba(190, 85, 142, 0.55);
    transition: var(--transition);
    white-space: nowrap;
}

.genre-tag:hover,
.genre-tag:focus-visible {
    color: #fff;
    background: rgba(190, 85, 142, 0.24);
    border-color: rgba(190, 85, 142, 0.85);
    outline: none;
}

.comic-page-title {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.comic-stats {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 10px 0 16px;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.manga-rating {
    margin: 0 0 20px;
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.manga-rating__row--summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.manga-rating__bar-wrap {
    position: relative;
    max-width: 200px;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
}

.manga-rating__bar {
    position: absolute;
    inset: 0;
    border-radius: 999px;
}

.manga-rating__bar--back {
    background: rgba(255, 255, 255, 0.1);
}

.manga-rating__bar--front {
    background: linear-gradient(90deg, var(--color-yellow) 0%, var(--color-yellow-hover) 100%);
    transition: width 0.25s ease;
}

.manga-rating__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.manga-rating__score {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
}

.manga-rating__out {
    font-size: 13px;
    opacity: 0.7;
}

.manga-rating__count-line {
    font-size: 12px;
    text-transform: lowercase;
}

.manga-rating__count {
    font-weight: 700;
    color: var(--color-text-primary);
    margin-right: 4px;
}

.manga-rating__row--vote {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 12px;
}

.manga-rating__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    margin: 0;
}

.manga-rating__stars {
    display: inline-flex;
    gap: 4px;
}

.manga-rating__input {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(18, 16, 26, 0.5);
    color: rgba(241, 233, 227, 0.4);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: var(--transition);
}

.manga-rating__input .manga-rating__star-icon {
    line-height: 1;
    transform: translateY(-0.5px);
}

.manga-rating__input:hover,
.manga-rating__input:focus-visible {
    color: var(--color-yellow);
    border-color: rgba(44, 120, 212, 0.4);
    outline: none;
}

.manga-rating__input.is-filled {
    color: var(--color-yellow);
    border-color: rgba(44, 120, 212, 0.24);
}

.manga-rating__input.is-active {
    color: var(--color-on-primary);
    background: var(--color-yellow);
    border-color: var(--color-yellow);
}

.manga-rating__input:disabled {
    opacity: 0.55;
    cursor: default;
}

.manga-rating__guest {
    margin: 8px 0 0;
    font-size: 13px;
}

.manga-rating__guest a {
    color: var(--color-yellow);
    font-weight: 600;
}

.manga-rating__guest a:hover {
    text-decoration: underline;
}

.comic-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.manga-actions {
    gap: 12px;
}

.lib-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 16, 26, 0.45);
    color: var(--color-text-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: var(--transition);
}

.lib-btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.lib-btn:hover {
    border-color: rgba(44, 120, 212, 0.35);
    background: rgba(18, 16, 26, 0.65);
    color: var(--color-yellow);
}

.lib-btn.is-active {
    border-color: rgba(44, 120, 212, 0.42);
    background: rgba(44, 120, 212, 0.14);
    color: var(--color-text-primary);
}

.lib-btn.is-loading {
    opacity: 0.7;
}

/* (manga-cover img) redefined above for hero cover */

.manga-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 34px;
    padding: 18px 0 40px;
}

.chapters-section {
    padding: 0;
}

.chapters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.chapters-sort {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.chapters-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(18, 16, 26, 0.45);
    transition: var(--transition);
    white-space: nowrap;
}

.chapters-sort-link:hover {
    color: var(--color-yellow);
    border-color: rgba(44, 120, 212, 0.3);
    background: rgba(18, 16, 26, 0.65);
}

.chapters-sort-link.is-active {
    color: var(--color-text-primary);
    border-color: rgba(44, 120, 212, 0.38);
    background: rgba(44, 120, 212, 0.12);
}

.chapters-sort-icon {
    font-size: 14px;
    line-height: 1;
    opacity: 0.9;
}

.chapter-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
}

.chapter-row:hover {
    color: var(--color-yellow);
}

.chapter-thumb {
    width: 110px;
    height: 62px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 110px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
}

.chapter-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chapter-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.chapter-meta .chapter-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text-primary);
}

.chapter-meta .chapter-date {
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* ===================================
   Single Manga: Comentarios
   =================================== */

.manga-comments-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 22px 0 18px;
}

.manga-comments-section {
    margin-top: 26px;
}

.reader-comments-section {
    margin-top: 18px;
    padding-bottom: 18px;
}

.manga-comments-header .section-title__slashes {
    color: #cb104f;
}

.manga-comments-header {
    margin-bottom: 14px;
}

.manga-comments-card {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 16px;
}

.comments-area .comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-area .comments-count {
    font-weight: 800;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}

.comments-area .comment-list {
    margin: 0;
    padding: 0;
}

.comments-area .comment-list .children {
    margin: 12px 0 0 50px;
    padding: 0 0 0 14px;
    border-left: 1px solid rgba(203, 16, 79, 0.28);
}

.comments-area .comment-list .children > li {
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-area .comment-list .children > li:last-child {
    border-bottom: none;
}

.comments-area .comment-list .children .comment-body {
    padding: 10px 12px;
    background: rgba(203, 16, 79, 0.06);
    border: 1px solid rgba(203, 16, 79, 0.14);
    border-radius: 0;
}

.comments-area .comment-list .children .comment-metadata,
.comments-area .comment-list .children .comment-content,
.comments-area .comment-list .children .reply {
    margin-left: 0;
}

.comments-area .comment-list .children .comment-metadata {
    margin-top: 4px;
}

.comments-area .comment-list > li {
    list-style: none;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-area .comment-list > li:last-child {
    border-bottom: none;
}

.comments-area .comment-body {
    display: block;
}

.comments-area .comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.comments-area .comment-author.vcard .avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 0;
    border: 1px solid rgba(203, 16, 79, 0.25);
}

.comments-area .comment-author.vcard .says {
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 700;
}

.comments-area .comment-metadata,
.comments-area .comment-metadata a {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.comments-area .comment-metadata {
    margin-left: 50px; /* alinear bajo el nombre (40 avatar + gap) */
    margin-top: -4px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.comments-area .comment-metadata .edit-link a {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.18);
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.comments-area .comment-metadata .edit-link a:hover {
    border-color: rgba(203, 16, 79, 0.45);
    color: #ff4d94;
}

.comments-area .comment-metadata a:hover {
    color: #cb104f;
}

.comments-area .fn,
.comments-area .fn a {
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
}

.comments-area .comment-content {
    margin: 8px 0 0 50px; /* alinear con metadata */
    color: rgba(241, 233, 227, 0.92);
}

.comments-area .comment-content p {
    margin: 0.35em 0;
}

.comments-area .reply {
    margin-left: 50px;
}

.comments-area .reply a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 0;
    background: rgba(203, 16, 79, 0.08);
    border: 1px solid rgba(203, 16, 79, 0.28);
    color: #cb104f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: var(--transition);
}

.comments-area .reply a:hover {
    background: rgba(203, 16, 79, 0.14);
    border-color: rgba(203, 16, 79, 0.5);
    color: #ff4d94;
}

.comments-area .comment-reply-title {
    margin: 18px 0 10px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.comment-form--honeytoon {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    margin-top: 12px;
}

.comment-form--honeytoon .comment-form-url,
.comment-form--honeytoon .comment-form-comment,
.comment-form--honeytoon .form-submit {
    grid-column: 1 / -1;
}

.comment-form--honeytoon label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 6px;
}

.comment-form--honeytoon input[type="text"],
.comment-form--honeytoon input[type="email"],
.comment-form--honeytoon input[type="url"],
.comment-form--honeytoon textarea {
    width: 100%;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.92);
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.comment-form--honeytoon textarea {
    min-height: 110px;
    resize: vertical;
}

.comment-form--honeytoon input[type="text"]:focus,
.comment-form--honeytoon input[type="email"]:focus,
.comment-form--honeytoon input[type="url"]:focus,
.comment-form--honeytoon textarea:focus {
    border-color: rgba(203, 16, 79, 0.65);
    box-shadow: 0 0 0 3px rgba(203, 16, 79, 0.18);
    background: rgba(0, 0, 0, 0.32);
}

.comment-form--honeytoon .btn--comment,
.comment-form--honeytoon input[type="submit"].btn--comment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 0;
    background: #cb104f;
    border: 1px solid rgba(203, 16, 79, 0.65);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form--honeytoon .btn--comment:hover,
.comment-form--honeytoon input[type="submit"].btn--comment:hover {
    background: #e01363;
    border-color: rgba(203, 16, 79, 0.9);
    transform: translateY(-1px);
}

.comments-area .comment-respond {
    margin-top: 14px;
    padding-top: 0;
}

.comments-area .comment-awaiting-moderation {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 0;
    background: rgba(203, 16, 79, 0.08);
    border: 1px solid rgba(203, 16, 79, 0.28);
    color: #ff4d94;
    font-size: 12px;
    font-weight: 800;
}

.comments-area .navigation.pagination {
    margin-top: 14px;
}

.comments-area .navigation.pagination a,
.comments-area .navigation.pagination span {
    border-radius: 0;
}

@media (max-width: 680px) {
    .comment-form--honeytoon {
        grid-template-columns: 1fr;
    }
}

.aside-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 4px 0 14px;
}

.aside-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.aside-grid .comic-card {
    animation: none;
}

/* ===================================
   Reader (Capítulo)
   =================================== */

body.honeytoon-reader-capitulo {
    font-size: 15px;
    line-height: 1.55;
}

/* Cuerpo del texto en capítulos (p. ej. sin páginas como imágenes) */
.reader-content {
    width: 100%;
    max-width: min(100%, var(--reader-column-max-width));
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    color: rgba(241, 233, 227, 0.92);
}

.reader-content p + p {
    margin-top: 0.9em;
}

.reader .container {
    padding-top: 24px;
    padding-bottom: 40px;
}

/* Barra superior del lector (nuevo diseño) */
.reader-topbar {
    position: static;
    top: auto;
    z-index: 900;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(10, 13, 18, 0.7);
    border: 1px solid rgba(0, 229, 255, 0.22);
    border-radius: 0;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 18px;
}

.reader-topbar__back {
    width: 44px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(230, 235, 240, 0.9);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    transition: var(--transition);
}

.reader-topbar__back-icon {
    width: 16px;
    height: 16px;
    display: block;
}

.reader-topbar__back:hover {
    border-color: rgba(0, 229, 255, 0.55);
    color: #ffffff;
}

.reader-topbar__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reader-topbar__title {
    font-size: 12px;
    font-weight: 800;
    color: rgba(200, 206, 214, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reader-topbar__subtitle {
    font-size: 13px;
    font-weight: 800;
    color: rgba(230, 235, 240, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reader-topbar__controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.reader-topbar__btn {
    min-width: 44px;
    width: auto;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: rgba(230, 235, 240, 0.92);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    transition: var(--transition);
    font-size: 18px;
    line-height: 1;
}

.reader-topbar__btn-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.reader-topbar__btn-num {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: rgba(230, 235, 240, 0.95);
}

.reader-topbar__btn:hover {
    border-color: rgba(0, 229, 255, 0.55);
    color: #ffffff;
}

.reader-topbar__btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.reader-topbar__select.reader-chapter-select {
    min-width: 110px;
    width: auto;
    max-width: 160px;
    padding: 9px 34px 9px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.35);
    color: rgba(230, 235, 240, 0.95);
    color-scheme: dark;
}

.reader-topbar__select.reader-chapter-select option {
    background: var(--color-bg-primary);
    color: rgba(230, 235, 240, 0.95);
}

.reader-topbar__select.reader-chapter-select option:checked,
.reader-topbar__select.reader-chapter-select option:focus,
.reader-topbar__select.reader-chapter-select option:hover {
    background: #00e5ff;
    color: #061018;
}

.reader-topbar__select.reader-chapter-select:hover {
    border-color: rgba(0, 229, 255, 0.55);
}

.reader-topbar__select.reader-chapter-select:focus {
    border-color: rgba(0, 229, 255, 0.75);
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.12);
}

.reader-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-secondary);
    font-size: 13px;
}

.reader-breadcrumb a:hover {
    color: var(--color-yellow);
}

.reader-sep {
    opacity: 0.5;
}

.reader-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 14px;
}

.reader-nav-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.reader-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 320px;
    min-width: 240px;
}

.reader-nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
    flex: 1 1 320px;
}

.reader-chapter-label {
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: var(--weight-semibold);
    letter-spacing: 0.2px;
    text-transform: uppercase;
    opacity: 0.9;
}

.reader-chapter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(18, 16, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
    padding: 10px 38px 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: var(--weight-semibold);
    outline: none;
    min-width: 220px;
    max-width: 360px;
    width: 100%;
    transition: var(--transition);
    background-image:
        linear-gradient(45deg, transparent 50%, rgba(241, 233, 227, 0.8) 50%),
        linear-gradient(135deg, rgba(241, 233, 227, 0.8) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.reader-chapter-select:hover {
    border-color: rgba(44, 120, 212, 0.35);
}

.reader-chapter-select:focus {
    border-color: rgba(44, 120, 212, 0.6);
    box-shadow: 0 0 0 4px rgba(44, 120, 212, 0.12);
}

.reader-nav-prev.btn-secondary {
    padding: 12px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reader-nav-prev.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.reader-pages {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: min(100%, var(--reader-column-max-width));
    margin-left: auto;
    margin-right: auto;
}

.reader-page img {
    width: 100%;
    height: auto;
    border-radius: 0;
    border: 0;
    background: transparent;
}

.reader-footer {
    margin-top: 22px;
}

.reader-topbar--footer {
    position: static;
    top: auto;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .reader-title {
        font-size: 20px;
    }

    .reader-nav-left,
    .reader-nav-right {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .reader-chapter-select {
        max-width: none;
    }
}

/* ===================================
   Comic Card
   =================================== */

.comic-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--color-bg-card);
    transition: var(--transition);
}

.comic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.comic-thumbnail {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.comic-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.comic-card:not(.capitulo-card):not(.comic-card--manga):hover .comic-thumbnail img {
    transform: scale(1.05);
}

.comic-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: rgba(13, 27, 42, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.type-badge--manga {
    background: var(--color-yellow);
    color: rgba(255, 255, 255, 0.95);
}

.type-badge--manhwa {
    background: #7c41a4; /* purple */
    color: rgba(255, 255, 255, 0.95);
}

.type-badge--manhua {
    background: #be558e; /* pink */
    color: rgba(255, 255, 255, 0.95);
}

.comic-badge.comic-badge--finalizado {
    background: var(--color-red);
}

.comic-badge.comic-badge--en-emision {
    background: var(--color-green);
}

.comic-badge.comic-badge--pausado {
    background: var(--color-orange);
    color: var(--color-bg-primary);
}

.comic-badge.comic-badge--cancelado {
    background: var(--color-gray);
}

.comic-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 12px 12px;
    background: linear-gradient(to top,
        rgba(13, 27, 42, 0.95) 0%,
        rgba(13, 27, 42, 0.7) 50%,
        transparent 100%
    );
}

.comic-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.comic-category {
    font-size: 11px;
    color: var(--color-yellow);
    text-transform: capitalize;
}

.comic-chapters {
    font-size: 11px;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Grid manga (home, archivos): portadas con badges, año, sin género */
.comic-card--manga {
    position: relative;
    z-index: 1;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, z-index 0s;
}

.comic-card--manga,
.comic-card--manga .comic-thumbnail,
.comic-card--manga .comic-thumbnail--manga,
.comic-card--manga .comic-thumbnail--manga::after,
.comic-card--manga .comic-thumbnail img,
.comic-card--manga .comic-thumbnail--manga img {
    border-radius: 0 !important;
}

.comic-card--manga:hover,
.comic-card--manga:focus-within {
    z-index: 30;
    transform: translateY(-4px);
    border-color: #cb104f;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.comic-card__link {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.comic-card--manga:hover .comic-thumbnail--manga img,
.comic-card--manga:focus-within .comic-thumbnail--manga img {
    transform: scale(1.07);
}

/* Panel informativo al hover (a la derecha) */
.comic-card__hover-panel {
    position: absolute;
    left: calc(100% + 10px);
    top: 0;
    width: min(300px, calc(100vw - 48px));
    max-width: 300px;
    z-index: 40;
    text-align: left;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(230, 235, 240, 0.95);
    background: var(--color-bg-primary);
    border: 1px solid rgba(203, 16, 79, 0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-6px);
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.comic-card--manga:hover .comic-card__hover-panel,
.comic-card--manga:focus-within .comic-card__hover-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.comic-card__hover-panel-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    min-height: 0;
}

.comic-card__hover-top {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
}

.comic-card__hover-thumb {
    flex: 0 0 86px;
    width: 86px;
    align-self: flex-start;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--color-bg-card);
}

.comic-card__hover-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comic-card__hover-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comic-card__hover-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
}

.comic-card__hover-year {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(200, 208, 216, 0.78);
    margin: 0 0 8px;
}

.comic-card__hover-genres {
    list-style: none;
    margin: 0 0 4px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}

.comic-card__hover-genres li {
    margin: 0;
    padding: 0;
}

.comic-card__hover-genre {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: lowercase;
    color: #ffffff;
    padding: 4px 7px;
    border-radius: 0;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #cb104f;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.comic-card__hover-line {
    height: 0;
    margin: 8px 0;
    border: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.comic-card__hover-synopsis {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(200, 206, 214, 0.88);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-card__hover-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: #cb104f;
}

.comic-card__hover-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1 1 50%;
}

.comic-card__hover-stat--right {
    text-align: right;
    justify-content: flex-end;
}

.comic-card__hover-stat-icon {
    flex-shrink: 0;
    color: #cb104f;
}

/* Sin popup en viewports estrechos o dispositivos sin hover fino */
@media (max-width: 1024px) {
    .comic-card__hover-panel {
        display: none !important;
    }
}

.comic-thumbnail--manga {
    position: relative;
    z-index: 0;
    /* Un poco más altas que 3/4, como en la referencia */
    aspect-ratio: 2 / 3.15;
}

.comic-thumbnail--manga::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(14, 18, 23, 1) 0%,
        rgba(14, 18, 23, 0) 30%
    );
}

.comic-card--manga .comic-thumbnail--manga img {
    z-index: 0;
    display: block;
    transition: transform 0.35s ease;
}

.comic-card__top-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    pointer-events: none;
}

.comic-badge-tipo {
    display: inline-flex;
    align-items: center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    padding: 5px 8px;
    border-radius: 0;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.comic-badge-tipo--manga {
    border-color: #00e5ff;
}

.comic-badge-tipo--manhwa {
    border-color: #ff0062;
}

.comic-badge-tipo--manhua {
    border-color: #e040fb;
}

.comic-card__badge-estado {
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

/* Estados: mismo criterio que tipo (fondo oscuro + borde de color), esquinas rectas */
.comic-card--manga .comic-card__top-badges .comic-badge {
    position: static;
    top: auto;
    right: auto;
    font-size: 9px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.comic-card--manga .comic-card__top-badges .comic-badge.comic-badge--finalizado {
    background: rgba(0, 0, 0, 0.5);
    border-color: #e74c3c;
    color: #fff;
}

.comic-card--manga .comic-card__top-badges .comic-badge.comic-badge--en-emision {
    background: rgba(0, 0, 0, 0.5);
    border-color: #2ecc71;
    color: #fff;
}

.comic-card--manga .comic-card__top-badges .comic-badge.comic-badge--pausado {
    background: rgba(0, 0, 0, 0.5);
    border-color: #f39c12;
    color: #ffffff;
}

.comic-card--manga .comic-card__top-badges .comic-badge.comic-badge--cancelado {
    background: rgba(0, 0, 0, 0.5);
    border-color: #6b7280;
    color: #fff;
}

.comic-info.comic-info--manga {
    z-index: 3;
    padding: 4px 10px 10px;
    background: none;
    margin: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
}

.comic-card--manga .comic-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-subline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 1.1em;
}

.comic-year {
    font-size: 11px;
    font-weight: 500;
    color: rgba(230, 235, 240, 0.72);
}

/* Últimos capítulos: badge (fondo blanco, texto negro) */
.capitulo-number-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #0b0b0b;
    background: #ffffff;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    max-width: calc(100% - 20px);
    line-height: 1.2;
    transition: opacity 0.28s ease;
}

.capitulo-card-manga-title {
    /* Mismo estilo blanco que .comic-title en el resto de secciones */
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
    color: var(--color-text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.capitulo-card .comic-info {
    padding: 50px 12px 14px;
}

.capitulo-card__thumbnail {
    position: relative;
}

.capitulo-card__image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.capitulo-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.35s ease, transform 0.35s ease;
}

.capitulo-card:hover .capitulo-card__image-wrap img,
.capitulo-card:focus-within .capitulo-card__image-wrap img {
    filter: blur(10px) brightness(0.85);
    transform: scale(1.06);
}

.capitulo-card__hover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    background: rgba(13, 27, 42, 0.25);
}

.capitulo-card:hover .capitulo-card__hover,
.capitulo-card:focus-within .capitulo-card__hover {
    opacity: 1;
    pointer-events: auto;
}

.capitulo-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 220px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    box-sizing: border-box;
}

.capitulo-card__action--primary {
    background: var(--color-pink);
    color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 20px rgba(190, 85, 142, 0.35);
}

.capitulo-card__action--primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.capitulo-card__action--secondary {
    background: rgba(18, 16, 26, 0.72);
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.capitulo-card__action--secondary:hover {
    border-color: rgba(44, 120, 212, 0.45);
    color: var(--color-yellow);
}

.capitulo-card__action-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.capitulo-card__footer {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.28s ease;
}

.capitulo-card:hover .capitulo-number-badge {
    opacity: 0;
    pointer-events: none;
}

.capitulo-card:hover .capitulo-card__footer {
    opacity: 0;
    pointer-events: none;
}

/* Capítulo: el zoom lo controla .capitulo-card__image-wrap (desenfoque al hover) */

/* ===================================
   Últimos capítulos (nuevo layout como referencia)
   =================================== */
.capitulo-card--latest {
    border-radius: 0;
    overflow: visible;
    background: var(--color-bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Fuerza a que cada card ocupe 1 celda del grid (evita tamaños raros) */
.comics-grid > .capitulo-card--latest {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
}

.capitulo-card--latest:hover,
.capitulo-card--latest:focus-within {
    transform: translateY(-4px);
    border-color: #cb104f;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.capitulo-card--latest .capitulo-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.capitulo-card--latest .capitulo-card__thumb {
    position: relative;
    aspect-ratio: 2 / 2.5; /* aún menos alta */
    overflow: hidden;
    background: var(--color-bg-card);
}

.capitulo-card--latest .capitulo-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.capitulo-card--latest:hover .capitulo-card__thumb img,
.capitulo-card--latest:focus-within .capitulo-card__thumb img {
    transform: scale(1.06);
}

.capitulo-card--latest .capitulo-card__top-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    pointer-events: none;
}

.capitulo-card--latest .capitulo-card__meta {
    padding: 7px 9px 8px;
}

.capitulo-card--latest .capitulo-card__title {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.capitulo-card--latest .capitulo-card__line {
    margin: 6px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.capitulo-card--latest .capitulo-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.capitulo-card--latest .capitulo-card__cap {
    color: #cb104f;
}

.capitulo-card--latest .capitulo-card__new {
    color: #cb104f;
    text-transform: uppercase;
}

/* Desactivar UI antigua del capitulo-card en layout latest */
.capitulo-card--latest .comic-thumbnail.capitulo-card__thumbnail,
.capitulo-card--latest .capitulo-card__hover,
.capitulo-card--latest .capitulo-card__footer,
.capitulo-card--latest .capitulo-number-badge,
.capitulo-card--latest .capitulo-card__image-wrap {
    display: none !important;
}


/* ===================================
   Featured Banner
   =================================== */

.featured-banner {
    padding: 60px 0;
}

.featured-wrapper {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
        var(--color-bg-secondary) 0%,
        var(--color-accent) 50%,
        var(--color-dark-purple) 100%
    );
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
}

.featured-content {
    flex: 1;
    padding: 50px;
    max-width: 500px;
}

.featured-label {
    display: inline-block;
    color: var(--color-yellow);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.featured-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.featured-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
}

.featured-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.featured-image {
    flex: 0 0 45%;
    height: 380px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ===================================
   Membership Banner
   =================================== */

/* Descubre algo nuevo (slider 12 items, 6 por página) */
.discover-slider {
    position: relative;
    display: block;
}

.discover-slider__viewport {
    position: relative;
    overflow: hidden;
}

.discover-slider__track {
    display: flex;
    width: 200%; /* 2 páginas (12 items / 6) */
    transition: transform 0.35s ease;
}

.discover-slider__item {
    flex: 0 0 calc(100% / 12 * 1);
    /* 12 items en 200% => 6 visibles por viewport */
    padding: 0 8px;
    box-sizing: border-box;
}

.discover-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.discover-slider__nav-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.discover-slider__nav--prev {
    left: 10px;
}

.discover-slider__nav--next {
    right: 10px;
}

.discover-slider__nav:hover {
    border-color: rgba(203, 16, 79, 0.7);
    background: rgba(203, 16, 79, 0.18);
}

.discover-slider__nav.is-disabled,
.discover-slider__nav:disabled {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .discover-slider__track {
        width: 300%;
    }
    .discover-slider__item {
        flex: 0 0 calc(100% / 9);
    }
}

@media (max-width: 768px) {
    .discover-slider__nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .discover-slider__track {
        width: 600%;
    }
    .discover-slider__item {
        flex: 0 0 calc(100% / 6);
    }
}

@media (max-width: 1200px) {
    .editor-picks-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .editor-picks-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .editor-picks-block {
        padding: 18px 16px 14px;
    }
    .editor-picks-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .editor-picks-header .section-title {
        font-size: var(--text-base);
    }
}

.membership-wrapper {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
        #1a1230 0%,
        #2d1f4e 50%,
        #3a2560 100%
    );
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 280px;
}

.membership-content {
    flex: 1;
    padding: 40px 50px;
}

.membership-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #fff, #e0d0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.membership-subtitle {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.membership-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.btn-membership {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
}

.btn-membership:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.membership-image {
    flex: 0 0 50%;
    height: 280px;
    position: relative;
}

.membership-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ===================================
   Footer
   =================================== */

.site-footer {
    background: var(--color-bg-secondary);
    padding: 50px 0 30px;
    margin-top: 40px;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.footer-logo {
    justify-content: center;
}

.footer-logo__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-tagline {
    margin: 0;
    max-width: 720px;
    color: rgba(200, 206, 214, 0.82);
    font-size: 14px;
    line-height: 1.7;
}

.footer-divider {
    width: min(820px, 100%);
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-top: 6px;
}

.footer-info.footer-info--center {
    text-align: center;
}

.footer-info p {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.footer-credit a {
    color: var(--color-text-primary);
    font-weight: 700;
    text-decoration: none;
}

.footer-credit a:hover {
    color: var(--color-yellow);
    text-decoration: underline;
}

.footer-heart {
    color: #ff3b3b;
    margin: 0 4px;
}

/* ===================================
   404
   =================================== */
.error-404__hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    padding: 18px;
    background: rgba(10, 13, 18, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    margin-bottom: 22px;
}

.error-404__code {
    font-size: 54px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(203, 16, 79, 0.22);
    line-height: 1;
    margin-bottom: 10px;
}

.error-404__lead {
    margin: 0;
    color: rgba(220, 226, 234, 0.85);
    font-size: 14px;
    line-height: 1.7;
    max-width: 52ch;
}

.error-404__actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary.error-404__cta {
    background: #cb104f;
    color: #fff;
    border-radius: 0;
    box-shadow: 0 10px 22px rgba(203, 16, 79, 0.28);
}

.btn-primary.error-404__cta:hover {
    background: #e01a5c;
    box-shadow: 0 14px 30px rgba(203, 16, 79, 0.35);
}

.error-404__secondary {
    padding: 12px 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 12px;
    color: rgba(230, 235, 240, 0.9);
}

.error-404__secondary:hover {
    color: #cb104f;
}

.error-404__search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.error-404__search-label {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(200, 206, 214, 0.8);
}

.error-404__search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.error-404__search input[type="search"] {
    flex: 1;
    min-width: 0;
    background: rgba(18, 16, 26, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(230, 235, 240, 0.95);
    padding: 10px 12px;
    border-radius: 0;
    outline: none;
}

.error-404__search input[type="search"]:focus {
    border-color: rgba(203, 16, 79, 0.65);
    box-shadow: 0 0 0 4px rgba(203, 16, 79, 0.12);
}

.error-404__search-btn {
    padding: 10px 14px;
    border-radius: 0;
    background: rgba(203, 16, 79, 0.12);
    border: 1px solid rgba(203, 16, 79, 0.4);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px;
    transition: var(--transition);
}

.error-404__search-btn:hover {
    background: rgba(203, 16, 79, 0.18);
    border-color: rgba(203, 16, 79, 0.7);
}

@media (max-width: 900px) {
    .error-404__hero {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   WordPress Core Styles
   =================================== */

.alignwide {
    margin-left: -80px;
    margin-right: -80px;
    max-width: calc(100% + 160px);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 1200px) {
    .comics-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .comics-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .featured-title {
        font-size: 36px;
    }

    .membership-title {
        font-size: 32px;
    }

    .membership-subtitle {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .main-navigation.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg-primary);
        border-bottom: 1px solid var(--color-border);
        padding: 20px;
    }

    .main-navigation.active ul {
        flex-direction: column;
        width: 100%;
    }

    .main-navigation .sub-menu,
    .main-navigation .sub-menu .sub-menu {
        display: block;
        position: static;
        min-width: 0;
        padding: 0;
        margin-left: 14px;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .search-form {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-slider {
        height: 380px;
    }

    .slide-content {
        padding: 26px 20px;
        max-width: 92%;
        margin-left: 16px;
    }

    .slide-title {
        font-size: 30px;
    }

    .slider-dots {
        right: 16px;
        bottom: 20px;
    }

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

    .comic-header--split {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px 0;
    }

    .comic-page-title {
        font-size: 30px;
    }

    .manga-layout {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 22px;
    }

    .featured-wrapper {
        flex-direction: column;
    }

    .featured-content {
        padding: 30px;
        max-width: 100%;
    }

    .featured-title {
        font-size: 32px;
    }

    .featured-image {
        flex: none;
        width: 100%;
        height: 250px;
    }

    .membership-wrapper {
        flex-direction: column;
    }

    .membership-content {
        padding: 30px;
        text-align: center;
    }

    .membership-image {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .footer-nav {
        margin-bottom: 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
    }

    .footer-info {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 16px;
    }

    .site-logo img {
        height: 32px;
    }

    .hero-slider {
        height: 300px;
    }

    .slide-content {
        padding: 20px;
        max-width: 100%;
    }

    .slide-description {
        font-size: 13px;
    }

    .slide-image {
        width: 40%;
        opacity: 0.5;
    }

    .comics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel-layout .comics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 18px;
        gap: 8px;
    }

    .section-title__icon-wrap {
        width: 36px;
        height: 36px;
    }

    .section-link.section-link--catalog {
        padding: 8px 14px;
        font-size: 12px;
    }

    .featured-title {
        font-size: 28px;
    }

    .membership-title {
        font-size: 24px;
    }

    .membership-subtitle {
        font-size: 18px;
    }

    .footer-top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

/* ===================================
   Animations
   =================================== */

/* Back to top */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #cb104f;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: var(--transition);
    z-index: 1500;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: #e01a5c;
    transform: translateY(-1px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

.back-to-top__icon {
    width: 22px;
    height: 22px;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comic-card {
    animation: fadeInUp 0.5s ease forwards;
}

/* ===================================
   Pagination (WordPress .page-numbers)
   =================================== */

ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
}

ul.page-numbers li {
    list-style: none;
}

ul.page-numbers a.page-numbers,
ul.page-numbers span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(18, 16, 26, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(241, 233, 227, 0.92);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    transition: var(--transition);
    text-decoration: none;
}

ul.page-numbers a.page-numbers:hover {
    border-color: rgba(44, 120, 212, 0.35);
    background: rgba(18, 16, 26, 0.75);
    color: var(--color-yellow);
}

ul.page-numbers .current {
    background: var(--color-yellow);
    border-color: var(--color-yellow);
    color: var(--color-on-primary);
}

ul.page-numbers .dots {
    opacity: 0.65;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
}
