:root { color-scheme: dark; }
body { margin: 0; background: #12141c; color: #eee; font: 16px/1.45 system-ui, sans-serif; }
a { color: inherit; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #2a2e3a; }
.logo { font-weight: 800; text-decoration: none; letter-spacing: .02em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 18px; }
h1 { margin: 0 0 6px; font-size: 1.6rem; }
.sub { color: #aaa; margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.card { display: block; text-decoration: none; background: #1c2030; border-radius: 10px; overflow: hidden; }
.card img, .nophoto { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #0e1016; }
.nophoto { display: grid; place-items: center; color: #888; }
.meta { display: flex; justify-content: space-between; padding: 8px 10px; font-size: .92rem; }
.room { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; align-items: start; }
.frame, .chat iframe { width: 100%; aspect-ratio: 16/9; border: 0; background: #000; border-radius: 10px; }
.chat { margin-top: 10px; }
.chatbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.chatbar button { background: #c62828; color: #fff; border: 0; border-radius: 6px; padding: 6px 10px; }
.offline { aspect-ratio: 16/9; display: grid; place-items: center; background: #0e1016; border-radius: 10px; color: #888; }
.status.on { color: #3dd68c; } .status.off { color: #aaa; }
.facts { list-style: none; padding: 0; }
.facts li { display: flex; justify-content: space-between; border-bottom: 1px solid #2a2e3a; padding: 6px 0; }
.subject { color: #bbb; }
.btn { display: block; text-align: center; background: #e23b3b; color: #fff; text-decoration: none; padding: 12px; border-radius: 8px; font-weight: 700; margin-top: 12px; }
.pager { display: flex; gap: 14px; align-items: center; margin: 18px 0; }
.pager a { color: #fff; }
@media (max-width: 800px) {
  .room { grid-template-columns: 1fr; }
  .frame, .chat iframe, .offline { width: 100%; }
  .btn { width: 100%; }
}
