:root{
  --bg:#0f1115;
  --panel:#141824;
  --panel2:#0b0e16;
  --border:#222a3b;
  --text:#e9eef6;
  --muted: rgba(233,238,246,.7);
  --accent:#2a63ff;
}
*{ box-sizing:border-box; }
body{ margin:0; font-family:Arial, sans-serif; background:var(--bg); color:var(--text); }
a{ color:inherit; text-decoration:none; }

.top{
  display:flex; gap:16px; align-items:center; justify-content:space-between;
  padding:14px 18px; background:var(--panel); position:sticky; top:0; border-bottom:1px solid var(--border);
}
.brand{ font-weight:800; letter-spacing:.5px; display:flex; align-items:center; gap:10px; }
.badge{ font-size:12px; padding:2px 8px; border:1px solid var(--border); border-radius:999px; opacity:.85; }
nav a{ margin-left:12px; opacity:.85; }
nav a:hover{ opacity:1; }

.wrap{ max-width:1100px; margin:0 auto; padding:18px; }
.grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; }

.card{ background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:18px; }
h1{ margin:0 0 12px; }
h2{ margin:18px 0 10px; }

.game{
  display:block; background:var(--panel); border:1px solid var(--border); border-radius:14px; overflow:hidden;
}
.thumb{
  height:120px; display:flex; align-items:center; justify-content:center; font-size:42px;
  background:var(--panel2);
}
.meta{ padding:10px 12px; }
.t{ font-weight:800; margin-bottom:6px; }
.s{ font-size:12px; color:var(--muted); }
.row{ display:flex; gap:10px; align-items:center; justify-content:space-between; margin-top:8px; }
.small{ font-size:12px; color:var(--muted); }

.btn{
  background:var(--accent); color:white; border:0; padding:10px 12px; border-radius:10px;
  cursor:pointer; font-weight:700;
}
.btn.ghost{
  background:transparent; border:1px solid var(--border); color:var(--text);
}
input{
  width:100%; padding:10px 12px; border-radius:10px; border:1px solid #2b3550;
  background:var(--panel2); color:var(--text); margin:6px 0 14px;
}

.player{
  width:100%; height: calc(100vh - 86px); border:0; border-radius:14px; background:#000;
}

.notice{ color:var(--muted); margin-top:10px; }
.loading{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(15,17,21,.85); backdrop-filter: blur(4px);
  color:var(--text); font-weight:800;
}
.playWrap{ position:relative; }