:root {
  --bg: #000;
  --fg: #f2f2f7;
  --dim: #8e8e93;
  --card: #141416;
  --card2: #1c1c1e;
  --line: rgba(255,255,255,.08);
  --violet: #7c3aed;
  --violet2: #a78bfa;
  --ok: #30d158;
  --warn: #ff9f0a;
  --err: #ff453a;
  --top: 60px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font:
    15px/1.45 -apple-system,
    "SF Pro Text",
    "Helvetica Neue",
    Inter,
    sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  overscroll-behavior-y: none;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input {
  font: inherit;
  color: inherit;
}
.hidden {
  display: none !important;
}
svg {
  fill: currentColor;
}
.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.g1 {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -140px;
  background: rgba(124, 58, 237, .28);
}
.g2 {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 260px;
  background: rgba(124, 58, 237, .16);
}
#login {
  position: relative;
  z-index: 1;
}
.wall {
  position: relative;
  z-index: 1;
  height: 210px;
  overflow: hidden;
  mask-image: linear-gradient(#000 40%, transparent);
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
}
.wall .row {
  display: flex;
  gap: 12px;
  transform: rotate(-6deg) translate(-40px, 20px);
  width: 140%;
  margin-bottom: 12px;
}
.wall .row:nth-child(2) {
  transform: rotate(-6deg) translate(-110px, 20px);
}
.wall .row:nth-child(3) {
  transform: rotate(-6deg) translate(-70px, 20px);
}
.wall img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 18px;
  background: #1c1c1e;
  padding: 14px;
  flex: none;
  opacity: .9;
}
.landing {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: -40px auto 0;
  padding: 0 22px calc(env(safe-area-inset-bottom) + 40px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand svg {
  width: 34px;
  height: 32px;
}
.brand b {
  font-size: 18px;
  letter-spacing: .06em;
}
.landing h1 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 22px 0 10px;
  font-weight: 700;
}
.lead {
  color: var(--dim);
  font-size: 17px;
  margin: 0 0 26px;
}
.marks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 26px;
}
.marks div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
}
.marks b {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}
.marks span {
  color: var(--dim);
  font-size: 13px;
}
.btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 15px 18px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  min-height: 48px;
}
.btn.primary {
  background: var(--violet);
  color: #fff;
}
.btn.primary:hover {
  background: #6d28d9;
}
.btn.ghost {
  background: var(--card);
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  background: var(--card2);
}
.btn:disabled {
  opacity: .5;
  cursor: default;
}
.elig {
  color: var(--dim);
  font-size: 14px;
  margin: 18px 0 0;
}
.status {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.status i,
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8e8e93;
  margin-right: 6px;
  vertical-align: middle;
}
.status i.ok,
.dot.ok {
  background: var(--ok);
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 14px;
}
.panel h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.panel p {
  color: var(--dim);
  margin: 0 0 14px;
}
.code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 36px;
  letter-spacing: .18em;
  text-align: center;
  padding: 14px 0 8px;
}
.field {
  display: block;
  width: 100%;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 10px;
  outline: none;
  font-size: 16px;
}
.field:focus {
  border-color: var(--violet2);
}
.err {
  color: var(--err);
  font-size: 14px;
  min-height: 20px;
  margin: 4px 0 8px;
}
.link {
  color: var(--violet2);
  text-decoration: none;
  font-size: 14px;
}
.link:hover {
  text-decoration: underline;
}
.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: var(--violet2);
  border-radius: 50%;
  animation: spin .9s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 700px) {
  .landing h1 {
    font-size: 42px;
  }
  .wall {
    height: 260px;
  }
  .wall img {
    width: 104px;
    height: 104px;
  }
}
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--top);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.top .brand svg {
  width: 26px;
  height: 24px;
}
.top .brand b {
  font-size: 15px;
}
.tabs {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.tabs button {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--dim);
  font-weight: 600;
  font-size: 14px;
}
.tabs button:hover {
  color: var(--fg);
}
.tabs button.on {
  color: var(--fg);
  background: var(--card2);
}
.tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.search {
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  width: 200px;
  outline: none;
  font-size: 14px;
}
.search:focus {
  border-color: var(--violet2);
}
.tool {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
}
.tool:hover {
  background: var(--card2);
  color: var(--fg);
}
.tool.text {
  width: auto;
  padding: 0 12px;
  font-weight: 600;
  font-size: 14px;
  gap: 6px;
}
.menu {
  position: absolute;
  right: 18px;
  top: calc(var(--top) + 6px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  min-width: 260px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  z-index: 30;
}
.menu .who-line {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.menu .who-line b {
  display: block;
  font-size: 15px;
}
.menu .who-line span {
  color: var(--dim);
  font-size: 13px;
  display: block;
}
.menu button,
.menu a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  text-decoration: none;
}
.menu button:hover,
.menu a:hover {
  background: var(--card2);
}
main {
  flex: 1;
  padding: 16px 18px calc(env(safe-area-inset-bottom) + 90px);
}
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.chip.on {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
.chip:hover:not(.on) {
  color: var(--fg);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}
.grid.fixed {
  align-content: start;
}
.gcale {
  pointer-events: none;
}
.tile {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tile .art {
  position: relative;
  aspect-ratio: 1 / .62;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s, border-color .12s;
}
.tile:hover .art,
.tile:focus-visible .art {
  border-color: rgba(167, 139, 250, .6);
  transform: translateY(-2px);
  outline: none;
}
.tile .art .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile .art .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(0, 0, 0, .72),
      rgba(0, 0, 0, .42) 45%,
      rgba(0, 0, 0, .66));
  opacity: 0;
  transition: opacity .15s;
}
.tile .art.hasart .veil {
  opacity: 1;
}
.tile .logo {
  position: relative;
  width: 50%;
  height: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile .logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.tile .logo span {
  font-weight: 700;
  font-size: 20px;
  color: var(--dim);
}
.tile .art.hasart .logo img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
}
.tile .art.hasart .logo span {
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}
.tile .num {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
}
.tile .art.hasart .num {
  color: #fff;
  background: rgba(0, 0, 0, .45);
  border-radius: 999px;
  padding: 1px 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}
.tile .fav {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .2);
}
.tile .fav.on {
  color: var(--violet2);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7));
}
.tile .fav:hover {
  background: rgba(0, 0, 0, .45);
  color: var(--fg);
}
.tile .mark {
  position: absolute;
  top: 8px;
  right: 38px;
  color: rgba(255, 255, 255, .85);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .8));
}
.tile .mark .icon {
  width: 17px;
  height: 17px;
}
.tile .art .bar {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7px;
}
.tile .bar,
.bar {
  height: 3px;
  background: rgba(255, 255, 255, .16);
  border-radius: 2px;
  overflow: hidden;
}
.tile .bar i,
.bar i {
  display: block;
  height: 100%;
  background: var(--violet2);
  width: 0;
}
.tile .tag {
  position: absolute;
  bottom: 6px;
  right: 9px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
  letter-spacing: .06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
.tile.square .art {
  aspect-ratio: 1;
}
.tile.square .logo {
  width: 62%;
  height: 62%;
}
.tile .cap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 2px;
}
.tile .name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile .now {
  color: var(--dim);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 17px;
}
.gbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 2px 0 12px;
}
.gjumps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gnav b {
  font-size: 13px;
  color: var(--dim);
  font-weight: 600;
  min-width: 210px;
  text-align: center;
}
.gnav .tool {
  width: 34px;
  height: 34px;
}
.gnav .tool.flip svg {
  transform: rotate(180deg);
}
.gnav .tool:disabled {
  opacity: .3;
  cursor: default;
}
.gnav .tool:disabled:hover {
  background: none;
  color: var(--dim);
}
.gscroll {
  position: relative;
  overflow: auto;
  height: calc(100vh - var(--top) - 150px);
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overscroll-behavior: contain;
}
.ginner {
  position: relative;
}
.gruler {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  background: #17171a;
  border-bottom: 1px solid var(--line);
}
.gcorner {
  position: sticky;
  left: 0;
  z-index: 6;
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #17171a;
  border-right: 1px solid var(--line);
}
.gcorner span {
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gticks {
  position: relative;
  flex: none;
}
.gtick {
  position: absolute;
  top: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  padding-left: 7px;
  border-left: 1px solid var(--line);
  height: 22px;
  line-height: 20px;
}
.gtick.half {
  color: var(--dim);
  font-weight: 500;
}
.grow {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.gchan {
  position: sticky;
  left: 0;
  z-index: 4;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #141416;
  border-right: 1px solid var(--line);
  text-align: left;
}
.gchan:hover {
  background: var(--card2);
}
.gchan .logo {
  width: 46px;
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gchan .logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.gchan .logo span {
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
}
.gnum {
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.gline {
  position: relative;
  flex: none;
}
.gprog {
  position: absolute;
  top: 3px;
  bottom: 3px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--card2);
  border: 1px solid var(--line);
  padding: 5px 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.gprog:hover {
  border-color: rgba(167, 139, 250, .65);
  background: #232326;
}
.gprog b {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gprog span {
  font-size: 11px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gprog.past {
  opacity: .45;
}
.gprog.live {
  border-color: rgba(124, 58, 237, .75);
  background: rgba(124, 58, 237, .14);
}
.gprog .gfill {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--violet2);
  width: 0;
}
.gvide {
  position: absolute;
  inset: 3px 0;
  display: flex;
  align-items: center;
  padding-left: 12px;
  color: #55555c;
  font-size: 12px;
}
.gnow {
  position: absolute;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: var(--violet);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(124, 58, 237, .9);
}
.gbars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0 12px;
}
.gbars .gbar {
  padding: 0;
}
.gmodes {
  margin-left: auto;
  flex: none;
  display: flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.gmode {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dim);
}
.gmode:hover:not(.on) {
  color: var(--fg);
}
.gmode.on {
  background: var(--violet);
  color: #fff;
}
.chip.off {
  opacity: .32;
  cursor: default;
}
.chip.off:hover {
  color: var(--dim);
}
.ggrid {
  display: grid;
  gap: 10px 12px;
  align-items: stretch;
}
.gchead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.gchead:hover {
  border-bottom-color: rgba(167, 139, 250, .7);
}
.gchead .logo {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gchead .logo img {
  max-width: 78%;
  max-height: 100%;
  object-fit: contain;
}
.gchead .logo span {
  font-size: 14px;
  font-weight: 700;
  color: var(--dim);
}
.gcname {
  max-width: 100%;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.gchead:hover .gcname {
  color: var(--fg);
}
.gcell {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  text-align: left;
  padding: 9px 10px 13px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .12s, background .12s;
}
.gcell:hover {
  border-color: rgba(167, 139, 250, .6);
  background: var(--card2);
}
.gcell.live {
  border-color: rgba(124, 58, 237, .6);
}
.gcell.past {
  opacity: .5;
}
.gcell.lead {
  padding: 0 0 13px;
}
.gcell.lead > .gh,
.gcell.lead > .gt,
.gcell.lead > .gs {
  padding-left: 10px;
  padding-right: 10px;
}
.gart {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  background: var(--card2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gart.hasart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gart .logo {
  width: 56%;
  height: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gart .logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.gart .logo span {
  font-size: 15px;
  font-weight: 700;
  color: var(--dim);
}
.gh {
  display: flex;
  align-items: center;
  gap: 6px;
}
.gh b {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.glive {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  background: var(--violet);
  border-radius: 4px;
  padding: 1px 5px;
}
.gdur {
  font-size: 11px;
  color: var(--dim);
}
.gt {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  max-height: 2.5em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gs {
  font-size: 11.5px;
  color: var(--dim);
  line-height: 1.3;
  max-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .08);
}
.grail.off {
  display: none;
}
.grail .gfill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--violet2);
}
.gcell.vide {
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #55555c;
  font-size: 12px;
  background: none;
  border-style: dashed;
}
.gcell.vide:not(.lead) {
  border: 0;
}
.gcell.vide:hover {
  border-color: var(--line);
  background: none;
}
.sheet {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.scard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.scard .shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--card2);
}
.sbody {
  padding: 18px 20px 20px;
}
.skick {
  color: var(--violet2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
.sbody h3 {
  margin: 6px 0 4px;
  font-size: 21px;
  line-height: 1.2;
}
.ssub {
  color: var(--dim);
  font-size: 14px;
}
.sdesc {
  color: var(--dim);
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0 0;
}
.sacts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.sacts .pill {
  padding: 10px 15px;
  font-size: 14px;
}
.section {
  margin: 22px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dim);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rowi {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  width: 100%;
}
.rowi:hover {
  border-color: rgba(167, 139, 250, .5);
}
.rowi .logo {
  width: 54px;
  height: 54px;
  flex: none;
  background: var(--card2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.rowi .logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.rowi .logo span {
  font-weight: 700;
  color: var(--dim);
}
.rowi .body {
  flex: 1;
  min-width: 0;
}
.rowi .body b {
  display: block;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rowi .body span {
  display: block;
  color: var(--dim);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rowi .acts {
  display: flex;
  gap: 6px;
  flex: none;
}
.pill {
  padding: 7px 12px;
  border-radius: 10px;
  background: var(--card2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill.primary {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}
.pill.danger {
  color: var(--err);
}
.pill:hover {
  border-color: rgba(167, 139, 250, .6);
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--card2);
  color: var(--dim);
}
.badge.rec {
  background: rgba(255, 69, 58, .18);
  color: var(--err);
}
.badge.ok {
  background: rgba(48, 209, 88, .16);
  color: var(--ok);
}
.badge.plan {
  background: rgba(124, 58, 237, .2);
  color: var(--violet2);
}
.empty {
  color: var(--dim);
  padding: 40px 0;
  text-align: center;
}
.empty b {
  display: block;
  color: var(--fg);
  font-size: 17px;
  margin-bottom: 6px;
}
.radiobar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 25;
  background: rgba(28, 28, 30, .9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
}
.radiobar .logo {
  width: 44px;
  height: 44px;
  background: var(--card2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex: none;
}
.radiobar .logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.radiobar .body {
  flex: 1;
  min-width: 0;
}
.radiobar .body b {
  display: block;
  font-size: 14px;
}
.radiobar .body span {
  color: var(--dim);
  font-size: 12px;
}
.player {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  display: flex;
  flex-direction: column;
}
.player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.player .stage {
  position: relative;
  flex: 1;
  min-height: 0;
}
.player .ov {
  position: absolute;
  left: 0;
  right: 0;
  transition: opacity .25s;
}
.player.idle .ov {
  opacity: 0;
  pointer-events: none;
}
.player.idle {
  cursor: none;
}
.player .ov.head {
  top: 0;
  padding: 14px 16px;
  padding-top: calc(env(safe-area-inset-top) + 14px);
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(rgba(0, 0, 0, .75), transparent);
}
.player .ov.foot {
  bottom: 0;
  padding: 14px 16px;
  padding-bottom: calc(env(safe-area-inset-bottom) + 14px);
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}
.player .chan {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.player .chan .logo {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex: none;
}
.player .chan .logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.player .chan b {
  display: block;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player .chan span {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player .ctl {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  flex: none;
}
.player .ctl:hover {
  background: rgba(255, 255, 255, .2);
}
.player .ctl.text {
  width: auto;
  padding: 0 12px;
  font-weight: 600;
  font-size: 14px;
  gap: 6px;
}
.player .ctl.on {
  background: var(--violet);
}
.player .ctl.live {
  background: rgba(255, 69, 58, .85);
}
.player .foot .prog {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.player .foot .prog .bar {
  flex: 1;
}
.player .foot .prog span {
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.player .foot .next {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player .foot .acts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.player .msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: rgba(0, 0, 0, .6);
}
.player .msg div {
  max-width: 420px;
}
.player .msg b {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}
.player .msg p {
  color: rgba(255, 255, 255, .75);
  margin: 0 0 16px;
}
.player .numpad {
  position: absolute;
  top: 90px;
  right: 16px;
  background: rgba(0, 0, 0, .7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.player .zap {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  background: rgba(16, 16, 18, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding: 14px;
  padding-top: calc(env(safe-area-inset-top) + 74px);
  z-index: 2;
}
.player .zap .rowi {
  padding: 8px 10px;
  margin-bottom: 6px;
}
.player .zap .rowi .logo {
  width: 40px;
  height: 40px;
}
.player .zap .rowi.on {
  border-color: var(--violet2);
}
.mosaic {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #000;
  display: flex;
  flex-direction: column;
}
.mosaic .mhead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  padding-top: calc(env(safe-area-inset-top) + 10px);
  border-bottom: 1px solid var(--line);
}
.mosaic .mhead b {
  font-size: 15px;
}
.mosaic .mhead span {
  color: var(--dim);
  font-size: 13px;
}
.mosaic .mgrid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  min-height: 0;
}
.mosaic .cell {
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
}
.mosaic .cell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mosaic .cell.sound {
  outline: 2px solid var(--violet2);
  outline-offset: -2px;
}
.mosaic .cell .lab {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, .65);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}
.mosaic .cell .lab img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.mosaic .cell .cacts {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity .2s;
}
.mosaic .cell:hover .cacts,
.mosaic .cell.sound .cacts {
  opacity: 1;
}
.mosaic .cell .cacts button {
  background: rgba(0, 0, 0, .65);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}
.mosaic .cell .cmsg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}
.mosaic .picker {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
  overflow-y: auto;
}
.mosaic .picker .grid {
  max-width: 1100px;
  margin: 12px auto 0;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 24px);
  transform: translateX(-50%);
  background: rgba(28, 28, 30, .95);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  z-index: 60;
  max-width: 90vw;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.toast.on {
  opacity: 1;
}
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  color: var(--dim);
}
@media (max-width: 720px) {
  .top {
    padding: 0 12px;
    gap: 8px;
  }
  .top .brand b {
    display: none;
  }
  .tabs {
    margin-left: 0;
    gap: 0;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image:
      linear-gradient(
        90deg,
        #000 86%,
        rgba(0, 0, 0, .15));
    -webkit-mask-image:
      linear-gradient(
        90deg,
        #000 86%,
        rgba(0, 0, 0, .15));
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tabs button {
    padding: 8px 8px;
    font-size: 13px;
    flex: none;
  }
  .tools {
    flex: none;
    margin-left: 0;
  }
  .search {
    width: 110px;
  }
  .tool.text span {
    display: none;
  }
  main {
    padding: 12px 12px calc(env(safe-area-inset-bottom) + 90px);
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 11px;
  }
  .gscroll {
    height: calc(100vh - var(--top) - 190px);
    border-radius: 12px;
  }
  .gnav {
    margin-left: 0;
    width: 100%;
  }
  .gnav b {
    min-width: 0;
    flex: 1;
    font-size: 12px;
  }
  .gprog {
    padding: 4px 6px;
    border-radius: 7px;
  }
  .gprog b {
    font-size: 11.5px;
  }
  .gprog span {
    font-size: 10px;
  }
  .gchan {
    gap: 5px;
    padding: 0 6px;
  }
  .gchan .logo {
    width: 34px;
    height: 26px;
  }
  .gnum {
    font-size: 10px;
  }
  .ggrid {
    gap: 8px;
  }
  .gchead {
    padding: 4px 2px 8px;
  }
  .gchead .logo {
    height: 26px;
  }
  .gcname {
    font-size: 10.5px;
  }
  .gcell {
    padding: 7px 8px 11px;
    border-radius: 10px;
    gap: 2px;
  }
  .gcell.lead {
    padding: 0 0 11px;
  }
  .gcell.lead > .gh,
  .gcell.lead > .gt,
  .gcell.lead > .gs {
    padding-left: 8px;
    padding-right: 8px;
  }
  .gart {
    margin-bottom: 6px;
  }
  .gh b {
    font-size: 12px;
  }
  .gt {
    font-size: 12.5px;
  }
  .gs {
    font-size: 11px;
    -webkit-line-clamp: 1;
    max-height: 1.3em;
  }
  .sbody h3 {
    font-size: 19px;
  }
  .mosaic .mgrid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }
  .player .zap {
    width: 100%;
    max-width: none;
  }
}
@media (max-width: 480px) {
  .search {
    display: none;
  }
  .player .ctl.text.live {
    font-size: 0;
    width: 42px;
    padding: 0;
  }
  .player .ctl.text.live .icon {
    width: 20px;
    height: 20px;
  }
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  position: relative;
  flex: none;
}
.avatar b {
  font-size: 14px;
}
.avatar.c-violet {
  background: #7c3aed;
}
.avatar.c-bleu {
  background: #0a84ff;
}
.avatar.c-vert {
  background: #2f9e5a;
}
.avatar.c-orange {
  background: #f0842c;
}
.avatar.c-rose {
  background: #e0509a;
}
.avatar.c-rouge {
  background: #d63c3c;
}
.avatar.c-cyan {
  background: #1aa6c2;
}
.avatar.c-jaune {
  background: #d4a417;
  color: #1a1400;
}
.avatar.add {
  background: var(--card);
  border: 2px dashed rgba(255, 255, 255, .25);
  color: var(--dim);
}
.avatar .kid {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #fff;
  color: #111;
  border-radius: 999px;
  padding: 1px 6px;
}
.tool .avatar {
  width: 30px;
  height: 30px;
}
.who {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--bg);
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.who .whoin {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  text-align: center;
}
.who .brand {
  justify-content: center;
  margin-bottom: 26px;
}
.who h1 {
  font-size: 30px;
  letter-spacing: -.02em;
  margin: 0 0 28px;
}
.profs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px 22px;
  margin-bottom: 30px;
}
.prof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 120px;
  color: var(--dim);
}
.prof .avatar {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  transition: transform .12s, box-shadow .12s;
}
.prof .avatar b {
  font-size: 40px;
}
.prof .avatar .kid {
  font-size: 10px;
  padding: 2px 8px;
  bottom: -8px;
}
.prof:hover .avatar,
.prof:focus-visible .avatar {
  transform: scale(1.06);
  box-shadow: 0 0 0 3px #fff;
}
.prof:hover,
.prof:focus-visible {
  color: var(--fg);
  outline: none;
}
.prof.edit .avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M3 17.2V21h3.8L17.8 10 14 6.2 3 17.2zM20.7 7.1a1 1 0 0 0 0-1.4l-2.4-2.4a1 1 0 0 0-1.4 0l-1.8 1.8 3.8 3.8 1.8-1.8z'/%3E%3C/svg%3E") center/34px no-repeat;
}
.prof .pname {
  font-size: 15px;
  font-weight: 600;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.whoacts {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.who.editing .whoacts {
  display: none;
}
.pform {
  text-align: left;
  max-width: 520px;
  margin: 0 auto 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.pform .head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.pform .head .avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}
.pform .head .avatar b {
  font-size: 30px;
}
.pform .head .field {
  margin: 0;
  flex: 1;
}
.pform label {
  display: block;
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pform .hint {
  color: var(--dim);
  font-size: 13px;
  margin: 6px 0 0;
}
.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sw {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 3px solid transparent;
}
.sw.on {
  border-color: #fff;
}
.sw.c-violet {
  background: #7c3aed;
}
.sw.c-bleu {
  background: #0a84ff;
}
.sw.c-vert {
  background: #2f9e5a;
}
.sw.c-orange {
  background: #f0842c;
}
.sw.c-rose {
  background: #e0509a;
}
.sw.c-rouge {
  background: #d63c3c;
}
.sw.c-cyan {
  background: #1aa6c2;
}
.sw.c-jaune {
  background: #d4a417;
}
.pform label.check {
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  margin-top: 0;
}
.pform .check {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.pform .check input {
  width: 20px;
  height: 20px;
  accent-color: var(--violet);
}
.pform .check span {
  font-size: 14px;
}
.pform .check small {
  display: block;
  color: var(--dim);
  font-size: 12px;
}
.pform select.field {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238e8e93'%3E%3Cpath d='M12 15.5 6 9.5l1.4-1.4 4.6 4.6 4.6-4.6L18 9.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}
.numlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.numlist .nrow {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}
.numlist .nrow b {
  font-variant-numeric: tabular-nums;
  min-width: 44px;
}
.numlist .nrow span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pform .pacts {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.pform .pacts .pill {
  padding: 11px 16px;
  font-size: 14px;
}
.pform .pacts .spacer {
  flex: 1;
}
body.kid .player .ctl.live,
body.kid #p-numbtn {
  display: none;
}
.player .msg.wait b::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, .15);
  border-top-color: var(--violet2);
  border-radius: 50%;
  animation: spin .9s linear infinite;
  vertical-align: middle;
  margin-right: 10px;
}
@media (max-width: 720px) {
  .who {
    padding: 18px 12px;
    align-items: flex-start;
  }
  .who h1 {
    font-size: 24px;
    margin-bottom: 18px;
  }
  .profs {
    gap: 18px 10px;
  }
  .prof {
    width: 92px;
  }
  .prof .avatar {
    width: 76px;
    height: 76px;
    border-radius: 22px;
  }
  .prof .avatar b {
    font-size: 32px;
  }
}
.tool .avatar .kid {
  display: none;
}
#splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background:
    linear-gradient(
      90deg,
      #5601e9,
      #0b0317);
  transition: opacity .35s ease;
}
#splash.portrait {
  background:
    linear-gradient(
      175deg,
      #5000dc,
      #08021a);
}
#splash video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  object-fit: fill;
}
#splash.out {
  opacity: 0;
  pointer-events: none;
}
