:root {
  --bg: #0A1220;
  --card: #152033;
  --bar: #101A2A;
  --lime: #C8F542;
  --text: #E8EEF6;
  --mute: #8A97A8;
  --line: #2A3A52;
}
* { box-sizing: border-box; }
html, body, #app { margin: 0; height: 100%; width: 100%; background: var(--bg); color: var(--text); font-family: system-ui, Segoe UI, sans-serif; overflow: hidden; }
button { font-family: inherit; }
.screen { height: 100%; width: 100%; position: relative; display: flex; flex-direction: column; background: var(--bg); }
.stage { flex: 1; position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; background: #070b14; overflow: hidden; }
.stage img, .stage video { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.stage.tall img, .stage.tall video { object-fit: contain; }
.hit { position: absolute; top: 0; bottom: 0; width: 18%; z-index: 4; cursor: pointer; }
.hit.left { left: 0; }
.hit.right { right: 0; }
.hud { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(#000a, transparent); }
.hud b { font-size: 20px; }
.badge { background: #E53935; color: #fff; border-radius: 12px; padding: 2px 8px; font-size: 12px; font-weight: 800; }
.menu { background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; }
.smile { position: absolute; left: 22px; bottom: 22px; z-index: 6; text-align: center; cursor: pointer; }
.smile .ic { font-size: 34px; color: var(--lime); line-height: 1; }
.smile span { font-weight: 800; }
.combtn { position: absolute; right: 22px; bottom: 22px; z-index: 6; text-align: center; cursor: pointer; }
.author { position: absolute; left: 16px; right: 16px; top: 58px; z-index: 6; display: flex; align-items: center; gap: 10px; }
.author b { font-weight: 800; }
.tick { color: var(--lime); font-size: 16px; }
.tick.mod { color: #4FC3F7; }
.follow { margin-left: auto; background: var(--lime); color: #000; border: 0; border-radius: 16px; padding: 6px 14px; font-weight: 800; cursor: pointer; }
.follow.on { background: var(--card); color: #fff; }
.clock { text-align: center; color: var(--text); }
.clock img { width: 140px; }
.clock .t { font-size: 42px; font-weight: 800; color: var(--lime); margin: 8px 0; }
.btn { background: var(--lime); color: #000; border: 0; border-radius: 24px; padding: 10px 18px; font-weight: 800; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--lime); }
.drawer-bg { position: absolute; inset: 0; background: #0009; z-index: 20; }
.drawer { position: absolute; left: 0; top: 0; bottom: 0; width: min(320px, 86vw); background: var(--bar); z-index: 21; padding: 18px 0 10px; display: flex; flex-direction: column; overflow: auto; }
.drawer h1 { margin: 8px 20px 16px; color: var(--lime); font-size: 28px; }
.drawer button.item { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 12px 20px; cursor: pointer; font-size: 16px; }
.drawer .hot { margin: 0 12px 8px; background: var(--lime); color: #000; border-radius: 14px; padding: 12px 14px; font-weight: 800; text-align: left; border: 0; width: calc(100% - 24px); cursor: pointer; }
.drawer .hot small { display: block; color: #0008; font-weight: 600; }
.drawer .me { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 20px; display: flex; gap: 10px; align-items: center; cursor: pointer; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--card); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 800; flex-shrink: 0; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.form { width: min(420px, 92vw); margin: 40px auto; display: flex; flex-direction: column; gap: 10px; }
.form input, .form textarea { background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px; }
.err { color: #ff8a80; }
.sq { width: 100%; aspect-ratio: 1; border: 1px dashed var(--line); border-radius: 18px; background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--lime); font-size: 48px; cursor: pointer; overflow: hidden; }
.sq img { width: 100%; height: 100%; object-fit: contain; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; overflow: auto; }
.grid img, .grid video { width: 100%; aspect-ratio: 1; object-fit: cover; }
.banner { height: 140px; background: var(--card); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
.prof { text-align: center; margin-top: -28px; padding: 0 16px 16px; }
.topbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bar); }
.search { flex: 1; background: var(--card); border: 0; color: var(--text); border-radius: 12px; padding: 8px 10px; }
.empty { color: var(--mute); }
.sheet { position: absolute; inset: 0; background: var(--bg); z-index: 30; display: flex; flex-direction: column; }
.sheet .list { flex: 1; overflow: auto; padding: 8px 12px; }
.row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row p { margin: 4px 0 0; }
.side { display: none; }
.rail { display: none; }

@media (min-width: 960px) {
  #app { display: grid; grid-template-columns: 260px 1fr 360px; }
  .rail { display: flex; flex-direction: column; background: var(--bar); padding: 18px 0; overflow: auto; }
  .rail h1 { margin: 8px 20px 16px; color: var(--lime); }
  .screen { grid-column: 2; }
  .side { display: flex; flex-direction: column; background: #0d1626; border-left: 1px solid var(--line); overflow: hidden; }
  .side h3 { margin: 16px; }
  .drawer, .drawer-bg, .menu, .hint { display: none !important; }
  .stage { background: #05070d; }
  .stage img, .stage video { width: auto; height: 100%; max-width: 100%; object-fit: contain; }
  .stage.short img, .stage.short video { width: 100%; height: 100%; object-fit: cover; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .hit { width: 14%; }
}
