/*
Theme Name: Init Manga
Theme URI: https://inithtml.com/theme/init-manga/
Author: Init HTML
Author URI: https://inithtml.com/
Description: An AI-powered manga theme delivering smart analytics, personalized reading recommendations, and vibrant community tools. Optimized for speed, scalability, and seamless integration with the Init Plugin Suite.
Version: 2.7.3.3
Requires at least: 6.3
Tested up to: 7.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: init-manga
Tags: manga, comic, webtoon, light novel, clean, fast, modern, recommendations, analytics
*/

/*==============================
=         Theme Colors         =
==============================*/

:root {
    --im-gradient: linear-gradient(to right, var(--im-theme-color), var(--im-gradient-color));
    --im-red: rgba(255, 0, 0, 0.85);
    --im-defaut-font-family: system-ui,sans-serif;
}

::selection {
    background: var(--im-theme-color);
}

.is-pinned,
.theme-color {
    color: var(--im-theme-color) !important;
}

.uk-link,
a {
    color: var(--im-theme-color);
}

.uk-link-toggle:hover .uk-link,
.uk-link:hover,
a:hover,
.uk-link-heading a:hover,
.uk-link-toggle:hover .uk-link-heading,
a.uk-link-heading:hover {
    color: var(--im-theme-color);
}

#iep-modal.iep-dark input[type="checkbox"]:checked:focus,
#iep-modal input[type="checkbox"]:checked:focus {
    background-color: var(--im-theme-color);
}

.uk-button-primary,
#iep-modal.iep-dark input[type="checkbox"]:checked,
#iep-modal input[type="checkbox"]:checked {
    background-color: var(--im-theme-color);
}

.uk-button-primary.uk-active,
.uk-button-primary:active,
.uk-button-primary:hover {
    background-color: var(--im-theme-hover);
}

#iep-modal input[type="checkbox"]:focus,
.uk-button-special {
    border-color: var(--im-theme-color) !important;
}

em {
    color: currentColor;
}

.no-color,
.not-achieved {
    filter: grayscale(100%);
}

.uk-progress::-webkit-progress-value {
    background: var(--im-gradient);
}

.uk-progress::-moz-progress-bar {
    background: var(--im-gradient);
}

/*==============================
=       Announcement Bar       =
==============================*/

#announcement-bar {
    background: var(--im-gradient);
}

#announcement-bar .uk-alert {
    color: #fff;
    background: transparent;
}

#announcement-bar .uk-alert .uk-alert-close {
    color: #fff;
    opacity: 1;
    right: 0;
}

#announcement-bar .uk-alert .uk-alert-close:hover {
    color: rgba(255,255,255,.7);
}

.rewind-menu {
    position: relative !important;
    background: linear-gradient(45deg, var(--im-theme-color), var(--im-gradient-color)) !important;
    color: #fff !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.rewind-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    ) !important;
    transition: left 0.6s ease !important;
    z-index: 1 !important;
}

.rewind-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, var(--im-gradient-color), var(--im-theme-color)) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    z-index: 0 !important;
}

.rewind-menu:hover::before {
    left: 100% !important;
}

.rewind-menu:hover::after {
    opacity: 1 !important;
}

/* Text và icon luôn trên top */
.rewind-menu * {
    position: relative !important;
    z-index: 2 !important;
}

/* Subtle pulse effect */
.rewind-menu:hover {
    animation: rewind-pulse 2s ease-in-out infinite !important;
}

@keyframes rewind-pulse {
    0%, 100% { 
        filter: brightness(1);
    }
    50% { 
        filter: brightness(1.1);
    }
}

li.multi-menu a.uk-accordion-title,
.iue-dashboard.dark li.multi-menu a.uk-accordion-title {
    display: block !important;
    font-size: 14px;
    padding: 10px 12px;
    background: none;
}

li.multi-menu a.uk-accordion-title:hover {
    background: rgb(0 0 0 / .05);
}

.iue-dashboard.dark li.multi-menu a.uk-accordion-title:hover {
    background: rgb(255 255 255 / .05);
}

li.multi-menu a.uk-accordion-title:focus,
.iue-dashboard.dark li.multi-menu a.uk-accordion-title:focus {
    background: none;
}

li.multi-menu .iue-icon {
    margin-right: 0;
}

.iue-dashboard-accordion.uk-accordion>:nth-child(n+2) {
    margin-top: 6px;
}

.iue-dashboard-menu a.active span.uk-icon,
.iue-dashboard-menu .multi-wrap a.active span.uk-icon {
    color: var(--im-theme-color);
}

.iue-inbox-controls,
.iue-inbox-tabs {
    flex-wrap: nowrap !important;
    overflow: auto;
}

.iue-checkin-button {
    font-size: 12px;
    text-transform: uppercase;
    height: 27px;
    line-height: 1;
}

.iue-login-form input[type="text"],
.iue-login-form input[type="password"],
.iue-register-form input[type="text"],
.iue-register-form input[type="number"],
.iue-register-form input[type="email"],
.iue-register-form input[type="password"] {
    font-family: var(--im-defaut-font-family);
    font-size: 1rem;
}

.ils-suggestions .ils-suggest-pill,
.iue-login-form input[type="submit"],
.iue-login-form .login-submit input[type="submit"],
.iue-register-form button.iue-submit,
.iue-checkin-button,
.iue-inbox-tabs button,
.iue-inbox-controls button,
#iue-modal,
.iue-dashboard,
#iue-modal .iue-page-btn {
    font-family: var(--im-defaut-font-family);
}

.iue-checkin-box {
    height: 45px;
    padding: 0 14px;
}

body.admin-bar .uk-modal-dialog .uk-position-small.uk-position-top-left {
    top: 30px;
}

.uk-navbar-nav > li.uk-navbar-item-first {
    min-width: 0;
    flex-shrink: 1;
}

@media (max-width: 369px) {
    .uk-navbar-nav > li.uk-navbar-item-first > a {
        max-width: 75px;
    }

    .uk-navbar-left.has-bell .uk-navbar-nav > li.uk-navbar-item-first > a {
        max-width: 50px;
    }
}

@media (min-width: 371px) and (max-width: 389px) {
    .uk-navbar-nav > li.uk-navbar-item-first > a {
        max-width: 85px;
    }

    .uk-navbar-left.has-bell .uk-navbar-nav > li.uk-navbar-item-first > a {
        max-width: 70px;
    }
}

@media (min-width: 390px) and (max-width: 767px) {
    .uk-navbar-left.has-bell .uk-navbar-nav > li.uk-navbar-item-first > a {
        max-width: clamp(80px, 20vw, 140px);
    }
}

/*==============================
=             Slider           =
==============================*/

.uk-slider-items.uk-grid-small {
    margin-left: -15px !important;
}

.slider-card-thumb {
    width: 100%;
    height: 315px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

.black-cover {
    width: 75%;
    height: 100%;
    left: -10%;
    top: 0;
    background: rgba(0, 0, 0, 0.8);
    transform: skew(15deg);
}

/*==============================
=         Layout / Grid        =
==============================*/

.uk-container-xmedium {
    max-width: 1110px;
}

.uk-width-3xlarge {
    width: 900px;
}

.uk-padding-xsmall-horizontal {
    padding-inline: 15px;
}

.uk-padding-small-horizontal {
    padding-inline: 20px;
}

.uk-padding-xsmall-vertical {
    padding-block: 15px;
}

.uk-padding-small-bottom {
    padding-bottom: 15px;
}

.uk-slider-items.uk-grid-small {
    margin-left: -15px !important;
}

@media (max-width: 640px) {
    .max-width-4-5 {
        width: 80% !important;
    }

    .image-based.uk-padding-xsmall-horizontal-mobile {
        padding-inline: 15px;
    }
}

.sticker-viewbox img {
    max-width: 120px;
    height: auto;
    margin-right: 15px;
}

.iue-avatar-frame-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.iue-avatar-frame {
    position: absolute;
    max-width: none !important;
    max-height: none !important;
    width: 130%;
    height: 130%;
    pointer-events: none;
    z-index: 1;
}

.uk-comment .iue-avatar-frame {
    left: calc(50% + 8px);
    width: 80px;
    height: 80px;
}

.init-review-item .iue-avatar-frame {
    left: 50%;
}

.init-user-engine-avatar.is-logged-in img.iue-avatar-frame {
    width: 55px !important;
    height: 55px !important;
    pointer-events: none;
    z-index: 1;
    border-radius: 0;
}

.role-icon,
.iue-unread-dot {
    z-index: 2;
}

@media (max-width: 640px) {
    .grid-cards .uk-card .uk-card-title {
        font-size: 1.2rem;
    }
}

/* ── Desktop Fullwidth: 2 cột ── */

@media (min-width: 1200px) {
    .imc-fw-wrap {
        display: flex;
        align-items: flex-start;
        gap: 24px;
    }
    .imc-fw-main {
        flex: 1;
        min-width: 0;
    }
    .imc-fw-comments {
        width: 360px;
        flex-shrink: 0;
        position: sticky !important;
        top: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    .imc-fw-comments-inner {
        flex: 1;
        min-height: 0;
        overflow-y: auto !important;
        scrollbar-width: none;
    }
    .imc-fw-comments-inner::-webkit-scrollbar {
        display: none;
    }
    .imc-fw-comments .uk-card-default {
        box-shadow: none;
    }
}

/*==============================
=       Continue Reading       =
==============================*/

#continue-reading-wrapper {
    z-index: 999;
    padding-inline: 15px;
    margin-bottom: 15px;
}

.continue-reading {
    width: 900px;
    max-width: calc(100% - 30px);
    margin-block: 0;
}

.uk-alert-dark {
    background-color: rgba(35, 35, 35, 0.8) !important;
}

.continue-reading-title {
    max-width: calc(100% - 160px);
}

/*==============================
=         Aspect Ratio         =
==============================*/

.image-16-9 {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.image-3-1 {
    aspect-ratio: 3 / 1;
    object-fit: cover;
}

.image-1-1 {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.image-3-4 {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.image-2-3 {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.image-4-3 {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.image-max-height-120 {
    width: 100%;
    height: 120px;
    max-height: 120px;
    object-fit: cover;
}

.video-16-9 {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    display: block;
}

.avatar.uk-border-circle {
    border-radius: 50% !important;
}

#chapter-content .im-friend-reader img {
    width: 24px !important;
    display: inline-block !important;
}

#ils-modal .ils-content,
.uk-border-modal {
    border-radius: 10px;
}

.uk-border-chat {
    border-radius: 18px;
}

.uk-border-chat-left {
    border-radius: 4px 18px 18px 18px;
}

.uk-border-chat-right {
    border-radius: 18px 18px 4px 18px;
}

.uk-dropdown {
    border-radius: 5px;
}

.uk-dropdown.uk-border-modal {
    border-radius: 10px;
}

/*==============================
=           Logo               =
==============================*/

h1.site-title,
div.site-title {
    text-indent: -9999px;
    overflow: hidden;
    white-space: normal;
}

h1.site-title .visually-hidden,
div.site-title .visually-hidden {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.uk-logo img {
    height: 45px;
    max-height: 45px;
    width: auto;
}

.uk-logo img.init-manga {
    background: red;
    border-radius: 50%;
}

/*==============================
=         Dark Mode UI         =
==============================*/

.uk-light .uk-navbar-dropdown-nav .uk-nav-header {
    color: rgba(255,255,255,.9);
}

.uk-light .uk-card-default .uk-card-title,
.uk-light .uk-navbar-dropdown-nav > li.uk-active > a {
    color: #fff;
}

.uk-light .uk-alert,
.uk-light .uk-section-default,
.uk-light .uk-navbar-dropdown,
.uk-light .uk-section-muted,
.uk-light .uk-comment-primary,
.uk-light .uk-card-default,
.uk-light .uk-navbar-container:not(.uk-navbar-transparent),
.uk-light .uk-background-muted,
.uk-light .uk-card-secondary,
.uk-light .uk-card-secondary.uk-card-hover:hover,
.uk-light .uk-modal-dialog,
.uk-light .uk-modal-header,
.uk-light .uk-modal-footer,
.uk-light .uk-dropdown {
    background-color: #272727;
}

.uk-light .uk-modal-dialog .uk-card-default,
.uk-light .uk-modal-dialog .uk-card-secondary {
    background-color: #222;
}

.uk-light .uep-category-title,
.uk-light .uk-dropdown-nav>li.uk-active>a,
.uk-light .uk-dropdown-nav>li>a:hover,
.uk-light .uk-alert,
.uk-light .uk-card-default,
.uk-light .uk-description-list>dt {
    color: rgba(255,255,255,.7);
}

.uk-light .uk-dropdown-nav .uk-nav-header {
    color: rgba(255,255,255,.5);
}

.uk-light .uk-dropdown-nav .uk-nav-divider,
.uk-light pre {
    border-color: rgba(255,255,255,.2);
}

.uep-picker .uk-background-default {
    background-color: #f8f8f8;
}

.uk-light .uk-alert-warning,
.uk-light .uk-background-default,
.uk-light .paragraph-comment-list .uk-comment-primary {
    background-color: #222;
}

.uk-light .uk-progress,
.uk-light #chapter-search-input {
    background: #272727 !important;
}

.uk-progress-small {
    height: 9px;
}

/*==============================
=        Mode Switcher         =
==============================*/

.mode-checkbox {
    opacity: 0;
    position: absolute;
    z-index: 999;
    cursor: pointer;
}

.mode-checkbox-label {
    width: 44px;
    height: 26px;
    border-radius: 50px;
    padding: 0 5px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
}

.mode-checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
    z-index: 0;
}

.mode-checkbox:checked + .mode-checkbox-label .ball {
    transform: translateX(28px);
}

.curr-dark {
    background: linear-gradient(to right, #2c3e50, #2980b9);
}

.curr-dark:before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    top: 2px;
    left: 15px;
    background: url('data:image/svg+xml,<svg viewBox="0 0 24 24" fill="%23fff" xmlns="http://www.w3.org/2000/svg"><path d="M7.45 2.71a1.13 1.13 0 0 1 2.1 0l1.16 2.95q.18.45.63.63l2.95 1.16c.95.38.95 1.72 0 2.1l-2.95 1.16q-.45.18-.63.63L9.55 14.3c-.38.95-1.72.95-2.1 0L6.3 11.34a1.1 1.1 0 0 0-.63-.63L2.7 9.55a1.13 1.13 0 0 1 0-2.1L5.66 6.3q.45-.18.63-.63zm9.47 10.69a.62.62 0 0 1 1.16 0l.9 2.28q.1.24.34.34l2.29.9c.52.21.52.95 0 1.16l-2.29.9a.6.6 0 0 0-.34.34l-.9 2.29a.62.62 0 0 1-1.16 0l-.9-2.29a.6.6 0 0 0-.34-.34l-2.29-.9a.62.62 0 0 1 0-1.16l2.29-.9a.6.6 0 0 0 .34-.34z" /></svg>');
    animation: fade-stars 3s ease infinite;
    pointer-events: none;
    z-index: 0;
}

.curr-light {
    background: linear-gradient(to left, #0052d4, #65c7f7, #9cecfb);
}

.curr-light:after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    top: 8px;
    left: -32px;
    background: url('data:image/svg+xml,<svg viewBox="0 -4 32 32" fill="%23fff" xmlns="http://www.w3.org/2000/svg"><path d="M23.07 5.03A9 9 0 0 0 6.03 8.35 8.1 8.1 0 0 0 0 16c0 4.26 3.54 7.75 8 8h15c4.97 0 9-4.25 9-9.5a9.5 9.5 0 0 0-8.93-9.47" fill-rule="evenodd"/></svg>');
    animation: chillin-cloud 10s ease-in infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes fade-stars {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes chillin-cloud {
    0%   { left: -32px; }
    100% { left: 54px; }
}

.light-mode-icon {
    color: #f3c612;
}

.dark-mode-icon {
    color: #f1c40f;
}

/*=============================================
=    MẪU 2: THIN TRACK (Đường ray siêu mỏng)  =
=============================================*/
.mode-checkbox-thin { opacity: 0; position: absolute; z-index: 99; cursor: pointer; width: 40px; height: 24px; }
.mode-label-thin {
    width: 40px; height: 14px;
    background-color: #cbd5e1;
    border-radius: 14px;
    position: relative; cursor: pointer; display: flex; align-items: center;
    transition: background-color 0.3s;
}
.mode-label-thin .ball-thin {
    width: 24px; height: 24px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute; left: -2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s;
    display: flex; align-items: center; justify-content: center;
}
/* Trạng thái Dark (khi checked) */
.mode-checkbox-thin:checked + .mode-label-thin { background-color: #475569; }
.mode-checkbox-thin:checked + .mode-label-thin .ball-thin {
    transform: translateX(20px);
    background-color: #1e293b;
}
/* Đổi icon bên trong cục ball */
.ball-thin svg { width: 14px; height: 14px; position: absolute; transition: 0.3s; }
.ball-thin .icon-sun { opacity: 1; transform: rotate(0); color: #f59e0b; }
.ball-thin .icon-moon { opacity: 0; transform: rotate(-90deg); color: #facc15; }

.mode-checkbox-thin:checked + .mode-label-thin .ball-thin .icon-sun { opacity: 0; transform: rotate(90deg); }
.mode-checkbox-thin:checked + .mode-label-thin .ball-thin .icon-moon { opacity: 1; transform: rotate(0); }

/*=============================================
=   MẪU 3: ROTATE MORPH (Chỉ Icon, Không Ray) =
=============================================*/
.mode-checkbox-morph { opacity: 0; position: absolute; z-index: 99; cursor: pointer; width: 36px; height: 36px; }
.mode-label-morph {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    transition: background 0.4s;
}
.mode-checkbox-morph:checked + .mode-label-morph { background: #1e293b; }
.mode-label-morph svg {
    position: absolute; width: 20px; height: 20px;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s;
}
.mode-label-morph .icon-sun { color: #f59e0b; opacity: 1; transform: translateY(0) rotate(0); }
.mode-label-morph .icon-moon { color: #fbbf24; opacity: 0; transform: translateY(30px) rotate(90deg); }

.mode-checkbox-morph:checked + .mode-label-morph .icon-sun {
    opacity: 0; transform: translateY(-30px) rotate(-90deg);
}
.mode-checkbox-morph:checked + .mode-label-morph .icon-moon {
    opacity: 1; transform: translateY(0) rotate(0);
}

/*=============================================
=    MẪU 4: RECTANGLE (Vuông vức, công nghệ)  =
=============================================*/
.mode-checkbox-rect { opacity: 0; position: absolute; z-index: 99; cursor: pointer; width: 54px; height: 28px; }
.mode-label-rect {
    width: 56px; height: 28px;
    background: #e2e8f0;
    border-radius: 6px; /* Bo góc nhẹ */
    position: relative; cursor: pointer; display: flex; align-items: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.mode-label-rect .slider-rect {
    width: 22px; height: 22px;
    background: #fff;
    border-radius: 4px; /* Cục trượt cũng hình vuông */
    position: absolute; left: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mode-checkbox-rect:checked + .mode-label-rect {
    background: #334155;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}
.mode-checkbox-rect:checked + .mode-label-rect .slider-rect {
    transform: translateX(28px);
    background: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.rect-icon-left, .rect-icon-right {
    width: 50%; text-align: center; z-index: 0; display: flex; justify-content: center;
}
.rect-icon-left svg { width: 14px; height: 14px; color: #94a3b8; }
.rect-icon-right svg { width: 14px; height: 14px; color: #94a3b8; }
/* Sáng lên khi ở đúng mode */
.mode-label-rect .rect-icon-left svg { color: #f59e0b; transition: 0.3s; }
.mode-checkbox-rect:checked + .mode-label-rect .rect-icon-left svg { color: #475569; }
.mode-checkbox-rect:checked + .mode-label-rect .rect-icon-right svg { color: #38bdf8; transition: 0.3s; }

/*==============================
=        Scroll / Utility      =
==============================*/

.iue-inbox-controls::-webkit-scrollbar,
.iue-inbox-tabs::-webkit-scrollbar,
.disable-scrollbar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.uk-blur-cover {
    filter: blur(6px);
}

.uk-blur-background {
    filter: blur(50px);
}

.remove-blur-cover,
.init-spoiler-toggle {
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 7px;
    z-index: 5;
    line-height: 1;
}

.remove-blur-cover:hover,
.init-spoiler-toggle:hover {
    background: rgba(0, 0, 0, 0.8);
}

.manga-item-ranking .remove-blur-cover {
    max-width: 34px;
    max-height: 34px;
}

.black-bottom {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.cover-background {
    background: var(--im-theme-color);
}

.cover-bottom {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background: linear-gradient(transparent 0%, rgba(255,255,255,0.05) 15%, rgba(255,255,255,0.9) 80%, #fff 100%);
    pointer-events: none;
}

.uk-light .cover-bottom {
    background: linear-gradient(transparent 0%, rgba(34,34,34,0.05) 15%, rgba(34,34,34,0.9) 80%, #222 100%);
}

.uk-no-pointer-events {
    pointer-events: none;
}

.go-to-top {
    padding: 9px !important;
    line-height: 15px;
    margin-right: 15px;
    margin-bottom: 15px;
    z-index: 999;
}

.uk-cursor-pointer {
    cursor: pointer;
}

/*==============================
=             Playlist         =
==============================*/

.uk-dropdown .playlist-item {
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 8px;
}

.uk-dropdown .playlist-item:hover {
    transform: translateX(4px);
}

.playlist-add-icon {
    transition: all 0.2s ease;
    opacity: 0.7;
}

.uk-button-group .uk-button:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.uk-button-group .uk-button:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#read-dropdown-btn,
#playlist-dropdown-btn,
#vote-dropdown-btn {
    padding-inline: 8px;
}

.follow-expand .expand-width-1-1 {
    width: 100%;
}

.follow-expand #follow-btn {
    width: calc(100% - 38px);
}

/*==============================
=             Badge            =
==============================*/

.badge-group {
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.badge-new,
.badge-age {
    background: var(--im-red);
    color: #fff;
    padding: 3px;
    border-radius: 4px;
    line-height: 1;
}

.badge-age .uk-text-small {
    line-height: 1;
}

.badge-age.badge-novel,
.badge-age.badge-completed {
    background: var(--im-theme-color);
}

.badge-new {
    padding: 1px 4px;
    text-transform: uppercase;
    background: var(--im-gradient);
}

.badge-views {
    background: rgba(34,34,34,.9);
    vertical-align: bottom;
}

.uk-notification-dot {
    position: absolute;
    top: 0;
    right: -8px;
    width: 6px;
    height: 6px;
    background: var(--im-theme-color);
    border-radius: 50%;
}

#top-manga-tabs .uk-notification-dot {
    top: 5px;
    right: 2px;
}

.js-badge-grid img {
    max-width: 125px;
}

.badge-slider img {
    max-width: 100px;
}

@media (max-width: 640px) {
    .js-badge-grid img {
        max-width: 115px;
    }

    .badge-slider img {
        max-width: 90px;
    }

    .single-loot-image img,
    .single-badge-image img {
        max-width: 120px;
    }
}

/*==============================
=        Typography            =
==============================*/

.uk-text-initcase {
    text-transform: initial;
    text-transform: none;
    font-size: 1em;
}

.uk-emoji-xlarge {
    font-size: 1.8rem;
    line-height: 1;
}

@media (max-width: 640px) {
    .uk-emoji-xlarge {
        font-size: 1.6rem;
        line-height: 1;
    }
}

.text-based {
    font-family: Lora, serif;
    font-size: 22px;
    line-height: 2.5;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.image-based img {
    display: block;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
    pointer-events: none !important;
}

.image-based.webtoon-support img {
    margin-bottom: 0;
}

#chapter-content.image-based img {
    transition: opacity 0.3s ease, filter 0.3s ease;
}

#chapter-content.image-based img[data-loading="true"] {
    opacity: 0.7;
    filter: blur(1px);
}

#chapter-content.image-based img[data-loaded="true"] {
    opacity: 1;
    filter: none;
}

@media (min-width: 640px) and (max-width: 900px) {
    .chapter-body.uk-width-3xlarge .creators-thoughts-block {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 640px) {
    .chapter-body.uk-width-3xlarge .creators-thoughts-block {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.lock-countdown {
    font-size: 2.5rem;
    line-height: 1;
}

/* Sticky Reader Navbar */
.imc-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: transform 220ms ease, opacity 200ms ease;
    will-change: transform, opacity;
}

.imc-sticky.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .imc-sticky {
        transition: none;
    }
}

/* Khi bật Tap-to-Step Scroll */
#chapter-content.image-based.imc-step-scroll {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='38' viewport='0 0 32 32' style='fill:black;font-size:24px;'><text y='50%'>🡻</text></svg>") 16 0, pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none; /* optional: chặn callout giữ lâu */
}

.max-1-line,
.max-2-line,
.max-3-line {
    /* Fallback cho browsers cũ */
    max-height: 4.5em; /* Adjust theo line-height thực tế */
    overflow: hidden;
    
    /* Modern browsers */
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.max-1-line {
    max-height: 1.5em; /* 1.5em * 1 lines */
}

@supports (-webkit-line-clamp: 1) {
    .max-1-line {
        -webkit-line-clamp: 1;
        max-height: none;
    }
}

.max-2-line {
    max-height: 3em; /* 1.5em * 2 lines */
}

@supports (-webkit-line-clamp: 2) {
    .max-2-line {
        -webkit-line-clamp: 2;
        max-height: none;
    }
}

.max-3-line {
    max-height: 4.5em; /* 1.5em * 3 lines */
}

@supports (-webkit-line-clamp: 3) {
    .max-3-line {
        -webkit-line-clamp: 3;
        max-height: none;
    }
}

.uk-text-xsmall {
    font-size: 9px;
}

.lock-card {
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: 16px;
    line-height: 1.5;
}

/*==============================
=          Content             =
==============================*/

.uk-text-lead {
    font-size: 1.3rem;
}

.uk-article-content h1,
.uk-article-content h2,
.uk-article-content h3,
.uk-article-content h4,
.uk-article-content h5,
.uk-article-content h6 {
    font-weight: 700;
    margin-top: 0;
}

.uk-article-content h1 code,
.uk-article-content h2 code,
.uk-article-content h3 code,
.uk-article-content h4 code,
.uk-article-content h5 code,
.uk-article-content h6 code,
.uk-text-lead code {
    font-size: unset;
}

.uk-article-content img {
    border-radius: 5px;
}

.uk-article-content .aligncenter {
    display: block;
    margin-inline: auto;
}

.wp-caption-text {
    margin-top: 15px;
}

#init-review-modal.dark span.star,
.chapter-item a.chapter-visited .uk-link-heading,
.chapter-item a.uk-link-toggle:visited .uk-link-heading {
    color: #999;
}

#chapter-content span.mce-object-iframe {
    position: relative !important;
}

#chapter-content iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    height: auto;
}

#chapter-dropdown {
    height: 350px;
    max-height: 350px;
    min-width: 250px;
    overflow-y: scroll;
}

.hide-sigma-mode,
.shadow-jutsu-72,
.invis-blur-zeta,
.sneaky-pixel-99,
.ghostline-alpha,
.dust-fade-beta,
.mute-glitch-x1,
.oblivion-core,
.nullpacket-v2,
.fog-crawler-ghost,
.cloak-phase-7,
.hush-slice-xeon,
.faintframe-burst,
.junklayer-mk9,
.scramble-hint-42,
.fakeblock-delta,
.broken-span-zz,
.anti-scan-mode,
.blurline-nova,
.idle-hollow-patch,
.mask-byte-phantom,
.void-fragment-22,
.cache-bugwave,
.invisible-zlayer,
.node-flicker-01,
.ghost-protocol-88,
.stealth-marker-x,
.blindspot-core,
.zombie-line-34,
.packet-slip-fake,
.nullbit-glow,
.scanjam-mercy,
.hidden-ray-vortex,
.fake-relic-loop,
.shadowmap-glitch,
.flicker-segment-x,
.blind-ping-unit,
.freeze-crumb-r7,
.offset-trap-rng,
.static-husk-beta,
.mimic-dust-004,
.silentcode-burst,
.foobar-random-17,
.void-junkmark,
.clonepixel-ghost,
.hidden-seal-mk2,
.renderdrop-shadow,
.patchy-rift-11,
.shadowfrag-loop,
.camo-frame-spam,
.illusion-byte-ex,
.mutebuffer-beta,
.overlay-fake32,
.dummy-glitchline,
.hollowstream-fog,
.inertbox-alpha,
.unseenwave-x4,
.spamlayer-null,
.blip-trap-husk,
.fakeshadow-exe {
    display: none !important;
}

.recent-post-thumbnail img {
    width: 85px;
    height: 85px;
    object-fit: cover;
}

#chapter-content .init-manga-chapter-ad img {
    width: auto !important;
}

#chapter-content.image-based .init-manga-chapter-ad img {
    margin-inline: auto;
}

/*==============================
=        Title Styles          =
==============================*/

/* Underline Style */
.init-title-underline {
    position: relative;
    display: inline-block;
}

.init-title-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--im-theme-color), var(--im-gradient-color));
}

/* Modern Style - Thiết kế card tương tự tooltip */
.init-title-modern {
    position: relative;
    padding: 8px 15px;
    background: linear-gradient(135deg, var(--im-theme-color), var(--im-theme-hover));
    border-radius: 8px;
    color: white !important;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.init-title-modern::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--im-theme-color);
}

.init-title-modern a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Elegant Style - Thực sự sang trọng */
.init-title-elegant {
    position: relative;
    padding: 8px 0 0 20px;
    display: inline-block;
    font-family: "Crimson Text", "Libre Baskerville", "Georgia", "Times New Roman", serif;
    font-style: italic;
    letter-spacing: 1px;
    color: var(--im-theme-color) !important;
}

.init-title-elegant::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 40px;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--im-theme-color);
    opacity: 0.7;
}

.init-title-elegant::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--im-theme-color);
    opacity: 0.6;
    font-size: 12px;
}

/* Dark mode support */
.uk-light .init-title-elegant {
    color: white !important;
}

.uk-light .init-title-elegant::after,
.uk-light .init-title-elegant::before {
    color: var(--im-theme-color);
}

.init-title-elegant a:hover {
    text-decoration: underline;
}

/* Retro Style - Vintage badge */
.init-title-retro {
    position: relative;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--im-theme-color), var(--im-gradient-color));
    color: white !important;
    border-radius: 20px;
    display: inline-block;
    font-family: "Courier New", monospace;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.3);
    border: 2px solid rgba(255,255,255,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.init-title-retro::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.2);
    z-index: -1;
}

.init-title-retro a:hover {
    color: #fff;
    text-decoration: underline;
}

/*==============================
=       Comment System         =
==============================*/

.uk-comment-list>:nth-child(n+2),
.uk-comment-list .uk-comment~ul,
.uk-comment-list .uk-comment~ul>:nth-child(n+2) {
    margin-top: 30px;
}

@media (min-width: 960px) {
    .uk-comment-list .uk-comment~ul {
        padding-left: 30px;
    }
}

@media (max-width: 480px) {
    .uk-comment-list .uk-comment~ul {
        padding-left: 15px;
    }
}

#cancel-comment-reply-link {
    margin-left: 5px;
}

.uk-pagination .uk-active a,
.uk-pagination .uk-active span {
    border-bottom: 1px solid var(--im-theme-color);
}

.uk-pagination .uk-notification-dot {
    top: 1px;
    right: 1px;
}

.inline-comment-block {
    top: -30px;
    padding: 5px 15px;
    background-color: #272727;
}

.inline-comment-block.text-default {
    font-family: system-ui !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.init-review-modal-line,
#chapter-content.text-based p {
    position: relative;
}

h2.author-name .iue-badge-level,
.user-item-info .iue-badge-level,
.uk-list .iue-badge-level,
.uk-comment-list .iue-badge-level {
    vertical-align: middle;
}

.user-item-info .iue-badge-level,
.uk-list .iue-badge-level {
    gap: 2px;
    padding: 1px 4px;
    line-height: 1.2;
}

.uk-comment-header .role-icon {
    top: -5px;
    left: 10px;
    z-index: 2;
}

.init-review-avatar .role-icon {
    width: 22px;
    height: 22px;
    top: -5px;
    left: -5px;
    border-radius: 0;
}

.uk-comment.is-banned,
#commentform.is-banned {
    opacity: 0.5;
}

.init-comment-content p:last-child {
    margin-bottom: 0;
}

/* wrapper phải relative */
.has-cover-bg {
    position: relative;
}

/* background layer */
.init-comment-cover-bg,
.init-review-cover-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

/* blur + dark overlay */
.init-comment-cover-overlay,
.init-review-cover-overlay {
    inset: 0;
    /* backdrop-filter: blur(14px); */
    background: rgba(0, 0, 0, 0.65);
}

/* đảm bảo content nổi lên */
.has-cover-bg > * {
    position: relative;
    z-index: 1;
}
.has-cover-bg .uk-position-cover {
    position: absolute;
}

.uk-light .init-review-text,
.uk-light .init-review-criteria-breakdown {
    color: #ddd;
}

#init-review-modal {
    z-index: 999;
}

/*==============================
=       Effects / Hover        =
==============================*/

.scale-up-hover img {
    width: 100%;
    transition: all 0.3s ease;
}

.scale-up-hover:hover img,
.scale-up-hover:focus img {
    transform: scale(1.02);
}

.uk-box-shadow-remove {
    box-shadow: none;
}

.hot-genre-thumbnav .uk-thumbnav .scale-up-hover img {
    max-width: 60px;
    height: auto;
}

/*==============================
=       Sizes / Heights        =
==============================*/

.uk-breadcrumb {
    line-height: 20px;
}

.find-series-section span.uk-icon.theme-color {
    min-width: 30px;
}

.single-thumb {
    max-width: 215px;
}

.max-width-75 {
    width: 75px;
    max-width: 75px;
}

.max-width-90 {
    width: 90px;
    max-width: 90px;
}

.max-width-120 {
    max-width: 120px;
}

.max-width-1-4 {
    max-width: 25%;
}

.max-height-40 {
    max-height: 40px;
}

.top-monthly-readers-max-height {
    max-height: 300px;
}

.icon-24 {
    width: 24px;
    height: 24px;
}

#tab-explore {
    min-height: 400px;
}

#tab-explore:empty::before {
    content: "";
    display: block;
    height: 400px;
}

.min-height-40 {
    min-height: 40px;
}

.min-height-45 {
    min-height: 45px;
}

.min-height-80 {
    min-height: 80px;
}

.playlist-max-height {
    max-height: 280px;
}

.taxonomy-max-height {
    max-height: 450px;
}

.sidebar-widget-max-height,
.top-manga-max-height,
.recent-comment-max-height {
    max-height: 650px;
}

#recent-reviews-page .recent-comment-max-height,
#recent-comments-page .recent-comment-max-height,
#author-switcher .recent-comment-max-height {
    max-height: none !important;
    overflow: visible;
}

.latest-post-thumb {
    width: 115px;
    height: 115px;
    object-fit: cover;
}

.color-fff {
    color: #fff !important;
}

.uk-label-contest {
    background-color: var(--im-theme-color) !important;
    color: #fff !important;
    transition: opacity 0.2s ease;
    line-height: 22px;
}

a.uk-label-contest:hover {
    opacity: 0.85;
    text-decoration: none;
}

.uk-label-contest .uk-icon {
    width: 20px;
}

.uk-label-theme {
    background-color: var(--im-theme-color) !important;
    color: #fff !important;
}

.uk-label-gradient {
    background: var(--im-gradient) !important;
    color: #fff !important;
}

.uk-border-right {
    border-right: 1px solid #e5e5e5;
}

.uk-light .uk-border-right {
    border-color: rgba(255,255,255,.2);
}

.uk-padding-xsmall {
    padding: 5px;
}

.uk-padding-10 {
    padding: 10px;
}

.footer-disclaimer {
    border-radius: 18px;
    padding: 30px 30px;
}

.uk-height-cover {
    height: 260px;
}

.uk-height-cover-small {
    height: 200px;
}

@media (max-width: 640px) {
    .uk-height-cover {
        height: 210px;
    }

    .uk-height-cover-small {
        height: 180px;
    }
}

.uk-margin-15-left {
    margin-left: 15px;
}

.uk-button-xsmall {
    padding: 0 10px;
    line-height: 20px;
    font-size: .875rem;
}

/*==============================
=        Signup Notice         =
==============================*/

.signup-notice-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.signup-notice-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.signup-notice-mascot {
    height: 70px;
    max-height: 70px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .signup-notice-wrapper {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }
    
    .signup-notice-content {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    
    .signup-notice-mascot {
        height: 100px;
        max-height: 100px;
    }
}

/*==============================
=         Responsive           =
==============================*/

@media (max-width: 640px) {
    .slider-title {
        font-size: 1.4rem;
    }

    .latest-post-thumb {
        width: 95px;
        height: 95px;
    }

    .uk-border-right {
        border-right: none;
    }

    .smaller-mobile {
        width: 80% !important;
    }

    .slider-desc {
        font-size: small;
    }

    .slider-view .uk-button {
        padding: 0 20px;
        line-height: 28px;
    }
}

@media (min-width: 400px) {
    .iue-dashboard {
        width: 330px;
    }
}

@media (max-width: 375px) {
    .iue-dashboard {
        width: 315px;
    }
}

/*==============================
=           Inkstone           =
==============================*/

#inkstone-switcher-tabs .uk-active .uk-button-text:before,
#manga-switcher-tabs .uk-active .uk-button-text:before,
#author-switcher-tabs .uk-active .uk-button-text:before {
    right: 0;
}

.pell-content:focus {
    outline: none;
}

.uk-modal-container .uk-modal-dialog.inkstone-preview {
    width: 950px;
    max-height: 90vh;
}

@media (max-width: 640px) {
    .uk-modal-container .uk-modal-dialog.inkstone-preview {
        max-height: 95vh;
    }
}

/*==============================
=    Chapter Skeleton Loader   =
==============================*/

.imc-skeleton-line {
    height: 1.5em;
    margin-bottom: 20px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.imc-skeleton-line.short {
    width: 40%;
}

.imc-skeleton-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: imc-skeleton-shimmer 1.5s infinite;
}

.uk-light .imc-skeleton-line::after {
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.09),
        transparent
    );
}

@keyframes imc-skeleton-shimmer {
    100% {
        left: 100%;
    }
}

/*==============================
=         Custom CSS           =
==============================*/

.uk-text-500 {
    font-weight: 500;
}

.uk-overflow-x-auto {
    overflow-y: auto;
    overflow-y: hidden;
}

.uk-modal.uk-open {
    backdrop-filter: blur(4px);
}

.init-review-modal-form button[type="submit"],
#iep-modal button[type="button"]:not(.iep-modal-close) {
    font: inherit;
    font-size: 14px;
    border-radius: 500px;
}

.iep-embed-ui {
    height: auto;
}

.iep-embed-ui .iep-copy-btn::after,
.iep-embed-ui .iep-copy-btn:hover::after {
    display: none !important;
}

#rewind-canvas {
    max-width: 100%;
    height: auto;
    border-radius: 12px
}

#rewind-canvas-wrap .uk-dropdown {
    z-index: 1200;
}

.uk-gap-xsmall {
    gap: 5px;
}

.uk-gap-small {
    gap: 10px;
}

.uk-gap {
    gap: 15px;
}

.team-avatar {
    width: 100px;
    height: 100px;
    border: 3px solid #fff;
}

@media (max-width: 640px) {
    .team-avatar {
        width: 80px;
        height: 80px;
    }
}

.team-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#follow-author.uk-button-default,
#follow-team.uk-button-default {
    color: #eb1551;
    background-color: #ffc2d2;
    border: none;
}

#follow-author.uk-button-primary,
#follow-team.uk-button-primary {
    color: #fff;
    background: linear-gradient(90deg,#eb1551,#c0003b) !important;
    border: none;
}

.uk-button-default.is-active {
    background-color: transparent;
    color: #333;
    border-color: var(--im-theme-color);
}

.uk-light .uk-button-default.is-active {
    background-color: transparent;
    color: #fff;
    border-color: var(--im-theme-color);
}

.iep-embed-ui .iep-copy-btn {
    color: #333;
}

.iep-embed-ui .iep-copy-btn:hover {
    color: #999;
}

.uk-light .iep-embed-ui.iep-dark .iep-copy-btn {
    color: #fff;
}

.uk-light .iep-embed-ui.iep-dark .iep-copy-btn:hover {
    color: rgba(255,255,255,.5);
}

.uk-article-meta .iep-embed-ui .iep-copy-btn {
    padding-right: 0;
}

.is-dark .init-plugin-suite-view-count-ranking-tabs {
    border-bottom-color: rgba(255,255,255,.2);
}

.uk-comment-list .uk-comment-avatar,
.init-review-avatar img {
    width: 60px;
    height: 60px;
}

.init-affiliate-gate-block {
    max-width: 750px;
    padding-inline: 15px;
    margin-inline: auto !important;
}

.uk-container .init-affiliate-gate-block {
    padding-inline: 0;
}

.init-affiliate-gate-block img {
    border-radius: 5px;
}

.sticker-picker-btn {
    cursor: pointer;
}

.sticker-pinned,
.effect-pinned,
.frame-pinned {
    right: unset;
    left: 15px;
}

.iue-inbox-content {
    overflow-wrap: break-word;
}

.im-badge-item {
    opacity:0;
    transform:translateY(4px);
    transition:all .25s ease;
    pointer-events:none;
}

.im-badge-item.is-active {
    opacity:1;
    transform:none;
}

.im-badge-item .iue-vip-badge {
    min-width: 36px;
    height: 20px;
    line-height: 20px;
    text-align: center;
}

.is-friend {
    border-left: 4px solid var(--im-theme-color);
}

.iue-menu-dot{
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--iue-theme-color);
}

.iue-login-form input[type="submit"], .iue-login-form .login-submit input[type="submit"], .iue-register-form button.iue-submit {
    background: linear-gradient(135deg,var(--im-theme-color),var(--im-gradient-color));
}

.latest-updated-list {
    position: relative;
}

.latest-updated-list.is-loading .uk-panel,
.latest-updated-list.is-loading .manga-item-horizontal,
.latest-updated-list.is-loading .imc-striped-item {
    filter: blur(4px);
}

.latest-updated-list .imc-spinner {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
}

#top-readers-grid hr {
    display: none;
}

#imc-filter-by-type .uk-icon-button.uk-active {
    background: var(--im-theme-color);
    color: #fff;
}

#init-user-engine-login-modal .iue-header,
#init-user-engine-login-modal.dark .iue-header,
#iue-modal .iue-modal-header,
#iue-modal.dark .iue-modal-header {
    display: block;
    justify-content: unset;
    background: none;
    border: none !important;
}

#init-user-engine-login-modal .iue-body,
#iue-modal .iue-modal-body {
    padding: 0 24px 24px;
}

#init-review-modal .init-review-modal-close,
#iep-modal .iep-modal-close,
#init-user-engine-login-modal .iue-close,
#iue-modal .iue-modal-close {
    position: absolute;
    z-index: 1010;
    top: 10px;
    right: 10px;
    padding: 5px;
    line-height: 16px;
}

.iue-close,
#iue-modal .iue-modal-close,
#iep-modal .iep-modal-close,
#init-review-modal .init-review-modal-close {
    color: #999;
}

.dark .iue-form-actions .iue-btn,
.iue-close:hover,
#iue-modal .iue-modal-close:hover,
#iep-modal .iep-modal-close:hover,
#init-review-modal .init-review-modal-close:hover {
    color: #666;
}

.iue-header h3,
#iue-modal .iue-modal-header h3 {
    color: #333;
}

#iep-modal .iep-modal-close svg,
#init-user-engine-login-modal .iue-close svg,
#iue-modal .iue-modal-close svg {
    width: 16px;
    height: 16px;
}

#init-review-modal .init-review-modal-title,
#iep-modal .init-embed-title,
#init-user-engine-login-modal .iue-header h3,
#iue-modal .iue-modal-header h3 {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 400;
}

.init-review-modal-line span.uk-icon {
    margin-bottom: 0;
}

#init-review-modal .init-review-modal-title,
#iep-modal .init-embed-title {
    margin-bottom: 20px;
}

#iue-modal .iue-page-btn.active,
.iue-inbox-tabs button.active {
    font-weight: 400;
}

#iep-modal #iep-code,
#init-review-content,
#iue-referral-link,
.iue-redeem-box .iue-input,
.iue-form-group input,
.iue-form-group textarea,
.iue-form-group select {
    font-size: 1rem;
    border-radius: 0;
}

#iue-referral-link,
.iue-redeem-box .iue-input,
.iue-form-group input,
.iue-form-group select {
    padding: 0 10px;
}

.iue-inbox-controls button,
.iue-form-group .iue-btn,
.iue-form-actions .iue-btn {
    padding: 0 20px;
    line-height: 38px;
    text-transform: uppercase;
}

.iue-inbox-controls button {
    padding: 0 15px;
    line-height: 32px;
    font-size: .875rem;
    white-space: nowrap;
}

.iue-form-group .iue-btn-mini,
.iue-form-actions .iue-btn-mini {
    padding: 6px 10px !important;
    line-height: 1 !important;
}

.iue-vip-note p,
.iue-exchange-note,
.iue-redeem-note {
    margin-bottom: 0;
}

.iue-exchange-box {
    padding-block: 0;
}

.uk-search-default .uk-search-input,
#iep-modal.iep-dark #iep-code {
    transition: .2s ease-in-out;
    transition-property: color, background-color, border;
}

#iep-modal #iep-code:focus,
#init-review-content:focus,
.uk-search-default .uk-search-input:focus,
.uk-input:focus,
.uk-select:focus,
.uk-textarea:focus {
    border-color: var(--im-theme-color);
}

.dark .iue-form-group input:focus,
.dark .iue-form-group textarea:focus,
.dark .iue-form-group select:focus,
#iep-modal.iep-dark #iep-code:focus,
.uk-light .uk-search-default .uk-search-input:focus,
#init-review-modal.dark #init-review-content:focus {
    border-color: rgba(255,255,255,.7);
}

#iep-modal .iep-modal-content {
    color: #666;
}

#iep-modal #iep-code,
#init-review-content {
    border-color: #e5e5e5;
    color: #666;
}

#iep-modal.iep-dark #iep-code:focus,
#iep-modal #iep-code:focus,
#init-review-content:focus {
    box-shadow: none;
}

.iue-avatar-upload-btn,
.iue-avatar-remove-btn,
.iue-vip-buy-btn {
    border-radius: 999px !important;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uk-accordion-default .uk-accordion-icon {
    line-height: 1;
}

#iue-modal.dark .iue-vip-buy-btn,
#iue-modal.dark .iue-inbox-controls button {
    background-color: #fff;
    color: #666
}

#iue-modal.dark .iue-vip-buy-btn:hover,
#iue-modal.dark .iue-inbox-controls button:hover {
    background-color: #f2f2f2;
    color: #666
}

#iue-modal.dark .iue-vip-buy-btn:active,
#iue-modal.dark .iue-inbox-controls button:active {
    background-color: #e6e6e6;
    color: #666
}

#iue-modal.dark .iue-avatar-remove-btn {
    color: #fff;
}

/* ===============================
   Emoji Picker
   =============================== */

.uep-trigger-button {
    position: relative;
    cursor: pointer;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.uep-trigger-button:hover,
.uep-trigger-button[aria-expanded="true"] {
    opacity: 1;
}

.uep-picker {
    width: 320px;
    height: 415px;
    min-height: 415px;
    max-height: 415px;
    z-index: 999;
}

.uep-search {
    margin-bottom: 15px
}

.uep-categories {
    display: flex;
    overflow-x: auto;
}

.uep-category-btn {
    flex-shrink: 0;
    padding: 10px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.uk-light .uep-category-btn {
    color: rgba(255,255,255,.7);
}

.uep-category-btn:hover,
.uep-category-btn.active {
    opacity: 1;
    transform: translateY(-1px);
}

.uep-category-btn.active {
    color: var(--im-theme-color);
}

.uep-content {
    height: 300px;
    overflow-y: auto;
}

.uep-category-section {
    margin-bottom: 16px;
}

.uep-category-title {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.uep-emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.uep-emoji {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    padding: 0;
}

.uep-emoji:hover {
    background: #f0f0f0;
    transform: scale(1.2);
}

.uk-light .uep-emoji:hover {
    background:#383838;
}

.uep-emoji:active {
    transform: scale(1.1);
}

.uep-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.uep-recent-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 12px;
}

#iue-modal.dark .iue-modal-close,
#init-review-modal.dark .init-review-modal-close,
#init-user-engine-login-modal.dark .iue-close,
#iep-modal.iep-dark .iep-modal-close {
    color: rgba(255,255,255,.5);
}

#iue-modal.dark .iue-modal-close:hover,
#init-review-modal.dark .init-review-modal-close:hover,
#init-user-engine-login-modal.dark .iue-close:hover,
#iep-modal.iep-dark .iep-modal-close:hover {
    color: rgba(255,255,255,.7);
}

#iue-modal.dark .iue-modal-header h3,
#init-review-modal.dark .init-review-modal-title,
#init-user-engine-login-modal.dark .iue-header h3,
#iep-modal.iep-dark .init-embed-title {
    color: #fff;
}

/* ===============================
   Sticker
   =============================== */
.init-review-modal-line .sticker-picker-btn,
.comment-form .sticker-picker-btn {
    right: 30px;
}

.sticker-picker .sticker-content {
    padding: 0 !important;
}

.sticker-bookmark-flash {
    animation: bookmark-flash 0.5s ease;
}
@keyframes bookmark-flash {
    0%   { outline: 2px solid var(--im-theme-color, #1e87f0); }
    100% { outline: 2px solid transparent; }
}
.sticker-btn.is-bookmarked img {
    /* optional: tint nhỏ để biết đã bookmark */
    filter: drop-shadow(0 0 3px var(--im-theme-color, #1e87f0));
}
.sticker-btn img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* =============================================
   Sticker Picker — Category Tabs
   ============================================= */

.sticker-category-btn {
    color: currentColor;
    width: 36px;
    height: 36px;
    padding: 2px;
    border: none;
    background: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.sticker-category-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.sticker-category-btn.is-active,
.sticker-category-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.uk-light .sticker-category-btn.is-active,
.uk-light .sticker-category-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* =============================================
   Sticker Picker — More Button & Wrap
   ============================================= */

.sticker-more-wrap {
    position: relative;
    flex-shrink: 0;
}

.sticker-more-btn {
    color: currentColor;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.sticker-more-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.uk-light .sticker-more-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sticker-more-icon.theme-color {
    color: var(--im-theme-color);
}

/* =============================================
   Sticker Picker — More Menu
   ============================================= */

.sticker-more-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 200px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 1060;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 6px;
}

.uk-light .sticker-more-menu {
    background: #222;
}

.sticker-more-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Item trong More menu */
.sticker-more-menu .sticker-category-btn {
    width: 100%;
    height: auto;
    padding: 3px;
    border: none;
    border-bottom: none;
    border-radius: 8px;
    background: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    text-transform: none;
    color: inherit;
    overflow: visible;
    transition: background 0.15s;
}

.sticker-more-menu .sticker-category-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.uk-light .sticker-more-menu .sticker-category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Active item trong More menu */
.sticker-more-menu .sticker-category-btn.is-active {
    background: color-mix(in srgb, var(--im-theme-color) 12%, transparent);
    border-bottom: none;
}

.uk-light .sticker-more-menu .sticker-category-btn.is-active {
    background: color-mix(in srgb, var(--im-theme-color) 20%, transparent);
}

.sticker-more-menu .sticker-category-btn.is-active .sticker-pack-name {
    color: var(--im-theme-color);
}

/* Thumbnail trong More menu */
.sticker-more-thumb {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.sticker-more-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tên bộ sticker */
.sticker-more-menu .sticker-pack-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

/* ===============================
   GIF
   =============================== */

/* Mặc định: không có sticker */
.comment-form .gif-picker-btn {
    right: 30px;
}

/* Có sticker → GIF lùi sang phải */
.comment-form .uk-position-relative:has(.sticker-picker-btn) .gif-picker-btn {
    right: 60px;
}

/* ===============================
   Spoiler
   =============================== */

/* Mặc định: không sticker, không gif */
.comment-form #spoiler-icon {
    right: 30px;
}

/* Có sticker HOẶC gif (1 trong 2) */
.comment-form .uk-position-relative:has(.sticker-picker-btn, .gif-picker-btn) #spoiler-icon {
    right: 60px;
}

/* Có sticker + gif */
.comment-form .uk-position-relative:has(.sticker-picker-btn):has(.gif-picker-btn) #spoiler-icon {
    right: 90px;
}

.init-spoiler-content.uk-blur {
    filter: blur(6px);
    transition: filter 0.3s;
}

.init-review-score-box .init-review-stars-line svg {
    width: 28px;
    height: 28px;
}

.init-review-stars .star {
    width: 24px;
    height: 24px;
}

.sticker-image {
    width: 120px;
    height: auto;
    display: block;
    margin-block: 15px;
}

.comment-gif {
    width: 300px;
    display: block;
    margin-block: 15px;
}

.init-manga-stats-hover-hidden {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.25s ease-out,
        transform 0.25s ease-out;
    pointer-events: none;
}

.scale-up-hover:hover .init-manga-stats-hover-hidden {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/*==============================
=             Gift             =
==============================*/

.imc-gift-bar {
    margin-left: 0;
}

.imc-gift-option {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.imc-gift-option:hover {
    border-color: var(--im-theme-color);
    background-color: rgba(var(--im-theme-color-rgb), 0.1);
}

#imc-gift-form .uk-button:disabled {
    pointer-events: none;
}

/*==============================
=       Init Chat Engine       =
==============================*/

.init-chatbox-wrapper {
    padding: 15px 10px;
}

.init-chatbox-empty {
    text-align: center;
    padding: 20px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e1e5ea"><path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/></svg>') no-repeat center top;
    background-size: 48px 48px;
    padding-top: 60px;
}

.init-chatbox-messages.shrink {
    height: 105px;
    min-height: 105px;
    max-height: 105px;
}

.init-chatbox-messages.expand {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
    padding: 0 5px;
}

.init-chatbox-message {
    margin-bottom: 16px;
    /* Removed all opacity animations to prevent blinking */
    opacity: 1;
    transform: translateY(0);
}

.init-chatbox-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.init-chatbox-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.init-chatbox-meta .iue-vip-badge {
    font-size: 10px;
    min-width: 14px;
    height: 14px;
    line-height: 14px;
    padding: 0 3px;
}

.init-chatbox-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.init-chatbox-meta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.init-chatbox-author {
    font-weight: 700;
    text-transform: capitalize;
    font-size: 16px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.init-chatbox-meta-time {
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 400;
}

.init-chatbox-message-body-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.init-chatbox-message-body {
    display: inline-block;
    max-width: 100%;
    width: auto;
    padding: 10px 15px;
    background: #f3f3f3;
    border-radius: 4px 18px 18px 18px;
    word-break: break-word;
}

.init-reply-btn {
    flex-shrink: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.init-chatbox-message:hover .init-reply-btn {
    opacity: 1;
    pointer-events: auto;
}

.uk-light .init-chatbox-message-body {
    background: #303030;
}

.assistant-question,
.init-chatbox-message.current-user .init-chatbox-message-body {
    background: var(--im-gradient);
    color: #fff;
    border: none;
}

.init-chatbox-text {
    display: block;
}

.init-chatbox-message.current-user .init-chatbox-text a {
    color: #fff;
}

.init-chatbox-input-message {
    padding-right: 125px;
}

#init-chatbox-form .uep-trigger-button {
    margin-right: 0;
    right: 30px;
}

#init-chatbox-form .sticker-picker-btn {
    right: 60px;
}

.init-chatbox-scroll-to-bottom {
    position: absolute;
    bottom: 120px;
    right: 16px;
    background: #222;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    z-index: 1000;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.init-chatbox-scroll-to-bottom:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

/* ── Pinned Banner (clean) ───────────────────────────────── */
.init-chatbox-pinned-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    border-left: 3px solid var(--im-theme-color);
    border-radius: 6px;
    animation: pinBannerIn 0.2s ease;
    z-index: 10;
    background: #f8f8f8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* dark mode friendly (nếu UIkit dark) */
.uk-light .init-chatbox-pinned-banner {
    background: #303030;
}

@keyframes pinBannerIn {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}

.init-chatbox-pinned-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.init-chatbox-pinned-icon {
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0.75;
}

/* clickable */
.init-chatbox-pinned-clickable {
    flex: 1 1 0;
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;

    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;

    transition: background 0.15s ease;
}

.init-chatbox-pinned-clickable:hover {
    background: rgba(0,0,0,0.04);
}

.uk-light .init-chatbox-pinned-clickable:hover {
    background: rgba(255,255,255,0.06);
}

.init-chatbox-pinned-clickable:focus-visible {
    outline: 2px solid var(--im-theme-color);
    outline-offset: 2px;
}

/* label */
.init-chatbox-pinned-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--im-theme-color);
}

/* text */
.init-chatbox-pinned-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 16px;
}

.uk-light .init-chatbox-pinned-text {
    color: rgba(255,255,255,0.75);
}

/* ── Unpin button (minimal) ─────────────────────────────── */
.init-chatbox-pinned-unpin {
    flex-shrink: 0;

    font-size: 12px;
    padding: 2px 8px;

    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.15);
    background: transparent;
    color: rgba(0,0,0,0.7);

    cursor: pointer;
    transition: all 0.15s ease;
}

.init-chatbox-pinned-unpin:hover {
    border-color: var(--im-theme-color);
    color: var(--im-theme-color);
}

.uk-light .init-chatbox-pinned-unpin {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
}

.uk-light .init-chatbox-pinned-unpin:hover {
    border-color: var(--im-theme-color);
    color: var(--im-theme-color);
}

.init-chatbox-pinned-unpin:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Pin button (hover message) ─────────────────────────── */
.init-chatbox-message {
    position: relative;
}

.init-chatbox-pin-btn {
    position: absolute;
    top: 40px;
    right: 0;
    font-size: 12px;
    padding: 3px 7px;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, background 0.15s ease;
    z-index: 5;
}

.init-chatbox-message:hover .init-chatbox-pin-btn {
    opacity: 1;
    pointer-events: auto;
}

/* pinned */
.init-review-modal-form button[type="submit"],
#iep-modal button[type="button"]:not(.iep-modal-close),
.init-chatbox-pin-btn.pinned-active {
    background: var(--im-theme-color);
}

.init-review-modal-form button[type="submit"]:hover,
#iep-modal button[type="button"]:not(.iep-modal-close):hover,
.init-chatbox-pin-btn.pinned-active:hover {
    background: var(--im-theme-hover);
}

.init-chatbox-pin-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

/* ── Highlight message ───────────────────────────────────── */
.init-chatbox-message.pinned-highlight {
    outline: 2px solid var(--im-theme-color);
    outline-offset: 2px;
    border-radius: 6px;
    animation: pinHighlight 1.1s ease forwards;
}

@keyframes pinHighlight {
    0%   { outline-color: var(--im-theme-color); }
    100% { outline-color: transparent; }
}

.ice-hidden {
    display: none !important;
}

.init-chatbox-pinned-expand {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;

    font-size: 14px;
    padding: 2px 6px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.init-chatbox-pinned-expand:hover {
    opacity: 1;
}

.init-chatbox-pinned-text.expanded {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.uk-light .init-chatbox-pinned-expand {
    color: #fff;
}

/*==============================
=           Loot Box          =
==============================*/

/* === LOOTBOX SVG === */
.lootbox-box {
    width: 120px;
    height: 120px;
    cursor: pointer;
    filter: drop-shadow(0 15px 40px rgba(254, 110, 44, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
    position: relative;
    z-index: 2;
}

.lootbox-box:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 20px 50px rgba(254, 110, 44, 0.7));
}

/* Idle state */
.lootbox-box.lootbox-idle {
    animation: lootbox-float 3s ease-in-out infinite;
}

/* Opening animation */
.lootbox-box.lootbox-opening {
    animation: lootbox-shake 0.5s ease-in-out,
        lootbox-spin-open 0.8s ease-out 0.5s forwards;
}

/* Opened state */
.lootbox-box.lootbox-opened {
    animation: lootbox-disappear 0.5s ease-out forwards;
}

/* === CONFETTI === */
.lootbox-confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    opacity: 0;
    pointer-events: none;
    border-radius: 50%;
}

.lootbox-confetti.lootbox-active {
    animation: lootbox-confetti-fall 1.5s ease-out forwards;
}

/* === SPARKLES === */
.lootbox-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.lootbox-sparkle.lootbox-active {
    animation: lootbox-sparkle-twinkle 1s ease-out forwards;
}

/* === ANIMATIONS === */
@keyframes lootbox-float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes lootbox-pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes lootbox-shake {
    0%,
    100% {
        transform: rotate(0deg);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-12deg);
    }
    20%,
    40%,
    60%,
    80% {
        transform: rotate(12deg);
    }
}

@keyframes lootbox-spin-open {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(1.4);
    }
    100% {
        transform: rotate(360deg) scale(1.6);
        opacity: 0;
    }
}

@keyframes lootbox-disappear {
    to {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes lootbox-confetti-fall {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%)
            translate(var(--tx, 0), var(--ty, 300px)) rotate(720deg) scale(0.5);
    }
}

@keyframes lootbox-sparkle-twinkle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) translate(var(--sx, 0), var(--sy, 0))
            scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translate(var(--sx, 0), var(--sy, 0))
            scale(0);
    }
}

/*==============================
=           Assistant          =
==============================*/

#init-manga-assistant-button {
    z-index: 998;
}

#init-manga-assistant-messages {
    height: 450px;
}

.uk-light #init-manga-assistant-messages .uk-background-muted {
    background-color: #222;
}

#init-manga-assistant-messages .recent-comment-max-height div.uk-text-center.uk-margin-top {
    display: none;
}

.ima-item .max-width-120 {
    max-width: 80px;
}

#init-manga-assistant-messages code {
    white-space: wrap !important;
}

#init-manga-assistant-messages .assistant-question,
#init-manga-assistant-messages .uk-background-muted.uk-border-chat-left {
    max-width: -webkit-fill-available;
}

#init-manga-assistant-messages .assistant-question {
    white-space: pre-line;
    word-break: break-word;
}

@keyframes imaNotificationNudge {
    0%   { transform: translateX(0); }
    8%   { transform: translateX(-2px); }
    16%  { transform: translateX(2px); }
    24%  { transform: translateX(-2px); }
    32%  { transform: translateX(1px); }
    40%  { transform: translateX(0); }
    100% { transform: translateX(0); }
}

#init-manga-assistant-button:has(.ima-badge-dot) .uk-icon {
    animation: imaNotificationNudge 0.8s ease-in-out 3;
    transform-origin: center;
}

/*==============================
=            Ribbons           =
==============================*/

.manga-status-ribbons {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    z-index: 15;
    pointer-events: none;
    overflow: hidden;
}

.manga-status-ribbons .manga-status-ribbon {
    position: absolute;
    top: 12px;
    left: -25px;
    width: 90px;

    padding: 3px 0;
    text-align: center;
    font-weight: 500;
    text-transform: uppercase;

    background: #ff4757;
    color: #fff;

    transform: rotate(-45deg);
    transform-origin: center;

    pointer-events: none;
}

/* Text */
.manga-status-ribbon__text {
    display: block;
    font-size: clamp(8px, 2.5vw, 10px);
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.5px;
}

/* Colors */
.manga-status-ribbon.ribbon-ongoing    { background: #1e90ff; }
.manga-status-ribbon.ribbon-completed  { background: #2ed573; }
.manga-status-ribbon.ribbon-dropped    { background: #ff4757; }
.manga-status-ribbon.ribbon-season_end { background: #ffa502; }
.manga-status-ribbon.ribbon-new        { background: #ff6b81; }

/* New icon */
.manga-icon-rotator {
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 5;
    pointer-events: none;
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.manga-item-horizontal .uk-position-relative:has(.manga-stats-bar:not(.init-manga-stats-hover-hidden):not(.init-manga-stats-static)) .manga-icon-rotator,
.uk-panel:has(.manga-stats-bar:not(.init-manga-stats-hover-hidden):not(.init-manga-stats-static)) .manga-icon-rotator {
    bottom: 37px;
}

.manga-status-ribbon-new,
.manga-status-ribbon-heatwave {
    background: var(--im-red);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.manga-icon-item {
    opacity: 0;
    transform: translateY( 4px );
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.manga-icon-item + .manga-icon-item {
    position: absolute;
    top: 0;
    left: 0;
}

.manga-icon-item.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* Pinned icon */
.manga-status-ribbon-pinned {
    position: absolute;
    left: 5px;
    bottom: 5px;
    z-index: 5;
    pointer-events: none;
    background: rgba(0,0,0,0.75);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.uk-panel:has(.manga-stats-bar:not(.init-manga-stats-hover-hidden):not(.init-manga-stats-static)) 
    .manga-status-ribbon-pinned {
    bottom: 37px;
}

/* User Settings */

.im-toggle-wrapper { height: 24px; }
.im-toggle { position: relative; display: inline-block; width: 44px; height: 24px; cursor: pointer; }
.im-toggle-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.im-toggle-slider { position: absolute; inset: 0; border-radius: 9999px; background: #e5e7eb; transition: background .2s ease; }
.uk-light .im-toggle-slider { background: rgba(255,255,255,.1); }
.im-toggle-slider::before { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 9999px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s ease; }
.im-toggle-input:checked + .im-toggle-slider { background: var(--im-theme-color); }
.im-toggle-input:checked + .im-toggle-slider::before { transform: translateX(20px); }
.im-toggle-input:focus-visible + .im-toggle-slider { outline: 2px solid var(--im-theme-color); outline-offset: 2px; }
.im-toggle.is-saving .im-toggle-slider,
#im-profile-settings-content .uk-disabled { opacity: .6; }

.profile-visit-avatar {
    transition: transform .2s ease;
}
.profile-visit-stack > div:hover .profile-visit-avatar {
    transform: scale(1.1);
    z-index: 10;
}

/* streak >= 7 */
.iue-fire-blue {
    color: #2ea6ff;
}

/* streak >= 30 */
.iue-fire-purple {
    color: #8b5cf6;
}

/* streak >= 100 */
.iue-fire-legend {
    color: #ff2fd1;
}

.im-avatar-wrapper {
    cursor: default;
}

.im-avatar-clickable {
    cursor: pointer;
}

.im-avatar-overlay {
    background: rgba(0,0,0,0.5);
    opacity: 0;
    border-radius: 50%;
    transition: opacity .2s ease;
    color: #fff;
}

.im-avatar-clickable:hover .im-avatar-overlay {
    opacity: 1;
}

/* Hover Effects */

/* Container chính */
.manga-hoverable {
    position: relative;
    /* Tránh nhảy giao diện: padding cố định */
    padding: 10px; 
    margin: -10px; /* Bù trừ padding để không làm giãn layout chung */
    border-radius: 12px;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: 1;
}

/* Khi Hover: Đổ màu solid (dạng tint) */
.manga-hoverable:hover {
    /* Dùng rgba để màu không bị quá đậm che mất chữ */
    background-color: rgba(var(--manga-color-rgb), 0.1) !important;
}

/* Đổi màu tiêu đề cho đồng bộ khi hover vào card */
.manga-hoverable .uk-link-heading {
    transition: color 0.3s ease;
}

.manga-hoverable:hover .uk-link-heading {
    color: var(--manga-color) !important;
}

/* Button chương truyện: Solid hơn */
.manga-hoverable:hover .uk-button-default {
    border-color: rgba(var(--manga-color-rgb), 0.3);
}

.manga-hoverable .uk-button-default:hover {
    border-color: var(--manga-color) !important;
}

/* Featured Items */

/* Inner mới là card thật */
.manga-item-featured-inner {
    position: relative;
}

/* Overlay giữ nguyên */
.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--manga-color) 0%,
        var(--manga-color-hard) 15%,
        var(--manga-color-soft) 35%,
        rgba(0,0,0,0) 60%
    );
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: 
        opacity 0.25s ease,
        filter 0.3s ease;
}

/* Hover effect */
.manga-item-featured-inner:hover .featured-overlay {
    opacity: 0.95;
    filter: brightness(1.1) saturate(1.1);
}

/* Content */
.featured-content {
    z-index: 2;
    padding: 10px 20px;
}

.featured-meta {
    opacity: 0.85;
}

.featured-rank {
    position: absolute;
    bottom: -13px;
    left: -13px;
    font-size: 60px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255,255,255,0.9);
    z-index: 9;
    opacity: .9;
    pointer-events: none;
    text-shadow: 0 3px 6px rgba(0,0,0,.5);
}

/* Compact + mobile thì giảm */
@media (max-width: 480px) {
    .manga-item-featured.is-compact .featured-rank {
        font-size: 42px;
        bottom: -10px;
        left: -10px;
    }
}

/* ------------------------------------------------------------
 * Skeleton Loader (RGBA - adaptive)
 * ------------------------------------------------------------ */

/* Light mode */
.skeleton-item {
    min-height: 60px;
}

.skeleton-rank {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
}

.skeleton-user {
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06) 25%,
        rgba(0, 0, 0, 0.10) 37%,
        rgba(0, 0, 0, 0.06) 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

.nbr-sk {
    border-radius: 4px;
    animation: nbr-shimmer 1.5s ease-in-out infinite;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06) 25%,
        rgba(0, 0, 0, 0.10) 37%,
        rgba(0, 0, 0, 0.06) 63%
    );
    background-size: 200% 100%;
}
.nbr-sk.nbr-sk-thumb {
    background: rgba(0, 0, 0, 0.06);
}
@keyframes nbr-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.nbr-sk-thumb   { width: 100%; aspect-ratio: 3/4; border-radius: 6px; }
.nbr-sk-genre   { height: 12px; width: 55%; }
.nbr-sk-title   { height: 18px; width: 88%; }
.nbr-sk-desc    { height: 12px; width: 100%; }
.nbr-sk-desc-2  { height: 12px; width: 75%; }
.nbr-sk-meta    { height: 14px; width: 60%; }
.nbr-sk-footer  { height: 13px; width: 180px; border-radius: 4px; display: inline-block; }

/* ------------------------------------------------------------
 * Dark mode (UIkit: .uk-light)
 * ------------------------------------------------------------ */

.uk-light .nbr-sk.nbr-sk-thumb,
.uk-light .skeleton-rank {
    background: rgba(255, 255, 255, 0.08);
}

.uk-light .nbr-sk,
.uk-light .skeleton-user {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(255, 255, 255, 0.16) 37%,
        rgba(255, 255, 255, 0.08) 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

/* ── Layout skeleton items ───────────────────────────────────────────────── */
 
.homefeed-slider__skeleton-item {
    flex: 0 0 auto;
}
 
/* ── Thumb placeholder (bìa manga) ──────────────────────────────────────── */
/* Dùng pattern giống .nbr-sk-thumb: static bg, không shimmer */
.homefeed-slider__skeleton-thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.06);
}
 
/* ── Text line placeholders ─────────────────────────────────────────────── */
/* Dùng animation giống .skeleton-user / .nbr-sk */
.homefeed-slider__skeleton-line {
    border-radius: 4px;
    margin-top: 8px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06) 25%,
        rgba(0, 0, 0, 0.10) 37%,
        rgba(0, 0, 0, 0.06) 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}
 
.homefeed-slider__skeleton-line--title {
    height: 14px;
    width: 88%; /* giống .nbr-sk-title */
    margin-top: 10px;
}
 
.homefeed-slider__skeleton-line--sub {
    height: 12px;
    width: 55%; /* giống .nbr-sk-genre */
    margin-top: 6px;
}
 
/* ── Dark mode (.uk-light) ──────────────────────────────────────────────── */
.uk-light .homefeed-slider__skeleton-thumb {
    background: rgba(255, 255, 255, 0.08);
}
 
.uk-light .homefeed-slider__skeleton-line {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(255, 255, 255, 0.16) 37%,
        rgba(255, 255, 255, 0.08) 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

/* ------------------------------------------------------------
 * Animation
 * ------------------------------------------------------------ */

@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* Adult warning modal */

#init-manga-adult-warning-modal .uk-button {
    min-width: 250px;
}

#init-manga-adult-warning-modal .adult-warning-icon {
    font-size:3.5rem;
    line-height:1;
    margin-bottom:12px;
}

/* ------------------------------------------------------------
 * Tank 300IQ
 * ------------------------------------------------------------ */

#tank-duel-root {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tank-duel-canvas-container {
    position: relative;
    width: 100vw;
    aspect-ratio: 16 / 9;
    
    max-height: 100vh;
    max-height: 100svh;
    
    max-width: calc(100vh * 16 / 9);
    max-width: calc(100svh * 16 / 9);
    
    background: #0b0f14;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

#gameCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}

/* ------------------------------------------------------------
 * Inbox Toast
 * ------------------------------------------------------------ */

.im-toast-stack {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.im-toast {
    position: relative;
    width: 360px;
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0;
    transform: translateX(-24px) scale(0.96);
    animation: imToastIn 0.35s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    user-select: none;
}

.im-toast--removing {
    animation: imToastOut 0.22s ease forwards;
}

/* LIGHT MODE */
.im-toast {
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.im-toast__content {
    color: rgba(0, 0, 0, 0.68);
}

.im-toast__close {
    background: rgba(0, 0, 0, 0.05);
    color: #111;
}

.im-toast__close:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* DARK MODE (UIkit support) */
.uk-light .im-toast {
    background: rgba(20, 20, 24, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.uk-light .im-toast__content {
    color: rgba(255, 255, 255, 0.72);
}

.uk-light .im-toast__close {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.uk-light .im-toast__close:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ELEMENTS */
.im-toast__thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
    background: #2a2a2f;
}

.im-toast__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 28px;
    flex-shrink: 0;
}

.im-toast__body {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

.im-toast__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.im-toast__content {
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.im-toast__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
    line-height: 1;
}

.im-toast__dot {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #42a5f5;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* ANIMATIONS */
@keyframes imToastIn {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes imToastOut {
    to {
        opacity: 0;
        transform: translateX(-32px) scale(0.92);
    }
}

/* MOBILE */
@media (max-width: 640px) {
    .im-toast-stack {
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: auto;
        align-items: center;
    }

    .im-toast {
        width: calc(100% - 30px);
        max-width: 400px;
        transform: translateY(-18px) scale(0.97);
        touch-action: pan-y;
        will-change: transform, opacity;
    }

    @keyframes imToastIn {
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes imToastOut {
        to {
            opacity: 0;
            transform: translateY(-18px) scale(0.94);
        }
    }
}

/* ------------------------------------------------------------
 * Team Leader Board
 * ------------------------------------------------------------ */

.tm-score-ring {
    position: relative;
    width: 90px;
    height: 90px;
}
.tm-score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.tm-score-track { stroke: rgba(148,163,184,.2); }
.tm-score-fill  { transition: stroke-dasharray .6s ease; }

.tm-bar--god { stroke: var(--im-theme-color); }
.tm-bar--ss  { stroke: var(--im-theme-color); }
.tm-bar--s   { stroke: #f0506e; }
.tm-bar--a   { stroke: #faa05a; }
.tm-bar--b   { stroke: #32d296; }
.tm-bar--c   { stroke: #1e87f0; }
.tm-bar--d   { stroke: #999; }

.tm-score-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.tm-progress-track {
    height: 8px;
    background: rgba(148,163,184,.15);
    overflow: hidden;
}
.tm-progress-fill {
    height: 100%;
    transition: width .6s ease;
}

.tm-progress-fill.tm-bar--god { background: var(--im-theme-color); }
.tm-progress-fill.tm-bar--ss  { background: var(--im-theme-color); }
.tm-progress-fill.tm-bar--s   { background: #f0506e; }
.tm-progress-fill.tm-bar--a   { background: #faa05a; }
.tm-progress-fill.tm-bar--b   { background: #32d296; }
.tm-progress-fill.tm-bar--c   { background: #1e87f0; }
.tm-progress-fill.tm-bar--d   { background: #999; }

@media (max-width: 480px) {
    #init-review-modal .init-review-modal-content,
    #iue-modal .iue-modal-header {
        padding: 20px;
    }

    #init-user-engine-login-modal .iue-body, #iue-modal .iue-modal-body  {
        padding: 0 20px 20px;
    }

    .iue-inbox-controls {
        justify-content: unset;
    }
}

/* ------------------------------------------------------------
 * Custom Modal
 * ------------------------------------------------------------ */

#init-review-modal.is-active,
#iep-modal.is-active {
    overflow-y: auto;
}

#iue-modal .iue-modal-content {
    top: 50px;
}

#iep-modal .iep-modal-content,
#init-review-modal .init-review-modal-content {
    margin-top: 50px;
}

@media (max-width: 480px) {
    #ils-modal .ils-content,
    #iep-modal .iep-modal-content,
    #init-review-modal .init-review-modal-content,
    #iue-modal .iue-modal-content,
    .iue-content {
        width: calc(100% - 30px);
    }

    #iue-modal .iue-modal-content {
        top: 15px;
    }

    #iep-modal .iep-modal-content,
    #init-review-modal .init-review-modal-content {
        margin-top: 15px;
    }
}

/* ------------------------------------------------------------
 * Follow Bell
 * ------------------------------------------------------------ */

/* Bell badge */
.im-bell-wrap { position: relative; }

.im-bell-badge {
    position: absolute;
    top: -8px;
    left: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    padding: 0 4px;
    pointer-events: none;
    line-height: 18px;
    background: var(--im-theme-color);
}

/* Dropdown card */
#im-bell-dropdown {
    width: 360px;
}

.im-bell-card {
    max-height: 420px;
    overflow-y: auto;
}

.im-bell-list .manga-item-ranking:last-child {
    margin-bottom: 0 !important;
}

.uk-light #im-bell-dropdown.uk-dropdown {
    background-color: #1e1e1e;
}

/* Empty state */
.im-bell-empty {
    padding: 24px 0;
    text-align: center;
}

.im-bell-list .manga-item-ranking .uk-width-auto {
    display: none;
}
