:root {
	--ld-bg: #0f0c0a;
	--ld-bg-soft: #1a1410;
	--ld-panel: rgba(43, 34, 27, 0.92);
	--ld-panel-border: rgba(201, 162, 39, 0.28);
	--ld-accent: #c9a227;
	--ld-accent-bright: #e8c547;
	--ld-accent-dim: #8a6f1e;
	--ld-text: #f3ead6;
	--ld-muted: #b8aa92;
	--ld-danger: #e07070;
	--ld-danger-bg: rgba(212, 90, 90, 0.12);
	--ld-success: #7ec87e;
	--ld-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
	--ld-radius: 16px;
	--ld-radius-sm: 10px;
	--ld-font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
	--ld-font-display: Georgia, "Times New Roman", serif;
	--ld-header-h: 72px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

html,
body {
	margin: 0;
	padding: 0;
}

body.ld-body {
	min-height: 100vh;
	min-height: 100dvh;
	font-family: var(--ld-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ld-text);
	background: var(--ld-bg);
	overflow-x: hidden;
}

.ld-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 80% 60% at 15% 20%, rgba(201, 162, 39, 0.14), transparent 55%),
		radial-gradient(ellipse 70% 50% at 85% 75%, rgba(120, 60, 20, 0.22), transparent 50%),
		linear-gradient(165deg, #120e0b 0%, #0f0c0a 40%, #1a120d 100%);
}

.ld-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 75%);
	opacity: 0.35;
}

.ld-ember {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ld-accent-bright);
	box-shadow: 0 0 12px 2px rgba(232, 197, 71, 0.55);
	opacity: 0;
	animation: ld-float 12s ease-in-out infinite;
}

.ld-ember:nth-child(1) { left: 8%; top: 72%; animation-delay: 0s; }
.ld-ember:nth-child(2) { left: 22%; top: 58%; animation-delay: 2.4s; }
.ld-ember:nth-child(3) { left: 78%; top: 64%; animation-delay: 4.8s; }
.ld-ember:nth-child(4) { left: 62%; top: 28%; animation-delay: 1.2s; }
.ld-ember:nth-child(5) { left: 88%; top: 42%; animation-delay: 6s; }
.ld-ember:nth-child(6) { left: 42%; top: 82%; animation-delay: 3.6s; }

@keyframes ld-float {
	0%, 100% { opacity: 0; transform: translateY(0) scale(0.6); }
	15% { opacity: 0.85; }
	50% { opacity: 0.4; transform: translateY(-120px) scale(1); }
	85% { opacity: 0; }
}

.ld-page {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}

.ld-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	height: var(--ld-header-h);
	padding: 0 clamp(16px, 4vw, 48px);
	background: rgba(15, 12, 10, 0.82);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(74, 59, 47, 0.65);
}

.ld-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}

.ld-brand__mark {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: linear-gradient(145deg, #3d3024, #221b15);
	border: 1px solid var(--ld-panel-border);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	font-family: var(--ld-font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--ld-accent-bright);
	line-height: 1;
}

.ld-brand__text {
	min-width: 0;
}

.ld-brand__title {
	display: block;
	font-family: var(--ld-font-display);
	font-size: clamp(17px, 2.2vw, 22px);
	font-weight: 700;
	color: var(--ld-accent-bright);
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ld-brand__sub {
	display: block;
	font-size: 12px;
	color: var(--ld-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ld-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.ld-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: var(--ld-muted);
	border: 1px solid transparent;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.ld-nav__link:hover {
	color: var(--ld-text);
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(74, 59, 47, 0.8);
}

.ld-nav__link--cta {
	color: #1a1410;
	background: linear-gradient(180deg, var(--ld-accent-bright) 0%, var(--ld-accent) 100%);
	border-color: var(--ld-accent-dim);
}

.ld-nav__link--cta:hover {
	color: #1a1410;
	filter: brightness(1.06);
}

.ld-main {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr minmax(320px, 420px);
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
	width: min(1200px, 100%);
	margin: 0 auto;
	padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px);
}

.ld-hero {
	max-width: 640px;
}

.ld-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ld-accent-bright);
	background: rgba(201, 162, 39, 0.1);
	border: 1px solid rgba(201, 162, 39, 0.25);
}

.ld-hero__badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ld-success);
	box-shadow: 0 0 8px var(--ld-success);
	animation: ld-pulse 2s ease-in-out infinite;
}

@keyframes ld-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}

.ld-hero__title {
	margin: 0 0 16px;
	font-family: var(--ld-font-display);
	font-size: clamp(34px, 5vw, 56px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--ld-text);
}

.ld-hero__title span {
	color: var(--ld-accent-bright);
}

.ld-hero__lead {
	margin: 0 0 28px;
	max-width: 52ch;
	font-size: clamp(16px, 2vw, 18px);
	color: var(--ld-muted);
}

.ld-features {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.ld-features__item {
	padding: 8px 14px;
	border-radius: var(--ld-radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: var(--ld-text);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(74, 59, 47, 0.75);
}

.ld-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	max-width: 480px;
}

.ld-stat {
	padding: 16px;
	border-radius: var(--ld-radius-sm);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(74, 59, 47, 0.65);
}

.ld-stat__value {
	display: block;
	font-family: var(--ld-font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--ld-accent-bright);
	line-height: 1.2;
}

.ld-stat__label {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--ld-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ld-card {
	padding: clamp(24px, 4vw, 32px);
	border-radius: var(--ld-radius);
	background: var(--ld-panel);
	border: 1px solid var(--ld-panel-border);
	box-shadow: var(--ld-shadow);
	backdrop-filter: blur(8px);
}

.ld-card__title {
	margin: 0 0 6px;
	font-family: var(--ld-font-display);
	font-size: 26px;
	font-weight: 700;
	color: var(--ld-accent-bright);
}

.ld-card__subtitle {
	margin: 0 0 24px;
	font-size: 14px;
	color: var(--ld-muted);
}

.ld-alert {
	margin-bottom: 20px;
	padding: 12px 14px;
	border-radius: var(--ld-radius-sm);
	font-size: 14px;
	line-height: 1.45;
	color: #ffd4d4;
	background: var(--ld-danger-bg);
	border: 1px solid rgba(212, 90, 90, 0.45);
}

.ld-field {
	margin-bottom: 18px;
}

.ld-field label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--ld-muted);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.ld-input-wrap {
	position: relative;
}

.ld-input {
	width: 100%;
	padding: 14px 16px;
	border-radius: var(--ld-radius-sm);
	border: 1px solid rgba(74, 59, 47, 0.95);
	background: rgba(15, 12, 10, 0.75);
	color: var(--ld-text);
	font: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ld-input::placeholder {
	color: rgba(184, 170, 146, 0.55);
}

.ld-input:focus {
	outline: none;
	border-color: var(--ld-accent);
	box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.ld-input-wrap--password .ld-input {
	padding-right: 48px;
}

.ld-toggle-pass {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--ld-muted);
	cursor: pointer;
	transition: color 0.2s, background 0.2s;
}

.ld-toggle-pass:hover {
	color: var(--ld-text);
	background: rgba(255, 255, 255, 0.06);
}

.ld-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	font-size: 14px;
	color: var(--ld-muted);
	cursor: pointer;
	user-select: none;
}

.ld-check input {
	width: 18px;
	height: 18px;
	accent-color: var(--ld-accent);
}

.ld-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 15px 20px;
	border: 0;
	border-radius: var(--ld-radius-sm);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	color: #1a1410;
	cursor: pointer;
	background: linear-gradient(180deg, var(--ld-accent-bright) 0%, var(--ld-accent) 55%, var(--ld-accent-dim) 100%);
	box-shadow: 0 8px 24px rgba(201, 162, 39, 0.28);
	transition: transform 0.15s, filter 0.15s, box-shadow 0.15s;
}

.ld-btn:hover:not(:disabled) {
	filter: brightness(1.05);
	box-shadow: 0 10px 28px rgba(201, 162, 39, 0.38);
}

.ld-btn:active:not(:disabled) {
	transform: translateY(1px);
}

.ld-btn:disabled {
	opacity: 0.72;
	cursor: wait;
}

.ld-btn__spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(26, 20, 16, 0.25);
	border-top-color: #1a1410;
	border-radius: 50%;
	animation: ld-spin 0.7s linear infinite;
}

.ld-btn__spinner[hidden] {
	display: none;
}

@keyframes ld-spin {
	to { transform: rotate(360deg); }
}

.ld-links {
	display: grid;
	gap: 10px;
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid rgba(74, 59, 47, 0.65);
}

.ld-links a {
	font-size: 14px;
	font-weight: 600;
	color: var(--ld-accent-bright);
	text-decoration: none;
	transition: color 0.2s;
}

.ld-links a:hover {
	color: var(--ld-text);
	text-decoration: underline;
}

.ld-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 20px clamp(16px, 4vw, 48px) 28px;
	border-top: 1px solid rgba(74, 59, 47, 0.5);
	font-size: 13px;
	color: var(--ld-muted);
}

.ld-footer a {
	color: var(--ld-muted);
	text-decoration: none;
}

.ld-footer a:hover {
	color: var(--ld-accent-bright);
}

@media (max-width: 960px) {
	.ld-main {
		grid-template-columns: 1fr;
	}

	.ld-hero {
		text-align: center;
		max-width: none;
	}

	.ld-hero__lead {
		margin-left: auto;
		margin-right: auto;
	}

	.ld-features,
	.ld-stats {
		justify-content: center;
	}

	.ld-stats {
		margin: 0 auto;
	}

	.ld-nav__link:not(.ld-nav__link--cta) {
		display: none;
	}
}

@media (max-width: 520px) {
	.ld-stats {
		grid-template-columns: 1fr;
	}

	.ld-header {
		height: auto;
		min-height: var(--ld-header-h);
		padding-top: 12px;
		padding-bottom: 12px;
	}
}

.ld-nav__link--live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ld-nav__link--live::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e05555;
	box-shadow: 0 0 8px rgba(224, 85, 85, 0.65);
	animation: ld-pulse 1.8s ease-in-out infinite;
}

.ld-btn--outline {
	background: transparent;
	color: var(--ld-accent-bright);
	border: 1px solid rgba(201, 162, 39, 0.45);
	box-shadow: none;
}

.ld-btn--outline:hover:not(:disabled) {
	background: rgba(201, 162, 39, 0.08);
	filter: none;
}

.ld-btn--inline {
	display: inline-flex;
	width: auto;
	padding: 12px 22px;
}

.ld-hero__cta {
	margin: 20px 0 0;
}

.ld-fights {
	position: relative;
	z-index: 1;
	padding: 24px clamp(16px, 4vw, 48px) 40px;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.ld-fights__head {
	margin-bottom: 28px;
}

.ld-fights__live-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(224, 85, 85, 0.12);
	border: 1px solid rgba(224, 85, 85, 0.35);
	font-size: 13px;
	font-weight: 600;
	color: #f0a0a0;
	margin-bottom: 12px;
}

.ld-fights__live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e05555;
	box-shadow: 0 0 8px rgba(224, 85, 85, 0.65);
	animation: ld-pulse 1.8s ease-in-out infinite;
}

.ld-fights__title {
	font-family: var(--ld-font-display);
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	margin: 0 0 10px;
	color: var(--ld-text);
}

.ld-fights__lead {
	margin: 0 0 12px;
	color: var(--ld-muted);
	max-width: 640px;
}

.ld-fights__meta {
	margin: 0;
	font-size: 14px;
	color: var(--ld-muted);
}

.ld-fights__refresh-note {
	opacity: 0.85;
}

.ld-fights__empty {
	text-align: center;
	padding: 48px 24px;
	border-radius: var(--ld-radius);
	background: var(--ld-panel);
	border: 1px solid var(--ld-panel-border);
}

.ld-fights__empty-sub {
	color: var(--ld-muted);
	font-size: 14px;
}

.ld-fights__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 18px;
}

.ld-fights__room {
	display: flex;
	flex-direction: column;
	background: var(--ld-panel);
	border: 1px solid var(--ld-panel-border);
	border-radius: var(--ld-radius);
	padding: 16px;
	box-shadow: var(--ld-shadow);
	transition: border-color 0.2s, transform 0.15s;
}

.ld-fights__room:hover {
	border-color: rgba(201, 162, 39, 0.5);
	transform: translateY(-2px);
}

.ld-fights__room-head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 8px;
	align-items: start;
	margin-bottom: 10px;
}

.ld-fights__room-live {
	width: 8px;
	height: 8px;
	margin-top: 6px;
	border-radius: 50%;
	background: #e05555;
	box-shadow: 0 0 8px rgba(224, 85, 85, 0.65);
}

.ld-fights__room-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--ld-accent-bright);
}

.ld-fights__room-time {
	font-size: 12px;
	color: var(--ld-muted);
	white-space: nowrap;
}

.ld-fights__room-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 13px;
	color: var(--ld-muted);
	margin-bottom: 12px;
}

.ld-fights__room-meta b {
	color: var(--ld-text);
}

.ld-fights__tag {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(201, 162, 39, 0.2);
	color: var(--ld-accent-bright);
	vertical-align: middle;
}

.ld-fights__tag--great {
	background: rgba(224, 85, 85, 0.2);
	color: #f0a0a0;
}

.ld-fights__teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 8px;
	align-items: start;
	margin-bottom: 14px;
	flex: 1;
}

.ld-fights__team-label {
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 6px;
}

.ld-fights__team--1 .ld-fights__team-label {
	color: #e08080;
}

.ld-fights__team--2 .ld-fights__team-label {
	color: #80a8e0;
}

.ld-fights__team-list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	line-height: 1.45;
}

.ld-fights__team-list li {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ld-fights__lvl {
	color: var(--ld-muted);
	font-size: 12px;
}

.ld-fights__more {
	color: var(--ld-muted);
	font-style: italic;
}

.ld-fights__watch-link {
	color: inherit;
	text-decoration: none;
}

.ld-fights__watch-link:hover {
	color: var(--ld-accent-bright);
	text-decoration: underline;
}

.ld-fights__vs {
	align-self: center;
	font-size: 12px;
	font-weight: 800;
	color: var(--ld-accent-dim);
	padding-top: 18px;
}

.ld-fights__room-foot {
	margin-top: auto;
}

.ld-btn--room {
	padding: 11px 16px;
	font-size: 14px;
}

.ld-fights__pager {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 24px;
}

.ld-fights__pager-link {
	color: var(--ld-accent-bright);
	text-decoration: none;
	font-weight: 600;
}

.ld-fights__pager-link:hover {
	text-decoration: underline;
}

.ld-fights__pager-info {
	color: var(--ld-muted);
	font-size: 14px;
}

.ld-page--watch {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ld-header--watch {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(15, 12, 10, 0.92);
	backdrop-filter: blur(8px);
}

.ld-watch {
	position: relative;
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 12px clamp(12px, 3vw, 32px) 20px;
	min-height: 0;
}

.ld-watch__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	padding: 8px 0 12px;
	font-size: 14px;
	color: var(--ld-muted);
}

.ld-watch__bar b {
	color: var(--ld-text);
}

.ld-watch__refresh {
	font-size: 13px;
	opacity: 0.85;
}

.ld-watch__popup {
	margin-left: auto;
	color: var(--ld-accent-bright);
	text-decoration: none;
	font-size: 13px;
}

.ld-watch__popup:hover {
	text-decoration: underline;
}

.ld-watch__frame-wrap {
	flex: 1;
	min-height: 420px;
	border-radius: var(--ld-radius-sm);
	overflow: hidden;
	border: 1px solid var(--ld-panel-border);
	background: #1a1410;
}

.ld-watch__frame {
	display: block;
	width: 100%;
	height: min(78vh, 900px);
	min-height: 420px;
	border: 0;
	background: #fff;
}

.ld-watch__hint {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--ld-muted);
	text-align: center;
}

.ld-watch__status {
	font-size: 13px;
	font-weight: 700;
	color: var(--ld-muted);
}

.ld-watch__status--live {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #f0a0a0;
}

@keyframes ld-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.55; transform: scale(0.92); }
}

@media (max-width: 960px) {
	.ld-nav__link--live {
		display: inline-flex;
	}

	.ld-fights__teams {
		grid-template-columns: 1fr;
	}

	.ld-fights__vs {
		padding: 0;
		text-align: center;
	}

	.ld-watch__popup {
		margin-left: 0;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ld-ember,
	.ld-hero__badge-dot,
	.ld-fights__live-dot,
	.ld-nav__link--live::before,
	.ld-fights__room-live {
		animation: none;
	}

	html {
		scroll-behavior: auto;
	}
}
