.schedule-panel {
  min-height: 0;
  overflow: visible !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.schedule-panel::after {
  display: none;
}

.schedule-body {
  padding: 14px 0 0;
}

.schedule-toolbar {
  border: 0;
  border-radius: 8px;
  background: var(--card-bg-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  margin-bottom: 16px;
}

.month-info {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.schedule-toolbar .month-title {
  font-size: 1.125rem;
}

.month-summary {
  min-width: 0;
  max-width: 760px;
  color: #dfe4f4;
  white-space: nowrap;
}

.month-controls {
  flex: 0 0 auto;
  min-width: 0;
  width: min(100%, 360px);
  border-radius: 999px;
  background: #1b222d;
  display: grid;
  grid-template-columns: 36px minmax(0, 180px) 36px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 4px;
  white-space: nowrap;
}

.schedule-controls,
.view-controls {
  display: flex;
  align-items: center;
}

.schedule-controls {
  flex: 0 0 auto;
  gap: 10px;
}

.view-controls {
  gap: 4px;
  border-radius: 999px;
  background: #1b222d;
  padding: 4px;
}

.view-control {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  display: grid;
  place-items: center;
  padding: 8px;
}

.view-control svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.view-control:hover,
.view-control:focus-visible {
  color: #fff;
  background: rgba(205, 211, 215, 0.1);
}

.view-control.active {
  color: #fff;
  background: #101720;
}

@media (min-width: 576px) {
  .month-controls {
    width: 268px;
  }
}

.month-control-label {
  min-width: 0;
  min-height: 36px;
  border-radius: 999px;
  color: #fff;
  background: #101720;
  display: grid;
  place-items: center;
  padding: 6px 10px;
  font-size: var(--text-small);
  font-weight: 800;
  text-align: center;
}

.month-arrow {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  font-size: 1.7rem;
  line-height: 1;
}

.month-arrow:hover,
.month-arrow:focus-visible {
  color: #fff;
  background: rgba(205, 211, 215, 0.1);
}

.calendar-shell {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.calendar-card {
  border: 0;
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  padding: 0;
}

.weekday-row,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 6px;
}

.weekday-row {
  margin-bottom: 6px;
  background: transparent;
}

.weekday-row span {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0 12px;
  color: var(--yankees-silver);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.day-cell {
  min-height: 168px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-cell:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.day-cell.outside-month {
  background: rgba(255, 255, 255, 0.008);
}

.day-cell.today {
  box-shadow: inset 0 0 0 2px rgba(154, 199, 255, 0.28);
}

.day-number {
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 700;
}

.day-cell.today .day-number {
  color: var(--yankees-silver);
}

.game-card {
  min-width: 0;
  border: 0;
  border-radius: 8px;
  background: var(--card-bg);
  display: grid;
  grid-template-rows: 5px auto auto auto;
  align-content: start;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

a.game-card:hover {
  color: inherit;
}

a.game-card:focus-visible {
  color: inherit;
  outline: 2px solid rgba(154, 199, 255, 0.55);
  outline-offset: 2px;
}

.schedule-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.schedule-list[hidden] {
  display: none;
}

.schedule-list-header,
.schedule-list-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr) minmax(145px, 1.25fr) minmax(0, 0.65fr) minmax(0, 0.75fr) repeat(2, minmax(0, 1.25fr)) minmax(0, 1.1fr) minmax(0, 0.55fr);
  align-items: center;
  gap: 8px;
}

.schedule-list-header {
  padding: 4px 12px 8px 17px;
  color: #aebbd0;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-list-header span {
  text-align: center;
}

.schedule-list-card {
  position: relative;
  min-width: 0;
  border: 0;
  border-left: 5px solid #607080;
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(96, 112, 128, 0.13), transparent 11%), rgba(255, 255, 255, 0.018);
  padding: 12px;
  text-decoration: none;
  overflow: hidden;
}

.schedule-list-card.win {
  border-left-color: #39b978;
  background: linear-gradient(90deg, rgba(30, 135, 83, 0.3), transparent 11%), rgba(255, 255, 255, 0.018);
}

.schedule-list-card.loss {
  border-left-color: #d9525e;
  background: linear-gradient(90deg, rgba(166, 44, 58, 0.3), transparent 11%), rgba(255, 255, 255, 0.018);
}

.schedule-list-card.live {
  border-left-color: #e2b84d;
  background: linear-gradient(90deg, rgba(174, 128, 20, 0.27), transparent 11%), rgba(255, 255, 255, 0.018);
}

a.schedule-list-card:hover {
  color: var(--ink);
  filter: brightness(1.16);
}

a.schedule-list-card:focus-visible {
  color: var(--ink);
  filter: brightness(1.16);
  outline: 2px solid rgba(154, 199, 255, 0.45);
  outline-offset: 2px;
}

.list-field {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.list-field strong {
  min-width: 0;
  font-size: clamp(0.68rem, 0.78vw, var(--text-small));
  line-height: 1.3;
  white-space: nowrap;
}

.list-result strong {
  color: #d9e1ec;
  white-space: nowrap;
}

.schedule-list-card.win .list-result strong {
  color: #a8f2cc;
}

.schedule-list-card.loss .list-result strong {
  color: #ffc1c7;
}

.list-field strong span {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.list-opponent strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.list-opponent b {
  width: 18px;
  color: var(--muted);
  text-transform: uppercase;
}

.list-opponent img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
}

.list-recap {
  justify-self: center;
  color: #9fc4fb;
  font-size: clamp(0.68rem, 0.78vw, var(--text-small));
  font-weight: 800;
  white-space: nowrap;
}

.game-card.win .game-status {
  color: #9af0c8;
}

.game-card.loss .game-status {
  color: #ffbec4;
}

.game-card.live .game-status {
  color: #9af0c8;
}

.game-status {
  min-width: 0;
  color: var(--muted);
  display: grid;
  place-items: center;
  padding: 8px;
  font-size: var(--text-small);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.game-team-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.game-matchup-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  padding: 13px 10px 7px;
}

.game-team-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  justify-self: center;
}

.game-matchup-center {
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 800;
  line-height: 1;
}

.game-matchup-center strong {
  font-size: 1.2rem;
}

.game-matchup-center > span {
  color: var(--muted);
}

.game-versus {
  color: var(--muted);
  font-size: var(--text-small);
  text-transform: lowercase;
}

.game-records-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  padding: 0 4px 8px;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.game-records-row i {
  color: rgba(205, 211, 215, 0.45);
  font-style: normal;
}

.game-records-row span {
  white-space: nowrap;
}

.game-record-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.card-record-divider {
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: rgba(205, 211, 215, 0.5);
}

.empty-day {
  margin-top: auto;
  color: rgba(167, 174, 196, 0.42);
  font-size: var(--text-normal);
  font-weight: 700;
}

.error {
  color: #ffbec4;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .schedule-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .month-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .month-summary {
    white-space: normal;
  }

  .schedule-controls {
    width: 100%;
  }

  .month-controls {
    margin-left: auto;
  }

  .schedule-list-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .schedule-list-header {
    display: none;
  }

  .list-field::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .list-field strong,
  .list-opponent strong {
    white-space: normal;
  }

  .list-result strong {
    white-space: nowrap;
  }


  .list-opponent {
    grid-column: span 2;
  }

  .list-recap {
    justify-self: end;
  }

  .weekday-row,
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .schedule-controls {
    align-items: stretch;
  }

  .month-controls {
    width: auto;
    flex: 1 1 auto;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
  }

  .schedule-list {
    padding: 10px;
  }

  .schedule-list-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
    padding: 14px;
  }

  .list-date,
  .list-opponent {
    grid-column: auto;
  }

  .list-opponent strong {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .list-recap {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .game-matchup-row,
  .game-records-row {
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
  }

  .game-records-row > i {
    justify-self: center;
  }

  .schedule-body {
    padding-inline: 0;
  }

  .calendar-shell {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .weekday-row {
    display: none;
  }

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

  .day-cell {
    min-height: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
    padding: 12px;
  }

  .day-cell:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
  }

  .day-cell.outside-month {
    display: none;
  }

  .day-number {
    font-size: 0;
  }

  .day-number::before {
    content: attr(data-mobile-label);
    font-size: var(--text-small);
  }

  .header-actions,
  .status-pill,
  .btn-control {
    width: 100%;
  }
}

.game-stats-link {
  color: inherit;
  white-space: nowrap;
  text-decoration: none;
}

.game-stats-link:hover,
.game-stats-link:focus-visible {
  color: #fff;
}
