:root {
    --bg: #0c0e13;
    --bg2: #12151c;
    --card: #171b24;
    --card-hover: #1d2330;
    --line: #262b36;
    --text: #eef0f4;
    --muted: #8b93a7;
    --accent: var(--vod-primary, #3d8bfd);
    --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
    --radius: 10px;
    --shadow: 0 10px 28px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    background:
        radial-gradient(1200px 480px at 10% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: #fff; }
.wrap { width: min(1680px, calc(100% - 28px)); margin: 0 auto; }
.page { padding: 20px 0 48px; }

/* Header */
header.site {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(12, 14, 19, .88);
    backdrop-filter: blur(12px);
}
.header-inner {
    display: flex;
    gap: 12px 26px;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
}
.logo {
    color: var(--text);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .02em;
    flex: 0 0 auto;
    line-height: 1;
}
.logo img { height: 32px; display: block; }
nav.main {
    display: flex;
    gap: 4px 6px;
    flex-wrap: wrap;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}
nav.main a {
    position: relative;
    color: #2a3441;
    font-size: 15px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 999px;
    transition: color .15s ease, background-color .15s ease;
}
nav.main a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease;
}
nav.main a:hover { color: var(--accent); background: rgba(43, 107, 240, .07); }
nav.main a:hover::after,
nav.main a.is-active::after { transform: scaleX(1); }
nav.main a.is-active { color: var(--accent); font-weight: 700; background: rgba(43, 107, 240, .10); }
.header-tools {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    flex: 1 1 320px;
    min-width: 0;
}
.search {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    flex: 1 1 480px;
    min-width: 220px;
    max-width: 880px;
}
.search input {
    border: 0;
    background: transparent;
    padding: 7px 16px;
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
    outline: none;
    color: var(--text);
    font-size: 14px;
}
.search button {
    align-self: stretch;
    border: 0;
    border-left: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    padding: 0 16px;
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
}
.search button:hover { color: var(--text); background: rgba(255,255,255,.04); }
.user-nav { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; margin-left: auto; }
.user-nav a { color: var(--muted); font-size: 13px; padding: 6px 8px; }
.user-nav .btn-user {
    max-width: 7em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-nav .btn-reg {
    background: var(--accent);
    color: #fff !important;
    border-radius: 999px;
    padding: 6px 12px;
}
.user-nav .btn-reg:hover { filter: brightness(1.08); }
.nav-toggle {
    display: none;
    width: 40px;
    height: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    flex: 0 0 auto;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
header.site.is-nav-open .nav-toggle-bars { background: transparent; }
header.site.is-nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
header.site.is-nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

input, textarea, button, select {
    background: var(--bg2);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 8px 10px;
    border-radius: 8px;
    font: inherit;
}
.muted { color: var(--muted); }
.btn-link { color: var(--accent); font-size: 14px; }
.btn-link:hover { text-decoration: underline; }

/* Homepage hero:通栏大图轮播(参考优酷:左边片名 + 简介 + 「获取资源」);右下角从 11-08 起桌面端是海报卡片(鼠标放上即切),手机端还是小圆点。
   --hero-card = 卡片宽度,--hero-strip = 整套卡片占的高度;右边那张竖海报按它抬高,免得压在卡片上。 */
main.page:has(.home-hero) { padding-top: 0; }
.home-hero { margin: 0 0 30px; }
.home-carousel { position: relative; overflow: hidden; border: 0; border-radius: 0; background: #05070b; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); --hero-n: 6; --hero-gap: 10px; --hero-pad: 10px; --hero-card-r: 11px; --hero-card: clamp(66px, 7.2vw, 104px); --hero-strip: calc(var(--hero-card) * 4 / 3 + var(--hero-pad) * 2 + 2px); --hero-strip-w: calc(var(--hero-n) * var(--hero-card) + (var(--hero-n) - 1) * var(--hero-gap) + var(--hero-pad) * 2 + 2px); --hero-gutter: 20px; }
/* 1462 宽的屏上轮播带 526px 高(600 太高、440 又显扁,526 是这中间的一档,也是 AI 横幅被切得最少的合理值) */
.home-carousel-track { position: relative; width: 100%; height: clamp(320px, 36vw, 540px); }
.home-carousel-slide { position: absolute; inset: 0; display: block; overflow: hidden; isolation: isolate; color: #fff; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .6s ease, visibility .6s ease; }
/* 只有竖海报的补位片:先铺一层深蓝灰底,再把海报虚化叠加成 screen,黑色海报也不会变成一片死黑 */
.home-carousel-slide.is-poster { background: radial-gradient(125% 135% at 76% 14%, #3a4767 0%, #232c42 45%, #11161f 85%); }
.home-carousel-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.home-carousel-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,11,.92), rgba(5,7,11,.68) 36%, rgba(5,7,11,.24) 68%, rgba(5,7,11,.06)), linear-gradient(0deg, rgba(5,7,11,.72), transparent 60%); pointer-events: none; }
.home-carousel-slide.is-poster::after { background: linear-gradient(90deg, rgba(5,7,11,.8), rgba(5,7,11,.5) 46%, rgba(5,7,11,.2)), linear-gradient(0deg, rgba(5,7,11,.45), transparent 58%); }
.home-carousel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* 补位进来的那几张没有横版大图,就拿竖海报放大虚化当底,右边再摆一张原海报 */
/* 补位用的竖海报:整张拉满再虚化当底色(不裁切,免得短轮播带里 cover 只剩海报一条,容易出亮斑) */
.home-carousel-blur { position: absolute; inset: -6%; background-size: 100% 100%; filter: blur(30px) saturate(1.35) brightness(.92) contrast(1.05); transform: scale(1.08); }
.home-carousel-poster { position: absolute; z-index: 1; right: calc(var(--hero-gutter) + 54px); bottom: calc(var(--hero-strip) + 26px); width: clamp(112px, 11.4vw, 184px); aspect-ratio: 2 / 3; border-radius: 8px; object-fit: cover; box-shadow: 0 22px 54px rgba(0, 0, 0, .6); }
.home-carousel-copy { position: absolute; z-index: 2; left: var(--hero-gutter); right: var(--hero-gutter); bottom: clamp(38px, 4.4vw, 66px); max-width: min(780px, calc(100% - var(--hero-gutter) * 2 - var(--hero-strip-w) - 30px)); opacity: 0; transition: opacity .25s ease; }
.home-carousel-slide.is-active .home-carousel-copy { opacity: 1; transition: opacity .4s ease .35s; }
.home-carousel-title { margin: 0 0 12px; font-size: clamp(26px, 3vw, 42px); line-height: 1.15; font-weight: 800; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.home-carousel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.home-carousel-meta .score { color: #ffb84d; font-size: 16px; font-weight: 800; }
.home-carousel-meta .votes { color: rgba(255, 255, 255, .55); }
.home-carousel-meta .tag { padding: 3px 11px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 12.5px; }
/* 简介放到三行:视图那边本来就截到 120 字,三行刚好能整个显示完,不用再被省略号砍一半 */
.home-carousel-desc { margin: 0 0 16px; max-width: min(620px, 100%); font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .72); text-shadow: 0 1px 12px rgba(0, 0, 0, .65); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-carousel-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 24px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); transition: filter .2s ease; }
/* 按钮图标:下载箭头 + 下面的托(用 mask 描出来,颜色跟着文字走),原来的播放三角去掉了 */
.home-carousel-btn-ico { flex: none; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v11'/%3E%3Cpath d='M6.8 10.6 12 15.8l5.2-5.2'/%3E%3Cpath d='M4.5 19.5h15'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v11'/%3E%3Cpath d='M6.8 10.6 12 15.8l5.2-5.2'/%3E%3Cpath d='M4.5 19.5h15'/%3E%3C/svg%3E") center / contain no-repeat; }
.home-carousel-btn:hover { color: #fff; filter: brightness(1.12); }
.home-carousel-arrow { position: absolute; z-index: 3; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(0,0,0,.36); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); transition: background .2s ease, border-color .2s ease; }
.home-carousel-arrow:hover { background: var(--accent); border-color: var(--accent); }
.home-carousel-arrow.is-prev { left: 18px; }
.home-carousel-arrow.is-next { right: 18px; }
.home-carousel-dots { position: absolute; z-index: 3; right: var(--hero-gutter); bottom: 22px; display: flex; gap: 8px; }
.home-carousel-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.58); cursor: pointer; transition: width .2s ease, background .2s ease; }
.home-carousel-dot.is-active { width: 26px; background: #fff; }
/* 右下角的海报卡片(桌面端):整套卡片托在一块半透明底板上,当前那张描蓝边 + 抬起一点,
   鼠标放上任意一张 -> JS 直接把大图切过去,卡片同时抬起、描白边。
   片名写在卡片里面(底部压一条深色渐变,最多两行),左上角一颗豆瓣分小牌,不用鼠标放上才知道是哪部。 */
.home-carousel-cards { position: absolute; z-index: 4; right: var(--hero-gutter); bottom: 20px; display: flex; align-items: flex-end; gap: var(--hero-gap); padding: var(--hero-pad); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: rgba(5, 7, 11, .40); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(12px); }
.home-carousel-card { position: relative; flex: none; width: var(--hero-card); aspect-ratio: 3 / 4; padding: 0; overflow: visible; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--hero-card-r); background: #10151d; cursor: pointer; opacity: .62; transition: opacity .2s ease, transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.home-carousel-card-img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; filter: saturate(.92); }
/* 横版横幅切进竖卡片时按中心偏上取景,人脸不会被裁掉 */
.home-carousel-card.is-wide .home-carousel-card-img { object-position: 50% 40%; }
/* 卡片里的片名:贴在卡片底部,上面压一层深色渐变,最多两行,超出打省略号 */
.home-carousel-card-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px 5px 6px; border-radius: 0 0 calc(var(--hero-card-r) - 1px) calc(var(--hero-card-r) - 1px); background: linear-gradient(180deg, rgba(5, 7, 11, 0), rgba(5, 7, 11, .74) 45%, rgba(5, 7, 11, .93)); color: #fff; font-size: clamp(10px, .82vw, 12.5px); line-height: 1.32; text-align: center; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* 卡片左上角的豆瓣分小牌(有分才渲染) */
.home-carousel-card-score { position: absolute; left: 5px; top: 5px; z-index: 1; padding: 1px 5px; border: 1px solid rgba(255, 184, 77, .5); border-radius: 6px; background: rgba(5, 7, 11, .68); color: #ffb84d; font-size: clamp(9.5px, .72vw, 11.5px); font-weight: 700; line-height: 1.4; }
.home-carousel-card:hover, .home-carousel-card:focus-visible { z-index: 2; opacity: 1; transform: translateY(-10px) scale(1.03); border-color: rgba(255, 255, 255, .62); box-shadow: 0 16px 30px rgba(0, 0, 0, .55); }
.home-carousel-card.is-active { opacity: 1; transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 14px 28px rgba(0, 0, 0, .55); }
.home-carousel-card.is-active:hover { transform: translateY(-10px) scale(1.03); }
/* 桌面端只看卡片,小圆点收掉。卡片一排占的宽度不小,所以左边文案的 max-width 直接用 --hero-strip-w 算出来,
   两边中间始终留 ~50px 的空,任何屏宽下都不会互相压到;文案里再压一层卡片底板,读着也干净。
   721~1000 这一档屏宽不够,卡片整排缩一号(52~72px),底板也贴得更紧一点。
   (≤720 的手机端在下面那段里把卡片收掉、文案改回通栏,所以这几条不影响手机端) */
@media (min-width: 721px) { .home-carousel-dots { display: none; } }
@media (min-width: 721px) and (max-width: 1000px) {
    .home-carousel { --hero-card: clamp(52px, 6.4vw, 72px); --hero-gap: 8px; --hero-pad: 8px; --hero-card-r: 8px; }
    .home-carousel-cards { right: 16px; bottom: 14px; border-radius: 13px; }
    .home-carousel-card-cap { padding: 14px 4px 5px; font-size: 10.5px; }
    .home-carousel-card-score { left: 4px; top: 4px; font-size: 9.5px; padding: 1px 4px; }
}
/* 首页卡片还是 6 列,只是紧接在通栏轮播下面,别再留一大截空白 */
.home-hero + .home-sec { margin-top: 8px; }
@media (max-width: 720px) {
    .home-hero { margin-bottom: 22px; }
    /* 手机端 390 宽的屏上轮播带 289px 高(430 太占屏、240 又太薄);这个高度下 AI 横幅是左右裁一点、上下基本不裁,人脸不会切头 */
    .home-carousel-track { height: clamp(280px, 74vw, 340px); }
    .home-carousel-poster { display: none; }
    .home-carousel-arrow { display: none; }
    .home-carousel-copy { left: 16px; right: 16px; bottom: 34px; max-width: none; }
    .home-carousel-title { margin-bottom: 8px; font-size: clamp(21px, 6vw, 28px); }
    .home-carousel-meta { gap: 6px; margin-bottom: 9px; font-size: 12px; }
    .home-carousel-meta .score { font-size: 14px; }
    .home-carousel-meta .tag { padding: 2px 9px; font-size: 11.5px; }
    /* 手机上标签只留前 3 个(年份 / 地区 / 一个类型),免得标签排两行把文案区挤得太满;老浏览器不认 of 语法就退回全显示,不会出错 */
    .home-carousel-meta :nth-child(n+4 of .tag) { display: none; }
    .home-carousel-desc { -webkit-line-clamp: 2; margin-bottom: 12px; font-size: 12.5px; line-height: 1.55; }
    .home-carousel-btn { gap: 7px; padding: 9px 18px; font-size: 14px; }
    .home-carousel-btn-ico { width: 14px; height: 14px; }
    /* 手机端没鼠标可放,卡片收掉,还是那套小圆点(点一下切一张) */
    .home-carousel-cards { display: none; }
    .home-carousel-dots { right: 14px; bottom: 14px; gap: 6px; }
    .home-carousel-dot { width: 9px; height: 9px; }
    .home-carousel-dot.is-active { width: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-carousel-slide, .home-carousel-copy, .home-carousel-arrow, .home-carousel-dot, .home-carousel-card, .home-carousel-card-cap { transition: none; }
    .home-carousel-card:hover, .home-carousel-card:focus-visible { transform: none; }
}
/* Sections */
.home-sec { margin: 28px 0 8px; }
.sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.sec-head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sec-head h2::before {
    content: "";
    width: 3px;
    height: 1em;
    border-radius: 2px;
    background: var(--accent);
}
/* 板块名后面的「最近更新」小注:说明这一排是按更新时间排的(追更的片补了集就会冒上来) */
.sec-head h2 .sec-note { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .3px; }
.sec-head .more,
.type-block .more {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
}
.sec-head .more:hover { color: var(--accent); }

/* Grid cards — MacCMS-like posters */
.grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
    justify-content: space-between;
}
@media (max-width: 1280px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.vod-card { min-width: 0; }
.vod-card-cover {
    position: relative;
    display: block;
    border-radius: 5px;
    overflow: hidden;
    background:
        linear-gradient(160deg, #232936 0%, #151922 55%, #10141c 100%);
    aspect-ratio: 2 / 3;
    transition: box-shadow .18s ease, transform .18s ease;
}
.vod-card:hover .vod-card-cover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.vod-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.vod-card-empty {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: .04em;
}
.vod-card-cover.is-empty .vod-card-empty,
.vod-card-cover:not(:has(img)) .vod-card-empty {
    display: flex;
}
.vod-card-play {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.28);
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}
.vod-card-play::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #fff;
    transform: translate(-40%, -50%);
    filter: drop-shadow(0 1px 4px rgba(0,0,0,.45));
}
.vod-card:hover .vod-card-play { opacity: 1; }
.vod-card-score {
    position: absolute;
    left: 6px;
    top: 6px;
    margin: 0;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0,0,0,.7);
    color: #ffb84d;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    z-index: 1;
}
.vod-card-badge {
    position: absolute;
    right: 6px;
    bottom: 6px;
    margin: 0;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(0,0,0,.72);
    color: #ffe08a;
    font-size: 11px;
    font-style: normal;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 1;
}
.vod-card-meta { padding: 8px 2px 0; }
.vod-card-meta h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vod-card-meta h3 a { color: var(--text); }
.vod-card-meta h3 a:hover { color: var(--accent); }
.vod-card-meta .muted {
    margin: 4px 0 0;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Legacy .card (topics / actors) — align with poster feel */
.card {
    background: transparent;
    border-radius: var(--radius);
    overflow: hidden;
    border: 0;
    min-width: 0;
}
.card > a { display: block; color: inherit; }
.card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: linear-gradient(160deg, #232936 0%, #151922 55%, #10141c 100%);
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.card img[src=""],
.card img:not([src]) {
    background: linear-gradient(160deg, #232936 0%, #151922 100%);
}
.card .meta { padding: 8px 2px 0; }
.card h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card .muted { margin: 4px 0 0; font-size: 12px; }

.filters {
    margin: 12px 0 20px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.filter-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 8px 12px;
    align-items: start;
    margin: 0 0 10px;
    font-size: 13px;
}
.filter-row:last-child { margin-bottom: 0; }
.filter-label {
    color: var(--muted);
    padding-top: 5px;
    font-weight: 600;
    white-space: nowrap;
}
.filter-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-choices a {
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid transparent;
}
.filter-choices a.active,
.filter-choices a:hover {
    background: var(--accent-soft);
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.list-head { margin: 0 0 12px; }
.list-head h1 { margin: 0; font-size: 24px; }
.list-search { margin: 0 0 16px; display: flex; gap: 8px; max-width: 520px; align-items: stretch; }
.list-search input { flex: 1; min-height: 40px; }
.list-search .btn-ghost { min-height: 40px; padding: 0 16px; }
.list-result { margin: 0 0 12px; font-size: 13px; }
.list-empty {
    margin: 36px 0;
    text-align: center;
    padding: 28px 16px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--card) 70%, transparent);
}
.list-empty p { margin: 0 0 8px; }
.type-sons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.type-sons a {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font-size: 13px;
}
.type-sons a:hover,
.type-sons a.active {
    color: var(--text);
    border-color: var(--accent);
}

.player {
    background: #000;
    aspect-ratio: 16/9;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.player.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1a1f2a, #0d1016);
}
.player-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player-empty { text-align: center; padding: 24px; }
.player-empty p { margin: 0 0 8px; color: var(--text); }
.play-head { margin: 0 0 12px; }
.play-title { margin: 0 0 4px; font-size: 22px; line-height: 1.3; }
.play-title a { color: var(--text); }
.play-title a:hover { color: var(--accent); }
.play-title .muted { font-size: 16px; font-weight: 500; }
.play-sub { margin: 0; font-size: 13px; }
.play-sub a { color: var(--muted); }
.play-sub a:hover { color: var(--accent); }
.play-notice, .play-tip {
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--text);
    font-size: 13px;
}
.play-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 16px 0 18px;
}
.play-tools .btn-ghost {
    min-height: 38px;
    padding: 8px 14px;
}
.play-panel {
    margin: 0 0 18px;
    padding: 14px 16px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.play-panel .sec-head {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.play-panel .sec-head h2 { font-size: 16px; }
.eps, .lines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
.eps a, .lines a {
    background: var(--bg2);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid var(--line);
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.eps a:hover, .lines a:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    color: #fff;
}
.eps a.on, .lines a.on {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.lines a {
    border-radius: 999px;
    padding: 7px 16px;
}

/* Play chat */
.play-chat {
    margin: 16px 0;
    padding: 16px 16px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.play-chat-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.play-chat-head h2 {
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.play-chat-head h2::before {
    content: "";
    width: 3px;
    height: 1em;
    border-radius: 2px;
    background: var(--accent);
}
.play-chat-hint { font-size: 12px; }
.play-chat-list {
    max-height: 220px;
    overflow: auto;
    margin: 0 0 12px;
    padding-right: 4px;
}
.play-chat-empty { margin: 8px 0 4px; font-size: 13px; }
.play-chat-row {
    padding: 8px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    font-size: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.45;
}
.play-chat-row:last-child { border-bottom: 0; }
.play-chat-row b {
    color: var(--accent);
    font-weight: 600;
    flex: none;
    max-width: 7em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.play-chat-row span { flex: 1; min-width: 0; word-break: break-word; }
.play-chat-row .chat-report {
    flex: none;
    font-size: 12px;
    color: var(--muted);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.play-chat-row .chat-report:hover { color: #f87171; }
.play-chat-form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
}
.play-chat-who {
    font-size: 13px;
    max-width: 5.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.play-chat-form input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #0e1219;
}
.play-chat-form input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.play-chat-form .btn-play { min-width: 72px; }
.play-chat-login { margin: 0; font-size: 13px; }
@media (max-width: 640px) {
    .play-chat-form {
        grid-template-columns: 1fr auto;
    }
    .play-chat-who { display: none; }
    .eps a, .lines a { padding: 8px 12px; }
}

/* Detail */
.detail-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    margin: 8px 0 28px;
    align-items: start;
}
.detail-cover {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #232936 0%, #151922 55%, #10141c 100%);
    aspect-ratio: 3/4;
    box-shadow: var(--shadow);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-cover-empty {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.detail-cover.is-empty .detail-cover-empty,
.detail-cover:not(:has(img)) .detail-cover-empty { display: flex; }
.detail-title { margin: 0 0 12px; font-size: 28px; line-height: 1.25; font-weight: 700; }
.detail-tags {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.detail-tags li {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--card);
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.detail-tags a { color: inherit; }
.detail-tags a:hover { color: var(--accent); }
.detail-tags .is-hi { color: #ffe08a; border-color: color-mix(in srgb, #ffe08a 35%, var(--line)); }
.detail-tags .is-score { color: #ffb84d; border-color: color-mix(in srgb, #ffb84d 40%, var(--line)); font-weight: 700; }
.detail-actors { margin: 0 0 10px; font-size: 13px; line-height: 1.6; }
.detail-actors a { color: var(--text); }
.detail-actors a:hover { color: var(--accent); }
.detail-meta { margin: 0 0 16px; font-size: 13px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff !important;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    min-width: 120px;
}
.btn-play:hover { filter: brightness(1.08); color: #fff !important; }
.btn-play.btn-sm { padding: 8px 14px; font-size: 13px; min-width: 0; }
.btn-ghost {
    display: inline-flex;
    align-items: center;
    background: var(--card);
    color: var(--text) !important;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    cursor: pointer;
    font: inherit;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; }
.detail-desc {
    margin: 0;
    max-width: 720px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}
.source-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
}
.source-row:empty { display: none; margin: 0; }
.source-item {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 8px 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.source-block {
    margin: 0 0 12px;
}
.source-block:last-child { margin-bottom: 0; }
.source-block.play-panel { margin-bottom: 12px; }
.source-name {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    font-weight: 650;
    padding: 0 4px 0 2px;
}
.source-item a {
    background: var(--bg2);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid var(--line);
}
.source-item a:hover {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    color: #fff;
}
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a {
    display: inline-block;
    padding: 6px 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
}
.comment-form textarea, .report-form input { width: 100%; max-width: 640px; }
.comment-form textarea { min-height: 96px; resize: vertical; }
.comment-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.field-inline { display: flex; gap: 8px; flex-wrap: wrap; max-width: 640px; }
.field-inline input { flex: 1; min-width: 180px; }
.score-row a { margin-right: 8px; }
.near-nav { margin-top: 24px; color: var(--muted); }

@media (max-width: 860px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas:
            "toggle . user"
            "search search search"
            "nav nav nav";
        gap: 10px;
        align-items: center;
        padding: 10px 0 12px;
    }
    .nav-toggle {
        grid-area: toggle;
        display: inline-flex;
    }
    .header-tools {
        display: contents;
    }
    .search {
        grid-area: search;
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 40px;
    }
    .search input {
        width: 100%;
        flex: 1;
        padding: 0 14px;
        font-size: 14px;
    }
    .search button {
        flex: 0 0 auto;
        padding: 0 14px;
        height: 100%;
        font-size: 13px;
    }
    .user-nav {
        grid-area: user;
        justify-self: end;
    }
    .user-nav a { padding: 6px 8px; }
    .user-nav .btn-reg { padding: 6px 12px; font-size: 13px; }
    nav.main {
        grid-area: nav;
        display: none;
        width: 100%;
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 0 2px;
        border-top: 1px solid var(--line);
        max-height: min(62vh, 420px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    header.site.is-nav-open nav.main { display: flex; }
    nav.main a {
        border-radius: 999px;
        padding: 8px 12px;
        background: var(--card);
        border: 1px solid var(--line);
        font-size: 13px;
    }
    nav.main a:hover {
        border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
        background: var(--accent-soft);
        color: var(--text);
    }
}
@media (max-width: 720px) {
    .page { padding: 12px 0 40px; }
    .home-sec { margin: 20px 0 4px; }
    .sec-head {
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 8px;
        flex-wrap: wrap;
    }
    .sec-head h2 { font-size: 17px; }
    .sec-head .more {
        margin-left: auto;
        padding: 4px 2px;
        font-size: 13px;
    }
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .detail-cover {
        width: min(200px, 46vw);
        margin: 0 auto;
    }
    .detail-title { font-size: 22px; text-align: center; }
    .detail-tags,
    .detail-actors,
    .detail-actions { justify-content: center; }
    .detail-desc { max-width: none; }
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px 10px;
    }
    .vod-card-meta h3 { font-size: 13px; }
    .vod-card-sub { font-size: 11px; }
    .play-title { font-size: 18px; }
    .filter-row { grid-template-columns: 1fr; gap: 6px; }
    .filter-label { padding-top: 0; }
    .list-head h1 { font-size: 20px; }
    .btn-play { width: 100%; }
    .detail-actions .btn-play { width: auto; min-width: 40%; }
    .auth-page { min-height: 0; padding-top: 8px; }
}
@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 12px;
    }
    .user-nav a:not(.btn-reg):not(.btn-user) {
        display: none;
    }
    .search button {
        width: 42px;
        padding: 0;
        font-size: 0;
        color: transparent;
        position: relative;
    }
    .search button::before {
        content: "";
        position: absolute;
        inset: 0;
        margin: auto;
        width: 14px;
        height: 14px;
        border: 2px solid var(--muted);
        border-radius: 50%;
        box-sizing: border-box;
    }
    .search button::after {
        content: "";
        position: absolute;
        width: 7px;
        height: 2px;
        background: var(--muted);
        border-radius: 1px;
        right: 11px;
        bottom: 12px;
        transform: rotate(45deg);
    }
}

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.person { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.person img { width: 96px; height: 128px; object-fit: cover; border-radius: 8px; background: #222; }

.manga-eps-head { margin-top: 20px; }
.manga-eps-head h2 { margin-bottom: 4px; }
.manga-eps-status { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.manga-eps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0;
}
.manga-eps a {
  display: block;
  text-align: center;
  background: #223;
  color: var(--text);
  padding: 8px 6px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
}
.manga-eps.is-collapsed a:nth-child(n+16) { display: none; }
.manga-eps-more { margin: 0 0 16px; text-align: center; }
@media (max-width: 640px) {
  .manga-eps { grid-template-columns: repeat(2, 1fr); }
}

footer.site {
    margin-top: 48px;
    padding: 32px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    background: var(--bg2);
}
.foot-inner { display: grid; gap: 14px; }
.foot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 12px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--accent); }
.foot-logo img { height: 28px; display: block; margin-bottom: 4px; }
.flash {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.flash.is-ok { background:#14301f; border:1px solid #1f7a46; color:#86efac; }
.flash.is-err { background:#3f1515; border:1px solid #b91c1c; color:#fecaca; }
.vod-toast {
    position: fixed;
    left: 50%;
    bottom: 88px;
    transform: translateX(-50%) translateY(8px);
    z-index: 9999;
    max-width: min(420px, calc(100% - 24px));
    padding: 12px 18px;
    border-radius: 10px;
    background: rgba(24, 28, 38, .94);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    pointer-events: none;
    opacity: 0;
    animation: vod-toast-in .22s ease forwards;
}
.vod-toast.is-ok {
    border-color: color-mix(in srgb, #3dd68c 45%, var(--line));
    background: color-mix(in srgb, #16a34a 22%, rgba(24, 28, 38, .94));
}
.vod-toast.is-err {
    border-color: color-mix(in srgb, #e35d6a 50%, var(--line));
    background: color-mix(in srgb, #e35d6a 18%, rgba(24, 28, 38, .94));
}
@keyframes vod-toast-in {
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.breadcrumb { color:var(--muted); font-size:13px; margin-bottom:16px; }
.desc { line-height:1.7; color:#c5c9d0; }
.pager {
    margin: 28px 0 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.pager .pagination,
.pager nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; padding: 0; }
.pager .pagination > a,
.pager .pagination > span,
.pager > a,
.pager > span {
    background: var(--card);
    color: var(--muted);
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pager a:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.pager .on,
.pager .active span,
.pager span[aria-current="page"],
.pager .pagination > span.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}
.pager .is-off,
.pager .is-gap {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    min-width: auto;
    pointer-events: none;
}
.pager .is-off { opacity: .4; }
.type-block { margin-top:28px; }
.type-block h2 { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.type-block .more { font-size:13px; font-weight:400; color:var(--muted); }
.art-nav { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0 20px; }
.art-nav a { color:var(--muted); }
.art-nav a.on, .art-nav a:hover { color:var(--text); }
.art-list { display:grid; gap:16px; margin:16px 0; }
.art-card { background:var(--card); border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); }
.art-card > a { display:flex; gap:16px; color:var(--text); }
.art-card img { width:140px; height:92px; object-fit:cover; background:#222; flex-shrink:0; }
.art-card .meta { padding:10px 12px; min-width:0; }
.art-card h3 { margin:0 0 6px; font-size:16px; }
.art-cover img { max-width:100%; border-radius:8px; }
.art-tags { display:flex; gap:8px; flex-wrap:wrap; margin:16px 0; }
.art-tags a { color:var(--muted); }
.art-near { display:flex; flex-wrap:wrap; gap:12px 24px; margin:24px 0; }
.art-hub { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; margin:16px 0 28px; }
.art-hub-item { display:flex; flex-direction:column; gap:8px; padding:12px; background:var(--card); border-radius:8px; color:var(--text); border:1px solid var(--line); }
.art-hub-item img { width:100%; height:90px; object-fit:cover; border-radius:6px; background:#222; }
h2 { font-size:18px; }
.plugin-ad-fixed { background:#111; border-bottom:1px solid #222; }
.plugin-ad-fixed.is-top { position:fixed; top:0; left:0; right:0; z-index:40; text-align:center; padding:8px 12px; }
.plugin-ad-fixed.is-bottom { position:fixed; bottom:0; left:0; right:0; z-index:40; text-align:center; padding:8px 12px; border-bottom:0; border-top:1px solid #222; }
body.has-ad-top { padding-top:56px; }
body.has-ad-bottom { padding-bottom:56px; }
.flink { display:flex; flex-wrap:wrap; gap:10px 16px; margin-bottom:12px; }
.flink a { color:var(--muted); }
.plugin-ad-text { color:var(--text); }
.plugin-ad-img img { max-height:48px; max-width:100%; vertical-align:middle; }
.plugin-ad-player, .plugin-ad-content { margin:12px 0; }
.manga-sub {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 4px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    width: fit-content;
    max-width: 100%;
}
.manga-sub a {
    color: var(--muted);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
}
.manga-sub a.on,
.manga-sub a:hover {
    color: #fff;
    background: var(--accent);
    font-weight: 600;
}
.manga-head { margin-bottom: 14px; }
.manga-head .muted { margin: 6px 0 0; }
.manga-filters { margin-top: 0; }
.manga-search {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.manga-search input[type=search] {
    flex: 1;
    min-width: 160px;
    max-width: 360px;
}
.manga-tags.is-collapsible {
    max-height: 76px;
    overflow: hidden;
}
.manga-tags.is-collapsible.is-open { max-height: none; }
.manga-tags-more {
    display: inline-block;
    margin: -4px 0 8px 64px;
    font-size: 13px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.manga-active-filters { margin: -6px 0 16px; font-size: 13px; }
.manga-block { margin-top: 8px; }
.manga-card-continue { font-size: 12px; }
.manga-meta { display: flex; gap: 8px 14px; flex-wrap: wrap; margin: 8px 0; font-size: 13px; color: var(--muted); }
.manga-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 16px 0 0; }
.manga-actions .inline-form { display: inline; }
.manga-read img { display: block; width: 100%; max-width: 900px; margin: 0 auto; }
.manga-read .manga-page { margin: 0 0 8px; }
.manga-read.is-page { min-height: 60vh; display: flex; align-items: flex-start; justify-content: center; }
.manga-read.is-page .manga-page { margin: 0; width: 100%; }
.manga-read .manga-retry { display: block; margin: 12px auto; text-align: center; }
.manga-read-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 0 24px; align-items: center; }
.manga-read-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.manga-rank {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.manga-rank li {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.manga-rank-n {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    background: var(--bg2);
    color: var(--muted);
}
.manga-rank li:nth-child(-n+3) .manga-rank-n {
    background: var(--accent-soft);
    color: var(--accent);
}
.manga-rank-title { color: var(--text); font-weight: 600; }
.manga-rank-title:hover { color: var(--accent); }
.manga-rank-body { display: grid; gap: 2px; min-width: 0; }
.manga-rank-ep { font-size: 13px; color: var(--muted); white-space: nowrap; }
.manga-comments { list-style: none; padding: 0; margin: 16px 0; }
.manga-comments li { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.manga-comment-form textarea { width: 100%; max-width: 640px; }
.list-plain { list-style: none; padding: 0; margin: 12px 0; }
.manga-history-list li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin: 0 0 10px; }
.manga-history-actions { margin: 8px 0; }
.manga-badge { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 3px; background: #1a4; color: #fff; margin-right: 4px; vertical-align: middle; }
.manga-shelf-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.manga-shelf-remove { margin: 0; padding: 0 2px 4px; }
.manga-shelf-remove button { font-size: 12px; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.manga-shelf-remove button:hover { color: var(--text); }
.manga-read-tools .inline-form { display: inline; margin: 0; }
.manga-read-tools .inline-form button { font: inherit; }
.manga-read-nav.is-sticky { position: sticky; top: 0; z-index: 8; background: var(--bg); padding: 8px 0; border-bottom: 1px solid var(--line); }
.manga-chapter-drawer { margin: 0 0 16px; }
.manga-chapter-drawer summary { cursor: pointer; color: var(--muted); }
.manga-chapter-drawer .eps {
    max-height: 240px;
    overflow: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.manga-chapter-drawer .eps a.on { font-weight: 600; color: var(--text); }
.manga-actions .inline-form button.btn-link,
.manga-actions .btn-link { font: inherit; }
.manga-gotop { position: fixed; right: 16px; bottom: 24px; z-index: 9; padding: 8px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; border-radius: 8px; }
.manga-gotop:hover { border-color: var(--accent); }
body.manga-night { background: #000; color: #ddd; }
body.manga-night a { color: #9cf; }
body.manga-night .muted { color: #888; }
body.manga-night .manga-read-nav.is-sticky { background: #000; border-bottom-color: #222; }
body.manga-night .manga-gotop { background: #111; border-color: #333; color: #ddd; }
body.manga-night .flash { background: #1a1a1a; }
body.manga-night .manga-comments li { border-bottom-color: #222; }
body.manga-night .manga-vip-lock { border-top-color: #333; }
body.manga-night .manga-search input,
body.manga-night .manga-comment-form input,
body.manga-night .manga-comment-form textarea { background: #111; color: #ddd; border-color: #333; }
.manga-local-history { margin: 16px 0; }
.manga-local-history summary { cursor: pointer; color: var(--muted); }
@media (max-width: 640px) {
    .manga-sub { border-radius: 12px; width: 100%; }
    .manga-tags-more { margin-left: 0; }
    .manga-rank li { grid-template-columns: 28px 1fr; }
    .manga-rank-ep { grid-column: 2; }
}
h2 .btn-link { font-size:13px; font-weight:400; margin-left:8px; }

/* points mall */
.mall-head { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; align-items:flex-start; margin:0 0 8px; }
.mall-head h1 { margin:0 0 6px; }
.mall-balance { background:var(--card); border-radius:8px; padding:12px 16px; min-width:140px; }
.mall-balance strong { color:var(--accent); font-size:20px; }
.mall-balance a { display:inline-block; margin-top:6px; font-size:13px; }
.mall-tabs { margin:12px 0 20px; }
.mall-sec { margin:24px 0 12px; font-size:16px; }
.mall-tag { display:inline-block; background:#223; color:var(--accent); padding:1px 6px; border-radius:4px; font-size:12px; margin-right:4px; }
.mall-warn { color:#f87171; }
.mall-buy { display:grid; gap:8px; max-width:360px; margin-top:12px; }
.mall-buy label { font-size:13px; color:var(--muted); }
.mall-orders li { padding:14px 0; }
.mall-order-row { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:4px; }
.mall-code { margin-top:6px; }
.mall-code code { background:#223; padding:2px 8px; border-radius:4px; letter-spacing:.04em; }
.mall-grid .card img { aspect-ratio:1; }

/* Guestbook */
.gbook-page { max-width: 920px; margin: 0 auto; }
.gbook-hero { margin: 0 0 22px; }
.gbook-hero h1 { margin: 0 0 8px; font-size: 28px; }
.gbook-hero .muted { margin: 0; font-size: 14px; max-width: 36em; }
.gbook-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 24px;
    align-items: start;
}
.gbook-compose,
.gbook-feed {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 18px 20px;
}
.gbook-compose .sec-head,
.gbook-feed .sec-head { margin-bottom: 14px; padding-bottom: 10px; }
.gbook-form { display: grid; gap: 14px; }
.gbook-field { display: grid; gap: 6px; margin: 0; }
.gbook-field > span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .02em;
}
.gbook-field input,
.gbook-field textarea {
    width: 100%;
    margin: 0;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
    transition: border-color .15s ease;
}
.gbook-field input:focus,
.gbook-field textarea:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.gbook-field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.gbook-field input[readonly] { opacity: .85; cursor: default; }
.gbook-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}
.gbook-actions .btn-play { min-width: 0; width: auto; }
.gbook-tip { font-size: 12px; }
.gbook-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.gbook-item:last-child { border-bottom: 0; padding-bottom: 0; }
.gbook-item:first-child { padding-top: 0; }
.gbook-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin: 0 0 8px;
}
.gbook-item-head strong { font-size: 14px; }
.gbook-item-head time { font-size: 12px; flex: 0 0 auto; }
.gbook-item-body {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
}
.gbook-reply {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 10%, var(--bg2));
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}
.gbook-reply-label {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .04em;
}
.gbook-reply p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
    white-space: pre-wrap;
}
.gbook-feed .list-empty {
    margin: 8px 0 0;
    border-style: solid;
    background: transparent;
}
@media (max-width: 800px) {
    .gbook-layout { grid-template-columns: 1fr; }
    .gbook-hero h1 { font-size: 24px; }
}

/* Friend link apply / edit */
.flink-page { max-width: 720px; margin: 0 auto; }
.flink-hero { margin: 0 0 20px; }
.flink-hero h1 { margin: 0 0 8px; font-size: 28px; }
.flink-hero .muted { margin: 0; font-size: 14px; line-height: 1.6; max-width: 40em; }
.flink-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 24px;
    box-shadow: var(--shadow);
}
.flink-form { display: grid; gap: 18px; }
.flink-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}
.flink-field { display: grid; gap: 6px; margin: 0; }
.flink-field > span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.flink-field > span em { font-style: normal; font-weight: 400; }
.flink-field input,
.flink-field select {
    width: 100%;
    margin: 0;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
    transition: border-color .15s ease;
}
.flink-field input:focus,
.flink-field select:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.flink-captcha { display: grid; gap: 8px; }
.flink-captcha cap-widget { display: block; width: 100%; }
.flink-captcha-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.flink-captcha-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}
.flink-captcha-img {
    display: block;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #171b24;
    cursor: pointer;
    line-height: 0;
}
.flink-captcha-img img { display: block; width: 160px; height: 48px; }
.flink-captcha-row input {
    flex: 1;
    min-width: 140px;
    background: var(--bg2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    padding: 10px 12px;
    font: inherit;
}
.flink-captcha-row input:focus {
    outline: none;
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.flink-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 4px;
}
.flink-actions .btn-play { min-width: 0; width: auto; }
.flink-result { text-align: center; padding: 36px 24px; }
.flink-result-icon {
    width: 52px; height: 52px; margin: 0 auto 14px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    color: var(--accent);
    font-size: 24px; font-weight: 700;
}
.flink-result h1 { margin: 0 0 8px; font-size: 24px; }
.flink-result-msg { margin: 0 0 20px; color: var(--muted); }
.flink-token {
    display: grid; gap: 10px; justify-items: center;
    margin: 0 auto 16px; max-width: 480px;
    padding: 14px 16px;
    background: var(--bg2);
    border: 1px dashed var(--line);
    border-radius: 8px;
}
.flink-token-label { font-size: 12px; color: var(--muted); }
.flink-token code {
    font-size: 13px;
    word-break: break-all;
    color: var(--text);
    background: transparent;
}
.flink-result-hint { margin: 0 0 20px; font-size: 13px; }
.flink-result .flink-actions { justify-content: center; }
@media (max-width: 640px) {
    .flink-grid { grid-template-columns: 1fr; }
    .flink-hero h1 { font-size: 24px; }
    .flink-card { padding: 16px; }
}

/* Points mall */
.mall-page { max-width: 1100px; margin: 0 auto; }
.mall-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
    margin: 0 0 18px;
}
.mall-head h1 { margin: 0 0 6px; font-size: 28px; }
.mall-head .muted { margin: 0; max-width: 36em; }
.mall-balance {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    min-width: 150px;
    text-align: center;
}
.mall-balance-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.mall-balance strong { display: block; color: var(--accent); font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.mall-balance a { font-size: 13px; }
.mall-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
}
.mall-tab {
    padding: 7px 14px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 13px;
    border: 1px solid transparent;
}
.mall-tab:hover { color: var(--text); }
.mall-tab.on {
    background: var(--accent-soft);
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.mall-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px 14px;
}
.mall-card { min-width: 0; }
.mall-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #232936, #10141c);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.mall-card:hover .mall-card-cover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    box-shadow: var(--shadow);
}
.mall-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mall-card-empty {
    display: none;
    position: absolute; inset: 0;
    align-items: center; justify-content: center;
    color: var(--muted); font-size: 13px;
}
.mall-card-cover.is-empty .mall-card-empty,
.mall-card-cover:not(:has(img)) .mall-card-empty { display: flex; }
.mall-card-badge {
    position: absolute; left: 8px; top: 8px; margin: 0;
    padding: 2px 7px; border-radius: 4px;
    background: rgba(239,68,68,.9); color: #fff;
    font-size: 11px; font-style: normal; font-weight: 700;
}
.mall-card-points {
    position: absolute; right: 8px; bottom: 8px; margin: 0;
    padding: 3px 8px; border-radius: 6px;
    background: rgba(0,0,0,.72); color: #ffe08a;
    font-size: 12px; font-style: normal; font-weight: 700;
}
.mall-card-meta { padding: 8px 2px 0; }
.mall-card-meta h3 {
    margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mall-card-meta h3 a { color: var(--text); }
.mall-card-meta h3 a:hover { color: var(--accent); }
.mall-card-meta .muted { margin: 4px 0 0; font-size: 12px; }
.mall-detail {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: start;
    margin: 8px 0 28px;
}
.mall-detail-cover {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--card);
    aspect-ratio: 1;
}
.mall-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mall-detail-cover.is-empty {
    display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.mall-buy {
    display: grid; gap: 10px; max-width: 420px; margin-top: 16px;
    padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.mall-buy label { font-size: 12px; color: var(--muted); font-weight: 600; }
.mall-buy input, .mall-buy textarea {
    width: 100%; background: var(--bg2); border: 1px solid var(--line);
    border-radius: 8px; color: var(--text); padding: 10px 12px; font: inherit;
}
@media (max-width: 720px) {
    .mall-detail { grid-template-columns: 1fr; }
    .mall-detail-cover { width: min(240px, 70vw); margin: 0 auto; }
    .mall-head h1 { font-size: 24px; }
}

.list-head .muted { margin: 6px 0 0; font-size: 14px; }
.role-detail {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: start;
    margin: 8px 0 28px;
}
.role-detail-cover {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #232936, #10141c);
    aspect-ratio: 3/4;
}
.role-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.role-detail-cover.is-empty {
    display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.role-detail-main h1 { margin: 0 0 10px; font-size: 28px; }
.role-blurb { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 720px) {
    .role-detail { grid-template-columns: 1fr; }
    .role-detail-cover { width: min(180px, 46vw); margin: 0 auto; }
    .role-detail-main h1 { text-align: center; font-size: 22px; }
    .role-blurb, .role-detail-main .detail-tags { justify-content: center; text-align: center; }
}

/* Topics */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px 16px;
}
.topic-card { min-width: 0; }
.topic-card-cover {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #232936, #10141c);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.topic-card:hover .topic-card-cover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    box-shadow: var(--shadow);
}
.topic-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topic-card-empty {
    display: none; position: absolute; inset: 0;
    align-items: center; justify-content: center;
    color: var(--muted); font-size: 13px;
}
.topic-card-cover.is-empty .topic-card-empty,
.topic-card-cover:not(:has(img)) .topic-card-empty { display: flex; }
.topic-card-count {
    position: absolute; right: 8px; bottom: 8px; margin: 0;
    padding: 3px 8px; border-radius: 6px;
    background: rgba(0,0,0,.72); color: #ffe08a;
    font-size: 12px; font-style: normal; font-weight: 700;
}
.topic-card-meta { padding: 10px 2px 0; }
.topic-card-meta h3 {
    margin: 0; font-size: 16px; font-weight: 650; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.topic-card-meta h3 a { color: var(--text); }
.topic-card-meta h3 a:hover { color: var(--accent); }
.topic-card-meta .muted {
    margin: 6px 0 0; font-size: 13px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.topic-hero {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    margin: 0 0 20px;
    min-height: 180px;
    background: linear-gradient(135deg, #1a2030, #0f131a);
}
.topic-hero-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .35; filter: saturate(.9);
}
.topic-hero-body {
    position: relative; z-index: 1;
    padding: 28px 24px;
    background: linear-gradient(90deg, rgba(8,10,14,.88), rgba(8,10,14,.35) 70%, transparent);
}
.topic-hero h1 { margin: 0 0 8px; font-size: 28px; }
.topic-sub { margin: 0 0 8px; color: var(--accent); font-size: 14px; font-weight: 600; }
.topic-hero .muted { margin: 0 0 12px; max-width: 40em; }
.topic-stat { margin: 0; font-size: 13px; color: var(--muted); }
.topic-stat strong { color: var(--text); }
.topic-content { margin-bottom: 8px; }
@media (max-width: 720px) {
    .topic-grid { grid-template-columns: 1fr; }
    .topic-hero h1 { font-size: 22px; }
    .topic-hero-body { padding: 20px 16px; }
}

/* Arts / news */
.art-tabs {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 0 0 18px; padding: 6px;
    background: var(--card); border: 1px solid var(--line); border-radius: 10px;
}
.art-tabs a {
    padding: 7px 14px; border-radius: 7px; color: var(--muted); font-size: 13px;
    border: 1px solid transparent;
}
.art-tabs a:hover { color: var(--text); }
.art-tabs a.on {
    background: var(--accent-soft); color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.art-list { display: grid; gap: 14px; margin: 0; }
.art-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: border-color .15s ease, transform .15s ease;
}
.art-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-1px); }
.art-card > a { display: grid; grid-template-columns: 200px 1fr; gap: 0; color: var(--text); min-height: 112px; }
.art-card-cover {
    position: relative; background: linear-gradient(160deg, #232936, #10141c); min-height: 112px;
}
.art-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 112px; }
.art-card-empty {
    display: none; position: absolute; inset: 0; align-items: center; justify-content: center;
    color: var(--muted); font-size: 13px;
}
.art-card-cover.is-empty .art-card-empty,
.art-card-cover:not(:has(img)) .art-card-empty { display: flex; }
.art-card .meta { padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.art-card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.art-excerpt {
    margin: 0 0 8px !important; font-size: 13px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.art-meta-line { margin: 0 !important; font-size: 12px; }
.art-detail { max-width: 820px; }
.art-detail-head h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.3; }
.art-lead {
    margin: 0 0 16px; padding: 12px 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: 8px;
    color: var(--muted); font-size: 14px; line-height: 1.65;
}
.art-body { font-size: 15px; line-height: 1.8; }
.art-body p { margin: 0 0 1em; }
.art-cover img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.art-tags a {
    padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--card); color: var(--muted); font-size: 12px;
}
.art-tags a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 720px) {
    .art-card > a { grid-template-columns: 1fr; }
    .art-card-cover, .art-card-cover img { min-height: 160px; aspect-ratio: 16/9; }
    .art-detail-head h1 { font-size: 22px; }
}

/* Website nav */
.web-portal {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    margin: 8px 0 28px;
}
.web-portal-side {
    position: sticky;
    top: 16px;
    padding: 12px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.web-side-group + .web-side-group { margin-top: 4px; }
.web-side-link {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}
.web-side-link:hover { background: rgba(127, 140, 160, 0.12); }
.web-side-link.on { background: rgba(64, 128, 255, 0.14); color: var(--accent, #4d8dff); font-weight: 600; }
.web-side-link.open { color: var(--accent, #4d8dff); }
.web-side-link.is-child { padding-left: 22px; font-size: 13px; color: var(--muted); }
.web-side-link.is-child.on { color: var(--accent, #4d8dff); }
.web-hot { margin: 0 0 22px; }
.web-hot h2, .web-group h2, .web-related h2 {
    margin: 0 0 12px;
    font-size: 18px;
}
.web-hot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.web-hot-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
}
.web-hot-list a em {
    font-style: normal;
    color: var(--muted);
    font-size: 12px;
}
.web-group + .web-group { margin-top: 28px; }
.web-related { margin: 28px 0; }
.web-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.web-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.web-card-logo {
    width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #232936, #10141c);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 22px; font-weight: 700;
}
.web-card-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.web-card-meta h3 { margin: 0 0 4px; font-size: 15px; }
.web-card-meta h3 a { color: var(--text); }
.web-card-meta .muted { margin: 0 0 6px; font-size: 12px; line-height: 1.4; }
.web-detail {
    display: grid; grid-template-columns: 120px 1fr; gap: 24px;
    align-items: start; margin: 8px 0 28px;
}
.web-detail-logo {
    width: 120px; height: 120px; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--line); background: var(--card);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 700; color: var(--muted);
}
.web-detail-logo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
    .web-portal { grid-template-columns: 1fr; }
    .web-portal-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
    .web-side-group { display: contents; }
    .web-side-children { display: contents; }
}
@media (max-width: 640px) {
    .web-detail { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .web-detail .detail-actions { justify-content: center; }
}

/* Member auth (login / register) */
.auth-page {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0 48px;
}
.auth-shell {
    width: min(920px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 1.2fr;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.auth-aside {
    padding: 40px 32px;
    background:
        radial-gradient(500px 280px at 20% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
        linear-gradient(165deg, #1a2230 0%, #10151e 55%, #0c1018 100%);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    min-height: 360px;
}
.auth-brand {
    margin: 0;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 85%, #fff);
    font-weight: 600;
}
.auth-aside h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}
.auth-aside .muted {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    max-width: 28em;
}
/* Single-column (no aside) auth layout: just the card, centered */
.auth-shell--single {
    width: min(460px, 100%);
    display: block;
}
.auth-shell--single .auth-card {
    padding: 34px 34px 30px;
}
.auth-shell--single .auth-head h1 {
    font-size: 22px;
}
.auth-card {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.auth-head h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
}
.auth-head .muted { margin: 0; font-size: 14px; }
.auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, #e35d6a 45%, var(--line));
    background: color-mix(in srgb, #e35d6a 14%, transparent);
    color: #ffb4bc;
    font-size: 13px;
}
.auth-alert.is-ok {
    border-color: color-mix(in srgb, #3dd68c 45%, var(--line));
    background: color-mix(in srgb, #3dd68c 12%, transparent);
    color: #9aefc2;
}
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 6px; margin: 0; }
.auth-field > span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
}
.auth-field > span em { font-style: normal; font-weight: 400; }
.auth-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0e1219;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-field input:focus {
    border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-sms {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--accent) 28%, var(--line));
    background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.auth-sms-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: stretch;
}
.auth-sms-row input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0e1219;
    color: var(--text);
    font-size: 15px;
    outline: none;
}
.auth-sms-row input:focus {
    border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.auth-sms-row .btn-ghost {
    white-space: nowrap;
    padding: 0 14px;
    min-height: 46px;
}
.auth-sms-row .btn-ghost:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}
.auth-actions .btn-play {
    min-width: 140px;
    padding: 12px 22px;
}
.auth-actions .btn-ghost {
    padding: 10px 16px;
}
.auth-social {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.auth-social-label {
    margin: 0 0 10px;
    font-size: 12px;
}
@media (max-width: 820px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside {
        min-height: 0;
        padding: 24px 22px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .auth-aside h2 { font-size: 22px; }
    .auth-card { padding: 24px 20px 28px; }
    .auth-page { padding: 12px 0 32px; align-items: flex-start; }
    .auth-sms-row { grid-template-columns: 1fr; }
    .auth-actions .btn-play { width: 100%; }
}

/* Member center */
.member-page { max-width: 980px; }
.member-hero {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    margin: 0 0 18px;
    padding: 22px 22px 20px;
    background:
        radial-gradient(520px 220px at 12% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        var(--card);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 2px);
}
.member-eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.member-hero h1 { margin: 0 0 6px; font-size: 26px; }
.member-hero .muted { margin: 0; max-width: 36em; }
.member-points {
    min-width: 120px;
    padding: 14px 18px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 10%, #0e1219);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    display: grid;
    align-content: center;
    gap: 2px;
    text-align: right;
}
.member-points strong {
    font-size: 28px;
    line-height: 1.1;
    color: var(--accent);
}
.member-points em { font-style: normal; font-size: 12px; }
.member-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}
.member-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--muted);
    font-size: 13px;
}
.member-nav a:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    background: var(--accent-soft);
}
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}
.member-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 16px 18px;
}
.member-card .sec-head {
    margin-bottom: 12px;
    padding-bottom: 8px;
}
.member-card .sec-head h2 { font-size: 16px; }
.member-form { display: grid; gap: 12px; }
.member-invite-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.member-invite-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: #0e1219;
    border: 1px solid var(--line);
}
.member-invite-list code {
    color: var(--text);
    font-size: 13px;
    letter-spacing: .04em;
}
.member-logout { margin: 8px 0 0; }
.member-sign {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}
.member-sign form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    width: 100%;
}
.member-sign .btn-play:disabled {
    opacity: .55;
    cursor: not-allowed;
    filter: none;
}
.member-task {
    padding: 10px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.member-task:last-child { border-bottom: 0; padding-bottom: 0; }
.member-task-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 14px;
}
.member-task-top span { color: var(--accent); font-weight: 600; white-space: nowrap; }
.member-task p { margin: 6px 0 0; font-size: 12px; }
.member-task.is-done .member-task-top strong { color: var(--muted); }
.member-progress {
    height: 6px;
    border-radius: 999px;
    background: #0e1219;
    overflow: hidden;
    border: 1px solid var(--line);
}
.member-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
    border-radius: inherit;
}
.member-mail {
    margin: 0 0 10px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.member-mail.is-unread {
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    box-shadow: inset 3px 0 0 var(--accent);
}
.member-mail-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.member-mail-body { margin: 0; color: #c5c9d0; line-height: 1.6; }

/* Detail comments */
.detail-comment-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}
.detail-comment-box .comment-form { display: grid; gap: 12px; margin-bottom: 8px; }
.detail-comment-box .comment-form textarea,
.detail-comment-box .comment-form input,
.detail-comment-box .report-form input,
.report-form.detail-comment-box input {
    width: 100%;
    max-width: none;
}
.comment-list { margin-top: 8px; }
.comment-item {
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
}
.comment-item:last-child { border-bottom: 0; }
.comment-item-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
    margin-bottom: 6px;
}
.comment-item-head strong { color: var(--text); }
.comment-item-acts { margin-left: auto; display: flex; gap: 12px; font-size: 12px; }
.comment-item-acts a { color: var(--muted); }
.comment-item-acts a:hover { color: var(--accent); }
.comment-item-body { margin: 0; line-height: 1.55; color: #c5c9d0; }
.score-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 20px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.score-row .score-link {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--bg2);
}
.score-row .score-link:hover {
    color: #fff;
    border-color: var(--accent);
    background: var(--accent);
}
.manga-history-card { margin-bottom: 14px; }
.manga-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.manga-history-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: baseline;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    background: #0e1219;
    border: 1px solid var(--line);
}
.manga-history-list a { color: var(--text); font-weight: 600; }
.manga-history-list a:hover { color: var(--accent); }
.manga-local-history summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
}
@media (max-width: 640px) {
    .member-hero { padding: 16px; }
    .member-points { text-align: left; width: 100%; }
    .member-invite-list li { flex-direction: column; align-items: flex-start; }
    .comment-item-acts { margin-left: 0; width: 100%; }
}

/* Actor detail */
.actor-detail {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: start;
    margin: 0 0 24px;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.actor-avatar {
    position: relative;
    width: 140px;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #232936, #10141c);
}
.actor-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.actor-avatar-empty {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
}
.actor-avatar.is-empty .actor-avatar-empty,
.actor-avatar:not(:has(img)) .actor-avatar-empty { display: flex; }
.actor-main h1 { margin: 0 0 10px; font-size: 28px; }
.manga-chapter-panel { margin-top: 8px; }
.manga-read-bar { margin: 0 0 14px; }
.manga-read-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
}
.manga-read-nav {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 12px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--card) 92%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.manga-read-nav.is-sticky {
    position: sticky;
    top: 58px;
    z-index: 12;
    backdrop-filter: blur(10px);
    background: rgba(23, 27, 36, .92);
}
.manga-read-tools {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex: 1;
}
.manga-read-tools .btn-ghost,
.manga-read-nav > .btn-ghost {
    padding: 6px 12px;
    min-height: 34px;
    font-size: 13px;
}
.manga-read-prog { font-size: 12px; white-space: nowrap; }
.manga-read-edge { font-size: 13px; padding: 0 4px; }
@media (max-width: 720px) {
    .actor-detail { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .actor-main .detail-desc { margin-left: auto; margin-right: auto; }
    .manga-read-nav { justify-content: center; }
    .manga-read-title { font-size: 17px; }
}

/* Breadcrumb / near-nav / plots / mall orders */
.breadcrumb,
nav.breadcrumb {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.near-nav {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.plot-article { margin: 0 0 8px; }
.plot-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.plot-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.plot-list-title { color: var(--text); font-weight: 600; }
.plot-list-title:hover { color: var(--accent); }
.mall-orders {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.mall-order-card {
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.mall-order-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 6px;
}
.mall-order-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
}
.mall-order-status.status-2 {
    color: #86efac;
    border-color: color-mix(in srgb, #16a34a 40%, var(--line));
    background: color-mix(in srgb, #16a34a 12%, transparent);
}
.mall-order-status.status-1 {
    color: #fde68a;
    border-color: color-mix(in srgb, #ca8a04 40%, var(--line));
    background: color-mix(in srgb, #ca8a04 12%, transparent);
}
.art-near {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 16px 0 8px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.art-near a { color: var(--muted); font-size: 13px; }
.art-near a:hover { color: var(--accent); }

/* Manga continue bar on /manga */
.manga-continue-bar {
    position: sticky;
    top: 62px;
    z-index: 16;
    margin: 0 0 14px;
}
.manga-continue-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--accent) 12%, var(--card));
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.manga-continue-inner a {
    color: var(--text);
    font-weight: 600;
    flex: 1;
    min-width: 0;
}
.manga-continue-inner a:hover { color: var(--accent); }
.manga-continue-inner .btn-link {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
}

/* Site back-to-top */
.site-gotop {
    position: fixed;
    right: 16px;
    bottom: 20px;
    z-index: 40;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(23, 27, 36, .92);
    color: var(--text);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, border-color .15s ease;
    backdrop-filter: blur(8px);
}
.site-gotop.is-on {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.site-gotop:hover { border-color: var(--accent); color: var(--accent); }

.auth-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #0e1219;
    color: var(--text);
    font-size: 15px;
    outline: none;
}
.auth-field select:focus {
    border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.pay-order-no {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.pay-order-no code {
    font-size: 15px;
    letter-spacing: .04em;
    color: var(--text);
    word-break: break-all;
}
.pay-code {
    padding: 12px;
    border-radius: 8px;
    background: #0e1219;
    border: 1px solid var(--line);
    word-break: break-all;
}
.pay-code code { color: var(--accent); font-size: 13px; }
.coupon-card {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.coupon-card:last-child { border-bottom: 0; padding-bottom: 0; }
.coupon-main { min-width: 0; flex: 1; }
.coupon-main strong { display: block; margin-bottom: 4px; }
.coupon-main p { margin: 0; font-size: 12px; line-height: 1.5; }
.coupon-act { flex: 0 0 auto; }
.mall-buy { display: grid; gap: 12px; max-width: 420px; margin-top: 14px; }
@media (max-width: 640px) {
    .coupon-card { flex-direction: column; align-items: flex-start; }
}
