/*
Theme Name: wp-fire
Theme URI: https://fire.themesdiff.com/
Author: Shido.Dono
Author URI: https://themesdiff.com/
Description: Manga Solution for WordPress. Support Manga, Comic, Novel. Require WP Manga (Madara-Core) plugin
Version: 2.0.1.1
Text Domain: fire
Domain Path: /languages/
Tags: one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
*/

/*--------------------------------------------------------------
>>> Adjusment
----------------------------------------------------------------*/
a.dropdown-item.disabled {
    opacity: .3;
    cursor: not-allowed !important;
}
.u-menu .dropdown-menu {
    will-change: auto !important;
}
button.btn-primary2 {
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    height: 1.85rem !important;
    border-radius: 50rem !important;
    margin-right: .3rem !important;
    background-color: #235479 !important;
    border-color: #235479 !important;
}
.manga-detail .main-inner .content .actions {
    gap: 8px;
}
#page-wrapper-x>div {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#ch-images img, .w-full {
    width: 100%;
}
#ctrl-menu .ts-name {
    flex-direction: row-reverse;
}
#ctrl-menu .ts-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: .5rem;
}

.original.card-lg .unit .inner .info>div{
    color:#fff;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    display:block;
    font-size:1.05rem
}
.user-panel .manga-bottom{
    margin-top:0
}
.user-panel .manga-bottom .content .m-list .vol-list,.user-panel .manga-bottom .content .m-list ul{
    max-height:none
}
.user-panel .manga-bottom .content .m-list,.user-panel .manga-bottom .content .m-list .vol-list{
    background:0 0
}
.user-panel .manga-bottom .content .m-list .vol-list{
    padding:0
}
.user-panel .main-inner .manga-bottom .content{
    margin-left:0
}

/* Manga Grid Styles */
.manga-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    background: var(--color-2);
}

@media (max-width: 768px) {
    .manga-grid {
        
        grid-template-columns: 1fr;
        
    }
}

.manga-grid .unit {
    margin-bottom: 0.5rem;
}

.manga-grid .unit .inner {
    display: flex;
    background: var(--color-4);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.manga-grid .unit .inner:hover {
    transform: translateY(-2px);
    background: var(--color-5);
}

.manga-grid .unit .inner .poster {
    width: 120px;
    height: 170px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.manga-grid .unit .inner .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manga-grid .unit .inner .info {
    flex-grow: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.manga-grid .unit .inner .info > div {
    margin-bottom: 0.5rem;
}

.manga-grid .unit .inner .info .type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-6);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.manga-grid .unit .inner .info a {
    color: var(--color-11);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.manga-grid .unit .inner .info a:hover {
    color: var(--color-7);
}

.manga-grid .unit .inner .info .content {
    list-style: none;
    padding: 0;
    margin: 0;
}

.manga-grid .unit .inner .info .content li {
    margin-bottom: 0.25rem;
}

.manga-grid .unit .inner .info .content li:last-child {
    margin-bottom: 0;
}

.manga-grid .unit .inner .info .content li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-9);
    margin: 0;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.manga-grid .unit .inner .info .content li a:hover {
    background-color: var(--color-3);
}

.manga-grid .unit .inner .info .content li a span:last-child {
    color: var(--color-8);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .manga-grid .unit .inner .poster {
        width: 100px;
        height: 140px;
    }
    
    .manga-grid .unit .inner .info {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .manga-grid .unit .inner .poster {
        width: 80px;
        height: 120px;
    }
    
    .manga-grid .unit .inner .info .content li a {
        font-size: 0.8rem;
    }
}

/* Filter Wrapper Styles */
.filter-wrapper {
    padding: 1rem;
    margin-bottom: 2rem;
}

.filter-wrapper .search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    background: var(--color-4);
    border: 1px solid var(--color-5);
    border-radius: 4px;
    color: var(--color-11);
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: var(--color-8);
}

.search-submit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: var(--color-8);
    cursor: pointer;
}

.search-submit:hover {
    color: var(--color-7);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    background: var(--color-4);
    border: 1px solid var(--color-5);
    border-radius: 4px;
    color: var(--color-11);
    font-size: 0.85rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f96a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    min-width: 100px;
}

.filter-select:hover {
    border-color: var(--color-6);
}

.filter-select:focus {
    outline: none;
    border-color: var(--color-6);
}

.filter-select option {
    background: var(--color-3);
    color: var(--color-11);
    padding: 0.5rem;
}

.filter-button {
    padding: 0.5rem 1.5rem;
    background: var(--color-6);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-button:hover {
    background: var(--color-7);
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .filter-button {
        width: 100%;
    }
}

/* Header Search Styles */
.header-search {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-search .search-form {
    position: relative;
    width: 100%;
}

.header-search .search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search .search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background: var(--color-4);
    border: 1px solid var(--color-5);
    border-radius: 4px;
    color: var(--color-11);
    font-size: 0.9rem;
}

.header-search .search-input::placeholder {
    color: var(--color-8);
}

.header-search .search-input:focus {
    outline: none;
    border-color: var(--color-6);
}

.header-search .search-submit {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px;
    color: var(--color-8);
    cursor: pointer;
    transition: color 0.2s ease;
}

.header-search .search-submit:hover {
    color: var(--color-7);
}

.header-search .live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-4);
    border: 1px solid var(--color-5);
    border-radius: 4px;
    margin-top: 5px;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.header-search .live-search-results.active {
    display: block;
}

.header-search .live-search-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-5);
    transition: background 0.2s ease;
    text-decoration: none;
    color: var(--color-11);
}

.header-search .live-search-item:last-child {
    border-bottom: none;
}

.header-search .live-search-item:hover {
    background: var(--color-5);
}

.header-search .live-search-thumbnail {
    width: 40px;
    height: 60px;
    margin-right: 1rem;
    border-radius: 4px;
    object-fit: cover;
}

.header-search .live-search-info {
    flex: 1;
}

.header-search .live-search-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--color-11);
}

.header-search .live-search-meta {
    font-size: 0.85rem;
    color: var(--color-8);
}

@media (max-width: 768px) {
    .header-search {
        padding: 0 10px;
    }

    .header-search .search-input {
        font-size: 0.9rem;
        padding: 0.6rem 2.5rem 0.6rem 1rem;
    }

    .header-search .live-search-thumbnail {
        width: 35px;
        height: 50px;
    }
}

/* Auth Modal Styles */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
    display: none;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-3);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    z-index: 1000000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-modal h2 {
    margin: 0 0 20px;
    color: var(--color-11);
    text-align: center;
    font-size: 24px;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-8);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--color-11);
}

.form-group {
    margin-bottom: 20px;
}

.auth-modal .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-5);
    border-radius: 4px;
    background-color: var(--color-4);
    color: var(--color-11);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.auth-modal .form-control:focus {
    outline: none;
    border-color: var(--color-6);
    box-shadow: 0 0 0 2px rgba(var(--color-6-rgb), 0.2);
}

.auth-modal .btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--color-6);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.auth-modal .btn-primary:hover {
    background-color: var(--color-7);
}

.auth-modal .btn-primary:disabled {
    background-color: var(--color-5);
    cursor: not-allowed;
}

.auth-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.auth-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    color: #ff3333;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.auth-message.success {
    background-color: rgba(0, 255, 0, 0.1);
    color: #00cc00;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.auth-modal .form-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--color-8);
}

.auth-modal .form-footer a {
    color: var(--color-6);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-modal .form-footer a:hover {
    color: var(--color-7);
    text-decoration: underline;
}

/* User Menu Styles */
.c-user_menu {
    position: relative;
}

.c-user_menu button {
    background: none;
    border: none;
    color: var(--color-11);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.c-user_menu button:hover {
    background-color: rgba(var(--color-6-rgb), 0.1);
}

.c-user_menu i {
    font-size: 18px;
}

.c-user_menu span {
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 480px) {
    .auth-modal {
        width: 95%;
        padding: 20px;
    }

    .auth-modal h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .auth-modal .form-control {
        padding: 10px;
    }

    .auth-modal .btn-primary {
        padding: 10px;
    }

    .c-user_menu span {
        display: none;
    }
}

/* Register Page Styles */
.register-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.register-page .default-style {
    background-color: var(--color-3);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.register-page .form-group {
    margin-bottom: 1rem;
}

.register-page .form-control {
    background-color: var(--color-4);
    border: 1px solid var(--color-5);
    color: var(--color-11);
    padding: 0.75rem;
    border-radius: 4px;
    width: 100%;
}

.register-page .form-control:focus {
    border-color: var(--color-6);
    box-shadow: 0 0 0 0.2rem rgba(var(--color-6-rgb), 0.25);
}

.register-page .btn-primary {
    background-color: var(--color-6);
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.register-page .btn-primary:hover {
    background-color: var(--color-7);
}

.register-page .loading {
    text-align: center;
    margin-top: 1rem;
}

.register-page .spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(var(--color-6-rgb), 0.3);
    border-radius: 50%;
    border-top-color: var(--color-6);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.register-page .form-footer {
    margin-top: 1rem;
    text-align: center;
}

.register-page .form-footer a {
    color: var(--color-6);
    text-decoration: none;
}

.register-page .form-footer a:hover {
    text-decoration: underline;
}

.register-page .alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.register-page .alert-danger {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #ff3333;
}

.register-page .alert-success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.2);
    color: #33ff33;
}

@media (max-width: 480px) {
    .auth-modal {
        margin: 1rem;
        padding: 1.5rem;
    }

    .auth-modal h2 {
        font-size: 1.5rem;
    }
}

/* Modal de Login */
.dark-modal {
    background-color: var(--color-2);
    color: #fff;
}

.dark-modal .modal-header {
    border-bottom: none;
}

.dark-modal .close {
    color: #fff;
    text-shadow: none;
    opacity: 0.8;
}

.dark-modal .close:hover {
    opacity: 1;
}

.dark-modal .form-control {
    background-color: var(--color-3);
    border: 1px solid var(--color-4);
    color: #fff;
}

.dark-modal .form-control:focus {
    background-color: var(--color-3);
    border-color: var(--color-6);
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(var(--color-6-rgb), 0.25);
}

.dark-modal .btn-primary {
    background-color: var(--color-6);
    border-color: var(--color-6);
}

.dark-modal .btn-primary:hover {
    background-color: var(--color-7);
    border-color: var(--color-7);
}

.dark-modal .form-footer {
    color: var(--color-5);
}

.dark-modal .form-footer a {
    color: var(--color-6);
    text-decoration: none;
    margin-left: 5px;
}

.dark-modal .form-footer a:hover {
    color: var(--color-7);
    text-decoration: underline;
}

/* Estilos para los modales de autenticación */
.modal {
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    z-index: 100000 !important;
    position: relative;
}

.modal-backdrop {
    display: none !important;
}

.dark-modal {
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.dark-modal .modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

.dark-modal .modal-header .close {
    color: #fff;
    opacity: 0.8;
    text-shadow: none;
    padding: 1.5rem;
    position: absolute;
    right: 0;
    top: 0;
}

.dark-modal .modal-header .close:hover {
    opacity: 1;
}

.dark-modal .modal-body {
    padding: 1.5rem;
    position: relative;
}

.dark-modal .form-control {
    background-color: #2d2d2d;
    border: 1px solid #3d3d3d;
    color: #fff;
    border-radius: 5px;
    padding: 0.75rem 1rem;
}

.dark-modal .form-control:focus {
    background-color: #2d2d2d;
    border-color: #4a4a4a;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1);
}

.dark-modal .form-control::placeholder {
    color: #888;
}

.dark-modal .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 5px;
}

.dark-modal .btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.dark-modal .form-footer {
    color: #888;
}

.dark-modal .form-footer a {
    color: #3498db;
    text-decoration: none;
    margin-left: 5px;
}

.dark-modal .form-footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.dark-modal .alert {
    background-color: #2d2d2d;
    border: none;
    color: #fff;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
}

.dark-modal .alert-success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.dark-modal .alert-danger {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.dark-modal .loading {
    text-align: center;
    margin: 1rem 0;
}

.dark-modal .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Evitar que el contenido detrás del modal sea interactivo */
.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Asegurar que los inputs sean interactivos */
.dark-modal input,
.dark-modal button,
.dark-modal a {
    position: relative;
    z-index: 100001 !important;
}

/* Estilos para la página de perfil */
.profile-sidebar {
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.profile-nav .nav-link {
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.profile-nav .nav-link:hover,
.profile-nav .nav-link.active {
    background-color: #3498db;
    color: #fff;
}

.profile-nav .nav-link i {
    margin-right: 10px;
}

/* Estilos para las tarjetas de bookmark */
.bookmark-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
}

.bookmark-card:hover {
    transform: translateY(-5px);
}

.bookmark-image {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
}

.bookmark-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bookmark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bookmark-card:hover .bookmark-overlay {
    opacity: 1;
}

.bookmark-info {
    background: #1a1a1a;
}

.bookmark-info h6 {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.bookmark-info h6 a {
    color: #fff;
    text-decoration: none;
}

.bookmark-info h6 a:hover {
    color: #3498db;
}

.bookmark-info small {
    font-size: 12px;
}

/* Estilos para el formulario de perfil */
.card.bg-dark {
    background-color: #1a1a1a !important;
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.card.bg-dark .card-header {
    background-color: #2d2d2d;
    border-bottom: none;
    padding: 15px 20px;
}

.card.bg-dark .card-body {
    padding: 20px;
}

.form-control {
    background-color: #2d2d2d;
    border: 1px solid #3d3d3d;
    color: #fff;
}

.form-control:focus {
    background-color: #2d2d2d;
    border-color: #4a4a4a;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control[readonly] {
    background-color: #252525;
}

/* Estilos para la página de perfil */
.profile-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    margin: 0;
    color: var(--text-color);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 500;
    color: var(--text-color);
}

.input-field {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--background-color);
    color: var(--text-color);
}

.avatar-wrapper {
    margin-bottom: 10px;
}

.avatar-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.file-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-label:hover {
    background: var(--hover-color);
}

.submit-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: var(--primary-hover-color);
}

.loading-spinner {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.alert-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-message.success {
    background: var(--success-color);
    color: #fff;
}

.alert-message.error {
    background: var(--error-color);
    color: #fff;
}

/* Estilos de paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0 10px;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 5px;
    background: var(--bg-offset);
    color: var(--text);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 14px;
}

@media (max-width: 768px) {
    .pagination {
        gap: 3px;
    }
    
    .pagination .page-numbers {
        min-width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .pagination .page-numbers:not(.prev):not(.next):not(.current):not(.dots) {
        display: none;
    }

    .pagination .page-numbers.current,
    .pagination .page-numbers.prev,
    .pagination .page-numbers.next,
    .pagination .page-numbers.dots {
        display: flex;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 2px;
    }
    
    .pagination .page-numbers {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .pagination .prev,
    .pagination .next {
        padding: 0 10px;
    }
}

.pagination .page-numbers:hover {
    background: var(--primary);
    color: #fff;
}

.pagination .current {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

.pagination .prev,
.pagination .next {
    padding: 0 15px;
}

.pagination .dots {
    background: transparent;
}

.pagination .dots:hover {
    background: transparent;
    color: var(--text);
}

/* Go to Surface */
.gotop {
    text-align: center;
    margin: 2rem auto;
    max-width: 200px;
}

.gotop .btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    margin: 0 auto;
}

.gotop .btn:hover {
    background: var(--primary-hover-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gotop .btn i {
    margin-bottom: 5px;
    font-size: 1.5em;
}

.gotop .btn p {
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    font-weight: 500;
}

/* Estilos para el selector de idioma en el menú de control */
#ctrl-menu .language-wrapper {
    padding: 0 0.5rem;
}

#ctrl-menu .language-select {
    background-color: var(--color-4);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#ctrl-menu .language-select:hover,
#ctrl-menu .language-select:focus {
    border-color: var(--color-1);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--color-1-rgb), 0.1);
}

#ctrl-menu .language-select option {
    background-color: var(--color-3);
    color: var(--text);
    padding: 8px;
}

/* Language selector styles */
.form-select.language-select {
    background-color: var(--color-4);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select.language-select:hover,
.form-select.language-select:focus {
    border-color: var(--color-1);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--color-1-rgb), 0.1);
}

.form-select.language-select option {
    background-color: var(--color-3);
    color: var(--text);
}

/* Responsivo */
@media screen and (max-width: 768px) {
    .gotop {
        margin: 1.5rem auto;
    }
    
    .gotop .btn {
        padding: 12px 20px;
    }
    
    .gotop .btn i {
        font-size: 1.2em;
    }
    
    .gotop .btn p {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .gotop {
        margin: 1rem auto;
    }
    
    .gotop .btn {
        padding: 10px 15px;
    }
    
    .gotop .btn i {
        font-size: 1em;
    }
}

@media (max-width: 767px) {
    #ch-images {
        width: 100% !important;
    }
    
    #change-width {
        display: none !important;
    }
}

.error-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #ff4444;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
}

.hidden {
    display: none !important;
}

/* Estilos responsivos para recently-updated */

@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
    .recently-updated .unit .inner .meta {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .recently-updated .unit .inner .meta time {
        display: block !important;
        margin-top: 5px !important;
        font-size: 0.85em !important;
        color: #888 !important;
        width: 100% !important;
        text-align: left !important;
    }
  }

/* Estilos para la etiqueta Nuevo */
.recently-updated .unit .inner .meta .new-tag,
.recently-updated .unit .inner ul.content li a span .new-tag {
    background-color: #1A2539;
    color: grey !important;
    padding: 2px 6px !important;
    border-radius: 3px;
    font-size: 0.75em !important;
    font-weight: 600;
    display: inline-block;
    margin-left: 5px;
    line-height: normal;
    vertical-align: middle;
}

@media screen and (max-width: 1024px) {
    .recently-updated .unit .inner ul.content li a {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 5px;
    }
    
    .recently-updated .unit .inner ul.content li a span:last-child {
        display: flex !important;
        align-items: center !important;
        white-space: nowrap;
    }
}

/* Manga Submission Form Styles */
.manga-submission-container {
    padding: 40px 0;
}

.manga-submission-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.manga-submission-form label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.manga-submission-form .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
}

.manga-submission-form textarea {
    min-height: 120px;
}

.manga-submission-form .btn-primary {
    padding: 10px 24px;
    font-weight: 600;
}

.manga-submission-form .alert {
    margin-bottom: 20px;
}

.manga-bottom .content .m-list .list-menu {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-4);
    padding: 1rem;
    box-shadow: rgb(0 0 0 / .1) 0 2px 4px -3px, rgb(0 0 0 / .05) 0 4px 6px -2px;
    flex-direction: column !important;
}

/* Estilos para el sistema de comentarios */
.comments-container {
    background-color: #182335;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.comment-form {
    margin-bottom: 20px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #2d3a4f;
    border-radius: 8px;
    background-color: #1e2c42;
    color: #fff;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-form button {
    background-color: #0dcaf0;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-form button:hover {
    background-color: #0bb5d9;
}

.comment-item {
    background-color: #1e2c42;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.comment-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-name {
    color: #fff;
    font-weight: 600;
}

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

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #8b95a5;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.like-btn {
    background: none;
    border: none;
    color: #8b95a5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.like-btn i {
    transition: color 0.2s;
}

.like-btn:hover i {
    color: #ff4757;
}

.like-btn i.fa-solid {
    color: #ff4757;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-actions button {
    background: none;
    border: none;
    color: #8b95a5;
    cursor: pointer;
    font-size: 0.9em;
    padding: 0;
}

.comment-actions button:hover {
    color: #0dcaf0;
}

.replies-container {
    margin-left: 50px;
    margin-top: 15px;
}

.reply-item {
    background-color: #233047;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.reply-form {
    margin-top: 15px;
    padding: 15px;
    background-color: #233047;
    border-radius: 8px;
}

.reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #2d3a4f;
    border-radius: 8px;
    background-color: #1e2c42;
    color: #fff;
    resize: vertical;
    margin-bottom: 10px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-actions button {
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.cancel-reply {
    background-color: #2d3a4f;
    color: #fff;
}

.submit-reply {
    background-color: #0dcaf0;
    color: #fff;
}

.submit-reply:hover {
    background-color: #0bb5d9;
}

.comments-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.comments-pagination button {
    background-color: #1e2c42;
    border: none;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.comments-pagination button.active {
    background-color: #0dcaf0;
}

.comments-pagination button:hover:not(.active) {
    background-color: #233047;
}

.comments-pagination span {
    color: #8b95a5;
    padding: 8px;
}

.no-comments {
    text-align: center;
    color: #8b95a5;
    padding: 30px;
}

/* Estilos para el modal de reporte */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.report-modal-content {
    background-color: #182335;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
}

.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.report-modal-header h3 {
    color: #fff;
    margin: 0;
}

.report-modal-close {
    background: none;
    border: none;
    color: #8b95a5;
    cursor: pointer;
    font-size: 1.5em;
}

.report-modal-body textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #2d3a4f;
    border-radius: 8px;
    background-color: #1e2c42;
    color: #fff;
    resize: vertical;
    margin-bottom: 15px;
}

.report-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.report-modal-footer button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.report-modal-cancel {
    background-color: #2d3a4f;
    color: #fff;
}

.report-modal-submit {
    background-color: #0dcaf0;
    color: #fff;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.comment-item {
    animation: slideIn 0.3s ease-out;
}

.reply-item {
    animation: slideIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .replies-container {
        margin-left: 20px;
    }

    .comment-actions {
        flex-wrap: wrap;
    }

    .report-modal-content {
        width: 95%;
        margin: 10px;
    }
}

/* Estilos para el estado de carga */
.comments-loading {
    text-align: center;
    padding: 20px;
    color: #8b95a5;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #2d3a4f;
    border-radius: 50%;
    border-top-color: #0dcaf0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Estado de error */
.comments-error {
    text-align: center;
    padding: 20px;
    color: #ff4757;
    background-color: rgba(255, 71, 87, 0.1);
    border-radius: 8px;
    margin: 10px 0;
}

/* Tooltip para los botones */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Estilos para el modal de comentarios */
#commentsModal .modal-content {
    background-color: #0e1726 !important;
    border: none;
}

#commentsModal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem;
}

#commentsModal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

#commentsModal .modal-header-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#commentsModal .reload-comments,
#commentsModal .close {
    background: none;
    border: none;
    color: #fff;
    opacity: 0.8;
    padding: 0.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
}

#commentsModal .reload-comments:hover,
#commentsModal .close:hover {
    opacity: 1;
}

#commentsModal .reload-comments i {
    transition: transform 0.2s;
}

#commentsModal .reload-comments:hover i {
    transform: rotate(180deg);
}

#commentsModal .modal-body {
    padding: 0;
    background-color: #182335;
}

#commentsModal .comments-container {
    padding: 1.5rem;
    height: calc(100vh - 200px);
    overflow-y: auto;
}

#commentsModal .login-required {
    text-align: center;
    padding: 2rem;
    background-color: rgba(13, 202, 240, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
}

#commentsModal .login-required p {
    color: #fff;
    margin-bottom: 1rem;
}

#commentsModal .login-required .btn-primary {
    background-color: #0dcaf0;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#commentsModal .login-required .btn-primary:hover {
    background-color: #0bb5d9;
}

/* Estilos para el formulario de comentarios en el modal */
#commentsModal .comment-form {
    margin-bottom: 1.5rem;
}

#commentsModal .comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid #2d3a4f;
    border-radius: 8px;
    background-color: #1e2c42;
    color: #fff;
    resize: vertical;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

#commentsModal .comment-form textarea:focus {
    outline: none;
    border-color: #0dcaf0;
}

#commentsModal .comment-form button {
    background-color: #0dcaf0;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
}

#commentsModal .comment-form button:hover {
    background-color: #0bb5d9;
}

/* Estilos para la lista de comentarios en el modal */
#commentsModal .comments-list {
    margin-bottom: 1rem;
}

#commentsModal .comment-item {
    background-color: #1e2c42;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    animation: slideIn 0.3s ease-out;
}

#commentsModal .comment-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

#commentsModal .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0.75rem;
    object-fit: cover;
}

#commentsModal .user-name {
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

#commentsModal .comment-content {
    color: #e1e7ef;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

#commentsModal .comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #8b95a5;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

#commentsModal .comment-actions {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

#commentsModal .comment-actions button {
    background: none;
    border: none;
    color: #8b95a5;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    transition: color 0.2s;
}

#commentsModal .comment-actions button:hover {
    color: #0dcaf0;
}

/* Estilos para las respuestas en el modal */
#commentsModal .replies-container {
    margin-left: 3rem;
    margin-top: 1rem;
}

#commentsModal .reply-item {
    background-color: #233047;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

/* Estilos para la paginación en el modal */
#commentsModal .comments-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

#commentsModal .comments-pagination button {
    background-color: #1e2c42;
    border: none;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

#commentsModal .comments-pagination button.active {
    background-color: #0dcaf0;
}

#commentsModal .comments-pagination button:hover:not(.active) {
    background-color: #233047;
}

#commentsModal .comments-pagination span {
    color: #8b95a5;
    padding: 0.5rem;
}

/* Estilos para estados de carga y error en el modal */
#commentsModal .comments-loading {
    text-align: center;
    padding: 2rem;
    color: #8b95a5;
}

#commentsModal .loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #2d3a4f;
    border-radius: 50%;
    border-top-color: #0dcaf0;
    animation: spin 1s linear infinite;
}

#commentsModal .comments-error {
    text-align: center;
    padding: 1.5rem;
    color: #ff4757;
    background-color: rgba(255, 71, 87, 0.1);
    border-radius: 8px;
    margin: 1rem 0;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    #commentsModal .modal-dialog {
        margin: 0.5rem;
    }

    #commentsModal .comments-container {
        height: calc(100vh - 150px);
        padding: 1rem;
    }

    #commentsModal .replies-container {
        margin-left: 1.5rem;
    }

    #commentsModal .comment-actions {
        flex-wrap: wrap;
    }
}

/* Animaciones para el modal */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { transform: translateY(-10%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#commentsModal.fade .modal-dialog {
    animation: modalSlideIn 0.3s ease-out;
}

#commentsModal.show {
    animation: modalFadeIn 0.3s ease-out;
}

/* Estilos para contenedores de anuncios */
.ad-container {
    width: 100%;
    margin: 20px auto;
    text-align: center;
    min-height: 90px;
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ad-label {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 2px;
    background: rgba(0,0,0,0.02);
}

.ad-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
}

/* Tamaños responsivos para anuncios */
.ad-header { max-width: 728px; }
.ad-sidebar { max-width: 300px; }
.ad-content-top { max-width: 970px; }
.ad-content-bottom { max-width: 970px; }

@media (max-width: 768px) {
    .ad-container {
        min-height: 50px;
    }
    .ad-content {
        min-height: 50px;
    }
}

/* Estilos para anuncios flotantes */
.floating-ad {
    position: fixed;
    z-index: 999;
    background: transparent;
    padding: 5px;
    max-width: 300px;
}

.left-ad {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.right-ad {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.bottom-ad {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 728px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 5px;
}

.ad-close-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
}

.ad-label {
    font-size: 10px;
    color: #666;
    text-align: center;
    background: rgba(255,255,255,0.8);
    padding: 2px 5px;
    border-radius: 3px;
    margin-bottom: 5px;
}

/* Media queries para responsividad */
@media (max-width: 1400px) {
    .left-ad, .right-ad {
        display: none;
    }
}

@media (max-width: 768px) {
    .bottom-ad {
        max-width: 320px;
    }
}


/*Ads*/
.ads {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin: 1rem auto;
    }
    
    .ads iframe, .ads img, .ads > div {
        max-width: 100%;
        height: revert-layer !important;
    }
    
    @media screen and (max-width: 768px) {
        .ads {
            padding: 0 10px;
        }
    }
    


/*--------------------------------------------------------------
>>> Estilos básicos para secciones - Removidos estilos complejos
----------------------------------------------------------------*/

/* Eliminamos los estilos complejos anteriores para usar el estilo simple de Popular Posts */
/* Los estilos específicos están ahora en cada template part individual */

/*--------------------------------------------------------------
>>> Estilos simples para las nuevas secciones - Estilo WordPress Popular Posts
----------------------------------------------------------------*/

/* Contenedor principal simplificado */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Espaciado básico entre secciones */
.recent-posts-wrapper,
.popular-manga-wrapper {
    margin: 20px 0;
}

/* Estilos base para widgets tipo Popular Posts */
.recent-posts-wrapper,
.popular-manga-wrapper {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Títulos de sección uniformes */
.recent-posts-wrapper .section-title,
.popular-manga-wrapper .section-title {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: #23282d;
    margin: 0;
    padding: 15px 15px 8px 15px;
    border-bottom: 1px solid #e1e5e9;
}

/* Iconos de los títulos */
.recent-posts-wrapper .section-title i {
    color: #0073aa;
    margin-right: 8px;
}

.popular-manga-wrapper .section-title i {
    color: #ff6b35;
    margin-right: 8px;
}

/* Listas simples */
.recent-posts-list,
.popular-manga-list {
    list-style: none;
    margin: 0;
    padding: 15px;
}

/* Items de lista uniformes */
.recent-post-item,
.popular-manga-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

.recent-post-item:last-child,
.popular-manga-item:last-child {
    border-bottom: none;
}

/* Botones de "Ver todo" uniformes */
.view-all-wrapper {
    text-align: center;
    padding: 10px 15px 15px;
    border-top: 1px solid #f1f1f1;
}

.view-all-btn {
    display: inline-block;
    padding: 6px 12px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    font-size: 12px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.view-all-btn:hover {
    background: #005a87;
    color: white;
}

/* Responsive básico */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .recent-posts-wrapper,
    .popular-manga-wrapper {
        margin: 15px 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

.ads-slider {
            width: 728px;
            height: 90px;
            margin: 20px auto;
            overflow: hidden;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: relative;
        }

        .ads-container {
            display: flex;
            width: 500%;
            height: 100%;
            animation: slide 25s infinite;
        }

        .ad-item {
            width: 20%;
            height: 100%;
            flex-shrink: 0;
        }

        /* Animación del slider */
        @keyframes slide {
            0%, 18% { transform: translateX(0%); }
            20%, 38% { transform: translateX(-20%); }
            40%, 58% { transform: translateX(-40%); }
            60%, 78% { transform: translateX(-60%); }
            80%, 98% { transform: translateX(-80%); }
            100% { transform: translateX(0%); }
        }

        /* Pausar animación al hacer hover */
        .ads-slider:hover .ads-container {
            animation-play-state: paused;
        }

        /* Indicadores */
        .slider-indicators {
            position: absolute;
            bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
        }

        .indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255,255,255,0.5);
            animation: indicatorSlide 25s infinite;
        }

        .indicator:nth-child(1) { animation-delay: 0s; }
        .indicator:nth-child(2) { animation-delay: 5s; }
        .indicator:nth-child(3) { animation-delay: 10s; }
        .indicator:nth-child(4) { animation-delay: 15s; }
        .indicator:nth-child(5) { animation-delay: 20s; }

        @keyframes indicatorSlide {
            0%, 18% { background: rgba(255,255,255,0.9); }
            20%, 100% { background: rgba(255,255,255,0.5); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .ads-slider {
                width: 320px;
                height: 50px;
            }
        }
/*ads vertical*/

.ads-vertical-container {
        width: 300px;
        height: 500px; /* Muestra 2 anuncios a la vez */
        margin: 20px auto;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        position: relative;
    }

    .ads-vertical-wrapper {
        display: flex;
        flex-direction: column;
        height: 600%;
        animation: scrollVertical 30s infinite;
    }

    .ad-block {
        width: 300px;
        height: 250px;
        flex-shrink: 0;
    }

    @keyframes scrollVertical {
        0%, 15% { transform: translateY(0%); }
        16.66%, 31.66% { transform: translateY(-16.66%); }
        33.33%, 48.33% { transform: translateY(-33.33%); }
        50%, 65% { transform: translateY(-50%); }
        66.66%, 81.66% { transform: translateY(-66.66%); }
        83.33%, 98.33% { transform: translateY(-83.33%); }
        100% { transform: translateY(0%); }
    }

    .ads-vertical-container:hover .ads-vertical-wrapper {
        animation-play-state: paused;
    }

    @media (max-width: 768px) {
        .ads-vertical-container {
            width: 100%;
            height: 500px;
        }

        .ad-block {
            width: 100%;
            height: 250px;
        }
    }