*{box-sizing:border-box}
html,body{margin:0;background:#0d0d0d;color:#eee;font:15px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
body.noscroll{overflow:hidden}
a{color:inherit}
[hidden]{display:none!important}

.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:14px;padding:12px max(16px,env(safe-area-inset-left));
  background:rgba(13,13,13,.92);backdrop-filter:blur(10px);border-bottom:1px solid #222}
.logo{background:#f00;padding:6px 10px 7px;display:inline-flex;flex:none;line-height:0}
.logo img{height:22px;width:auto}
.ttl{min-width:0}
.ttl h1{margin:0;font-size:18px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sub{color:#9a9a9a;font-size:13px;display:flex;align-items:center;gap:8px}
.live{display:inline-flex;align-items:center;gap:5px;color:#ff3b3b;font-weight:800;letter-spacing:.06em;font-size:12px}
.live i{width:8px;height:8px;border-radius:50%;background:#ff2020;animation:pulse 1.4s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.25}}

main{padding:10px max(6px,env(safe-area-inset-left)) 30px;max-width:1600px;margin:0 auto}
.spin{width:34px;height:34px;margin:90px auto;border:3px solid #333;border-top-color:#f00;border-radius:50%;animation:rot .8s linear infinite}
@keyframes rot{to{transform:rotate(360deg)}}
.msg{color:#9a9a9a;text-align:center;padding:60px 20px;font-size:16px}
.msg:empty{display:none}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:3px}
@media (min-width:900px){.grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px}}
.tile{display:block;aspect-ratio:1;overflow:hidden;background:#1a1a1a;position:relative}
.tile img{width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s,transform .25s}
.tile.ok img{opacity:1}
.tile:hover img{transform:scale(1.03)}
.tile.new{animation:pop .6s ease-out}
@keyframes pop{from{transform:scale(.85);opacity:0}to{transform:none;opacity:1}}

.more{display:block;margin:22px auto 0;background:#222;color:#fff;border:0;padding:12px 26px;border-radius:999px;font-size:15px;cursor:pointer}

.pw{max-width:340px;margin:50px auto;text-align:center}
.pw input{width:100%;padding:12px;border-radius:8px;border:1px solid #333;background:#000;color:#fff;font-size:16px}
.pw button{margin-top:10px;width:100%;padding:12px;border:0;border-radius:8px;background:#f00;color:#fff;font-weight:700;font-size:16px;cursor:pointer}
.err{color:#ff5a5a}

.promo{margin:34px auto 0;max-width:640px;text-align:center;padding:30px 22px 32px;background:linear-gradient(160deg,#1a0000,#0d0d0d 70%);border:1px solid #2a0a0a;border-radius:14px}
.promoLogo{height:30px;background:#f00;padding:7px 12px 8px;box-sizing:content-box}
.promo h2{margin:18px 0 8px;font-size:21px}
.promo p{margin:0 auto 20px;color:#b5b5b5;max-width:460px}
.btns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.btn{flex:1 1 180px;max-width:240px;display:inline-block;text-decoration:none;font-weight:800;padding:14px 18px;border-radius:999px;font-size:16px;box-sizing:border-box}
.btn.red{background:#f00;color:#fff}
.btn.red:hover{background:#d00}
.btn.ghost{border:1.5px solid #555;color:#eee;font-weight:600}
.btn.ghost:hover{border-color:#aaa}
.social{display:flex;justify-content:center;gap:14px;margin-top:24px}
.social a{width:44px;height:44px;border-radius:50%;background:#1e1e1e;display:flex;align-items:center;justify-content:center;transition:background .2s}
.social a:hover{background:#f00}
.social svg{width:21px;height:21px;fill:#fff}
.foot{text-align:center;padding:18px 16px 28px;color:#777;font-size:13px}
.foot a{text-decoration:none}
.foot b{color:#ddd}

.lb{position:fixed;inset:0;z-index:20;background:#000;display:flex;align-items:center;justify-content:center}
.lb img{max-width:100%;max-height:100%;object-fit:contain;user-select:none}
.lbBar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-bottom));background:linear-gradient(transparent,rgba(0,0,0,.8))}
.lbBar button{background:rgba(255,255,255,.12);color:#fff;border:0;width:42px;height:42px;border-radius:50%;font-size:18px;cursor:pointer}
#lbCount{color:#bbb;font-size:14px}
.dl{background:#f00;color:#fff;text-decoration:none;font-weight:700;padding:11px 16px;border-radius:999px;font-size:14px}
.nav{position:absolute;top:50%;transform:translateY(-50%);background:rgba(255,255,255,.1);color:#fff;border:0;width:48px;height:72px;font-size:40px;cursor:pointer}
.prev{left:0;border-radius:0 8px 8px 0}.next{right:0;border-radius:8px 0 0 8px}
@media (hover:none){.nav{display:none}}
