/* eSports Connect — календарь турниров. Цвета игр берутся из темы: класс .game--{slug} задаёт --game. */

.ecc-game {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px 3px;
	background: var(--game, var(--accent));
	color: #fff;
	font: 700 12px/1.2 var(--display);
	letter-spacing: .05em;
	white-space: nowrap;
	clip-path: var(--cut);
}

.ecc-state {
	display: inline-flex;
	align-items: center;
	padding: 3px 9px 2px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--ink-2);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

.ecc-state--live {
	border-color: transparent;
	background: #16a34a;
	color: #fff;
}

.ecc-state--live::before {
	content: "";
	width: 7px;
	height: 7px;
	margin-right: 6px;
	border-radius: 50%;
	background: #fff;
	animation: ecc-pulse 1.4s ease-in-out infinite;
}

.ecc-state--upcoming {
	border-color: rgba(255, 255, 255, .18);
	color: #fff;
}

.ecc-state--past {
	color: var(--muted);
}

.ecc-state--cancelled,
.ecc-state--postponed {
	border-color: transparent;
	background: #7f1d1d;
	color: #fff;
}

@keyframes ecc-pulse {
	50% {
		opacity: .35;
	}
}

.ecc-flag {
	display: inline-flex;
	padding: 3px 8px 2px;
	border-radius: 999px;
	background: var(--soft);
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.ecc-flag--official {
	background: rgba(22, 163, 74, .16);
	color: #4ade80;
}

.ecc-flag--tier {
	background: rgba(255, 255, 255, .12);
	color: #fff;
}

/* ---------- Дата ---------- */

.ecc-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 64px;
	min-height: 70px;
	padding: 6px 4px;
	background: var(--dark);
	border-top: 3px solid var(--game, var(--accent));
	color: #fff;
	text-align: center;
	clip-path: var(--cut);
}

.ecc-date__month {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.ecc-date__day {
	font: 700 30px/1 var(--display);
}

.ecc-date__week {
	margin-top: 2px;
	color: var(--ink-2);
	font-size: 11px;
	line-height: 1.2;
	white-space: nowrap;
}

/* ---------- Шапка страницы ---------- */

.ecc-head {
	margin-top: 30px;
}

/* ---------- Панель фильтров ---------- */

.ecc-toolbar {
	position: sticky;
	top: var(--hud-h);
	z-index: 20;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px 18px;
	align-items: center;
	margin: 28px 0 22px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: rgba(11, 14, 23, .94);
	backdrop-filter: blur(8px);
}

.admin-bar .ecc-toolbar {
	top: calc(var(--hud-h) + 32px);
}

.ecc-views {
	display: inline-flex;
	padding: 3px;
	border-radius: var(--radius);
	background: var(--panel);
}

.ecc-view {
	padding: 7px 14px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--muted);
	font: 700 14px/1.2 var(--sans);
	cursor: pointer;
}

.ecc-view.is-active {
	background: var(--accent);
	color: #fff;
}

.ecc-chips {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: thin;
}

.ecc-chip {
	flex-shrink: 0;
	padding: 6px 12px 5px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--panel);
	color: var(--ink-2);
	font: 700 13px/1.2 var(--sans);
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.ecc-chip[class*="game--"] {
	border-left: 4px solid var(--game);
}

.ecc-chip:hover {
	border-color: var(--game, var(--accent));
	color: #fff;
}

.ecc-chip.is-active {
	border-color: var(--game, var(--accent));
	background: var(--game, var(--accent));
	color: #fff;
}

.ecc-switches {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.ecc-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--ink-2);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ecc-switch input {
	appearance: none;
	position: relative;
	width: 36px;
	height: 20px;
	margin: 0;
	border-radius: 999px;
	background: var(--solid);
	cursor: pointer;
	transition: background .15s;
}

.ecc-switch input::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	transition: transform .15s;
}

.ecc-switch input:checked {
	background: var(--accent);
}

.ecc-switch input:checked::after {
	transform: translateX(16px);
}

.ecc-switch input:focus-visible {
	outline: 2px solid var(--accent-on-dark);
	outline-offset: 2px;
}

/* ---------- Список по месяцам ---------- */

.ecc-row[hidden],
.ecc-month[hidden],
.ecc-switch[hidden],
.ecc-grid[hidden],
.ecc-empty[hidden] {
	display: none !important;
}

.ecc-schedule[data-past="hide"] .ecc-row.is-past,
.ecc-schedule[data-past="hide"] .ecc-month.is-past-month {
	display: none;
}

.ecc-month {
	margin-bottom: 34px;
}

.ecc-month__title {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
	font-size: 22px;
}

.ecc-month.is-current .ecc-month__name::after {
	content: "今月";
	margin-left: 10px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-size: 12px;
	vertical-align: 3px;
}

.ecc-month__count {
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
}

.ecc-month__rows {
	display: grid;
	gap: 10px;
}

.ecc-row {
	position: relative;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
	transition: border-color .15s, transform .15s;
}

.ecc-row:hover {
	border-color: var(--game, var(--accent));
}

.ecc-row.is-featured {
	background: linear-gradient(90deg, color-mix(in srgb, var(--game, var(--accent)) 16%, var(--panel)) 0%, var(--panel) 55%);
}

.ecc-row.is-past {
	opacity: .72;
}

.ecc-row.is-live {
	border-color: #16a34a;
}

.ecc-row__body {
	min-width: 0;
	flex: 1;
}

.ecc-row__top {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-bottom: 6px;
}

.ecc-row__title {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.45;
}

.ecc-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ecc-row__title a:hover {
	color: #fff;
}

.ecc-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin: 0;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.6;
}

.ecc-meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ecc-meta::before {
	content: "";
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	background: var(--muted);
	-webkit-mask: var(--ecc-icon) center / contain no-repeat;
	mask: var(--ecc-icon) center / contain no-repeat;
}

.ecc-meta--date {
	--ecc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

.ecc-meta--place {
	--ecc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E");
}

.ecc-meta--online {
	--ecc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Crect x='2' y='4' width='20' height='13' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E");
}

.ecc-meta--prize {
	--ecc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 6H4v1.5A3.5 3.5 0 0 0 7.5 11M17 6h3v1.5a3.5 3.5 0 0 1-3.5 3.5M12 14v4M8 21h8'/%3E%3C/svg%3E");
}

.ecc-meta--prize::before {
	background: var(--star);
}

.ecc-row__jp,
.ecc-row__winner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 8px 0 0;
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.5;
}

.ecc-jp {
	padding: 2px 8px;
	border-radius: 3px;
	background: #fff;
	color: #bc002d;
	font-size: 12px;
	font-weight: 800;
}

.ecc-row__winner span {
	color: var(--star);
	font-weight: 800;
}

.ecc-empty,
.ecc-note {
	padding: 18px 20px;
	border-radius: var(--radius);
	background: var(--panel);
	color: var(--ink-2);
}

.ecc-note {
	margin: 34px 0 10px;
	font-size: 14px;
	line-height: 1.8;
}

.ecc-note p {
	margin: 0 0 .5em;
}

.ecc-note a,
.ecc-sources__note a {
	color: var(--accent-on-dark);
	text-decoration: underline;
}

/* ---------- Сетка месяца ---------- */

.ecc-schedule[data-view="month"] .ecc-list {
	display: none;
}

.ecc-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.ecc-cal__title {
	font-size: 24px;
}

.ecc-cal__nav {
	display: flex;
	gap: 6px;
}

.ecc-cal__btn {
	min-width: 44px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
	color: #fff;
	font: 700 15px/1 var(--sans);
	cursor: pointer;
}

.ecc-cal__btn:hover:not(:disabled) {
	border-color: var(--accent);
}

.ecc-cal__btn:disabled {
	opacity: .35;
	cursor: default;
}

.ecc-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.ecc-cal__wd {
	padding: 6px 0;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.ecc-cal__wd:nth-child(6) {
	color: #60a5fa;
}

.ecc-cal__wd:nth-child(7) {
	color: #f87171;
}

.ecc-cal__day {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-height: 112px;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--panel);
	color: var(--ink-2);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.ecc-cal__day.is-out {
	background: transparent;
	opacity: .4;
}

.ecc-cal__day.is-today {
	border-color: var(--accent);
	box-shadow: inset 0 0 0 1px var(--accent);
}

.ecc-cal__day.is-selected {
	background: var(--soft);
	border-color: #fff;
}

.ecc-cal__num {
	font: 700 16px/1 var(--display);
	color: #fff;
}

.ecc-cal__day.is-today .ecc-cal__num {
	color: var(--accent-on-dark);
}

.ecc-cal__ev {
	display: block;
	overflow: hidden;
	padding: 2px 6px;
	border-radius: 3px;
	background: var(--game, var(--accent));
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.ecc-cal__ev.is-cont {
	border-radius: 0 3px 3px 0;
	opacity: .8;
}

.ecc-cal__more {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.ecc-cal__dots {
	display: none;
	flex-wrap: wrap;
	gap: 3px;
}

.ecc-cal__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--game, var(--accent));
}

.ecc-cal__panel {
	margin-top: 18px;
}

.ecc-cal__panel-title {
	margin-bottom: 10px;
	font-size: 18px;
}

/* ---------- Карточки (главная, «開催中») ---------- */

.ecc-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ecc-card__link {
	position: relative;
	z-index: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	height: 100%;
	min-height: 220px;
	padding: 14px;
	border-radius: var(--radius);
	background: var(--dark-2);
	color: #fff;
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.ecc-card__link:hover {
	color: #fff;
}

.ecc-card__art {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: center / cover no-repeat;
	transition: transform .4s ease;
}

.ecc-card__link::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(7, 9, 16, .35) 0%, rgba(7, 9, 16, .55) 40%, rgba(7, 9, 16, .96) 100%);
}

.ecc-card__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: var(--game, var(--accent));
}

.ecc-card__link:hover .ecc-card__art {
	transform: scale(1.06);
}

.ecc-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
}

.ecc-card__top .ecc-date {
	background: rgba(7, 9, 16, .82);
}

.ecc-card__top .ecc-state {
	background: rgba(7, 9, 16, .7);
}

.ecc-card__top .ecc-state--live {
	background: #16a34a;
}

.ecc-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin-top: 18px;
}

.ecc-card__title {
	display: -webkit-box;
	overflow: hidden;
	font: 700 17px/1.4 var(--head);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.ecc-card__place {
	color: var(--on-dark);
	font-size: 13px;
	line-height: 1.4;
}

.ecc-home,
.ecc-live {
	margin: 44px 0;
}

.ecc-home .zone__title::before,
.ecc-live .zone__title::before {
	background: var(--accent);
}

/* ---------- Сайдбар ---------- */

.ecc-side__item {
	border-bottom: 1px solid var(--line);
}

.ecc-side__item:last-child {
	border-bottom: 0;
}

.ecc-side__item a {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr);
	grid-template-rows: auto auto;
	gap: 2px 12px;
	padding: 10px 0;
}

.ecc-side__date {
	grid-row: span 2;
	align-self: center;
	padding: 6px 0;
	border-left: 3px solid var(--game, var(--accent));
	background: var(--dark);
	color: #fff;
	font: 700 15px/1.2 var(--display);
	text-align: center;
}

.ecc-side__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.ecc-side__state {
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
}

.ecc-side__all {
	display: block;
	margin-top: 10px;
	color: var(--accent-on-dark);
	font-size: 14px;
	font-weight: 700;
}

/* ---------- Страница турнира и хаба ---------- */

.ecc-hero {
	position: relative;
	z-index: 0;
	overflow: hidden;
	padding: 34px 0 40px;
	background: var(--dark);
	border-bottom: 4px solid var(--game, var(--accent));
}

.ecc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--ecc-art) center / cover no-repeat;
	opacity: .55;
}

.ecc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(7, 9, 16, .97) 0%, rgba(7, 9, 16, .86) 45%, rgba(7, 9, 16, .45) 100%), linear-gradient(0deg, rgba(7, 9, 16, .9) 0%, rgba(7, 9, 16, 0) 50%);
}

.ecc-hero__inner {
	position: relative;
}

.ecc-hero .trail,
.ecc-hero .trail a {
	color: var(--on-dark);
}

.ecc-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 14px;
}

.ecc-hero__chips .ecc-game {
	font-size: 14px;
}

.ecc-hero__title {
	max-width: 820px;
	margin-bottom: 12px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.3;
}

.ecc-hero__date {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	align-items: baseline;
	margin: 0 0 4px;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}

.ecc-hero__time {
	color: var(--on-dark);
	font-size: 15px;
}

.ecc-hero__place {
	margin: 0;
	color: var(--on-dark);
	font-size: 16px;
}

.ecc-hero__lead {
	max-width: 760px;
	margin: 0;
	color: var(--ink-2);
	font-size: 17px;
	line-height: 1.85;
}

.ecc-hero__count {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	margin: 20px 0 0;
	padding: 10px 18px;
	background: var(--game, var(--accent));
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	clip-path: var(--cut);
}

.ecc-hero__count b {
	font: 700 38px/1 var(--display);
}

.ecc-hero__count--live {
	background: #16a34a;
}

.ecc-hero__count--live b {
	font-size: 24px;
}

.ecc-main > * + * {
	margin-top: 34px;
}

.ecc-alert {
	margin: 0;
	padding: 14px 18px;
	border-left: 4px solid var(--star);
	border-radius: var(--radius);
	background: var(--panel);
	color: var(--ink-2);
	font-size: 15px;
}

.ecc-alert--cancelled,
.ecc-alert--postponed {
	border-left-color: #ef4444;
}

.ecc-alert--admin {
	border-left-color: #3b82f6;
}

.ecc-alert a {
	color: var(--accent-on-dark);
	text-decoration: underline;
}

.ecc-dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--line);
}

.ecc-dl > div {
	padding: 14px 16px;
	background: var(--panel);
}

.ecc-dl dt {
	margin-bottom: 4px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.ecc-dl dd {
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
}

.ecc-dl a {
	color: var(--accent-on-dark);
	text-decoration: underline;
}

.ecc-dl__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.ecc-dl__winner {
	color: var(--star) !important;
}

.ecc-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ecc-tags li {
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-left: 4px solid #bc002d;
	border-radius: var(--radius);
	background: var(--panel);
	font-weight: 700;
}

.ecc-hubcard {
	display: block;
	padding: 20px 22px;
	border: 1px solid var(--line);
	border-left: 5px solid var(--game, var(--accent));
	border-radius: var(--radius);
	background: linear-gradient(110deg, color-mix(in srgb, var(--game, var(--accent)) 18%, var(--panel)) 0%, var(--panel) 60%);
}

.ecc-hubcard:hover {
	color: inherit;
	border-color: var(--game, var(--accent));
}

.ecc-hubcard__label {
	display: block;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.ecc-hubcard__title {
	display: block;
	margin: 4px 0 6px;
	font: 700 21px/1.4 var(--head);
	color: #fff;
}

.ecc-hubcard__text {
	display: block;
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.8;
}

.ecc-hubcard__more {
	display: block;
	margin-top: 10px;
	color: var(--accent-on-dark);
	font-weight: 700;
}

.ecc-sources ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.ecc-sources li {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	padding: 6px 12px;
	border-radius: var(--radius);
	background: var(--panel);
	font-size: 14px;
}

.ecc-sources li a {
	color: #fff;
	font-weight: 700;
}

.ecc-sources__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 0 0 6px;
	color: var(--ink-2);
	font-size: 14px;
}

.ecc-sources__note {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.ecc-back {
	margin: 24px 0 0;
}

.ecc-back a {
	color: var(--accent-on-dark);
	font-weight: 700;
}

/* Хаб */

.ecc-next {
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
}

.ecc-next__label {
	margin-bottom: 12px;
	color: var(--muted);
	font-size: 14px;
}

.ecc-next__link {
	display: flex;
	gap: 16px;
	align-items: center;
}

.ecc-next__link:hover {
	color: inherit;
}

.ecc-next__body {
	flex: 1;
	min-width: 0;
}

.ecc-next__title {
	display: block;
	font: 700 20px/1.4 var(--head);
	color: #fff;
}

.ecc-next__meta {
	display: block;
	margin-top: 4px;
	color: var(--ink-2);
	font-size: 14px;
}

.ecc-next__none {
	margin: 0;
	color: var(--ink-2);
}

.ecc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.ecc-table th,
.ecc-table td {
	padding: 11px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.ecc-table th {
	background: var(--soft);
	color: var(--muted);
	font-size: 13px;
	white-space: nowrap;
}

.ecc-table td:first-child a {
	color: #fff;
	font-weight: 700;
}

.ecc-table td:first-child a:hover {
	color: var(--accent-on-dark);
}

.ecc-table tr.is-past td {
	color: var(--muted);
}

.ecc-table tr.is-live td:first-child {
	box-shadow: inset 3px 0 0 #16a34a;
}

.ecc-faq dl {
	margin: 0;
}

.ecc-faq dt {
	margin-top: 16px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
}

.ecc-faq dt::before {
	content: "Q.";
	margin-right: 8px;
	color: var(--accent-on-dark);
	font-family: var(--display);
}

.ecc-faq dd {
	margin: 6px 0 0;
	padding: 0 0 16px 26px;
	border-bottom: 1px solid var(--line);
	color: var(--ink-2);
	line-height: 1.85;
}

/* Список хабов */

.ecc-hubs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 30px;
	padding: 0;
	list-style: none;
}

.ecc-hub__link {
	position: relative;
	z-index: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	height: 100%;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--panel);
	color: #fff;
}

.ecc-hub__link:hover {
	color: #fff;
	border-color: var(--game, var(--accent));
}

.ecc-hub__art {
	display: block;
	aspect-ratio: 16 / 7;
	border-bottom: 4px solid var(--game, var(--accent));
	background: center / cover no-repeat;
}

.ecc-hub__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 16px 18px 18px;
}

.ecc-hub__games {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ecc-hub__title {
	font: 700 20px/1.35 var(--head);
}

.ecc-hub__text {
	color: var(--ink-2);
	font-size: 14px;
	line-height: 1.75;
}

.ecc-hub__next {
	margin-top: auto;
	padding-top: 8px;
	color: var(--accent-on-dark);
	font-size: 14px;
	font-weight: 700;
}

.ecc-guide-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ecc-guide-links a {
	display: block;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-left: 4px solid var(--game, var(--accent));
	border-radius: var(--radius);
	background: var(--panel);
	font-size: 14px;
	font-weight: 700;
}

.ecc-guide-links a:hover {
	color: #fff;
	border-color: var(--game, var(--accent));
}

.ecc-guides {
	margin: 44px 0 0;
}

/* ---------- SEO-текст ---------- */

.ecc-seo {
	max-width: 860px;
	margin: 48px 0 0;
	padding-top: 30px;
	border-top: 1px solid var(--line);
	color: var(--ink-2);
	font-size: 15px;
	line-height: 1.9;
}

.ecc-seo h2 {
	margin: 0 0 14px;
	color: #fff;
	font-size: 22px;
	line-height: 1.4;
}

.ecc-seo h3 {
	margin: 28px 0 10px;
	padding-left: 12px;
	border-left: 4px solid var(--accent);
	color: #fff;
	font-size: 17px;
	line-height: 1.4;
}

.ecc-seo p {
	margin: 0 0 1em;
}

.ecc-seo ul {
	margin: 0 0 1em;
	padding-left: 1.3em;
}

.ecc-seo li {
	margin: 0 0 .35em;
}

.ecc-seo strong {
	color: #fff;
}

.ecc-seo a {
	color: var(--accent-on-dark);
	text-decoration: underline;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
	.ecc-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ecc-hubs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ecc-toolbar {
		grid-template-columns: minmax(0, 1fr);
		margin-left: -20px;
		margin-right: -20px;
		padding: 10px 14px;
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}

	.ecc-views {
		justify-self: start;
	}

	.ecc-cal__day {
		min-height: 54px;
		padding: 4px;
	}

	.ecc-cal__ev,
	.ecc-cal__more {
		display: none;
	}

	.ecc-cal__dots {
		display: flex;
	}

	.ecc-dl {
		grid-template-columns: minmax(0, 1fr);
	}

	.ecc-hubs {
		grid-template-columns: minmax(0, 1fr);
	}

	.ecc-row {
		gap: 12px;
		padding: 12px;
	}

	.ecc-date {
		width: 56px;
		min-height: 62px;
	}

	.ecc-date__day {
		font-size: 26px;
	}

	.ecc-row__title {
		font-size: 16px;
	}

	.ecc-hero {
		padding: 24px 0 28px;
	}

	.ecc-hero__date {
		font-size: 17px;
	}

	.ecc-table th:nth-child(3),
	.ecc-table td:nth-child(3) {
		display: none;
	}
}

@media (max-width: 560px) {
	.ecc-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.ecc-card__link {
		min-height: 170px;
	}

	.ecc-next__link {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ecc-state--live::before {
		animation: none;
	}

	.ecc-card__art,
	.ecc-row {
		transition: none;
	}
}
