* { margin:0; padding:0; box-sizing:border-box; }
:root { --bg:#0f1420; --card:#1a2130; --text:#eef1f7; --muted:#8b93a7; --accent:#4f8cff; }
body { background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif; padding-bottom:30px; }
.header { position:sticky; top:0; z-index:10; background:var(--bg); padding:12px 14px 10px;
  border-bottom:1px solid #232b3d; }
.logo { font-weight:700; font-size:19px; margin-bottom:10px; }
#search { width:100%; padding:11px 14px; border-radius:12px; border:1px solid #2a3348;
  background:var(--card); color:var(--text); font-size:15px; outline:none; }
.tabs { display:flex; gap:8px; margin-top:10px; }
.tab { flex:1; padding:9px; border:none; border-radius:10px; background:var(--card);
  color:var(--muted); font-size:14px; font-weight:600; cursor:pointer; }
.tab.active { background:var(--accent); color:#fff; }
.hidden { display:none !important; }
.adm-toggle { display:block; margin:12px 14px 0; padding:12px; width:calc(100% - 28px);
  border:none; border-radius:12px; background:#6c47ff; color:#fff;
  font-size:14px; font-weight:600; cursor:pointer; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(105px,1fr)); gap:12px; padding:14px; }
.card { cursor:pointer; }
.poster { position:relative; border-radius:12px; overflow:hidden; background:var(--card); aspect-ratio:2/3; }
.poster img { width:100%; height:100%; object-fit:cover; display:block; }
.no-poster { width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  font-size:34px; color:var(--muted); }
.badge { position:absolute; top:6px; left:6px; background:rgba(0,0,0,.65); padding:2px 7px;
  border-radius:8px; font-size:11px; font-weight:600; }
.card-title { margin-top:6px; font-size:13px; line-height:1.25; display:-webkit-box;
  -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.card-year { font-size:11px; color:var(--muted); margin-top:2px; }
.loader { text-align:center; color:var(--muted); padding:16px; }
.more-btn { display:block; margin:6px auto 20px; padding:10px 26px; border-radius:12px;
  border:none; background:var(--accent); color:#fff; font-size:14px; font-weight:600; cursor:pointer; }
.empty { text-align:center; color:var(--muted); padding:40px 20px; line-height:1.6; }
.modal { position:fixed; inset:0; z-index:50; }
.modal-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.6); }
.sheet { position:absolute; left:0; right:0; bottom:0; background:var(--card);
  border-radius:18px 18px 0 0; padding:16px; max-height:88vh; overflow-y:auto; animation:up .22s ease; }
@keyframes up { from { transform:translateY(40px); opacity:.4 } to { transform:none; opacity:1 } }
.sheet-poster { width:130px; border-radius:12px; float:left; margin:0 14px 10px 0; }
.sheet h2 { font-size:19px; margin-bottom:6px; }
.meta { display:flex; gap:10px; color:var(--muted); font-size:13px; margin-bottom:10px; flex-wrap:wrap; }
#m-desc { font-size:14px; line-height:1.5; color:#c9cfdd; margin-bottom:16px; }
.watch-btn { width:100%; padding:13px; border:none; border-radius:12px; background:var(--accent);
  color:#fff; font-size:16px; font-weight:700; margin-bottom:8px; cursor:pointer; }
.close-btn { width:100%; padding:12px; border:none; border-radius:12px; background:#242e44;
  color:var(--text); font-size:14px; cursor:pointer; }

.admin { padding:14px; border-top:1px solid #232b3d; }
.admin h3 { font-size:16px; margin:14px 0 8px; color:var(--accent); }
.a-card { background:var(--card); border-radius:12px; padding:12px; margin-bottom:10px; }
.a-title { font-weight:600; margin-bottom:8px; line-height:1.35; }
.a-title small { color:var(--muted); font-weight:400; }
.a-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:6px; }
.a-input { padding:9px 11px; border-radius:8px; border:1px solid #2a3348;
  background:#121826; color:var(--text); font-size:14px; min-width:70px; }
.a-input.wide { flex:1; min-width:150px; }
.chip { display:inline-flex; gap:6px; align-items:center; background:#232c40;
  border-radius:8px; padding:4px 8px; font-size:12px; margin:2px; }
.a-btn { border:none; border-radius:8px; padding:7px 11px; font-size:13px;
  cursor:pointer; background:#2f6fe0; color:#fff; font-weight:600; }
.a-danger { background:#b3403e; }
.a-ok { background:#2e9e5b; }
.a-note { font-size:12px; color:var(--muted); margin-top:6px; line-height:1.45; }
