.this-weeks-page {
    display: grid;
    gap: 18px;
}

.search_filter {
    margin: 0;
}

.search_filter form {
    display: grid;
    gap: 12px;
}

.league-select {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
}

.league-select__label {
    margin: 0;
    font-size: 13px;
    color: var(--sub);
}

.league-select select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    font: inherit;
}

.schedule {
    display: grid;
    gap: 24px;
}

.this-week,
.next-week {
    display: grid;
    gap: 20px;
}

.this-week__header,
.next-week__header {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-soft);
    font-size: 20px;
    font-weight: 700;
}

.this-week h3:not(.this-week__header),
.next-week h3:not(.next-week__header) {
    margin: 4px 0 0;
    font-size: 15px;
    color: var(--sub);
}

.match {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 2px 8px var(--shadow);
}

.match__teams {
    text-align: center;
}

.match__team {
    width: 44%;
    padding: 4px 0;
}

.match__team-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.match__team-rank {
    font-size: 13px;
    color: var(--sub);
}

.match td {
    padding: 6px 4px;
}

.match__score {
    color: #b3261e;
    font-size: 18px;
    font-weight: 900;
}

.match__datetime {
    font-size: 14px;
    color: var(--sub);
    text-align: center;
}

.match__heat,
.match__heat-reason,
.match__finished {
    font-size: 13px;
    line-height: 1.8;
}

.match__heat,
.match__heat-reason {
    text-align: left;
}

.match__star {
    font-size: 16px;
    line-height: 1;
    vertical-align: middle;
}

.match__star--full {
    color: #f4b400;
}

.match__star--half {
    background: linear-gradient(90deg, #f4b400 50%, #d0d0d0 50%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.match__star--empty {
    color: #d0d0d0;
}

.match__reason-toggle {
    margin-left: 6px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.match__finished {
    color: var(--sub);
    text-align: center;
}

@media (min-width: 768px) {
    .this-weeks-page {
        gap: 22px;
    }

    .search_filter form {
        width: 100%;
        max-width: none;
    }

    .league-select {
        padding: 14px 16px;
        border-radius: 20px;
    }

    .this-week__header,
    .next-week__header {
        padding: 14px 16px;
        border-radius: 20px;
        font-size: 22px;
    }

    .match {
        padding: 18px;
        border-radius: 22px;
    }

    .match__team-name {
        font-size: 20px;
    }

    .match__score {
        font-size: 20px;
    }
}
