:root { --bg: #06080b; --panel: #0d1116; --line: #1c242d; --text: #eef3f7; --mute: #8f9ba7; --g: #39ff88; --r: #ff3b5c; --y: #ffd23f; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--g); }
button { font: inherit; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 14px; background: rgba(6,8,11,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { font: 400 24px Anton, Impact, sans-serif; color: var(--text); text-decoration: none; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo .dot { width: 12px; height: 12px; border-radius: 3px; background: var(--g); box-shadow: 0 0 12px var(--g); }
.livepill { font: 800 11px Inter; color: var(--r); letter-spacing: .1em; }
.tick { margin-left: auto; background: var(--g); color: #04120a; font: 800 14px Inter; text-decoration: none; padding: 0 14px; height: 36px; display: inline-flex; align-items: center; border-radius: 8px; }

main { max-width: 1180px; margin: 0 auto; padding: 10px; display: grid; gap: 10px; }
.screen .frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nowbar { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding: 8px 2px 0; }
.nowbar small { font: 800 10px Inter; color: var(--g); letter-spacing: .14em; margin-right: 8px; }
.nowbar b { font: 400 22px Anton, Impact, sans-serif; letter-spacing: .01em; }
.epcast { color: var(--mute); font-size: 13px; }

.ca { background: var(--panel); border: 1px solid var(--g); border-radius: 12px; padding: 12px; }
.ca .row { display: flex; align-items: center; gap: 8px; }
.ca .k { font: 800 14px Inter; color: var(--g); }
.ca code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--text); }
.ca p { margin: 8px 0 0; color: var(--mute); font-size: 13px; }
.btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: #151b22; color: var(--text); font-weight: 800; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none; }
.btn.buy { background: var(--g); border-color: var(--g); color: #04120a; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.card h2 { margin: 0 0 10px; font: 400 22px Anton, Impact, sans-serif; letter-spacing: .02em; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card h2 small { font: 600 11px Inter; color: var(--mute); letter-spacing: .02em; }
.sub { margin: -4px 0 10px; color: var(--mute); font-size: 13px; }

.vote { border-color: rgba(255,59,92,.6); }
.vote h2 { color: var(--r); }
.nominees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nominee { background: #0a0e12; border: 1px solid var(--line); border-radius: 10px; padding: 8px; text-align: center; cursor: pointer; min-height: 44px; color: var(--text); }
.nominee img, .nominee .ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #151b22; display: block; }
.nominee b { display: block; margin-top: 6px; font: 800 14px Inter; }
.nominee .bar { height: 6px; background: #1d2228; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.nominee .bar i { display: block; height: 100%; background: var(--r); transition: width .4s; }
.nominee span { font-size: 12px; color: var(--mute); }
.nominee.mine { border-color: var(--r); }

.cast { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.member { min-width: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; background: #0a0e12; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; text-align: left; color: var(--text); min-height: 44px; }
.member img, .member .ph { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #151b22; }
.member .ph { display: grid; place-items: center; font: 400 26px Anton; color: var(--c); }
.member b { display: block; font: 800 14px Inter; color: var(--c, var(--text)); letter-spacing: .02em; }
.member span { display: block; font-size: 12px; color: var(--mute); }
.member em { font-style: normal; font-size: 11px; color: var(--y); }
.dossier { grid-column: 1 / -1; font-size: 13px; color: #c9d3dc; display: none; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.member.open .dossier { display: block; }

.chat .log { height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; font-size: 13px; overscroll-behavior: contain; }
.chat .log div { padding: 4px 8px; background: #0a0e12; border-radius: 6px; overflow-wrap: anywhere; }
.chat .log b { margin-right: 6px; }
.chat .log .v b { color: #7dd3fc; }
.chat .log .cmd { color: var(--y); }
.chat form, .find { display: flex; gap: 6px; margin-top: 8px; }
.chat input, .find input { flex: 1; min-width: 0; min-height: 44px; background: #0a0e12; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 0 12px; font: inherit; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips button { min-height: 38px; padding: 0 12px; background: #11171e; border: 1px solid var(--line); color: var(--y); border-radius: 19px; cursor: pointer; font-weight: 700; }
.hint { color: var(--mute); font-size: 12px; margin: 8px 0 0; }

.hoh { background: rgba(255,210,63,.08); border: 1px solid rgba(255,210,63,.35); border-radius: 8px; padding: 8px 10px; color: var(--y); font-weight: 700; }
.found { color: var(--g); font-size: 13px; margin-top: 6px; }
.hms { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: 300px; overflow-y: auto; }
.hms li { background: #0a0e12; border-radius: 6px; padding: 6px 8px; font-size: 12px; display: flex; justify-content: space-between; gap: 6px; }
.hms b { color: var(--g); }
.hms .crown b { color: var(--y); }
.eps { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.eps li { background: #0a0e12; border-radius: 8px; padding: 8px 10px; font-size: 13px; color: #c9d3dc; }
.eps b { display: block; font: 400 18px Anton, Impact, sans-serif; color: var(--text); letter-spacing: .02em; }
.how ul { margin: 0; padding-left: 18px; color: #c9d3dc; }
.how li { margin-bottom: 6px; }
.fine { color: var(--mute); font-size: 12px; margin: 10px 0 0; }
footer { text-align: center; color: var(--mute); font-size: 12px; padding: 18px 12px 30px; }

@media (min-width: 900px) {
  main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .screen, .ca, .vote { grid-column: 1; }
  .chat { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 64px; }
  .chat .log { height: 520px; }
  .cast { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .nominees { gap: 6px; } .nominee b { font-size: 12px; }
  .logo { font-size: 20px; } .livepill { font-size: 10px; } .tick { padding: 0 10px; font-size: 13px; }
  .member { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; padding: 6px; }
  .member img, .member .ph { width: 48px; height: 48px; }
  main { padding: 8px; }
}
