/* =========================================================
   xxxx.bid — Dark Cinema (OLED) design system
   tokens from ui-ux-pro-max: bg #000 / surface #0C0C0D / accent #E11D48
   ========================================================= */
:root{
  --bg:#000000;
  --bg-elev:#08080A;
  --surface:#0C0C0D;
  --surface-2:#15151A;
  --surface-3:#1C1C22;
  --line:#232329;
  --line-2:#2E2E37;
  --fg:#F8FAFC;
  --fg-muted:#94A3B8;
  --fg-dim:#64748B;
  --accent:#E11D48;
  --accent-hover:#F43F5E;
  --accent-soft:rgba(225,29,72,.14);
  --ok:#22C55E;
  --warn:#F59E0B;
  --radius:14px;
  --radius-sm:10px;
  --radius-lg:20px;
  --shadow:0 24px 48px -24px rgba(0,0,0,.95);
  --maxw:1440px;
  --font:"Inter","Noto Sans SC",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,"PingFang SC","Microsoft YaHei",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--fg);font-family:var(--font);
  font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
h1,h2,h3,h4,p{margin:0}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
::selection{background:var(--accent);color:#fff}
.mono{font-family:var(--mono);font-size:.85em}
.dim{color:var(--fg-muted)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:16px;top:-60px;z-index:100;background:var(--accent);color:#fff;padding:10px 16px;border-radius:8px;transition:top .15s}
.skip-link:focus{top:12px}
.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:clamp(16px,4vw,48px)}
.empty{color:var(--fg-muted);padding:40px 0;font-size:.95rem}

/* ---------------- header ---------------- */
.site-header{
  position:sticky;top:0;z-index:50;background:rgba(0,0,0,.82);
  backdrop-filter:saturate(140%) blur(14px);border-bottom:1px solid var(--line);
}
.header__inner{display:flex;align-items:center;gap:clamp(12px,2vw,28px);height:66px}
.brand{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.brand__mark{
  display:grid;place-items:center;width:34px;height:34px;border-radius:10px;
  background:linear-gradient(140deg,var(--accent),#7F1D3A);color:#fff;
  box-shadow:0 8px 20px -8px rgba(225,29,72,.8);
}
.brand__mark svg{width:18px;height:18px}
.brand__mark--sm{width:28px;height:28px;border-radius:8px}
.brand__mark--sm svg{width:14px;height:14px}
.brand__text{font-weight:800;font-size:1.12rem;letter-spacing:-.02em}
.brand__dot{color:var(--accent)}
.nav{display:flex;align-items:center;gap:clamp(10px,1.6vw,22px);overflow-x:auto;scrollbar-width:none;flex:1 1 auto}
.nav::-webkit-scrollbar{display:none}
.nav a{font-size:.92rem;color:var(--fg-muted);white-space:nowrap;padding:6px 2px;border-bottom:2px solid transparent;transition:color .18s,border-color .18s}
.nav a:hover{color:var(--fg)}
.nav a.is-active{color:var(--fg);border-color:var(--accent);font-weight:600}
.search{
  position:relative;display:flex;align-items:center;flex:0 1 300px;min-width:150px;
  background:var(--surface);border:1px solid var(--line);border-radius:999px;
  transition:border-color .18s,background .18s;
}
.search:focus-within{border-color:var(--accent);background:var(--surface-2)}
.search__icon{width:17px;height:17px;margin-left:14px;color:var(--fg-dim);flex:0 0 auto}
.search input{
  flex:1;min-width:0;background:none;border:0;outline:none;color:var(--fg);
  padding:10px 16px 10px 10px;font-size:.9rem;
}
.search input::placeholder{color:var(--fg-dim)}
.search input::-webkit-search-cancel-button{filter:invert(.6)}
.search--lg,.search--page{flex:1 1 auto;min-width:0}
.search--page{max-width:640px;margin-top:16px}
.search--page .btn{margin:4px}
.age-pill{
  flex:0 0 auto;display:grid;place-items:center;width:38px;height:30px;
  border:1px solid var(--accent);border-radius:8px;color:var(--accent);
  font-weight:800;font-size:.78rem;letter-spacing:.04em;
}
.age-pill:hover{background:var(--accent-soft)}

/* ---------------- buttons / chips ---------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid transparent;border-radius:10px;padding:11px 20px;
  font-size:.92rem;font-weight:600;cursor:pointer;transition:background .18s,color .18s,border-color .18s,transform .12s;
  background:var(--surface-2);color:var(--fg);min-height:44px;
}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--accent);color:#fff;box-shadow:0 12px 28px -14px rgba(225,29,72,.9)}
.btn--primary:hover{background:var(--accent-hover)}
.btn--ghost{background:transparent;border-color:var(--line-2);color:var(--fg-muted)}
.btn--ghost:hover{color:var(--fg);border-color:var(--fg-dim);background:var(--surface-2)}
.btn--danger{background:transparent;border-color:rgba(239,68,68,.45);color:#FCA5A5}
.btn--danger:hover{background:rgba(239,68,68,.12)}
.btn--block{width:100%}
.btn--sm{padding:8px 14px;min-height:38px;font-size:.85rem}
.btn--xs{padding:5px 10px;min-height:30px;font-size:.78rem;border-radius:7px}
.btn svg{width:16px;height:16px}
.chip,.tag-row{display:inline-flex;align-items:center;gap:8px}
.chip{
  padding:5px 11px;border-radius:999px;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);font-size:.76rem;color:var(--fg);
  backdrop-filter:blur(6px);transition:background .18s,border-color .18s;
}
a.chip:hover{background:var(--accent-soft);border-color:var(--accent)}
.chip--accent{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}
.tag-row--wrap{flex-wrap:wrap;gap:10px;margin-top:18px}
.pill{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;font-size:.72rem;font-weight:600;background:var(--surface-3);color:var(--fg-muted)}
.pill--ok{background:rgba(34,197,94,.14);color:#86EFAC}
.pill--off{background:rgba(148,163,184,.12);color:var(--fg-muted)}
.pill--soft{background:var(--accent-soft);color:#FDA4AF}

/* ---------------- announcement ---------------- */
.announce{background:linear-gradient(90deg,rgba(225,29,72,.18),rgba(225,29,72,.05));border-bottom:1px solid rgba(225,29,72,.22)}
.announce__inner{display:flex;align-items:center;gap:10px;padding-block:9px;font-size:.85rem;color:#FECDD3}
.announce svg{width:16px;height:16px;flex:0 0 auto}

/* ---------------- hero ---------------- */
.hero{padding-top:clamp(28px,4vw,52px);padding-bottom:clamp(18px,2.6vw,28px)}
.eyebrow{font-size:.72rem;letter-spacing:.22em;color:var(--accent);font-weight:700;margin-bottom:12px}
.hero__title{font-size:clamp(2rem,4.4vw,3.4rem);line-height:1.05;letter-spacing:-.035em;font-weight:800}
.hero__title span{background:linear-gradient(120deg,var(--accent),#FB7185 70%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero__sub{color:var(--fg-muted);margin-top:14px;max-width:46ch;font-size:1rem}
.hero__stats{display:flex;gap:26px;margin-top:22px;font-size:.85rem;color:var(--fg-muted)}
.hero__stats strong{color:var(--fg);font-size:1rem;margin-right:4px}
.hero__grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:clamp(12px,1.6vw,20px);margin-top:clamp(22px,3vw,34px);align-items:stretch;height:clamp(360px,30vw,520px)}
.hero-card{position:relative;display:block;border-radius:var(--radius-lg);overflow:hidden;background:var(--surface);border:1px solid var(--line);height:100%;min-height:280px}
.hero-card img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.hero-card:hover img{transform:scale(1.03)}
.hero-card__scrim{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.92) 4%,rgba(0,0,0,.55) 38%,rgba(0,0,0,.08) 72%)}
.hero-card__content{position:absolute;inset:auto 0 0 0;padding:clamp(18px,2.4vw,30px);display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.hero-card__title{font-size:clamp(1.25rem,2.1vw,1.9rem);font-weight:800;letter-spacing:-.02em;line-height:1.2;text-wrap:balance}
.hero-card__meta{color:#CBD5E1;font-size:.85rem}
.hero-card__cta{margin-top:6px}
.hero__side{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:10px;min-width:0;height:100%}
.hero__side .mini{height:100%}
.hero__side .mini__thumb{height:auto;aspect-ratio:16/9;flex:0 0 150px;align-self:center}
.mini{display:flex;gap:12px;align-items:center;padding:8px;border-radius:12px;border:1px solid transparent;transition:background .18s,border-color .18s;min-width:0}
.mini:hover{background:var(--surface);border-color:var(--line)}
.mini__thumb{position:relative;flex:0 0 128px;border-radius:8px;overflow:hidden;background:var(--surface-2);aspect-ratio:16/9}
.mini__thumb img{width:100%;height:100%;object-fit:cover}
.mini__time{position:absolute;right:4px;bottom:4px;background:rgba(0,0,0,.78);border-radius:4px;padding:1px 5px;font-size:.66rem;font-variant-numeric:tabular-nums}
.mini__body{display:flex;flex-direction:column;gap:4px;min-width:0}
.mini__title{font-size:.9rem;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mini__meta{font-size:.75rem;color:var(--fg-dim)}
.cat-strip{display:flex;gap:10px;flex-wrap:wrap;margin-top:clamp(20px,3vw,30px);padding-bottom:8px}
.cat-chip{
  display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;
  background:var(--surface);border:1px solid var(--line);font-size:.86rem;color:var(--fg-muted);
  transition:color .18s,border-color .18s,background .18s;
}
.cat-chip em{font-style:normal;font-size:.72rem;color:var(--fg-dim)}
.cat-chip:hover{color:var(--fg);border-color:var(--accent);background:var(--accent-soft)}
.cat-chip--ghost{color:var(--accent);border-style:dashed}

/* ---------------- rows / grid / cards ---------------- */
.row{margin-top:clamp(34px,5vw,58px)}
.row__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.row__title{font-size:clamp(1.1rem,1.7vw,1.4rem);font-weight:700;letter-spacing:-.02em;display:flex;align-items:center;gap:10px}
.row__title::before{content:"";width:4px;height:18px;border-radius:2px;background:var(--accent)}
.row__more{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;color:var(--fg-muted);transition:color .18s,gap .18s}
.row__more svg{width:15px;height:15px}
.row__more:hover{color:var(--accent);gap:10px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:clamp(18px,2vw,26px) clamp(12px,1.4vw,18px)}
.grid--tight{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
.card{min-width:0}
.card__link{display:block;border-radius:var(--radius);outline-offset:4px}
.card__thumb{
  position:relative;border-radius:var(--radius);overflow:hidden;background:var(--surface-2);
  aspect-ratio:16/9;border:1px solid var(--line);
  transition:border-color .2s,transform .25s cubic-bezier(.2,.7,.2,1),box-shadow .25s;
}
.card__thumb img{width:100%;height:100%;object-fit:cover;transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.card__link:hover .card__thumb{border-color:rgba(225,29,72,.55);transform:translateY(-3px);box-shadow:var(--shadow)}
.card__link:hover .card__thumb img{transform:scale(1.06)}
.card__scrim{position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.55),rgba(0,0,0,0) 45%);opacity:0;transition:opacity .2s}
.card__link:hover .card__scrim{opacity:1}
.card__play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.86);
  width:46px;height:46px;border-radius:50%;display:grid;place-items:center;
  background:rgba(225,29,72,.92);color:#fff;opacity:0;transition:opacity .2s,transform .2s;
  box-shadow:0 10px 30px -8px rgba(225,29,72,.9);
}
.card__play svg{width:20px;height:20px;margin-left:2px}
.card__link:hover .card__play,.card__link:focus-visible .card__play{opacity:1;transform:translate(-50%,-50%) scale(1)}
.card__time{position:absolute;right:8px;bottom:8px;background:rgba(0,0,0,.8);border:1px solid rgba(255,255,255,.08);border-radius:5px;padding:1px 6px;font-size:.7rem;font-variant-numeric:tabular-nums}
.card__badge{position:absolute;left:8px;top:8px;background:rgba(0,0,0,.72);border:1px solid rgba(255,255,255,.14);border-radius:5px;padding:1px 6px;font-size:.68rem;font-weight:700;letter-spacing:.04em}
.card__badge--vip{left:auto;right:8px;background:var(--accent);border-color:var(--accent)}
.card__title{
  margin-top:10px;font-size:.94rem;font-weight:600;line-height:1.35;letter-spacing:-.01em;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.card__meta{margin-top:5px;display:flex;align-items:center;gap:6px;font-size:.76rem;color:var(--fg-dim)}
.card__dot{opacity:.6}

/* ---------------- page head ---------------- */
.page-head{padding-top:clamp(22px,3vw,36px);padding-bottom:18px}
.crumbs{display:flex;align-items:center;gap:8px;font-size:.78rem;color:var(--fg-dim);margin-bottom:14px;flex-wrap:wrap}
.crumbs a:hover{color:var(--accent)}
.page-head__row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}
.page-title{font-size:clamp(1.6rem,2.8vw,2.2rem);font-weight:800;letter-spacing:-.03em}
.page-sub{color:var(--fg-muted);font-size:.9rem;margin-top:8px}
.tabs{display:flex;gap:6px;background:var(--surface);border:1px solid var(--line);padding:4px;border-radius:12px}
.tab{padding:7px 14px;border-radius:9px;font-size:.85rem;color:var(--fg-muted);transition:background .18s,color .18s}
.tab:hover{color:var(--fg)}
.tab.is-active{background:var(--surface-3);color:var(--fg);font-weight:600}

/* ---------------- pager ---------------- */
.pager{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding:clamp(30px,4vw,48px) 0 10px}
.pager__btn,.pager__num{
  display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 14px;
  border-radius:9px;border:1px solid var(--line);background:var(--surface);color:var(--fg-muted);
  font-size:.85rem;transition:background .18s,color .18s,border-color .18s;
}
.pager__btn:hover,.pager__num:hover{color:var(--fg);border-color:var(--fg-dim)}
.pager__num.is-current{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:700}
.pager__btn.is-disabled{opacity:.35;pointer-events:none}
.pager__info{font-size:.78rem;color:var(--fg-dim);margin-left:8px}

/* ---------------- detail ---------------- */
.detail{padding-top:20px}
.detail__layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,340px);gap:clamp(20px,2.6vw,36px);align-items:start}
.detail__main{min-width:0}
.player{
  position:relative;background:#000;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;aspect-ratio:16/9;
}
.player__video{width:100%;height:100%;display:block;background:#000}
.player iframe{width:100%;height:100%;border:0;display:block;position:absolute;inset:0}
.player__status{
  position:absolute;left:12px;bottom:12px;background:rgba(0,0,0,.72);border:1px solid var(--line);
  border-radius:7px;padding:4px 10px;font-size:.75rem;color:var(--fg-muted);pointer-events:none;
  transition:opacity .3s;
}
.player.is-ready .player__status{opacity:0}
.detail__head{margin-top:20px}
.detail__title{font-size:clamp(1.35rem,2.4vw,2rem);font-weight:800;letter-spacing:-.025em;line-height:1.25;text-wrap:balance}
.detail__meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:12px;font-size:.82rem;color:var(--fg-muted)}
.meta-item{position:relative;padding-right:14px}
.meta-item::after{content:"";position:absolute;right:4px;top:50%;width:3px;height:3px;border-radius:50%;background:var(--fg-dim);transform:translateY(-50%)}
.meta-item:last-child{padding-right:0}
.meta-item:last-child::after{display:none}
.meta-item--accent{color:#FDA4AF}
.detail__actions{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}
.eps{margin-top:26px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden}
.eps__tabs{display:flex;gap:4px;padding:10px;border-bottom:1px solid var(--line);overflow-x:auto}
.eps__tab{
  padding:7px 14px;border:1px solid transparent;border-radius:8px;background:transparent;
  color:var(--fg-muted);font-size:.83rem;cursor:pointer;white-space:nowrap;transition:all .18s;
}
.eps__tab:hover{color:var(--fg)}
.eps__tab.is-active{background:var(--accent-soft);border-color:rgba(225,29,72,.5);color:#FDA4AF;font-weight:600}
.eps__panel{display:none;padding:14px}
.eps__panel.is-active{display:block}
.eps__list{display:flex;flex-wrap:wrap;gap:8px;max-height:190px;overflow-y:auto}
.ep{
  min-height:36px;padding:6px 14px;border-radius:8px;border:1px solid var(--line);background:var(--surface-2);
  color:var(--fg-muted);font-size:.82rem;cursor:pointer;transition:all .18s;max-width:100%;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.ep:hover{border-color:var(--fg-dim);color:var(--fg)}
.ep.is-active{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}
.prose{margin-top:28px;border-top:1px solid var(--line);padding-top:22px}
.prose h2{font-size:1rem;font-weight:700;margin-bottom:10px}
.prose p{color:var(--fg-muted);font-size:.92rem;line-height:1.75}
.detail__side{position:sticky;top:86px}
.side__title{font-size:.95rem;font-weight:700;margin-bottom:10px;padding-left:10px;border-left:3px solid var(--accent)}
.side-list{display:flex;flex-direction:column;gap:4px}
.side-list .mini__thumb{flex-basis:112px}
.notfound{padding:80px 0;text-align:center}
.notfound__code{font-size:clamp(4rem,12vw,8rem);font-weight:900;letter-spacing:-.06em;background:linear-gradient(140deg,var(--accent),#3F0D1B);-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1}
.notfound .page-title{margin-top:8px}
.notfound .grid{margin-top:38px;text-align:left}
.notfound__back{margin-top:32px}
.notfound__back .btn{padding-inline:28px}

/* ---------------- cta band ---------------- */
.cta-band{margin-top:clamp(44px,6vw,76px);margin-bottom:clamp(50px,7vw,90px)}
.cta-band__inner{
  display:flex;align-items:center;justify-content:space-between;gap:26px;flex-wrap:wrap;
  padding:clamp(22px,3vw,36px);border-radius:var(--radius-lg);
  background:radial-gradient(120% 160% at 0% 0%,rgba(225,29,72,.22),rgba(12,12,13,.9) 55%),var(--surface);
  border:1px solid rgba(225,29,72,.28);
}
.cta-band h2{font-size:clamp(1.2rem,2vw,1.6rem);letter-spacing:-.02em}
.cta-band p{color:var(--fg-muted);font-size:.9rem;margin-top:6px}

/* ---------------- footer ---------------- */
.site-footer{border-top:1px solid var(--line);background:var(--bg-elev);padding:clamp(34px,5vw,54px) 0 40px;margin-top:40px}
.footer__inner{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:34px}
.footer__brand{display:flex;gap:12px;align-items:flex-start}
.footer__name{font-weight:800;letter-spacing:-.01em}
.footer__desc{color:var(--fg-muted);font-size:.85rem;margin-top:6px;max-width:40ch}
.footer__cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.footer__cols h4{font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;color:var(--fg-dim);margin-bottom:12px}
.footer__cols a{display:block;font-size:.86rem;color:var(--fg-muted);padding:4px 0;transition:color .18s}
.footer__cols a:hover{color:var(--accent)}
.footer__legal{grid-column:1/-1;display:flex;gap:10px;align-items:flex-start;color:var(--fg-dim);font-size:.8rem;border-top:1px solid var(--line);padding-top:20px}
.badge-18{flex:0 0 auto;border:1px solid var(--line-2);border-radius:5px;padding:1px 6px;font-size:.68rem;font-weight:700;color:var(--fg-muted)}
.footer__copy{grid-column:1/-1;color:#475569;font-size:.76rem}

/* =========================================================
   Admin
   ========================================================= */
.admin{background:#060607}
.admin--bare{display:grid;place-items:center;min-height:100vh}
.admin__main{min-height:100vh;display:flex;flex-direction:column}
.admin:not(.admin--bare) .admin__main{margin-left:248px}
.admin__top{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;
  gap:16px;height:62px;padding:0 clamp(16px,3vw,32px);background:rgba(6,6,7,.9);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--line);
}
.admin__top-left{display:flex;align-items:center;gap:10px;font-size:.88rem;color:var(--fg-muted)}
.admin__dot{width:8px;height:8px;border-radius:50%;background:var(--ok);box-shadow:0 0 0 4px rgba(34,197,94,.14)}
.admin__top-right{display:flex;align-items:center;gap:12px}
.admin__top-right form{margin:0}
.admin__user{font-size:.85rem;color:var(--fg-muted)}
.admin__body{padding:clamp(18px,3vw,34px);max-width:1500px;width:100%}
.admin-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.admin-head h1{font-size:1.5rem;letter-spacing:-.02em}
.admin-head__actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.sidebar{
  position:fixed;left:0;top:0;bottom:0;width:248px;z-index:30;display:flex;flex-direction:column;
  background:#08080A;border-right:1px solid var(--line);padding:18px 14px;
}
.sidebar__brand{display:flex;align-items:center;gap:10px;font-weight:800;padding:6px 8px 20px;letter-spacing:-.02em}
.sidebar__nav{display:flex;flex-direction:column;gap:4px}
.sidebar__nav a{
  display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:9px;
  font-size:.9rem;color:var(--fg-muted);transition:background .18s,color .18s;
}
.sidebar__nav a svg{width:17px;height:17px;flex:0 0 auto}
.sidebar__nav a:hover{background:var(--surface-2);color:var(--fg)}
.sidebar__nav a.is-active{background:var(--accent-soft);color:#FDA4AF;font-weight:600}
.sidebar__foot{margin-top:auto;padding:12px 10px;font-size:.74rem;color:var(--fg-dim);border-top:1px solid var(--line)}
.sidebar__foot p{margin:2px 0}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:22px}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;display:flex;flex-direction:column;gap:4px}
.stat__label{font-size:.78rem;color:var(--fg-muted)}
.stat__num{font-size:1.9rem;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.stat__hint{font-size:.74rem;color:var(--fg-dim)}
.admin-cols{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;align-items:start}
.admin-cols--even{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px clamp(14px,2vw,22px);margin-bottom:18px;overflow:hidden}
.panel__head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px;flex-wrap:wrap}
.panel__head h2{font-size:1rem;font-weight:700}
.panel__head a{font-size:.82rem;color:var(--accent)}
.panel__head--sub{margin-top:22px;border-top:1px solid var(--line);padding-top:16px}
.head-tags{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.table{width:100%;border-collapse:collapse;font-size:.86rem}
.table th{
  text-align:left;font-weight:600;font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--fg-dim);padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap;
}
.table td{padding:10px;border-bottom:1px solid rgba(35,35,41,.6);vertical-align:middle}
.table tbody tr:last-child td{border-bottom:0}
.table tbody tr:hover{background:rgba(255,255,255,.02)}
.table a{color:var(--fg)}
.table a:hover{color:var(--accent)}
.table--wide td:last-child,.table--wide th:last-child{text-align:right}
.thumb{width:96px;height:54px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}
.row-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.row-actions form{margin:0}
.source-list,.log-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.source-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid rgba(35,35,41,.6);min-width:0}
.source-list li:last-child{border-bottom:0}
.source-list__main{display:flex;flex-direction:column;gap:2px;min-width:0}
.source-list__main strong{font-size:.88rem}
.source-list__main span{font-size:.74rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.source-list__meta{display:flex;gap:8px;align-items:center;flex:0 0 auto;font-size:.78rem}
.log-list{list-style:none;margin:0;padding:0}
.log-list li{display:flex;gap:10px;padding:7px 0;font-size:.8rem;border-bottom:1px solid rgba(35,35,41,.5);min-width:0}
.log-list li:last-child{border-bottom:0}
.log-list__msg{color:var(--fg-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.form{display:flex;flex-direction:column;gap:14px}
.form--inline{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:14px}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field--wide{grid-column:1/-1}
.field--grow{flex:1 1 320px}
.field>span{font-size:.78rem;color:var(--fg-muted)}
.field input,.field select,.field textarea{
  background:var(--bg-elev);border:1px solid var(--line-2);border-radius:9px;
  padding:10px 12px;color:var(--fg);font-size:.88rem;font-family:inherit;min-height:42px;
  transition:border-color .18s,background .18s;width:100%;
}
.field textarea{min-height:auto;resize:vertical;line-height:1.6}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--accent);background:#000}
.field input::placeholder,.field textarea::placeholder{color:#4B5563}
.check-row{display:flex;gap:18px;flex-wrap:wrap}
.check{display:inline-flex;align-items:center;gap:8px;font-size:.85rem;color:var(--fg-muted);cursor:pointer;min-height:36px}
.check input{width:16px;height:16px;accent-color:var(--accent)}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}
.form-hint{font-size:.76rem;color:var(--fg-dim);margin-top:-4px}
.collect-bar{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px;margin-top:6px}
.form--collect{flex:1 1 520px}
.collect-bar form{margin:0}
.flash{
  background:rgba(225,29,72,.1);border:1px solid rgba(225,29,72,.4);color:#FECDD3;
  padding:11px 16px;border-radius:10px;font-size:.85rem;margin-bottom:18px;
}
.flash.is-hidden{display:none}
.search--admin{flex:0 1 260px;min-width:180px}

/* login */
.login{display:grid;place-items:center;width:100%;padding:24px}
.login__card{
  width:min(420px,100%);background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-lg);padding:clamp(24px,4vw,36px);display:flex;flex-direction:column;gap:14px;
  box-shadow:0 30px 80px -40px #000;
}
.login__mark{width:46px;height:46px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(140deg,var(--accent),#7F1D3A);color:#fff}
.login__mark svg{width:22px;height:22px}
.login h1{font-size:1.4rem;letter-spacing:-.02em}
.login__sub{color:var(--fg-muted);font-size:.86rem;margin-bottom:4px}
.login .field input{min-height:46px}
.login__hint{font-size:.74rem;color:var(--fg-dim);text-align:center;margin-top:4px}

/* ---------------- responsive ---------------- */
@media (max-width:1180px){
  .hero__grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
  .detail__layout{grid-template-columns:minmax(0,1fr) minmax(0,290px)}
}
@media (max-width:1024px){
  .header__inner{flex-wrap:wrap;height:auto;padding-block:10px;row-gap:10px}
  .nav{order:3;flex-basis:100%;padding-bottom:2px}
  .search{flex:1 1 200px}
  .hero__grid{grid-template-columns:1fr}
  .hero__side{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));height:auto}
  .hero__side .mini__thumb{height:auto;aspect-ratio:16/9;flex-basis:128px}
  .detail__layout{grid-template-columns:1fr}
  .detail__side{position:static}
  .footer__inner{grid-template-columns:1fr}
  .admin:not(.admin--bare) .admin__main{margin-left:0}
  .sidebar{position:static;width:100%;flex-direction:row;align-items:center;gap:16px;padding:10px 14px;border-right:0;border-bottom:1px solid var(--line);overflow-x:auto}
  .sidebar__brand{padding:0;flex:0 0 auto}
  .sidebar__nav{flex-direction:row;gap:2px;flex:1 1 auto}
  .sidebar__nav a{white-space:nowrap;padding:8px 10px}
  .sidebar__foot{display:none}
  .admin-cols,.admin-cols--even{grid-template-columns:1fr}
}
@media (max-width:768px){
  .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px 10px}
  .card__play{display:none}
  .age-pill{display:none}
  .hero__stats{gap:16px;flex-wrap:wrap}
  .hero-card{min-height:0}
  .hero-card__content{padding:16px}
  .cta-band__inner{flex-direction:column;align-items:stretch}
  .page-head__row{align-items:stretch}
  .tabs{width:100%;justify-content:space-between}
  .tab{flex:1;text-align:center}
  .footer__cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .table--wide th:nth-child(2),.table--wide td:nth-child(2){display:none}
  .stat__num{font-size:1.6rem}
}
@media (max-width:520px){
  .brand__text{font-size:1rem}
  .search{order:2;flex-basis:100%}
  .hero__side{grid-template-columns:1fr;grid-template-rows:none}
  .mini__thumb{flex-basis:112px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .card__title{font-size:.86rem}
  .row__more{font-size:.78rem}
  .admin__top{height:auto;flex-wrap:wrap;padding-block:10px;gap:8px}
  .table{font-size:.8rem}
  .table th,.table td{padding:8px 6px}
  .row-actions{justify-content:flex-start}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* =========================================================
   Ad slots / preroll / tag cloud
   ========================================================= */
.ad-slot{position:relative;margin:16px auto;max-width:var(--maxw);padding:0 clamp(16px,4vw,48px)}
.ad-slot--header{padding-top:10px;padding-bottom:2px}
.ad-slot--home_top{padding-top:6px}
.ad-slot--footer{margin-top:8px}
.ad-slot__tag{
  position:absolute;top:2px;right:clamp(18px,4vw,50px);font-size:10px;letter-spacing:.16em;
  color:#475569;text-transform:uppercase;pointer-events:none;
}
.ad-card{
  display:block;border-radius:12px;overflow:hidden;background:var(--surface);
  border:1px solid var(--line);transition:border-color .2s;
}
.ad-card:hover{border-color:var(--line-2)}
.ad-card--image img{width:100%;height:auto;display:block;aspect-ratio:970/90;object-fit:cover}
.ad-card--text{padding:14px 18px;color:#FECDD3;font-size:.9rem;text-align:center}
.ad-card--html img{max-width:100%;height:auto}
.ad-card--html{padding:0}
.ad-slot--header .ad-card{min-height:90px}
.ad-slot--infeed .ad-card{min-height:110px}
.ad-slot--sidebar{margin:0 0 18px;padding:0;max-width:none}
.ad-slot--detail_top,.ad-slot--detail_bottom{padding:0;margin:0 0 16px;max-width:none}
.ad-slot--mobile_sticky{display:none}
.ad-slot__close{
  position:absolute;top:6px;left:8px;z-index:2;width:26px;height:26px;border-radius:50%;
  border:1px solid var(--line-2);background:rgba(0,0,0,.7);color:var(--fg-muted);cursor:pointer;
  font-size:15px;line-height:1;display:grid;place-items:center;
}
.grid > .ad-slot{grid-column:1/-1;margin:2px 0;padding:0;max-width:none}
.grid > .ad-slot .ad-slot__tag{right:6px;top:6px}

/* 贴片广告 */
.preroll{position:absolute;inset:0;z-index:6;display:grid;place-items:center;background:rgba(0,0,0,.94)}
.preroll.is-hidden{display:none}
.preroll__box{width:min(560px,88%);display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.preroll__tag{font-size:10px;letter-spacing:.18em;color:#64748B;text-transform:uppercase}
.preroll .ad-card{width:100%}
.preroll .ad-card--image img{aspect-ratio:16/9}
.preroll__skip{
  min-height:38px;padding:8px 18px;border-radius:999px;border:1px solid var(--line-2);
  background:rgba(255,255,255,.04);color:var(--fg-muted);font-size:.82rem;cursor:default;
}
.preroll__skip:not([disabled]){border-color:var(--accent);color:#fff;background:var(--accent);cursor:pointer}

/* 标签云 */
.tag-cloud{margin-top:clamp(30px,4vw,46px);padding-top:22px;border-top:1px solid var(--line)}
.tag-cloud__title{font-size:.9rem;font-weight:600;color:var(--fg-muted);margin-bottom:12px}
.chip em{margin-left:6px;font-style:normal;color:var(--fg-dim);font-size:.72em}

@media (max-width:768px){
  .ad-slot--mobile_sticky{
    display:block;position:fixed;left:0;right:0;bottom:0;z-index:60;margin:0;padding:0;
    background:rgba(0,0,0,.86);backdrop-filter:blur(10px);border-top:1px solid var(--line);
    max-width:none;
  }
  .ad-slot--mobile_sticky .ad-card{border-radius:0;border:0}
  .ad-slot--mobile_sticky .ad-card--image img{aspect-ratio:320/50}
  .ad-slot__close{top:50%;transform:translateY(-50%);left:6px}
  body{padding-bottom:64px}
}
@media (prefers-reduced-motion:reduce){
  .preroll,.preroll__skip{transition:none}
}

/* SEO 结构：H1 关键词 + 副行 */
.hero__title span{display:block}
/* 页脚三列分类内链 */
@media (min-width:900px){.footer__cols{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* 后台代码块（重置密码说明） */
.code-block{
  margin:12px 0 0;padding:14px 16px;border-radius:10px;background:#050506;border:1px solid var(--line);
  color:#CBD5E1;font-family:var(--mono);font-size:.78rem;line-height:1.6;overflow-x:auto;white-space:pre;
}

/* =========================================================
   Site background (of996 banner collage) + 5-column grid + logo marquee
   ========================================================= */
html{background:#000}
body{
  background-color:#000;
  background-image:linear-gradient(180deg,rgba(0,0,0,.80) 0%,rgba(0,0,0,.88) 45%,rgba(0,0,0,.94) 100%),var(--site-bg,none);
  background-size:cover,cover;
  background-position:center top,center top;
  background-repeat:no-repeat,no-repeat;
  background-attachment:fixed,fixed;
}
@media (max-width:1024px){
  body{background-attachment:scroll,scroll}
}
.site-header{background:rgba(0,0,0,.72)}
.hero,.row{position:relative}

/* 列表每行 5 个（响应式 4/3/2） */
.grid{grid-template-columns:repeat(5,minmax(0,1fr))}

@media (max-width:1024px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* LOGO 走马灯 */
.brand__text{
  display:inline-block;overflow:hidden;width:108px;height:1.35em;line-height:1.35em;
  white-space:nowrap;vertical-align:middle;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.brand__marquee{display:inline-flex;gap:28px;animation:brandScroll 8s linear infinite;will-change:transform}
.brand__marquee > span{flex:0 0 auto}
.brand:hover .brand__marquee{animation-play-state:paused}
@keyframes brandScroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (max-width:520px){.brand__text{width:78px}}
@media (prefers-reduced-motion:reduce){.brand__marquee{animation:none}}

/* 页脚重排：品牌 + 四列，消除原两列布局下方的大空洞 */
.footer__inner{grid-template-columns:minmax(220px,320px) minmax(0,1fr);gap:26px clamp(24px,4vw,64px);align-items:start}
.footer__nav{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.9fr) minmax(0,1.7fr);gap:clamp(16px,2.2vw,32px)}
.footer__nav h4{font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;color:var(--fg-dim);margin-bottom:12px}
.footer__nav a{display:block;font-size:.86rem;color:var(--fg-muted);padding:4px 0;transition:color .18s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.footer__nav a:hover{color:var(--accent)}
.footer__empty{font-size:.8rem;color:var(--fg-dim);line-height:1.6}
.footer__legal{margin-top:4px}
@media (max-width:1024px){
  .footer__inner{grid-template-columns:1fr}
  .footer__nav{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* 分类列双栏，压掉页脚多余空白 */
.footer__cat{columns:2;column-gap:20px}
.footer__cat h4{column-span:all}
.footer__cat a{break-inside:avoid}
@media (max-width:520px){.footer__cat{columns:1}}

/* 广告位：标签单独一行、横幅限宽居中，修掉“标签飘在外面/图片被拉变形” */
.ad-slot__head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px}
.ad-slot__tag{
  position:static;right:auto;top:auto;display:inline-block;
  font-size:10px;letter-spacing:.16em;color:#475569;text-transform:uppercase;pointer-events:none;
}
.ad-slot--header .ad-slot__head,
.ad-slot--home_top .ad-slot__head,
.ad-slot--footer .ad-slot__head{max-width:970px;margin:0 auto 6px}
.ad-slot--header .ad-card,
.ad-slot--home_top .ad-card,
.ad-slot--footer .ad-card{max-width:970px;margin:0 auto}
.ad-slot--header .ad-card--image img,
.ad-slot--home_top .ad-card--image img,
.ad-slot--footer .ad-card--image img{aspect-ratio:auto;height:auto;object-fit:contain}
.ad-slot--header{margin-top:8px}
.ad-slot--mobile_sticky .ad-slot__head{display:none}
.ad-slot--mobile_sticky .ad-slot__close{position:absolute;left:6px;top:50%;transform:translateY(-50%)}
@media (max-width:768px){
  .ad-slot--header .ad-slot__head,
  .ad-slot--home_top .ad-slot__head,
  .ad-slot--footer .ad-slot__head{max-width:none}
  .ad-slot--header .ad-card,
  .ad-slot--home_top .ad-card,
  .ad-slot--footer .ad-card{max-width:none}
}

/* 顶部广告位改为通栏长条（内容宽度内拉满，图片按原比例不变形） */
.ad-slot--header .ad-card,
.ad-slot--header .ad-slot__head{max-width:none;margin-left:0;margin-right:0}
.ad-slot--header .ad-card--image img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
.ad-slot--header .ad-card--html > a{padding:14px 22px}
@media (min-width:1025px){
  .ad-slot--header{margin-top:6px}
}

/* 首页大标题强制一行（含副行），小屏缩小字号保持不断行 */
.hero__title{white-space:nowrap;text-wrap:nowrap}
.hero__title span{display:inline}
@media (max-width:640px){
  .hero__title{font-size:1.6rem;letter-spacing:-.02em}
}

/* 标题两段之间留一点气口，仍保持一行 */
.hero__title span{margin-left:.22em}
@media (max-width:640px){.hero__title span{margin-left:.12em}}

/* 分类匹配表 */
.map-table td{vertical-align:middle}
.map-select{
  width:100%;min-width:180px;background:var(--bg-elev);border:1px solid var(--line-2);
  border-radius:8px;padding:8px 10px;color:var(--fg);font-size:.85rem;
}
.map-select:focus{outline:none;border-color:var(--accent)}
.map-table tr:has(.pill--off) .map-select{border-color:rgba(225,29,72,.45)}

/* 首页 Hero：简介行 + 右侧条目副信息 + 悬停联动状态 */
.hero-card__desc{
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-size:.82rem;line-height:1.55;color:#CBD5E1;opacity:.9;max-width:52ch;margin-top:2px;
}
.mini__meta--sub{color:#64748B;font-size:.72rem;margin-top:2px}
.mini.is-active{background:var(--surface);border-color:rgba(225,29,72,.45)}
.hero-card img{transition:opacity .18s ease}
@media (max-width:1024px){
  .hero-card__desc{max-width:none}
}

/* 操作反馈 toast */
.toast{
  position:fixed;left:50%;bottom:24px;transform:translate(-50%,12px);z-index:90;
  padding:10px 18px;border-radius:999px;background:rgba(20,20,24,.96);border:1px solid var(--line-2);
  color:#F8FAFC;font-size:.85rem;opacity:0;pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;box-shadow:0 14px 34px -16px #000;
}
.toast.is-show{opacity:1;transform:translate(-50%,0)}
@media (max-width:768px){.toast{bottom:84px}}

/* 复制链接兜底弹窗 */
.copy-modal{position:fixed;inset:0;z-index:95;display:grid;place-items:center;background:rgba(0,0,0,.65);padding:20px}
.copy-modal__box{width:min(560px,96vw);background:var(--surface);border:1px solid var(--line-2);border-radius:14px;padding:18px;display:flex;flex-direction:column;gap:10px}
.copy-modal__box p{font-size:.9rem;color:var(--fg-muted)}
.copy-modal__box input{background:#0a0a0c;border:1px solid var(--line);border-radius:8px;padding:10px 12px;color:var(--fg);font-family:var(--mono);font-size:.82rem;width:100%}
.copy-modal__actions{display:flex;justify-content:flex-end}

/* 采集进度条 */
.collect-progress{flex:1 1 100%;margin-top:10px}
.collect-progress__bar{height:6px;border-radius:999px;background:var(--surface-3);overflow:hidden}
.collect-progress__bar span{display:block;height:100%;width:6%;background:linear-gradient(90deg,var(--accent),#FB7185);transition:width .3s ease}
.collect-progress__text{margin-top:6px;font-size:.8rem;color:var(--fg-muted)}

/* 首页首屏广告位改成通栏；广告卡去掉任何阴影/光晕 */
.ad-slot--home_top .ad-card,
.ad-slot--home_top .ad-slot__head{max-width:none;margin-left:0;margin-right:0}
.ad-card,
.ad-card--html > a,
.ad-slot__head{box-shadow:none !important}

/* HTML 广告只保留卡片外边框，避免内外两层边看起来像阴影 */
.ad-card--html > a{border:0 !important}

/* 采集源状态：待首次全量 */
.pill--warn{background:rgba(245,158,11,.14);color:#F59E0B;border:1px solid rgba(245,158,11,.3)}

/* 后台表格：窄列不换行、操作按钮不折行、窄屏横向滚动 */
.pill{white-space:nowrap}
.row-actions{flex-wrap:nowrap}
.admin-stack{display:flex;flex-direction:column;gap:18px}
.table-scroll{overflow-x:auto}
.table-scroll .table{min-width:720px}
.table--ads th:nth-child(6),.table--ads td:nth-child(6),
.table--ads th:nth-child(7),.table--ads td:nth-child(7){white-space:nowrap}
.table--ads td:nth-child(3){min-width:180px}

/* 分类管理：行内编辑输入框 */
.cat-table td{padding:8px 10px}
.cat-input{width:100%;min-width:120px;background:#0a0a0c;border:1px solid var(--line);border-radius:8px;
  padding:7px 9px;color:var(--fg);font-size:.85rem;font-family:inherit}
.cat-input:focus{outline:none;border-color:rgba(225,29,72,.55)}
.cat-input--sort{width:74px;min-width:74px;text-align:center}
.cat-table .row-actions{justify-content:flex-start}

/* 搜索限流提示 */
.notice{margin:14px 0 18px;padding:12px 16px;border-radius:10px;background:rgba(245,158,11,.12);
  border:1px solid rgba(245,158,11,.28);color:#FCD34D;font-size:.88rem}

/* 分类页 SEO 文案块 */
.seo-intro{margin:0 0 22px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.015)}
.seo-intro__title{font-size:1rem;font-weight:700;margin-bottom:8px;color:var(--fg)}
.seo-intro__text{font-size:.84rem;line-height:1.75;color:var(--fg-muted);margin-bottom:12px}
.seo-intro .chip{font-size:.74rem}

.seo-intro__cats{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}

/* 密码重置步骤默认折叠 */
.reset-steps{margin-top:12px;border:1px solid var(--line);border-radius:10px;padding:10px 14px;background:rgba(255,255,255,.015)}
.reset-steps summary{cursor:pointer;font-size:.86rem;color:var(--fg-muted)}
.reset-steps summary:hover{color:var(--accent)}
.reset-steps[open] summary{margin-bottom:10px}

/* 采集表单：采集方式一行，其余折叠 */
.collect-row{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.collect-row .field{flex:1 1 220px}
.collect-adv{border:1px solid var(--line);border-radius:10px;padding:10px 14px;background:rgba(255,255,255,.015)}
.collect-adv summary{cursor:pointer;font-size:.82rem;color:var(--fg-muted);list-style:none}
.collect-adv summary::-webkit-details-marker{display:none}
.collect-adv summary::before{content:"▸ ";color:var(--fg-dim)}
.collect-adv[open] summary::before{content:"▾ "}
.collect-adv[open] summary{margin-bottom:12px}
.collect-adv__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px 14px;align-items:end}

/* detail unique description */
.detail__uniq{margin-top:10px;font-size:.84rem;line-height:1.75;color:var(--fg-dim)}


/* admin warning link */
.text-warn{color:#F59E0B;font-weight:600}


/* hero: reset fixed height on stacked layout */
@media (max-width:1024px){.hero__grid{height:auto}.hero-card{height:auto}.hero-card img{aspect-ratio:16/9}}

/* admin pager jump */
.pager__jump{display:inline-flex;align-items:center;gap:6px;margin-left:auto}
.pager__jump input{width:78px;background:#0a0a0c;border:1px solid var(--line);border-radius:8px;padding:6px 8px;color:var(--fg);font-size:.82rem;text-align:center}


/* mobile hero title: allow wrap instead of clipping */
@media (max-width:640px){
  .hero__title{white-space:normal;text-wrap:balance;font-size:clamp(1.3rem,6.2vw,1.7rem);line-height:1.22;letter-spacing:-.02em}
  .hero__title span{display:inline;margin-left:.12em}
}
@media (max-width:400px){
  .hero__title{font-size:clamp(1.15rem,5.9vw,1.45rem)}
}

/* footer friend links: two columns to keep footer height short */
.footer__links{columns:3;column-gap:16px}
.footer__links h4{column-span:all}
.footer__links a{break-inside:avoid}
@media (max-width:768px){.footer__links{columns:2}}
@media (max-width:420px){.footer__links{columns:2;column-gap:10px}}
@media (max-width:340px){.footer__links{columns:1}}

/* back to top */
.to-top{position:fixed;right:20px;bottom:24px;z-index:60;width:46px;height:46px;display:grid;place-items:center;
  border-radius:50%;border:1px solid var(--line-2);background:rgba(18,18,22,.92);color:var(--fg);
  box-shadow:0 10px 26px -14px #000;opacity:0;visibility:hidden;transform:translateY(8px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s;cursor:pointer;backdrop-filter:blur(6px)}
.to-top svg{width:20px;height:20px}
.to-top:hover{border-color:rgba(225,29,72,.55);color:var(--accent)}
.to-top.is-show{opacity:1;visibility:visible;transform:translateY(0)}
@media (max-width:768px){.to-top{right:14px;bottom:96px;width:42px;height:42px}}

/* domain line picker */
.line-fab{position:fixed;left:16px;bottom:24px;z-index:61;padding:8px 12px;border-radius:999px;
  border:1px solid var(--line-2);background:rgba(18,18,22,.92);color:var(--fg-muted);font-size:.78rem;
  cursor:pointer;backdrop-filter:blur(6px);box-shadow:0 10px 26px -16px #000}
.line-fab:hover{color:var(--accent);border-color:rgba(225,29,72,.5)}
@media (max-width:768px){.line-fab{bottom:92px;padding:7px 10px}}
.line-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.72);backdrop-filter:blur(4px)}
.line-modal[hidden]{display:none}
.line-modal__box{width:min(520px,96vw);background:var(--surface);border:1px solid var(--line-2);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:12px;box-shadow:0 30px 80px -40px #000}
.line-modal__box h3{font-size:1.05rem}
.line-modal__sub{font-size:.82rem;color:var(--fg-muted)}
.line-list{display:flex;flex-direction:column;gap:8px;max-height:46vh;overflow:auto}
.line-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;border-radius:10px;
  border:1px solid var(--line);background:#0f0f13;color:var(--fg);text-decoration:none;transition:border-color .15s,background .15s}
.line-item:hover{border-color:rgba(225,29,72,.5);background:#141419}
.line-item.is-current{border-color:rgba(34,197,94,.5)}
.line-item__name{font-size:.88rem;font-weight:600}
.line-item__url{font-size:.72rem;color:var(--fg-dim);font-family:var(--mono)}
.line-modal__actions{display:flex;justify-content:flex-end}

body.is-locked{overflow:hidden}


/* line picker status */
.line-item__main{display:flex;flex-direction:column;gap:2px;min-width:0}
.line-item__status{font-size:.72rem;color:var(--fg-dim);white-space:nowrap;flex:0 0 auto}
.line-item__status.is-ok,.line-item__status.is-current{color:#86EFAC}
.line-item__status.is-slow{color:#FCD34D}
.line-item__status.is-bad{color:#F87171}
