.ksjb-mobile-spa-root {
  --m-bg: #eaf2fb;
  --m-card: #ffffff;
  --m-card-soft: #fafbfc;
  --m-text: #151922;
  --m-sub: #647084;
  --m-muted: #9aa4b3;
  --m-line: #e8ebf0;
  --m-red: #e6202e;
  --m-sky: #6ea8ff;
  --m-rail: #252a36;
  --m-red-dark: #b90f1a;
  --m-red-soft: #fff0f1;
  --m-gold: #d8ad66;
  --m-green: #18a668;
  --m-blue: #2b6de8;
  --m-shadow: 0 10px 24px rgba(18, 24, 40, .08);
  position: fixed;
  inset: 0;
  z-index: 9000;
  overflow: hidden;
  color: var(--m-text);
  background: #dfe3e8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

.ksjb-mobile-spa-root * {
  box-sizing: border-box;
}

.ksjb-mobile-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100vw, 480px);
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--m-bg);
}

.ksjb-mobile-topbar {
  display: grid;
  gap: 0;
  padding: max(10px, env(safe-area-inset-top)) 10px 0;
  background: #edf5ff;
}

.ksjb-mobile-logo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ksjb-mobile-logo img {
  width: 92px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.ksjb-top-links {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  overflow: auto;
  height: 46px;
  padding: 0 8px;
  background: #fff;
  scrollbar-width: none;
}

.ksjb-top-links::-webkit-scrollbar {
  display: none;
}

.ksjb-top-links button {
  flex: 0 0 auto;
  height: 46px;
  border: 0;
  padding: 0 12px;
  color: #4f5f7a;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.ksjb-top-links button.is-active,
.ksjb-top-links button.is-live {
  color: #4f8cf7;
}

.ksjb-app-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 9px 12px;
  color: #fff;
  background: linear-gradient(135deg, #3d4358, #292e40);
}

.ksjb-app-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 46px;
}

.ksjb-app-brand img {
  display: block;
  width: min(176px, 50vw);
  height: auto;
  max-height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .24));
}

.ksjb-app-banner button {
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(180deg, #91bcff, #5b95f4);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(76, 142, 243, .22);
}

.ksjb-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  color: var(--m-text);
  background: #fff;
  font-size: 18px;
}

.ksjb-icon-btn:active,
.ksjb-tab-btn:active,
.ksjb-live-card:active,
.ksjb-score-row:active,
.ksjb-app-banner button:active,
.ksjb-top-links button:active,
.ksjb-reserve-card:active,
.ksjb-reserve-card button:active {
  transform: translateY(1px) scale(.975);
}

.ksjb-mobile-main {
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 84px;
}

.ksjb-page {
  display: none;
  gap: 12px;
}

.ksjb-page.is-active {
  display: grid;
}

.ksjb-segment {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.ksjb-segment::-webkit-scrollbar {
  display: none;
}

.ksjb-chip {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  color: var(--m-sub);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.ksjb-chip.is-active {
  border-color: #76aafa;
  color: #fff;
  background: linear-gradient(180deg, #9fc4ff, #5592f5);
  box-shadow: 0 8px 16px rgba(64, 130, 233, .24);
}

.ksjb-match-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 154px;
  overflow: hidden;
  border-radius: 8px;
  padding: 18px 12px 24px;
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .18) 38%, transparent 60%),
    linear-gradient(180deg, #f8fbff, #dfeeff);
}

.ksjb-match-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: calc(100% - 170px);
  color: #4e6282;
  text-align: center;
}

.ksjb-match-center span,
.ksjb-match-center em {
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.ksjb-match-center strong {
  color: #5b6782;
  font-size: 20px;
  font-weight: 950;
}

.ksjb-match-center b {
  max-width: 260px;
  overflow: hidden;
  padding: 2px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #9cc5ff, #5b96f4);
  box-shadow: 0 8px 18px rgba(76, 142, 243, .26);
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ksjb-player {
  position: absolute;
  bottom: 24px;
  z-index: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 6px;
  width: 74px;
  min-height: 94px;
  padding: 9px 7px 8px;
  border: 1px solid rgba(90, 143, 221, .18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 45% 22%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .68) 44%, rgba(224, 238, 255, .84)),
    linear-gradient(180deg, #fff, #eaf4ff);
  box-shadow: 0 12px 28px rgba(65, 115, 188, .18);
}

.ksjb-player img {
  display: block;
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 7px 10px rgba(58, 90, 140, .18));
}

.ksjb-player b {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #89b8ff, #5d96f4);
  font-size: 22px;
  font-weight: 950;
}

.ksjb-player span {
  max-width: 62px;
  overflow: hidden;
  color: #5a6780;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ksjb-player.left {
  left: 14px;
}

.ksjb-player.right {
  right: 14px;
}

.ksjb-hero-dots {
  position: absolute;
  bottom: 9px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.ksjb-hero-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(87, 151, 245, .32);
}

.ksjb-hero-dots i:first-child {
  width: 16px;
  background: #5797f5;
}

.ksjb-reserve-strip {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.ksjb-reserve-strip::-webkit-scrollbar {
  display: none;
}

.ksjb-reserve-card {
  position: relative;
  flex: 0 0 184px;
  display: grid;
  gap: 12px;
  min-height: 108px;
  border: 1px solid rgba(136, 170, 220, .22);
  border-radius: 12px;
  padding: 13px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(73, 118, 186, .16);
}

.ksjb-reserve-card div {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ksjb-reserve-card strong {
  overflow: hidden;
  color: #59677e;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ksjb-reserve-card p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding-right: 66px;
  min-width: 0;
}

.ksjb-reserve-card span,
.ksjb-reserve-card em {
  min-width: 0;
  overflow: hidden;
  color: #5f6c83;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ksjb-reserve-card span {
  max-width: 64px;
}

.ksjb-reserve-card em {
  max-width: 82px;
}

.ksjb-reserve-card button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 56px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #a9ccff, #5d96f4);
  box-shadow: 0 8px 18px rgba(76, 142, 243, .3);
  font-size: 12px;
  font-weight: 900;
}

.ksjb-hero {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  border-radius: 8px;
  padding: 18px 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(230, 32, 46, .94), rgba(35, 39, 52, .92)),
    url("/static/images/live-covers/live-01.jpg") center/cover;
  box-shadow: var(--m-shadow);
}

.ksjb-hero::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border: 24px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
}

.ksjb-hero small,
.ksjb-live-ribbon,
.ksjb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.ksjb-hero small {
  background: rgba(255, 255, 255, .18);
}

.ksjb-hero h1 {
  position: relative;
  z-index: 1;
  margin: 10px 0 5px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.ksjb-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 260px;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  line-height: 1.45;
}

.ksjb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
}

.ksjb-section-head strong {
  font-size: 17px;
  line-height: 1.2;
}

.ksjb-section-head span,
.ksjb-card-note {
  color: var(--m-muted);
  font-size: 12px;
}

.ksjb-live-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ksjb-live-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(136, 170, 220, .18);
  border-radius: 10px;
  background: var(--m-card);
  box-shadow: 0 12px 26px rgba(73, 118, 186, .14);
  text-align: left;
}

.ksjb-live-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #202633;
}

.ksjb-live-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ksjb-live-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(0deg, rgba(0, 0, 0, .62), transparent);
}

.ksjb-live-ribbon {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 1;
  color: #fff;
  background: var(--m-red);
}

.ksjb-live-ribbon i,
.ksjb-room-live i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  animation: ksjbPulse 1.25s ease-in-out infinite;
}

.ksjb-live-heat {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 1;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.ksjb-live-body {
  display: grid;
  gap: 8px;
  padding: 8px 9px 10px;
}

.ksjb-live-title {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: var(--m-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.32;
}

.ksjb-anchor-line {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.ksjb-anchor-line::after {
  content: "♨";
  color: var(--m-muted);
  font-size: 11px;
}

.ksjb-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--m-red), var(--m-gold));
  font-size: 12px;
  font-weight: 900;
}

.ksjb-anchor-line span {
  min-width: 0;
  overflow: hidden;
  color: var(--m-sub);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ksjb-panel,
.ksjb-score-card,
.ksjb-anchor-card,
.ksjb-profile-card {
  overflow: hidden;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: var(--m-card);
  box-shadow: 0 8px 20px rgba(16, 24, 40, .04);
}

.ksjb-panel {
  padding: 13px;
}

.ksjb-score-toolbar {
  position: sticky;
  top: -10px;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin: -10px -12px 0;
  padding: 10px 12px 8px;
  background: rgba(244, 246, 248, .95);
  backdrop-filter: blur(14px);
}

.ksjb-date-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.ksjb-date-strip button {
  min-width: 0;
  height: 42px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  background: #fff;
  color: var(--m-sub);
  font-size: 11px;
  font-weight: 700;
}

.ksjb-date-strip button.is-active {
  border-color: var(--m-red);
  color: var(--m-red);
  background: var(--m-red-soft);
}

.ksjb-league-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--m-sub);
  background: var(--m-card-soft);
  font-size: 12px;
  font-weight: 800;
}

.ksjb-score-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 48px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 10px 9px;
  border: 0;
  border-top: 1px solid var(--m-line);
  color: var(--m-text);
  background: #fff;
}

.ksjb-score-time {
  color: var(--m-muted);
  font-size: 11px;
  font-weight: 700;
}

.ksjb-team {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ksjb-score-num {
  min-width: 0;
  text-align: center;
  color: #111827;
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.ksjb-status-pill {
  justify-self: end;
  justify-content: center;
  min-width: 48px;
  padding: 0 6px;
  border: 1px solid var(--m-line);
  color: var(--m-sub);
  background: #fff;
  white-space: nowrap;
}

.ksjb-status-pill.live {
  border-color: rgba(230, 32, 46, .22);
  color: var(--m-red);
  background: var(--m-red-soft);
}

.ksjb-status-pill.done {
  color: var(--m-muted);
  background: #f6f7f9;
}

.ksjb-anchor-card,
.ksjb-profile-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.ksjb-user-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
}

.ksjb-user-head .ksjb-avatar {
  width: 52px;
  height: 52px;
  font-size: 18px;
}

.ksjb-user-head strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ksjb-user-head span,
.ksjb-form label span {
  color: var(--m-sub);
  font-size: 12px;
}

.ksjb-grid-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ksjb-action-tile {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 74px;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  color: var(--m-text);
  background: var(--m-card-soft);
  font-size: 12px;
  font-weight: 800;
}

.ksjb-action-tile b {
  font-size: 20px;
  line-height: 1;
}

.ksjb-form {
  display: grid;
  gap: 10px;
}

.ksjb-form label {
  display: grid;
  gap: 5px;
}

.ksjb-inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.ksjb-inline-field .ksjb-btn {
  height: 42px;
  min-width: 74px;
  padding: 0 12px;
  font-size: 12px;
}

.ksjb-input,
.ksjb-textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  outline: 0;
  color: var(--m-text);
  background: #fff;
  font: inherit;
}

.ksjb-input {
  height: 42px;
  padding: 0 11px;
}

.ksjb-textarea {
  min-height: 72px;
  padding: 10px 11px;
  resize: vertical;
}

.ksjb-btn-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ksjb-btn {
  display: inline-grid;
  place-items: center;
  min-width: 0;
  height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: #fff;
  background: var(--m-red);
  font-size: 14px;
  font-weight: 900;
}

.ksjb-btn.secondary {
  border: 1px solid var(--m-line);
  color: var(--m-text);
  background: #fff;
}

.ksjb-btn.gold {
  color: #2a1d0c;
  background: linear-gradient(180deg, #f4d59a, var(--m-gold));
}

.ksjb-btn:disabled {
  opacity: .58;
}

.ksjb-stream-box {
  display: grid;
  gap: 8px;
}

.ksjb-stream-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px;
  border-radius: 8px;
  background: #f7f8fa;
}

.ksjb-stream-line span {
  color: var(--m-sub);
  font-size: 12px;
  font-weight: 800;
}

.ksjb-stream-line code {
  min-width: 0;
  overflow: hidden;
  color: var(--m-text);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ksjb-copy {
  height: 28px;
  border: 0;
  border-radius: 6px;
  padding: 0 9px;
  color: #fff;
  background: #202737;
  font-size: 12px;
  font-weight: 800;
}

.ksjb-room-page {
  display: grid;
  gap: 10px;
  margin: -10px -12px -84px;
  padding-bottom: 84px;
  background: #10141d;
  color: #fff;
}

.ksjb-room-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: max(11px, env(safe-area-inset-top)) 12px 8px;
  background: #151a25;
}

.ksjb-room-top img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.ksjb-room-top strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ksjb-room-top span {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.ksjb-room-player {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05070b;
}

.ksjb-room-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .72;
}

.ksjb-room-player video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.ksjb-play-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  text-align: center;
}

.ksjb-play-state b {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  margin: 0 auto 9px;
  padding-left: 4px;
  font-size: 26px;
}

.ksjb-room-live {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--m-red);
  font-size: 11px;
  font-weight: 900;
}

.ksjb-room-meta {
  display: grid;
  gap: 8px;
  padding: 0 12px;
}

.ksjb-room-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .06);
}

.ksjb-room-score strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ksjb-room-score b {
  color: #fff;
  font-size: 18px;
}

.ksjb-room-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px;
}

.ksjb-room-tabs button {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .06);
  font-weight: 800;
}

.ksjb-room-tabs button.is-active {
  color: #fff;
  background: var(--m-red);
}

.ksjb-room-panel {
  min-height: 250px;
  margin: 0 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .05);
}

.ksjb-chat-list {
  display: grid;
  align-content: end;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
  padding: 11px;
}

.ksjb-chat-msg {
  display: grid;
  gap: 4px;
  width: fit-content;
  max-width: 86%;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.ksjb-chat-msg.mine {
  justify-self: end;
  background: rgba(230, 32, 46, .34);
}

.ksjb-chat-msg b {
  color: #f4d59a;
  font-size: 12px;
}

.ksjb-chat-msg span {
  color: #f5f7fb;
  font-size: 13px;
  line-height: 1.42;
}

.ksjb-room-input {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 42px 42px;
  gap: 7px;
  width: min(100vw, 480px);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: rgba(16, 20, 29, .96);
  backdrop-filter: blur(14px);
}

.ksjb-room-input input {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  padding: 0 11px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.ksjb-room-input button {
  display: grid;
  place-items: center;
  height: 38px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--m-red);
  font-size: 15px;
  font-weight: 900;
}

.ksjb-mobile-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--m-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--m-shadow);
  backdrop-filter: blur(16px);
}

.ksjb-tab-btn {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  height: 50px;
  border: 0;
  border-radius: 8px;
  color: #9fb0c6;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.ksjb-tab-btn b {
  font-size: 16px;
  line-height: 1;
}

.ksjb-tab-btn.is-active {
  color: #5797f5;
  background: transparent;
}

.ksjb-tab-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: #9fb0c6;
  background: #eef6ff;
  box-shadow: inset 0 -2px 4px rgba(103, 155, 221, .12);
}

.ksjb-tab-btn.is-active .ksjb-tab-icon {
  color: #fff;
  background: linear-gradient(180deg, #8dbbff, #5a96f4);
  box-shadow: 0 6px 12px rgba(76, 142, 243, .2);
}

.ksjb-room-mode .ksjb-mobile-tabbar {
  display: none;
}

.ksjb-empty,
.ksjb-loading,
.ksjb-api-alert {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 118px;
  border: 1px dashed var(--m-line);
  border-radius: 8px;
  padding: 18px;
  color: var(--m-sub);
  background: #fff;
  text-align: center;
}

.ksjb-api-alert {
  min-height: auto;
  place-items: start;
  justify-items: start;
  color: #7a4f00;
  background: #fff8e8;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
}

.ksjb-api-alert .ksjb-btn {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.ksjb-skeleton {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  border-radius: 8px;
  background: #edf0f4;
}

.ksjb-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: ksjbShimmer 1.3s infinite;
}

.ksjb-toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 9100;
  max-width: min(320px, calc(100vw - 36px));
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(20, 24, 33, .92);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: .18s ease;
  pointer-events: none;
}

.ksjb-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes ksjbPulse {
  0%, 100% {
    opacity: .45;
    transform: scale(.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes ksjbShimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 374px) {
  .ksjb-mobile-main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .ksjb-live-grid {
    gap: 8px;
  }

  .ksjb-live-body {
    padding: 8px;
  }

  .ksjb-score-row {
    grid-template-columns: 38px minmax(0, 1fr) 48px minmax(0, 1fr) 40px;
    gap: 4px;
    padding-right: 7px;
    padding-left: 7px;
  }
}

@media (min-width: 760px) {
  .ksjb-mobile-shell {
    border-right: 1px solid rgba(0, 0, 0, .08);
    border-left: 1px solid rgba(0, 0, 0, .08);
  }
}
