/* ===========================================================================
 * lulu 壳层覆盖：去侧栏、源站顶栏/底栏、粉红强调（压过 kanju 脚手架）
 * 对照：k5u-mirror/pages-static/01-home.html + shots/mobile-390/01-home*.png
 * ========================================================================= */

html, body {
    background: var(--k-bg);
    color: var(--k-text);
    font-family: var(--k-font);
}

.k-atmosphere {
    background: var(--k-home-gradient) !important;
    opacity: 1;
}

/* 彻底关掉左侧栏（源站没有） */
#k-sidebar,
.k-rail {
    display: none !important;
}
#k-shell {
    display: block;
}
#k-main {
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
#k-shell[data-rail-collapsed] #k-main,
html[data-k-auth="user"] #k-main,
html[data-rail-collapsed-init] #k-main {
    margin-left: 0 !important;
}

/* 顶栏：粘性 site-header */
#k-topnav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: block;
    height: auto !important;
    min-height: 0;
    padding: 0;
    padding-top: var(--k-safe-top);
    background: color-mix(in srgb, var(--k-surface) 92%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--k-border-soft);
    box-shadow: none;
}
html[data-k-hide-topnav] #k-topnav { display: none !important; }

.lulu-header__inner {
    width: min(100%, var(--k-page-max));
    margin: 0 auto;
    padding: 8px var(--k-page-edge) 0;
}
.lulu-header__topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}
.lulu-header__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--k-text);
}
.lulu-header__brand img,
.lulu-header__brand .k-brand-logo,
.lulu-header__brand svg {
    width: 82px;
    height: 32px;
    object-fit: contain;
}
.lulu-header__search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 6px 0 12px;
    border-radius: 999px;
    background: var(--k-tint);
    border: 1px solid var(--k-border);
    color: var(--k-text-muted);
    text-decoration: none;
    min-width: 0;
}
/* 源站 01-home 搜索条白底；浅色覆盖 tint 灰 */
html.light .lulu-header__search {
    background: #fff;
    border-color: rgb(40 20 36 / 10%);
}
html.light .lulu-header__search-action {
    background: rgba(255, 93, 121, 0.12);
    color: #ff5d79;
}
.lulu-header__search-icon { display: grid; place-items: center; flex: 0 0 auto; opacity: .85; }
.lulu-header__search-ph {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}
.lulu-header__search-action {
    flex: 0 0 auto;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--k-accent-gradient, var(--k-primary));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}
.lulu-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lulu-header__iconbtn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--k-text);
    text-decoration: none;
    cursor: pointer;
}
.lulu-header__iconbtn:hover {
    background: var(--k-accent-soft);
    color: var(--k-primary);
}
/* 源站顶栏我的/主题 = 实心剪影（fill=currentColor），非描边 outline */
.lulu-header__iconbtn svg {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
}

.lulu-header__channel-row {
    display: flex;
    min-width: 0;
    padding: 6px 0 8px;
}
.lulu-header__channel-nav {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
    width: 100%;
}
.lulu-header__channel-nav::-webkit-scrollbar { display: none; }
.lulu-header__channel-nav a {
    position: relative;
    flex: none;
    padding: 4px 0 8px;
    color: var(--k-text-muted);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}
.lulu-header__channel-nav a.is-active,
.lulu-header__channel-nav a[aria-current="page"] {
    color: var(--k-text);
    font-weight: 700;
}
.lulu-header__channel-nav a.is-active::after,
.lulu-header__channel-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    bottom: 2px;
    height: 2px;
    border-radius: 99px;
    background: var(--k-primary);
}

/* 旧顶栏零件隐藏 */
#k-topnav .k-burger,
#k-topnav .k-navpill,
#k-topnav .k-brand__text { display: none !important; }

/* 主内容：仅窄屏为底栏留白；≥761px 导航改右侧竖条，不再占底（对照源站 760 分界） */
#app-main {
    width: min(100%, var(--k-page-max));
    margin: 0 auto;
    padding: 8px var(--k-page-edge) 16px;
    box-sizing: border-box;
}
@media (max-width: 760px) {
    #app-main {
        padding-bottom: calc(var(--k-bottom-nav-h) + var(--k-safe-bottom) + 16px);
    }
}
html[data-k-hide-tabbar] #app-main {
    padding-bottom: 16px;
}
/* hide_tabbar + 底浮：底距由 shell.css html.has-k-bottom-ads #app-main !important 统管（含 --k-bottom-ads-h），
   勿在此写死 16px 把 ads 留白清掉；有底浮时本规则被 shell 覆盖。 */

/* 底栏：≤760px 贴底全宽网格；≥761px 改为右侧竖条胶囊（对照源站 .bottom-navigation） */
@media (max-width: 760px) {
#k-tabbar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    /* 高于 body::after(50) / 专页弹窗遮罩(70)；低于底浮广告(860) */
    z-index: 200;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    min-height: calc(var(--k-bottom-nav-h) + var(--k-safe-bottom));
    padding: 6px 0 max(6px, var(--k-safe-bottom));
    box-sizing: border-box;
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    border: 0;
    border-top: 1px solid var(--k-border);
    background: var(--k-tabbar-bg) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 -8px 24px rgb(0 0 0 / 28%);
    transform: none !important;
}
}
@media not (max-width: 760px) {
#k-tabbar {
    position: fixed !important;
    top: 50% !important;
    right: max(12px + env(safe-area-inset-right, 0px), calc((100vw - var(--k-page-max, 1180px)) / 2 - 84px)) !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 200;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch;
    gap: 4px;
    width: 72px !important;
    max-width: 72px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 8px !important;
    box-sizing: border-box;
    border: 1px solid var(--k-border) !important;
    border-radius: 24px !important;
    background: color-mix(in srgb, var(--k-surface) 90%, transparent) !important;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 44px rgb(20 16 28 / 16%);
    transform: translateY(-50%) !important;
}
}
html[data-k-hide-tabbar] #k-tabbar { display: none !important; }

#k-tabbar a {
    display: grid !important;
    place-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 48px;
    padding: 2px;
    border-radius: 12px;
    color: var(--k-text-muted) !important;
    text-decoration: none;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}
#k-tabbar a .k-tabbar__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: none !important;
}
#k-tabbar a .k-tabbar__icon svg {
    width: 22px;
    height: 22px;
}
#k-tabbar .k-tabbar__label,
#k-tabbar small {
    font-size: 10px;
    line-height: 1.15;
    overflow: hidden;
    max-width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.02em;
    padding: 0 1px;
    box-sizing: border-box;
    text-align: center;
}
/* 390 宽五格：小说/漫画较长，保证不裁切 */
@media (max-width: 420px) {
    #k-tabbar .k-tabbar__label,
    #k-tabbar small {
        font-size: 9px;
        letter-spacing: -0.04em;
    }
    #k-tabbar a { padding: 2px 0; }
}
#k-tabbar a.is-active,
#k-tabbar a[aria-current="page"] {
    color: var(--k-primary) !important;
    background: transparent !important;
}
#k-tabbar a.is-active .k-tabbar__icon,
#k-tabbar a[aria-current="page"] .k-tabbar__icon {
    background: transparent !important;
    box-shadow: none !important;
    color: var(--k-primary);
}
#k-tabbar .k-tabbar__share { display: none !important; }

@media not (max-width: 760px) {
    #k-tabbar a {
        min-height: 58px;
        padding: 6px 4px;
        gap: 4px;
    }
    #k-tabbar a:hover {
        transform: translate(-2px);
        background: var(--k-tint, var(--k-surface)) !important;
        color: var(--k-text) !important;
    }
    #k-tabbar a.is-active,
    #k-tabbar a[aria-current="page"] {
        background: var(--k-accent-soft, rgb(255 93 121 / 14%)) !important;
        color: var(--k-primary-strong, var(--k-primary)) !important;
    }
    #k-tabbar a.is-active .k-tabbar__icon,
    #k-tabbar a[aria-current="page"] .k-tabbar__icon {
        background: transparent !important;
        color: inherit;
    }
    #k-tabbar .k-tabbar__label,
    #k-tabbar small {
        font-size: 11px;
        line-height: 1.2;
    }
}

/* 首页区块 */
.lulu-home {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lulu-home__grid-ad {
    padding: 4px 0;
}
.lulu-sec {
    min-width: 0;
}
.lulu-sec__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0 8px;
}
.lulu-sec__title {
    margin: 0;
    font-size: 16px;
    font-weight: 750;
    color: var(--k-text);
}
.lulu-sec__more {
    color: var(--k-text-muted);
    font-size: 12px;
    text-decoration: none;
}
.lulu-sec__more:hover { color: var(--k-primary); }

/* 复用原横滑卡片，略收紧 */
.lulu-sec .k-cards {
    gap: 8px;
}
.lulu-sec--portrait .k-cards {
    --k-cover-ratio: 4 / 5;
}

/* 隐藏残留 kanju hero */
.k-hero { display: none !important; }

/* 桌面：底栏仍底部全宽（源站大屏另有侧浮，T5 再精修）；先保证 H5 对齐 */
@media (min-width: 1024px) {
    .lulu-header__inner,
    #app-main {
        padding-left: clamp(16px, 4vw, 32px);
        padding-right: clamp(16px, 4vw, 32px);
    }
    .lulu-header__channel-nav { gap: 22px; }
    .lulu-header__channel-nav a { font-size: 13px; }
}

/* 品牌双图：深色底用白标，浅色底用黑标 */
.lulu-header__brand .k-brand__mark--light { display: none; }
.lulu-header__brand .k-brand__mark--dark { display: block; width: 82px; height: 32px; object-fit: contain; }
html.light .lulu-header__brand .k-brand__mark--dark { display: none; }
html.light .lulu-header__brand .k-brand__mark--light { display: block; width: 82px; height: 32px; object-fit: contain; }


/* ===========================================================================
 * site-footer（壳层统一）
 * 对照：01-home.html / 03-search_scope_video-long.html
 * ========================================================================= */
.site-footer {
    margin: 28px 0 0;
    padding: 24px 0 calc(28px + var(--k-safe-bottom, 0px));
    border-top: 1px solid var(--k-border);
    background: color-mix(in srgb, var(--k-bg) 84%, var(--k-surface) 16%);
    color: var(--k-text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.site-footer__inner {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 var(--k-page-edge, 1rem);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.site-footer__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.site-footer__title {
    color: var(--k-text);
    font-size: 15px;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.site-footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 10px;
}

.site-footer__telegram,
.site-footer__contact {
    color: var(--k-primary, #ff5d79);
    text-decoration: none;
    white-space: nowrap;
}

.site-footer__telegram:hover,
.site-footer__contact:hover {
    text-decoration: underline;
}

.site-footer__telegram:focus-visible,
.site-footer__contact:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.site-footer__theme-text {
    margin-top: 4px;
    color: var(--k-text-muted);
    font-size: 12px;
    line-height: 1.55;
    max-width: 48rem;
}

.site-footer__theme-text a {
    color: inherit;
    text-decoration: underline;
}

/* 搜索页 18+ 警告（源站 adult-content-warning） */
.site-footer__adult-warning.adult-content-warning {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--k-warning-border, rgb(253 230 138 / 30%));
    background: var(--k-warning-bg, rgb(251 191 36 / 12%));
    color: var(--k-text-muted);
}

.adult-content-warning__header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.adult-content-warning__age {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--k-primary, #ff5d79);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}

.adult-content-warning__title {
    display: block;
    color: var(--k-text);
    font-size: 13px;
    font-weight: 700;
}

.adult-content-warning__subtitle {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--k-text-muted);
}

.adult-content-warning__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--k-text-muted);
}

.adult-content-warning__content p {
    margin: 0;
}

/* 有底栏时给页脚留空，避免贴住 tabbar（仅窄屏底栏占位） */
@media (max-width: 760px) {
html:not([data-k-hide-tabbar]) #app-main .site-footer {
    padding-bottom: calc(28px + var(--k-tabbar-h, 64px) + var(--k-safe-bottom, 0px));
}
}


/* ===========================================================================
 * 首页分区横滑：390 约 4 卡/屏 + 播放叠层（对照 home-video-strip）
 * 源站视频卡：无左上/右上角标，封面中心深灰圆底 + 白三角播放钮，标题在海报下
 * ========================================================================= */
.lulu-sec--strip .k-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(76px, 21vw, 126px);
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px 0 8px;
    scroll-snap-type: x mandatory;
}
.lulu-sec--strip .k-cards::-webkit-scrollbar { display: none; }
.lulu-sec--strip .k-card {
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    aspect-ratio: auto;
    border: 0;
    background: transparent;
    overflow: visible;
}
.lulu-sec--strip .k-card::after { display: none !important; content: none !important; }
/* 去掉源站没有的角标（remarks / 热度） */
.lulu-sec--strip .k-card__badge,
.lulu-sec--strip .k-card__heat { display: none !important; }

.lulu-sec--strip .k-card__cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: var(--k-surface, #efe6ee);
}
.lulu-sec--strip .k-card__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transform: none;
}
.lulu-sec--strip .k-card:hover .k-card__img { transform: scale(1.02); }

/* 中心圆形播放钮：strip ≈27px（对照源站 home-video-strip）；trend 宽卡另覆 36 */
.lulu-sec--strip .k-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    margin: 0;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 32% 28%, rgb(90 90 96 / 55%), transparent 55%),
        rgb(40 40 46 / 72%);
    color: #fff;
    pointer-events: none;
    box-shadow: 0 2px 10px rgb(0 0 0 / 28%);
    backdrop-filter: blur(2px);
}
.lulu-sec--strip .k-card__play svg {
    width: 14px;
    height: 14px;
    margin-left: 1px;
    display: block;
    filter: drop-shadow(0 1px 1px rgb(0 0 0 / 25%));
}

.lulu-sec--portrait .k-cards {
    grid-auto-columns: clamp(80px, 22vw, 132px);
}

/* P0: landscape 横卡 16/10（正在热播/今日更新/高分） */
.lulu-sec--strip.lulu-sec--landscape .k-cards {
    grid-auto-columns: clamp(96px, 25vw, 184px);
}
.lulu-sec--strip.lulu-sec--landscape .k-card__cover {
    aspect-ratio: 16 / 10;
}

/* P0: 剧集 compact ≈4/4.5 */
.lulu-sec--strip.lulu-sec--series .k-cards {
    grid-auto-columns: clamp(76px, 21vw, 126px);
}
.lulu-sec--strip.lulu-sec--series .k-card__cover {
    aspect-ratio: 4 / 4.5;
}

/* P0: portrait 必须盖过 strip 默认 2/3 → 短视频精选 ≈4/5 */
.lulu-sec--strip.lulu-sec--portrait .k-card__cover {
    aspect-ratio: 4 / 5;
}

/* P0: 隐藏年份/地区 meta 次行 */
.lulu-sec--strip .k-card__text em,
.lulu-sec--strip .k-card__copy em,
.lulu-home__catrows .k-sec--feed .k-card__text em,
.lulu-home__catrows .k-sec--feed .k-card__copy em,
.k-catrows .k-sec--feed .k-card__text em,
.k-catrows .k-sec--feed .k-card__copy em {
    display: none !important;
}
.lulu-sec__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.lulu-sec__more-chevron {
    display: inline-grid;
    place-items: center;
    width: 14px;
    height: 14px;
}
.lulu-sec__more-chevron svg {
    width: 14px;
    height: 14px;
}
.lulu-sec__title-ico {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    color: var(--k-primary);
    vertical-align: -2px;
}
.lulu-sec__title-ico svg { width: 16px; height: 16px; }

/* 分区卡标题在海报下方（对照源站 home-video-strip，勿叠海报） */
.lulu-sec--strip .k-card__copy { display: none !important; }
.lulu-sec--strip .k-card__text {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    padding: 0 1px;
    position: static;
}
.lulu-sec--strip .k-card__text strong {
    color: var(--k-text, #1b1520);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lulu-sec--strip .k-card__text em {
    color: var(--k-text-muted, #8a8190);
    font-size: 11px;
    font-style: normal;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 轮播指示点：叠在 media 底 + 粉胶囊 active（对照源站 / r5d） */
.lulu-ad-carousel__indicators {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 8px !important;
    z-index: 3;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    pointer-events: none;
}
.lulu-ad-carousel__dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgb(255 255 255 / 55%);
    opacity: 1;
    pointer-events: auto;
}
.lulu-ad-carousel__dot.is-active {
    width: 20px;
    height: 7px;
    border-radius: 999px;
    background: #ff5d79 !important;
}
html.light .lulu-ad-carousel__dot.is-active {
    background: #ff5d79 !important;
}
.lulu-ad-slot--carousel .lulu-ad-card__title {
    display: none !important;
}

/* 源站广告角标默认隐藏 */
.lulu-ad-card__badge { display: none !important; }
.lulu-ad-card__media--demo::after { content: none !important; }

/* 浅色底品牌字标双图都可用同一张彩色字标 */
html.light .lulu-header__brand .k-brand__mark--dark { display: none; }
html.light .lulu-header__brand .k-brand__mark--light { display: block; }
html:not(.light) .lulu-header__brand .k-brand__mark--light { display: none; }
html:not(.light) .lulu-header__brand .k-brand__mark--dark { display: block; }


/* HARD override: kill shell.css mint-green / capsule active（仅窄屏底栏） */
@media (max-width: 760px) {
    #k-tabbar {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        transform: none !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        border-radius: 0 !important;
        border: 0 !important;
        border-top: 1px solid var(--k-border) !important;
        background: var(--k-tabbar-bg) !important;
        box-shadow: 0 -8px 24px rgb(0 0 0 / 12%) !important;
        padding: 6px 0 max(6px, var(--k-safe-bottom)) !important;
        gap: 0 !important;
        align-items: stretch !important;
        z-index: 200 !important;
    }
    #k-tabbar a,
    #k-tabbar a.is-active,
    #k-tabbar a[aria-current="page"],
    html.light #k-tabbar a.is-active,
    html.light #k-tabbar a[aria-current="page"] {
        border: 0 !important;
        border-color: transparent !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 12px !important;
        color: var(--k-text-muted) !important;
        transform: none !important;
    }
    #k-tabbar a.is-active,
    #k-tabbar a[aria-current="page"],
    html.light #k-tabbar a.is-active,
    html.light #k-tabbar a[aria-current="page"] {
        color: var(--k-primary) !important;
    }
    #k-tabbar a.is-active .k-tabbar__icon,
    #k-tabbar a[aria-current="page"] .k-tabbar__icon,
    html.light #k-tabbar a.is-active .k-tabbar__icon,
    html.light #k-tabbar a[aria-current="page"] .k-tabbar__icon {
        background: transparent !important;
        box-shadow: none !important;
        border: 0 !important;
        color: var(--k-primary) !important;
    }
}

/* === catrows / k-sec--feed: same cover rules as lulu-sec--strip (r3 P0) === */
.lulu-home__catrows .k-sec--feed .k-cards,
.k-catrows .k-sec--feed .k-cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(96px, 25vw, 184px);
    gap: 10px;
    overflow-x: auto;
    padding: 0 12px 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.lulu-home__catrows .k-sec--feed .k-card,
.k-catrows .k-sec--feed .k-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    aspect-ratio: auto;
    border: 0;
    background: transparent;
    overflow: visible;
    scroll-snap-align: start;
}
.lulu-home__catrows .k-sec--feed .k-card::after,
.k-catrows .k-sec--feed .k-card::after { display: none !important; content: none !important; }
.lulu-home__catrows .k-sec--feed .k-card__badge,
.lulu-home__catrows .k-sec--feed .k-card__heat,
.k-catrows .k-sec--feed .k-card__badge,
.k-catrows .k-sec--feed .k-card__heat { display: none !important; }

.lulu-home__catrows .k-sec--feed .k-card__cover,
.k-catrows .k-sec--feed .k-card__cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: var(--k-surface, #efe6ee);
}
.lulu-home__catrows .k-sec--feed .k-card__img,
.k-catrows .k-sec--feed .k-card__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transform: none;
}
.lulu-home__catrows .k-sec--feed .k-card:hover .k-card__img,
.k-catrows .k-sec--feed .k-card:hover .k-card__img { transform: scale(1.02); }

.lulu-home__catrows .k-sec--feed .k-card__play,
.k-catrows .k-sec--feed .k-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    margin: 0;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(circle at 32% 28%, rgb(90 90 96 / 55%), transparent 55%),
        rgb(40 40 46 / 72%);
    color: #fff;
    pointer-events: none;
    box-shadow: 0 2px 10px rgb(0 0 0 / 28%);
    backdrop-filter: blur(2px);
}
.lulu-home__catrows .k-sec--feed .k-card__play svg,
.k-catrows .k-sec--feed .k-card__play svg {
    width: 14px;
    height: 14px;
    margin-left: 1px;
    display: block;
    filter: drop-shadow(0 1px 1px rgb(0 0 0 / 25%));
}
.lulu-home__catrows .k-sec--feed .k-card__copy,
.k-catrows .k-sec--feed .k-card__copy { display: none !important; }
.lulu-home__catrows .k-sec--feed .k-card__text,
.k-catrows .k-sec--feed .k-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.lulu-home__catrows .k-sec--feed .k-card__text strong,
.k-catrows .k-sec--feed .k-card__text strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--k-fg, #1a1220);
}
.lulu-home__catrows .k-sec--feed .k-card__text em,
.k-catrows .k-sec--feed .k-card__text em {
    font-style: normal;
    font-size: 11px;
    color: var(--k-muted, #8a7a88);
}
.lulu-home__catrows .k-sec--feed .k-sec__more,
.k-catrows .k-sec--feed .k-sec__more {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: var(--k-muted, #8a7a88);
    font-size: 12px;
    cursor: pointer;
}


/* ===========================================================================
 * 首页 catalog 三行（分类/热门/精选）— 对照 01-home v3-home__catalog-row
 * 源站：行标签 = tint 底 + 彩字 10px/radius5；chip = 灰底胶囊 8px/radius4
 * ========================================================================= */
.v3-home__catalog,
.lulu-home__catalog {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px 0 12px;
    margin: 0;
}
.v3-home__catalog-row,
.lulu-catalog-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-width: 0;
}
.v3-home__catalog-row > strong,
.lulu-catalog-row > strong {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-height: 0;
    padding: 4px 2px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
/* 分类：字 rgb(217,138,29) + 底 rgba(255,171,60,0.14) */
.v3-home__catalog-row--category > strong {
    color: rgb(217, 138, 29);
    background: rgba(255, 171, 60, 0.14);
}
/* 热门：字 rgb(237,77,117) + 底 rgba(255,87,129,0.12) */
.v3-home__catalog-row--hot > strong {
    color: rgb(237, 77, 117);
    background: rgba(255, 87, 129, 0.12);
}
/* 精选：字 rgb(39,141,189) + 底 rgba(63,163,220,0.13) */
.v3-home__catalog-row--featured > strong {
    color: rgb(39, 141, 189);
    background: rgba(63, 163, 220, 0.13);
}
.lulu-catalog-row__chips {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px 4px;
    min-width: 0;
}
.lulu-catalog-row__chips a {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 5px 1px;
    border-radius: 4px;
    background: rgba(24, 28, 42, 0.05);
    color: rgb(111, 116, 132);
    font-size: 8px;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    text-align: center;
}
.lulu-catalog-row__chips a:hover {
    color: var(--k-primary, #ff5d79);
    background: rgba(255, 93, 121, 0.10);
}
.v3-home__catalog-row--hot .lulu-catalog-row__chips,
.v3-home__catalog-row--featured .lulu-catalog-row__chips {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* ===========================================================================
 * 触底首段 trend 宽卡（黑料）：aspect 1.9 + 底渐变叠标题 + 36px 播放钮
 * ========================================================================= */
.lulu-home__catrows .k-sec--trend .k-cards,
.k-catrows .k-sec--trend .k-cards {
    grid-auto-columns: clamp(260px, 78vw, 320px);
    gap: 12px;
    padding: 0 12px 8px;
}
.lulu-home__catrows .k-sec--trend .k-card,
.k-catrows .k-sec--trend .k-card {
    position: relative;
    gap: 0;
}
.lulu-home__catrows .k-sec--trend .k-card__cover,
.k-catrows .k-sec--trend .k-card__cover {
    aspect-ratio: 1.9 / 1;
    border-radius: 12px;
}
.lulu-home__catrows .k-sec--trend .k-card__text,
.k-catrows .k-sec--trend .k-card__text,
.lulu-home__catrows .k-sec--trend .k-card__copy,
.k-catrows .k-sec--trend .k-card__copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: block !important;
    padding: 28px 12px 10px;
    background: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / 72%) 100%);
    border-radius: 0 0 12px 12px;
    pointer-events: none;
}
.lulu-home__catrows .k-sec--trend .k-card__text strong,
.k-catrows .k-sec--trend .k-card__text strong,
.lulu-home__catrows .k-sec--trend .k-card__copy strong,
.k-catrows .k-sec--trend .k-card__copy strong {
    color: #fff !important;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
}
.lulu-home__catrows .k-sec--trend .k-card__play,
.k-catrows .k-sec--trend .k-card__play {
    width: 36px;
    height: 36px;
}
.lulu-home__catrows .k-sec--trend .k-card__play svg,
.k-catrows .k-sec--trend .k-card__play svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

/* lulu shell: novel channel topnav (10-novels) */
.lulu-header__channel-row--novels {
    align-items: center;
    gap: 10px;
}
.lulu-header__novel-switch {
    display: flex;
    flex: none;
    align-items: center;
    padding-right: 10px;
    border-right: 1px solid var(--k-border);
    gap: 2px;
}
.lulu-header__novel-switch a {
    padding: 6px 7px;
    border-radius: 7px;
    color: var(--k-text-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
}
.lulu-header__novel-switch a.is-selected,
.lulu-header__novel-switch a[aria-current="page"] {
    background: var(--k-accent-soft, rgb(255 93 121 / 14%));
    color: var(--k-primary-strong, #e64166);
}
html.light .lulu-header__novel-switch {
    background: transparent;
    border-right-color: rgb(24 28 42 / 10%);
}
html.light .lulu-header__novel-switch a {
    color: #6f7484;
}
html.light .lulu-header__novel-switch a.is-selected,
html.light .lulu-header__novel-switch a[aria-current="page"] {
    background: rgb(255 93 121 / 16%);
    color: #e64166;
}
.lulu-header__novel-switch a:focus-visible {
    outline: 2px solid var(--k-primary, #ff5d79);
    outline-offset: 2px;
}
.lulu-header__channel-row--novels .lulu-header__channel-nav {
    flex: 1;
    padding-bottom: 0;
}
/* class {display:flex} 会盖掉 UA [hidden]{display:none}（同等 0,1,0 且 author 覆盖 UA） */
.lulu-header__channel-nav[hidden],
.lulu-header__channel-row[hidden] {
    display: none !important;
}
/* htmx / SSR：html[data-k-nav-channel] 切换影视 vs 小说顶栏与搜索占位 */
html[data-k-nav-channel="novels"] [data-k-channel-video] { display: none !important; }
html[data-k-nav-channel="novels"] [data-k-channel-novels] { display: flex !important; }
html:not([data-k-nav-channel="novels"]) [data-k-channel-novels] { display: none !important; }
html[data-k-nav-channel="novels"] [data-k-ph-video] { display: none !important; }
html[data-k-nav-channel="novels"] [data-k-ph-novel] { display: inline !important; }
html:not([data-k-nav-channel="novels"]) [data-k-ph-novel] { display: none !important; }
html:not([data-k-nav-channel="novels"]) [data-k-ph-video] { display: inline !important; }

/* r24: site-header compact search/moon = solid fill (02-rank) */
/* 源站 compact-button / icon-button SVG 均为 fill=currentColor，非描边 */
.site-header.site-header--compact .site-header__compact-actions .site-header__compact-button svg {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
}
.site-header.site-header--compact .site-header__compact-actions .site-header__compact-button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}
/* 频道顶栏搜索条内图标：同源站 solid magnifier */
.lulu-header__search-icon svg {
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 0;
}

/* 收藏回家地址弹层打开时：底栏压过 .k-ov(200)，保证四字可点 */
body[data-k-ov-open="address"] #k-tabbar {
    z-index: 260 !important;
    pointer-events: auto !important;
}


/* 网站参数无 logo 时，品牌位改用名称文字（不回落噜噜字标） */
.lulu-brand-name {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 10em;
}
.lulu-header__brand .lulu-brand-name {
    font-size: 18px;
    max-width: 8.5em;
}
.k-rail-mini__brand .lulu-brand-name {
    font-size: 13px;
    max-width: 6em;
}
.mine-shell-header .site-header__profile-brand:has(.lulu-brand-name) {
    width: auto;
    max-width: 8em;
    padding: 0 8px;
}
