:root{
  --bg:#0b0d11;--panel:#12161c;--panel2:#171c23;--text:#f4f7fb;
  --muted:#8f9aa8;--line:#242b35;--accent:#8fe3c7;--accent2:#d8fff2;
  --radius:18px
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);
font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif}
body{padding:0 0 env(safe-area-inset-bottom)}
button{font:inherit}
.shell{width:min(1180px,100%);margin:0 auto;padding:28px 18px 60px}
.hero{display:flex;justify-content:space-between;align-items:flex-start;padding:10px 2px 24px}
.eyebrow{font-size:12px;letter-spacing:.18em;color:var(--accent);font-weight:700}
h1{font-size:34px;line-height:1.05;margin:8px 0 8px;letter-spacing:-.03em}
.sub{margin:0;color:var(--muted);font-size:13px}
.brand-dot{width:11px;height:11px;border-radius:50%;background:var(--accent);
box-shadow:0 0 26px rgba(143,227,199,.55);margin-top:10px}
.toolbar{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;margin-bottom:16px}
.segmented{display:flex;gap:6px;background:var(--panel);border:1px solid var(--line);
padding:5px;border-radius:14px;overflow:auto}
.segmented button{border:0;color:var(--muted);background:transparent;padding:8px 12px;
border-radius:10px;white-space:nowrap;cursor:pointer}
.segmented button.active{background:var(--panel2);color:var(--text);
box-shadow:inset 0 0 0 1px #2b333e}
.summary{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.pill{padding:8px 11px;border:1px solid var(--line);border-radius:999px;
color:var(--muted);font-size:12px;background:rgba(255,255,255,.015)}
.pill strong{color:var(--text);font-weight:650}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.card{min-width:0;background:var(--panel);border:1px solid var(--line);
border-radius:var(--radius);overflow:hidden;box-shadow:0 10px 35px rgba(0,0,0,.16)}
.poster-wrap{position:relative;aspect-ratio:2/3;background:#0f1318;overflow:hidden}
.poster{width:100%;height:100%;object-fit:cover;display:block}
.poster[src=""],.poster:not([src]){display:none}
.poster-fallback{position:absolute;inset:0;display:grid;place-items:center;color:#46515e;
font-size:13px;letter-spacing:.16em}
.poster[src]+.poster-fallback{display:none}
.badge{position:absolute;top:10px;left:10px;padding:5px 8px;border-radius:999px;
background:rgba(5,9,12,.78);backdrop-filter:blur(10px);font-size:11px;
color:var(--accent2);border:1px solid rgba(255,255,255,.10)}
.content{padding:13px 14px 15px}
.title{font-size:16px;line-height:1.35;margin:0 0 8px;display:-webkit-box;
-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.meta,.detail,.time{font-size:12px;line-height:1.55;color:var(--muted)}
.detail{color:#c8d1dc;margin-top:4px;min-height:19px}
.time{margin-top:8px}
.empty{padding:70px 12px;text-align:center;color:var(--muted)}
.empty-title{font-size:17px;color:#d9e0e8;margin-bottom:7px}
.empty-sub{font-size:13px}
.hidden{display:none!important}
@media (max-width:900px){.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){
  .shell{padding:20px 12px 50px}
  h1{font-size:29px}
  .toolbar{display:block}
  .segmented{width:100%;margin-bottom:9px}
  .segmented button{flex:1}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .content{padding:11px 11px 13px}
  .title{font-size:15px}
}

.library-tag{display:inline-block;font-size:11px;color:#b8c8dc;margin-bottom:6px;padding:3px 7px;background:#ffffff0c;border-radius:5px}
#libraryFilter{flex-wrap:wrap}

.sync-hint{margin-top:8px;font-size:12px;line-height:1.6}
.warning{color:#e8ba75}
#libraryFilter{flex-basis:100%}
button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:640px){.segmented{box-sizing:border-box}.segmented button{min-height:42px}#libraryFilter button{flex:0 0 auto}}

.pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:24px;color:var(--muted);font-size:13px}
.pagination button,.update-notice{border:1px solid var(--line);border-radius:12px;background:var(--panel2);color:var(--accent);padding:12px 20px;cursor:pointer;min-height:44px}
.update-notice{display:block;width:100%;margin-bottom:16px}

.brand-icon{flex:none;width:52px;height:52px;margin-top:10px;border-radius:12px}
