.match-calendar-section {
  margin-top: 1.5rem;
}

.match-calendar-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.match-calendar-card .match-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
}

.match-calendar-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.match-calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.match-calendar-month-label {
  min-width: 7.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.match-calendar-body {
  padding: 0.85rem;
}

.match-calendar-weekdays,
.match-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.match-calendar-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6c757d;
  padding: 0.2rem 0;
}

.match-calendar-weekday.is-sun {
  color: #dc3545;
}

.match-calendar-weekday.is-sat {
  color: #0d6efd;
}

.match-calendar-day {
  min-height: 4.6rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 0.35rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.match-calendar-day:hover {
  border-color: rgba(13, 110, 253, 0.35);
}

.match-calendar-day.is-outside {
  opacity: 0.38;
  background: #f8f9fa;
}

.match-calendar-day.is-today {
  border-color: rgba(25, 135, 84, 0.45);
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.2);
}

.match-calendar-day.is-selected {
  border-color: #0d6efd;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.25);
  background: #f3f8ff;
}

.match-calendar-day-num {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.match-calendar-day.is-sun .match-calendar-day-num {
  color: #dc3545;
}

.match-calendar-day.is-sat .match-calendar-day-num {
  color: #0d6efd;
}

.match-calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  margin-top: 0.25rem;
}

.match-calendar-event-dot {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.12rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  background: #6c757d;
}

.match-calendar-event-dot.is-scheduled,
.match-calendar-event-dot.is-open { background: #0d6efd; }
.match-calendar-event-dot.is-closed { background: #fd7e14; }
.match-calendar-event-dot.is-ongoing { background: #198754; }
.match-calendar-event-dot.is-completed { background: #adb5bd; color: #fff; }
.match-calendar-event-dot.is-cancelled,
.match-calendar-event-dot.is-disputed { background: #dc3545; }
.match-calendar-event-dot.is-final { background: #ffc107; color: #212529; }
.match-calendar-event-dot.is-mine { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }

.match-calendar-more {
  font-size: 0.62rem;
  color: #6c757d;
  padding-left: 0.15rem;
}

.match-calendar-detail {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.9rem 1rem 1rem;
  background: #fcfcfc;
}

.match-calendar-detail-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.match-calendar-detail-empty {
  font-size: 0.82rem;
  color: #6c757d;
}

.match-calendar-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.match-calendar-detail-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.match-calendar-detail-item.is-mine {
  border-color: rgba(255, 193, 7, 0.55);
  background: #fffdf5;
}

.match-calendar-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.match-calendar-detail-name {
  font-size: 0.84rem;
  font-weight: 700;
}

.match-calendar-detail-meta {
  font-size: 0.75rem;
  color: #6c757d;
}

.match-calendar-detail-players {
  font-size: 0.74rem;
  color: #495057;
  margin-top: 0.25rem;
}

.match-calendar-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  background: #e9ecef;
  color: #495057;
}

.match-calendar-status-badge.is-scheduled { background: #cfe2ff; color: #084298; }
.match-calendar-status-badge.is-ongoing { background: #d1e7dd; color: #0f5132; }
.match-calendar-status-badge.is-completed { background: #e9ecef; color: #495057; }
.match-calendar-status-badge.is-cancelled,
.match-calendar-status-badge.is-disputed { background: #f8d7da; color: #842029; }
.match-calendar-status-badge.is-final { background: #fff3cd; color: #664d03; }

.match-calendar-detail-actions {
  margin-top: 0.45rem;
}

@media (max-width: 767.98px) {
  .match-calendar-day {
    min-height: 3.8rem;
    padding: 0.25rem;
  }

  .match-calendar-event-dot {
    font-size: 0.58rem;
    padding: 0.08rem 0.25rem;
  }
}
