:root {
  --cv-bg: #07111f;
  --cv-panel: #0e1a2b;
  --cv-panel-2: #13243a;
  --cv-panel-3: #172a43;
  --cv-line: rgba(148, 174, 208, 0.2);
  --cv-line-strong: rgba(148, 174, 208, 0.34);
  --cv-text: #f4f7fb;
  --cv-muted: #aab5c6;
  --cv-dim: #778399;
  --cv-gold: #d7b56d;
  --cv-gold-soft: rgba(215, 181, 109, 0.12);
  --cv-blue: #47bfff;
  --cv-blue-soft: rgba(71, 191, 255, 0.1);
  --cv-green: #35c98a;
  --cv-amber: #f3b64c;
  --cv-red: #ef716b;
}

html {
  background: var(--cv-bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -180px, rgba(37, 90, 139, 0.22), transparent 420px),
    var(--cv-bg);
  color: var(--cv-text);
  font-family: Inter, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app.caesar-v41-active {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 0;
  background: transparent;
}

#app.caesar-v41-active #page-root {
  min-height: 100vh;
}

.app-shell.caesar-v41-active-shell {
  max-width: none;
  background: transparent;
}

.screen.cv41-r3-host {
  padding-bottom: 0;
  background: transparent;
}

.cv41-shell > .top-nav {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 14px;
  padding: 8px;
  overflow: visible;
  border: 1px solid var(--cv-line);
  border-radius: 14px;
  background: rgba(14, 26, 43, 0.8);
}

.cv41-shell > .top-nav button {
  min-width: 0;
  min-height: 46px;
  padding: 5px 3px;
  color: var(--cv-muted);
  border-radius: 9px;
}

.cv41-shell > .top-nav button.active {
  color: var(--cv-gold);
  background: var(--cv-gold-soft);
}

.cv41-shell > .top-nav button::after {
  display: none;
}

.cv41-shell > .top-nav .nav-icon {
  width: 23px;
  height: 23px;
  color: var(--cv-gold);
  background: transparent;
  box-shadow: none;
}

button,
input,
summary {
  font: inherit;
}

button,
summary {
  -webkit-tap-highlight-color: transparent;
}

.cv41-shell {
  width: min(100%, 760px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 16px 96px;
  box-sizing: border-box;
  color: var(--cv-text);
}

.cv41-app-head,
.cv41-detail-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--cv-line);
}

.cv41-brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.cv41-brand span {
  color: var(--cv-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cv41-brand strong,
.cv41-detail-head > strong {
  color: var(--cv-gold);
  font-size: 20px;
  letter-spacing: 0.05em;
}

.cv41-account-link,
.cv41-detail-head button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--cv-muted);
  cursor: pointer;
}

.cv41-detail-head button:first-child {
  color: var(--cv-text);
  font-size: 32px;
  line-height: 1;
  text-align: left;
}

.cv41-detail-head button:last-child {
  color: var(--cv-gold);
  font-weight: 900;
}

.cv41-period-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--cv-line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(19, 36, 58, 0.98), rgba(12, 26, 43, 0.96));
}

.cv41-period-card > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 8px;
}

.cv41-period-card span {
  color: var(--cv-muted);
  font-size: 12px;
}

.cv41-period-card strong {
  color: var(--cv-text);
  font-size: 18px;
}

.cv41-period-card small {
  grid-column: 1 / -1;
  color: var(--cv-blue);
  font-size: 12px;
}

.cv41-date-control {
  position: relative;
  flex: 0 0 auto;
}

.cv41-date-control span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.cv41-date-control input {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--cv-line-strong);
  border-radius: 13px;
  background: var(--cv-panel-2);
  color: var(--cv-gold);
  color-scheme: dark;
  cursor: pointer;
}

.cv41-date-control input::-webkit-datetime-edit {
  display: none;
}

.cv41-date-control input::-webkit-calendar-picker-indicator {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 10px;
  opacity: 0.9;
  cursor: pointer;
}

.cv41-filter-row,
.cv41-sticky-nav,
.cv41-subtabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.cv41-filter-row::-webkit-scrollbar,
.cv41-sticky-nav::-webkit-scrollbar,
.cv41-subtabs::-webkit-scrollbar {
  display: none;
}

.cv41-filter-row {
  margin-bottom: 14px;
}

.cv41-filter-row button,
.cv41-sticky-nav button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid var(--cv-line-strong);
  border-radius: 999px;
  background: var(--cv-panel);
  color: var(--cv-muted);
  cursor: pointer;
}

.cv41-filter-row button.active,
.cv41-sticky-nav button.active {
  border-color: var(--cv-gold);
  background: var(--cv-gold-soft);
  color: var(--cv-gold);
}

.cv41-match-list {
  display: grid;
  gap: 14px;
}

.cv41-match-card,
.cv41-panel,
.cv41-match-hero {
  border: 1px solid var(--cv-line);
  border-radius: 18px;
  background: rgba(14, 26, 43, 0.97);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.cv41-match-card {
  padding: 14px;
  cursor: pointer;
}

.cv41-card-head,
.cv41-card-head > div:first-child,
.cv41-tags,
.cv41-card-foot {
  display: flex;
  align-items: center;
}

.cv41-card-head {
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cv-line);
}

.cv41-card-head > div:first-child {
  min-width: 0;
  gap: 10px;
}

.cv41-card-head strong {
  flex: 0 0 auto;
  color: var(--cv-gold);
  font-size: 17px;
}

.cv41-card-head > div:first-child span {
  overflow: hidden;
  color: var(--cv-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv41-tags {
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.cv41-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--cv-line-strong);
  border-radius: 999px;
  color: var(--cv-muted);
  font-size: 11px;
  white-space: nowrap;
}

.cv41-tag.gold {
  border-color: rgba(215, 181, 109, 0.7);
  color: var(--cv-gold);
}

.cv41-tag.cyan {
  border-color: rgba(71, 191, 255, 0.65);
  color: var(--cv-blue);
}

.cv41-tag.amber {
  border-color: rgba(243, 182, 76, 0.65);
  color: var(--cv-amber);
}

.cv41-tag.live {
  border-color: rgba(239, 113, 107, 0.7);
  color: #ffaaa6;
}

.cv41-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 104px;
  padding: 12px 2px;
}

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

.cv41-team.away {
  flex-direction: row-reverse;
  text-align: right;
}

.cv41-team > strong {
  overflow: hidden;
  color: var(--cv-text);
  font-size: 17px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.cv41-crest {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(215, 181, 109, 0.72);
  border-radius: 50%;
  background: var(--cv-panel-3);
}

.cv41-crest-away {
  border-color: rgba(71, 191, 255, 0.72);
}

.cv41-crest-fallback {
  color: var(--cv-gold);
  font-size: 18px;
  font-weight: 900;
}

.cv41-crest img {
  position: absolute;
  inset: 4px;
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  object-fit: contain;
  background: var(--cv-panel-3);
}

.cv41-vs {
  color: var(--cv-gold);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.cv41-observation {
  padding: 10px 0 12px;
  border-top: 1px solid var(--cv-line);
}

.cv41-observation span,
.cv41-analysis-note strong {
  color: var(--cv-gold);
  font-size: 13px;
  font-weight: 800;
}

.cv41-observation p,
.cv41-analysis-note p {
  margin: 5px 0 0;
  color: var(--cv-muted);
  font-size: 14px;
  line-height: 1.65;
}

.cv41-card-foot {
  align-items: stretch;
  gap: 8px;
}

.cv41-list-odds {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  align-items: center;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  overflow: hidden;
}

.cv41-list-odds > * {
  min-width: 0;
  padding: 8px 7px;
  border-right: 1px solid var(--cv-line);
  color: var(--cv-muted);
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
}

.cv41-list-odds > *:last-child {
  border-right: 0;
}

.cv41-list-odds b,
.cv41-list-odds strong {
  color: var(--cv-gold);
}

.cv41-list-odds.missing {
  grid-template-columns: auto 1fr;
}

.cv41-card-foot > button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1px solid var(--cv-gold);
  border-radius: 12px;
  background: transparent;
  color: var(--cv-gold);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cv41-card-foot > button span {
  font-size: 18px;
}

.cv41-empty,
.cv41-error,
.cv41-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 42px 20px;
  color: var(--cv-muted);
  text-align: center;
}

.cv41-empty strong,
.cv41-error h2,
.cv41-loading h2 {
  color: var(--cv-text);
}

.cv41-match-hero {
  position: relative;
  margin: 14px 0;
  padding: 18px 16px;
  overflow: hidden;
  text-align: center;
}

.cv41-match-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 62, 96, 0.24), transparent 58%),
    repeating-linear-gradient(90deg, transparent 0 45px, rgba(255,255,255,.016) 46px);
  content: "";
  pointer-events: none;
}

.cv41-match-hero > * {
  position: relative;
}

.cv41-match-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--cv-muted);
  font-size: 13px;
}

.cv41-match-meta strong {
  color: var(--cv-gold);
}

.cv41-match-hero time,
.cv41-match-hero > p {
  display: block;
  margin-top: 5px;
  color: var(--cv-muted);
  font-size: 13px;
}

.cv41-hero-teams {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
}

.cv41-hero-teams > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.cv41-hero-teams > div strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--cv-text);
  font-size: 18px;
  text-overflow: ellipsis;
}

.cv41-hero-teams > span {
  color: var(--cv-gold);
  font-size: 24px;
  font-weight: 900;
}

.cv41-match-hero .cv41-tags {
  justify-content: center;
  margin-top: 12px;
}

.cv41-panel {
  margin-bottom: 14px;
  padding: 16px;
}

.cv41-section-head,
.cv41-section-head > div {
  display: flex;
  align-items: baseline;
}

.cv41-section-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cv41-section-head > div {
  min-width: 0;
  gap: 9px;
}

.cv41-section-head h2 {
  margin: 0;
  color: var(--cv-gold);
  font-size: 17px;
  line-height: 1.45;
}

.cv41-section-head span {
  color: var(--cv-dim);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.cv41-section-head small {
  color: var(--cv-muted);
  font-size: 11px;
  text-align: right;
}

.cv41-lead,
.cv41-section-intro,
.cv41-conclusion > p {
  margin: 0;
  color: var(--cv-muted);
  font-size: 14px;
  line-height: 1.75;
}

.cv41-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.cv41-signal-grid > div,
.cv41-status-grid > div,
.cv41-panorama-grid > div,
.cv41-fact-grid > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  background: var(--cv-panel-2);
}

.cv41-signal-grid span,
.cv41-status-grid span,
.cv41-panorama-grid span,
.cv41-fact-grid span {
  color: var(--cv-muted);
  font-size: 12px;
}

.cv41-signal-grid strong,
.cv41-status-grid strong,
.cv41-panorama-grid strong,
.cv41-fact-grid strong {
  color: var(--cv-gold);
  font-size: 13px;
  line-height: 1.45;
}

.cv41-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -16px 14px;
  padding: 8px 16px;
  border-block: 1px solid var(--cv-line);
  background: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(12px);
}

.cv41-sticky-nav button {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

.cv41-panel h3 {
  margin: 0 0 10px;
  color: var(--cv-text);
  font-size: 14px;
}

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

.cv41-odds-grid > div {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  background: var(--cv-panel-2);
}

.cv41-odds-grid span,
.cv41-rq-card span {
  color: var(--cv-muted);
  font-size: 12px;
}

.cv41-odds-grid strong,
.cv41-rq-card strong {
  color: var(--cv-blue);
  font-family: Inter, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.cv41-odds-grid > div:first-child strong,
.cv41-rq-card > div:first-child strong {
  color: var(--cv-gold);
}

.cv41-rq-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  background: var(--cv-panel-2);
}

.cv41-rq-card > div {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 11px 5px;
  border-right: 1px solid var(--cv-line);
}

.cv41-rq-card > div:last-child {
  border-right: 0;
}

.cv41-rq-card strong {
  font-size: 15px;
}

.cv41-odds-groups {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.cv41-odds-detail {
  overflow: hidden;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  background: rgba(19, 36, 58, 0.55);
}

.cv41-odds-detail summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--cv-text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.cv41-odds-detail summary::-webkit-details-marker {
  display: none;
}

.cv41-odds-detail summary small {
  color: var(--cv-gold);
  font-size: 11px;
  font-weight: 600;
}

.cv41-odd-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 10px 10px;
}

.cv41-odd-chip-grid > div {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 9px 4px;
  border: 1px solid var(--cv-line);
  border-radius: 9px;
  background: var(--cv-panel-2);
}

.cv41-odd-chip-grid span {
  color: var(--cv-muted);
  font-size: 11px;
}

.cv41-odd-chip-grid strong {
  color: var(--cv-blue);
  font-family: Inter, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.cv41-analysis-note,
.cv41-xg-card,
.cv41-freeze-note {
  margin-top: 12px;
  padding: 12px;
  border-left: 2px solid var(--cv-gold);
  border-radius: 0 10px 10px 0;
  background: var(--cv-gold-soft);
}

.cv41-xg-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
}

.cv41-xg-card span,
.cv41-xg-card p {
  color: var(--cv-muted);
  font-size: 12px;
}

.cv41-xg-card strong {
  color: var(--cv-gold);
  font-size: 13px;
}

.cv41-xg-card p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.55;
}

.cv41-missing {
  padding: 14px;
  border: 1px dashed var(--cv-line-strong);
  border-radius: 12px;
  background: rgba(19, 36, 58, 0.45);
}

.cv41-missing span {
  color: var(--cv-amber);
  font-size: 12px;
  font-weight: 800;
}

.cv41-missing p {
  margin: 5px 0 0;
  color: var(--cv-muted);
  font-size: 13px;
  line-height: 1.6;
}

.cv41-compare-teams,
.cv41-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.cv41-compare-teams {
  margin-bottom: 8px;
  color: var(--cv-text);
  text-align: center;
}

.cv41-compare-teams strong:first-child {
  text-align: left;
}

.cv41-compare-teams strong:last-child {
  text-align: right;
}

.cv41-compare-teams span {
  color: var(--cv-dim);
  font-size: 11px;
}

.cv41-compare-list {
  overflow: hidden;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
}

.cv41-compare-row {
  min-height: 46px;
  padding: 0 12px;
  border-bottom: 1px solid var(--cv-line);
}

.cv41-compare-row:last-child {
  border-bottom: 0;
}

.cv41-compare-row strong {
  color: var(--cv-blue);
  font-size: 14px;
}

.cv41-compare-row strong:last-child {
  color: var(--cv-gold);
  text-align: right;
}

.cv41-compare-row span {
  color: var(--cv-muted);
  font-size: 12px;
  text-align: center;
}

.cv41-subtabs {
  margin-bottom: 12px;
}

.cv41-subtabs span {
  min-height: 34px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--cv-line);
  border-radius: 999px;
  color: var(--cv-muted);
  font-size: 12px;
}

.cv41-subtabs span.active {
  border-color: var(--cv-gold);
  color: var(--cv-gold);
}

.cv41-formation-grid,
.cv41-two-column,
.cv41-status-grid,
.cv41-panorama-grid,
.cv41-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cv41-formation-grid {
  margin-bottom: 10px;
}

.cv41-formation-grid > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  background: var(--cv-panel-2);
}

.cv41-formation-grid span {
  color: var(--cv-muted);
  font-size: 12px;
}

.cv41-formation-grid strong {
  color: var(--cv-gold);
}

.cv41-two-column > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  background: rgba(19, 36, 58, 0.55);
}

.cv41-two-column h3 {
  color: var(--cv-muted);
}

.cv41-absence-list {
  display: grid;
  gap: 8px;
}

.cv41-absence-list > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid var(--cv-line);
}

.cv41-absence-list strong {
  color: var(--cv-text);
  font-size: 13px;
}

.cv41-absence-list span,
.cv41-quiet-empty {
  color: var(--cv-muted);
  font-size: 12px;
  line-height: 1.5;
}

.cv41-status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.cv41-status-grid strong {
  color: var(--cv-muted);
  font-size: 12px;
}

.cv41-intel-list {
  display: grid;
  gap: 8px;
}

.cv41-derby {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid var(--cv-line);
  border-radius: 11px;
  background: var(--cv-panel-2);
}

.cv41-derby span {
  color: var(--cv-muted);
  font-size: 12px;
}

.cv41-derby strong {
  color: var(--cv-muted);
  font-size: 12px;
}

.cv41-derby.confirmed {
  border-color: rgba(215, 181, 109, 0.55);
  background: var(--cv-gold-soft);
}

.cv41-derby.confirmed strong {
  color: var(--cv-gold);
}

.cv41-intel-list article {
  padding: 12px;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  background: var(--cv-panel-2);
}

.cv41-intel-list article.positive {
  border-left: 2px solid var(--cv-green);
}

.cv41-intel-list article.risk {
  border-left: 2px solid var(--cv-red);
}

.cv41-intel-list article > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cv41-intel-list article strong {
  color: var(--cv-gold);
  font-size: 13px;
}

.cv41-intel-list article span {
  color: var(--cv-blue);
  font-size: 11px;
}

.cv41-intel-list p {
  margin: 7px 0 0;
  color: var(--cv-muted);
  font-size: 13px;
  line-height: 1.65;
}

.cv41-intel-list p b {
  margin-right: 6px;
  color: var(--cv-text);
}

.cv41-panorama-grid {
  margin-bottom: 10px;
}

.cv41-panorama-grid strong {
  color: var(--cv-muted);
  font-weight: 600;
}

.cv41-details,
.cv41-five-list details {
  overflow: hidden;
  border: 1px solid var(--cv-line);
  border-radius: 12px;
  background: rgba(19, 36, 58, 0.5);
}

.cv41-details + .cv41-details,
.cv41-five-list details + details {
  margin-top: 8px;
}

.cv41-details summary,
.cv41-five-list summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  color: var(--cv-text);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.cv41-details summary::-webkit-details-marker,
.cv41-five-list summary::-webkit-details-marker {
  display: none;
}

.cv41-details summary::after,
.cv41-five-list summary::after {
  color: var(--cv-gold);
  content: "＋";
}

.cv41-details[open] summary::after,
.cv41-five-list details[open] summary::after {
  content: "－";
}

.cv41-details > .cv41-fact-grid,
.cv41-details > .cv41-missing,
.cv41-details > .cv41-performance-list {
  margin: 0 10px 10px;
}

.cv41-performance-list {
  display: grid;
  gap: 7px;
}

.cv41-performance-list article {
  padding: 10px;
  border: 1px solid var(--cv-line);
  border-radius: 9px;
  background: var(--cv-panel-2);
}

.cv41-performance-list span {
  color: var(--cv-gold);
  font-size: 11px;
}

.cv41-performance-list p {
  margin: 5px 0 0;
  color: var(--cv-muted);
  font-size: 12px;
  line-height: 1.6;
}

.cv41-fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cv41-fact-grid strong {
  color: var(--cv-text);
}

.cv41-section-intro {
  margin-bottom: 12px;
}

.cv41-five-list summary {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr) auto 18px;
}

.cv41-five-list summary span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cv-text);
}

.cv41-five-list summary b {
  color: var(--cv-gold);
}

.cv41-five-list summary > strong {
  overflow: hidden;
  color: var(--cv-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv41-five-list summary small {
  color: var(--cv-blue);
  font-size: 11px;
  font-weight: 600;
}

.cv41-five-list details > p {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--cv-muted);
  font-size: 13px;
  line-height: 1.6;
}

.cv41-conclusion dl {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--cv-line);
}

.cv41-conclusion dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cv41-conclusion dt,
.cv41-conclusion dd,
.cv41-conclusion > small {
  margin: 0;
  color: var(--cv-dim);
  font-size: 11px;
}

.cv41-conclusion dd {
  color: var(--cv-muted);
  text-align: right;
}

.cv41-freeze-note {
  color: var(--cv-gold);
  font-size: 12px;
  line-height: 1.55;
}

.cv41-conclusion > small {
  display: block;
  margin-top: 12px;
  text-align: center;
}

.cv41-pulse {
  width: 46px;
  height: 46px;
  border: 2px solid var(--cv-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(215, 181, 109, 0.08);
  animation: cv41-pulse 1.5s ease-in-out infinite;
}

.cv41-loading > div {
  width: min(100%, 280px);
  display: grid;
  gap: 8px;
}

.cv41-loading i {
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cv-panel-2), rgba(71, 191, 255, 0.16), var(--cv-panel-2));
  background-size: 200% 100%;
  animation: cv41-shimmer 1.6s linear infinite;
}

.cv41-error button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--cv-gold);
  border-radius: 12px;
  background: transparent;
  color: var(--cv-gold);
  cursor: pointer;
}

@keyframes cv41-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.65; }
  50% { transform: scale(1); opacity: 1; }
}

@keyframes cv41-shimmer {
  to { background-position: -200% 0; }
}

.bottom-nav {
  min-height: 68px !important;
  padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
  border-top: 1px solid var(--cv-line) !important;
  background: rgba(7, 17, 31, 0.96) !important;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(16px);
}

.bottom-nav .nav-item {
  min-width: 52px;
  min-height: 52px;
  color: var(--cv-dim) !important;
}

.bottom-nav .nav-item.active {
  color: var(--cv-gold) !important;
}

.bottom-nav .nav-symbol {
  color: currentColor !important;
}

@media (max-width: 520px) {
  .cv41-shell {
    padding-inline: 16px;
  }

  .cv41-sticky-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .cv41-sticky-nav button {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding-inline: 5px;
  }

  .cv41-card-head {
    align-items: flex-start;
  }

  .cv41-card-head .cv41-tags .cv41-tag:nth-child(n + 3) {
    display: none;
  }

  .cv41-card-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cv41-card-foot > button {
    padding-inline: 11px;
    font-size: 12px;
  }

  .cv41-two-column,
  .cv41-status-grid,
  .cv41-fact-grid {
    grid-template-columns: 1fr;
  }

  .cv41-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv41-odd-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cv41-five-list summary {
    grid-template-columns: minmax(84px, auto) minmax(0, 1fr) 18px;
  }

  .cv41-five-list summary small {
    display: none;
  }
}

@media (max-width: 365px) {
  .cv41-shell {
    padding-inline: 12px;
  }

  .cv41-sticky-nav {
    margin-inline: -12px;
    padding-inline: 12px;
  }

  .cv41-card-head > div:first-child {
    display: grid;
    gap: 2px;
  }

  .cv41-team {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
  }

  .cv41-team.away {
    display: grid;
    text-align: center;
  }

  .cv41-team > strong {
    font-size: 15px;
  }

  .cv41-card-foot {
    grid-template-columns: 1fr;
  }

  .cv41-card-foot > button {
    width: 100%;
  }

  .cv41-list-odds > * {
    padding-inline: 4px;
  }

  .cv41-rq-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv41-rq-card > div:nth-child(2) {
    border-right: 0;
  }

  .cv41-rq-card > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--cv-line);
  }

  .cv41-odd-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  body {
    background:
      radial-gradient(circle at 50% -240px, rgba(37, 90, 139, 0.25), transparent 620px),
      var(--cv-bg);
  }

  .cv41-list-page {
    width: min(100%, 1120px);
  }

  .cv41-list-page .cv41-match-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cv41-list-page .cv41-app-head,
  .cv41-list-page .cv41-period-card,
  .cv41-list-page .cv41-filter-row {
    max-width: 820px;
    margin-inline: auto;
  }

  .cv41-detail-page {
    width: min(100%, 1200px);
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(320px, 400px);
    align-items: start;
    gap: 16px 20px;
    padding-top: 0;
  }

  .cv41-detail-page .cv41-detail-head {
    grid-column: 1 / -1;
  }

  .cv41-detail-page .cv41-match-hero {
    grid-column: 1;
    margin: 0;
  }

  .cv41-detail-page > .cv41-overview {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  .cv41-detail-page > .cv41-sticky-nav {
    grid-column: 1 / -1;
    margin: 0;
    border: 1px solid var(--cv-line);
    border-radius: 14px;
  }

  .cv41-detail-flow {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(320px, 400px);
    align-items: start;
    gap: 16px 20px;
  }

  .cv41-detail-flow > * {
    margin: 0;
  }

  .cv41-detail-flow #cv41-odds { grid-column: 1; grid-row: 1; }
  .cv41-detail-flow #cv41-strength { grid-column: 1; grid-row: 2; }
  .cv41-detail-flow #cv41-lineup { grid-column: 1; grid-row: 3; }
  .cv41-detail-flow #cv41-intel { grid-column: 1; grid-row: 4; }
  .cv41-detail-flow #cv41-data { grid-column: 1; grid-row: 5; }
  .cv41-detail-flow #cv41-five {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 70px;
  }
  .cv41-detail-flow .cv41-conclusion {
    grid-column: 2;
    grid-row: 4 / span 2;
  }

  .bottom-nav {
    left: 50% !important;
    width: min(100%, 760px) !important;
    transform: translateX(-50%);
    border-inline: 1px solid var(--cv-line) !important;
    border-radius: 18px 18px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cv41-pulse,
  .cv41-loading i { animation: none; }
}
