/* 6.0: the public channel page — made for viewers */
:root {
  --accent: #ff3b5c; --accent-2: color-mix(in srgb, var(--accent) 70%, #ffb36b);
  --bg: #0b0b10; --panel: #14141c; --panel-2: #1b1b25; --panel-3: #232330; --line: #262633; --line-2: #33333f;
  --text: #f0eff6; --muted: #a09fb2; --faint: #6f6e80; --good: #3ecf8e; --live: #e91e3f; --twitch: #9146ff;
  --gold: #f6c544; --silver: #c6ccd8; --bronze: #d88a4f;
  --r: 18px; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.28);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f3f2f7; --panel: #ffffff; --panel-2: #f5f4f9; --panel-3: #ecebf2; --line: #e4e3ec; --line-2: #d6d5e0;
    --text: #17161f; --muted: #5d5c70; --faint: #8b8a9c; --good: #129a62; --shadow: 0 1px 2px rgba(20,20,40,.06), 0 10px 30px rgba(20,20,40,.08); color-scheme: light; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
img { display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-bottom: 6px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(1200px 400px at 20% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%), var(--bg); }
.hero-bg.img { background-size: cover; background-position: center; }
.hero-bg.blur { background-size: cover; background-position: center; filter: blur(48px) saturate(1.4); transform: scale(1.3); opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,16,.15) 0%, rgba(11,11,16,.55) 55%, var(--bg) 100%); }
@media (prefers-color-scheme: light) { .hero::after { background: linear-gradient(180deg, rgba(243,242,247,.2) 0%, rgba(243,242,247,.7) 60%, var(--bg) 100%); } }
.hero-in { display: flex; gap: 28px; align-items: center; padding-top: 64px; padding-bottom: 26px; }
.av-wrap { position: relative; flex: none; }
.av { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; border: 4px solid var(--accent); box-shadow: 0 10px 40px rgba(0,0,0,.45); background: var(--panel-2); }
.av-ph { display: grid; place-items: center; font-size: 52px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); overflow: hidden; }
.av-wrap.is-live .av { border-color: var(--live); box-shadow: 0 0 0 6px color-mix(in srgb, var(--live) 25%, transparent), 0 10px 40px rgba(0,0,0,.45); }
.live-tag { position: absolute; left: 50%; bottom: -8px; translate: -50% 0; background: var(--live); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .1em;
  padding: 3px 10px; border-radius: 6px; border: 3px solid var(--bg); }
h1 { margin: 0; font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.headline { margin: 8px 0 0; font-size: 18px; color: var(--muted); max-width: 640px; }
.live-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: 14.5px; }
.live-line .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: pulse 1.8s infinite; display: inline-block; margin-right: 6px; }
.live-line b { font-weight: 700; }
.live-line .sep { color: var(--faint); }
.live-line .game { background: var(--panel-3); border: 1px solid var(--line-2); padding: 2px 10px; border-radius: 99px; font-weight: 600; font-size: 13px; }
.live-line .title { flex-basis: 100%; color: var(--muted); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--text); text-decoration: none !important; transition: transform .12s, border-color .15s, background .15s; cursor: pointer; }
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn.twitch { background: var(--twitch); border-color: var(--twitch); color: #fff; }
.btn.twitch:hover { background: #a46bff; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 4px 0 6px; }
.stat { background: color-mix(in srgb, var(--panel) 80%, transparent); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- tabs ---------- */
.tabbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); margin-top: 14px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 14px 14px 12px; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- layout ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; align-items: start; padding-top: 26px; padding-bottom: 40px; }
.main, .side, #side-top, #side-bottom { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.side { position: sticky; top: 72px; }
#side-top:empty, #side-bottom:empty { display: none; }
@media (max-width: 960px) {
  .page { display: flex; flex-direction: column; align-items: stretch; }
  .side { display: contents; }
  #side-top { order: 1; } #me { order: 2; } .main { order: 3; } #side-bottom { order: 4; }
  #side-top:empty, #side-bottom:empty { display: none; }
}

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); scroll-margin-top: 80px; min-width: 0; }
.card.skeleton { height: 220px; background: linear-gradient(90deg, var(--panel) 0%, var(--panel-2) 50%, var(--panel) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.card-head > div:not(.right) { min-width: 0; flex: 1 1 0%; }
.card-head .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.card-head h2 { margin: 0; font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
.card-head p { margin: 1px 0 0; color: var(--muted); font-size: 13.5px; }
.card-head .right { margin-left: auto; }
code { font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel-3); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.empty { color: var(--muted); text-align: center; padding: 20px 8px; }

/* ---------- leaderboards ---------- */
.seg { display: inline-flex; gap: 2px; background: var(--panel-2); border: 1px solid var(--line); padding: 3px; border-radius: 12px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 9px; font-weight: 650; font-size: 13px; cursor: pointer; }
.seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.board-how { color: var(--muted); font-size: 13.5px; margin: -6px 0 18px; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; margin-bottom: 14px; }
.pod { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.pod .pic { position: relative; margin-bottom: 10px; }
.pod .pic .face { width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--medal); object-fit: cover; background: var(--panel-3); }
.pod.p1 .pic .face { width: 92px; height: 92px; }
.pod .medal { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--medal); color: #1a1a1a; font-weight: 900; font-size: 13px; border: 3px solid var(--panel); }
.pod .nm { font-weight: 750; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .val { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pod .val b { color: var(--text); }
.pod .step { width: 100%; margin-top: 10px; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 30%, var(--panel-2)), var(--panel-2)); border: 1px solid color-mix(in srgb, var(--medal) 35%, var(--line));
  display: grid; place-items: center; font-weight: 900; font-size: 22px; color: var(--medal); }
.pod.p1 { --medal: var(--gold); } .pod.p1 .step { height: 92px; }
.pod.p2 { --medal: var(--silver); } .pod.p2 .step { height: 66px; }
.pod.p3 { --medal: var(--bronze); } .pod.p3 .step { height: 48px; }
.pod.me .nm::after, .row.me .nm::after { content: "you"; margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 1px 6px; border-radius: 5px; vertical-align: 2px; }
.rows { display: flex; flex-direction: column; gap: 4px; }
.row { position: relative; display: grid; grid-template-columns: 34px 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; overflow: hidden; }
.row .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 10%, transparent)); border-radius: 12px; z-index: 0; }
.row:nth-child(odd) { background: color-mix(in srgb, var(--panel-2) 55%, transparent); }
.row > :not(.fill) { position: relative; z-index: 1; }
.row.me { outline: 2px solid var(--accent); outline-offset: -2px; }
.row .rk { color: var(--faint); font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.row .face { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--panel-3); }
.row .nm { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .nm small { color: var(--faint); font-weight: 500; margin-left: 6px; }
.row .val { font-weight: 750; font-variant-numeric: tabular-nums; }
.row .val small { color: var(--muted); font-weight: 500; }
.face.letter { display: grid; place-items: center; font-weight: 800; color: #fff; }
.more { display: block; margin: 10px auto 0; border: 1px solid var(--line-2); background: none; color: var(--muted); padding: 7px 16px; border-radius: 10px; cursor: pointer; font-weight: 650; font-size: 13px; }
.more:hover { color: var(--text); border-color: var(--accent); }

/* ---------- lookup ---------- */
.lookup-form { display: flex; gap: 8px; }
.lookup-form input, .search { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: inherit; }
.lookup-form input:focus, .search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.lookup-form button { padding: 0 16px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.me-card { margin-top: 16px; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.me-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.me-top .face { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); background: var(--panel-3); }
.me-top b { font-size: 17px; display: block; }
.me-top span { color: var(--muted); font-size: 13px; }
.me-top .x { margin-left: auto; border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 12.5px; text-decoration: underline; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.tile b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tile span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tile.wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.tile .rank { font-size: 12px; font-weight: 800; color: var(--accent); }
.err { color: #ff6b81; margin: 12px 0 0; font-size: 14px; }

/* ---------- goals ---------- */
.goals { display: flex; flex-direction: column; gap: 16px; }
.goal-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-weight: 650; }
.goal-top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.goal-top span:last-child b { color: var(--text); }
.gbar { height: 12px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.gbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); position: relative; overflow: hidden; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.gbar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-100%); animation: sweep 2.6s infinite; }
@keyframes sweep { to { transform: translateX(100%); } }
.goal.done .gbar i { background: linear-gradient(90deg, var(--good), #8ef0c3); }

/* ---------- commands ---------- */
.cmd-tools { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cmds { display: flex; flex-direction: column; gap: 6px; }
.cmd { display: grid; grid-template-columns: minmax(110px, auto) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid transparent; }
.cmd:hover { border-color: var(--line-2); }
.cmd .name { font: 700 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); white-space: nowrap; }
.cmd .reply { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.cmd .reply i { font-style: normal; color: var(--text); background: var(--panel-3); border-radius: 5px; padding: 0 5px; font-size: 13px; }
.copy { border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); border-radius: 8px; padding: 4px 9px; font-size: 12px; font-weight: 650; cursor: pointer; opacity: 0; transition: opacity .15s; }
.cmd:hover .copy, .copy:focus { opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 650 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 9px; cursor: pointer; color: var(--text); }
.chip:hover { border-color: var(--accent); }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); margin: 22px 0 10px; font-weight: 800; }

/* ---------- 6.3: how to play ---------- */
.ptabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 18px; padding: 2px 0; }
.ptabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted);
  padding: 7px 12px; border-radius: 999px; font: 650 13.5px Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.ptabs button:hover { color: var(--text); border-color: var(--line-2); }
.ptabs button.on { background: color-mix(in srgb, var(--accent) 16%, var(--panel-2)); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--text); }
.ptabs button:focus-visible, .pc-cmd:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.play-about { margin-top: 0; }
.earn { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: -4px 0 6px; font-size: 13.5px; }
.earn b { color: var(--text); margin-right: 2px; }
.earn span { background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.pcmds { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 0; }
.pcmd { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; column-gap: 16px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--panel-2); }
.pc-cmd { display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 9px; padding: 5px 10px; cursor: pointer; color: var(--text); justify-self: start; }
.pc-cmd:hover { border-color: var(--accent); }
.pc-cmd code { font: 700 14px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); white-space: nowrap; background: none; padding: 0; border: 0; }
.pc-args { font: 500 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--faint); white-space: nowrap; }
.pc-what { color: var(--muted); font-size: 14px; }
.pc-what .who { font-style: normal; font-size: 11px; font-weight: 800; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 5px; padding: 0 5px; margin-left: 4px; white-space: nowrap; }
.btypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.btype { border-radius: 14px; padding: 12px 14px; background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 18%, var(--panel-2)), var(--panel-2) 70%); border: 1px solid color-mix(in srgb, var(--tc) 35%, var(--line)); }
.bt-name { font-weight: 800; font-size: 15px; display: flex; gap: 7px; align-items: center; margin-bottom: 6px; }
.bt-row { font-size: 13px; color: var(--muted); }
.bt-row b { color: var(--text); font-weight: 650; }
.bt-row.good::before { content: "▲ "; color: var(--good); font-size: 10px; }
.bt-row.bad::before { content: "▼ "; color: #ff6b6b; font-size: 10px; }
.tip { color: var(--faint); font-size: 13px; margin: 10px 0 0; }
.classes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cls { background: var(--panel-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.cls b { font-size: 14px; }
.cls span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
@media (max-width: 640px) {
  .ptabs { flex-wrap: nowrap; overflow-x: auto; margin: -2px -4px 16px; padding: 2px 4px 6px; scrollbar-width: none; }
  .ptabs::-webkit-scrollbar { display: none; }
  .pcmds { grid-template-columns: minmax(0, 1fr); }
  .pcmd { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .btypes { grid-template-columns: 1fr; }
  .classes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- songs ---------- */
.np { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--panel-2)), var(--panel-2)); border: 1px solid var(--line); }
.np .art, .art-ph { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; background: var(--panel-3); display: grid; place-items: center; font-size: 30px; }
.np .tag { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--good); display: flex; align-items: center; gap: 6px; }
.np .tag.paused { color: var(--faint); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq 1s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 11px; } }
.np .t { font-size: 18px; font-weight: 750; line-height: 1.25; margin-top: 2px; }
.np .a { color: var(--muted); }
.np .by { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.np .prog { height: 5px; border-radius: 99px; background: var(--panel-3); margin-top: 10px; overflow: hidden; }
.np .prog i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.q { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.q li { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.q li:hover { background: var(--panel-2); }
.q .n { color: var(--faint); font-weight: 800; text-align: center; }
.q img, .q .art-ph { width: 40px; height: 40px; border-radius: 8px; font-size: 16px; }
.q .tt { overflow: hidden; } .q .tt b { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q .tt span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.q .who { color: var(--muted); font-size: 12.5px; }
.hint { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); color: var(--muted); font-size: 13.5px; }

/* ---------- clips ---------- */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.clip { color: var(--text); text-decoration: none !important; border-radius: 14px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.clip:hover { transform: translateY(-2px); border-color: var(--accent); }
.clip .th { position: relative; aspect-ratio: 16 / 9; background: var(--panel-3); }
.clip .th img { width: 100%; height: 100%; object-fit: cover; }
.clip .th .len { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.clip .th .play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .15s; background: rgba(0,0,0,.3); }
.clip .th .play span { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: #111; font-size: 18px; padding-left: 3px; }
.clip:hover .play { opacity: 1; }
.clip .ct { padding: 10px 12px 12px; }
.clip .ct b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.35; }
.clip .ct span { color: var(--muted); font-size: 12.5px; }

/* ---------- quotes, counters ---------- */
.quotes { columns: 2 260px; column-gap: 12px; }
.quote { break-inside: avoid; margin-bottom: 12px; padding: 16px 16px 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); position: relative; }
.quote::before { content: "“"; position: absolute; top: -6px; left: 12px; font-size: 54px; font-weight: 900; color: color-mix(in srgb, var(--accent) 50%, transparent); line-height: 1; }
.quote p { margin: 10px 0 8px; font-size: 15px; }
.quote small { color: var(--faint); }
.counters { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.counter { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.counter b { display: block; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.counter span { color: var(--muted); font-size: 13px; font-weight: 650; text-transform: capitalize; }

/* ---------- side cards ---------- */
.callout { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--panel)), var(--panel) 70%); }
.big-clock { font-size: 40px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; text-align: center; margin: 4px 0; }
.big-clock.paused { opacity: .55; }
.center-muted { text-align: center; color: var(--muted); font-size: 13.5px; }
.enter { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); margin-top: 6px; }
.enter code { font-size: 15px; }
.sched { display: flex; flex-direction: column; gap: 8px; }
.sched-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border-radius: 12px; background: var(--panel-2); }
.sched-item .day { text-align: center; border-radius: 10px; background: var(--panel-3); padding: 4px 0; }
.sched-item .day b { display: block; font-size: 19px; font-weight: 800; line-height: 1.1; }
.sched-item .day span { font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.sched-item .st b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-item .st span { color: var(--muted); font-size: 12.5px; }
.sched-item.cancelled { opacity: .5; text-decoration: line-through; }
.about { white-space: pre-line; color: var(--muted); margin: 0; }
.link-list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.link-list a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); color: var(--text); font-weight: 650; text-decoration: none; border: 1px solid transparent; }
.link-list a:hover { border-color: var(--accent); }
.link-list a::after { content: "↗"; color: var(--faint); }

/* ---------- footer, toast ---------- */
.foot { text-align: center; padding: 10px 20px 44px; }
.foot a { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); }
.foot a:hover { color: var(--text); text-decoration: none; border-color: var(--accent); }
.foot img { width: 18px; height: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 10px; font-weight: 650; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; z-index: 50; }
.toast.on { opacity: 1; translate: -50% 0; }
.off-page { text-align: center; padding: 70px 20px; color: var(--muted); }

@media (max-width: 640px) {
  .hero-in { flex-direction: column; text-align: center; padding-top: 40px; gap: 18px; }
  .av { width: 104px; height: 104px; }
  .live-line, .actions { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .clips { grid-template-columns: repeat(2, 1fr); gap: 10px; } .clip .ct { padding: 8px 10px; } .clip .ct b { font-size: 13px; }
  .foot .fx { display: none; }
  .stat { padding: 10px; text-align: center; } .stat b { font-size: 19px; } .stat span { font-size: 11.5px; }
  .card { padding: 18px; border-radius: 16px; }
  .podium { gap: 6px; } .pod .pic .face { width: 58px; height: 58px; } .pod.p1 .pic .face { width: 72px; height: 72px; }
  .cmd { grid-template-columns: 1fr auto; gap: 4px 10px; } .cmd .reply { grid-column: 1 / -1; grid-row: 2; }
  .row { grid-template-columns: 28px 30px minmax(0, 1fr) auto; gap: 9px; padding: 7px 8px; }
  .card-head .right { margin-left: 0; width: 100%; }
  .seg { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; } .seg button { flex: 1; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
