.cm-root {
  color: #101114;
  font-family: "Roboto", sans-serif;
  background: #ffffff;
}

.cm-root .cm-app--calendar {
  min-height: 100vh;
}

.cm-root .cm-app--header-only {
  min-height: 0;
}

.cm-root .mundial-header {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.cm-root .mundial-header--light {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cm-root .mundial-header__art,
.cm-root .mundial-header__art .shape,
.cm-root .mundial-header__art .ball-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cm-root .mundial-header__art .shape {
  display: block;
  border-radius: 999px;
  opacity: 0.95;
}

.cm-root .shape--1 {
  width: 28%;
  height: 125%;
  left: -6%;
  top: -18%;
  background: linear-gradient(180deg, #2756e8 0%, #1f49cf 100%);
  transform: rotate(14deg);
}

.cm-root .shape--2 {
  width: 38%;
  height: 88%;
  left: 18%;
  top: -8%;
  background: linear-gradient(180deg, #f6a58a 0%, #f39274 100%);
  transform: rotate(-10deg);
  border-radius: 42% 58% 55% 45% / 44% 44% 56% 56%;
}

.cm-root .shape--3 {
  width: 48%;
  height: 105%;
  right: 8%;
  top: 18%;
  background: linear-gradient(180deg, #1fe5d2 0%, #0fd6c3 100%);
  transform: rotate(-8deg);
  border-radius: 58% 42% 52% 48% / 52% 44% 56% 48%;
}

.cm-root .shape--4 {
  width: 22%;
  height: 80%;
  right: -3%;
  bottom: -18%;
  background: linear-gradient(180deg, #ff473b 0%, #f13024 100%);
  transform: rotate(18deg);
}

.cm-root .ball-lines {
  inset: auto auto 0 0;
  width: 100%;
  height: 60px;
  background:
    radial-gradient(circle at 24% 88%, rgba(0, 0, 0, 0.09) 0 2px, transparent 3px),
    radial-gradient(circle at 31% 76%, rgba(0, 0, 0, 0.07) 0 2px, transparent 3px),
    radial-gradient(circle at 38% 88%, rgba(0, 0, 0, 0.06) 0 2px, transparent 3px),
    repeating-radial-gradient(
      ellipse at center bottom,
      rgba(0, 0, 0, 0.07) 0 2px,
      transparent 2px 14px
    );
  opacity: 0.35;
}

.cm-root .mundial-header__inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cm-root .mundial-header__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  color: #111111;
  text-decoration: none;
  position: relative;
  z-index: 3;
}

.cm-root .mundial-header__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #1f49cf;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.22em;
}

.cm-root .mundial-header__title {
  display: inline-block;
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #101010;
}

.cm-root .mundial-header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.cm-root .mundial-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #111111;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cm-root .mundial-header__link:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.18);
}

.cm-root .mundial-header__link.is-active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.cm-root .cm-shell {
  max-width: 1280px;
  margin: 0 auto !important;
  padding: 20px 20px 44px;
}

.cm-root .cm-panel,
.cm-root .cm-section,
.cm-root .cm-match-card,
.cm-root .cm-empty {
  border: 1px solid #e2e5ea;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
}

.cm-root .cm-toolbar {
  margin-bottom: 18px;
}

.cm-root .cm-panel {
  padding: 18px;
}

.cm-root .cm-panel--filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.cm-root .cm-filter-group {
  display: grid;
  gap: 8px;
}

.cm-root .cm-filter-group--action {
  min-width: 220px;
}

.cm-root .cm-label,
.cm-root .cm-date-chip,
.cm-root .cm-badge,
.cm-root .cm-meta,
.cm-root .cm-button {
  font-family: "DM Sans", sans-serif;
}

.cm-root .cm-label {
  color: #5c6068;
  font-size: 0.84rem;
  font-weight: 600;
}

.cm-root .cm-input,
.cm-root .cm-select,
.cm-root .cm-button {
  border-radius: 14px;
  border: 1px solid #d6d9df;
}

.cm-root .cm-input,
.cm-root .cm-select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  background: #ffffff;
  color: #111111;
  border-color: #d6d9df;
  font: 400 0.95rem/1.2 "DM Sans", sans-serif;
}

.cm-root .cm-input::placeholder {
  color: #8e939c;
}

.cm-root .cm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  background: #c9151b;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 10px 24px rgba(201, 21, 27, 0.18);
}

.cm-root .cm-button:hover {
  transform: translateY(-1px);
}

.cm-root .cm-button--ghost {
  background: #ffffff;
  color: #c9151b;
  border-color: #e1b7ba;
  box-shadow: none;
}

.cm-root .cm-button--toolbar {
  min-width: 220px;
  white-space: nowrap;
}

.cm-root .cm-section {
  padding: 18px;
  margin-bottom: 18px;
}

.cm-root .cm-section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.cm-root .cm-section__eyebrow {
  margin: 0;
  color: #c9151b;
  font: 700 0.72rem/1.2 "DM Sans", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cm-root .cm-section__title {
  margin: 4px 0 0;
  color: #111111;
  font: 700 25px / 27.5px Roboto Serif, Georgia, Times, Times New Roman, serif;
}

.cm-root .cm-summary__inline {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.cm-root .cm-summary__value {
  color: #111111;
  font: 700 clamp(1.35rem, 3.2vw, 1.95rem)/1 "Roboto", sans-serif;
}

.cm-root .cm-section__note,
.cm-root .cm-empty__text {
  margin: 0;
  color: #626771;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cm-root .cm-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.cm-root .cm-match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cm-root .cm-match-card {
  padding: 20px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.cm-root .cm-match-card:hover {
  transform: translateY(-4px);
  border-color: #c9151b;
}

.cm-root .cm-match-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.cm-root .cm-date-chip,
.cm-root .cm-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  font-weight: 700;
}

.cm-root .cm-date-chip {
  background: #f3f5f8;
  color: #545962;
}

.cm-root .cm-badge {
  background: #fff1f1;
  color: #c9151b;
}

.cm-root .cm-match-card__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 0 16px;
  margin-bottom: 16px;
  border-top: 1px solid #eceff3;
  border-top: 1px solid #eceff3;
  border-bottom: 1px solid #eceff3;
}

.cm-root .cm-team-row {
  min-width: 0;
}

.cm-root .cm-team {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.cm-root .cm-team--away {
  justify-content: flex-end;
  text-align: right;
}

.cm-root .cm-team__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 14px;
  background: #f4f6f8;
  color: #4b5058;
  font-weight: 700;
}

.cm-root .cm-team__flag--emoji {
  font-size: 1.35rem;
  line-height: 1;
}

.cm-root .cm-team__name {
  color: #111111;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cm-root .cm-versus {
  padding: 7px 11px;
  border: 1px solid #e1e5eb;
  border-radius: 999px;
  background: #fafbfc;
  color: #6a6f78;
  font: 700 0.76rem/1 "DM Sans", sans-serif;
}

.cm-root .cm-meta-list {
  display: grid;
  gap: 12px;
}

.cm-root .cm-meta-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.cm-root .cm-meta {
  color: #c9151b;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cm-root .cm-meta-text {
  color: #2e333a;
  font-size: 0.92rem;
  line-height: 1.55;
}

.cm-root .cm-empty {
  padding: 30px 20px;
  margin-bottom: 18px;
  text-align: center;
}

.cm-root .cm-empty__title {
  margin: 0 0 8px;
  color: #111111;
  font: 700 1.35rem/1.2 "Roboto", sans-serif;
}

.cm-root .is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .cm-root .cm-panel--filters,
  .cm-root .cm-match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cm-root .cm-filter-group--action {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .cm-root .cm-button--toolbar {
    width: fit-content;
  }
}

@media (max-width: 720px) {
  .cm-root .mundial-header {
    height: 90px;
  }

  .cm-root .mundial-header__inner {
    padding: 10px 12px;
    gap: 10px;
  }

  .cm-root .mundial-header__eyebrow {
    margin-bottom: 4px;
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .cm-root .mundial-header__title {
    font-size: 22px;
  }

  .cm-root .mundial-header__nav {
    gap: 6px;
  }

  .cm-root .mundial-header__link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .cm-root .shape--1 {
    width: 34%;
    height: 140%;
    left: -12%;
    top: -30%;
  }

  .cm-root .shape--2 {
    width: 42%;
    height: 86%;
    left: 20%;
    top: -24%;
  }

  .cm-root .shape--3 {
    width: 54%;
    height: 90%;
    right: 0;
    top: 32%;
  }

  .cm-root .shape--4 {
    width: 18%;
    height: 54%;
    right: -5%;
    bottom: -10%;
  }

  .cm-root .ball-lines {
    height: 26px;
    opacity: 0.25;
  }

  .cm-root .cm-shell {
    padding: 14px 10px 32px;
  }

  .cm-root .cm-panel,
  .cm-root .cm-section,
  .cm-root .cm-match-card {
    border-radius: 22px;
  }

  .cm-root .cm-panel--filters,
  .cm-root .cm-match-grid {
    grid-template-columns: 1fr;
  }

  .cm-root .cm-panel,
  .cm-root .cm-section {
    padding: 16px;
  }

  .cm-root .cm-section__header {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 8px;
  }

  .cm-root .cm-summary__inline {
    justify-items: start;
    text-align: left;
  }

  .cm-root .cm-actions {
    justify-content: flex-start;
  }

  .cm-root .cm-match-card {
    padding: 14px 12px;
  }

  .cm-root .cm-match-card__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
  }

  .cm-root .cm-date-chip,
  .cm-root .cm-badge {
    font-size: 0.74rem;
    padding: 7px 10px;
  }

  .cm-root .cm-match-card__teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-items: stretch;
    gap: 10px;
    padding: 12px 0;
  }

  .cm-root .cm-team-row {
    width: 100%;
    min-width: 0;
  }

  .cm-root .cm-team,
  .cm-root .cm-team--away {
    width: 100%;
    max-width: none;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cm-root .cm-team--away {
    justify-content: flex-start;
    flex-direction: column-reverse;
  }

  .cm-root .cm-team__flag {
    width: 42px;
    height: 42px;
  }

  .cm-root .cm-team__name {
    font-size: 0.98rem;
    line-height: 1.15;
    -webkit-line-clamp: 2;
  }

  .cm-root .cm-versus {
    min-width: 58px;
    padding: 5px 14px;
    background: #fff3f3;
    border-color: #f0d5d7;
    color: #c9151b;
    font-size: 0.76rem;
    text-transform: uppercase;
    align-self: center;
  }

  .cm-root .cm-meta-list {
    gap: 10px;
  }

  .cm-root .cm-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
