:root {
    --schedule-ink: #07162f;
    --schedule-blue: #1764ff;
    --schedule-cyan: #22c3ff;
    --schedule-line: #dbe7f3;
}

.schedule-page { background: #f3f7fb; color: var(--schedule-ink); }
.schedule-header { background: rgba(4, 17, 39, .94); }
.header__nav-link--active { color: #fff; }
.header__nav-link--active::after { width: 100%; }

.schedule-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 78% 15%, rgba(34, 195, 255, .35), transparent 23%), linear-gradient(123deg, #06162f 0%, #0b398d 72%, #1479ec 100%);
    padding: 76px 0 92px;
}
.schedule-hero::after { content: ""; position: absolute; right: -8%; bottom: -140px; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 150px rgba(255,255,255,.025); }
.schedule-hero__inner { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.schedule-hero__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: #9ddfff; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.schedule-hero__eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #3fe18f; box-shadow: 0 0 0 6px rgba(63,225,143,.12); }
.schedule-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 78px); line-height: .98; letter-spacing: -.055em; }
.schedule-hero p:not(.schedule-hero__eyebrow) { max-width: 720px; margin: 24px 0 0; color: #d3e4ff; font-size: 18px; line-height: 1.65; }
.schedule-hero__summary { display: grid; min-width: 205px; padding: 24px 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 22px; background: rgba(3,17,42,.45); backdrop-filter: blur(12px); }
.schedule-hero__summary strong { font-size: 48px; line-height: 1; }
.schedule-hero__summary span { margin-top: 7px; color: #c6ddff; }

.schedule-shell { position: relative; padding: 0 0 88px; }
.schedule-toolbar { position: relative; z-index: 2; margin-top: -48px; padding: 24px; border: 1px solid rgba(205,220,236,.9); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(8,34,72,.12); }
.schedule-toolbar__top { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.schedule-toolbar__label { display: block; margin: 0 0 9px; color: #6a7c95; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.period-switch { display: flex; gap: 5px; padding: 5px; border-radius: 13px; background: #edf3f9; }
.period-switch__button, .filter-button { border: 0; font: inherit; cursor: pointer; }
.period-switch__button { padding: 11px 16px; border-radius: 10px; color: #52657e; background: transparent; font-weight: 700; }
.period-switch__button.is-active { color: #fff; background: var(--schedule-blue); box-shadow: 0 8px 20px rgba(23,100,255,.25); }
.filter-button { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; color: #19365d; background: #edf3f9; font-weight: 800; }
.filter-button b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #fff; background: var(--schedule-blue); font-size: 11px; }
.schedule-toolbar__filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.filter-select { position: relative; min-width: 0; }
.custom-select__trigger { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 64px; padding: 10px 14px; border: 1px solid var(--schedule-line); border-radius: 13px; color: #18345b; text-align: left; background: #fff; font: inherit; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.custom-select__trigger:hover { border-color: #abc4e1; background: #fbfdff; }
.custom-select.is-open .custom-select__trigger { border-color: var(--schedule-blue); box-shadow: 0 0 0 4px rgba(23,100,255,.1); }
.custom-select__trigger > span { display: grid; min-width: 0; gap: 5px; }
.custom-select__trigger small { color: #7a8ba2; font-size: 10px; font-weight: 700; }
.custom-select__trigger strong { overflow: hidden; color: #18345b; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.custom-select__trigger i { flex: 0 0 9px; width: 9px; height: 9px; border-right: 2px solid #71859e; border-bottom: 2px solid #71859e; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.custom-select.is-open .custom-select__trigger i { transform: translateY(3px) rotate(225deg); }
.custom-select__menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; display: grid; max-height: 300px; padding: 7px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #d8e5f2; border-radius: 15px; opacity: 0; pointer-events: none; transform: translateY(-7px) scale(.985); transform-origin: top; background: rgba(255,255,255,.98); box-shadow: 0 20px 45px rgba(8,34,72,.18); transition: opacity .16s ease, transform .16s ease; }
.custom-select.is-open .custom-select__menu { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.custom-select__option { position: relative; width: 100%; padding: 11px 34px 11px 12px; border: 0; border-radius: 10px; color: #36516f; text-align: left; background: transparent; font: 700 12px/1.35 "Manrope", sans-serif; cursor: pointer; }
.custom-select__option:hover, .custom-select__option:focus-visible { color: #104fbf; outline: 0; background: #edf4ff; }
.custom-select__option.is-selected { color: #104fbf; background: #e8f1ff; }
.custom-select__option.is-selected::after { content: "✓"; position: absolute; right: 12px; top: 50%; color: var(--schedule-blue); transform: translateY(-50%); }
.filter-select--month { display: none; }
.filter-select--month.is-visible { display: grid; }

.schedule-heading { display: flex; justify-content: space-between; align-items: end; margin: 46px 0 20px; }
.schedule-heading p { margin: 0 0 4px; color: var(--schedule-blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.schedule-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.schedule-legend { color: #6a7c95; font-size: 13px; }
.schedule-legend span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #22c3ff; }

.schedule-day { overflow: hidden; border: 1px solid var(--schedule-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 35px rgba(20,50,87,.06); }
.schedule-day + .schedule-day { margin-top: 18px; }
.schedule-day__header { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid var(--schedule-line); background: #f8fbfe; }
.schedule-day__header > div { display: flex; align-items: center; gap: 12px; }
.schedule-day__header b { color: var(--schedule-blue); font-size: 30px; line-height: 1; }
.schedule-day__header span { color: #72839a; font-size: 12px; line-height: 1.3; }
.match-card { display: grid; grid-template-columns: 110px minmax(320px, 1.35fr) minmax(220px, 1fr) 120px; align-items: center; min-height: 118px; padding: 20px 22px; border-bottom: 1px solid var(--schedule-line); transition: background .2s ease, transform .2s ease; }
.match-card:last-child { border-bottom: 0; }
.match-card:hover { background: #f6faff; }
.match-card__time { display: grid; gap: 7px; padding-right: 22px; border-right: 1px solid var(--schedule-line); }
.match-card__time strong { font-size: 23px; }
.match-card__time span { color: #75869c; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.match-card__teams { display: grid; gap: 9px; padding: 0 28px; }
.team-line { display: flex; align-items: center; gap: 11px; min-width: 0; }
.team-line__name { min-width: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.team-line i { margin-left: 5px; color: #8191a7; font-size: 11px; font-style: normal; font-weight: 700; }
.team-line__score { flex: 0 0 44px; margin-left: auto; color: #102d53; font-size: 27px; font-weight: 800; line-height: 1; text-align: right; letter-spacing: -.05em; }
.team-mark { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 3px; border-radius: 50%; color: #fff; background: #eef4fa; font-size: 10px; font-weight: 900; box-shadow: inset 0 0 0 1px rgba(14,55,105,.1); }
.team-mark img { width: 100%; height: 100%; object-fit: contain; }
.team-mark--blue { background: linear-gradient(145deg,#1682f4,#053785); }
.team-mark--orange { background: linear-gradient(145deg,#ffb42c,#d34b13); }
.team-mark--red { background: linear-gradient(145deg,#fa4e58,#9e1028); }
.team-mark--navy { background: linear-gradient(145deg,#1b65bb,#071e4d); }
.match-card__meta { display: grid; gap: 6px; }
.match-card__meta span { color: #274260; font-size: 13px; font-weight: 700; }
.match-card__meta small { color: #8191a7; }
.match-card__badges { display: flex; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.match-card__status { display: inline-flex; align-items: center; width: max-content; gap: 6px; margin-top: 4px; padding: 5px 9px; border: 1px solid #bcebd7; border-radius: 99px; color: #08764f; background: #e7f9f1; font-size: 10px; font-weight: 850; }
.match-card__status i { width: 6px; height: 6px; border-radius: 50%; background: #11ad73; box-shadow: 0 0 0 4px rgba(17,173,115,.12); }
.match-card__status--live { color: #b91c1c; border-color: #fecaca; background: #fff1f2; }
.match-card__status--live i { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.13); animation: live-pulse 1.4s ease-in-out infinite; }
.match-card__status--pending { color: #9a5b05; border-color: #fde2a8; background: #fff8e7; }
.match-card__status--pending i { background: #e99a17; box-shadow: 0 0 0 4px rgba(233,154,23,.12); }
@keyframes live-pulse { 50% { opacity: .35; transform: scale(.75); } }
.match-card__action { justify-self: end; color: var(--schedule-blue); font-size: 12px; font-weight: 800; }
.match-card__action span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 7px; border-radius: 50%; color: #fff; background: var(--schedule-blue); }
.match-card__stream { display: inline-flex; align-items: center; width: max-content; gap: 5px; margin-top: 4px; padding: 4px 8px; border-radius: 99px; color: #057a57; background: #e4fbf2; font-size: 10px; font-weight: 800; }
.schedule-empty { padding: 54px 24px; border: 1px dashed #b9cbe0; border-radius: 22px; color: #71849b; text-align: center; background: rgba(255,255,255,.72); }
.schedule-empty strong { display: block; margin-bottom: 8px; color: #19385f; font-size: 20px; }
.schedule-loading { padding: 46px; color: #6f8199; text-align: center; }
.schedule-error { padding: 30px; border: 1px solid #fecaca; border-radius: 18px; color: #991b1b; background: #fff1f2; }

@media (max-width: 900px) {
    .schedule-hero__summary { display: none; }
    .match-card { grid-template-columns: 82px 1fr 38px; }
    .match-card__meta { grid-column: 2; margin-top: 12px; }
    .match-card__action { grid-column: 3; grid-row: 1 / span 2; font-size: 0; }
}
@media (max-width: 640px) {
    .schedule-hero { padding: 54px 0 78px; }
    .schedule-hero p:not(.schedule-hero__eyebrow) { font-size: 15px; }
    .schedule-toolbar { margin-top: -34px; padding: 16px; border-radius: 18px; }
    .schedule-toolbar__top { display: block; }
    .period-switch { overflow-x: auto; }
    .period-switch__button { flex: 0 0 auto; padding: 10px 12px; font-size: 12px; }
    .filter-button { display: none; }
    .schedule-toolbar__filters { grid-template-columns: 1fr; }
    .schedule-heading { margin-top: 34px; }
    .schedule-legend { display: none; }
    .schedule-day { border-radius: 16px; }
    .match-card { grid-template-columns: 78px minmax(0,1fr) 34px; grid-template-rows: auto auto; min-height: 0; padding: 0; }
    .match-card__time { grid-column: 1; grid-row: 1 / -1; align-self: stretch; align-content: start; gap: 8px; min-width: 0; padding: 17px 9px; border-right: 1px solid #dce8f4; border-bottom: 0; }
    .match-card__time strong { font-size: 18px; letter-spacing: -.03em; }
    .match-card__time span { display: block; max-width: 60px; overflow-wrap: anywhere; color: #71849b; font-size: 8px; line-height: 1.35; letter-spacing: .04em; }
    .match-card__teams { grid-column: 2; grid-row: 1; gap: 10px; padding: 15px 12px 12px; }
    .team-line { gap: 9px; }
    .team-line__name { font-size: 12px; }
    .team-line__score { flex-basis: 34px; font-size: 24px; }
    .team-mark { flex-basis: 32px; width: 32px; height: 32px; font-size: 9px; }
    .match-card__meta { grid-column: 2; grid-row: 2; gap: 4px; margin: 0; padding: 0 12px 14px; }
    .match-card__meta span { font-size: 10px; line-height: 1.35; }
    .match-card__meta small { font-size: 9px; }
    .match-card__badges { min-height: 0; margin-top: 3px; }
    .match-card__status, .match-card__stream { margin-top: 0; }
    .match-card__action { grid-column: 3; grid-row: 1 / -1; align-self: stretch; display: grid; place-items: center; width: 34px; border-left: 1px solid #dce8f4; color: var(--schedule-blue); background: linear-gradient(180deg,#f7fbff,#edf5ff); }
    .match-card__action span { width: auto; height: auto; margin: 0; border-radius: 0; color: transparent; background: transparent; font-size: 0; }
    .match-card__action span::after { content: "›"; color: var(--schedule-blue); font-size: 27px; font-weight: 500; }
}
