/*
 * Fun Sports 赛事报名系统 — 设计系统
 *
 * 主色调为淡紫（薰衣草紫），按用途分成一条阶梯：
 *   #5f4fc4  主紫，链接与主按钮
 *   #6c5ce7  亮紫，顶栏渐变收尾
 *   #7b6ae2  实色标题条（白字仍清晰）
 *   #c9c0f7 / #ddd7fb / #ebe7fd / #f6f3fe  浅紫，用于面板底色、边框、悬停
 * 中性色也带一点紫调（画布 #f7f4fd、分隔线 #e2ddf1），避免和紫色打架。
 * 语义色（红=错误、绿=通过、黄=提醒）保持原样，不参与换色，以免影响识别。
 */

:root {
    /* 品牌紫 */
    --brand-900: #2e2660;
    --brand-800: #4a3d9e;
    --brand-700: #5f4fc4;
    --brand-600: #6c5ce7;
    --brand-500: #7b6ae2;
    --brand-400: #a396ef;
    --brand-300: #c9c0f7;
    --brand-200: #ddd7fb;
    --brand-100: #ebe7fd;
    --brand-50: #f6f3fe;

    /* 语义色 */
    --accent: #e15055;
    --accent-dark: #c8393e;
    --accent-soft: #fdecec;
    --success: #2f8f5b;
    --success-soft: #e8f6ee;
    --warning: #c47f16;
    --warning-soft: #fdf4e3;
    --danger: #c8393e;
    --danger-soft: #fdecec;

    /* 中性色（带紫调，避免与主色冲突） */
    --ink: #2a2438;
    --ink-2: #443c58;
    --muted: #6f6887;
    --muted-2: #9a93ae;
    --line: #e2ddf1;
    --line-soft: #efeafa;
    --surface: #ffffff;
    --canvas: #f7f4fd;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(58, 42, 110, .06);
    --shadow: 0 2px 10px rgba(58, 42, 110, .09);
    --shadow-lg: 0 12px 32px rgba(58, 42, 110, .16);

    --header-h: 58px;
    --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--canvas);
}

a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.35; }
h1 { font-size: 20px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 10px; }

/* ---------- 顶栏 ---------- */

.topbar {
    /*
     * 淡紫 → 稍深紫的横向渐变（沿用旧版蓝条那套做法，只是方向反过来：
     * 左侧浅一些压住品牌字，右侧更深收尾）。
     * 中间这段刻意停在 --brand-600 附近：白字导航正好落在这一段，
     * 再浅就会掉到 4.5:1 以下，中年用户看着发飘。
     */
    background: linear-gradient(
        100deg,
        #9a89f0 0%,
        #8270e2 22%,
        #6a57cf 60%,
        #5745b5 100%
    );
    color: #fff;
    /* 左半段底子浅，白字加一点极淡的投影把笔画压住，屏幕上看更实 */
    text-shadow: 0 1px 3px rgba(40, 26, 92, .30);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--shadow);
}

.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: var(--header-h);
    padding: 8px 20px;
    display: flex;
    align-items: center;
    gap: 8px 18px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
}
.brand:hover { text-decoration: none; }
.brand small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: .78;
    line-height: 1.2;
}

.mainnav { display: flex; gap: 2px; row-gap: 2px; flex-wrap: wrap; margin-left: 8px; flex: 1 1 auto; min-width: 0; }
.mainnav a {
    color: rgba(255, 255, 255, .88);
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    white-space: nowrap;
}
.mainnav a:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
.mainnav a.active { background: rgba(255, 255, 255, .22); color: #fff; font-weight: 600; }

.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px 12px;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}
.locale-switcher { display: flex; align-items: center; gap: 6px; }
.locale-switcher select { width: auto; min-width: 76px; padding: 5px 8px; font-size: 12px; }
.login-locale-switcher { justify-content: center; margin-top: 18px; }
.login-locale-switcher label { color: var(--muted); font-size: 12px; }
.login-locale-switcher select { min-width: 110px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.whoami { font-size: 13px; opacity: .9; text-align: right; line-height: 1.3; min-width: 0; max-width: 220px; }
.whoami strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.whoami span { display: block; font-size: 11px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.logout-btn {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .42);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}
.logout-btn:hover { background: rgba(255, 255, 255, .3); }

/* ---------- 布局 ---------- */

.page { max-width: 1280px; margin: 0 auto; padding: 22px 20px 56px; }

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 当前比赛切换条 ---------- */

/*
 * 以前这块没有任何样式，label、下拉框、状态徽标各自独占一行，
 * 下拉框又按全局 select 规则撑满整行，看起来像一条 1000px 宽的输入框。
 * 现在收成一条紧凑的工具条：左边选比赛，右边是这场比赛的状态摘要。
 */
.event-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand-500);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.event-switcher { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; }
.event-switcher label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-2);
    white-space: nowrap;
}
.event-switcher select {
    width: auto;
    min-width: 240px;
    max-width: 560px;
    padding: 6px 10px;
    font-size: 13.5px;
    font-weight: 500;
}
.event-bar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
    font-size: 12.5px;
    color: var(--muted);
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- 卡片 ---------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-head {
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--brand-50);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.card-head h2, .card-head h3 { font-size: 15px; }
.card-head .hint { font-size: 12px; color: var(--muted); }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }
.card-foot {
    padding: 12px 16px;
    border-top: 1px solid var(--line-soft);
    background: #fbf9ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 实色紫色标题条 —— 全站统一的视觉锚点 */
.card-head.solid {
    background: var(--brand-500);
    border-bottom-color: var(--brand-500);
}
.card-head.solid h2, .card-head.solid h3, .card-head.solid .hint { color: #fff; }
.card-head.solid .hint { opacity: .85; }

/* ---------- 统计块 ---------- */

.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 15px 16px;
    box-shadow: var(--shadow-sm);
}
.stat .label { font-size: 12px; color: var(--muted); }
.stat .value { font-size: 25px; font-weight: 600; color: var(--brand-700); line-height: 1.25; margin-top: 3px; }
.stat .value.small { font-size: 19px; }
.stat .foot { font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.stat.accent .value { color: var(--accent); }

/* ---------- 表格 ---------- */

.table-wrap { overflow-x: auto; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}
table.data th, table.data td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
}
table.data thead th {
    background: var(--brand-50);
    color: var(--brand-800);
    font-weight: 600;
    font-size: 12.5px;
    white-space: nowrap;
    border-bottom: 1px solid var(--brand-200);
}
table.data tbody tr:hover { background: #faf7ff; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.actions { text-align: right; white-space: nowrap; }
table.data .mono { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
table.data tr.muted-row td { color: var(--muted-2); }
table.data tr.is-blocked td { background: #fffafa; }

/* ---------- 按钮 ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--brand-700);
    background: var(--brand-700);
    color: #fff;
    font-size: 13.5px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--brand-800); border-color: var(--brand-800); text-decoration: none; color: #fff; }
.btn:disabled, .btn.is-disabled {
    background: #f0ecf9; border-color: var(--line); color: var(--muted-2); cursor: not-allowed;
}

.btn.secondary { background: #fff; color: var(--brand-700); border-color: var(--brand-200); }
.btn.secondary:hover { background: var(--brand-50); border-color: var(--brand-400); color: var(--brand-800); }

.btn.ghost { background: transparent; color: var(--brand-700); border-color: transparent; }
.btn.ghost:hover { background: var(--brand-50); color: var(--brand-800); }

.btn.danger { background: #fff; color: var(--danger); border-color: #f2c4c6; }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--accent); color: var(--accent-dark); }

.btn.sm { padding: 5px 11px; font-size: 12.5px; }
.btn.lg { padding: 10px 20px; font-size: 15px; }
.btn.block { width: 100%; }

/* ---------- 徽标 ---------- */

.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 500;
    white-space: nowrap;
}
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }
.badge.error { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--brand-100); color: var(--brand-800); }
.badge.muted { background: #f1edf9; color: var(--muted); }
.badge.brand { background: var(--brand-700); color: #fff; }
/* 实色标题条上的深紫徽标会和底色糊在一起，反白更好认 */
.card-head.solid .badge.brand { background: #fff; color: var(--brand-700); }

/* ---------- 表单 ---------- */

.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field .help { font-size: 12px; color: var(--muted); }
.field .error { font-size: 12px; color: var(--danger); }
.field.full { grid-column: 1 / -1; }

/*
 * 表单控件统一外观。
 * 这里用「排除法」而不是逐个列 type：漏写 type 属性的 <input> 也算文本输入框，
 * 这样它们同样能吃上样式（以前只写了 input[type=text]，裸 <input> 掉回浏览器
 * 默认外观，宽度只有十几个字符，和旁边的 label 挤在一起，很难看）。
 */
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=reset]):not([type=file]):not([type=hidden]):not([type=image]):not([type=range]):not([type=color]),
select, textarea {
    width: 100%;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    background: #fff;
}
input[type=file] {
    font-size: 13px;
    font-family: inherit;
    color: var(--ink-2);
}
input[type=file]::file-selector-button {
    margin-right: 8px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #f7f4fd;
    color: var(--ink);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: #ece6fb; }
input:focus, select:focus, textarea:focus {
    outline: 0;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(123, 106, 226, .18);
}
input.is-invalid, select.is-invalid { border-color: var(--accent); }
textarea { min-height: 80px; resize: vertical; }

.check { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.check input { width: auto; }

/* ---------- 提示条 ---------- */

.alert {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--brand-200);
    background: var(--brand-50);
    color: var(--brand-800);
    font-size: 13.5px;
    margin-bottom: 14px;
}
.alert.success { background: var(--success-soft); border-color: #bfe3cd; color: #1f6b42; }
.alert.error { background: var(--danger-soft); border-color: #f2c4c6; color: var(--accent-dark); }
.alert.warn { background: var(--warning-soft); border-color: #f0d9a8; color: #8a5a0c; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------- 搜索框 ---------- */

.searchbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.searchbar .search-input { position: relative; flex: 1 1 260px; min-width: 200px; }
.players-filter-form select { width: auto; min-width: 92px; }
.searchbar .search-input input { padding-left: 34px; }
.searchbar .search-input::before {
    content: "";
    position: absolute;
    left: 12px; top: 50%;
    width: 13px; height: 13px;
    margin-top: -7px;
    border: 1.8px solid var(--muted-2);
    border-radius: 50%;
}
.searchbar .search-input::after {
    content: "";
    position: absolute;
    left: 22px; top: 50%;
    width: 6px; height: 1.8px;
    margin-top: 4px;
    background: var(--muted-2);
    transform: rotate(45deg);
}

/* ---------- 分页 ---------- */

.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pager .meta { font-size: 13px; color: var(--muted); }
.pager .pages { display: flex; gap: 4px; flex-wrap: wrap; }
.pager .pages a, .pager .pages span {
    min-width: 32px;
    padding: 5px 9px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 13px;
    color: var(--ink-2);
}
.pager .pages a:hover { border-color: var(--brand-400); background: var(--brand-50); text-decoration: none; }
.pager .pages .current { background: var(--brand-700); border-color: var(--brand-700); color: #fff; font-weight: 600; }
.pager .pages .gap { border: 0; background: transparent; color: var(--muted-2); }

.perpage { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.perpage select { width: auto; padding: 5px 8px; font-size: 13px; }

/* ---------- 空状态 ---------- */

.empty {
    padding: 44px 20px;
    text-align: center;
    color: var(--muted);
}
.empty .title { font-size: 15px; color: var(--ink-2); font-weight: 600; margin-bottom: 5px; }
.empty .hint { font-size: 13px; }

/* ---------- 选手卡（移动端友好） ---------- */

.player-list { display: grid; gap: 10px; }

.player-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}
.player-row:hover { border-color: var(--brand-200); background: #fcfaff; }
.player-row .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-800);
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 15px;
    overflow: hidden;
    flex: 0 0 auto;
}
.player-row .avatar img { width: 100%; height: 100%; object-fit: cover; }
.player-row .who { flex: 1 1 auto; min-width: 0; }
.player-row .who .name { font-weight: 600; font-size: 14.5px; }
.player-row .who .meta { font-size: 12.5px; color: var(--muted); }
.player-row .tags { display: flex; gap: 5px; flex-wrap: wrap; }
.player-row .go { flex: 0 0 auto; }

/* ---------- 组别行（可报项目） ---------- */

.option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line-soft);
}
.option-row:last-child { border-bottom: 0; }
.option-row.blocked { background: #fbfafd; }
.option-row .opt-name { font-weight: 500; }
.option-row .opt-meta { font-size: 12.5px; color: var(--muted); }

/* ---------- 报名项目选项卡 ---------- */
.registration-tabs {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
    scrollbar-width: thin;
}
.registration-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13.5px;
    cursor: pointer;
    white-space: nowrap;
}
.registration-tab:hover { color: var(--brand-700); background: var(--brand-50); }
.registration-tab.active {
    border-bottom-color: var(--brand-600);
    color: var(--brand-800);
    font-weight: 600;
}
.registration-panel[hidden] { display: none; }
.official-section + .official-section { margin-top: 16px; }
.official-portrait {
    display: block;
    width: 42px;
    height: 52px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
.registration-category { border-bottom: 1px solid var(--line-soft); }
.registration-category:last-child { border-bottom: 0; }
.registration-category-featured { border-top: 1px solid var(--line); }
.registration-category-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 13px 14px 9px;
    background: #fbf9ff;
}
.registration-category-head strong { color: var(--brand-800); font-size: 16px; }
.registration-category-head .hint { font-size: 12.5px; color: var(--muted); }
.registration-weight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 0 14px 14px;
}
.registration-weight-cell {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}
.registration-option-disabled,
[data-registration-disabled="true"] {
    background: #f1edf9 !important;
    color: var(--muted);
    opacity: .72;
}
.registration-option-disabled .badge { opacity: .8; }
.registration-weight-name { font-weight: 600; color: var(--ink-2); }
.registration-weight-counts { display: flex; gap: 4px; flex-wrap: wrap; }
.registration-weight-cell .btn { align-self: flex-start; margin-top: auto; }
.registration-row-counts { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }

/* ---------- 定义列表 ---------- */

.dl { display: grid; grid-template-columns: 96px 1fr; gap: 7px 14px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--ink); }

/* ---------- 登录页 ---------- */

.login-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
    /* 整屏淡紫：两团柔光叠在浅紫底上，比纯色更透气，白卡片也更跳出来 */
    background:
        radial-gradient(1200px 520px at 14% -14%, #d3c9fd 0%, transparent 58%),
        radial-gradient(980px 460px at 106% 108%, #7f6ee6 0%, transparent 60%),
        linear-gradient(160deg, #a99cf1, #9280ea);
}
.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.login-head {
    position: relative;
    padding: 26px 26px 20px;
    text-align: center;
    background: linear-gradient(160deg, var(--brand-600), var(--brand-700));
    color: #fff;
}
.login-head h1 { color: #fff; font-size: 18px; }
.login-head p { color: rgba(255, 255, 255, .82); font-size: 12.5px; margin: 5px 0 0; }
.login-body { padding: 22px 26px 26px; }

/* ---------- 打印（纸质报名表） ---------- */

@media print {
    .no-print { display: none !important; }
    body { background: #fff; font-size: 12px; }
    .page { max-width: none; padding: 0; }
    .card { border: 0; box-shadow: none; }
    table.data th, table.data td { padding: 5px 6px; border-bottom: 1px solid #999; }
}

/* ---------- 移动端 ---------- */

@media (max-width: 720px) {
    .page { padding: 16px 13px 44px; }
    .topbar-inner { padding: 9px 13px; gap: 10px; }
    .mainnav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 3px; }
    .mainnav a { padding: 6px 10px; font-size: 13px; }
    .topbar-right { margin-left: auto; }
    .whoami { display: none; }
    .page-head { align-items: flex-start; }
    .dl { grid-template-columns: 84px 1fr; }
    .players-filter-form { align-items: stretch; }
    .players-filter-form .search-input { flex-basis: 100%; }
    .players-filter-form select { flex: 1 1 120px; }
    .registration-category-head { align-items: flex-start; flex-direction: column; gap: 2px; }
    .registration-weight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .player-row { flex-wrap: wrap; }
    .event-bar { gap: 6px 10px; }
    .event-switcher { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; }
    .event-switcher label { font-size: 12px; }
    .event-switcher select { width: 100%; min-width: 0; max-width: none; }
    .event-bar-meta { margin-left: 0; }
}
