:root {
  --schedule-ink: #111827;
  --schedule-navy: #111b31;
  --schedule-violet: #5138dc;
  --schedule-lime: #c9f24c;
  --schedule-coral: #ff705d;
  --schedule-paper: #fffdf8;
  --schedule-line: #d8dbe5;
  --schedule-muted: #626a79;
}

.schedule-body .app-content {
  background:
    radial-gradient(circle at 12% 10%, rgba(201, 242, 76, 0.17), transparent 25rem),
    radial-gradient(circle at 92% 38%, rgba(81, 56, 220, 0.13), transparent 31rem),
    #eef0f7;
}

.schedule-body .quag-layout-container {
  padding-top: 0;
  padding-left: clamp(0.75rem, 2vw, 2rem);
  padding-right: clamp(0.75rem, 2vw, 2rem);
}

.schedule-page {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(0.7rem, 1.5vw, 1.5rem) 0 4rem;
  color: var(--schedule-ink);
}

.schedule-hero {
  position: relative;
  isolation: isolate;
  min-height: 270px;
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  background: linear-gradient(128deg, #5639e5, #111b31 62%);
  box-shadow: 0 24px 58px rgba(17, 27, 49, 0.24);
}

.schedule-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 5%;
  bottom: -92px;
  width: 285px;
  height: 285px;
  border: 38px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.schedule-hero__shape {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.78;
}

.schedule-hero__shape--lime {
  top: -190px;
  right: 31%;
  width: 280px;
  height: 280px;
  background: rgba(201, 242, 76, 0.58);
}

.schedule-hero__shape--coral {
  right: -100px;
  bottom: -210px;
  width: 330px;
  height: 330px;
  background: rgba(255, 112, 93, 0.86);
}

.schedule-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  min-height: 270px;
  padding: clamp(1.7rem, 4vw, 3.7rem);
}

.schedule-hero__copy {
  min-width: 0;
  max-width: 900px;
  margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.schedule-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: var(--schedule-lime);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.schedule-hero__eyebrow span {
  width: 2rem;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.schedule-hero__title {
  min-width: 0;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.048em;
}

.schedule-hero__title-label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.4em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-hero__title-name {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.schedule-hero__summary {
  position: relative;
  min-width: 285px;
  margin: 0 0 0.4rem;
  padding: 1rem 1.3rem 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px 24px 24px 24px;
  background: rgba(8, 15, 31, 0.4);
  backdrop-filter: blur(10px);
  transform: rotate(-1deg);
}

.schedule-hero__range {
  display: grid;
  min-width: 235px;
  line-height: 1;
}

.schedule-hero__range-point {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  white-space: nowrap;
}

.schedule-hero__range-point small {
  color: var(--schedule-coral);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.schedule-hero__range-point strong {
  color: #fff;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 900;
}

.schedule-hero__range-point--start {
  justify-self: start;
}

.schedule-hero__range-connector {
  justify-self: center;
  width: 76px;
  height: 3px;
  margin: 0.38rem 0 0.32rem;
  border-radius: 999px;
  background: var(--schedule-coral);
  transform: rotate(-8deg);
}

.schedule-hero__range-point--end {
  justify-self: end;
}

.schedule-hero__range-single {
  color: #fff;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.schedule-hero__range-empty {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}

.schedule-controls {
  position: relative;
  z-index: 2;
  width: calc(100% - clamp(1rem, 4vw, 4rem));
  margin: -1.4rem auto 3rem;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 10px 24px 24px 24px;
  background: var(--schedule-paper);
  box-shadow: 0 17px 44px rgba(17, 24, 39, 0.15);
}

.schedule-filter-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.25fr);
  align-items: end;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--schedule-line);
  border-bottom: 1px solid var(--schedule-line);
}

.schedule-filter-disclosure > summary {
  list-style: none;
}

.schedule-filter-disclosure > summary::-webkit-details-marker {
  display: none;
}

.schedule-filter-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 58px;
  padding: 0.72rem 1.25rem;
  color: var(--schedule-ink);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.schedule-filter-summary:focus-visible {
  outline: 3px solid rgba(81, 56, 220, 0.25);
  outline-offset: -3px;
}

.schedule-filter-summary__context {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  gap: 0.7rem;
}

.schedule-filter-summary__value {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.45rem;
  font-weight: 750;
}

.schedule-filter-summary__value i {
  flex: 0 0 auto;
  color: var(--schedule-violet);
}

.schedule-filter-summary__value span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-filter-summary__divider {
  flex: 0 0 auto;
  color: var(--schedule-coral);
  font-size: 1.2rem;
  font-weight: 900;
}

.schedule-filter-summary__action {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--schedule-violet);
  background: #ece8ff;
  font-size: 1rem;
}

.schedule-filter-disclosure[open] .schedule-filter-summary {
  background: #f6f3ff;
}

.schedule-filter-disclosure[open] .schedule-filter-summary__action {
  color: #fff;
  background: var(--schedule-violet);
}

.schedule-filter-field label {
  display: block;
  margin: 0 0 0.35rem 0.15rem;
  color: var(--schedule-muted);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-select-wrap {
  position: relative;
}

.schedule-select-wrap > i {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  color: var(--schedule-violet);
  transform: translateY(-50%);
  pointer-events: none;
}

.schedule-select-wrap select {
  width: 100%;
  min-height: 46px;
  padding: 0.62rem 2.3rem 0.62rem 2.5rem;
  border: 1px solid #cdd1dd;
  border-radius: 12px;
  color: var(--schedule-ink);
  background-color: #fff;
  font-weight: 650;
}

.schedule-select-wrap select:focus-visible {
  outline: 3px solid rgba(81, 56, 220, 0.2);
  border-color: var(--schedule-violet);
}

.schedule-date-link:focus-visible,
.schedule-game:focus-visible {
  outline: 3px solid rgba(81, 56, 220, 0.35);
  outline-offset: 3px;
}

.schedule-date-rail {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.9rem 1.25rem 1.05rem;
  scrollbar-width: thin;
  scrollbar-color: #b5bac8 transparent;
}

.schedule-date-link {
  flex: 0 0 auto;
  display: grid;
  min-width: 132px;
  padding: 0.72rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 6px 15px 15px 15px;
  color: var(--schedule-ink);
  background: #eeeff5;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.schedule-date-link.is-today {
  color: #fff;
  background: var(--schedule-violet);
  transform: translateY(-2px) rotate(-1deg);
}

.schedule-date-link__weekday {
  font-size: 0.73rem;
  font-weight: 850;
  text-transform: uppercase;
}

.schedule-date-link__date {
  margin-top: 0.1rem;
  font-size: 1rem;
  font-weight: 850;
}

.schedule-date-link__count {
  margin-top: 0.28rem;
  color: var(--schedule-muted);
  font-size: 0.71rem;
}

.schedule-date-link.is-today .schedule-date-link__count {
  color: rgba(255, 255, 255, 0.72);
}

@media (hover: hover) and (pointer: fine) {
  .schedule-filter-summary:hover {
    background: #f6f3ff;
  }

  .schedule-date-link:hover {
    color: #fff;
    background: var(--schedule-violet);
    transform: translateY(-2px) rotate(-1deg);
  }

  .schedule-date-link:hover .schedule-date-link__count {
    color: rgba(255, 255, 255, 0.72);
  }
}

.schedule-agenda {
  display: grid;
  gap: clamp(2.8rem, 6vw, 5rem);
  width: min(100%, 1220px);
  margin: 0 auto;
}

.schedule-day {
  display: grid;
  grid-template-columns: 175px minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  scroll-margin-top: 1rem;
}

.schedule-day__header {
  position: sticky;
  top: 1rem;
  padding: 0.25rem 0 1rem;
}

.schedule-day__calendar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 1rem;
  border-radius: 8px 24px 24px 24px;
  color: #fff;
  background: var(--schedule-navy);
  box-shadow: 0 10px 24px rgba(17, 27, 49, 0.2);
  transform: rotate(-2deg);
}

.schedule-day--today .schedule-day__calendar {
  color: #fff;
  background: var(--schedule-violet);
}

.schedule-day--my-team .schedule-day__calendar {
  color: var(--schedule-navy);
  background: var(--schedule-lime);
}

.schedule-day__calendar span {
  margin-bottom: -0.25rem;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.schedule-day__calendar small {
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.schedule-day__relative {
  color: var(--schedule-coral);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.schedule-day__title {
  margin: 0.18rem 0 0;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.schedule-day__count {
  margin-top: 0.65rem;
  color: var(--schedule-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.schedule-day__stroke {
  display: block;
  width: 54px;
  height: 4px;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--schedule-violet);
  transform: rotate(-4deg);
}

.schedule-day__games {
  display: grid;
  gap: 0.85rem;
}

.schedule-game {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 132px;
  padding: 1.25rem 1.4rem;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: 9px 22px 22px 22px;
  color: inherit;
  background: var(--schedule-paper);
  box-shadow: 0 13px 32px rgba(17, 24, 39, 0.1);
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

/* Лёгкий сдвиг ломает табличную монотонность, но не меняет порядок чтения. */
.schedule-game:nth-child(even) {
  width: calc(100% - clamp(1rem, 3vw, 2.4rem));
  margin-left: clamp(1rem, 3vw, 2.4rem);
}

.schedule-game::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--schedule-violet);
}

.schedule-game:hover {
  color: inherit;
  background: #f1f0ff;
  box-shadow: 0 18px 40px rgba(52, 37, 147, 0.16);
  transform: translateY(-2px);
}

.schedule-game--signed {
  border-color: rgba(92, 132, 0, 0.38);
  background: linear-gradient(95deg, #efffc8, var(--schedule-paper) 62%);
}

.schedule-game--signed:hover {
  border-color: rgba(92, 132, 0, 0.62);
  background: linear-gradient(95deg, #dcff84, #f7ffe5 68%);
  box-shadow: 0 18px 40px rgba(88, 128, 0, 0.2);
}

.schedule-game--signed::before {
  background: #74a600;
}

.schedule-game__time {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--schedule-line);
}

.schedule-game__time time {
  color: var(--schedule-violet);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.schedule-game__signed-dot {
  position: absolute;
  top: 50%;
  right: -5px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--schedule-paper);
  border-radius: 50%;
  background: #74a600;
  transform: translate(50%, -50%);
}

.schedule-game__content {
  min-width: 0;
}

.schedule-game__topline {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.schedule-game__title {
  margin: 0;
  font-size: clamp(1.06rem, 1.65vw, 1.35rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.schedule-game__status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: #355200;
  background: #dff7a4;
  font-size: 0.72rem;
  font-weight: 850;
}

.schedule-game__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  margin-top: 0.55rem;
  color: var(--schedule-muted);
  font-size: 0.82rem;
}

.schedule-game__meta > span + span::before {
  content: "·";
  margin-right: 0.8rem;
  color: #a0a5b2;
}

.schedule-game__league {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--schedule-violet);
  font-weight: 850;
}

.schedule-game__league-mark {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--schedule-coral);
  transform: rotate(45deg);
}

.schedule-game__venue {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.7rem;
  color: #353b48;
  font-size: 0.92rem;
  font-weight: 650;
}

.schedule-game__venue i {
  color: var(--schedule-coral);
}

.schedule-game__action {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--schedule-violet);
  font-size: 0.82rem;
  font-weight: 850;
}

.schedule-game__action i {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  color: #fff;
  background: var(--schedule-violet);
  transition: transform 160ms ease, background-color 160ms ease;
}

.schedule-game:hover .schedule-game__action i {
  background: var(--schedule-coral);
  transform: rotate(8deg) scale(1.06);
}

.schedule-game--signed:hover .schedule-game__action i {
  background: #74a600;
}

.schedule-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 2px dashed rgba(81, 56, 220, 0.32);
  border-radius: 10px 24px 24px 24px;
  background: var(--schedule-paper);
}

.schedule-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px 20px 20px 20px;
  color: #fff;
  background: var(--schedule-violet);
  font-size: 1.65rem;
}

.schedule-empty h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
}

.schedule-empty p {
  margin: 0.35rem 0 0;
  color: var(--schedule-muted);
}

@media (max-width: 991.98px) {
  .schedule-hero__content {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .schedule-hero__copy {
    margin-bottom: 0;
  }

  .schedule-hero__summary {
    justify-self: start;
    width: 100%;
    max-width: 32rem;
  }

  .schedule-filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .schedule-day {
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .schedule-body .quag-layout-container {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .schedule-page {
    padding-top: 0.7rem;
  }

  .schedule-hero {
    min-height: 0;
    border-radius: 22px;
  }

  .schedule-hero__content {
    min-height: 0;
    padding: 1.6rem 1.35rem 3.1rem;
  }

  .schedule-hero__title {
    font-size: clamp(2.05rem, 10vw, 3.15rem);
    line-height: 1.02;
  }

  .schedule-hero__summary {
    min-width: 0;
    max-width: 100%;
    transform: none;
  }

  .schedule-hero__range {
    min-width: 0;
  }

  /* На мобильных компактный интервал уже визуально сбалансирован. */
  .schedule-hero__range-connector {
    margin: 0.12rem 0 0.06rem;
  }

  .schedule-filter-summary {
    gap: 0.65rem;
    min-height: 54px;
    padding: 0.55rem 0.75rem;
  }

  .schedule-filter-summary__context {
    gap: 0.4rem;
  }

  .schedule-filter-summary__value {
    gap: 0.3rem;
    font-size: 0.86rem;
  }

  .schedule-filter-summary__divider {
    font-size: 1rem;
  }

  .schedule-controls {
    width: calc(100% - 1rem);
    margin-top: -1.65rem;
    border-radius: 8px 20px 20px 20px;
  }

  .schedule-filter-form {
    grid-template-columns: 1fr;
  }

  .schedule-date-link {
    min-width: 118px;
  }

  .schedule-agenda {
    gap: 3rem;
  }

  .schedule-day {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .schedule-day__header {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0 0.25rem;
  }

  .schedule-day__calendar {
    width: 58px;
    height: 58px;
    margin: 0;
    border-radius: 6px 17px 17px 17px;
  }

  .schedule-day__calendar span {
    font-size: 1.45rem;
  }

  .schedule-day__relative,
  .schedule-day__title {
    grid-column: 2;
  }

  .schedule-day__relative {
    align-self: end;
    margin-bottom: -0.75rem;
  }

  .schedule-day__title {
    align-self: start;
    margin: -0.2rem 0 0;
    font-size: 1.4rem;
  }

  .schedule-day__count {
    grid-column: 3;
    grid-row: 1 / 3;
    margin: 0;
  }

  .schedule-day__stroke {
    display: none;
  }

  .schedule-game,
  .schedule-game:nth-child(even) {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.9rem;
    width: 100%;
    min-height: 0;
    margin-left: 0;
    padding: 1rem;
    border-radius: 7px 18px 18px 18px;
  }

  .schedule-game__time {
    justify-content: flex-start;
  }

  .schedule-game__action {
    display: none;
  }

  .schedule-game__topline {
    display: grid;
  }

  .schedule-game__status {
    width: fit-content;
  }

  .schedule-empty {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 399.98px) {

  .schedule-day__count {
    display: none;
  }

  .schedule-game,
  .schedule-game:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .schedule-game__time {
    justify-content: flex-start;
    padding-bottom: 0.65rem;
    border-right: 0;
    border-bottom: 1px solid var(--schedule-line);
  }

  .schedule-game__signed-dot {
    top: auto;
    right: auto;
    bottom: -5px;
    left: 0;
    transform: translateY(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .schedule-date-link,
  .schedule-game,
  .schedule-game__action i {
    transition: none;
  }
}
