/* Calendario equipo · versión compacta v3 */
.team-calendar-modal-dialog {
  width: min(960px, calc(100% - 18px));
}

.team-calendar-modal-content {
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 64px rgba(15, 23, 42, 0.24);
}

.team-calendar-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px 16px;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 197, 94, 0.32), transparent 28%),
    linear-gradient(135deg, #07110b 0%, #111827 58%, #182235 100%);
}

.team-calendar-modal-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.team-calendar-modal-title img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  padding: 5px;
  border-radius: 13px;
  background: rgba(255,255,255,0.12);
}

.team-calendar-modal-title span {
  display: block;
  color: rgba(255,255,255,0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.team-calendar-modal-title strong {
  display: block;
  max-width: 580px;
  color: #fff;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-calendar-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.team-calendar-modal-body {
  padding: 0;
  background: #f5f7fb;
}

.team-calendar-shell {
  padding: 12px;
  color: #101827;
  font-family: inherit;
}

.team-calendar-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.team-calendar-titlebar__team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.team-calendar-titlebar__team img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.team-calendar-titlebar__team span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.team-calendar-titlebar__team strong {
  display: block;
  max-width: 360px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-calendar-view-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #eff3f8;
}

.team-calendar-view {
  min-width: 58px;
  height: 29px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.team-calendar-view.is-active {
  background: #111827;
  color: #fff;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.16);
}

.team-calendar-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 auto 8px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.team-calendar-nav,
.team-calendar-month-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.05);
}

.team-calendar-nav {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 18px;
}

.team-calendar-month-label {
  font-size: 16px;
  letter-spacing: -0.03em;
}

.team-calendar-nav i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 1;
}

.team-calendar-scroll {
  overflow: visible;
  padding-bottom: 0;
}

.team-calendar-weekdays,
.team-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
  width: 100%;
}

.team-calendar-weekdays {
  margin-bottom: 4px;
}

.team-calendar-weekdays span {
  padding: 3px 1px;
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.team-calendar-day {
  position: relative;
  min-width: 0;
  min-height: 110px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.team-calendar-day--empty {
  background: rgba(255,255,255,0.35);
  box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.65);
}

.team-calendar-day--today {
  box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.58), 0 6px 16px rgba(15, 23, 42, 0.04);
}

.team-calendar-day--match {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.team-calendar-day__top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 18px;
  margin-bottom: 5px;
}

.team-calendar-day__top span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #eff4fa;
  color: #0f172a;
  font-size: 10px;
  font-weight: 950;
}

.team-calendar-day--today .team-calendar-day__top span {
  background: #16a34a;
  color: #fff;
}

.team-calendar-day__fixtures {
  display: block;
  min-width: 0;
}

.tcal-fixture {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 78px;
  padding: 2px 1px 0;
  border-radius: 0;
  background: transparent;
  color: #0f172a;
  text-decoration: none !important;
  box-shadow: none;
}

.tcal-fixture:hover {
  color: #0f172a;
  transform: none;
  box-shadow: none;
}

.tcal-fixture--win,
.tcal-fixture--draw,
.tcal-fixture--loss,
.tcal-fixture--pending {
  background: transparent;
  box-shadow: none;
}

.tcal-fixture__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.tcal-fixture__comp-badge,
.tcal-fixture__where-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.tcal-fixture__comp-badge {
  width: 24px;
}

.tcal-fixture__comp-badge {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.tcal-fixture__comp-badge img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.tcal-fixture__comp-badge i {
  display: none;
  color: #64748b;
  font-size: 12px;
}

.tcal-fixture__comp-badge.is-fallback i {
  display: inline-block;
}

.tcal-fixture__comp-badge.is-fallback img {
  display: none;
}

.tcal-fixture__comp-badge--large {
  width: 40px;
  height: 40px;
}

.tcal-fixture__comp-badge--large img {
  width: 28px;
  height: 28px;
}

.tcal-fixture__comp-badge--large i {
  font-size: 18px;
}

.tcal-fixture__where-badge {
  width: 24px;
  min-width: 24px;
  padding: 0;
  background: #eef2f7;
  color: #475569;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.tcal-fixture__where-badge i {
  line-height: 1;
}

.tcal-fixture__where-badge em {
  font-style: normal;
}

.tcal-fixture__where-badge--local {
  background: #dcfce7;
  color: #15803d;
}

.tcal-fixture__where-badge--away {
  background: #dbeafe;
  color: #2563eb;
}

.tcal-fixture__where-badge--large {
  min-width: 68px;
  height: 28px;
  padding: 0 10px;
  font-size: 10px;
}

.tcal-fixture__rival {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.tcal-fixture__rival img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
}

.tcal-fixture__rival strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-width: 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.tcal-fixture__rival--list {
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
}

.tcal-fixture__rival--list img {
  width: 34px;
  height: 34px;
}

.tcal-fixture__rival--list strong {
  -webkit-line-clamp: 2;
  font-size: 16px;
  line-height: 1.08;
}

.tcal-fixture__result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 0;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(241,245,249,0.9);
  color: #0f172a;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tcal-fixture__bodyline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.tcal-fixture__result--list {
  align-self: center;
  min-width: 78px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.045);
  font-size: 15px;
}

.tcal-fixture__meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
}

.tcal-fixture__list-comp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 62%;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}

.tcal-fixture__list-comp img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.tcal-fixture__list-comp i {
  display: none;
  color: #64748b;
  font-size: 14px;
}

.tcal-fixture__list-comp.is-fallback i {
  display: inline-block;
}

.tcal-fixture__list-comp.is-fallback img {
  display: none;
}

.tcal-fixture__list-comp em {
  min-width: 0;
  font-style: normal;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 850;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-calendar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-calendar-list-day {
  padding: 9px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.045);
}

.team-calendar-list-day__title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eff4fa;
  color: #334155;
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.team-calendar-list-day__title i {
  color: #16a34a;
  font-size: 12px;
}

.tcal-fixture--list {
  gap: 7px;
  min-height: 72px;
  padding: 9px 10px;
  margin-bottom: 8px;
  border-radius: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.045);
}

.tcal-fixture--list:last-child {
  margin-bottom: 0;
}

.tcal-fixture--list .tcal-fixture__bodyline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.tcal-fixture--list .tcal-fixture__where-badge,
.tcal-fixture__where-badge--list {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 5px 8px;
  gap: 5px;
  border-radius: 999px;
  background: #f8fafc !important;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.tcal-fixture__where-badge--list i {
  font-size: 12px;
  color: inherit;
}

.tcal-fixture__where-badge--list em {
  font-style: normal;
}

.team-calendar-loading,
.team-calendar-empty,
.team-calendar-error {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  gap: 8px;
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  color: #64748b;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.team-calendar-loading span {
  width: 24px;
  height: 24px;
  border: 3px solid #e2e8f0;
  border-top-color: #16a34a;
  border-radius: 999px;
  animation: tcalSpin .8s linear infinite;
}

.team-calendar-empty i,
.team-calendar-error i {
  color: #16a34a;
  font-size: 24px;
}

.team-calendar-empty strong,
.team-calendar-error strong,
.team-calendar-loading strong {
  color: #0f172a;
  font-weight: 950;
}

.team-calendar-empty--error i,
.team-calendar-error i {
  color: #ef4444;
}

.is-hidden {
  display: none !important;
}

@keyframes tcalSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .team-calendar-modal-dialog {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .team-calendar-modal-content {
    min-height: 0;
    max-height: calc(100vh - 16px);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
  }

  .team-calendar-modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .team-calendar-modal-header {
    min-height: 58px;
    padding: 9px 10px;
  }

  .team-calendar-modal-title img {
    width: 36px;
    height: 36px;
  }

  .team-calendar-modal-title strong {
    max-width: calc(100vw - 112px);
    font-size: 18px;
  }

  .team-calendar-shell {
    padding: 8px;
  }

  .team-calendar-titlebar {
    margin-bottom: 7px;
    padding: 7px;
  }

  .team-calendar-titlebar__team img {
    width: 30px;
    height: 30px;
  }

  .team-calendar-titlebar__team strong {
    max-width: 160px;
    font-size: 15px;
  }

  .team-calendar-view {
    min-width: 46px;
    height: 27px;
    font-size: 10px;
  }

  .team-calendar-toolbar {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
    padding: 0 6px;
  }

  .team-calendar-nav,
  .team-calendar-month-label {
    height: 32px;
    border-radius: 999px;
  }

  .team-calendar-nav {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .team-calendar-nav i {
    line-height: 1;
  }

  .team-calendar-month-label {
    font-size: 14px;
  }

  .team-calendar-weekdays,
  .team-calendar-grid {
    gap: 3px;
  }

  .team-calendar-weekdays span {
    font-size: 8px;
    padding: 2px 0;
  }

  .team-calendar-day {
    min-height: 88px;
    padding: 3px;
    border-radius: 9px;
  }

  .team-calendar-day__top {
    height: 13px;
    margin-bottom: 2px;
  }

  .team-calendar-day__top span {
    min-width: 13px;
    height: 13px;
    font-size: 8px;
  }

  .tcal-fixture {
    min-height: 66px;
    padding: 3px;
    border-radius: 8px;
  }

  .tcal-fixture__comp-badge {
    width: 18px;
    height: 18px;
  }

  .tcal-fixture__where-badge {
    width: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0;
    font-size: 8px;
  }

  .tcal-fixture__comp-badge img {
    width: 13px;
    height: 13px;
  }

  .tcal-fixture__where-badge {
    font-size: 8px;
  }

  .tcal-fixture__rival {
    gap: 2px;
  }

  .tcal-fixture__rival img {
    width: 24px;
    height: 24px;
  }

  .tcal-fixture__rival strong {
    font-size: 9px;
  }

  .tcal-fixture__result {
    min-height: 16px;
    border-radius: 6px;
    font-size: 9px;
    padding: 0 3px;
  }

  .team-calendar-list {
    gap: 10px;
  }

  .team-calendar-list-day {
    padding: 8px;
    border-radius: 14px;
  }

  .team-calendar-list-day__title {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .tcal-fixture--list {
    min-height: 68px;
    gap: 6px;
    padding: 8px;
    border-radius: 13px;
  }

  .tcal-fixture__comp-badge--large {
    width: 32px;
    height: 32px;
  }

  .tcal-fixture__comp-badge--large img {
    width: 22px;
    height: 22px;
  }

  .tcal-fixture__where-badge--large {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .tcal-fixture__bodyline {
    gap: 8px;
  }

  .tcal-fixture__list-comp em {
    font-size: 10px;
  }

  .tcal-fixture__rival--list {
    gap: 8px;
  }

  .tcal-fixture__rival--list img {
    width: 30px;
    height: 30px;
  }

  .tcal-fixture__rival--list strong {
    font-size: 13px;
  }

  .tcal-fixture--list .tcal-fixture__where-badge,
  .tcal-fixture__where-badge--list {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 4px 7px;
    gap: 4px;
    font-size: 10px;
  }

  .tcal-fixture__where-badge--list i {
    font-size: 11px;
  }

  .tcal-fixture__result--list {
    min-width: 62px;
    min-height: 30px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .team-calendar-shell {
    padding: 6px;
  }

  .team-calendar-titlebar__team strong {
    max-width: 125px;
  }

  .team-calendar-day {
    min-height: 82px;
  }

  .tcal-fixture {
    min-height: 60px;
  }

  .tcal-fixture__rival img {
    width: 21px;
    height: 21px;
  }

  .tcal-fixture__rival strong {
    font-size: 8px;
  }
}


.tcal-fixture--list .tcal-fixture__where-badge--local {
  background: #eefaf2 !important;
  color: #15803d;
}

.tcal-fixture--list .tcal-fixture__where-badge--away {
  background: #eff6ff !important;
  color: #2563eb;
}


.tcal-fixture--list:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 20px rgba(15, 23, 42, 0.065);
}


/* Corrección definitiva de la fila: botón izquierda + mes + botón derecha */
.team-calendar-toolbar .team-calendar-nav {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  float: none !important;
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
}

.team-calendar-toolbar .team-calendar-month-label {
  flex: 0 1 320px !important;
  width: 320px !important;
  max-width: calc(100% - 100px) !important;
  min-width: 0 !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .team-calendar-toolbar {
    gap: 6px !important;
    padding: 0 !important;
  }

  .team-calendar-toolbar .team-calendar-nav {
    flex-basis: 36px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .team-calendar-toolbar .team-calendar-month-label {
    flex-basis: 220px !important;
    width: 220px !important;
    max-width: calc(100% - 84px) !important;
  }
}


/* Mobile: el modal se adapta al contenido y no ocupa toda la pantalla */
@media (max-width: 767px) {
  .modal-dialog.team-calendar-modal-dialog {
    width: calc(100% - 16px) !important;
    margin: 8px auto !important;
  }

  .team-calendar-modal-content {
    min-height: 0 !important;
    height: auto !important;
    max-height: calc(100vh - 16px) !important;
    border-radius: 18px !important;
  }

  .team-calendar-modal-body {
    flex: 0 1 auto;
    overflow-y: auto;
    max-height: calc(100vh - 86px);
  }
}


/* ========================================================================== 
   Calendario general de LaLiga · vista completa día / semana / mes
   ========================================================================== */

.cf-calendar-page-section {
  width: 100%;
  padding: 16px 0 42px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 4% 4%, rgba(22, 163, 74, .07), transparent 24%),
    #f1f4f7;
}

.cf-calendar-container {
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

.cf-calendar-ad {
  width: 100%;
  margin: 0 auto 16px;
}

.cf-calendar {
  --cf-bg: #f3f6f8;
  --cf-surface: #ffffff;
  --cf-surface-soft: #f7f9fb;
  --cf-surface-strong: #eef2f5;
  --cf-text: #111c17;
  --cf-muted: #68756f;
  --cf-border: #dfe6e2;
  --cf-green: #07864d;
  --cf-green-dark: #063b22;
  --cf-green-soft: #e4f6eb;
  --cf-red: #e63a47;
  --cf-shadow: 0 20px 54px rgba(12, 35, 25, .10);
  width: 100%;
  min-height: calc(100vh - 90px);
  color: var(--cf-text);
  font-family: 'Fira Sans Condensed', Arial, sans-serif;
}

.cf-calendar.is-dark {
  --cf-bg: #0d1512;
  --cf-surface: #121e19;
  --cf-surface-soft: #17241f;
  --cf-surface-strong: #203029;
  --cf-text: #f2f7f4;
  --cf-muted: #9eb0a7;
  --cf-border: #2a3b33;
  --cf-green: #31c777;
  --cf-green-dark: #082f1d;
  --cf-green-soft: #173c29;
  --cf-shadow: 0 22px 60px rgba(0, 0, 0, .32);
}

.cf-calendar *,
.cf-calendar *::before,
.cf-calendar *::after {
  box-sizing: border-box;
}

.cf-calendar button,
.cf-calendar select {
  font: inherit;
}

.cf-calendar button:focus-visible,
.cf-calendar select:focus-visible,
.cf-calendar a:focus-visible {
  outline: 3px solid rgba(34, 197, 94, .35);
  outline-offset: 2px;
}

.cf-calendar-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 4px 0 0;
}

.cf-calendar-page-header__copy {
  max-width: 700px;
}

.cf-calendar-page-header h1 {
  margin-top: 0;
  margin-bottom: 11px;
  color: var(--cf-text);
}

.cf-calendar-page-header h1 span {
  font-size: 14px;
  font-weight: 700;
}

.cf-calendar-page-header p {
  margin: 0;
  color: var(--cf-muted);
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.cf-calendar-page-header .cf-calendar-summary {
  width: 330px;
  flex: 0 0 330px;
  border-color: var(--cf-border);
  background: var(--cf-surface);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
  backdrop-filter: none;
}

.cf-calendar-page-header .cf-calendar-summary__item {
  padding: 10px 7px;
}

.cf-calendar-page-header .cf-calendar-summary__item--live {
  background: rgba(230, 58, 71, .09);
}

.cf-calendar-page-header .cf-calendar-summary__item strong {
  color: var(--cf-text);
  font-size: 23px;
}

.cf-calendar-page-header .cf-calendar-summary__item span {
  color: var(--cf-muted);
}

.cf-calendar-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  min-height: 220px;
  padding: 36px 42px;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 83% 16%, rgba(86, 231, 148, .30), transparent 25%),
    radial-gradient(circle at 7% 100%, rgba(33, 150, 243, .14), transparent 28%),
    linear-gradient(125deg, #031c11 0%, #07512e 56%, #0a3f29 100%);
}

.cf-calendar-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
}

.cf-calendar-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  bottom: -180px;
  width: 500px;
  height: 500px;
  border: 2px solid rgba(255, 255, 255, .10);
  border-radius: 50%;
  box-shadow:
    0 0 0 44px rgba(255, 255, 255, .025),
    0 0 0 88px rgba(255, 255, 255, .018);
}

.cf-calendar-hero__copy,
.cf-calendar-summary {
  position: relative;
  z-index: 2;
}

.cf-calendar-hero__copy {
  max-width: 770px;
}

.cf-calendar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #caffdd;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.cf-calendar-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(36px, 4.2vw, 66px);
  line-height: .92;
  font-weight: 950;
  letter-spacing: -.055em;
}

.cf-calendar-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 650;
}

.cf-calendar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
  width: min(390px, 34vw);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: rgba(2, 21, 13, .40);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .16);
  backdrop-filter: blur(10px);
}

.cf-calendar-summary__item {
  min-width: 0;
  padding: 12px 9px;
  border-radius: 14px;
  text-align: center;
}

.cf-calendar-summary__item--live {
  background: rgba(231, 57, 70, .16);
}

.cf-calendar-summary__item strong,
.cf-calendar-summary__item span {
  display: block;
}

.cf-calendar-summary__item strong {
  color: #fff;
  font-size: 27px;
  line-height: 1;
  font-weight: 950;
}

.cf-calendar-summary__item span {
  margin-top: 5px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cf-calendar-controls {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--cf-border);
  border-radius: 18px 18px 0 0;
  background: var(--cf-surface);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .055);
}

.cf-calendar-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
}

.cf-calendar-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: min(290px, 28vw);
  margin: 0;
}

.cf-calendar-field > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cf-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.cf-calendar-field > span i {
  color: var(--cf-green);
}

.cf-calendar-field select {
  width: 100%;
  height: 44px;
  padding: 0 38px 0 13px;
  border: 1px solid var(--cf-border);
  border-radius: 12px;
  outline: 0;
  background-color: var(--cf-surface-soft);
  color: var(--cf-text);
  font-size: 14px;
  font-weight: 850;
  box-shadow: none;
  cursor: pointer;
}

.cf-calendar-view-switch {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 14px;
  background: var(--cf-surface-strong);
}

.cf-calendar-view-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 98px;
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--cf-muted);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
  transition: .18s ease;
}

.cf-calendar-view-switch button:hover {
  color: var(--cf-text);
}

.cf-calendar-view-switch button.is-active {
  background: var(--cf-surface);
  color: var(--cf-green);
  box-shadow: 0 6px 16px rgba(15, 23, 42, .09);
}

.cf-calendar-board {
  min-height: 620px;
  padding: 18px;
  background: var(--cf-bg);
}

.cf-calendar-navigation {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(300px, 2fr) minmax(220px, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.cf-calendar-navigation__buttons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.cf-calendar-icon-button,
.cf-calendar-today-button,
.cf-calendar-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--cf-border);
  border-radius: 11px;
  background: var(--cf-surface);
  color: var(--cf-text);
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, color .16s ease;
}

.cf-calendar-icon-button:hover,
.cf-calendar-today-button:hover,
.cf-calendar-refresh:hover {
  color: var(--cf-green);
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(15, 23, 42, .08);
}

.cf-calendar-icon-button {
  width: 42px;
  padding: 0;
}

.cf-calendar-today-button {
  min-width: 62px;
  padding: 0 14px;
  font-size: 12px;
}

.cf-calendar-period {
  min-width: 0;
  text-align: center;
}

.cf-calendar-period span {
  display: block;
  margin-bottom: 2px;
  color: var(--cf-green);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.cf-calendar-period h2 {
  margin: 0;
  overflow: hidden;
  color: var(--cf-text);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-calendar-refresh {
  justify-self: end;
  gap: 7px;
  padding: 0 14px;
  color: var(--cf-muted);
  font-size: 12px;
}

.cf-calendar-stage {
  width: 100%;
  min-height: 500px;
}

.cf-month-scroll,
.cf-week-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  scrollbar-color: var(--cf-green) var(--cf-surface-strong);
  scrollbar-width: thin;
}

.cf-month-calendar {
  min-width: 1080px;
  padding: 10px;
  border: 1px solid var(--cf-border);
  border-radius: 18px;
  background: var(--cf-surface-strong);
  box-shadow: var(--cf-shadow);
}

.cf-month-weekdays,
.cf-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.cf-month-weekdays {
  margin-bottom: 7px;
}

.cf-month-weekdays span {
  padding: 7px 6px 5px;
  color: var(--cf-muted);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cf-month-day {
  min-width: 0;
  min-height: 195px;
  padding: 8px;
  border: 1px solid var(--cf-border);
  border-radius: 14px;
  background: var(--cf-surface);
}

.cf-month-day.is-outside {
  opacity: .52;
  background: var(--cf-surface-soft);
}

.cf-month-day.is-today {
  border-color: rgba(8, 134, 77, .62);
  box-shadow: inset 0 0 0 1px var(--cf-green);
}

.cf-month-day__number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 29px;
  margin: 0 0 6px;
  padding: 0 2px 0 1px;
  border: 0;
  background: transparent;
  color: var(--cf-text);
  cursor: pointer;
}

.cf-month-day__number span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1;
  font-weight: 950;
}

.cf-month-day.is-today .cf-month-day__number span {
  background: var(--cf-green);
  color: #fff;
}

.cf-month-day__number em {
  display: none;
  color: var(--cf-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.cf-month-day__events,
.cf-week-day__events {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-mini-match {
  position: relative;
  display: block;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--cf-border);
  border-left: 3px solid var(--cf-green);
  border-radius: 10px;
  overflow: hidden;
  background: var(--cf-surface-soft);
  color: var(--cf-text) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 11px rgba(15, 23, 42, .045);
  transition: transform .15s ease, box-shadow .15s ease;
}

.cf-mini-match:hover {
  color: var(--cf-text) !important;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(15, 23, 42, .09);
}

.cf-match--live {
  border-left-color: var(--cf-red);
}

.cf-match--finished {
  border-left-color: #94a19a;
}

.cf-mini-match__head {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-bottom: 5px;
}

.cf-mini-match__head > strong {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--cf-green);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
}

.cf-match--live .cf-mini-match__head > strong {
  color: var(--cf-red);
}

.cf-match--finished .cf-mini-match__head > strong {
  color: var(--cf-muted);
}

.cf-mini-match__competition {
  min-width: 0;
  overflow: hidden;
  color: var(--cf-muted);
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cf-competition-logo,
.cf-team-crest {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.cf-competition-logo {
  width: 20px;
  height: 20px;
  padding: 2px;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 6px;
}

.cf-competition-logo img,
.cf-team-crest img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cf-competition-logo i,
.cf-team-crest i {
  display: none;
  color: #87928d;
  font-size: 11px;
}

.cf-competition-logo.cf-image-fallback i,
.cf-team-crest.cf-image-fallback i {
  display: inline-block;
}

.cf-team-crest {
  width: 21px;
  height: 21px;
  padding: 1px;
  border-radius: 50%;
}

.cf-mini-match__team {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 23px;
}

.cf-mini-match__team span {
  min-width: 0;
  overflow: hidden;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-mini-match__team b {
  color: var(--cf-text);
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  text-align: center;
}

.cf-calendar-empty-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  gap: 7px;
  color: var(--cf-muted);
  opacity: .56;
}

.cf-calendar-empty-day i {
  font-size: 19px;
}

.cf-calendar-empty-day span {
  font-size: 10px;
  font-weight: 850;
}

.cf-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(145px, 1fr));
  gap: 8px;
  min-width: 1120px;
  min-height: 550px;
}

.cf-week-day {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--cf-border);
  border-radius: 16px;
  background: var(--cf-surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
}

.cf-week-day.is-today {
  border-color: var(--cf-green);
  box-shadow: inset 0 0 0 1px var(--cf-green), 0 10px 28px rgba(15, 23, 42, .055);
}

.cf-week-day__header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  width: 100%;
  min-height: 62px;
  margin-bottom: 8px;
  padding: 8px;
  border: 0;
  border-radius: 11px;
  background: var(--cf-surface-soft);
  color: var(--cf-text);
  text-align: left;
  cursor: pointer;
}

.cf-week-day__header span {
  color: var(--cf-green);
  font-size: 10px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.cf-week-day__header strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}

.cf-week-day__header em {
  color: var(--cf-muted);
  font-size: 10px;
  line-height: 1;
  font-style: normal;
  font-weight: 850;
}

.cf-day-view {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  min-height: 520px;
}

.cf-day-view__date {
  position: sticky;
  top: 14px;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 15px;
  border-radius: 20px;
  background: linear-gradient(150deg, var(--cf-green-dark), #087348);
  color: #fff;
  box-shadow: var(--cf-shadow);
}

.cf-day-view__date span {
  color: #aff3cb;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cf-day-view__date strong {
  margin: 9px 0 6px;
  font-size: 62px;
  line-height: .9;
  font-weight: 950;
  letter-spacing: -.06em;
}

.cf-day-view__date em {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.cf-day-view__events {
  display: grid;
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.cf-event-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 190px;
  padding: 15px;
  border: 1px solid var(--cf-border);
  border-top: 4px solid var(--cf-green);
  border-radius: 18px;
  background: var(--cf-surface);
  color: var(--cf-text) !important;
  text-decoration: none !important;
  box-shadow: 0 11px 28px rgba(15, 23, 42, .065);
  transition: transform .18s ease, box-shadow .18s ease;
}

.cf-event-card:hover {
  color: var(--cf-text) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .11);
}

.cf-event-card.cf-match--live {
  border-top-color: var(--cf-red);
}

.cf-event-card.cf-match--finished {
  border-top-color: #94a19a;
}

.cf-event-card__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--cf-border);
}

.cf-competition-logo--large {
  width: 34px;
  height: 34px;
  padding: 4px;
  border-radius: 10px;
}

.cf-event-card__meta > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cf-event-card__meta > span strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-event-card__meta > span small {
  margin-top: 3px;
  color: var(--cf-muted);
  font-size: 9px;
  line-height: 1;
  font-weight: 850;
}

.cf-event-card__meta em {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--cf-green-soft);
  color: var(--cf-green);
  font-size: 10px;
  line-height: 1;
  font-style: normal;
  font-weight: 950;
}

.cf-match--live .cf-event-card__meta em {
  background: rgba(230, 58, 71, .12);
  color: var(--cf-red);
}

.cf-event-card__matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  flex: 1;
  padding: 15px 2px;
}

.cf-event-card__team {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.cf-event-card__team--away {
  flex-direction: row-reverse;
  text-align: right;
}

.cf-team-crest--large {
  width: 45px;
  height: 45px;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, .07);
  box-shadow: 0 5px 13px rgba(15, 23, 42, .08);
}

.cf-event-card__team > strong {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.08;
  font-weight: 950;
  text-overflow: ellipsis;
}

.cf-event-card__time,
.cf-event-card__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 40px;
  padding: 0 9px;
  border-radius: 11px;
  background: var(--cf-surface-strong);
  color: var(--cf-text);
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
}

.cf-event-card__score {
  gap: 7px;
  font-size: 20px;
}

.cf-event-card__score small {
  color: var(--cf-muted);
  font-size: 13px;
}

.cf-event-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--cf-border);
  color: var(--cf-muted);
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.cf-event-card__tv {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-calendar-loading,
.cf-calendar-empty-period {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  gap: 8px;
  padding: 30px;
  border: 1px solid var(--cf-border);
  border-radius: 18px;
  background: var(--cf-surface);
  color: var(--cf-muted);
  text-align: center;
  box-shadow: var(--cf-shadow);
}

.cf-calendar-loading span {
  width: 34px;
  height: 34px;
  margin-bottom: 5px;
  border: 3px solid var(--cf-surface-strong);
  border-top-color: var(--cf-green);
  border-radius: 50%;
  animation: cfCalendarSpin .75s linear infinite;
}

.cf-calendar-loading strong,
.cf-calendar-empty-period strong {
  color: var(--cf-text);
  font-size: 16px;
  font-weight: 950;
}

.cf-calendar-loading small,
.cf-calendar-empty-period span {
  font-size: 12px;
  font-weight: 700;
}

.cf-calendar-empty-period i {
  margin-bottom: 5px;
  color: var(--cf-green);
  font-size: 34px;
}

.cf-calendar-empty-period.is-error i {
  color: var(--cf-red);
}

.cf-calendar-empty-period button {
  margin-top: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--cf-green);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.cf-calendar-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  border-radius: 0 0 24px 24px;
  background: var(--cf-surface);
  color: var(--cf-muted);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

.cf-calendar-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.cf-calendar-legend small {
  margin-left: auto;
  font-size: 10px;
}

.cf-calendar-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cf-green);
}

.cf-calendar-dot--live {
  background: var(--cf-red);
  box-shadow: 0 0 0 4px rgba(230, 58, 71, .10);
}

.cf-calendar-dot--finished {
  background: #94a19a;
}

.cf-calendar-related {
  width: 100%;
  margin: 34px auto 0;
}

@keyframes cfCalendarSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
  .cf-calendar-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .cf-calendar-summary {
    width: min(460px, 100%);
  }

  .cf-calendar-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .cf-calendar-page-header .cf-calendar-summary {
    width: min(460px, 100%);
    flex-basis: auto;
  }

  .cf-calendar-day-view__events {
    grid-template-columns: 1fr;
  }

  .cf-day-view__events {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .cf-calendar-page-section {
    padding-top: 0;
  }

  .cf-calendar-container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cf-calendar-ad {
    padding: 0 8px;
  }

  .cf-calendar-hero {
    min-height: 0;
    gap: 20px;
    padding: 25px 17px 22px;
    border-radius: 0;
  }

  .cf-calendar-page-header {
    gap: 13px;
    margin: 0 2px 15px;
    padding-top: 13px;
  }

  .cf-calendar-page-header h1 {
    margin-bottom: 8px;
  }

  .cf-calendar-page-header p {
    font-size: 13px;
  }

  .cf-calendar-page-header .cf-calendar-summary {
    width: 100%;
  }

  .cf-calendar-hero h1 {
    font-size: 37px;
    line-height: .94;
  }

  .cf-calendar-hero p {
    font-size: 14px;
  }

  .cf-calendar-summary {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .cf-calendar-summary__item {
    padding: 9px 4px;
  }

  .cf-calendar-summary__item strong {
    font-size: 22px;
  }

  .cf-calendar-controls {
    align-items: stretch;
    flex-direction: column;
    padding: 13px 11px;
  }

  .cf-calendar-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cf-calendar-field {
    width: auto;
  }

  .cf-calendar-field select {
    height: 42px;
    padding-left: 9px;
    font-size: 12px;
  }

  .cf-calendar-view-switch {
    width: 100%;
  }

  .cf-calendar-view-switch button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
  }

  .cf-calendar-board {
    min-height: 560px;
    padding: 12px 0 14px;
  }

  .cf-calendar-navigation {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    padding: 0 10px;
  }

  .cf-calendar-navigation__buttons {
    grid-column: 1;
  }

  .cf-calendar-period {
    grid-column: 2;
    text-align: right;
  }

  .cf-calendar-period h2 {
    font-size: 18px;
  }

  .cf-calendar-refresh {
    display: none;
  }

  .cf-calendar-icon-button {
    width: 36px;
    height: 36px;
  }

  .cf-calendar-today-button {
    min-width: 52px;
    height: 36px;
    padding: 0 9px;
  }

  .cf-month-scroll,
  .cf-week-scroll {
    padding: 0 10px 8px;
    border-radius: 0;
  }

  .cf-month-calendar {
    min-width: 920px;
  }

  .cf-month-day {
    min-height: 175px;
  }

  .cf-month-day__number em {
    display: inline-block;
  }

  .cf-week-grid {
    min-width: 1050px;
  }

  .cf-day-view {
    display: block;
    padding: 0 10px;
  }

  .cf-day-view__date {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    gap: 9px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 15px;
  }

  .cf-day-view__date strong {
    order: -1;
    margin: 0;
    font-size: 35px;
  }

  .cf-day-view__date span,
  .cf-day-view__date em {
    font-size: 10px;
    text-align: left;
  }

  .cf-day-view__events {
    grid-template-columns: 1fr;
  }

  .cf-event-card {
    min-height: 174px;
    padding: 12px;
  }

  .cf-event-card__matchup {
    gap: 7px;
    padding: 13px 0;
  }

  .cf-event-card__team,
  .cf-event-card__team--away {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  .cf-event-card__team > strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 12px;
    text-align: center;
  }

  .cf-team-crest--large {
    width: 40px;
    height: 40px;
  }

  .cf-calendar-empty-period,
  .cf-calendar-loading {
    min-height: 430px;
    margin: 0 10px;
  }

  .cf-calendar-legend {
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 13px 14px;
    border-radius: 0;
  }

  .cf-calendar-legend small {
    flex-basis: 100%;
    margin-left: 0;
  }

  .cf-calendar-related {
    width: calc(100% - 20px);
  }
}

@media (max-width: 420px) {
  .cf-calendar-filters {
    grid-template-columns: 1fr;
  }

  .cf-calendar-kicker {
    margin-bottom: 12px;
  }

  .cf-calendar-view-switch button i {
    display: none;
  }

  .cf-calendar-navigation {
    grid-template-columns: 1fr;
  }

  .cf-calendar-navigation__buttons,
  .cf-calendar-period {
    grid-column: 1;
  }

  .cf-calendar-navigation__buttons {
    justify-content: center;
  }

  .cf-calendar-period {
    text-align: center;
  }
}


/* ========================================================================== 
   Calendario v3 · variante light, compacta y sin desbordamiento en desktop
   ========================================================================== */

.cf-calendar-page-section {
  padding-top: 14px;
  overflow: visible;
  background: #fff;
}

.cf-calendar {
  --cf-bg: #f7f9fa;
  --cf-surface: #fff;
  --cf-surface-soft: #f6f8f8;
  --cf-surface-strong: #edf2f1;
  --cf-text: #15201b;
  --cf-muted: #718079;
  --cf-border: #dfe7e3;
  --cf-green: #098653;
  --cf-green-dark: #075b3a;
  --cf-green-soft: #e7f5ee;
  --cf-red: #dc3c4c;
  --cf-shadow: none;
  min-height: 0;
  color: var(--cf-text);
}

.cf-calendar-page-header {
  display: block;
  margin-bottom: 16px;
  padding: 0;
}

.cf-calendar-page-header__copy {
  max-width: 760px;
}

.cf-calendar-page-header h1 {
  margin-bottom: 8px;
}

.cf-calendar-page-header p {
  color: #68756f;
}

.cf-calendar-controls {
  align-items: flex-end;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--cf-border);
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow: none;
}

.cf-calendar-filters {
  flex: 1 1 auto;
  gap: 10px;
}

.cf-calendar-field {
  width: min(280px, 31%);
}

.cf-calendar-field > span {
  font-size: 9px;
  letter-spacing: .06em;
}

.cf-calendar-field select {
  height: 40px;
  border-color: #d9e2de;
  border-radius: 10px;
  background-color: #f8faf9;
  font-size: 12px;
}

.cf-calendar-view-switch {
  gap: 2px;
  padding: 4px;
  border: 1px solid #e2e9e6;
  border-radius: 11px;
  background: #f1f4f3;
}

.cf-calendar-view-switch button {
  min-width: 78px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 10px;
}

.cf-calendar-view-switch button.is-active {
  background: #fff;
  color: var(--cf-green);
  box-shadow: 0 2px 7px rgba(15, 35, 27, .08);
}

.cf-calendar-board {
  min-height: 0;
  padding: 12px;
  border-right: 1px solid var(--cf-border);
  border-left: 1px solid var(--cf-border);
  background: #fff;
}

.cf-calendar-navigation {
  grid-template-columns: minmax(175px, 1fr) minmax(280px, 1.6fr) minmax(175px, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  padding: 0;
}

.cf-calendar-icon-button,
.cf-calendar-today-button,
.cf-calendar-refresh {
  height: 34px;
  border-color: #dbe4e0;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

.cf-calendar-icon-button {
  width: 36px;
}

.cf-calendar-today-button {
  min-width: 54px;
  padding: 0 11px;
  font-size: 10px;
}

.cf-calendar-refresh {
  padding: 0 11px;
  font-size: 10px;
}

.cf-calendar-icon-button:hover,
.cf-calendar-today-button:hover,
.cf-calendar-refresh:hover {
  box-shadow: none;
}

.cf-calendar-period span {
  margin-bottom: 3px;
  font-size: 8px;
}

.cf-calendar-period h2 {
  font-size: 21px;
}

.cf-calendar-stage {
  min-width: 0;
  min-height: 0;
}

.cf-month-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: visible;
  border-radius: 13px;
}

.cf-month-calendar {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 1px solid #dce5e1;
  border-radius: 13px;
  overflow: hidden;
  background: #e5ebe8;
  box-shadow: none;
}

.cf-month-weekdays,
.cf-month-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  min-width: 0;
}

.cf-month-weekdays {
  margin: 0;
  background: #f4f7f6;
}

.cf-month-weekdays span {
  padding: 8px 3px;
  color: #66746e;
  font-size: 9px;
  letter-spacing: .04em;
}

.cf-month-grid {
  background: #dfe6e3;
}

.cf-month-day {
  min-width: 0;
  min-height: 148px;
  padding: 6px;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.cf-month-day.is-outside {
  opacity: 1;
  background: #f7f9f8;
}

.cf-month-day.is-outside .cf-month-day__number {
  opacity: .43;
}

.cf-month-day.is-today {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(9, 134, 83, .45);
}

.cf-month-day__number {
  height: 23px;
  margin-bottom: 3px;
  padding: 0;
}

.cf-month-day__number span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 10px;
}

.cf-month-day__number em {
  color: #829089;
  font-size: 8px;
}

.cf-month-day__round {
  min-width: 0;
  margin: 0 -3px 5px;
  padding: 3px 5px;
  border-radius: 4px;
  overflow: hidden;
  background: #edf8f2;
  color: #187b51;
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.cf-month-day__events,
.cf-week-day__events {
  gap: 4px;
}

.cf-mini-match {
  min-height: 32px;
  padding: 4px 5px;
  border: 1px solid #e1e7e4;
  border-left: 2px solid #aab8b1;
  border-radius: 7px;
  background: #fbfcfc;
  box-shadow: none;
}

.cf-mini-match:hover {
  border-color: #cfdad5;
  background: #f6faf8;
  box-shadow: none;
  transform: none;
}

.cf-mini-match.cf-match--upcoming {
  border-left-color: var(--cf-green);
}

.cf-mini-match.cf-match--live {
  border-left-color: var(--cf-red);
}

.cf-mini-match__head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 22px;
  margin: 0;
}

.cf-competition-logo {
  width: 18px;
  height: 18px;
  padding: 2px;
  border: 0;
  border-radius: 5px;
  background: #fff;
}

.cf-mini-match__duel {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 3px;
}

.cf-mini-match__duel small {
  flex: 0 0 auto;
  color: #9aa69f;
  font-size: 7px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.cf-team-crest {
  width: 18px;
  height: 18px;
  padding: 1px;
  background: transparent;
}

.cf-mini-match__head > strong {
  max-width: 43px;
  overflow: hidden;
  color: #58645e;
  font-size: 8px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-match--upcoming .cf-mini-match__head > strong {
  color: #52615a;
}

.cf-calendar-empty-day {
  min-height: 80px;
  gap: 5px;
  color: #a7b1ac;
}

.cf-calendar-empty-day i {
  display: none;
}

.cf-calendar-empty-day span {
  font-size: 8px;
}

.cf-week-scroll {
  border-radius: 12px;
}

.cf-week-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  min-height: 420px;
}

.cf-week-day {
  padding: 6px;
  border-radius: 10px;
  box-shadow: none;
}

.cf-week-day__header {
  min-height: 50px;
  margin-bottom: 6px;
  padding: 6px;
  border-radius: 7px;
}

.cf-calendar-legend {
  gap: 15px;
  padding: 11px 14px;
  border: 1px solid var(--cf-border);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
  box-shadow: none;
}

.cf-calendar-related {
  margin-top: 28px;
}

.cf-event-card,
.cf-day-view__date,
.cf-calendar-loading,
.cf-calendar-empty-period {
  box-shadow: none;
}

@media (max-width: 1199px) and (min-width: 992px) {
  .cf-calendar-field {
    width: min(250px, 31%);
  }

  .cf-calendar-view-switch button {
    min-width: 66px;
    padding: 0 8px;
  }

  .cf-month-day {
    min-height: 142px;
    padding: 5px;
  }

  .cf-mini-match {
    padding-right: 4px;
    padding-left: 4px;
  }

  .cf-mini-match__head {
    grid-template-columns: 17px minmax(0, 1fr) auto;
    gap: 3px;
  }

  .cf-competition-logo,
  .cf-team-crest {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 991px) {
  .cf-month-scroll,
  .cf-week-scroll {
    overflow-x: auto;
  }

  .cf-month-calendar {
    min-width: 880px;
  }

  .cf-week-grid {
    min-width: 900px;
  }
}

@media (max-width: 767px) {
  .cf-calendar-page-section {
    padding-top: 0;
  }

  .cf-calendar-controls {
    align-items: stretch;
    gap: 11px;
    margin: 0;
    padding: 12px;
    border-radius: 12px 12px 0 0;
  }

  .cf-calendar-filters {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .cf-calendar-field {
    flex: 1 1 0;
    width: calc(50% - 4px);
    min-width: 0;
    max-width: none;
  }

  .cf-calendar-field > span {
    justify-content: flex-start;
    width: 100%;
  }

  .cf-calendar-field select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 44px;
    padding-right: 28px;
    padding-left: 9px;
    font-size: 12px;
  }

  .cf-calendar-view-switch {
    width: 100%;
  }

  .cf-calendar-view-switch button {
    flex: 1 1 0;
    min-width: 0;
  }

  .cf-calendar-board {
    padding: 10px 0;
  }

  .cf-calendar-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    padding: 0 10px;
  }

  .cf-calendar-navigation__buttons {
    grid-column: 1;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 7px;
    justify-content: stretch;
    width: 100%;
  }

  .cf-calendar-navigation__buttons .cf-calendar-icon-button,
  .cf-calendar-navigation__buttons .cf-calendar-today-button {
    width: 100%;
    max-width: none;
  }

  .cf-calendar-period {
    grid-column: 1;
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .cf-calendar-period h2 {
    overflow: visible;
    width: 100%;
    font-size: 17px;
    line-height: 1.12;
    text-overflow: clip;
    white-space: nowrap;
  }

  .cf-month-scroll,
  .cf-week-scroll {
    padding-right: 9px;
    padding-left: 9px;
  }

  .cf-month-calendar {
    min-width: 820px;
  }

  .cf-month-day {
    min-height: 136px;
  }

  .cf-week-scroll {
    overflow-x: visible;
  }

  .cf-week-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    min-width: 0;
    min-height: 0;
  }

  .cf-week-day {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: stretch;
    gap: 7px;
    padding: 7px;
  }

  .cf-week-day__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    margin: 0;
    padding: 7px 4px;
    text-align: center;
  }

  .cf-week-day__header strong {
    order: 2;
    margin: 4px 0;
    font-size: 25px;
  }

  .cf-week-day__header span {
    order: 1;
  }

  .cf-week-day__header em {
    order: 3;
  }

  .cf-week-day__events {
    min-width: 0;
  }

  .cf-week-day .cf-calendar-empty-day {
    min-height: 68px;
  }

  /* La vista semanal necesita más presencia que las tarjetas del mes. */
  .cf-week-day__events {
    gap: 7px;
  }

  .cf-week-day .cf-mini-match {
    min-height: 56px;
    padding: 8px 10px;
    border-left-width: 3px;
    border-radius: 9px;
  }

  .cf-week-day .cf-mini-match__head {
    grid-template-columns: 28px minmax(0, 1fr) minmax(52px, auto);
    gap: 9px;
    min-height: 37px;
  }

  .cf-week-day .cf-competition-logo {
    width: 28px;
    height: 28px;
    padding: 2px;
    border-radius: 7px;
  }

  .cf-week-day .cf-mini-match__duel {
    gap: 7px;
  }

  .cf-week-day .cf-team-crest {
    width: 32px;
    height: 32px;
    padding: 1px;
  }

  .cf-week-day .cf-mini-match__duel small {
    font-size: 10px;
  }

  .cf-week-day .cf-mini-match__head > strong {
    max-width: none;
    overflow: visible;
    color: #35463e;
    font-size: 13px;
    line-height: 1;
    text-align: right;
    text-overflow: clip;
  }

  .cf-calendar-legend {
    border-radius: 0 0 12px 12px;
  }
}

@media (max-width: 380px) {
  .cf-week-day {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .cf-week-day .cf-mini-match {
    padding-right: 8px;
    padding-left: 8px;
  }

  .cf-week-day .cf-mini-match__head {
    grid-template-columns: 26px minmax(0, 1fr) minmax(48px, auto);
    gap: 6px;
  }

  .cf-week-day .cf-competition-logo {
    width: 26px;
    height: 26px;
  }

  .cf-week-day .cf-team-crest {
    width: 29px;
    height: 29px;
  }

  .cf-week-day .cf-mini-match__duel {
    gap: 4px;
  }

  .cf-week-day .cf-mini-match__head > strong {
    font-size: 12px;
  }
}
