:root {
  color-scheme: dark;
  --bg: #090606;
  --bg-raised: #110b0a;
  --surface: #17100e;
  --surface-2: #211613;
  --surface-3: #2b1c18;
  --line: #3a2922;
  --line-soft: rgba(255, 177, 59, 0.15);
  --text: #fff8ed;
  --soft: #f4e6d2;
  --muted: #b9aaa1;
  --faint: #7c675d;
  --teal: #46e0c2;
  --mint: #ffb13b;
  --amber: #ffd36b;
  --coral: #ff3f4f;
  --sky: #7aa5ff;
  --violet: #7a5cff;
  --rose: #ff5b4d;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.52);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f2e8;
  --bg-raised: #fff9ef;
  --surface: #fff4e7;
  --surface-2: #f3e2d0;
  --surface-3: #ead3bb;
  --line: #d9bfa3;
  --line-soft: rgba(255, 63, 79, 0.22);
  --text: #15100d;
  --soft: #2a201b;
  --muted: #715f53;
  --faint: #947b69;
  --teal: #008f80;
  --mint: #d88712;
  --amber: #b86c00;
  --coral: #d92538;
  --sky: #245ec7;
  --violet: #5f3fd6;
  --rose: #c7282f;
  --shadow: 0 18px 44px rgba(96, 48, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body,
.phone-shell,
.screen,
.list-content,
.detail-content,
.top-tabs,
.detail-tabs,
.over-strip,
.data-table,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.phone-shell::-webkit-scrollbar,
.screen::-webkit-scrollbar,
.list-content::-webkit-scrollbar,
.detail-content::-webkit-scrollbar,
.top-tabs::-webkit-scrollbar,
.detail-tabs::-webkit-scrollbar,
.over-strip::-webkit-scrollbar,
.data-table::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #050303;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

:root[data-theme="light"] body {
  background: #efe2d1;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.phone-shell {
  position: relative;
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background:
    linear-gradient(160deg, rgba(255, 63, 79, 0.14), transparent 215px),
    linear-gradient(24deg, rgba(255, 177, 59, 0.08), transparent 330px),
    linear-gradient(330deg, rgba(70, 224, 194, 0.055), transparent 380px),
    var(--bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 26px 80px rgba(0, 0, 0, 0.42);
}

.screen {
  min-height: 100vh;
  padding-bottom: 28px;
}

.app-header,
.detail-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  align-items: center;
  min-height: 76px;
  padding: 18px 18px 12px;
  background: rgba(9, 6, 6, 0.94);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .app-header,
:root[data-theme="light"] .detail-header {
  background: rgba(255, 248, 236, 0.95);
  border-bottom-color: rgba(217, 191, 163, 0.72);
  box-shadow: 0 10px 26px rgba(96, 48, 24, 0.08);
}

.app-header {
  grid-template-columns: 96px minmax(0, 1fr) 96px;
}

.header-spacer {
  width: 46px;
  height: 30px;
}

.app-title,
.detail-header strong {
  overflow: hidden;
  color: var(--text);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 14px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="light"] .header-action,
:root[data-theme="light"] .back-button {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(217, 191, 163, 0.82);
  box-shadow: 0 8px 20px rgba(96, 48, 24, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.header-share {
  position: relative;
}

.share-glyph {
  position: relative;
  width: 22px;
  height: 22px;
  display: block;
}

.share-glyph::before,
.share-glyph::after {
  content: "";
  position: absolute;
  left: 6px;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--teal));
  transform-origin: left center;
}

.share-glyph::before {
  top: 7px;
  transform: rotate(-28deg);
}

.share-glyph::after {
  bottom: 7px;
  transform: rotate(28deg);
}

.share-glyph {
  background:
    radial-gradient(circle at 4px 11px, var(--teal) 0 3px, transparent 3.5px),
    radial-gradient(circle at 18px 5px, var(--coral) 0 3px, transparent 3.5px),
    radial-gradient(circle at 18px 17px, var(--amber) 0 3px, transparent 3.5px);
}

.theme-toggle {
  border-radius: 999px;
}

.theme-toggle-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px rgba(70, 224, 194, 0.72);
}

.theme-toggle-dot::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-raised);
}

:root[data-theme="light"] .theme-toggle-dot {
  width: 18px;
  height: 18px;
  background: var(--amber);
  box-shadow: 0 0 18px rgba(216, 135, 18, 0.5);
}

:root[data-theme="light"] .theme-toggle-dot::after {
  inset: -5px auto auto 50%;
  width: 2px;
  height: 28px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow:
    -12px 5px 0 -1px var(--amber),
    12px 5px 0 -1px var(--amber);
  transform: translateX(-50%) rotate(90deg);
  opacity: 0.65;
}

.connection-pill {
  display: none;
}

.top-tabs,
.detail-tabs {
  position: sticky;
  z-index: 18;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9, 6, 6, 0.95);
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .top-tabs,
:root[data-theme="light"] .detail-tabs {
  background: rgba(255, 248, 236, 0.95);
  border-bottom-color: rgba(217, 191, 163, 0.72);
  box-shadow: 0 10px 24px rgba(96, 48, 24, 0.07);
}

.top-tabs {
  top: 76px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 16px;
}

.top-tab,
.detail-tab {
  position: relative;
  min-width: 0;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--faint);
  font-size: 15px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
}

:root[data-theme="light"] .top-tab,
:root[data-theme="light"] .detail-tab {
  color: #7a6759;
}

.top-tab span {
  color: inherit;
}

.top-tab.is-active {
  border-color: rgba(255, 63, 79, 0.4);
  background: linear-gradient(135deg, rgba(255, 63, 79, 0.18), rgba(255, 177, 59, 0.07));
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--coral), 0 10px 24px rgba(255, 63, 79, 0.08);
}

:root[data-theme="light"] .top-tab.is-active,
:root[data-theme="light"] .detail-tab.is-active {
  border-color: rgba(217, 37, 56, 0.28);
  background: linear-gradient(135deg, rgba(217, 37, 56, 0.11), rgba(184, 108, 0, 0.08));
  color: #15100d;
  box-shadow: inset 0 -2px 0 var(--coral), 0 8px 20px rgba(217, 37, 56, 0.08);
}

.detail-header {
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  min-height: 78px;
}

.back-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: transparent;
  font-size: 0;
}

.back-button::before {
  content: "";
  display: block;
  width: 11px;
  height: 11px;
  margin: 0 auto;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
}

.detail-actions {
  justify-self: end;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.detail-live-chip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  font-size: 0;
  box-shadow: 0 0 0 6px rgba(255, 63, 79, 0.13), 0 0 20px rgba(255, 63, 79, 0.42);
}

.detail-tabs {
  top: 78px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 10px 9px;
}

.detail-tab {
  min-height: 40px;
  padding: 0 2px;
  font-size: 13px;
}

.detail-tab.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 63, 79, 0.16), rgba(255, 177, 59, 0.06));
}

.detail-tab.is-active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 63, 79, 0.42);
}

.ad-slot {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid rgba(255, 177, 59, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 177, 59, 0.06), rgba(255, 63, 79, 0.035)),
    rgba(255, 255, 255, 0.016);
  color: var(--faint);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.ad-slot[hidden] {
  display: none !important;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ad-slot span {
  pointer-events: none;
}

.ad-slot iframe {
  width: 100%;
  min-height: inherit;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.ad-slot[data-ad-kind="native"] {
  min-height: 78px;
  background:
    linear-gradient(135deg, rgba(70, 224, 194, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.02);
}

.ad-slot[data-ad-kind="iframe"] {
  min-height: 86px;
  background:
    linear-gradient(135deg, rgba(246, 198, 91, 0.08), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.02);
}

.ad-slot[data-ad-kind="script"] {
  min-height: 70px;
  background:
    linear-gradient(135deg, rgba(255, 118, 108, 0.07), rgba(255, 255, 255, 0.014)),
    rgba(255, 255, 255, 0.02);
}

.ad-slot-shell,
.ad-slot-detail,
.ad-slot-compact {
  margin: 14px 18px;
}

.ad-slot-feed {
  margin: 2px 0;
}

.ad-slot-compact {
  margin-top: 2px;
  margin-bottom: 2px;
}

.list-content {
  display: grid;
  gap: 14px;
  padding: 8px 18px 28px;
}

.date-heading {
  margin: 18px 2px 4px;
  color: var(--soft);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.2;
}

.match-card,
.detail-match-card {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 63, 79, 0.075), rgba(255, 177, 59, 0.035) 46%, rgba(70, 224, 194, 0.035)),
    var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
}

.match-card {
  width: 100%;
}

.detail-match-card {
  width: auto;
}

.match-card {
  border-left: 4px solid var(--coral);
}

.match-card.is-finished {
  border-left-color: var(--amber);
}

.match-card.is-loading {
  opacity: 0.7;
}

.detail-match-card {
  margin: 14px 18px;
  border-left: 4px solid var(--coral);
}

.detail-match-card.is-upcoming {
  border-left-color: var(--sky);
  background:
    linear-gradient(135deg, rgba(122, 165, 255, 0.11), rgba(255, 177, 59, 0.035) 54%, rgba(255, 63, 79, 0.045)),
    var(--surface);
}

.match-meta {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 82px;
}

.card-team {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.card-team-right {
  justify-content: flex-end;
  text-align: right;
}

.team-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.team-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-logo-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}

.team-logo-wrap.large {
  width: 62px;
  height: 62px;
}

.team-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.team-logo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--soft);
  font-size: 14px;
  font-weight: 900;
}

.team-logo-fallback[hidden] {
  display: none;
}

.card-versus {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 177, 59, 0.055);
  color: var(--amber);
  font-size: 14px;
  font-weight: 950;
}

.card-versus svg {
  width: 96% !important;
  height: 96% !important;
  display: block;
  opacity: 0.7;
}

.match-note {
  justify-self: center;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(246, 198, 91, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(246, 198, 91, 0.07);
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card.is-finished .match-note {
  border-color: rgba(255, 91, 77, 0.26);
  background: rgba(255, 91, 77, 0.075);
  color: var(--rose);
}

.more-row {
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
  color: var(--sky);
  font-size: 14px;
  font-weight: 850;
}

.empty-state {
  min-height: 410px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 42px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(73, 215, 197, 0.16), transparent),
    var(--surface);
}

.empty-state strong {
  color: var(--soft);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.empty-state p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.detail-content {
  min-width: 0;
  display: grid;
  gap: 12px;
  overflow: hidden;
}

.score-hero {
  min-width: 0;
  display: grid;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(160deg, rgba(255, 63, 79, 0.14), rgba(255, 177, 59, 0.08) 55%, rgba(70, 224, 194, 0.08)),
    var(--surface);
}

.hero-score-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 14px minmax(86px, 0.34fr);
  align-items: center;
  gap: 10px;
  min-height: 138px;
  padding: 18px;
}

.hero-team-score {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hero-score-copy {
  min-width: 0;
}

.hero-team-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hero-team-line span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-team-line em {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

.hero-score-copy p {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  margin: 10px 0 0;
  white-space: nowrap;
}

.hero-score-copy strong {
  flex: 0 0 auto;
  min-width: max-content;
  overflow: visible;
  color: var(--mint);
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.hero-score-copy em {
  flex: 0 0 auto;
  color: var(--soft);
  font-size: 19px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.hero-score-copy.is-medium-score strong {
  font-size: 34px;
}

.hero-score-copy.is-medium-score em {
  font-size: 18px;
}

.hero-score-copy.is-long-score strong {
  font-size: 30px;
}

.hero-score-copy.is-long-score em {
  font-size: 16px;
}

.hero-score-copy.is-extra-long-score strong {
  font-size: 26px;
}

.hero-score-copy.is-extra-long-score em {
  font-size: 14px;
}

.hero-divider {
  width: 2px;
  height: 86px;
  justify-self: center;
  background: linear-gradient(180deg, transparent, rgba(195, 203, 192, 0.22), transparent);
  transform: skewX(-14deg);
}

.hero-status {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 0;
  color: var(--amber);
  text-align: right;
}

.hero-status strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--amber);
  font-size: 24px;
  font-weight: 950;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.hero-status.is-long-status strong {
  font-size: 20px;
}

.hero-status span {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rate-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
  padding: 16px 18px;
  color: var(--soft);
  font-size: 20px;
  font-weight: 750;
}

.rate-line span {
  min-width: 0;
}

.rate-line span:last-child {
  color: var(--muted);
  text-align: right;
}

.hero-extra-stack {
  display: grid;
  gap: 0;
}

.result-comment {
  border-bottom: 1px solid var(--line-soft);
  padding: 13px 18px;
  background: rgba(255, 177, 59, 0.08);
  color: var(--amber);
  font-size: 16px;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

.result-comment strong {
  color: var(--text);
}

.win-probability {
  display: grid;
  gap: 10px;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 18px 16px;
  background: var(--bg-raised);
}

.probability-meter {
  display: grid;
  gap: 10px;
}

.probability-sides {
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(0, 1fr));
  align-items: end;
  gap: 12px;
}

.probability-side {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: center;
}

.probability-side span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.probability-side strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.probability-side.is-right {
  justify-items: end;
  text-align: right;
}

.probability-side.is-middle {
  justify-items: center;
  text-align: center;
}

.probability-bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.probability-segment {
  display: block;
  flex: 0 0 var(--size);
  width: var(--size);
  height: 100%;
}

.probability-segment.is-1 {
  background: linear-gradient(90deg, var(--mint), var(--teal));
  box-shadow: 0 0 16px rgba(255, 177, 59, 0.26);
}

.probability-segment.is-2 {
  background: linear-gradient(90deg, var(--coral), var(--amber));
}

.probability-segment.is-3 {
  background: linear-gradient(90deg, var(--sky), var(--rose));
}

.over-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 14px 18px;
  background: var(--bg-raised);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.over-block {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
}

.over-block strong,
.over-block em {
  color: var(--soft);
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.over-block em {
  color: var(--muted);
}

.over-block div {
  display: flex;
  gap: 5px;
}

.over-block .ball-chip {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.075);
  color: var(--soft);
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.26);
}

.over-block .ball-chip.has-emoji {
  width: auto;
  min-width: 42px;
  padding: 0 7px;
  border-radius: 999px;
}

.ball-emoji {
  font-size: 12px;
  line-height: 1;
  transform: translateY(-1px);
}

.over-block .ball-chip.is-six {
  border-color: rgba(255, 177, 59, 0.68);
  background: linear-gradient(180deg, rgba(255, 177, 59, 0.38), rgba(255, 177, 59, 0.15));
  color: #fff4d8;
  box-shadow: 0 0 14px rgba(255, 177, 59, 0.26), inset 0 -2px 0 rgba(94, 43, 9, 0.42);
}

.over-block .ball-chip.is-four {
  border-color: rgba(70, 224, 194, 0.58);
  background: linear-gradient(180deg, rgba(70, 224, 194, 0.32), rgba(70, 224, 194, 0.12));
  color: #d6fff8;
  box-shadow: 0 0 12px rgba(70, 224, 194, 0.2), inset 0 -2px 0 rgba(0, 54, 49, 0.44);
}

.over-block .ball-chip.is-wicket {
  border-color: rgba(255, 63, 79, 0.72);
  background: linear-gradient(180deg, rgba(255, 63, 79, 0.42), rgba(255, 63, 79, 0.16));
  color: #ffe7e3;
  box-shadow: 0 0 14px rgba(255, 63, 79, 0.24), inset 0 -2px 0 rgba(88, 12, 3, 0.42);
}

.over-block .ball-chip.is-extra {
  border-color: rgba(255, 209, 61, 0.58);
  background: linear-gradient(180deg, rgba(255, 209, 61, 0.3), rgba(255, 209, 61, 0.12));
  color: #fff3bf;
}

.over-block .ball-chip.is-run {
  border-color: rgba(76, 167, 255, 0.45);
  background: rgba(76, 167, 255, 0.13);
  color: #d8ecff;
}

.over-block .ball-chip.is-dot {
  border-color: rgba(215, 229, 207, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

:root[data-theme="light"] .over-strip {
  background: #fff8ec;
  border-color: rgba(217, 191, 163, 0.68);
}

:root[data-theme="light"] .over-block strong {
  color: #211712;
}

:root[data-theme="light"] .over-block em {
  color: #554236;
}

:root[data-theme="light"] .over-block .ball-chip {
  border-color: rgba(88, 66, 50, 0.24);
  background: #fffdf8;
  color: #1d1510;
  box-shadow: 0 2px 7px rgba(96, 48, 24, 0.13), inset 0 -2px 0 rgba(96, 48, 24, 0.08);
}

:root[data-theme="light"] .over-block .ball-chip.is-six {
  border-color: rgba(184, 108, 0, 0.52);
  background: linear-gradient(180deg, #ffe19a, #fff5d6);
  color: #4a2600;
}

:root[data-theme="light"] .over-block .ball-chip.is-four {
  border-color: rgba(0, 143, 128, 0.42);
  background: linear-gradient(180deg, #c8fff2, #f0fffb);
  color: #003e37;
}

:root[data-theme="light"] .over-block .ball-chip.is-wicket {
  border-color: rgba(217, 37, 56, 0.5);
  background: linear-gradient(180deg, #ffd9dc, #fff3f0);
  color: #69101b;
}

:root[data-theme="light"] .over-block .ball-chip.is-extra {
  border-color: rgba(184, 108, 0, 0.42);
  background: #fff0c2;
  color: #4d2a00;
}

:root[data-theme="light"] .over-block .ball-chip.is-run {
  border-color: rgba(36, 94, 199, 0.32);
  background: #e9f1ff;
  color: #14346c;
}

:root[data-theme="light"] .over-block .ball-chip.is-dot {
  border-color: rgba(88, 66, 50, 0.2);
  background: #f6eadb;
  color: #6a5547;
}

.folder-card {
  min-width: 0;
  margin: 0 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.folder-card h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
}

.folder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.folder-item,
.info-row {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.folder-item span,
.info-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.folder-item strong,
.info-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

.table-card {
  padding-top: 14px;
  padding-bottom: 14px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 70px 40px 40px 54px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
}

.table-head.bowler,
.table-row.bowler {
  grid-template-columns: minmax(0, 1.6fr) 58px 58px 58px;
}

.table-head {
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.table-row {
  border-top: 1px solid var(--line-soft);
  color: var(--soft);
  font-size: 14px;
}

.table-row.is-striker {
  background: linear-gradient(90deg, rgba(73, 215, 197, 0.08), transparent 72%);
}

.table-row strong,
.table-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-row strong {
  color: var(--text);
  font-weight: 850;
}

.batter-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.batter-name > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strike-indicator {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(73, 215, 197, 0.36);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(73, 215, 197, 0.1);
  color: var(--teal);
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.strike-indicator::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(73, 215, 197, 0.12);
}

.table-row span:not(:first-child),
.table-head span:not(:first-child) {
  text-align: right;
}

.mini-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.mini-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.innings-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.innings-pill {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
}

.innings-pill.is-active {
  border-color: rgba(73, 215, 197, 0.44);
  background: rgba(73, 215, 197, 0.08);
  box-shadow: inset 0 -2px 0 var(--teal);
}

.innings-pill span,
.innings-pill small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.innings-pill strong {
  overflow: hidden;
  color: var(--text);
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-extra,
.yet-to-bat,
.empty-line {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.match-action-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 9px;
  margin: -2px 0 12px;
}

.match-action {
  min-width: 0;
  border: 1px solid rgba(255, 177, 59, 0.2);
  border-radius: 8px;
  padding: 10px 8px;
  background:
    linear-gradient(135deg, rgba(255, 63, 79, 0.1), rgba(255, 177, 59, 0.05)),
    var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 950;
}

.match-action.is-active {
  border-color: rgba(255, 63, 79, 0.54);
  color: var(--mint);
  box-shadow: inset 0 -2px 0 rgba(255, 63, 79, 0.72);
}

:root[data-theme="light"] .match-action {
  border-color: rgba(184, 108, 0, 0.24);
  background: linear-gradient(135deg, rgba(255, 63, 79, 0.08), rgba(0, 143, 128, 0.055)), #fffaf1;
  color: #1b130f;
}

:root[data-theme="light"] .match-action.is-active {
  color: #006c61;
}

.data-table {
  max-width: 100%;
  min-width: 0;
  display: grid;
  margin-top: 14px;
  overflow-x: auto;
}

.data-head,
.data-row {
  display: grid;
  grid-template-columns: minmax(162px, 1.7fr) repeat(var(--stat-cols), 52px);
  min-width: 462px;
  border-bottom: 1px solid var(--line-soft);
}

.data-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.data-row {
  color: var(--soft);
  font-size: 13px;
}

.data-head span,
.data-row span {
  min-width: 0;
  overflow: hidden;
  padding: 10px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-head span:not(:first-child),
.data-row span:not(:first-child) {
  text-align: right;
}

.scorecard-table {
  overflow: visible;
}

.scorecard-table .data-head,
.scorecard-table .data-row {
  min-width: 0;
  align-items: center;
  border-color: rgba(255, 177, 59, 0.12);
}

.scorecard-batting .data-head,
.scorecard-batting .data-row {
  grid-template-columns: minmax(0, 1fr) 38px 38px 34px 34px 46px;
}

.scorecard-bowling .data-head,
.scorecard-bowling .data-row {
  grid-template-columns: minmax(0, 1fr) 42px 42px 42px 46px;
}

.scorecard-table .data-row {
  min-height: 58px;
  background: linear-gradient(90deg, rgba(73, 215, 197, 0.03), transparent 42%);
}

.scorecard-table .data-head span,
.scorecard-table .data-row span {
  overflow: visible;
  padding: 11px 5px;
  text-overflow: clip;
  white-space: normal;
}

.scorecard-table .data-head span:not(:first-child),
.scorecard-table .data-row span:not(:first-child) {
  white-space: nowrap;
}

.player-cell {
  display: grid;
  gap: 3px;
  align-content: center;
}

.player-cell strong {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.player-cell small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.info-list {
  display: grid;
  gap: 10px;
}

.weather-card strong {
  display: block;
  color: var(--teal);
  font-size: 36px;
  font-weight: 950;
  line-height: 1;
}

.weather-card p {
  margin: 10px 0 0;
  color: var(--soft);
  line-height: 1.45;
}

.loading-card p,
.result-line {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.debug-drawer {
  margin: 0 18px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.debug-drawer label {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.debug-drawer span {
  color: var(--muted);
  font-size: 13px;
}

.debug-drawer input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--bg-raised);
  color: var(--text);
}

.debug-drawer button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--teal);
  color: #05100f;
  font-weight: 900;
}

@media (max-width: 390px) {
  .app-header {
    grid-template-columns: 76px minmax(0, 1fr) 84px;
    padding-inline: 12px;
  }

  .header-spacer {
    width: 34px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-action {
    width: 36px;
    height: 36px;
  }

  .top-tabs {
    gap: 5px;
    padding-inline: 10px;
  }

  .top-tab {
    font-size: 13px;
  }

  .ad-slot-shell,
  .ad-slot-detail,
  .ad-slot-compact,
  .folder-card,
  .detail-match-card {
    margin-left: 12px;
    margin-right: 12px;
  }

  .list-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .match-card,
  .detail-match-card {
    padding: 14px;
  }

  .match-main {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    gap: 7px;
  }

  .card-team {
    gap: 8px;
  }

  .team-logo-wrap {
    width: 44px;
    height: 44px;
  }

  .team-logo-wrap.large {
    width: 52px;
    height: 52px;
  }

  .team-copy strong {
    font-size: 19px;
  }

  .team-copy small {
    font-size: 12px;
  }

  .card-versus {
    width: 52px;
    height: 52px;
  }

  .hero-score-main {
    grid-template-columns: minmax(0, 1fr) 10px minmax(70px, 0.3fr);
    gap: 7px;
    min-height: 128px;
    padding: 16px 12px;
  }

  .hero-team-score {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 9px;
  }

  .hero-team-line span {
    font-size: 23px;
  }

  .hero-score-copy strong {
    font-size: 31px;
  }

  .hero-score-copy em {
    font-size: 16px;
  }

  .hero-score-copy.is-medium-score strong {
    font-size: 28px;
  }

  .hero-score-copy.is-medium-score em {
    font-size: 15px;
  }

  .hero-score-copy.is-long-score strong {
    font-size: 24px;
  }

  .hero-score-copy.is-long-score em {
    font-size: 13px;
  }

  .hero-score-copy.is-extra-long-score strong {
    font-size: 21px;
  }

  .hero-score-copy.is-extra-long-score em {
    font-size: 12px;
  }

  .hero-status strong {
    font-size: 19px;
  }

  .hero-status.is-long-status strong {
    font-size: 16px;
  }

  .hero-divider {
    height: 72px;
  }

  .rate-line {
    padding-inline: 12px;
    font-size: 17px;
  }

  .table-head,
  .table-row {
    grid-template-columns: minmax(0, 1.35fr) 62px 34px 34px 46px;
    gap: 6px;
    font-size: 12px;
  }

  .table-head.bowler,
  .table-row.bowler {
    grid-template-columns: minmax(0, 1.5fr) 50px 50px 50px;
  }
}

@media (min-width: 760px) {
  body {
    background:
      linear-gradient(90deg, #030503, #11140f 50%, #030503);
  }

  .phone-shell {
    min-height: 920px;
  }
}
