:root {
  /* Ice Arena Portal: ледяная сине-голубая палитра, не зависит от клуба. */
  --sohl-bg: #061225;
  --sohl-panel: #08172e;
  --sohl-panel-2: #0c2342;
  --sohl-panel-highlight: #153b63;
  --sohl-ice: #61caff;
  --sohl-ice-bright: #a4e9ff;
  --sohl-text: #eaf5ff;
  --sohl-muted: #9cb2cc;
  --sohl-line: rgba(91, 190, 255, .55);
  --sohl-radius: 16px;
  --sohl-gap: 16px;
  --bg: var(--sohl-bg);
  --bg-2: #0a1a33;
  --panel: var(--sohl-panel);
  --panel-2: var(--sohl-panel-2);
  --line: #1d3252;
  --text: var(--sohl-text);
  --dim: var(--sohl-muted);
  --accent: #2f9bff;
  --accent-2: var(--sohl-ice);
  --gold: #f5c542;
  --green: #3ddc97;
  --red: #ff5d73;
  --amber: #ffb454;
  --radius: var(--sohl-radius);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  /* Единый стиль: размеры, скругления и состояния для всех элементов. */
  --ctl-h: 36px;
  --ctl-h-sm: 30px;
  --r-chip: 8px;
  --r-ctl: 10px;
  --edge: rgba(99, 207, 255, .5);
  --edge-hover: rgba(47, 155, 255, .6);
  --focus: 0 0 0 2px rgba(47, 155, 255, .45);
  --link-hover: #c4f1ff;
  /* Акцентные токены: стандартный голубой SOHL; режим «Клубные акценты» подменяет только их. */
  --accent-primary: #59bfff;
  --accent-hover: #8bd6ff;
  --accent-border: rgba(89, 191, 255, .55);
  --accent-glow: rgba(89, 191, 255, .30);
  --accent-soft: rgba(89, 191, 255, .12);
  --fs-xs: .75rem;
  --fs-sm: .85rem;
  /* Главная v2: размеры уплотнения и цвета категорий новостей. */
  --scrim-bg: rgba(3, 10, 24, .34);
  --thumb-w: 118px;
  --side-w: 236px;
  --item-gap: .75rem;
  --row-pad: .35rem;
  --tag-official: #6bc9ff;
  --tag-update: #3ddc97;
  --tag-tournament: #f5c542;
  --tag-interview: #c9b6ff;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; font-size: clamp(13.5px, .4vw + 10px, 15.5px); }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(var(--scrim-bg), var(--scrim-bg)), var(--bg) url("img/ui/bg-arena.webp") center top / cover no-repeat;
  background-attachment: fixed;
  isolation: isolate;
}
/* Свет арены тремя слоями под панелями: ambient (боковая засветка, не привязана к картинке), LED-лента и отражения (маски той же геометрии, что и фон). Цвет --accent-primary: голубой SOHL или клубный. Прожекторы остаются бело-голубыми из самой картинки. */
:root {
  --arena-led-opacity: .6;
  --arena-reflection-opacity: .4;
  --arena-ambient-opacity: 10%;
  --arena-ambient-width: clamp(300px, 24vw, 480px);
  --arena-ambient-offset: -4vw;
}
body::before, body::after, #app::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
body::before {
  background: var(--accent-primary); opacity: var(--arena-led-opacity);
  -webkit-mask: url("img/ui/arena-led.webp") center top / cover no-repeat;
  mask: url("img/ui/arena-led.webp") center top / cover no-repeat;
}
body::after {
  background: var(--accent-primary); opacity: var(--arena-reflection-opacity);
  -webkit-mask: url("img/ui/arena-refl.webp") center top / cover no-repeat;
  mask: url("img/ui/arena-refl.webp") center top / cover no-repeat;
}
#app::before {
  --glow: color-mix(in srgb, var(--accent-primary) var(--arena-ambient-opacity), transparent);
  background:
    radial-gradient(ellipse var(--arena-ambient-width) 55vh at var(--arena-ambient-offset) 40vh, var(--glow), transparent 72%),
    radial-gradient(ellipse var(--arena-ambient-width) 55vh at calc(100% - var(--arena-ambient-offset)) 40vh, var(--glow), transparent 72%);
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: none; }
a:not([class]):hover, .card-title a:hover, .score-link:hover, .match-head .team a:hover, .club-cell:hover span, .series .games a:hover { color: var(--link-hover); }
h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 600; }
b, strong, th { font-weight: 600; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.05rem; }
.subtitle { color: var(--dim); margin: .3rem 0 0; }
.dim { color: var(--dim); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .9rem;
  padding: .55rem 1.5rem;
  background: rgba(8, 17, 31, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Линии площадки под шапкой: две синие на третях и красная по центру. */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background:
    linear-gradient(#d83a4a, #d83a4a) 50% 0 / 4px 100% no-repeat,
    linear-gradient(#2f9bff, #2f9bff) 33.3% 0 / 4px 100% no-repeat,
    linear-gradient(#2f9bff, #2f9bff) 66.6% 0 / 4px 100% no-repeat;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-icon-wrap { position: relative; display: block; width: 40px; height: 40px; flex: none; }
.brand-icon { display: block; width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(47, 200, 255, .7)); }
.brand-icon-glare { position: absolute; inset: 0; overflow: hidden; border-radius: 6px; pointer-events: none; }
.brand-icon-glare::after { content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 100%; opacity: 0; transform: translateX(-220%);
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .9) 50%, transparent 100%); }
.brand.brand-shine-play .brand-icon-glare::after { animation: brand-glare-icon .55s ease-in-out forwards; }
@keyframes brand-glare-icon { 0% { opacity: 0; transform: translateX(-220%); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(220%); } }
.brand .small { display: block; font-size: .55rem; letter-spacing: .2em; color: var(--dim); }
.brand .big { display: block; font-size: 1rem; font-weight: 600; letter-spacing: .04em; background-image: linear-gradient(90deg, var(--accent-2), var(--accent)); background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand.brand-shine-play .big { background-image: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 35%, #fff 50%, var(--accent-2) 65%, var(--accent) 100%); background-size: 250% 100%; animation: brand-shine .65s ease-in-out .45s backwards; }
@keyframes brand-shine { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.quick { display: flex; gap: .2rem; margin-left: 1rem; }
.quick a { display: inline-flex; align-items: center; height: var(--ctl-h); padding: 0 .9rem; border-radius: var(--r-ctl); font-size: .9rem; color: var(--dim); font-weight: 600; white-space: nowrap; }
.quick a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.quick a.active { color: #fff; background: linear-gradient(180deg, rgba(14, 76, 131, .75), rgba(7, 49, 93, .6)); box-shadow: inset 0 -2px 0 var(--sohl-ice), 0 0 12px rgba(31, 164, 255, .35); }
.quick a:focus-visible, .side a:focus-visible, .card-title a:focus-visible, .forum-row a:focus-visible, .score-link:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-chip); }
.spacer { flex: 1; }
/* Табло: игровой день цифрами на тёмной панели с горящей лампой. */
.chip-game { display: flex; align-items: center; gap: .45rem; height: 36px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--r-ctl); background: #050c1a; font-weight: 600; font-size: .78rem; letter-spacing: .06em; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip-game b { color: #ff5468; font-size: .95rem; text-shadow: 0 0 8px rgba(255, 84, 104, .55); }
.chip-game i { font-style: normal; opacity: .5; }
.lamp { width: 7px; height: 7px; border-radius: 50%; background: #ff5468; box-shadow: 0 0 7px #ff5468; }

/* Каркас */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); gap: 1.5rem; max-width: 1480px; margin: 0 auto; padding: 1.4rem 1.5rem; }
.side { position: sticky; top: 64px; align-self: start; display: flex; flex-direction: column; gap: .1rem; padding: .5rem; background: var(--sohl-panel); border: 1px solid var(--line); border-radius: var(--radius); }
.side a { display: flex; align-items: center; white-space: nowrap; gap: .65rem; padding: .4rem .75rem; border: 1px solid transparent; border-radius: var(--r-chip); color: var(--dim); font-weight: 500; line-height: 1.35; }
.side a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.side a.active { background: linear-gradient(90deg, #0e4c83, #07315d); color: #fff; border-color: #72d7ff; box-shadow: inset 0 1px 0 rgba(186, 230, 255, .30), inset 0 0 12px rgba(93, 204, 255, .30), 0 0 16px rgba(31, 164, 255, .55); }
.side a.active svg { color: var(--sohl-ice-bright); opacity: 1; }
.side .sep { height: 1px; background: var(--line); margin: .4rem .3rem; }
.side svg { width: 16px; height: 16px; flex: none; opacity: .9; }
main { min-width: 0; }

/* Карточки и сетки */
.card { background: var(--sohl-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1.1rem; }
.grid-2 > .card + .card, .grid-3 > .card + .card, .bio > .card + .card { margin-top: 0; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-weight: 600; font-size: 1.05rem; margin-bottom: .85rem; }
.card-title a { font-size: .85rem; font-weight: 500; }
.stack .card-title { margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(99, 207, 255, .2); box-shadow: 0 1px 0 rgba(99, 207, 255, .06); }
.stack .card-title > span:first-child { display: inline-flex; align-items: center; gap: .45rem; padding-left: .6rem; border-left: 2px solid var(--accent-2); line-height: 1.2; white-space: nowrap; }
.stack .card-title > a { color: var(--accent-2); opacity: .9; white-space: nowrap; }
.stack .card-title > a:hover { opacity: 1; }
.ic.lg { width: 16px; height: 16px; }
.card-title .ic { color: var(--dim); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
/* Главная: правая колонка уже, новости шире. */
.grid-2.home-cols { grid-template-columns: minmax(0, 1fr) clamp(290px, 20vw, 370px); }
/* На главной контент занимает широкий экран: общий лимит 1480 px оставлял пустые поля по бокам. */
body:has(.home-cols) .shell { max-width: 1840px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.stack > * + * { margin-top: var(--sohl-gap); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* Вкладки, кнопки, формы */
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.tab-btn { background: none; border: 0; color: var(--dim); padding: .6rem .9rem; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }
.pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; height: var(--ctl-h-sm); padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--dim); cursor: pointer; font: inherit; font-size: var(--fs-sm); font-weight: 500; transition: border-color .15s, color .15s; }
.pill:hover { border-color: var(--edge-hover); color: var(--text); }
.pill.active { background: var(--accent); border-color: var(--accent); color: #04101f; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: var(--ctl-h); background: var(--accent); color: #04101f; border: 1px solid transparent; border-radius: var(--r-ctl); padding: 0 1.1rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: filter .15s, background .15s, border-color .15s; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: var(--panel-2); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { filter: none; border-color: var(--edge-hover); }
.btn.danger { background: transparent; color: var(--red); border-color: rgba(255, 93, 115, .5); }
.btn.danger:hover { filter: none; background: rgba(255, 93, 115, .12); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn:focus-visible, .pill:focus-visible, .puck:focus-visible, .tab-btn:focus-visible { outline: none; box-shadow: var(--focus); }
label.field { display: block; font-weight: 600; margin: .7rem 0 .25rem; font-size: .9rem; }
input[type=text], input[type=email], input[type=password], textarea, select { width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-ctl); padding: 0 .8rem; height: var(--ctl-h); font: inherit; font-size: .9rem; transition: border-color .15s, box-shadow .15s; }
input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, textarea:hover, select:hover { border-color: var(--edge-hover); }
input[type=text]:focus, input[type=email]:focus, input[type=password]:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
textarea { height: auto; padding: .6rem .8rem; min-height: 150px; resize: vertical; }
.check { display: inline-flex; align-items: center; gap: .5rem; margin: .5rem 0; cursor: pointer; }

/* Таблицы */
table { width: 100%; border-collapse: collapse; }
th, td { padding: .55rem .75rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(47, 155, 255, .06); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.group-row td { background: var(--panel-2); font-weight: 600; color: var(--dim); text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: .06em; }

/* Чипы и бейджи */
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--line); background: var(--panel-2); color: var(--dim); }
.badge.pos-C { color: #ffd166; border-color: rgba(255, 209, 102, .4); }
.badge.pos-LW, .badge.pos-RW { color: #6ee7b7; border-color: rgba(110, 231, 183, .4); }
.badge.pos-D { color: #7cc4ff; border-color: rgba(124, 196, 255, .4); }
.badge.pos-G { color: #f9a8d4; border-color: rgba(249, 168, 212, .4); }
.badge.warn { color: var(--amber); border-color: rgba(255, 180, 84, .5); }
.chip { display: inline-block; min-width: 2.2rem; text-align: center; padding: .12rem .45rem; border-radius: var(--r-chip); font-weight: 600; font-variant-numeric: tabular-nums; }
.tier-elite { background: rgba(61, 220, 151, .22); color: var(--green); }
.tier-good { background: rgba(47, 155, 255, .22); color: var(--accent-2); }
.tier-avg { background: rgba(142, 162, 189, .18); color: var(--text); }
.tier-low { background: rgba(255, 93, 115, .2); color: var(--red); }
.ovr { display: inline-block; min-width: 2.6rem; text-align: center; padding: .15rem .45rem; border-radius: var(--r-chip); font-weight: 600; }
.crest { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; letter-spacing: .02em; color: #04101f; flex: none; }

/* Новости */
.news-item { display: grid; grid-template-columns: var(--thumb-w) minmax(0, 1fr); gap: .9rem; padding: calc(var(--item-gap) * .79) 0; border-top: 1px solid var(--line); }
.news-item:first-of-type { border-top: 0; padding-top: 0; }
.news-thumb { aspect-ratio: 29 / 25; align-self: start; border-radius: 8px; background: linear-gradient(135deg, #12345f, #0b1e3a 55%, #164a7a); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.news-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px 60px at 30% 20%, rgba(255, 255, 255, .22), transparent 70%); }
.tag { display: inline-block; padding: .05rem .45rem; border-radius: var(--r-chip); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: rgba(47, 155, 255, .22); color: var(--accent-2); margin-right: .45rem; }
.tag.official { background: rgba(107, 201, 255, .2); color: var(--tag-official); }
.tag.update { background: rgba(61, 220, 151, .2); color: var(--tag-update); }
.tag.tournament { background: rgba(245, 197, 66, .2); color: var(--tag-tournament); }
.news-head { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem; font-size: var(--fs-sm); }
.news-title { margin: .2rem 0 .12rem; font-size: 1rem; }
.news-item .clamp-3 { line-height: 1.42; }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; line-clamp: 3; }
.news-meta { color: var(--dim); font-size: var(--fs-sm); margin-top: .22rem; display: flex; gap: .9rem; align-items: center; }
.news-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.ic { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pin { color: var(--gold); }
.forum-row { display: flex; align-items: center; gap: .5rem; padding: var(--row-pad) 0; border-top: 1px solid var(--line); line-height: 1.3; font-size: .92rem; }
.forum-row .ic { color: var(--dim); }
.forum-row a { min-width: 0; color: var(--text); }
.forum-row a.unread { color: var(--accent-2); font-weight: 600; }
.forum-row a:hover { color: var(--link-hover); }
.forum-row:first-of-type { border-top: 0; }
.forum-row .count { margin-left: auto; flex: none; min-width: 1.7rem; text-align: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-chip); padding: 0 .35rem; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.press-item { padding: .4rem 0; border-top: 1px solid var(--line); line-height: 1.35; }
.press-item:first-of-type { border-top: 0; padding-top: 0; }
.press-item b { display: block; color: #fff; font-size: .95rem; }
.press-item .dim { font-size: var(--fs-sm); margin-top: .1rem; }

/* Игрок */
.bio { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
.avatar { width: 96px; height: 96px; border-radius: var(--radius); background: linear-gradient(160deg, #17406e, #0c2142); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 2.1rem; font-weight: 600; color: var(--accent-2); }
.bio-name { font-size: 1.6rem; font-weight: 600; }
.bio-facts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: .6rem; color: var(--dim); }
.bio-facts b { color: var(--text); }
.ovr-big { text-align: center; padding: .6rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); }
.ovr-big .v { font-size: 2.1rem; font-weight: 600; line-height: 1; }
.ovr-big .l { color: var(--dim); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.stat-line { display: grid; grid-template-columns: 130px minmax(0, 1fr) 40px; gap: .6rem; align-items: center; padding: .3rem 0; }
.bar { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.empty { color: var(--dim); padding: 1.6rem 1rem; text-align: center; border-radius: var(--radius); border: 1px dashed var(--line);
  background: url("img/ui/empty-state.jpg") center / cover; color: #fff; font-weight: 500; text-shadow: 0 1px 6px #000, 0 0 14px #000; }

/* Состав на матч */
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-items: start; }
.cols-2 > .card + .card { margin-top: 0; }
.ice { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, .8fr); gap: 1.4rem; align-items: start; position: relative; border-radius: var(--radius); padding: .8rem 1rem .2rem; border: 1px solid #2c5b91; background:
  radial-gradient(500px 300px at 50% 0%, rgba(255, 255, 255, .12), transparent 70%),
  linear-gradient(180deg, #14355c, #0d2447); box-shadow: inset 0 0 60px rgba(0, 0, 0, .35); }
.ice h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: #9fc4ee; margin: .2rem 0 .5rem; }
.unit { display: grid; gap: .6rem; margin-bottom: 1rem; position: relative; }
.unit.f { grid-template-columns: 52px repeat(3, minmax(0, 1fr)); align-items: stretch; }
.unit.d { grid-template-columns: 52px repeat(2, minmax(0, 1fr)); }
.unit.g { grid-template-columns: minmax(0, 1fr); }
.unit .tag-l { display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(8, 17, 31, .55); color: #9fc4ee; font-weight: 600; font-size: .8rem; }
.slot { position: relative; min-height: 58px; border-radius: 10px; border: 1px dashed rgba(159, 196, 238, .45); background: rgba(8, 17, 31, .5); padding: .5rem .75rem; cursor: pointer; display: flex; flex-direction: column; justify-content: center; }
.slot:hover { border-color: var(--edge-hover); }
.slot.filled { border-style: solid; background: rgba(8, 17, 31, .72); }
.slot.selected { outline: 2px solid var(--gold); }
.slot.bad { border-color: var(--red); }
.slot .role { font-size: .68rem; color: #9fc4ee; letter-spacing: .1em; text-transform: uppercase; }
.slot .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .meta { display: flex; justify-content: space-between; gap: .4rem; align-items: center; font-size: .78rem; color: var(--dim); }
.bench-item { display: flex; align-items: center; gap: .6rem; padding: .45rem .5rem; border: 1px solid var(--line); border-radius: var(--r-ctl); margin-bottom: .4rem; cursor: pointer; background: var(--panel-2); transition: border-color .15s; }
.bench-item:hover { border-color: var(--edge-hover); }
.bench-item.selected { outline: 2px solid var(--gold); }
.tactic { padding: .5rem 0; }
.tactic small { display: block; color: var(--dim); margin-top: .15rem; font-size: .8rem; }
.toast { position: fixed; right: 1.2rem; bottom: 1.2rem; background: var(--panel-2); border: 1px solid var(--accent); padding: .7rem 1rem; border-radius: 10px; box-shadow: var(--shadow); z-index: 50; }

/* Аккаунт, формы входа, свободные команды */
.auth { max-width: 420px; margin: 2rem auto; }
.field { display: block; margin-top: .8rem; }
.field > span { display: block; margin-bottom: .25rem; color: var(--dim); font-size: .85rem; }
.form-error { color: var(--red); margin-top: .8rem; min-height: 1.2rem; }
.club-row { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.club-row:first-child { border-top: 0; }
.club-row .grow { flex: 1; min-width: 0; }
.attr-edit { display: grid; grid-template-columns: 10rem auto 2.5rem auto; gap: .6rem; align-items: center; padding: .3rem 0; }
.attr-edit b { text-align: center; font-size: 1.1rem; }
.btn.sm, .attr-edit .btn { height: var(--ctl-h-sm); padding: 0 .8rem; font-size: var(--fs-sm); }
.attr-edit .btn:disabled { opacity: .4; cursor: default; }
.attr-row { display: grid; grid-template-columns: 10rem 1fr 2rem; gap: .8rem; align-items: center; padding: .35rem 0; }

.menu-btn { display: none; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-ctl); width: var(--ctl-h); height: var(--ctl-h); font-size: 1.1rem; cursor: pointer; flex: none; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 35; }
.scrim.show { display: block; }

@media (max-width: 1180px) {
  .spacer { flex: 1; }
}

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .quick { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; top: 0; left: 0; bottom: 0; width: 250px; z-index: 40; overflow-y: auto; border-radius: 0 var(--radius) var(--radius) 0; transform: translateX(-105%); transition: transform .2s ease; padding-top: .8rem; }
  .side.open { transform: none; }
  .grid-2, .cols-2, .ice { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  :root { --thumb-w: 104px; }
  .bio { grid-template-columns: 80px minmax(0, 1fr) auto; }
  .bio .avatar { width: 80px; height: 80px; font-size: 1.7rem; }
}

@media (max-width: 700px) {
  .chip-game { display: none; }
  .shell { padding: .6rem; }
  .bio { grid-template-columns: 64px minmax(0, 1fr); }
  .bio .avatar { width: 64px; height: 64px; font-size: 1.4rem; }
  .bio .ovr-big { grid-column: 1 / -1; }
  :root { --thumb-w: 84px; }
  .news-item { gap: .6rem; }
  .unit.f { grid-template-columns: 40px repeat(3, minmax(0, 1fr)); }
  .unit.d, .unit.g { grid-template-columns: 40px repeat(2, minmax(0, 1fr)); }
}

/* Картинки: эмблемы клубов и миниатюры новостей */
.crest-img { display: inline-block; flex: none; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.news-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
/* Плитки новостей: прозрачные скруглённые углы и подпись внизу, поэтому без подложки и блика, обрезка сверху. */
.news-img[src$=".svg"] { object-position: 0% 100%; } /* заглушки 16:9 с подписью слева: обрезаем справа */
.news-thumb:has(> .news-img) { background: none; }
.news-thumb:has(> .news-img)::after { display: none; }
.tag.match { background: rgba(255, 93, 115, .2); color: var(--red); }
.tag.transfer { background: rgba(47, 155, 255, .22); color: var(--accent-2); }
.tag.interview { background: rgba(182, 156, 255, .2); color: var(--tag-interview); }
.tag.injury { background: rgba(255, 93, 115, .2); color: #ff8a9a; }
.tag.awards { background: rgba(245, 197, 66, .2); color: var(--gold); }

/* Аватары менеджеров */
.mgr-avatar { border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--line); background: var(--panel-2); }
/* Кнопки справа в шапке: 36 px, как в SOFL; табло дня той же высоты. */
.puck { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; padding: 0; overflow: visible;
  border-radius: var(--r-ctl); background: var(--panel-2); border: 1px solid var(--line); color: var(--text); font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.puck:hover { border-color: var(--edge-hover); }
.puck svg { width: 18px; height: 18px; }
.puck.ok { color: var(--green); background: rgba(61, 220, 151, .12); border-color: rgba(61, 220, 151, .45); }
.puck.warn { color: var(--amber); background: rgba(255, 180, 84, .12); border-color: rgba(255, 180, 84, .5); }
.puck.vip { color: var(--gold); background: rgba(245, 197, 66, .1); border-color: rgba(245, 197, 66, .35); }
.puck.ok:hover, .puck.warn:hover, .puck.vip:hover { filter: brightness(1.25); }
.puck .mgr-avatar { width: 100%; height: 100%; border: 0; border-radius: 9px; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; max-height: 26rem; overflow-y: auto; padding: .15rem; margin-top: .3rem; }
.avatar-opt { padding: 2px; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; line-height: 0; }
.avatar-opt .mgr-avatar { width: 100%; height: auto; aspect-ratio: 1; border-width: 1px; }
.avatar-opt:hover { border-color: var(--line); }
.avatar-opt.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(47, 155, 255, .35); }
.mgr-head { display: flex; align-items: center; gap: 1rem; }

/* Заглушка фото игрока */
.avatar.photo { padding: 0; overflow: hidden; background: #050c1a; }
.avatar.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }

/* Опрос */
.poll-q { font-weight: 600; margin-bottom: .7rem; }
.poll-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; margin-top: .5rem; padding: .6rem .8rem; overflow: hidden; text-align: left;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s; }
.poll-opt:not([disabled]):hover { border-color: var(--edge-hover); }
.poll-opt[disabled] { cursor: default; }
.poll-opt i { position: absolute; inset: 0 auto 0 0; background: rgba(47, 155, 255, .22); transition: width .4s ease; }
.poll-opt.mine { border-color: var(--accent); }
.poll-opt span, .poll-opt b { position: relative; }
.poll-opt b { font-weight: 600; }
.poll-foot { margin-top: .7rem; font-size: .85rem; }
/* Подсказка у кнопок шапки: title запаздывает и в тач-режиме не виден. */
.puck[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; padding: .3rem .6rem; border-radius: var(--r-chip); background: #050c1a; border: 1px solid var(--line); color: var(--text); font-size: .8rem; font-weight: 500; white-space: nowrap; z-index: 50; pointer-events: none; }

.club-cell { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; }
tr.mine td { background: rgba(47, 155, 255, .1); }
tr.cutoff td { border-bottom: 2px dashed var(--gold); }
.res-w { color: var(--green); font-weight: 600; }
.res-l { color: var(--red); font-weight: 600; }
.score-link { font-weight: 700; color: var(--accent-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .8rem; }
.series { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: .6rem .8rem; background: var(--panel-2); }
.series .row { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; }
.series .row.won { font-weight: 600; }
.series .row.lost { color: var(--dim); }
.series .row .seed { color: var(--dim); width: 1.4rem; text-align: right; font-size: .8rem; }
.series .row .wins { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.series .games { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .4rem; }
.series .games a { font-size: var(--fs-xs); padding: .1rem .45rem; border: 1px solid var(--line); border-radius: var(--r-chip); color: var(--dim); text-decoration: none; }
.series .games a:hover { border-color: var(--edge-hover); }
.match-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; text-align: center; }
.match-head .team { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.1rem; }
.match-head .team a { color: inherit; text-decoration: none; }
.match-head .big-score { font-size: 2.6rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.timeline .ev { display: grid; grid-template-columns: 4.2rem 1.6rem minmax(0, 1fr); gap: .6rem; align-items: baseline; padding: .5rem 0; border-top: 1px solid var(--line); }
.timeline .ev .t { color: var(--dim); font-variant-numeric: tabular-nums; }
.timeline .period { padding: .5rem 0 .2rem; color: var(--dim); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.day-nav { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 700px) { .match-head .big-score { font-size: 1.8rem; } }
.result-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .6rem; align-items: center; padding: var(--row-pad) 0; border-top: 1px solid var(--line); font-size: .92rem; }
.results-empty { display: flex; align-items: center; gap: .7rem; padding: .35rem 0 .1rem; color: var(--dim); line-height: 1.35; }
.results-empty .ic { width: 22px; height: 22px; color: var(--accent-2); opacity: .85; }
.results-empty b { display: block; color: var(--text); font-weight: 600; }
.result-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-row .away { text-align: right; }

/* Объём блоков как в SOFL: блик сверху, затемнение книзу, светлая верхняя и тёмная нижняя грани, мягкая тень. */
.card, .series { position: relative; }
.card, .series, .side, .toast {
  background-image: linear-gradient(145deg, rgba(31, 65, 108, .94) 0%, rgba(9, 23, 47, .96) 45%, rgba(5, 17, 35, .96) 100%);
  border-color: var(--sohl-line);
  box-shadow: inset 0 1px 0 rgba(186, 230, 255, .19), inset 0 0 26px rgba(35, 110, 200, .10), 0 8px 24px rgba(0, 5, 22, .45), 0 0 14px rgba(44, 153, 245, .20);
}
.card, .series { transition: border-color .18s, box-shadow .18s; }
.card:hover, .series:hover { border-color: rgba(130, 214, 255, .78); box-shadow: inset 0 1px 0 rgba(200, 240, 255, .26), inset 0 0 26px rgba(35, 110, 200, .12), 0 8px 24px rgba(0, 5, 22, .45), 0 0 20px rgba(44, 153, 245, .28); }
@media (prefers-reduced-motion: reduce) { .card, .series { transition: none; } }
/* Блик по верхнему краю случайного блока: полоска слева направо, обрезана по скруглению. */
.card::before, .series::before {
  content: ""; position: absolute; inset: 0; clip-path: inset(0 round var(--radius)); pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent) -60% 0 / 20% 1px no-repeat;
}
.block-shine-play::before { animation: block-shine-top .9s ease-in-out forwards; }
@keyframes block-shine-top { 0% { opacity: 0; background-position: -60% 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; background-position: 160% 0; } }
@media (prefers-reduced-motion: reduce) { .block-shine-play::before, .brand-shine-play .big, .brand-shine-play .brand-icon-glare::after { animation: none; } }

/* Переключатель клубов менеджера в шапке. */

/* Статистика и таблицы: выделенный столбец сортировки, форма клуба. */
th.sorted { color: var(--accent-2); }
td.sorted { background: rgba(47, 155, 255, .07); }
td.form { white-space: nowrap; font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
td.form span { display: inline-block; min-width: 1.5rem; text-align: center; padding: .05rem .2rem; border-radius: 6px; background: rgba(255, 255, 255, .05); }
.btn.sm:disabled { opacity: .35; }
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .45rem; }
.day { border: 1px solid var(--line); border-radius: var(--r-ctl); padding: .4rem .5rem; background: var(--panel-2); font-size: .8rem; line-height: 1.25; }
.day b { display: block; font-size: .95rem; font-variant-numeric: tabular-nums; }
.day.done { border-color: rgba(61, 220, 151, .4); }
.day.done b { color: var(--green); }
.day.now { border-color: var(--accent); box-shadow: var(--focus); }
.day.po { border-style: dashed; }
.day small { color: var(--dim); display: block; }

/* Главная: крупная новость и лента (Ice Arena Portal). Свет только статический, без пульсации. */
.home-main { display: flex; flex-direction: column; gap: var(--sohl-gap); min-width: 0; }
.home-main > .card + .card { margin-top: 0; }
.hero-news { position: relative; overflow: hidden; padding: .85rem 1.2rem .65rem; border-color: rgba(120, 215, 255, .72); box-shadow: inset 0 1px 0 rgba(200, 240, 255, .30), inset 0 -1px 0 rgba(60, 160, 240, .30), inset 0 0 30px rgba(35, 110, 200, .14), 0 8px 24px rgba(0, 5, 22, .45), 0 0 26px rgba(44, 153, 245, .36); }
.hero-news:hover { border-color: rgba(150, 228, 255, .85); }
.hero-news::after { content: ""; position: absolute; right: 0; bottom: 0; width: 62%; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--sohl-ice)); box-shadow: 0 0 14px rgba(99, 207, 255, .7); }
.hero-diag { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 58%, rgba(99, 207, 255, .075) 58%, rgba(99, 207, 255, .02) 80%, transparent 80%); }
.hero-slides { display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: minmax(0, 272px) minmax(0, 1fr); gap: 1.2rem; align-items: stretch; }
.hero-body { display: flex; flex-direction: column; min-width: 0; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: .4rem; }
.hero-foot .news-meta { margin-top: 0; }
.hero-slide[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.hero-thumb { aspect-ratio: 4 / 3; align-self: start; border-radius: 14px; box-shadow: 0 0 0 1px rgba(99, 207, 255, .4), 0 0 18px rgba(30, 148, 255, .3); }
.hero-title { margin: .4rem 0 .4rem; font-size: 1.5rem; line-height: 1.2; color: #fff; max-width: 30ch; }
.hero-text { color: var(--dim); font-size: 1rem; line-height: 1.45; max-width: 62ch; }
.clamp-4 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 4; line-clamp: 4; }
.hero-nav { display: flex; align-items: center; gap: .55rem; }
.hero-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(99, 207, 255, .5); border-radius: 8px;
  background: rgba(9, 27, 51, .85); color: var(--text); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.hero-btn:hover { border-color: var(--sohl-ice-bright); box-shadow: 0 0 10px rgba(99, 207, 255, .45); }
.hero-btn:focus-visible, .hero-dot:focus-visible { outline: none; box-shadow: var(--focus); }
.hero-btn .ic { width: 16px; height: 16px; }
.hero-dots { display: flex; gap: .45rem; }
.hero-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--sohl-ice); background: transparent; cursor: pointer; }
.hero-dot[aria-selected="true"] { background: var(--sohl-ice); box-shadow: 0 0 8px rgba(99, 207, 255, .8); }
.feed-title { margin-bottom: .5rem; }
.next-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .6rem; align-items: center; text-align: center; padding-top: .2rem; }
.next-match .team { display: flex; flex-direction: column; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; line-height: 1.25; min-width: 0; }
.next-match .team span { overflow-wrap: anywhere; }
.next-match .vs { color: var(--dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.next-match-foot { margin-top: .6rem; color: var(--dim); font-size: var(--fs-sm); text-align: center; }
@media (max-width: 1100px) {
  body { background-image: linear-gradient(var(--scrim-bg), var(--scrim-bg)), url("img/ui/bg-arena-sm.webp"); }
  body::before { -webkit-mask-image: url("img/ui/arena-led-sm.webp"); mask-image: url("img/ui/arena-led-sm.webp"); }
  body::after { -webkit-mask-image: url("img/ui/arena-refl-sm.webp"); mask-image: url("img/ui/arena-refl-sm.webp"); }
}
@media (max-width: 700px) { .hero-slide { grid-template-columns: minmax(0, 1fr); gap: .8rem; } .hero-title { font-size: 1.25rem; } }

/* Страница клуба: шапка с ареной, вкладки-кнопки, плотная таблица состава. */
body:has(.team-page) .shell { max-width: 1840px; padding: 1.1rem 1rem; }
.team-hero { position: relative; display: flex; align-items: center; gap: 1.6rem; min-height: 180px; max-height: 200px; padding: 1rem 1.6rem; border: 1px solid var(--sohl-line); border-radius: 18px; overflow: hidden; margin-bottom: .8rem;
  background: linear-gradient(100deg, rgba(8, 24, 50, .94) 0%, rgba(10, 36, 72, .82) 55%, rgba(6, 18, 40, .72) 100%), url("img/ui/bg-arena-sm.webp") center 30% / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(196, 231, 255, .22), inset 0 0 40px rgba(35, 110, 200, .14), 0 0 9px rgba(40, 177, 255, .38), 0 0 24px rgba(20, 130, 245, .18), 0 12px 30px rgba(0, 0, 0, .30); }
.team-crest { flex: none; width: 128px; height: 128px; display: flex; align-items: center; justify-content: center; }
.team-crest .crest-img, .team-crest .crest { max-width: 100%; max-height: 100%; }
.team-info { min-width: 0; flex: 1; }
.team-info h1 { font-size: 1.9rem; font-weight: 600; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.team-sub { color: var(--dim); margin: .15rem 0 .8rem; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; max-width: 760px; }
.metric { padding: .5rem .85rem; border-radius: 12px; border: 1px solid rgba(91, 190, 255, .4); background: linear-gradient(145deg, rgba(30, 67, 111, .75), rgba(5, 16, 35, .82)); box-shadow: inset 0 1px 0 rgba(196, 231, 255, .18); min-width: 0; }
.metric b { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.metric b small { font-size: .85rem; font-weight: 400; color: var(--dim); }
.metric span { display: block; font-size: .8rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric.rating { border-color: rgba(120, 214, 255, .85); box-shadow: inset 0 1px 0 rgba(196, 231, 255, .3), 0 0 16px rgba(44, 170, 255, .45); }
.metric.rating b { color: var(--sohl-ice-bright); }

.team-tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .35rem; margin-bottom: .8rem; min-height: 50px; border: 1px solid var(--sohl-line); border-radius: 14px; scrollbar-width: thin;
  background: linear-gradient(145deg, rgba(31, 65, 108, .9), rgba(6, 18, 38, .95)); box-shadow: inset 0 1px 0 rgba(186, 230, 255, .19), 0 0 14px rgba(44, 153, 245, .2); }
.team-tabs .tab-btn { display: inline-flex; align-items: center; gap: .45rem; flex: none; height: 36px; margin: 0; padding: 0 .95rem; border: 1px solid transparent; border-radius: 10px; font-size: .92rem; white-space: nowrap; }
.team-tabs .tab-btn svg { width: 16px; height: 16px; opacity: .85; }
.team-tabs .tab-btn:hover { background: rgba(47, 155, 255, .12); }
.team-tabs .tab-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.team-tabs .tab-btn.active { color: #fff; border-color: #72d7ff; background: linear-gradient(90deg, #0e4c83, #07315d); box-shadow: inset 0 1px 0 rgba(186, 230, 255, .30), inset 0 0 12px rgba(93, 204, 255, .30), 0 0 14px rgba(31, 164, 255, .5); }
.team-tabs .tab-btn.active svg { color: var(--sohl-ice-bright); opacity: 1; }

.roster-card { padding: .8rem 1rem 1rem; }
.roster-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; flex-wrap: wrap; margin-bottom: .6rem; }
.roster-head h2 { font-size: 1.1rem; font-weight: 600; }
.roster-filters { display: flex; gap: .5rem 1.2rem; flex-wrap: wrap; }
.tbl-scroll { overflow-x: auto; }
table.roster { min-width: 760px; }
table.roster th, table.roster td { padding: 0 .65rem; height: 34px; border-bottom: 1px solid rgba(91, 190, 255, .16); }
table.roster thead th { height: 32px; border-bottom-color: var(--sohl-line); }
.th-sort { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; gap: .25rem; align-items: center; }
.th-sort:hover, .th-sort.on { color: var(--text); }
.th-sort:focus-visible, .group-toggle:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.th-sort .arr { font-size: .6rem; color: var(--accent-2); min-width: .6rem; }
table.roster .group-row td { height: 30px; padding: 0 .4rem; border-bottom: 0; background: linear-gradient(90deg, rgba(20, 110, 190, .55), rgba(12, 35, 66, .55) 60%, rgba(12, 35, 66, .2)); box-shadow: inset 0 1px 0 rgba(150, 215, 255, .25), 0 0 12px rgba(40, 150, 240, .25); }
.group-toggle { background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; padding: .15rem .3rem; }
.group-toggle .chev { font-style: normal; color: var(--accent-2); width: .9rem; }
.group-toggle .cnt { color: var(--dim); font-weight: 500; }
.p-row { cursor: pointer; }
.p-row:hover td { background: rgba(47, 155, 255, .12); }
.p-row a { font-weight: 500; color: var(--sohl-link, #69d4ff); }
.nat { font-size: var(--fs-xs); letter-spacing: .04em; }
.badge.pos-C, .badge.pos-LW, .badge.pos-RW, .badge.pos-D, .badge.pos-G { min-width: 2.1rem; text-align: center; background: rgba(255, 255, 255, .05); }
.form { display: inline-flex; align-items: center; gap: .45rem; }
.form-seg { display: inline-flex; gap: 2px; }
.form-seg i { width: 9px; height: 8px; border-radius: 2px; background: rgba(142, 162, 189, .25); }
.form.high .on { background: var(--green); } .form.mid .on { background: var(--amber); } .form.low .on { background: var(--red); }
.form b { font-weight: 500; font-size: var(--fs-sm); min-width: 1.6rem; font-variant-numeric: tabular-nums; }
@media (max-width: 1200px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; } .team-hero { max-height: none; } }
@media (max-width: 700px) { .team-hero { flex-direction: column; align-items: flex-start; padding: 1rem; } .team-crest { width: 88px; height: 88px; } .team-info h1 { font-size: 1.4rem; white-space: normal; } .team-info { width: 100%; } }

/* Личные сообщения */
.dot-count { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--amber); color: #111; font: 700 10px/16px var(--font, inherit); font-style: normal; text-align: center; }
.pm { display: grid; grid-template-columns: 280px 1fr; gap: .8rem; }
@media (max-width: 760px) { .pm { grid-template-columns: 1fr; } }
.pm-thread { display: flex; gap: .6rem; align-items: center; padding: .55rem .6rem; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.pm-thread:hover, .pm-thread.active { background: var(--panel-2); border-color: var(--line); }
.pm-thread .last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-log { display: flex; flex-direction: column; gap: .4rem; max-height: 52vh; overflow-y: auto; padding: .3rem; }
.pm-msg { max-width: 78%; padding: .45rem .7rem; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.pm-msg.mine { align-self: flex-end; background: var(--panel); border-color: var(--edge-hover); }
.pm-msg time { display: block; font-size: var(--fs-xs); color: var(--dim); }
.pm-form { display: flex; gap: .5rem; margin-top: .6rem; }
.pm-form textarea { flex: 1; height: auto; min-height: 44px; padding: .5rem .8rem; resize: vertical; }

.verify-bar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; padding: .6rem .9rem; border: 1px solid rgba(255, 180, 84, .5); border-radius: var(--r-ctl); background: rgba(255, 180, 84, .1); color: var(--amber); }

/* Выбор клуба в профиле: плашки-переключатели */
.club-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.club-tile { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1rem .8rem; text-align: center; cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.club-tile:hover { border-color: var(--edge-hover); transform: translateY(-2px); text-decoration: none; }
.club-tile:focus-visible { outline: none; box-shadow: var(--focus); }
.club-tile.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(47, 155, 255, .3); }
.club-tile-name { font-weight: 600; line-height: 1.2; }
.club-tile-state { margin-top: .3rem; padding: .15rem .7rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; border: 1px solid var(--line); color: var(--dim); }
.club-tile.active .club-tile-state { border-color: var(--accent); color: var(--text); background: rgba(47, 155, 255, .2); }
.club-tile-link { font-size: var(--fs-sm); }
.club-tile.add { border-style: dashed; justify-content: center; color: var(--accent-2); min-height: 190px; }
.club-tile.add .plus { font-size: 2.4rem; line-height: 1; }
