/* ========== Default flatsome ========== */
.section-title-accent {
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    border-bottom: none !important;
}
.section-title-normal {
    border-bottom: none !important;
}
.section-title-normal span {
    border-bottom: none !important  ;
}

.section-title.section-title-accent > b,
.section-title.section-title-accent > a:not(.section-title-main) {
    display: none;
}

.section-title-accent .section-title-main {
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--fs-color-primary);
    font-size: inherit;
    text-transform: none;
    text-decoration: none;
}

/* .section-title-accent a.section-title-main:hover {
    color: #141414;
    text-decoration: none;
} */

.dark .section-title-accent,
.dark .section-title-accent .section-title-main,
.dark .section-title-accent a.section-title-main:hover {
    color: #fff;
}

.section-title-accent .section-title-main::before {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 4px;
    height: 1em;
    margin-right: 10px;
    border-radius: 999px;
    background: var(--fs-color-primary);
}

.section-title-accent.has-link .section-title-main::after {
    content: "";
    display: block;
    flex: 0 0 auto;
    width: 0.42em;
    height: 0.42em;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.9;
}
/* .h2, h2 {
    font-size: 1.3em !important;
} */

table, th, td {
    border: none;
      font-size: 15px;
  }
.list-taxonomy ul{
	display:grid;
    grid-template-columns: repeat(2, 1fr);
}
.list-taxonomy ul li {
	font-size: 0.9rem;
    padding: 6px;
	list-style: none;
	border-top: 1px solid #dedede;
	margin:0;
	
}

.col-inner ol li, .col-inner ul li, .entry-content ol li, .entry-content ul li, .entry-summary ol li, .entry-summary ul li {
    margin-left: .3em !important;
}

.button, button, input[type=button], input[type=reset], input[type=submit] {
    margin-right: 0 !important;
}
.section-title-container {
    margin-bottom: 0.5em !important;
}

.button, button, fieldset, input, select, textarea {
    margin-bottom: 0 !important;
}

.button, button, input[type=button], input[type=reset], input[type=submit] {
    min-height: 0 !important;
}
li {
    margin-bottom: 0 !important;
}
/* ========== End Default flatsome ========== */


/* ========== Hero Banner Comic ========== */
.hero-banner-comic {
    --hero-accent: var(--fs-color-primary);
    --hero-accent-soft: color-mix(in srgb, var(--fs-color-primary) 55%, #fff);
    --hero-ink: color-mix(in srgb, var(--fs-color-primary) 15%, #111827);
    --hero-muted: color-mix(in srgb, var(--fs-color-primary) 20%, #6b7280);
    --hero-border: color-mix(in srgb, var(--fs-color-primary) 18%, #fff);
    --hero-tint: color-mix(in srgb, var(--fs-color-primary) 8%, #fff);
    --hero-radius: 28px;
    position: relative;
    width: 100%;
    border-radius: var(--hero-radius);
    overflow: hidden;
    background: linear-gradient(120deg,
        color-mix(in srgb, var(--fs-color-primary) 3%, #fff) 0%,
        color-mix(in srgb, var(--fs-color-primary) 9%, #fff) 45%,
        color-mix(in srgb, var(--fs-color-primary) 15%, #fff) 100%);
    box-shadow: 0 18px 50px color-mix(in srgb, var(--fs-color-primary) 12%, transparent);
    min-height: 460px;
    margin-bottom: 1.5rem;
}

.hero-banner__main {
    width: 100%;
    height: 100%;
    min-height: 460px;
}

.hero-banner__main .swiper-slide {
    height: auto;
}

.hero-banner__slide {
    position: relative;
    min-height: 500px;
    height: 100%;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hero-banner__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--hero-border);
}

.hero-banner__bg-fill {
    position: absolute;
    inset: -24px;
    width: calc(100% + 48px);
    height: calc(100% + 48px);
    object-fit: cover;
    object-position: right center;
    display: block;
    filter: blur(28px) saturate(1.05);
    transform: scale(1.08);
    opacity: 0.9;
}

.hero-banner__bg-main {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: 62%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: none;
    transform: none;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-banner__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            color-mix(in srgb, #fff 97%, transparent) 0%,
            color-mix(in srgb, var(--hero-tint) 90%, transparent) 30%,
            color-mix(in srgb, var(--hero-tint) 35%, transparent) 48%,
            transparent 66%),
        linear-gradient(180deg, transparent 70%, color-mix(in srgb, var(--hero-tint) 22%, transparent) 100%);
    pointer-events: none;
    z-index: 2;
}

.hero-banner__inner {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    padding: 48px 48px 110px;
}

.hero-banner__content {
    max-width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: heroContentIn 0.7s ease both;
}

.hero-banner__main .swiper-slide-active .hero-banner__content {
    animation: heroContentIn 0.7s ease both;
}

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

.hero-banner__label {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--hero-muted);
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.hero-banner__label::after {
    content: "";
    display: block;
    width: 42px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.hero-banner__title {
    margin: 0 0 16px;
    font-weight: 700;
    font-size: clamp(1.2rem, 4.5vw, 2rem) !important;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--hero-ink);
    height: 4.2em;
    overflow: hidden;
}

.hero-banner__title-line {
    display: block;
}

.hero-banner__title-line--accent {
    color: var(--hero-accent);
}

.hero-banner__quote {
    margin: 0 0 28px;
    max-width: 380px;
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.55;
    color: var(--hero-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-banner__btn svg {
    transition: transform 0.2s ease;
}

.hero-banner__btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.hero-banner__btn:hover svg {
    transform: translateX(3px);
}

.hero-banner__btn--primary {
    background: var(--hero-accent);
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--fs-color-primary) 28%, transparent);
}

.hero-banner__btn--primary:hover {
    background: color-mix(in srgb, var(--fs-color-primary) 88%, #000);
    color: #fff;
}

.hero-banner__btn--ghost {
    background: color-mix(in srgb, #fff 72%, transparent);
    color: var(--hero-ink);
    border: 1px solid var(--hero-border);
}

.hero-banner__btn--ghost:hover {
    background: #fff;
    color: var(--hero-accent);
    border-color: var(--hero-accent-soft);
}

.hero-banner__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 22px;
}

.hero-banner__features li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--hero-muted);
}

.hero-banner__feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-accent);
    background: var(--hero-tint);
    flex-shrink: 0;
}

.hero-banner__feature-icon svg {
    width: 15px;
    height: 15px;
}

.hero-banner__deco {
    position: absolute;
    top: 36px;
    right: 48px;
    z-index: 3;
    margin: 0;
    max-width: 220px;
    text-align: right;
    font-size: 1.45rem;
    line-height: 1.35;
    color: var(--hero-accent-soft);
    pointer-events: none;
}

.hero-banner__controls {
    position: absolute;
    top: 50%;
    right: 36px;
    z-index: 4;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-banner__nav {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--hero-border);
    background: #fff;
    color: var(--hero-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--hero-ink) 12%, transparent);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hero-banner__nav svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    pointer-events: none;
}

.hero-banner__nav:hover {
    color: var(--hero-accent);
    border-color: var(--hero-accent-soft);
    background: #fff;
    transform: scale(1.04);
}

.hero-banner__fraction {
    margin-top: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--hero-muted);
    font-variant-numeric: tabular-nums;
}

.hero-banner__fraction-current {
    font-weight: 700;
    font-size: 1rem;
    color: var(--hero-ink);
}

.hero-banner__fraction-sep {
    margin: 0 2px;
    opacity: 0.55;
}

.hero-banner__slogan {
    position: absolute;
    right: 48px;
    bottom: 28px;
    z-index: 3;
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--hero-muted);
    padding-bottom: 6px;
    border-bottom: 1px solid color-mix(in srgb, var(--hero-muted) 35%, transparent);
}

.hero-banner__thumbs {
    position: absolute;
    left: 48px;
    bottom: 28px;
    z-index: 4;
    width: auto;
    max-width: calc(100% - 280px);
    padding-bottom: 10px;
}

.hero-banner__thumbs .swiper-slide {
    width: 58px;
}

.hero-banner__thumb {
    position: relative;
    display: block;
    width: 58px;
    height: 78px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: visible;
    background: var(--hero-border);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-banner__thumb img,
.hero-banner__thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.hero-banner__thumb-placeholder {
    background: linear-gradient(145deg, var(--hero-border), var(--hero-tint));
}

.hero-banner__thumbs .swiper-slide-thumb-active .hero-banner__thumb {
    border-color: var(--hero-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--fs-color-primary) 15%, transparent);
    transform: translateY(-2px);
}

.hero-banner__thumbs .swiper-slide-thumb-active .hero-banner__thumb::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--hero-accent);
    transform: translateX(-50%);
}

.hero-banner__thumbs .swiper-slide {
    position: relative;
}


/* comic Archive */

.comics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

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

.comic-item {
    background: var(--fs-color-alert);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease;
}
.comic-item-banner {
    background: var(--fs-color-alert);
    overflow: hidden;
}

.thumbnail {
    aspect-ratio: 2/3;
    width: 100%;
    background-color: #888;
    border-radius: var(--border-radius);
}

.comic-item:hover {
    transform: translateY(-5px);
}

.comic-poster {
    position: relative;
}

.comic-poster.has-cover-hover,
.tim-truyen-card__cover.has-cover-hover {
    overflow: hidden;
}

.tim-truyen-card__cover > a {
    position: absolute;
    inset: 0;
    display: block;
}

.comic-hover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 12px 12px;
    background: linear-gradient(180deg, rgba(8, 12, 24, 0.62) 0%, rgba(8, 12, 24, 0.28) 42%, rgba(8, 12, 24, 0.78) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.comic-hover[style*="--hover-overlay"] {
    background: linear-gradient(180deg, color-mix(in srgb, var(--hover-overlay) 72%, transparent) 0%, color-mix(in srgb, var(--hover-overlay) 32%, transparent) 42%, color-mix(in srgb, var(--hover-overlay) 86%, transparent) 100%);
}

.comic-hover--info {
    justify-content: flex-start;
    gap: 2px;
    padding: 14px 14px 16px;
    background: rgba(255, 255, 255, 0.82);
    pointer-events: none;
    transition: none;
}

.comic-hover--info[style*="--hover-overlay"] {
    background: color-mix(in srgb, var(--hover-overlay) 82%, transparent);
}

.has-cover-hover:hover .comic-hover--info,
.has-cover-hover:focus-within .comic-hover--info {
    pointer-events: none;
}

.comic-hover__date,
.comic-hover__name,
.comic-hover__by,
.comic-hover__episode,
.comic-hover__views {
    margin: 0;
    min-width: 0;
    color: color-mix(in srgb, var(--hover-text, #3a3a3a) 78%, transparent);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.comic-hover__date {
    margin-bottom: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.comic-hover__name {
    color: var(--hover-text, #111);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-hover__by {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
}

.comic-hover__chip {
    display: inline-flex;
    align-self: flex-start;
    max-width: 100%;
    margin: 2px 0 4px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--hover-badge, #111);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.comic-hover__episode {
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-hover__views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.comic-hover__views svg {
    display: block;
    width: 13px;
    height: 13px;
    flex: none;
}

.has-cover-hover:hover .comic-hover,
.has-cover-hover:focus-within .comic-hover {
    opacity: 1;
    pointer-events: auto;
}

.comic-hover__excerpt {
    margin: 0;
    color: var(--hover-text, #fff);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-hover__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.comic-hover__read,
.comic-hover__go {
    text-decoration: none;
}

.comic-hover__read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--hover-btn, #ff6a2c);
    color: var(--hover-btn-text, #fff);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.comic-hover__read svg,
.comic-hover__go svg {
    display: block;
    width: 16px;
    height: 16px;
    flex: none;
}

.comic-hover__read:hover {
    background: color-mix(in srgb, var(--hover-btn, #ff6a2c) 86%, #fff);
    color: var(--hover-btn-text, #fff);
}

.comic-hover__go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--hover-arrow, rgba(255, 255, 255, 0.94));
    color: var(--hover-arrow-icon, #1f2937);
}

.comic-hover__go:hover {
    background: color-mix(in srgb, var(--hover-arrow, #fff) 88%, #fff);
    color: var(--hover-arrow-icon, #111827);
}

.comic-card-6 .has-cover-hover {
    border-radius: 9px;
}

@media (hover: none) {
    .comic-hover {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .comic-hover {
        transition: none;
    }
}

.comic-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tow-line {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.comic-meta {
    padding: 0.5rem;
}
.comic-meta-banner {
    padding: 5px;
    position: absolute;
    bottom: 0;
   background-color: #ffffffd3;
    width: 100%;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

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

.comic-title {
    display: flex;
    align-items: start;
    text-align: left;
    gap: 10px;
}
.comic-item  .comic-tag {
    margin: 0 0 5px 0;
    font-size: 1rem;
    line-height: 1.4;
    background-color: var(--fs-color-success);
    padding: 2px 4px;
    color: var(--fs-color-alert);
}
.comic-item .item-2-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    /* z-index: 1; */
    border-radius: 4px;

}

/* Item 1 */
.comic-card-1 {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--fs-color-primary) 8%, transparent);
}
.comic-card-1 .comic-poster .thumbnail {
    display: block;
    border-radius: 12px 12px 0 0;
}
.comic-card-1__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
    padding: 10px;
}
.comic-card-1__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.comic-card-1__title a {
    color: color-mix(in srgb, var(--fs-color-primary) 15%, #111827);
}
.comic-card-1__title a:hover {
    color: var(--fs-experimental-link-color-hover);
}
.comic-card-1__tag {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--fs-color-success);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    vertical-align: 2px;
}
.comic-card-1__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, var(--fs-color-primary) 10%, #fff);
    font-size: 12px;
    line-height: 1;
}
.comic-card-1__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-weight: 600;
}
.comic-card-1__chapter {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--fs-color-primary) 10%, #fff);
    color: var(--fs-color-primary);
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}
.comic-card-1__chapter:hover {
    background: color-mix(in srgb, var(--fs-color-primary) 18%, #fff);
    color: var(--fs-color-primary);
}

.comic-card-2 {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(30, 41, 59, 0.08);
}
.comic-card-2 .comic-poster .thumbnail {
    display: block;
    aspect-ratio: 4/5;
    border-radius: 12px 12px 0 0;
}
.comic-card-2__body {
    position: relative;
    flex: 1;
    margin: -14px 0 0;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 -2px 10px rgba(30, 41, 59, 0.06);
}
.comic-card-2__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.comic-card-2__title a {
    color: #0f172a;
    transition: color 0.3s ease;
}
.comic-card-2__title a:hover {
    color: var(--fs-color-primary);
}
.comic-card-2__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1;
}
.comic-card-2__rating,
.comic-card-2__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.comic-card-2__rating {
    color: #f59e0b;
    font-weight: 500;
}
.comic-card-2__count {
    color: #64748b;
}
.comic-card-2__rating + .comic-card-2__count {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid #e2e8f0;
}
.comic-card-2__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.comic-card-2__genres a {
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--fs-color-primary);
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.comic-card-3 {
    position: relative;
    background: #111114;
    border-radius: 12px;
}
.comic-card-3 .comic-poster .thumbnail {
    display: block;
    aspect-ratio: 2/3;
    border-radius: 0;
}
.comic-card-3 .comic-poster::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(to bottom, rgba(17, 17, 20, 0) 0%, rgba(17, 17, 20, 0.85) 60%, #111114 100%);
    pointer-events: none;
}
.comic-card-3__body {
    position: relative;
    margin-top: -90px;
    padding: 0 10px 10px;
    color: #fff;
}
.comic-card-3__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.comic-card-3__title a{
    color: #fff;
    transition: color 0.3s ease;
}
.comic-card-3__title a:hover{
    color: var(--fs-color-primary);
}
.comic-card-3__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1;
}
.comic-card-3__rating,
.comic-card-3__chapter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e5e7eb;
}
.comic-card-3__rating svg {
    color: #fbbf24;
    width: 16px;
    height: 16px;
}
a.comic-card-3__chapter:hover {
    color: #fff;
}
.comic-card-3__rating + .comic-card-3__chapter {
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.comic-card-3__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.comic-card-3__genres a {
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}
.comic-card-3__genres a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.comic-card-4 {
    display: flex;
    flex-direction: column;
    
}
.comic-card-4 .comic-poster {
    border-radius: 12px;
    overflow: hidden;
}
.comic-card-4 .comic-poster .thumbnail {
    display: block;
    aspect-ratio: 5/4;
    border-radius: 0;
}
.comic-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 2;
    padding: 3px 9px;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}
.comic-status-badge.is-0 { background: #f59e0b; }
.comic-status-badge.is-1 { background: #3b82f6; }
.comic-status-badge.is-2 { background: #22c55e; }
.comic-status-badge.is-3 { background: #7c8aa5; }
.comic-status-badge.has-color,
.tim-truyen-card__status.has-color {
    background: var(--comic-badge-bg);
}
.comic-status-badge.is-left,
.tim-truyen-card__status.is-left {
    left: 10px;
    right: auto;
}
.comic-status-badge.is-right,
.tim-truyen-card__status.is-right {
    left: auto;
    right: 10px;
}
.comic-card-4 .comic-status-badge,
.comic-card-4 .comic-status-badge.is-right,
.comic-card-4 .comic-cover-badge.is-right,
.comic-card-4 .comic-cover-badges.is-right {
    right: 64px;
}
.comic-card-4 .comic-status-badge.is-left,
.comic-card-4 .comic-cover-badge.is-left,
.comic-card-4 .comic-cover-badges.is-left {
    left: 10px;
    right: auto;
}
.comic-cover-badges {
    position: absolute;
    top: 6px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 3px;
}
.comic-cover-badges.is-left {
    left: 6px;
    right: auto;
}
.comic-cover-badges.is-right {
    right: 6px;
    left: auto;
}
.comic-cover-badges .comic-cover-badge,
.comic-cover-badges .comic-status-badge {
    position: static;
    top: auto;
    right: auto;
    left: auto;
}
.comic-cover-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 3px;
    background: var(--comic-badge-bg, #4f6bff);
    color: #fff;
    line-height: 0;
}
.comic-cover-badge svg {
    flex: none;
    width: 14px;
    height: 14px;
}
.comic-cover-badge.is-fire {
    background: linear-gradient(180deg, #ffb020 0%, #ff4d1a 100%);
}
.comic-cover-badge.is-fire.has-color {
    background: var(--comic-badge-bg);
}
.comic-cover-badge.is-free,
.comic-cover-badge.is-done {
    top: 0;
    z-index: 3;
    box-sizing: border-box;
    height: 28px;
    padding: 0 12px;
    border-bottom: 4px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 8px 0 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}
.comic-cover-badge.is-free {
    background: linear-gradient(270deg, #029568, #2ae1a0);
}
.comic-cover-badge.is-done {
    background: linear-gradient(270deg, #0244fa, #7aa8fe 125%);
}
.comic-cover-badge.is-free.is-left,
.comic-cover-badge.is-done.is-left {
    left: 0;
    right: auto;
    border-radius: 8px 0 12px 0;
}
.comic-cover-badge.is-free.is-right,
.comic-cover-badge.is-done.is-right {
    right: 0;
    left: auto;
}
.comic-cover-badge.is-free.has-color,
.comic-cover-badge.is-done.has-color {
    background: var(--comic-badge-bg);
}
*:has(> .comic-cover-badge.is-free.is-right) > .comic-cover-badges.is-right,
*:has(> .comic-cover-badge.is-done.is-right) > .comic-cover-badges.is-right,
*:has(> .comic-cover-badge.is-free.is-left) > .comic-cover-badges.is-left,
*:has(> .comic-cover-badge.is-done.is-left) > .comic-cover-badges.is-left {
    top: 32px;
}
.comic-card-4 .comic-cover-badge.is-free.is-right,
.comic-card-4 .comic-cover-badge.is-done.is-right {
    right: 64px;
}
.comic-card-9 .comic-cover-badge.is-free,
.comic-card-9 .comic-cover-badge.is-done {
    height: 22px;
    padding: 0 8px;
    border-bottom-width: 3px;
    border-radius: 0 8px 0 8px;
    font-size: 10px;
    line-height: 19px;
}
.comic-card-9 .comic-cover-badge.is-free.is-left,
.comic-card-9 .comic-cover-badge.is-done.is-left {
    border-radius: 8px 0 8px 0;
}
.comic-cover-badge.is-left {
    left: 10px;
    right: auto;
}
.comic-cover-badge.is-right {
    right: 10px;
    left: auto;
}
.comic-card-9 .comic-cover-badges {
    top: 6px;
    gap: 3px;
}
.comic-card-9 .comic-cover-badges.is-left {
    left: 6px;
}
.comic-card-9 .comic-cover-badges.is-right {
    right: 6px;
}
.comic-card-9 .comic-cover-badge {
    top: 6px;
    padding: 4px;
}
.comic-card-9 .comic-cover-badge svg {
    width: 12px;
    height: 12px;
}
.comic-card-9 .comic-cover-badge.is-left {
    left: 6px;
}
.comic-card-9 .comic-cover-badge.is-right {
    right: 6px;
}
.comic-card-9 .comic-cover-badge.is-free,
.comic-card-9 .comic-cover-badge.is-done {
    top: 0;
}
.comic-card-9 .comic-cover-badge.is-free.is-right,
.comic-card-9 .comic-cover-badge.is-done.is-right {
    right: 0;
    left: auto;
}
.comic-card-9 .comic-cover-badge.is-free.is-left,
.comic-card-9 .comic-cover-badge.is-done.is-left {
    left: 0;
    right: auto;
}
.comic-card-9__cover .comic-cover-badges.is-left ~ .comic-card-9__hot {
    top: 26px;
}
.comic-poster-banner {
    position: relative;
}
.comic-card-4__count {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 54px;
    padding: 6px 8px;
    border-radius: 0 0 0 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    font-size: 11px;
    line-height: 1.2;
}
.comic-card-4__count strong {
    color: #0f172a;
    font-size: 20px;
    font-weight: 600;
}
.comic-card-4__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 6px 4px;
}
.comic-card-4__title {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.comic-card-4__title a {
    color: #0f172a;
}
.comic-card-4__title a:hover {
    color: var(--fs-color-primary);
}
.comic-card-4__stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1;
}
.comic-card-4__rating,
.comic-card-4__views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.comic-card-4__rating {
    color: #f59e0b;
    font-weight: 500;
}
.comic-card-4__views {
    color: #64748b;
}
.comic-card-4__rating + .comic-card-4__views {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid var(--fs-color-base);
}
.comic-card-4__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.comic-card-4__genres a {
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--fs-color-primary);
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}
.comic-card-4__read {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--fs-color-primary) 35%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--fs-color-primary) 12%, #fff);
    color: var(--fs-color-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.comic-card-4__read:hover {
    background: color-mix(in srgb, var(--fs-color-primary) 20%, #fff);
    border-color: color-mix(in srgb, var(--fs-color-primary) 55%, transparent);
    color: var(--fs-color-primary);
}

.comic-card-6.comic-item {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    filter: none;
}
.comic-card-6 .comic-poster {
    filter: none;
}
.comic-card-6 .comic-poster img.thumbnail {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
    filter: none;
}
.comic-card-6__title {
    margin: 10px 0 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.comic-card-6__title a {
    color: color-mix(in srgb, var(--fs-color-primary) 15%, #111827);
}
.comic-card-6__title a:hover {
    color: var(--fs-color-primary);
}

.comic-card-7.comic-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}
.comic-card-7 .comic-poster {
    flex: 0 0 auto;
    width: clamp(72px, 38%, 156px);
    max-width: 46%;
}
.comic-card-7 .comic-poster .thumbnail {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 156 / 224;
    object-fit: cover;
    border-radius: 8px;
    background: #1f2937;
}
.comic-card-7__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    padding-top: 2px;
}
.comic-card-7__time {
    color: var(--fs-color-base, #777);
    font-size: 13px;
    line-height: 1.3;
}
.comic-card-7__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.comic-card-7__title a {
    color: color-mix(in srgb, var(--fs-color-primary) 15%, #111827);
}
.comic-card-7__title a:hover {
    color: var(--fs-color-primary);
}
.comic-card-7__chapter {
    max-width: 100%;
    color: var(--fs-color-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comic-card-7__chapter:hover {
    color: var(--fs-experimental-link-color-hover);
}
.comic-card-7__genre,
.comic-card-7__genre:hover {
    color: var(--fs-color-base, #777);
    font-size: 14px;
    line-height: 1.3;
}

.comic-card-7__views {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    color: var(--fs-color-base, #777);
    font-size: 14px;
    line-height: 1;
}

.comic-card-8.comic-item {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}
.comic-card-8 .comic-poster {
    border-radius: 12px;
    overflow: hidden;
}
.comic-card-8 .comic-poster::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 46%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
    pointer-events: none;
}
.comic-card-8 .comic-poster .thumbnail {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}
.comic-card-8__badges {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
}
.comic-card-8__badge {
    display: inline-block;
    max-width: 100%;
    min-width: 0;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(15, 30, 60, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comic-card-8__badge:hover {
    color: #fff;
}
.comic-card-8__badge--chapter {
    flex: 0 0 auto;
    margin-left: auto;
    max-width: none;
    background: #22a34a;
}
.comic-card-8__badge--chapter:hover {
    background: #1b8a3e;
    color: #fff;
}
.comic-card-8__foot {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
}
.comic-card-8__rank {
    flex: 0 0 auto;
    min-width: 0.7em;
    color: #e0a100;
    font-size: 2rem;
    font-weight: 800;
    line-height: 0.9;
}
.comic-card-8__text {
    min-width: 0;
    flex: 1;
}
.comic-card-8__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.comic-card-8__title a {
    color: color-mix(in srgb, var(--fs-color-primary) 15%, #111827);
}
.comic-card-8__title a:hover {
    color: var(--fs-experimental-link-color-hover);
}
.comic-card-8__origin,
.comic-card-8__line {
    margin-top: 2px;
    color: var(--fs-color-base, #777);
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-card-9.comic-item {
    display: flex;
    gap: 16px;
    padding: 14px;
    overflow: visible;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    background: var(--comic-item-bg, #fff);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.comic-card-9.comic-item:hover {
    transform: none;
    border-color: #d3dcec;
    box-shadow: 0 8px 24px rgba(26, 39, 68, 0.08);
}
.comic-card-9__cover {
    position: relative;
    flex: none;
    width: 112px;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    background: #eef2f8;
    overflow: hidden;
}
.comic-card-9__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.comic-card-9:hover .comic-card-9__cover img {
    transform: scale(1.04);
}
.comic-card-9__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--primary-color, var(--fs-color-primary));
    font-size: 2.2em;
    font-weight: 800;
}
.comic-card-9__hot {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 1px 7px;
    border-radius: 4px;
    background: #e5484d;
    color: #fff;
    font-size: 0.68em;
    font-weight: 800;
}
.comic-card-9__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.comic-card-9__title {
    margin: 0;
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.35;
}
.comic-card-9__title a {
    display: -webkit-box;
    overflow: hidden;
    color: #1a2744;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.comic-card-9__title a:hover {
    color: var(--primary-color, var(--fs-color-primary));
}
.comic-card-9__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.82em;
}
.comic-card-9__author {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: #7a869a;
}
.comic-card-9__author svg {
    flex: none;
    width: 14px;
    height: 14px;
}
.comic-card-9__status {
    padding: 1px 8px;
    border-radius: 4px;
    background: #f0f3f8;
    color: #7a869a;
    font-size: 0.92em;
    font-weight: 700;
}
.comic-card-9__status.is-1 {
    background: #eef1ff;
    color: #4655d4 ;
}
.comic-card-9__status.is-2 {
    background:  #e8f5ee;
    color:#1f8a4c;
}
.comic-card-9__excerpt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #56627a;
    font-size: 0.86em;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.comic-card-9__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.comic-card-9__genres a {
    padding: 1px 8px;
    border: 1px solid #e8edf5;
    border-radius: 4px;
    color: #7a869a;
    font-size: 0.75em;
}
.comic-card-9__genres a:hover {
    border-color: var(--primary-color, var(--fs-color-primary));
    color: var(--primary-color, var(--fs-color-primary));
}
.comic-card-9__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed #e8edf5;
    font-size: 0.8em;
}
.comic-card-9__chapters {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: none;
    color: #7a869a;
    font-weight: 600;
}
.comic-card-9__chapters svg {
    width: 14px;
    height: 14px;
}
.comic-card-9__latest {
    display: inline-flex;
    align-items: baseline;
    min-width: 0;
    color: #7a869a;
    font-weight: 400;
    white-space: nowrap;
}
.comic-card-9__latest time {
    overflow: hidden;
    text-overflow: ellipsis;
}
.comic-title {
    /*  cá»‘ Ä‘á»‹nh 2 hÃ ng */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.4;
}

.comic-original-title {
    font-size: 0.92rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.55;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    color: #ffc107;
}

.rating::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='gold' viewBox='0 0 24 24'><path d='M12 .587l3.668 7.431L24 9.753l-6 5.828L19.336 24 12 19.879 4.664 24 6 15.581 0 9.753l8.332-1.735z'/></svg>");
}

.comic-chapter-last a {
    font-size: 14px;
}

.pagination {
    margin-top: 30px; 
}
/* Container pagination */
.navigation.pagination {
    text-align: center;
    margin: 30px 0;
}

/* áº¨n heading nhÆ°ng váº«n giá»¯ cho screen reader */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Style cho cÃ¡c nÃºt phÃ¢n trang */
.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Style chung cho cÃ¡c nÃºt */
.page-numbers {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
}

/* Hover effect */
.page-numbers:hover:not(.current) {
    background: #f0f0f0;
    color: #333;
}

/* Trang hiá»‡n táº¡i */
.page-numbers.current {
    background: var(--primary-color);
    /* MÃ u xanh Ä‘áº¹p */
    color: white;
    font-weight: 600;
}


/* ========== Comic Info (mbv/comic-info.php) ========== */
.comic-container {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--fs-color-primary) 7%, var(--fs-color-alert));
    box-shadow: 0 8px 28px color-mix(in srgb, var(--fs-color-primary) 10%, transparent);
}

.comic-image-container {
    position: relative;
    flex: 0 0 176px;
    width: 176px;
    height: unset !important;
    align-self: flex-start;
    border-radius: 0.85rem;
    overflow: hidden;
    box-shadow: 0 10px 24px color-mix(in srgb, currentColor 14%, transparent);
}

.comic-container .comic-image-container img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.85rem;
}

.comic-image-container .comic-status-badge {
    position: absolute;
    top: 10px;
    right: auto;
    left: 10px;
    z-index: 1;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    background: var(--fs-color-primary);
    color: var(--fs-color-alert);
}

.comic-image-container .comic-status-badge.is-hot {
    background: var(--fs-color-success);
}

.comic-title-detail {
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    margin: 0;
    color: var(--fs-color-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comic-info {
    flex: 1;
    min-width: 0;
    padding: 0.1rem 0.15rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.comic-info__header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.comic-info__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0;
    border: 0;
    font-size: 0.9rem;
}

.comic-info__sep {
    width: 1px;
    height: 0.9em;
    background: currentColor;
    opacity: 0.2;
}

.comic-info__rating,
.comic-container .rating-box {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    text-decoration: none;
    color: inherit;
}

.comic-info__star {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    color: var(--fs-color-primary);
}

.comic-container .rating {
    color: inherit;
    font-weight: 700;
}

.comic-container .rating::after {
    display: none;
}

.comic-info__views {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0.8;
}

.comic-info__views svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

.comic-info__status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fs-color-primary);
    background: color-mix(in srgb, var(--fs-color-primary) 12%, var(--fs-color-alert));
}

.comic-info__status::before {
    content: "";
    width: 0.4em;
    height: 0.4em;
    border-radius: 50%;
    background: currentColor;
}

.comic-info__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.comic-info__genres a {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    color: var(--fs-color-primary);
    background: color-mix(in srgb, var(--fs-color-primary) 10%, var(--fs-color-alert));
    transition: background 0.2s ease, filter 0.2s ease;
}

.comic-info__genres a:hover {
    background: color-mix(in srgb, var(--fs-color-primary) 18%, var(--fs-color-alert));
    text-decoration: none;
}

.comic-info__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.75rem;
}

.comic-info__fact {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 140px;
}

.comic-info__fact-icon {
    width: 1.35rem;
    height: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.12rem;
    color: var(--fs-color-primary);
    opacity: 0.75;
}

.comic-info__fact-icon i {
    font-size: 1rem;
    line-height: 1;
}

.comic-info__fact-icon svg {
    width: 1rem;
    height: 1rem;
}

.comic-info__fact-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.5;
}

.comic-info__fact-value {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.35;
}

.comic-info__fact-value a {
    text-decoration: none;
}

.comic-info__fact-value a:hover {
    color: var(--fs-color-primary);
    text-decoration: underline;
}

ul.story-detail-menu {
    list-style-type: none;
    padding: 0.2rem 0 0;
    margin: auto 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
}

ul.story-detail-menu li {
    margin: 0;
    text-align: center;
    margin-left: 0 !important;
    min-width: 0;
}

ul.story-detail-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: auto;
    min-width: 148px;
    padding: 0.7rem 1.15rem;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    color: var(--fs-color-alert);
    transition: filter 0.2s ease, transform 0.2s ease;
}

ul.story-detail-menu a svg {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

ul.story-detail-menu a:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: var(--fs-color-alert);
}

ul.story-detail-menu .btn-start {
    background-color: var(--fs-color-primary);
}

ul.story-detail-menu .btn-end {
    background-color: var(--fs-color-success);
}

ul.story-detail-menu .btn-history {
    background: color-mix(in srgb, var(--fs-color-primary) 72%, var(--fs-color-secondary, #111));
}

/* ========== Comic Grid (comic_new_list) ========== */
.comics-section.has-title-color :is(h3, .comic-title, .comic-title-banner) a,
.comics-section.has-title-color :is(h3, .comic-title, .comic-title-banner) a:hover {
    color: var(--comics-title-color);
}
.comics-section :is(.comic-card-1, .comic-card-2, .comic-card-4, .tim-truyen-card) {
    background: var(--comic-item-bg, transparent);
}
.comics-section .comic-card-2__body {
    background: var(--comic-item-bg, #fff);
}
.comics-section :is(.comic-card-2__genres, .comic-card-4__genres, .tim-truyen-card__tags) a {
    background: transparent;
}
.comics-section.has-genre-bg :is(.comic-card-2__genres, .comic-card-4__genres, .tim-truyen-card__tags) a,
.comics-section.has-genre-bg :is(.comic-card-2__genres, .comic-card-4__genres, .tim-truyen-card__tags) a:visited {
    background: color-mix(in srgb, var(--fs-color-primary) 10%, #fff);
}
.comics-section.has-genre-bg :is(.comic-card-2__genres, .comic-card-4__genres, .tim-truyen-card__tags) a:hover {
    background: color-mix(in srgb, var(--fs-color-primary) 18%, #fff);
}
.comics-grid.comics-grid--cols {
    grid-template-columns: repeat(var(--cols-xl, 4), minmax(0, 1fr));
}

.comics-slider {
    position: relative;
    margin-bottom: 30px;
    padding: 4px 0 8px;
    overflow: hidden;
}
.comics-slider .swiper-wrapper {
    display: flex;
}
.comics-slider .swiper-slide {
    height: auto;
    flex-shrink: 0;
    width: calc((100% - (var(--cols-xs, 2) - 1) * 16px) / var(--cols-xs, 2));
    margin-right: 16px;
}
@media (min-width: 769px) {
    .comics-slider .swiper-slide {
        width: calc((100% - (var(--cols-md, var(--cols-xl, 4)) - 1) * 16px) / var(--cols-md, var(--cols-xl, 4)));
    }
}
@media (min-width: 1025px) {
    .comics-slider .swiper-slide {
        width: calc((100% - (var(--cols-xl, 4) - 1) * 16px) / var(--cols-xl, 4));
    }
}
.comics-slider__nav {
    position: absolute;
    top: 38%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}
.comics-slider__nav--prev { left: 8px; }
.comics-slider__nav--next { right: 8px; }
.comics-slider__nav::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
}
.comics-slider__nav--prev::before {
    transform: rotate(135deg);
    margin-left: 3px;
}
.comics-slider__nav--next::before {
    transform: rotate(-45deg);
    margin-right: 3px;
}
.comics-slider__nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}
.comics-slider__nav.swiper-button-lock {
    display: none;
}

/* ========== Danh sách top ranking (comic_top_ranking) ========== */
.top-rank-list {
    --top-rank-cut: polygon(94.239% 100%, 5.761% 100%, 5.761% 100%, 4.826% 99.95%, 3.94% 99.803%, 3.113% 99.569%, 2.358% 99.256%, 1.687% 98.87%, 1.111% 98.421%, 0.643% 97.915%, 0.294% 97.362%, 0.075% 96.768%, 0% 96.142%, 0% 3.858%, 0% 3.858%, 0.087% 3.185%, 0.338% 2.552%, 0.737% 1.968%, 1.269% 1.442%, 1.92% 0.984%, 2.672% 0.602%, 3.512% 0.306%, 4.423% 0.105%, 5.391% 0.008%, 6.4% 0.024%, 94.879% 6.625%, 94.879% 6.625%, 95.731% 6.732%, 96.532% 6.919%, 97.272% 7.178%, 97.942% 7.503%, 98.533% 7.887%, 99.038% 8.323%, 99.445% 8.805%, 99.747% 9.326%, 99.935% 9.88%, 100% 10.459%, 100% 96.142%, 100% 96.142%, 99.925% 96.768%, 99.706% 97.362%, 99.357% 97.915%, 98.889% 98.421%, 98.313% 98.87%, 97.642% 99.256%, 96.887% 99.569%, 96.06% 99.803%, 95.174% 99.95%, 94.239% 100%);
    --top-rank-cut-alt: polygon(5.761% 100%, 94.239% 100%, 94.239% 100%, 95.174% 99.95%, 96.06% 99.803%, 96.887% 99.569%, 97.642% 99.256%, 98.313% 98.87%, 98.889% 98.421%, 99.357% 97.915%, 99.706% 97.362%, 99.925% 96.768%, 100% 96.142%, 100% 3.858%, 100% 3.858%, 99.913% 3.185%, 99.662% 2.552%, 99.263% 1.968%, 98.731% 1.442%, 98.08% 0.984%, 97.328% 0.602%, 96.488% 0.306%, 95.577% 0.105%, 94.609% 0.008%, 93.6% 0.024%, 5.121% 6.625%, 5.121% 6.625%, 4.269% 6.732%, 3.468% 6.919%, 2.728% 7.178%, 2.058% 7.503%, 1.467% 7.887%, 0.962% 8.323%, 0.555% 8.805%, 0.253% 9.326%, 0.065% 9.88%, 0% 10.459%, 0% 96.142%, 0% 96.142%, 0.075% 96.768%, 0.294% 97.362%, 0.643% 97.915%, 1.111% 98.421%, 1.687% 98.87%, 2.358% 99.256%, 3.113% 99.569%, 3.94% 99.803%, 4.826% 99.95%, 5.761% 100%);
    margin-bottom: 30px;
}
.top-rank-list .comics-slider {
    margin-bottom: 0;
}
.top-rank {
    min-width: 0;
}
.top-rank__cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: transparent;
}
.top-rank__mask,
.top-rank__cover img {
    position: absolute;
    inset: 0;
    clip-path: var(--top-rank-cut);
}
.top-rank__mask {
    z-index: 0;
    background: color-mix(in srgb, var(--top-rank-accent, var(--fs-color-primary)) 8%, transparent);
    pointer-events: none;
}
.top-rank__cover img {
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}
.top-rank-slider .swiper-slide:nth-child(2n) .top-rank__mask,
.top-rank-slider .swiper-slide:nth-child(2n) .top-rank__cover img {
    clip-path: var(--top-rank-cut-alt);
}
.top-rank__cover:hover img {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    top: 4px;
    left: 4px;
}
.top-rank__cover:hover .top-rank__mask {
    background: var(--top-rank-accent, var(--fs-color-primary));
}
.top-rank__pin {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    max-width: calc(100% - 16px);
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem 0.3rem 0 0;
    background: var(--top-rank-pin, color-mix(in srgb, var(--top-rank-accent, var(--fs-color-primary)) 14%, #fff));
    color: var(--top-rank-accent, var(--fs-color-primary));
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateX(-50%);
}
.top-rank__meta {
    position: relative;
    min-width: 0;
    min-height: 42px;
    margin-top: 10px;
    padding-left: 60px;
    text-align: left;
}
.top-rank__meta--wide {
    padding-left: 95px;
}
.top-rank__no {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    padding: 0 0.14em 0.06em 0.04em;
    background-image: linear-gradient(90deg, color-mix(in srgb, var(--top-rank-no, var(--fs-color-primary)) 65%, #fff), var(--top-rank-no, var(--fs-color-primary)));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-size: 4.2em;
    font-weight: 800;
    font-style: italic;
    line-height: 0.86;
    text-align: left;
}
.top-rank__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.top-rank__title {
    margin: 0;
    font-size: 1em;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-rank__title a {
    color: var(--top-rank-title, color-mix(in srgb, var(--fs-color-primary) 15%, #000));
}
.top-rank__title a:hover {
    color: var(--fs-experimental-link-color-hover);
}
.top-rank__origin,
.top-rank__line {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-rank__origin {
    color: var(--top-rank-muted, var(--fs-color-base, #777));
}
.top-rank__line {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--top-rank-accent, var(--fs-color-primary));
}
.top-rank__line svg {
    flex: none;
    width: 14px;
    height: 14px;
}

/* top ranking — kiểu 2 phủ bìa (Lezhin) */
.top-rank-list--2 .top-rank--overlay,
.top-rank-list--overlay .top-rank--overlay {
    min-width: 0;
}
.top-rank-list--2 .top-rank__card,
.top-rank-list--overlay .top-rank__card {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 4px;
    background: color-mix(in srgb, var(--top-rank-accent, var(--fs-color-primary)) 6%, #f4f4f5);
    container-type: inline-size;
}
.top-rank-list--2 .top-rank__thumb,
.top-rank-list--overlay .top-rank__thumb {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}
.top-rank-list--2 .top-rank__thumb img,
.top-rank-list--overlay .top-rank__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.top-rank-list--2 .top-rank__card:hover .top-rank__thumb img,
.top-rank-list--overlay .top-rank__card:hover .top-rank__thumb img {
    transform: scale(1.04);
}
.top-rank-list--2 .top-rank__body,
.top-rank-list--overlay .top-rank__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    padding: 40px 12px 12px;
    background: linear-gradient(rgba(17, 17, 21, 0), rgba(17, 17, 21, 0.55));
    color: #fff;
    pointer-events: none;
}
.top-rank-list--2 .top-rank__no,
.top-rank-list--overlay .top-rank__no {
    position: static;
    width: auto;
    padding: 0;
    margin: 0;
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    color: var(--top-rank-no, #fff);
    -webkit-text-fill-color: var(--top-rank-no, #fff);
    font-size: clamp(2.2rem, 34cqw, 3.5rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    text-shadow: rgba(17, 17, 21, 0.85) 0 0 8px;
}
.top-rank-list--2 .top-rank__title,
.top-rank-list--overlay .top-rank__title {
    margin: 0 0 4px;
    color: var(--top-rank-title, #fff);
    font-size: 1em;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: rgba(17, 17, 21, 0.85) 0 0 3px;
}
.top-rank-list--2 .top-rank__meta-line,
.top-rank-list--overlay .top-rank__meta-line {
    display: block;
    margin: 0;
    color: var(--top-rank-muted, #fff);
    font-size: 0.75em;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: rgba(17, 17, 21, 0.85) 0 0 3px;
}

/* top ranking — kiểu 3 Webtoon */
.top-rank-list--3 .top-rank--webtoon {
    min-width: 0;
}
.top-rank-list--3 .top-rank__card {
    display: block;
    color: inherit;
    text-decoration: none;
    container-type: inline-size;
}
.top-rank-list--3 .top-rank__thumb {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 4px;
    background: color-mix(in srgb, var(--top-rank-accent, var(--fs-color-primary)) 6%, #f4f4f5);
}
.top-rank-list--3 .top-rank__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.top-rank-list--3 .top-rank__card:hover .top-rank__thumb img {
    transform: scale(1.03);
}
.top-rank-list--3 .top-rank__rankrow {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: -33px;
    padding-left: 2px;
    line-height: 1;
}
.top-rank-list--3 .top-rank__no {
    position: relative;
    display: inline-block;
    width: auto;
    padding: 0;
    margin: 0;
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    color: var(--top-rank-no, #111);
    -webkit-text-fill-color: var(--top-rank-no, #111);
    font-size: clamp(2.6rem, 42cqw, 4.2rem);
    font-weight: 800;
    font-style: normal;
    line-height: 0.85;
    letter-spacing: -0.04em;
    text-shadow: none;
    z-index: 0;
}
/* Viền kiểu WEBTOON: ::after mép tối ngoài, ::before viền trắng dày */
.top-rank-list--3 .top-rank__no::before,
.top-rank-list--3 .top-rank__no::after {
    content: attr(data-rank);
    position: absolute;
    left: 0;
    top: 0;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    pointer-events: none;
    user-select: none;
}
.top-rank-list--3 .top-rank__no::after {
    z-index: -2;
    -webkit-text-stroke: 0.16em rgba(17, 17, 21, 0.45);
}
.top-rank-list--3 .top-rank__no::before {
    z-index: -1;
    -webkit-text-stroke: 0.11em #fff;
}
.top-rank-list--3 .top-rank__title {
    display: block;
    margin: 0.35em 0 0.15em;
    color: var(--top-rank-title, #111);
    font-size: 0.95em;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-rank-list--3 .top-rank__genre {
    display: block;
    margin: 0;
    color: var(--top-rank-muted, #888);
    font-size: 0.8em;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.top-rank-list--empty {
    margin: 0;
    padding: 16px;
    color: var(--fs-color-base, #777);
    font-size: 0.95em;
}

/* ========== Tabs Ranking (comic_tabs_ranking) ========== */
.top-comics {
    --top-accent: var(--fs-color-primary);
    --top-ink: color-mix(in srgb, var(--fs-color-primary) 15%, #111827);
    --top-muted: color-mix(in srgb, var(--fs-color-primary) 15%, #9ca3af);
    --top-line: color-mix(in srgb, var(--fs-color-primary) 12%, #fff);
    --top-tint: color-mix(in srgb, var(--fs-color-primary) 6%, #fff);
  }
  
  .top-comics__tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--top-line);
    margin-bottom: 8px;
  }
  
  .top-comics__tab {
    flex: 1;
    appearance: none;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    margin-bottom: -1px;
    padding: 10px 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--top-muted);
    cursor: pointer;
    line-height: 1.2;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  }
  
  .top-comics__tab:hover {
    color: var(--top-accent);
  }
  
  .top-comics__tab.is-active {
    color: var(--top-accent);
    font-weight: 600;
    border-bottom-color: var(--top-accent);
    /* background-color: color-mix(in srgb, var(--fs-color-primary) 15%, #fff); */
  }
  
  .top-comics__panel {
    display: none;
  }
  
  .top-comics__panel.is-active {
    display: block;
  }
  
  .top-comics__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .top-comics__item {
    margin: 0;
    padding: 0;
  }
  
  .top-comics__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
  }
  
  .top-comics__link:hover {
    /* background-color: var(--top-tint); */
    border-radius: 8px;
    border: 1px solid var(--fs-color-primary);
    transition: background-color 0.3s ease;
  }
  
  .top-comics__link:hover .top-comics__title {
    color: var(--top-accent);
    /* filter: brightness(1.05); */
  }
  
  .top-comics__rank {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #4b5563;
    line-height: 1;
  }
  
  .top-comics__rank--1,
  .top-comics__rank--2,
  .top-comics__rank--3 {
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
  }
  
  .top-comics__rank--1 {
    background: #f5b800;
  }
  
  .top-comics__rank--2 {
    background: #9ca3af;
  }
  
  .top-comics__rank--3 {
    background: #c4a484;
  }
  
  .top-comics__thumb {
    flex: 0 0 48px;
    width: 48px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
  }
  
  .top-comics__thumb img,
  .top-comics__thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .top-comics__thumb-placeholder {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  }
  
  .top-comics__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  .top-comics__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--top-ink);
    transition: color 0.15s ease;
  }
  
  .top-comics__views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--top-muted);
    line-height: 1;
  }
  
  .top-comics__flame {
    color: #f97316;
    flex-shrink: 0;
  }
  
  .top-comics__empty {
    margin: 0;
    padding: 16px 4px;
    font-size: 13px;
    color: var(--top-muted);
  }

/* ========== Sidebar top tháng (comic_side_top) ========== */
.side-top {
    --side-top-ink: #1a1d26;
    --side-top-muted: #7a8494;
    --side-top-thumb: #e8ecf2;
    --side-top-rank: #c5ced9;
    container-type: inline-size;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background: none;
    color: var(--side-top-muted);
    font-size: 14px;
    line-height: 1.5;
}

.side-top__list {
    display: block;
}

.side-top__item {
    display: flex;
    align-items: center;
}

.side-top__item + .side-top__item {
    margin-top: 0.75rem;
}

.side-top__rank {
    width: 38px;
    flex-shrink: 0;
    text-align: left;
    font-size: 2.55em;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: transparent;
    -webkit-text-stroke: 1.25px var(--side-top-rank);
}

.side-top__rank--wide {
    font-size: 1.7em;
    letter-spacing: -0.05em;
}

.side-top__card {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    background: none;
    color: inherit;
    text-decoration: none;
}

.side-top__thumb {
    position: relative;
    flex: 0 0 58px;
    width: 58px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 0.5rem;
    background: var(--side-top-thumb);
}

.side-top__thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-top__card:hover .side-top__thumb img {
    opacity: 0.86;
}

.side-top__info {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45rem 0.65rem;
}

.side-top__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0 0 0.28rem;
    color: var(--side-top-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}

.side-top__alias {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    overflow: hidden;
    margin: 0 0 0.35rem;
    color: var(--side-top-muted);
    font-size: 0.9em;
    font-weight: 400;
    line-height: 1.4;
}

.side-top__chapter {
    color: var(--side-top-muted);
    font-size: 0.9em;
    line-height: 1.4;
}

.side-top__empty {
    margin: 0;
    padding: 8px 0 4px;
    font-size: 13px;
    color: var(--side-top-muted);
}

@container (min-width: 340px) {
    .side-top {
        font-size: 16px;
    }

    .side-top__item + .side-top__item {
        margin-top: 1rem;
    }

    .side-top__rank {
        width: 60px;
        font-size: 4em;
    }

    .side-top__rank--wide {
        font-size: 2.5em;
    }

    .side-top__thumb {
        flex-basis: 80px;
        width: 80px;
    }

    .side-top__info {
        padding: 0.6rem 1rem;
    }

    .side-top__title {
        margin-bottom: 0.4rem;
        font-size: 16px;
        line-height: 1.5;
    }

    .side-top__alias {
        margin-bottom: 0.5rem;
    }
}

/* ========== Flatsome UX Builder tabs (sync with .top-comics__tabs) ========== */
.tabbed-content > ul.nav[role="tablist"]:not(.nav-vertical) {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    border-bottom: 1px solid color-mix(in srgb, var(--fs-color-primary) 12%, #fff);
    margin-bottom: 8px;
    justify-content: flex-start;
}

.tabbed-content > ul.nav[role="tablist"]:not(.nav-vertical) > li.tab {
    flex: 1;
    float: none;
    margin: 0 0 -1px;
    padding: 0;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.tabbed-content > ul.nav[role="tablist"]:not(.nav-vertical) > li.tab > a {
    display: block;
    width: 100%;
    padding: 10px 8px 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    text-align: center;
    color: color-mix(in srgb, var(--fs-color-primary) 15%, #9ca3af);
    transition: color 0.2s ease;
}

.tabbed-content > ul.nav[role="tablist"]:not(.nav-vertical) > li.tab > a:before {
    display: none !important;
    content: none !important;
}

.tabbed-content > ul.nav[role="tablist"]:not(.nav-vertical) > li.tab:hover > a {
    color: var(--fs-color-primary);
}

.tabbed-content > ul.nav[role="tablist"]:not(.nav-vertical) > li.tab.active {
    border-bottom-color: var(--fs-color-primary);
    /* background-color: color-mix(in srgb, var(--fs-color-primary) 15%, #fff); */
}

.tabbed-content > ul.nav[role="tablist"]:not(.nav-vertical) > li.tab.active > a {
    color: var(--fs-color-primary);
    font-weight: 600;
}

/* ========== Updated Comics (comic_updated_list) ========== */
.updated-comics {
  margin-bottom: 30px;
}

.updated-comics__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.updated-comics__item {
  margin: 0;
  padding: 0;
  min-width: 0;
}

.updated-comics__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--fs-color-primary) 12%, #fff);
  border-radius: 10px;
  text-decoration: none;
  background: transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.updated-comics__link:hover {
  border-color: var(--fs-color-primary);
  background: color-mix(in srgb, var(--fs-color-primary) 6%, transparent);
}

.updated-comics__link:hover .updated-comics__title {
  color: var(--fs-experimental-link-color-hover, var(--fs-color-primary));
}

.updated-comics__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  background: color-mix(in srgb, var(--fs-color-secondary) 18%, transparent);
}

.updated-comics__thumb img,
.updated-comics__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.updated-comics__thumb-placeholder {
  background: color-mix(in srgb, var(--fs-color-secondary) 25%, transparent);
}

.updated-comics__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.updated-comics__title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fs-color-primary);
}

.updated-comics__meta {
  font-size: 12px;
  line-height: 1.3;
  color: currentColor;
}

/* ========== Category List (comic_category_list) ========== */
.my-taxonomy-list ul,
.my-taxonomy-list--wrap ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: visible;
    list-style: none;
    margin: 0;
    padding: 0;
}

.my-taxonomy-list--scroll ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--fs-color-secondary) 55%, #c5c5c5) transparent;
}

.my-taxonomy-list--scroll ul::-webkit-scrollbar {
    height: 6px;
}

.my-taxonomy-list--scroll ul::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--fs-color-secondary) 55%, #8a8a8a);
    border-radius: 999px;
}

.my-taxonomy-list ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    margin-left: 0 !important;
}

.my-taxonomy-list--scroll ul li {
    flex-shrink: 0;
}

.my-taxonomy-list ul li a {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--fs-color-secondary) 72%, #fff);
    border-radius: 8px;
    color: var(--fs-color-secondary);
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.my-taxonomy-list ul li a:hover {
    background: var(--fs-color-secondary);
    border-color: var(--fs-color-secondary);
    color: #fff;
}

/* ========== Search page ========== */
.search-novel-page {
    --search-blue: var(--fs-color-primary);
    --search-blue-soft: color-mix(in srgb, var(--search-blue) 10%, transparent);
    --search-ink: #17233d;
    --search-muted: #72809a;
    --search-line: #e6edf7;
    --search-card: #fff;
    --search-title: #10203c;
    --search-on: #fff;
    padding-bottom: 34px;
    color: var(--search-ink);
}

.search-novel-hero {
    position: relative;
    margin: 0 calc(50% - 50vw) 18px;
    padding: 18px calc(50vw - 50%) 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--search-card) 0%, var(--search-blue-soft) 100%);
    border-bottom: 1px solid var(--search-line);
}

.search-novel-breadcrumb {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--search-muted);
    font-size: 0.86rem;
}

.search-novel-breadcrumb a {
    color: inherit;
}

.search-novel-breadcrumb a::before {
    content: "⌂";
    margin-right: 6px;
}

.search-novel-breadcrumb span::before {
    content: "›";
    margin-right: 10px;
    color: #9aa8bd;
}



.search-novel-hero h1 {
    margin: 0;
    color: var(--search-title);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.search-novel-hero h1 span {
    color: var(--search-blue);
}

.search-novel-hero p {
    margin: 8px 0 14px;
    color: var(--search-muted);
    font-size: 1rem;
}

.search-novel-form {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 6px;
    border: 1px solid var(--search-line);
    border-radius: 12px;
    background: var(--search-card);
    box-shadow: 0 12px 30px rgba(15, 41, 82, 0.08);
}

.search-novel-form__icon {
    position: absolute;
    left: 18px;
    color: #7e8da5;
    font-size: 1.3rem;
    line-height: 1;
}

.search-novel-form input[type="search"] {
    flex: 1;
    height: 46px;
    margin: 0;
    padding: 0 16px 0 40px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--search-ink);
    font-size: 1rem;
}

.search-novel-form input[type="search"]:focus {
    outline: none;
    box-shadow: none;
}

.search-novel-form button {
    height: 46px;
    min-height: 0;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 9px;
    background: var(--search-blue);
    color: var(--search-on);
    font-weight: 700;
    line-height: 46px;
    text-transform: none;
    box-shadow: 0 8px 20px rgba(8, 118, 255, 0.26);
}

.search-novel-keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--search-muted);
    font-size: 0.84rem;
}

.search-novel-keywords a,
.search-novel-keywords a:visited {
    padding: 5px 13px;
    border: 1px solid var(--search-line);
    border-radius: 999px;
    background: var(--search-card);
    color: var(--search-muted);
    font-weight: 600;
}

/* ========== Search head — Kiểu 1 (banner) ========== */
.search-novel-hero--banner {
    --search-blue: var(--fs-color-primary);
    --search-blue-soft: color-mix(in srgb, var(--search-blue) 10%, transparent);
    --search-ink: #17233d;
    --search-muted: #72809a;
    --search-line: #e6edf7;
    --search-card: #fff;
    --search-title: #10203c;
    --search-on: #fff;
    --search-banner-min: 360px;
    --search-banner-bg: linear-gradient(135deg, var(--search-card) 0%, var(--search-blue-soft) 100%);
    display: block;
    margin: 0 calc(50% - 50vw) 22px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    isolation: isolate;
    overflow: visible;
}

.search-novel-hero--banner.is-container {
    margin-left: 0;
    margin-right: 0;
    overflow: hidden;
    border-radius: 20px;
}

.container .search-novel-hero--banner.is-container.container {
    width: 100%;
    max-width: none;
}

.search-novel-hero--banner__bg,
.search-novel-hero--banner .search-novel-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--search-banner-bg);
    border-radius: inherit;
}

.search-novel-hero--banner.is-full .search-novel-hero__bg {
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    border-radius: 0;
}

.search-novel-hero--banner .search-novel-hero__bg picture,
.search-novel-hero--banner .search-novel-hero__bg img {
    display: block;
    width: 100%;
    height: 100%;
}

.search-novel-hero--banner .search-novel-hero__bg img {
    object-fit: cover;
    object-position: 72% center;
}

.search-novel-hero--banner .search-novel-hero__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
}

.search-novel-hero--banner.is-on-media .search-novel-hero__shade {
    background:
        linear-gradient(90deg, rgba(18, 12, 36, 0.72) 0%, rgba(18, 12, 36, 0.4) 42%, rgba(18, 12, 36, 0.12) 72%, rgba(18, 12, 36, 0.28) 100%),
        linear-gradient(180deg, rgba(18, 12, 36, 0.12) 0%, rgba(18, 12, 36, 0) 40%, rgba(18, 12, 36, 0.28) 100%);
}

.search-novel-hero--banner .search-novel-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--search-banner-min);
    padding-top: 36px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

/* Nền full; chữ/ô tìm giữ đúng khung container */
.search-novel-hero--banner.is-full > .search-novel-hero__inner.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.search-novel-hero--banner.is-container .search-novel-hero__inner {
    padding-right: 28px;
    padding-left: 28px;
}

.search-novel-hero--banner .search-novel-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 28px 40px;
    align-items: end;
}

.search-novel-hero--banner .search-novel-hero__copy {
    max-width: 560px;
    padding-bottom: 8px;
}

.search-novel-hero--banner h1 {
    margin: 0 0 12px;
    color: var(--search-title);
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.search-novel-hero--banner.is-on-media h1 {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.search-novel-hero--banner h1 span {
    display: inline;
    background: linear-gradient(90deg, #7ec8ff 0%, #b38bff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.search-novel-hero--banner:not(.is-on-media) h1 span {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--search-blue);
    -webkit-text-fill-color: unset;
}

.search-novel-hero--banner .search-novel-hero__copy > p {
    margin: 0 0 22px;
    max-width: 46ch;
    color: var(--search-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.search-novel-hero--banner.is-on-media .search-novel-hero__copy > p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.search-novel-hero--banner .search-novel-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.search-novel-hero--banner .search-novel-hero__stats li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--search-ink);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.search-novel-hero--banner.is-on-media .search-novel-hero__stats li {
    color: rgba(255, 255, 255, 0.95);
}

.search-novel-hero--banner .search-novel-hero__stat-icon {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--search-blue) 14%, #fff);
    color: var(--search-blue);
}

.search-novel-hero--banner.is-on-media .search-novel-hero__stat-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.search-novel-hero--banner .search-novel-hero__stat-icon svg {
    display: block;
    width: 15px;
    height: 15px;
}

.search-novel-hero--banner .search-novel-hero__panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(12, 24, 56, 0.18);
    backdrop-filter: blur(10px);
}

.search-novel-hero--banner:not(.is-on-media) .search-novel-hero__panel {
    border-color: var(--search-line);
    background: var(--search-card);
    box-shadow: 0 14px 32px rgba(15, 41, 82, 0.08);
    backdrop-filter: none;
}

.search-novel-hero--banner .search-novel-form {
    margin: 0;
    padding: 5px;
    border: 0;
    border-radius: 12px;
    background: #f3f5f9;
    box-shadow: none;
}

.search-novel-hero--banner .search-novel-form__icon {
    left: 16px;
    display: inline-flex;
    align-items: center;
    color: #8a97ad;
}

.search-novel-hero--banner .search-novel-form__icon svg {
    display: block;
}

.search-novel-hero--banner .search-novel-form input[type="search"] {
    height: 44px;
    padding-left: 42px;
    font-size: 0.95rem;
}

.search-novel-hero--banner .search-novel-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(8, 118, 255, 0.22);
}

.search-novel-hero--banner .search-novel-form button svg {
    display: block;
    flex: 0 0 16px;
}

.search-novel-hero--banner .search-novel-keywords {
    margin-top: 14px;
    gap: 8px;
}

.search-novel-hero--banner .search-novel-keywords > span {
    color: var(--search-muted);
    font-weight: 600;
}

.search-novel-hero--banner .search-novel-keywords a,
.search-novel-hero--banner .search-novel-keywords a:visited {
    padding: 3px 12px;
    border-color: #e4eaf3;
    background: #f5f7fb;
    color: #5f6f88;
    font-size: 0.82rem;
}

.search-novel-hero--banner .search-novel-keywords a:hover {
    border-color: color-mix(in srgb, var(--search-blue) 35%, #e4eaf3);
    background: color-mix(in srgb, var(--search-blue) 10%, #fff);
    color: var(--search-blue);
}

.search-novel-sidebar,
.search-novel-results {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.search-novel-sidebar {
    position: sticky;
    top: 16px;
    border: 1px solid var(--search-line);
    border-radius: 12px;
    background: var(--search-card);
    box-shadow: 0 12px 28px rgba(15, 41, 82, 0.05);
    overflow: hidden;
}

.search-filter-all,
.search-filter-list a,
.search-filter-checks a,
.search-filter-radio a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--search-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.search-filter-all {
    padding: 11px 14px;
    border-bottom: 1px solid var(--search-line);
}

.search-filter-all {
    background: var(--search-blue-soft);
    color: var(--search-blue);
}

.search-filter-box {
    padding: 11px 14px;
    border-bottom: 1px solid var(--search-line);
}

.search-filter-box:last-child {
    border-bottom: 0;
}

.search-filter-toggle {
    display: none;
}

.search-filter-toggle,
.search-filter-box__label {
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--search-ink);
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.search-filter-box__label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.search-filter-toggle i,
.search-filter-box__label i {
    flex: none;
    width: 7px;
    height: 7px;
    margin-right: 3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.55;
    transform: translateY(2px) rotate(-135deg);
    transition: transform 0.2s;
}

.search-filter-box.is-collapsed .search-filter-box__label {
    margin-bottom: 0;
}

.search-filter-box.is-collapsed .search-filter-box__label i {
    transform: translateY(-2px) rotate(45deg);
}

.search-filter-box.is-collapsed .search-filter-list,
.search-filter-box.is-collapsed .search-filter-checks,
.search-filter-box.is-collapsed .search-filter-radio {
    display: none;
}

.search-filter-list,
.search-filter-checks,
.search-filter-radio {
    display: grid;
    gap: 6px;
}

.search-filter-all,
.search-filter-list a,
.search-filter-checks a,
.search-filter-radio a {
    font-size: 0.88rem;
}

.search-filter-list .search-filter-list__all {
    display: none;
}

.search-filter-list a strong {
    color: #8a97ad;
    font-size: 0.84rem;
}

.search-filter-list a.is-active,
.search-filter-list a:hover,
.search-filter-checks a.is-active,
.search-filter-radio a.is-active {
    color: var(--search-blue);
}

.search-filter-checks a,
.search-filter-radio a {
    justify-content: flex-start;
}

.search-filter-checks a span,
.search-filter-radio a span {
    width: 14px;
    height: 14px;
    border: 1px solid #c9d4e4;
    background: #fff;
}

.search-filter-checks a span {
    border-radius: 50%;
}

.search-filter-radio a span {
    border-radius: 50%;
}

.search-filter-checks a.is-active span,
.search-filter-radio a.is-active span {
    border-color: var(--search-blue);
    background: var(--search-blue);
    box-shadow: inset 0 0 0 3px var(--search-card);
}

/* ========== Search filterbar (reuse novel-archive__bar) ========== */
.search-novel-filters {
    --novel-accent: var(--search-blue, var(--fs-color-primary));
    --novel-ink: var(--search-ink, #17233d);
    --novel-sub: var(--search-muted, #72809a);
    --novel-line: var(--search-line, #e6edf7);
    --filter-surface: var(--search-card, #fff);
    --filter-track: color-mix(in srgb, var(--novel-accent) 8%, #fff);
    --filter-chip: var(--novel-sub);
    --filter-on: #fff;
    width: 100%;
    min-width: 0;
    margin-bottom: 16px;
}

.search-novel-filters .novel-archive__filters,
.search-novel-filters .novel-archive__bar {
    margin-bottom: 0;
}
.search-results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.search-results-head__title {
    margin: 0 0 4px;
    color: var(--search-ink);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.search-results-head__title span {
    color: var(--search-blue);
}

.search-results-head p {
    margin: 0;
    color: var(--search-muted);
    font-size: 0.92rem;
}

.search-novel-list {
    display: grid;
    grid-template-columns: repeat(var(--cols-xl, 1), minmax(0, 1fr));
    gap: 14px;
}

.search-novel-items {
    width: 100%;
    min-width: 0;
}

.search-novel-items .comics-grid {
    margin: 0;
}

.search-story-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 140px;
    gap: 16px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--search-line);
    border-radius: 13px;
    background: var(--search-card);
    box-shadow: 0 10px 24px rgba(15, 41, 82, 0.045);
}

.search-story-card.is-plain {
    grid-template-columns: 112px minmax(0, 1fr);
}

.search-story-card__cover {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    align-self: start;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #d9e5f6;
}

.search-story-card__cover img,
.search-story-card__placeholder {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0;
    object-fit: cover;
}

.search-story-card__placeholder {
    display: grid;
    place-items: center;
    color: var(--search-blue);
    font-size: 2rem;
    font-weight: 800;
}

.search-story-card__body {
    min-width: 0;
    align-self: center;
}

.search-story-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
}

.search-story-card__title-row h3 {
    margin: 0;
    color: var(--search-ink);
    font-size: 1.1rem;
    line-height: 1.35;
}

.search-story-card__title-row h3 a {
    color: inherit;
}

.search-story-card__status {
    padding: 2px 8px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}

.search-story-card__status.is-live {
    background: #f05b68;
}

.search-story-card__status.is-full {
    background: #0ca678;
}

.search-story-card__status.is-soon {
    background: #f59f00;
}

.search-story-card__status.is-wait {
    background: #7c8aa5;
}

.search-story-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 8px;
    color: var(--search-muted);
    font-size: 0.83rem;
}

.search-story-card__meta span,
.search-story-card__meta time {
    position: relative;
}

.search-story-card__meta span:not(:first-child)::before,
.search-story-card__meta time::before {
    content: "•";
    position: absolute;
    left: -10px;
    color: #b0bbcc;
}

.search-story-card__body p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--search-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-story-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.search-story-card__tags a {    
    padding: 4px 10px;
    border-radius: 7px;
    background: var(--search-blue-soft);
    color: var(--search-blue);
    font-size: 0.78rem;
    font-weight: 700;
}

.search-story-card__side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding-left: 16px;
    border-left: 1px solid var(--search-line);
}

.search-story-card__stats strong,
.search-story-card__stats span {
    display: block;
}

.search-story-card__stats strong {
    color: var(--search-ink);
    font-size: 1rem;
}

.search-story-card__stats span {
    color: var(--search-muted);
    font-size: 0.78rem;
}

.search-story-card__read,
.search-story-card__read:hover,
.search-story-card__read:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border-radius: 8px;
    background: var(--search-blue);
    color: var(--search-on);
    font-weight: 700;
}
.search-novel-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
}

.search-novel-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--search-line);
    background: var(--search-card);
}

.search-novel-pagination .page-numbers.current {
    border-color: var(--search-blue);
    background: var(--search-blue);
    color: var(--search-on);
}

.search-novel-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 56px 20px;
    border: 1px dashed var(--search-line);
    border-radius: 13px;
    background: var(--search-card);
    color: var(--search-muted);
    text-align: center;
}

.search-novel-empty strong {
    color: var(--search-ink);
    font-size: 1.12rem;
}

.search-novel-empty a {
    margin-top: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--search-blue);
    color: var(--search-on);
    font-weight: 700;
}

/* ========== Tìm truyện (comic_tim_truyen) ========== */
.tim-truyen-page,
.tim-truyen-card,
.novel-list {
    --tt-blue: var(--primary-color, var(--fs-color-primary, #0876ff));
    --tt-blue-soft: color-mix(in srgb, var(--tt-blue) 10%, transparent);
    --tt-ink: #17233d;
    --tt-muted: #72809a;
    --tt-line: #e6edf7;
    color: var(--tt-ink);
}

.tim-truyen-page svg,
.tim-truyen-card svg,
.novel-list svg {
    width: 1em;
    height: 1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tim-truyen-hero {
    position: relative;
    margin: -30px calc(50% - 50vw) 22px;
    padding: 34px calc(50vw - 50%) 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--tt-blue) 22%, #fff) 0, rgba(247, 250, 255, 0) 38%),
        radial-gradient(circle at 65% 110%, rgba(240, 91, 104, 0.16) 0, rgba(240, 91, 104, 0) 40%),
        linear-gradient(135deg, #f7faff 0%, #e8f0ff 55%, #dfe9fb 100%);
    border-bottom: 1px solid var(--tt-line);
}

.tim-truyen-hero::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.tim-truyen-hero__content {
    position: relative;
    z-index: 1;
    max-width: 750px;
}

.tim-truyen-hero h1 {
    margin: 0;
    color: var(--tt-title, #10203c);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.tim-truyen-hero h1 span {
    color: var(--tt-blue);
}

.tim-truyen-hero p {
    margin: 8px 0 18px;
    color: var(--tt-muted);
    font-size: 1rem;
}

.tim-truyen-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 1px solid var(--tt-search-line, var(--tt-line));
    border-radius: 12px;
    background: var(--tt-search-bg, rgba(255, 255, 255, 0.96));
    box-shadow: 0 14px 34px rgba(15, 41, 82, 0.1);
}

.tim-truyen-search__icon {
    position: absolute;
    left: 18px;
    color: var(--tt-search-text, #7e8da5);
    font-size: 1.15rem;
}

.tim-truyen-search input[type="search"] {
    flex: 1;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 16px 0 44px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--tt-search-text, var(--tt-ink));
    font-size: 1rem;
}

.tim-truyen-search input[type="search"]:focus {
    outline: none;
    box-shadow: none;
}

.tim-truyen-search button {
    height: 46px;
    min-height: 0;
    margin: 0;
    padding: 0 26px;
    border: 0;
    border-radius: 9px;
    background: var(--tt-search-btn, var(--tt-blue));
    color: var(--tt-search-btn-text, #fff);
    font-weight: 700;
    line-height: 46px;
    text-transform: none;
    box-shadow: 0 8px 20px rgba(8, 118, 255, 0.26);
}

.tim-truyen-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
    padding-bottom: 20px;
}

.tim-truyen-page.is-full .tim-truyen-layout {
    grid-template-columns: minmax(0, 1fr);
}

.tim-truyen-main,
.tim-truyen-cats {
    min-width: 0;
}

.tim-truyen-filterbar,
.tim-truyen-cats {
    border: 1px solid var(--tt-line);
    border-radius: 12px;
    background: #fff;
}

.tim-truyen-filterbar {
    border-color: var(--tt-filter-line, var(--tt-line));
    background: var(--tt-filter-bg, #fff);
}

.tim-truyen-cats {
    border-color: var(--tt-cats-line, var(--tt-line));
    background: var(--tt-cats-bg, #fff);
}

.tim-truyen-filterbar {
    margin-bottom: 18px;
}

.tim-truyen-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--tt-filter-line, var(--tt-line));
}

.tim-truyen-status:last-child {
    border-bottom: 0;
}

.tim-truyen-status__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 4px;
    color: var(--tt-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.tim-truyen-status__label svg {
    color: var(--tt-blue);
}

.tim-truyen-status__chip,
.tim-truyen-status__chip:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid var(--tt-filter-line, var(--tt-line));
    border-radius: 8px;
    background: var(--tt-filter-chip, #f7f9fc);
    color: var(--tt-filter-text, #56657e);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tim-truyen-status__chip span {
    color: #8a97ad;
    font-size: 0.74rem;
    font-weight: 600;
}

.tim-truyen-status__chip:hover {
    border-color: var(--tt-filter-active, var(--tt-blue));
    color: var(--tt-filter-active, var(--tt-blue));
}

.tim-truyen-status__chip.is-active {
    border-color: var(--tt-filter-active, var(--tt-blue));
    background: color-mix(in srgb, var(--tt-filter-active, var(--tt-blue)) 10%, #fff);
    color: var(--tt-filter-active, var(--tt-blue));
}

.tim-truyen-status__chip.is-active span {
    color: inherit;
}

.tim-truyen-status__chip.is-category {
    border-color: var(--tt-filter-active, var(--tt-blue));
    background: var(--tt-filter-active, var(--tt-blue));
    color: var(--tt-filter-on, #fff);
}

.tim-truyen-status__chip.is-category span {
    color: var(--tt-filter-on, #fff);
    font-size: 1rem;
    line-height: 1;
}

.tim-truyen-status__reset,
.tim-truyen-status__reset:visited {
    margin-left: auto;
    color: #f05b68;
    font-size: 0.84rem;
    font-weight: 600;
}

.tim-truyen-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
}

.tim-truyen-tabs {
    display: flex;
    gap: 8px;
}

.tim-truyen-tabs a,
.tim-truyen-tabs a:visited {
    padding: 6px 16px;
    border: 1px solid var(--tt-filter-line, var(--tt-line));
    border-radius: 8px;
    background: var(--tt-filter-chip, #fff);
    color: var(--tt-filter-text, var(--tt-ink));
    font-size: 0.88rem;
    font-weight: 600;
}

.tim-truyen-tabs a.is-active {
    border-color: var(--tt-filter-active, var(--tt-blue));
    background: var(--tt-filter-active, var(--tt-blue));
    color: var(--tt-filter-on, #fff);
    box-shadow: 0 6px 16px rgba(8, 118, 255, 0.22);
}

.tim-truyen-filterbar {
    overflow: visible;
}

.tim-truyen-sort {
    position: relative;
    margin: 0;
}

.tim-truyen-sort summary {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--tt-filter-line, var(--tt-line));
    border-radius: 8px;
    background: var(--tt-filter-chip, #fff);
    color: var(--tt-filter-text, var(--tt-muted));
    font-size: 0.86rem;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
}

.tim-truyen-sort summary::-webkit-details-marker {
    display: none;
}

.tim-truyen-sort summary strong {
    color: var(--tt-ink);
    font-weight: 700;
}

.tim-truyen-sort summary svg {
    width: 12px;
    height: 8px;
    fill: none;
    stroke: var(--tt-filter-active, var(--tt-blue));
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tim-truyen-sort[open] summary svg {
    transform: rotate(180deg);
}

.tim-truyen-sort__menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--tt-filter-line, var(--tt-line));
    border-radius: 10px;
    background: var(--tt-filter-bg, #fff);
    box-shadow: 0 14px 30px rgba(26, 39, 68, 0.14);
}

.tim-truyen-sort__menu a,
.tim-truyen-sort__menu a:visited {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--tt-ink);
    font-size: 0.9em;
    font-weight: 600;
    text-align: left;
}

.tim-truyen-sort__menu a:hover,
.tim-truyen-sort__menu a.is-active {
    background: color-mix(in srgb, var(--tt-filter-active, var(--tt-blue)) 10%, #fff);
    color: var(--tt-filter-active, var(--tt-blue));
    box-shadow: inset 0 0 0 1px var(--tt-filter-active, var(--tt-blue));
}

.tim-truyen-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tim-truyen-page .tim-truyen-grid {
    grid-template-columns: repeat(var(--cols-xl, 4), minmax(0, 1fr));
}

.tim-truyen-page.has-item-bg .tim-truyen-card {
    background: var(--comic-item-bg);
}

.tim-truyen-page.is-plain-tags .tim-truyen-card__tags a,
.tim-truyen-page.is-plain-tags .tim-truyen-card__tags a:visited {
    background: transparent;
}

.tim-truyen-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 41, 82, 0.05);
    transition: transform 0.25s, box-shadow 0.25s;
}

.tim-truyen-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15, 41, 82, 0.1);
}

.tim-truyen-card__cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #d9e5f6;
}

.tim-truyen-card__cover img,
.tim-truyen-card__placeholder {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    margin: 0;
    object-fit: cover;
    transition: transform 0.35s;
}

.tim-truyen-card:hover .tim-truyen-card__cover img {
    transform: scale(1.05);
}

.tim-truyen-card__placeholder {
    display: grid;
    place-items: center;
    color: var(--tt-blue);
    font-size: 2.2rem;
    font-weight: 800;
}

.tim-truyen-card__status {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 10px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.72rem;
    line-height: 1.4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.tim-truyen-card__status.is-live {
    background: #3b82f6;
}

.tim-truyen-card__status.is-full {
    background: #22c55e;
}

.tim-truyen-card__status.is-soon {
    background: #f59e0b; 
}

.tim-truyen-card__status.is-wait {
    background: #7c8aa5;
}
.tim-truyen-card__status.has-color {
    background: var(--comic-badge-bg);
}
.tim-truyen-card__status.is-left {
    left: 8px;
    right: auto;
}
.tim-truyen-card__status.is-right {
    left: auto;
    right: 8px;
}

.tim-truyen-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1px;
    padding: 10px;
}

.tim-truyen-card__title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    min-height: 2.7em;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tim-truyen-card__title a {
    color: var(--tt-ink);
    transition: color 0.3s ease;
}

.tim-truyen-card__title a:hover {
    color: var(--fs-color-primary);
}

.tim-truyen-card__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: var(--tt-muted);
    font-size: 0.8rem;
}

.tim-truyen-card__chapter + span {
    margin-left: auto;
}

.tim-truyen-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tim-truyen-card__rating {
    color: #f59e0b;
    font-weight: 700;
}

.tim-truyen-card__rating svg {
    color: #f59e0b;
    fill: currentColor;
}

.tim-truyen-card__chapter,
.tim-truyen-card__chapter:visited {
    color: var(--fs-color-base);
    font-size: 0.82rem;
    font-weight: 500;
}

.tim-truyen-card__chapter:hover {
    color: var(--fs-color-primary);
}

.tim-truyen-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 5px;
}

.tim-truyen-card__tags a,
.tim-truyen-card__tags a:visited {
    padding: 3px 9px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--fs-color-primary) 10%, #fff);
    color: var(--fs-color-primary);
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}

.tim-truyen-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 24px;
}

.tim-truyen-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--tt-line);
    border-radius: 8px;
    background: #fff;
    color: #56657e;
    font-weight: 600;
}

.tim-truyen-pagination .page-numbers.current {
    border-color: var(--tt-blue);
    background: var(--tt-blue);
    color: #fff;
}

.tim-truyen-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 56px 20px;
    border: 1px dashed var(--tt-line);
    border-radius: 13px;
    background: #fff;
    color: var(--tt-muted);
    text-align: center;
}

.tim-truyen-empty strong {
    color: var(--tt-ink);
    font-size: 1.12rem;
}

.novel-list__head {
    margin: 0 0 16px;
}

.novel-list__kicker {
    margin: 0 0 4px;
    color: var(--nl-kicker, var(--tt-blue));
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.novel-list__title {
    margin: 0;
    color: var(--nl-title, var(--tt-ink));
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.novel-list-banner {
    --nl-title: #fff;
    --nl-desc: rgba(255, 255, 255, 0.92);
    --nl-banner-min: 340px;
    position: relative;
    margin: 0 0 28px;
    color: #fff;
    isolation: isolate;
}

.novel-list-banner.is-container {
    overflow: hidden;
    border-radius: 24px;
    padding-left: 0;
    padding-right: 0;
}

.container .novel-list-banner.is-container.container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.novel-list-banner.is-full {
    overflow: visible;
}

.novel-list-banner__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--fs-color-primary) 18%, #7eb6ff);
}

.novel-list-banner.is-full .novel-list-banner__bg {
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
}

/* Lịch sử và xếp hạng có padding khung trang. Banner full phải phủ kín, kể cả khi UX Builder bọc block trong <content>. */
.history-page:has(.novel-list-banner.is-full),
.rank-page:has(.novel-list-banner.is-full) {
    padding-top: 0;
}

.history-page .novel-list-banner.is-full,
.rank-page .novel-list-banner.is-full {
    margin-right: -15px;
    margin-left: -15px;
}

/* Ảnh nền gắn trên #main. Margin dưới banner để ảnh lộ một dải giữa head và nội dung. */
#main:has(style.comic-page-bg) :is(.history-page, .rank-page, .novel-list-page, .novel-archive) .novel-list-banner.is-full {
    margin-bottom: 0;
}

.history-page .novel-list-banner.is-full > .novel-list-banner__inner.container,
.rank-page .novel-list-banner.is-full > .novel-list-banner__inner.container {
    padding-right: 51px;
    padding-left: 15px;
}

/* Preview UX Builder: <content> có transform và min-height, cắt banner và chèn khoảng trống. */
body.ux-builder-iframe :is(.history-page, .rank-page, .novel-list-page, .novel-archive) content:has(.novel-list-banner.is-full) {
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    transform: none;
    overflow: visible;
}

body.ux-builder-iframe content:has(.comic-page-bg-note) {
    position: relative;
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    transform: none;
    overflow: visible;
}

.comic-page-bg-note {
    position: absolute;
    z-index: 6;
    right: auto;
    bottom: 8px;
    left: 15px;
    width: max-content;
    max-width: calc(100vw - 30px);
    margin: 0;
    padding: 4px 10px;
    border: 1px dashed #c5d0dc;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

.novel-list-banner__bg picture,
.novel-list-banner__bg img {
    display: block;
    width: 100%;
    height: 100%;
}

.novel-list-banner__bg img {
    object-fit: cover;
    object-position: 72% center;
}

.novel-list-banner__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(28, 14, 32, 0.62) 0%, rgba(28, 14, 32, 0.34) 38%, rgba(28, 14, 32, 0.08) 68%, rgba(28, 14, 32, 0.16) 100%),
        linear-gradient(180deg, rgba(28, 14, 32, 0.08) 0%, rgba(28, 14, 32, 0) 36%, rgba(28, 14, 32, 0.22) 100%);
}

.novel-list-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--nl-banner-min);
    padding: 42px 36px;
}

.container .novel-list-banner.is-full .novel-list-banner__inner.container {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-right: 36px;
    padding-left: 0;
}

.novel-list-banner h1.novel-list-banner__title {
    margin: 0 0 10px;
    color: var(--nl-title);
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
    text-transform: none;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.novel-list-banner__desc {
    max-width: 540px;
    margin: 0;
    color: var(--nl-desc);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.55;
}

.novel-list-banner .history-head__side {
    margin-top: 18px;
}

.novel-list-banner .history-head__side:not(:has(:not([hidden]))) {
    display: none;
}

.novel-list-banner .history-head__count {
    color: rgba(255, 255, 255, 0.92);
}

.novel-list-banner .history-head__clear {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.novel-list-banner .history-head__clear:hover,
.novel-list-banner .history-head__clear:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.rank-banner .rank-head__kicker {
    margin-bottom: 8px;
    color: var(--rh-kicker, rgba(255, 255, 255, 0.86));
}

.novel-list-banner .novel-archive__eyebrow {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.86);
}

.novel-list-banner .novel-archive__eyebrow svg {
    color: currentColor;
}

.novel-list-banner .novel-archive__count {
    align-self: flex-start;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.novel-list-banner .novel-archive__count strong {
    font-weight: 800;
}

.novel-list__tabs {
    margin-bottom: 18px;
}

.novel-list__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 18px;
}

.novel-list__bar .novel-list__tabs {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.novel-list__tabs.is-line {
    gap: 28px;
    border-bottom: 1px solid var(--tt-line);
}

.novel-list__bar:has(.novel-list__tabs.is-line) {
    align-items: stretch;
    border-bottom: 1px solid var(--tt-line);
}

.novel-list__bar .novel-list__tabs.is-line {
    align-self: stretch;
    align-items: center;
    border-bottom: 0;
}

.novel-list__tabs.is-line a,
.novel-list__tabs.is-line a:visited {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--tt-muted);
    font-size: 1rem;
    font-weight: 700;
}

.novel-list__tabs.is-line a.is-active {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--tt-ink);
}

.novel-list__tabs.is-line a.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--tt-blue);
}

.novel-list__tools {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
}

.novel-list__bar .novel-list__tools {
    align-self: center;
}

/* Tab và Filter là hai block cạnh nhau, không bọc .novel-list__bar. */
.novel-list-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.novel-list-page > :not(.novel-list__tabs):not(.novel-list__tools) {
    grid-column: 1 / -1;
}

.novel-list-page > .novel-list__tabs:has(+ .novel-list__tools) {
    grid-column: 1;
    min-width: 0;
    margin-bottom: 18px;
}

.novel-list-page > .novel-list__tabs.is-line:has(+ .novel-list__tools),
.novel-list-page > .novel-list__tabs.is-line:has(+ .novel-list__tools) + .novel-list__tools {
    align-self: stretch;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--tt-line);
}

.novel-list-page > .novel-list__tabs.is-line:has(+ .novel-list__tools) + .novel-list__tools {
    align-items: center;
    padding-left: 16px;
}

.novel-list__menu {
    position: relative;
    margin: 0;
}

.novel-list__menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--tt-line);
    border-radius: 8px;
    background: #fff;
    color: var(--tt-ink);
    font-size: 0.88rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
    white-space: nowrap;
}

.novel-list__menu summary::-webkit-details-marker {
    display: none;
}

.novel-list__menu summary svg {
    width: 12px;
    height: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.novel-list__menu[open] summary svg {
    transform: rotate(180deg);
}

.novel-list__menu-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    max-height: 280px;
    overflow: auto;
    padding: 6px;
    border: 1px solid var(--tt-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(26, 39, 68, 0.14);
}

.novel-list__menu-panel a,
.novel-list__menu-panel a:visited {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--tt-ink);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.novel-list__menu-panel a:hover,
.novel-list__menu-panel a.is-active {
    background: var(--tt-blue-soft);
    color: var(--tt-blue);
}

.novel-list .tim-truyen-grid {
    grid-template-columns: repeat(var(--cols-xl, 4), minmax(0, 1fr));
}

.novel-list.has-item-bg .tim-truyen-card {
    background: var(--comic-item-bg);
}

.novel-list--plain-tags .tim-truyen-card__tags a,
.novel-list--plain-tags .tim-truyen-card__tags a:visited {
    background: transparent;
}

.tim-truyen-empty a {
    margin-top: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--tt-blue);
    color: #fff;
    font-weight: 700;
}

.tim-truyen-cats {
    padding: 14px;
}

.tim-truyen-cats h3 {
    margin: 0 0 12px;
    color: var(--tt-cats-heading, var(--tt-ink));
    font-size: 1.05rem;
}

.tim-truyen-cats .list-taxonomy li {
    border-top-color: var(--tt-cats-line, #dedede);
}

.tim-truyen-cats .list-taxonomy a,
.tim-truyen-cats .list-taxonomy a:visited {
    color: var(--tt-cats-text, var(--tt-ink));
}

.tim-truyen-cats .list-taxonomy a:hover,
.tim-truyen-cats .list-taxonomy li.is-active a {
    color: var(--tt-cats-active, var(--tt-blue));
}

.tim-truyen-mobile-cats {
    margin-bottom: 12px;
}

/* ========== Hero Search (comic_hero_search) ========== */
.hero-search {
    --hero-search-ink: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    color: var(--hero-search-ink);
    background: #2a1630;
    isolation: isolate;
}

.hero-search__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 78% 42%, rgba(255, 140, 180, 0.35), transparent 28%),
        linear-gradient(115deg, #3a2148 0%, #6d3a62 48%, #c47a8a 100%);
}

.hero-search__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-search__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 8, 22, 0.62) 0%, rgba(18, 8, 22, 0.28) 46%, rgba(18, 8, 22, 0.08) 100%);
}

.hero-search__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: 28px;
    align-items: center;
    min-height: 500px;
    padding: 36px 28px 28px 36px;
}

.hero-search--solo .hero-search__inner {
    grid-template-columns: minmax(0, 680px);
}

.hero-search__copy {
    min-width: 0;
    max-width: 560px;
    padding-bottom: 8px;
}

.hero-search__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-search__label-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.hero-search__label-icon svg,
.hero-search__keywords-label svg,
.hero-search__panel-head h3 svg,
.hero-search__more svg,
.hero-search__form-icon svg,
.hero-search__form button svg,
.hero-search__next svg {
    display: block;
    width: 100%;
    height: 100%;
}

h2.hero-search__title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 12px;
    color: #fff;
    font-size: clamp(34px, 3.6vw, 52px) !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-search__desc {
    max-width: 440px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
}

.hero-search .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hero-search__form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 460px;
    height: 54px;
    margin: 0 0 16px;
    padding: 6px 6px 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(40, 10, 30, 0.18);
}

.hero-search__form-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #9aa3b5;
}

.hero-search__form input[type="search"],
.hero-search__form input[type="search"]:hover,
.hero-search__form input[type="search"]:focus {
    appearance: none;
    -webkit-appearance: none;
    flex: 1;
    width: auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #1d2433;
    font-size: 15px;
    line-height: 1.2;
    outline: none;
}

.hero-search__form input[type="search"]::-webkit-search-decoration,
.hero-search__form input[type="search"]::-webkit-search-cancel-button,
.hero-search__form input[type="search"]::-webkit-search-results-button {
    display: none;
    -webkit-appearance: none;
}

.hero-search__form input[type="search"]::placeholder {
    color: #9aa3b5;
}

.hero-search__form button[type="submit"],
.hero-search__form button[type="submit"]:hover,
.hero-search__form button[type="submit"]:focus {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    min-height: 0;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--fs-color-primary);
    color: #fff;
    box-shadow: none;
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.hero-search__form button svg {
    width: 18px;
    height: 18px;
}

.hero-search__form button[type="submit"]:hover,
.hero-search__form button[type="submit"]:focus {
    background: color-mix(in srgb, var(--fs-color-primary) 80%, #fff);
    color: #fff;
}

.hero-search__keywords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-search__keywords-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.hero-search__keywords-label svg {
    width: 16px;
    height: 16px;
    color: #ff7a3c;
}

.hero-search__keywords a {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.hero-search__keywords a:hover {
    background: rgba(16, 10, 18, 0.58);
    color: #fff;
}

.hero-search__panel {
    min-width: 0;
    padding: 16px 16px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(17, 12, 20, 0.72);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.hero-search__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-search__panel-head h3 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-search__panel-head h3 svg {
    width: 16px;
    height: 16px;
    color: #ff7a3c;
}

.hero-search__more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.hero-search__more svg {
    width: 14px;
    height: 14px;
}

.hero-search__more:hover {
    color: #fff;
}

.hero-search__rail {
    position: relative;
}

.hero-search__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-right: 28px;
}

.hero-search__track::-webkit-scrollbar {
    display: none;
}

.hero-search__card {
    flex: 0 0 92px;
    width: 92px;
    scroll-snap-align: start;
    color: #fff;
    text-decoration: none;
}

.hero-search__card:hover {
    color: #fff;
}

.hero-search__cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: #2a2430;
}

.hero-search__cover img,
.hero-search__cover-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-search__cover-fallback {
    background: linear-gradient(160deg, #4b3560, #241824);
}

.hero-search__hot {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #ff3b6b;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.hero-search__card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.hero-search__next {
    position: absolute;
    top: 58px;
    right: -6px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #1d2433;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.hero-search__next svg {
    width: 18px;
    height: 18px;
}

.hero-search__next:hover {
    background: #fff5f8;
}

.hero-search__next[hidden] {
    display: none;
}

/* ========== Hero Feature (comic_hero_feature) ========== */
.hero-feature {
    --hero-feature-red: var(--fs-color-secondary);
    --hf-text: #fff;
    --hf-muted: rgba(255, 255, 255, 0.78);
    --hf-button-text: #fff;
    position: relative;
    overflow: hidden;
    min-height: 540px;
    border-radius: 28px;
    color: var(--hf-text);
    background: #121826;
    isolation: isolate;
}

.hero-feature__main,
.hero-feature__main .swiper-slide,
.hero-feature__slide {
    height: 540px;
}

.hero-feature__slide {
    position: relative;
}

.hero-feature__bg,
.hero-feature__shade {
    position: absolute;
    inset: 0;
}

.hero-feature__bg {
    overflow: hidden;
    background:
        radial-gradient(circle at 70% 40%, rgba(255, 120, 80, 0.28), transparent 32%),
        linear-gradient(120deg, #1b2438, #3a2a3a 55%, #6a4038);
}

.hero-feature__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.14);
    filter: blur(28px) saturate(1.25);
}

.hero-feature__shade {
    background:
        linear-gradient(90deg, rgba(8, 12, 24, 0.62) 0%, rgba(8, 12, 24, 0.36) 42%, rgba(8, 12, 24, 0.18) 72%),
        linear-gradient(180deg, rgba(8, 12, 24, 0.1), rgba(8, 12, 24, 0.28));
}

.hero-feature__content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    padding: 52px 36px 96px 48px;
}

.hero-feature__kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--hf-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.hero-feature__kicker-mark {
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--hero-feature-red);
}

.hero-feature__kicker-dot {
    opacity: 0.7;
}

h2.hero-feature__title {
    display: flex;
    flex-direction: column;
    margin: 0 0 14px;
    color: var(--hf-text);
    font-size: clamp(26px, 2.4vw, 36px) !important;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.98;
}

.hero-feature__title-accent {
    color: var(--hero-feature-red);
}

.hero-feature__excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 460px;
    margin: 0 0 22px;
    color: var(--hf-muted);
    font-size: 15px;
    line-height: 1.55;
}

.hero-feature__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.hero-feature__stats li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    margin-left: 0 !important;
}

.hero-feature__stats strong,
.hero-feature__stats small {
    display: block;
}

.hero-feature__stats strong {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.hero-feature__stats small {
    margin-top: 2px;
    color: var(--hf-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.hero-feature__stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-feature__stat-icon svg {
    width: 18px;
    height: 18px;
}

.hero-feature__stat-icon--flame {
    color: #ff7a3c;
}

.hero-feature__stat-icon--book {
    color: #7eb6ff;
}

.hero-feature__stat-icon--people {
    color: #8b7cff;
}

.hero-feature__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

a.hero-feature__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 0;
    height: 40px;
    margin: 0;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
}

a.hero-feature__btn svg {
    width: 16px;
    height: 16px;
}

a.hero-feature__btn--primary {
    background: var(--hero-feature-red);
    color: var(--hf-button-text);
}

a.hero-feature__btn--primary:hover {
    background: color-mix(in srgb, var(--hero-feature-red) 82%, #fff);
    color: var(--hf-button-text);
}

a.hero-feature__btn--ghost {
    border: 1px solid color-mix(in srgb, var(--hf-text) 72%, transparent);
    background: color-mix(in srgb, var(--hf-text) 8%, transparent);
    color: var(--hf-text);
}

a.hero-feature__btn--ghost:hover {
    background: color-mix(in srgb, var(--hf-text) 16%, transparent);
    color: var(--hf-text);
}

.hero-feature__rail {
    position: absolute;
    top: 28px;
    right: 24px;
    bottom: 78px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 280px;
    overflow: auto;
    scrollbar-width: none;
}

.hero-feature__rail::-webkit-scrollbar {
    display: none;
}

button.hero-feature__pick {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: rgba(12, 14, 22, 0.42);
    color: var(--hf-text);
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
    box-shadow: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

button.hero-feature__pick.is-active,
button.hero-feature__pick:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(12, 14, 22, 0.68);
    color: var(--hf-text);
}

.hero-feature__pick-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 12px;
    background: #2a3142;
}

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

.hero-feature__pick-body {
    min-width: 0;
}

.hero-feature__pick-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    font-weight: 700;
}

.hero-feature__pick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.hero-feature__pick-tags span {
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--hf-text) 12%, transparent);
    color: var(--hf-muted);
    font-size: 11px;
    font-weight: 600;
}

.hero-feature__dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 3;
    display: flex;
    gap: 8px;
    transform: translateX(-70%);
}

button.hero-feature__dot {
    width: 8px;
    height: 8px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    box-shadow: none;
    cursor: pointer;
}

button.hero-feature__dot.is-active {
    width: 26px;
    background: var(--hero-feature-red);
}

.hero-feature__nav {
    position: absolute;
    right: 24px;
    bottom: 18px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

button.hero-feature__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(16, 18, 28, 0.55);
    color: var(--hf-text);
    box-shadow: none;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

button.hero-feature__nav-btn svg {
    width: 18px;
    height: 18px;
}

button.hero-feature__nav-btn:hover {
    background: rgba(16, 18, 28, 0.8);
    color: var(--hf-text);
}

/* ========== Hero Covers (comic_hero_covers) ========== */
.hero-covers {
    --hero-covers-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 18px 0 8px;
}

.hero-covers__main {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero-covers__main .swiper-slide {
    width: min(520px, 40%);
    height: auto;
    overflow: visible;
}

.hero-covers__card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--hero-covers-radius);
    background: #16161c;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
    color: #fff;
    text-decoration: none;
}

.hero-covers__card img,
.hero-covers__fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero-covers__fallback {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(145deg, #2a2a34, #121218);
}

.hero-covers__veil,
.hero-covers__info,
.hero-covers__count {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.hero-covers__veil {
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.45) 76%, rgba(0, 0, 0, 0.82) 100%);
}

.hero-covers__info {
    left: 22px;
    right: 78px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    color: #fff;
    text-align: left;
}

.hero-covers__label {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-covers__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-covers__line {
    max-width: 100%;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
    opacity: 0.92;
}

.hero-covers__count {
    right: 14px;
    bottom: 14px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.hero-covers__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #000;
    opacity: var(--shade, 0.42);
    pointer-events: none;
}

.hero-covers--single .swiper-wrapper {
    justify-content: center;
}

.hero-covers--single .swiper-slide {
    width: min(520px, 70%);
}

.hero-covers--single .hero-covers__card::after {
    opacity: 0;
}

.hero-covers button.hero-covers__arrow,
.hero-covers button.hero-covers__arrow:hover,
.hero-covers button.hero-covers__arrow:focus {
    position: absolute;
    top: 50%;
    bottom: auto;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 56px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    box-shadow: none;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transform: translateY(-50%);
}

button.hero-covers__arrow--prev {
    left: 10px;
}

button.hero-covers__arrow--next {
    right: 10px;
}

button.hero-covers__arrow svg {
    width: 22px;
    height: 34px;
}

button.hero-covers__arrow:hover,
button.hero-covers__arrow:focus {
    color: #8e97a6;
}

.hero-covers__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 16px 0 8px;
}

button.hero-covers__dot {
    width: 7px;
    height: 7px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d7dbe3;
    box-shadow: none;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
}

button.hero-covers__dot.is-active {
    width: 18px;
    background: var(--fs-color-secondary);
}

/* Placeholder khi shortcode chi tiết truyện nằm ngoài trang truyện chữ (UX Builder). */
.novel-block-placeholder {
    margin: 12px 0;
    padding: 16px;
    border: 1px dashed #c5cedd;
    border-radius: 12px;
    color: #7a869a;
    background: #f7f9fc;
}

.novel-preview-note {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: #7a869a;
}

/* Thanh menu dưới đáy (mobile). Desktop giữ menu Flatsome. */
.mbn {
    display: none;
}

@media (max-width: 849px) {
    body.has-mbn {
        padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    }

    body.has-mbn .back-to-top {
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    }

    body.has-mbn .header-main .mobile-nav > .nav-icon {
        visibility: hidden;
        pointer-events: none;
    }

    html.mbn-lock,
    html.mbn-lock body {
        overflow: hidden;
    }

    .mbn {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1002;
        pointer-events: none;
    }

    .mbn__backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.38);
        pointer-events: auto;
    }

    .mbn__sheet {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(62px + env(safe-area-inset-bottom, 0px));
        max-height: min(68vh, 520px);
        overflow: auto;
        padding: 8px 16px 18px;
        border-radius: 20px 20px 0 0;
        background: #fff;
        box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.16);
        pointer-events: auto;
    }

    .mbn__handle {
        width: 40px;
        height: 4px;
        margin: 4px auto 10px;
        border-radius: 999px;
        background: #e2e8f0;
    }

    .mbn__sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

    .mbn__sheet-head strong {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
    }

    .mbn__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 32px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f1f5f9;
        color: #334155;
        line-height: 1;
        cursor: pointer;
    }

    .mbn__close svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
    }

    .mbn__chips {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mbn__chips a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 12px;
        background: color-mix(in srgb, var(--fs-color-primary, #1c5ce7) 8%, #fff);
        color: #1f2937;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.25;
        text-align: center;
    }

    .mbn__chips a.is-active,
    .mbn__chips a:hover {
        background: var(--fs-color-primary, #1c5ce7);
        color: #fff;
    }

    .mbn__links,
    .mbn__group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mbn__group-label {
        margin: 4px 2px 0;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #94a3b8;
    }

    .mbn__link {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 52px;
        padding: 8px 12px;
        border-radius: 14px;
        background: #f8fafc;
        color: #111827;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
    }

    .mbn__link .mbn__icon {
        width: 36px;
        height: 36px;
        flex: 0 0 36px;
        border-radius: 12px;
        background: color-mix(in srgb, var(--fs-color-primary, #1c5ce7) 12%, #fff);
        color: var(--fs-color-primary, #1c5ce7);
    }

    .mbn__link-label {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mbn__chevron {
        display: inline-flex;
        flex: 0 0 auto;
        color: #cbd5e1;
    }

    .mbn__chevron svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mbn__link.is-active,
    .mbn__link:hover {
        background: var(--fs-color-primary, #1c5ce7);
        color: #fff;
    }

    .mbn__link.is-active .mbn__icon,
    .mbn__link:hover .mbn__icon {
        background: rgba(255, 255, 255, 0.18);
        color: #fff;
    }

    .mbn__link.is-active .mbn__chevron,
    .mbn__link:hover .mbn__chevron {
        color: rgba(255, 255, 255, 0.85);
    }

    .mbn__bar {
        display: flex;
        align-items: flex-end;
        height: calc(62px + env(safe-area-inset-bottom, 0px));
        padding: 0 4px env(safe-area-inset-bottom, 0px);
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
        backdrop-filter: blur(12px);
        pointer-events: auto;
    }

    .mbn__item {
        position: relative;
        display: flex;
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: 2px;
        min-width: 0;
        height: 62px;
        margin: 0;
        padding: 0 2px 7px;
        border: 0;
        background: transparent;
        color: #64748b;
        font: inherit;
        line-height: 1;
        text-decoration: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mbn__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
    }

    .mbn__icon svg {
        width: 22px;
        height: 22px;
    }

    .mbn__icon--fill svg {
        fill: currentColor;
        stroke: none;
    }

    .mbn__icon--fill svg path {
        fill: currentColor;
        stroke: none;
    }

    .mbn__label {
        max-width: 100%;
        overflow: hidden;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0;
        line-height: 1.2;
        text-overflow: ellipsis;
        text-transform: none;
        white-space: nowrap;
    }

    .mbn__item.is-active,
    .mbn__item.is-open {
        color: var(--fs-color-primary, #1c5ce7);
    }

    .mbn__item--fab .mbn__icon {
        width: 50px;
        height: 50px;
        margin-top: -18px;
        margin-bottom: 1px;
        border-radius: 50%;
        background: var(--fs-color-primary, #1c5ce7);
        color: #fff;
        box-shadow: 0 8px 18px color-mix(in srgb, var(--fs-color-primary, #1c5ce7) 42%, transparent);
    }

    .mbn__item--fab .mbn__icon svg {
        width: 24px;
        height: 24px;
    }

    .mbn__item--fab.is-active .mbn__icon,
    .mbn__item--fab:hover .mbn__icon {
        color: #fff;
        filter: brightness(1.06);
    }
}

/* Item 8: tên đè lên bìa */
.comic-card-8 .comic-poster {
    border-radius: 12px;
    overflow: hidden;
}
.comic-card-8 .comic-link {
    display: block;
    position: relative;
    color: #fff;
}
.comic-card-8 .thumbnail {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 0;
}
.comic-card-8__overlay {
    position: absolute;
    bottom: 12px;
    left: 10px;
    z-index: 1;
    width: calc(100% - 20px);
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    paint-order: stroke fill;
    -webkit-text-stroke: 2.5px #111;
}
.comic-card-8__title {
    margin: 10px 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}
.comic-card-8__title a {
    display: -webkit-box;
    overflow: hidden;
    color: #1a2744;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.comic-card-8__title a:hover {
    color: var(--fs-color-primary, #2ca2e2);
}

/* ========== Trang tác giả ========== */
.author-profile,
.author-works {
    --author-accent: var(--fs-color-primary, #2f6fed);
    --author-accent-soft: color-mix(in srgb, var(--author-accent) 10%, #fff);
    --author-ink: #1a2744;
    --author-sub: #7a869a;
    --author-line: #e8edf5;
}

.author-preview-note,
.author-block-placeholder {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff7e8;
    color: #8a5a12;
    font-size: 0.9em;
}

.author-profile {
    margin: 6px 0 28px;
    padding: 0;
    background: transparent;
}

.author-profile__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--author-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.author-profile__eyebrow::before {
    content: "";
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: currentColor;
}

.author-profile__name {
    margin: 10px 0 0;
    color: #121826;
    font-size: 2.65em;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.author-profile__desc {
    max-width: 720px;
    margin-top: 10px;
    color: #56627a;
    line-height: 1.7;
}

.author-profile__desc > :first-child {
    margin-top: 0;
}

.author-profile__desc > :last-child {
    margin-bottom: 0;
}

.author-profile__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.author-profile__stats li,
.col-inner .author-profile__stats li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 0 !important;
    padding: 0 22px;
    background: transparent;
}

.author-profile__stats li:first-child {
    padding-left: 0;
}

.author-profile__stats li + li {
    border-left: 1px solid #e7ebf2;
}

.author-profile__icon {
    display: flex;
    flex: none;
    width: 28px;
    height: 28px;
    color: var(--stat-color, var(--author-accent));
}

.author-profile__icon svg {
    width: 28px;
    height: 28px;
}

.author-profile__stats .is-works { --stat-color: #e11d48; }
.author-profile__stats .is-views { --stat-color: #f04438; }
.author-profile__stats .is-rating { --stat-color: #f5b301; }

.author-profile__metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-profile__metric strong {
    color: #121826;
    font-size: 1.35em;
    font-weight: 800;
    line-height: 1.1;
}

.author-profile__metric span {
    color: #8b95a7;
    font-size: 0.82em;
    font-weight: 500;
    line-height: 1.2;
}

.author-works {
    margin-bottom: 12px;
}

.author-works__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.author-works__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--author-ink);
    font-size: 1.35em;
    line-height: 1.3;
}

.author-works__title::before {
    content: "";
    width: 4px;
    height: 1.05em;
    border-radius: 4px;
    background: var(--author-accent);
}

.author-works__count {
    flex: none;
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--author-accent-soft);
    color: var(--author-accent);
    font-size: 0.85em;
    font-weight: 700;
}

.author-works .comics-section {
    margin-bottom: 0;
}

.author-works__empty {
    margin: 0;
    padding: 28px 16px;
    border: 1px dashed var(--author-line);
    border-radius: 10px;
    color: var(--author-sub);
    text-align: center;
}

.author-works__pagination {
    margin-top: 22px;
}

.author-works__pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.author-works__pagination li,
.col-inner .author-works__pagination li {
    margin: 0 !important;
}

.author-works__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--author-line);
    border-radius: 8px;
    background: #fff;
    color: var(--author-ink);
    font-weight: 600;
}

.author-works__pagination a.page-numbers:hover {
    border-color: var(--author-accent);
    color: var(--author-accent);
}

.author-works__pagination .page-numbers.current {
    border-color: var(--author-accent);
    background: var(--author-accent);
    color: #fff;
}

/* ========== Danh sách truyện nền (comic_story_banner) ========== */
.story-banner {
    position: relative;
    overflow: hidden;
    min-height: max(var(--story-banner-min, 440px), 26vw);
    border-radius: 12px;
    isolation: isolate;
}

.story-banner__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.story-banner__bg picture,
.story-banner__bg img {
    display: block;
    width: 100%;
    height: 100%;
}

.story-banner__bg img {
    object-fit: cover;
    object-position: left center;
}

.story-banner__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    box-sizing: border-box;
    min-height: max(var(--story-banner-min, 440px), 26vw);
    padding: 36px 4%;
}

.story-banner__space {
    min-height: 1px;
}

.story-banner__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    width: 100%;
    min-width: 0;
}

.story-banner__item,
.story-banner__item:hover,
.story-banner__item:focus {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.story-banner__cover {
    position: relative;
    flex: none;
    align-self: center;
    width: clamp(78px, 7vw, 108px);
    aspect-ratio: 3 / 4.15;
    min-height: 0;
    overflow: hidden;
    border-radius: 3px 10px 10px 3px;
}

.story-banner__cover img,
.story-banner__fallback {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-banner__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e7efe0;
    color: var(--fs-color-primary);
    font-size: 28px;
    font-weight: 700;
}

.story-banner__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.story-banner__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--fs-color-primary);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.story-banner__author {
    display: block;
    overflow: hidden;
    color: var(--fs-color-base);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ========== Slider bìa truyện (comic_cover_slider) ========== */
.cover-slider {
    --cover-slider-bg: #7c1528;
    --cover-slider-h: 300px;
    --cover-slider-pad-y: 16px;
    --cover-slider-pad-x: 48px;
    position: relative;
    overflow: hidden;
    background: var(--cover-slider-bg);
    color: #fff;
}

.cover-slider > .is-border {
    z-index: 3;
}

.cover-slider__stage {
    display: grid;
    grid-template-columns: minmax(220px, 26%) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "head main"
        "foot main";
    column-gap: 36px;
    box-sizing: border-box;
    height: var(--cover-slider-h);
    padding: var(--cover-slider-pad-y, 16px) 0 var(--cover-slider-pad-y, 16px) var(--cover-slider-pad-x, 48px);
}

.cover-slider__head {
    grid-area: head;
    align-self: start;
    min-width: 0;
    padding-top: 6px;
}

h2.cover-slider__kicker {
    margin: 0;
    font-size: 20px ; 
    color: #fff;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
}

a.cover-slider__more,
a.cover-slider__more:hover,
a.cover-slider__more:focus {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

a.cover-slider__more:hover,
a.cover-slider__more:focus {
    color: #fff;
}

.cover-slider__main {
    grid-area: main;
    min-width: 0;
    height: 100%;
    margin: 0;
}

.cover-slider__main .swiper-wrapper {
    height: 100%;
}

.cover-slider__main:not(.swiper-initialized) .swiper-wrapper {
    display: flex;
    gap: 10px;
    height: 100%;
}

.cover-slider__main .swiper-slide {
    width: calc((var(--cover-slider-h) - (var(--cover-slider-pad-y) * 2)) * 0.72);
    height: 100%;
}

a.cover-slider__card,
a.cover-slider__card:hover,
a.cover-slider__card:focus {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    color: inherit;
    background: rgba(0, 0, 0, 0.18);
    text-decoration: none;
}

.cover-slider__card img,
.cover-slider__fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-slider__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
}

.cover-slider__shade {
    position: absolute;
    inset: 0;
    background: var(--cover-slider-bg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.cover-slider__main:not(.swiper-initialized) .swiper-slide:not(:first-child) .cover-slider__shade,
.cover-slider__main.swiper-initialized .swiper-slide:not(.swiper-slide-active) .cover-slider__shade {
    opacity: 0.62;
}

.cover-slider__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    box-sizing: border-box;
    padding: 0 4px;
    background: var(--cover-slider-badge, transparent);
    border-style: var(--cover-slider-badge-style, solid);
    border-width: var(--cover-slider-badge-border, 0);
    border-color: var(--cover-slider-badge-border-color, #fff);
    border-radius: var(--cover-slider-badge-radius, 0);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.cover-slider__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    grid-area: foot;
    gap: 16px;
    min-width: 0;
    padding-bottom: 2px;
}

.cover-slider__info {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 4.6em;
}

.cover-slider__meta {
    display: none;
}

.cover-slider__meta.is-active {
    display: block;
    animation: cover-slider-in 0.35s ease;
}

@keyframes cover-slider-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

h3.cover-slider__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px ;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

h3.cover-slider__title a,
h3.cover-slider__title a:hover,
h3.cover-slider__title a:focus {
    color: inherit;
    text-decoration: none;
}

.cover-slider__author,
.cover-slider__views {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.cover-slider__author {
    overflow: hidden;
    margin-bottom: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cover-slider__views {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cover-slider__views svg {
    flex: none;
    width: 16px;
    height: 16px;
}

.cover-slider__nav {
    display: flex;
    gap: 8px;
}

button.cover-slider__arrow,
button.cover-slider__arrow:hover,
button.cover-slider__arrow:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
    box-shadow: none;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-shadow: none;
    cursor: pointer;
}

button.cover-slider__arrow svg {
    width: 14px;
    height: 14px;
}

button.cover-slider__arrow:hover,
button.cover-slider__arrow:focus {
    background: rgba(0, 0, 0, 0.5);
}

button.cover-slider__arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}

button.cover-slider__arrow.swiper-button-lock {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .cover-slider__meta.is-active {
        animation: none;
    }

    .cover-slider__shade {
        transition: none;
    }
}

/* ========== Danh sách nép (comic_nest_list) ========== */
.nest-list {
    --nest-h: 300px;
    --nest-gap: 10px;
    --nest-n: var(--nest-n-lg, 6);
    position: relative;
    box-sizing: border-box;
    height: calc(var(--nest-h) + 18px);
}

.nest-list__track {
    display: flex;
    align-items: flex-end;
    gap: var(--nest-gap);
    box-sizing: border-box;
    height: 100%;
    padding: 10px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.nest-list__track::-webkit-scrollbar {
    display: none;
}

.nest-list__item,
.nest-list__item:hover,
.nest-list__item:focus {
    --nest-item: calc((100% - (var(--nest-n, 6) - 1) * var(--nest-gap)) / var(--nest-n, 6));
    position: relative;
    display: block;
    flex: 0 0 var(--nest-item);
    min-width: 0;
    height: var(--nest-h);
    overflow: hidden;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transform-origin: center bottom;
    transition: flex-basis 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.45s ease;
}

.nest-list__track:hover .nest-list__item,
.nest-list__track:focus-within .nest-list__item,
.nest-list__track:has(.is-open) .nest-list__item {
    flex-basis: calc(var(--nest-item) * 0.72);
}

.nest-list__track:hover .nest-list__item:hover,
.nest-list__track:focus-within .nest-list__item:focus-visible,
.nest-list__track:has(.is-open) .nest-list__item.is-open {
    z-index: 2;
    flex-basis: calc(var(--nest-item) * 1.85);
}

.nest-list--single .nest-list__item,
.nest-list--single .nest-list__track:hover .nest-list__item {
    flex-basis: min(200px, var(--nest-item));
    max-width: 200px;
}

@media (max-width: 850px) {
    .nest-list {
        --nest-n: var(--nest-n-md, var(--nest-n-lg, 4));
    }
}

@media (max-width: 550px) {
    .nest-list {
        --nest-n: var(--nest-n-sm, var(--nest-n-md, 2));
    }
}

.nest-list__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.nest-list__nav[hidden] {
    display: none;
}

.nest-list__nav--prev { left: 8px; }
.nest-list__nav--next { right: 8px; }

.nest-list__nav::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
}

.nest-list__nav--prev::before {
    transform: rotate(135deg);
    margin-left: 3px;
}

.nest-list__nav--next::before {
    transform: rotate(-45deg);
    margin-right: 3px;
}

.nest-list__item img,
.nest-list__fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.nest-list__item:hover img,
.nest-list__item:focus-visible img {
    transform: scale(1);
}

.nest-list__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
}

.nest-list__item h3 {
    margin: 0;
}

.nest-list__title {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    margin: 0;
    padding: 48px 12px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 28%, rgba(0, 0, 0, 0.78) 100%);
    color: var(--nest-title, #fff);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}

.nest-list__title a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.nest-list__title span {
    display: -webkit-box;
    overflow: hidden;
    max-height: calc(1.2em * 3);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

@media (prefers-reduced-motion: reduce) {
    .nest-list__item,
    .nest-list__item img {
        transition: none;
    }
}

/* ========== Trang bảng xếp hạng ========== */
.rank-page {
    padding-top: 28px;
    padding-bottom: 48px;
}

.rank-head {
    margin-bottom: 22px;
}

.rank-head__kicker {
    margin: 0 0 6px;
    color: var(--rh-kicker, var(--fs-color-primary));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.rank-head__title {
    margin: 0;
    color: var(--rh-title, color-mix(in srgb, var(--fs-color-primary) 16%, #121826));
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.rank-head__title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 12px;
    border-radius: 99px;
    background: var(--rh-line, var(--fs-color-primary));
}

.rank-board__nav {
    margin-bottom: 18px;
}

.rank-modes {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    border-bottom: 1px solid #e6ebf2;
}

.rank-modes__tab {
    appearance: none;
    margin: 0 0 -1px;
    padding: 12px 0 10px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--rb-tab, #9aa3b2);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.rank-modes__tab.is-active {
    color: var(--rb-active, #1a1a1a);
    border-bottom-color: var(--rb-active, #1a1a1a);
}

.rank-board__sub {
    display: none;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    padding: 14px 0 6px;
    scrollbar-width: thin;
}

.rank-board__sub::-webkit-scrollbar {
    height: 4px;
}

.rank-board__sub.is-active {
    display: flex;
}

.rank-board__tab {
    appearance: none;
    flex: none;
    margin: 0;
    padding: 4px 0;
    border: 0;
    background: none;
    color: var(--rb-tab, #b0b7c3);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.rank-board__tab.is-active {
    color: var(--rb-active, #1a1a1a);
}

.rank-board__count {
    margin: 0 0 10px auto;
    color: var(--rb-muted, #7a869a);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

.rank-board__panel {
    display: none;
}

.rank-board__panel.is-active {
    display: block;
}

.rank-board__empty {
    margin: 0;
    padding: 48px 20px;
    border: 1px dashed color-mix(in srgb, var(--rb-accent, var(--fs-color-primary)) 22%, #e6ebf2);
    border-radius: 16px;
    color: var(--rb-muted, #7a869a);
    text-align: center;
}

.rank-stage {
    position: relative;
    display: grid;
    gap: 16px;
    align-items: end;
    padding: 18px;
    overflow: visible;
    border: 1px solid color-mix(in srgb, var(--rb-accent, var(--fs-color-primary)) 8%, #e6ebf2);
    border-radius: 22px;
}

.rank-stage--1 {
    grid-template-columns: minmax(0, 280px);
}

.rank-stage--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-stage--3 {
    grid-template-columns: 1fr 1.08fr 1fr;
}

.rank-stage__lead {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
    align-self: start;
}

.rank-stage__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff7e6;
}

.rank-stage__lead strong,
.rank-stage__lead em {
    display: block;
}

.rank-stage__lead strong {
    color: var(--rb-title, #1c2433);
    font-size: 15px;
    font-weight: 800;
    font-style: normal;
    line-height: 1.2;
}

.rank-stage__lead em {
    margin-top: 2px;
    color: var(--rb-muted, #8b95a7);
    font-size: 12px;
    font-style: normal;
    line-height: 1.3;
}

.rank-stage--3 .rank-stage__card--1 { order: 2; }
.rank-stage--3 .rank-stage__card--2 { order: 1; }
.rank-stage--3 .rank-stage__card--3 { order: 3; }

.rank-stage__card {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 10px 10px 12px;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(28, 39, 68, 0.05);
}

.rank-stage--3 .rank-stage__card--1 {
    transform: translateY(-14px);
    border-color: #f3d27a;
    box-shadow: 0 12px 28px rgba(224, 162, 26, 0.16);
}

.rank-stage__cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: #e8edf4;
}

.rank-stage__cover img,
.rank-stage__fallback {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-stage__fallback {
    background: linear-gradient(160deg, #f4f7fb, #d5dbe6);
}

.rank-stage__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
}

.rank-stage__card--1 .rank-stage__badge {
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    filter: drop-shadow(0 0 5px rgba(255, 214, 90, 0.95)) drop-shadow(0 0 14px rgba(255, 168, 32, 0.75));
}

.rank-stage__card--1 .rank-stage__badge::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: -5px;
    width: 52px;
    height: 58px;
    transform: translateX(-50%);
    background: #fff8e4;
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.rank-stage__card--2 .rank-stage__badge::before,
.rank-stage__card--3 .rank-stage__badge::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: -4px;
    width: 44px;
    height: 48px;
    transform: translateX(-50%);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.rank-stage__card--2 .rank-stage__badge::before {
    background: #f4f7fb;
}

.rank-stage__card--3 .rank-stage__badge::before {
    background: #fff3e8;
}

.rank-stage__crown {
    position: absolute;
    left: 50%;
    top: -17px;
    z-index: 2;
    display: block;
    transform: translateX(-50%);
    pointer-events: none;
}

.rank-stage__no {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 40px;
    background: linear-gradient(180deg, #d5dbe6, #8e98a8);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.rank-stage__card--1 .rank-stage__no {
    width: 42px;
    height: 46px;
    background: linear-gradient(180deg, #ffe07a, #e7a514);
    font-size: 18px;
}

.rank-stage__card--3 .rank-stage__no {
    background: linear-gradient(180deg, #f0c09a, #c47a45);
}

.rank-stage__hot {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(20, 24, 33, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.rank-stage__hot svg {
    color: #ff7a2f;
}

.rank-stage__body {
    padding: 10px 4px 2px;
}

.rank-stage__title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.rank-stage__card--1 .rank-stage__title {
    font-size: 16px;
}

.rank-stage__title a {
    display: -webkit-box;
    overflow: hidden;
    color: var(--rb-title, #1c2433);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-stage__title a:hover {
    color: var(--rb-accent, var(--fs-color-primary));
}

.rank-stage__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
}

.rank-stage__tags span {
    padding: 3px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--rb-accent, var(--fs-color-primary)) 4%, #f8fafd);
    color: var(--rb-accent, var(--fs-color-primary));
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.rank-stage__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 10px 0 0;
    color: var(--rb-muted, #8b95a7);
    font-size: 13px;
    line-height: 1.3;
}

.rank-stage__foot span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.rank-sheet {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--rb-accent, var(--fs-color-primary)) 12%, #e6ebf2);
    border-radius: 16px;
    background: #fff;
}

.rank-sheet__row {
    display: grid;
    grid-template-columns: 64px 52px minmax(0, 1fr) minmax(72px, max-content) max-content;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid color-mix(in srgb, var(--rb-accent, var(--fs-color-primary)) 8%, #eef2f7);
    color: inherit;
    text-decoration: none;
}

.rank-sheet__extra {
    display: contents;
}

.rank-sheet li:first-child .rank-sheet__row {
    border-top: 0;
}

.rank-sheet__row:hover {
    background: color-mix(in srgb, var(--rb-accent, var(--fs-color-primary)) 5%, #fff);
}

.rank-sheet__row:hover .rank-sheet__title {
    color: var(--rb-accent, var(--fs-color-primary));
}

.rank-sheet__no {
    color: var(--rb-title, color-mix(in srgb, var(--rb-accent, var(--fs-color-primary)) 35%, #243044));
    font-size: 18px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.rank-sheet__cover {
    width: 52px;
    height: 72px;
    overflow: hidden;
    border-radius: 8px;
    background: #e8edf4;
}

.rank-sheet__cover img,
.rank-sheet__fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.rank-sheet__title,
.rank-sheet__origin,
.rank-sheet__chapter {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-sheet__title {
    color: var(--rb-title, color-mix(in srgb, var(--rb-accent, var(--fs-color-primary)) 12%, #121826));
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.rank-sheet__origin,
.rank-sheet__chapter {
    color: var(--rb-muted, #7a869a);
    font-size: 13px;
    line-height: 1.4;
}

.rank-sheet__views {
    color: var(--rb-muted, #7a869a);
    font-size: 12px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.rank-sheet__views strong {
    display: block;
    color: var(--rb-title, color-mix(in srgb, var(--rb-accent, var(--fs-color-primary)) 18%, #121826));
    font-size: 15px;
    font-weight: 700;
}

/* ========== Lưới xếp hạng ========== */
.rank-grid {
    margin-top: 28px;
}

.rank-grid__modes {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    overflow-x: auto;
    border-bottom: 1px solid #e6ebf2;
}

.rank-grid__mode {
    flex: none;
    margin: 0;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--rg-muted, #8b95a7);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.rank-grid__mode.is-active {
    color: var(--rg-text, #111);
    border-bottom-color: var(--rg-text, #111);
}

.rank-grid__genres {
    display: none;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    padding: 14px 0 4px;
    scrollbar-width: thin;
}

.rank-grid__genres.is-active {
    display: flex;
}

.rank-grid__genre {
    flex: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--rg-muted, #b0b7c3);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
}

.rank-grid__genre.is-active {
    color: var(--rg-text, #111);
}

.rank-grid__stage {
    margin-top: 16px;
}

.rank-grid__panel {
    display: none;
}

.rank-grid__panel.is-active {
    display: block;
}

.rank-grid__list {
    display: grid;
    grid-template-columns: repeat(var(--rg-cols, 4), minmax(0, 1fr));
    gap: 28px 16px;
    margin: 0;
    padding: 16px 14px 22px;
    list-style: none;
}

.rank-grid__card {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.rank-grid__poster {
    position: relative;
    display: block;
}

.rank-grid__frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: var(--rg-radius, 0px);
    background: #eceff3;
}

.rank-grid__frame img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-grid__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 3px 6px;
    background: var(--rg-badge, #00c853);
    color: var(--rg-badge-text, #fff);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.rank-grid__no {
    --rank-stroke: 6px;
    --rank-edge: 8px;
    position: absolute;
    left: 4px;
    bottom: -8px;
    z-index: 2;
    color: var(--rg-no, #111);
    font-size: 52px;
    font-weight: 900;
    font-style: italic;
    line-height: 0.75;
    letter-spacing: -0.04em;
    -webkit-text-stroke: var(--rank-stroke) var(--rg-no-line, #fff);
    paint-order: stroke fill;
    pointer-events: none;
}

.rank-grid__no::before {
    content: attr(data-rank);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    color: var(--rg-no-edge, #111);
    -webkit-text-stroke: var(--rank-edge) var(--rg-no-edge, #111);
    paint-order: stroke fill;
}

.rank-grid__no--wide {
    font-size: 40px;
}

.rank-grid__title {
    display: block;
    margin-top: 14px;
    overflow: hidden;
    color: var(--rg-text, #111);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-grid__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 4px;
}

.rank-grid__kind {
    min-width: 0;
    overflow: hidden;
    color: var(--rg-muted, #9aa0a6);
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-grid__views {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 4px;
    color: var(--rg-views, #00dc64);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.rank-grid__empty {
    margin: 0;
    padding: 28px 16px;
    color: var(--rg-muted, #6b7280);
    text-align: center;
}

.rank-rows {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px 36px;
    padding: 16px 20px;
    border-radius: 12px;
    /* background: var(--rr-bg, #fff); */
    color: var(--rr-text, #111);
}

.rank-rows__modes,
.rank-rows__filters {
    display: flex;
    gap: 8px;
}

.rank-rows__modes {
    flex-direction: column;
    align-items: flex-start;
}

.rank-rows__mode,
.rank-rows__filter,
.rank-rows__read {
    font: inherit;
    cursor: pointer;
}

.rank-rows__mode {
    border: 0;
    border-radius: 8px;
    padding: 7px 14px;
    background: transparent;
    color: var(--rr-muted, #6b7280);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.rank-rows__mode-icon {
    display: none;
}

.rank-rows__mode-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.rank-rows__mode-icon--line svg path,
.rank-rows__mode-icon--line svg rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.rank-rows__mode.is-active .rank-rows__mode-icon--line svg path,
.rank-rows__mode.is-active .rank-rows__mode-icon--line svg rect {
    fill: currentColor;
    stroke: none;
}

.rank-rows__mode.is-active {
    background: var(--rr-active, #4c6fff);
    color: #fff;
}

.rank-rows__filter-label {
    margin: 0 0 10px;
    color: var(--rr-muted, #9aa0a6);
    font-size: 13px;
}

.rank-rows__filters {
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.rank-rows__filters[hidden],
.rank-rows__filter-label[hidden] {
    display: none;
}

.rank-rows__filter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 112px;
    border: 1px solid var(--rr-muted, #6b7280);
    border-radius: 999px;
    padding: 8px 16px;
    color: var(--rr-text, #111);
    line-height: 1.15;
}

.rank-rows__filter span {
    font-size: 14px;
    font-weight: 700;
}

.rank-rows__filter small {
    color: var(--rr-muted, #9aa0a6);
    font-size: 11px;
}

.rank-rows__filter.is-active {
    background: color-mix(in srgb, var(--rr-active, #4c6fff) 14%, #fff);
    color: var(--rr-active, #4c6fff);
}

.rank-rows__filter.is-active small {
    color: var(--rr-active, #4c6fff);
}

.rank-rows__panel[hidden] {
    display: none;
}

.rank-rows__item {
    display: grid;
    grid-template-columns: 52px 68px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #eceff3;
}

.rank-rows__no {
    color: var(--rr-rank, #c5cad3);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.rank-rows__no--top {
    color: var(--rr-rank-top, #ff3b30);
}

.rank-rows__no--hot {
    color: var(--rr-rank-hot, #ff6a2a);
}

.rank-rows__no--mid {
    color: var(--rr-rank-mid, #22a06b);
}

.rank-rows__cover {
    position: relative;
    display: block;
    width: 68px;
    height: 92px;
    overflow: hidden;
    border-radius: var(--rr-radius, 4px);
    background: #eceff3;
}

.rank-rows__badge,
.rank-rows__mobile-bar {
    display: none;
}

.rank-rows__cover img,
.rank-rows__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-rows__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rr-muted, #9aa0a6);
    font-size: 22px;
    font-weight: 800;
}

.rank-rows__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 4px;
}

.rank-rows__tags a,
.rank-rows__tags span {
    color: var(--rr-tag, #3b6cff);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.rank-rows__title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.rank-rows__title a {
    color: var(--rr-text, #111);
}

.rank-rows__excerpt,
.rank-rows__byline {
    margin: 4px 0 0;
    color: var(--rr-muted, #6b7280);
    font-size: 13px;
    line-height: 1.45;
}

.rank-rows__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-rows__byline {
    font-size: 12px;
}

.rank-rows__read {
    justify-self: end;
    border-radius: 999px;
    padding: 8px 18px;
    background: var(--rr-btn, #4c6fff);
    color: var(--rr-btn-text, #fff);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rank-rows__empty {
    margin: 0;
    padding: 28px 8px;
    color: var(--rr-muted, #6b7280);
    text-align: center;
}

/* ========== Hero đề xuất (comic_hero_suggest) ========== */
.hero-suggest {
    --hs-text: #f2f2f2;
    --hs-muted: rgba(242, 242, 242, 0.86);
    --hs-label: #4d4d4d;
    --hs-button: var(--fs-color-primary);
    --hs-button-text: #fff;
    --hs-cover: 315px;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    align-items: center;
    column-gap: 36px;
    min-height: calc(var(--hs-cover) + 105px);
    margin: 0;
    padding: 52px 48px 36px;
    overflow: hidden;
    border-radius: 20px;
    color: var(--hs-text);
    background: #07090b;
}

.hero-suggest__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.hero-suggest__bg-photo {
    position: absolute;
    inset: -18%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(26px) saturate(1.35);
    transform: scale(1.08);
    transition: opacity 0.28s ease;
}

.hero-suggest.is-swap .hero-suggest__bg-photo {
    opacity: 0.35;
}

.hero-suggest__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(6, 10, 12, 0.55) 0%, rgba(6, 10, 12, 0.38) 48%, rgba(6, 10, 12, 0.5) 100%);
}

.hero-suggest__copy {
    position: relative;
    z-index: 2;
    max-width: 520px;
    min-width: 0;
}

.hero-suggest__copy.is-swap .hero-suggest__title,
.hero-suggest__copy.is-swap .hero-suggest__excerpt {
    opacity: 0.35;
}

.hero-suggest__label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 3px 10px;
    border-radius: 11px 11px 11px 0;
    background: var(--hs-label);
    color: var(--hs-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-suggest h2.hero-suggest__title {
    margin: 16px 0 0;
    color: var(--hs-text);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.hero-suggest h2.hero-suggest__title a,
.hero-suggest h2.hero-suggest__title a:hover,
.hero-suggest h2.hero-suggest__title a:focus {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.hero-suggest__excerpt {
    display: -webkit-box;
    max-width: 460px;
    max-height: 96px;
    margin: 18px 0 0;
    overflow: hidden;
    color: var(--hs-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    transition: opacity 0.2s ease;
}

.hero-suggest__excerpt[hidden] {
    display: none;
}

.hero-suggest__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

a.hero-suggest__read,
a.hero-suggest__read:visited,
a.hero-suggest__read:hover,
a.hero-suggest__read:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 150px;
    height: 48px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: var(--hs-button);
    color: var(--hs-button-text);
    box-shadow: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
}

a.hero-suggest__read:hover,
a.hero-suggest__read:focus {
    background: color-mix(in srgb, var(--hs-button) 86%, #000);
    color: var(--hs-button-text);
}

a.hero-suggest__read svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

button.hero-suggest__heart,
button.hero-suggest__heart:hover,
button.hero-suggest__heart:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f2f2f2;
    box-shadow: none;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

button.hero-suggest__heart svg {
    width: 22px;
    height: 22px;
}

button.hero-suggest__heart.is-saved,
button.hero-suggest__heart.is-saved:hover {
    color: #ff6b8a;
    background: rgba(255, 255, 255, 0.12);
}

button.hero-suggest__heart.is-saved svg path {
    fill: currentColor;
}

.hero-suggest__stage {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding-bottom: 8px;
}

.hero-suggest__main {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-suggest__main .swiper-slide {
    width: calc(var(--hs-cover) * 2 / 3);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition-property: opacity;
    transition-timing-function: ease;
    transition-duration: 0ms;
}

.hero-suggest__cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: #1a2422;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    transform: scale(0.72);
    transform-origin: center center;
    transition-property: transform;
    transition-timing-function: ease;
    transition-duration: 0ms;
}

.hero-suggest--single .hero-suggest__cover {
    transform: scale(1);
}

.hero-suggest__cover img,
.hero-suggest__fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-suggest__fallback {
    background:
        radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(160deg, #2c463f, #121816);
}

.hero-suggest__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: var(--dim, 0.18);
    pointer-events: none;
    transition-property: opacity;
    transition-timing-function: ease;
    transition-duration: var(--hs-move, 0ms);
}

.hero-suggest--single .hero-suggest__cover::after {
    opacity: 0;
}

.hero-suggest--single .swiper-wrapper {
    justify-content: center;
}

.hero-suggest--single .swiper-slide {
    width: min(calc(var(--hs-cover) * 2 / 3), 70%);
}

button.hero-suggest__arrow,
button.hero-suggest__arrow:hover,
button.hero-suggest__arrow:focus {
    position: absolute;
    top: calc(var(--hs-cover) / 2);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(12, 16, 18, 0.55);
    color: #fff;
    box-shadow: none;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transform: translateY(-50%);
}

button.hero-suggest__arrow--prev {
    left: calc(50% - (var(--hs-cover) / 3) - 27px);
}

button.hero-suggest__arrow--next {
    right: calc(50% - (var(--hs-cover) / 3) - 27px);
}

button.hero-suggest__arrow svg {
    width: 20px;
    height: 20px;
}

button.hero-suggest__arrow:hover,
button.hero-suggest__arrow:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.hero-suggest__dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 18px 0 0;
}

button.hero-suggest__dot,
button.hero-suggest__dot:hover,
button.hero-suggest__dot:focus {
    width: 6px;
    height: 6px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: none;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
}

button.hero-suggest__dot.is-active,
button.hero-suggest__dot.is-active:hover {
    width: 18px;
    background: #fff;
}

/* ========== Ranking danh sách (comic_ranking_trend) ========== */
.trend-rank {
    --tr-card: 160px;
    margin: 0 0 30px;
    padding: 18px 0 10px;
    border-radius: var(--tr-block-radius, 12px);
    background: var(--tr-bg, #0f0f0f);
    color: #fbfbfb;
    overflow: hidden;
}

.trend-rank__head {
    padding: 0 20px 6px 24px;
}

.trend-rank__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 28px;
}

h2.trend-rank__heading {
    display: flex;
    align-items: center;
    gap: 6px;
    width: auto;
    max-width: calc(100% - 88px);
    margin: 0;
    color: var(--tr-accent, #0bcc99);
    font-size: var(--tr-heading, 21px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-transform: none;
}

.trend-rank__hint {
    position: relative;
    display: inline-flex;
    flex: none;
}

button.trend-rank__info,
button.trend-rank__info:hover,
button.trend-rank__info:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: #6e7072;
    line-height: 1;
    cursor: pointer;
}

.trend-rank__tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 5;
    width: max-content;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #2b2c2d;
    color: #fbfbfb;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.trend-rank__hint:hover .trend-rank__tip,
.trend-rank__hint:focus-within .trend-rank__tip {
    opacity: 1;
    transform: translate(-50%, 0);
}

a.trend-rank__more,
a.trend-rank__more:visited,
a.trend-rank__more:hover,
a.trend-rank__more:focus {
    flex: none;
    color: var(--tr-muted, #939699);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

a.trend-rank__more:hover,
a.trend-rank__more:focus {
    color: #fbfbfb;
}

.trend-rank__chips {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.trend-rank__chips::-webkit-scrollbar {
    display: none;
}

button.trend-rank__chip,
button.trend-rank__chip:hover,
button.trend-rank__chip:focus {
    flex: none;
    height: 32px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--tr-chip, #2b2c2d);
    box-shadow: none;
    color: var(--tr-chip-text, #939699);
    font-size: 14px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}

button.trend-rank__chip.is-active,
button.trend-rank__chip.is-active:hover,
button.trend-rank__chip.is-active:focus {
    background: var(--tr-chip-on, #fbfbfb);
    color: var(--tr-chip-on-text, #0f0f0f);
}

.trend-rank__panel[hidden] {
    display: none;
}

.trend-rank__empty {
    margin: 0;
    padding: 36px 24px 28px;
    color: var(--tr-muted, #939699);
    text-align: center;
}

.trend-rank__slider {
    position: relative;
    padding: 10px 0 6px 24px;
    overflow: hidden;
}

.trend-rank__slider .swiper-wrapper {
    display: flex;
    gap: var(--tr-gap, 12px);
}

.trend-rank__slider.swiper-initialized .swiper-wrapper {
    gap: 0;
}

.trend-rank__slider .swiper-slide {
    width: var(--tr-card, 160px);
    height: auto;
    flex-shrink: 0;
}

a.trend-rank__card,
a.trend-rank__card:hover,
a.trend-rank__card:focus {
    position: relative;
    display: block;
    padding-bottom: calc(var(--tr-rank, 74px) * 0.36);
    color: inherit;
    text-decoration: none;
}

.trend-rank__cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 160 / 242;
    border-radius: var(--tr-radius, 5px);
    background: #2a2a2a;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.trend-rank__cover img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trend-rank__shade {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 48%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.28) 62%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.trend-rank__copy {
    position: absolute;
    right: 8px;
    bottom: 16px;
    left: 0;
    z-index: 2;
    padding-left: calc(var(--tr-rank, 74px) * 0.68);
}

.trend-rank__name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--tr-title, #fbfbfb);
    font-size: var(--tr-name, 15px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.trend-rank__foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    margin-top: 2px;
    color: var(--tr-muted, rgba(255, 255, 255, 0.6));
    font-size: calc(var(--tr-name, 15px) - 3px);
    font-weight: 400;
    line-height: 1.35;
}

.trend-rank__genre {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.trend-rank__views {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.trend-rank__views svg {
    width: 13px;
    height: 13px;
    flex: none;
}

.trend-rank__no {
    position: absolute;
    left: -2px;
    bottom: -16px;
    z-index: 3;
    color: var(--tr-no, #fff);
    font-size: var(--tr-rank, 74px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.06em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}


button.trend-rank__nav,
button.trend-rank__nav:hover,
button.trend-rank__nav:focus {
    position: absolute;
    top: 46%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    color: #111;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

button.trend-rank__nav--prev {
    left: 10px;
}

button.trend-rank__nav--next {
    right: 10px;
}

button.trend-rank__nav::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
}

button.trend-rank__nav--prev::before {
    margin-left: 3px;
    transform: rotate(135deg);
}

button.trend-rank__nav--next::before {
    margin-right: 3px;
    transform: rotate(-45deg);
}

button.trend-rank__nav.swiper-button-disabled,
button.trend-rank__nav.swiper-button-lock {
    opacity: 0;
    pointer-events: none;
}

/* ========== Banner hướng dẫn (comic_guide_banner) ========== */
.guide-slider {
    --guide-bar: var(--guide-min, 96px);
    position: relative;
    width: var(--guide-w, 100%);
    max-width: 100%;
    min-height: var(--guide-bar, 96px);
    margin-right: var(--guide-mr, auto);
    margin-left: var(--guide-ml, 0);
    overflow: hidden;
    background: transparent;
}

.guide-slider .swiper-wrapper,
.guide-slider .swiper-slide {
    height: 100%;
}

.guide-slider .swiper-slide {
    position: relative;
    overflow: hidden;
}

a.guide-banner,
.guide-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    height: 100%;
    min-height: var(--guide-bar, 96px);
    margin: 0;
    overflow: hidden;
    background: transparent;
    color: var(--guide-title, #fff);
    text-decoration: none;
}

a.guide-banner::before,
.guide-banner::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--guide-bar, 96px);
    border-radius: 8px;
    background-color: var(--guide-bg, #3a28d0);
    z-index: 0;
}

a.guide-banner:hover,
a.guide-banner:focus,
a.guide-banner:visited {
    color: var(--guide-title, #fff);
    text-decoration: none;
}

a.guide-banner:hover::after {   
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: var(--guide-bar, 96px);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
    z-index: 1;
}

a.guide-banner:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

a.guide-banner.guide-banner--plain,
.guide-banner.guide-banner--plain {
    padding-right: 32px;
}

.guide-banner__scene {
    position: relative;
    z-index: 2;
    display: block;
    flex: none;
    width: var(--guide-image-w, 100%);
    max-width: none;
    height: auto;
    min-height: var(--guide-bar, 96px);
    margin-right: var(--guide-image-mr, 0);
    margin-bottom: var(--guide-image-y, 0px);
    margin-left: var(--guide-image-ml, auto);
    object-fit: cover;
    object-position: var(--guide-image-x, 50%) bottom;
    transform: translateX(var(--guide-image-shift, 0px));
    pointer-events: none;
    border-radius: 8px;
}

.guide-banner__label {
    position: absolute;
    bottom: 0;
    left: 28px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: var(--guide-bar, 96px);
    max-width: calc(100% - 56px);
    min-width: 0;
}

.guide-banner__text {
    min-width: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.guide-banner__arrow {
    flex: none;
    width: 18px;
    height: 18px;
}

.guide-slider .swiper-pagination.guide-slider__dots {
    position: absolute;
    right: auto;
    bottom: 10px;
    left: 32px;
    z-index: 3;
    width: auto;
    line-height: 0;
    text-align: left;
}

.guide-slider--single .guide-slider__dots,
.guide-slider .swiper-pagination-lock {
    display: none;
}

.guide-slider .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 3px;
    background: #fff;
    opacity: 0.5;
    vertical-align: middle;
}

.guide-slider .swiper-pagination-bullet-active {
    width: 14px;
    border-radius: 99px;
    opacity: 1;
}

.guide-slider:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

body.ux-builder-iframe .guide-slider {
    height: auto !important;
    overflow: visible;
}

body.ux-builder-iframe .guide-slider .swiper-wrapper {
    display: block;
    height: auto !important;
    transform: none !important;
}

body.ux-builder-iframe .guide-slider .swiper-slide {
    display: none !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

body.ux-builder-iframe .guide-slider .swiper-slide.uxb-selected,
body.ux-builder-iframe .guide-slider .uxb-wrapper--comic_guide_slide.uxb-selected > .swiper-slide {
    display: block !important;
}

body.ux-builder-iframe .guide-slider:not(:has(.swiper-slide.uxb-selected)):not(:has(.uxb-wrapper--comic_guide_slide.uxb-selected)) .swiper-slide:first-child {
    display: block !important;
}

body.ux-builder-iframe .guide-slider .guide-banner {
    height: auto;
}

body.ux-builder-iframe .guide-slider__dots {
    display: none;
}

@media (max-width: 849px) {
    .guide-slider {
        --guide-bar: var(--guide-min-md, var(--guide-min, 96px));
        width: var(--guide-w-md, var(--guide-w, 100%));
        margin-right: var(--guide-mr-md, var(--guide-mr, auto));
        margin-left: var(--guide-ml-md, var(--guide-ml, 0));
    }

    .guide-banner__scene {
        width: var(--guide-image-w-md, var(--guide-image-w, 100%));
        margin-right: var(--guide-image-mr-md, var(--guide-image-mr, 0));
        margin-bottom: var(--guide-image-y-md, var(--guide-image-y, 0px));
        margin-left: var(--guide-image-ml-md, var(--guide-image-ml, auto));
        object-position: var(--guide-image-x-md, var(--guide-image-x, 50%)) bottom;
        transform: translateX(var(--guide-image-shift-md, var(--guide-image-shift, 0px)));
    }
}

@media (max-width: 549px) {
    .guide-slider {
        --guide-bar: var(--guide-min-sm, var(--guide-min-md, max(72px, calc(var(--guide-min, 96px) * 0.78))));
        width: var(--guide-w-sm, var(--guide-w-md, var(--guide-w, 100%)));
        margin-right: var(--guide-mr-sm, var(--guide-mr-md, var(--guide-mr, auto)));
        margin-left: var(--guide-ml-sm, var(--guide-ml-md, var(--guide-ml, 0)));
    }

    .guide-banner__scene {
        width: var(--guide-image-w-sm, var(--guide-image-w-md, var(--guide-image-w, 100%)));
        margin-right: var(--guide-image-mr-sm, var(--guide-image-mr-md, var(--guide-image-mr, 0)));
        margin-bottom: var(--guide-image-y-sm, var(--guide-image-y-md, var(--guide-image-y, 0px)));
        margin-left: var(--guide-image-ml-sm, var(--guide-image-ml-md, var(--guide-image-ml, auto)));
        object-position: var(--guide-image-x-sm, var(--guide-image-x-md, 100%)) bottom;
        transform: translateX(var(--guide-image-shift-sm, var(--guide-image-shift-md, var(--guide-image-shift, 0px))));
    }

    .guide-banner__label {
        left: 16px;
        max-width: calc(100% - 32px);
    }

    .guide-slider .swiper-pagination.guide-slider__dots {
        left: 16px;
        bottom: 8px;
    }

    a.guide-banner.guide-banner--plain,
    .guide-banner.guide-banner--plain {
        padding-right: 16px;
    }

    .guide-banner__text {
        font-size: 16px;
    }

    .guide-banner__arrow {
        width: 16px;
        height: 16px;
    }
}

/* ========== Category suggest (comic_category_suggest) ========== */
.cat-suggest {
    --cat-bg: var(--fs-color-primary);
    --cat-title: #fff;
    --cat-chip: #fff;
    --cat-ink: #2a2a2a;
    --cat-radius: 16px;
    --cat-pad-y: 28px;
    --cat-pad-x: 40px;
    --cat-title-size: 20px;
    --cat-chip-size: 14px;
    --cat-gap: 12px;
    background: var(--cat-bg);
    border-radius: var(--cat-radius);
    padding: var(--cat-pad-y) var(--cat-pad-x);
    color: var(--cat-title);
}

.cat-suggest__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    margin: 0 0 18px;
}

h2.cat-suggest__title {
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    color: var(--cat-title);
    font-size: var(--cat-title-size);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: center;
    text-transform: none;
}

button.cat-suggest__hint {
    position: relative;
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: var(--cat-title);
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    cursor: help;
}

button.cat-suggest__hint:hover,
button.cat-suggest__hint:focus {
    background: transparent;
    color: var(--cat-title);
    outline: none;
    box-shadow: none;
}

.cat-suggest__tip {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    z-index: 4;
    width: max-content;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 0.15s ease;
}

button.cat-suggest__hint:hover .cat-suggest__tip,
button.cat-suggest__hint:focus .cat-suggest__tip {
    opacity: 1;
}

ul.cat-suggest__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--cat-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.cat-suggest__list > li {
    display: flex;
    margin: 0;
}

a.cat-suggest__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: calc(var(--cat-chip-size) + 22px);
    padding: 0 calc(var(--cat-chip-size) + 2px);
    border-radius: 999px;
    background: var(--cat-chip);
    color: var(--cat-ink);
    font-size: var(--cat-chip-size);
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

a.cat-suggest__chip:hover {
    background: color-mix(in srgb, var(--cat-chip) 88%, #000);
    color: var(--cat-ink);
}

.cat-suggest__empty {
    margin: 0;
    color: var(--cat-title);
    font-size: 14px;
    text-align: center;
}

/* ========== Sentence search (comic_sentence_search) ========== */
.sentence-search {
    --ss-title: #111115;
    --ss-ink: #111115;
    --ss-btn: #e9e9ec;
    --ss-btn-ink: #111115;
    --ss-chip: #fff;
    --ss-g1: #4cecbe;
    --ss-g2: #00bfe2;
    --ss-g3: #007ee0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 32px;
    color: var(--ss-ink);
}

.sentence-search__art {
    flex: 0 0 101px;
    width: 101px;
    height: 121px;
    object-fit: contain;
    object-position: center bottom;
}

.sentence-search__main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

h2.sentence-search__title {
    margin: 0 16px 0 0;
    color: var(--ss-title);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
}

.sentence-search__form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 16px 0 0;
}

.sentence-search .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.sentence-search__field {
    flex: 1;
    min-width: 0;
    padding: 2px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--ss-g1) 0%, var(--ss-g2) 50%, var(--ss-g3) 100%);
}

.sentence-search__box {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-radius: 2px;
    background: #fff;
}

.sentence-search__icon {
    display: flex;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--ss-ink);
    opacity: 0.55;
}

.sentence-search__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sentence-search__field input[type="search"],
.sentence-search__field input[type="search"]:hover,
.sentence-search__field input[type="search"]:focus {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ss-ink);
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    outline: none;
}

.sentence-search__field input[type="search"]::-webkit-search-decoration,
.sentence-search__field input[type="search"]::-webkit-search-cancel-button,
.sentence-search__field input[type="search"]::-webkit-search-results-button {
    display: none;
    -webkit-appearance: none;
}

.sentence-search__field input[type="search"]::placeholder {
    color: #8d8d96;
    opacity: 1;
}

button.sentence-search__go,
button.sentence-search__go:hover,
button.sentence-search__go:focus {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 42px;
    min-height: 0;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: var(--ss-btn);
    color: var(--ss-btn-ink);
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

button.sentence-search__go:hover,
button.sentence-search__go:focus {
    background: color-mix(in srgb, var(--ss-btn) 86%, #000);
    color: var(--ss-btn-ink);
    outline: none;
}

.sentence-search__chips {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.sentence-search__chips::-webkit-scrollbar {
    display: none;
}

button.sentence-search__chip,
button.sentence-search__chip:hover,
button.sentence-search__chip:focus {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 0;
    display: inline-flex;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: min(100%, 320px);
    height: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 2px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ss-g1) 0%, var(--ss-g2) 50%, var(--ss-g3) 100%);
    box-shadow: none;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}

button.sentence-search__chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ss-chip);
    color: var(--ss-ink);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    white-space: nowrap;
}

.sentence-search__chip-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

button.sentence-search__chip:hover span,
button.sentence-search__chip:focus span {
    background: color-mix(in srgb, var(--ss-chip) 92%, #000);
    color: var(--ss-ink);
}


