/* Palette, type and HUD details mirror adsb-stream/shared/theme.css + hud.css so the site matches the stream. */
:root {
	--bg: #06080b;
	--panel: rgba(8, 11, 15, 0.78);
	--panel-solid: #0b0e13;
	--line: rgba(255, 255, 255, 0.09);
	--line-strong: rgba(255, 255, 255, 0.22);
	--text: #e7eaee;
	--muted: #8a939e;
	--dim: #4b535d;
	--mil: #e3a94b;
	--emg: #ff4b4b;
	--cand: #67c1ff;
	--ok: #4fd18b;
	--mono: 'IBM Plex Mono', 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
	--sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--mono);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--cand); color: #000; }

/* ---- background radar + frame --------------------------------------- */
#radar {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}
.corners i {
	position: fixed;
	width: 28px;
	height: 28px;
	border: 0 solid var(--line-strong);
	pointer-events: none;
	z-index: 20;
}
.corners .tl { left: 16px; top: 16px; border-left-width: 1px; border-top-width: 1px; }
.corners .tr { right: 16px; top: 16px; border-right-width: 1px; border-top-width: 1px; }
.corners .bl { left: 16px; bottom: 16px; border-left-width: 1px; border-bottom-width: 1px; }
.corners .br { right: 16px; bottom: 16px; border-right-width: 1px; border-bottom-width: 1px; }

/* ---- shared HUD bits ------------------------------------------------- */
.label {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}
.tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 6px;
	border: 1px solid currentColor;
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1.4;
}
.tag.mil { color: var(--mil); }
.tag.emg { color: var(--emg); }
.tag.cand { color: var(--cand); }
.dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 8px currentColor;
	animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: 0.35; } }

.panel {
	background: var(--panel);
	border: 1px solid var(--line);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 20px 22px;
}
.panel header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 12px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--line);
}

/* ---- top bar --------------------------------------------------------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 22px 48px;
	font-size: 13px;
	letter-spacing: 0.2em;
	background: linear-gradient(var(--bg) 40%, rgba(6, 8, 11, 0));
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; white-space: nowrap; }
.brand .mark { width: 20px; height: 20px; color: var(--text); flex: none; }
.meta { display: flex; gap: 32px; align-items: center; color: var(--muted); }
.meta a:hover { color: var(--text); }
.meta b { color: var(--text); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ---- hero ------------------------------------------------------------ */
main { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.hero {
	min-height: calc(100vh - 80px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 0 80px;
}
.hero-mark { width: 120px; height: 120px; margin-bottom: 36px; }
.hero-mark .pip { animation: blink 2s ease-in-out infinite; }
.hero h1 {
	margin: 0;
	font-weight: 600;
	font-size: clamp(26px, 6vw, 68px);
	letter-spacing: 0.14em;
	line-height: 1.15;
	white-space: nowrap;
	animation: reveal 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.tagline {
	margin: 18px 0 40px;
	color: var(--muted);
	font-size: clamp(11px, 1.6vw, 17px);
	letter-spacing: 0.3em;
}
.status {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 12px 22px;
	border: 1px solid var(--emg);
	color: var(--emg);
	font-weight: 500;
	font-size: 18px;
	letter-spacing: 0.3em;
	transition: background 0.2s;
}
.status:hover { background: rgba(255, 75, 75, 0.1); }
.status .dot { width: 9px; height: 9px; }
.sub { margin-top: 34px; color: var(--muted); font-size: 12px; letter-spacing: 0.22em; }
.sep { color: var(--dim); }

@keyframes reveal {
	from { clip-path: inset(0 100% 0 0); opacity: 0.2; }
	to { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* ---- sections -------------------------------------------------------- */
.block { padding: 72px 0; }
.block h2 {
	margin: 6px 0 0;
	font-family: var(--sans);
	font-weight: 300;
	font-size: clamp(22px, 3.4vw, 34px);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.25;
}
.underline { margin: 12px 0 32px; height: 1px; width: 120px; background: var(--line-strong); }
.lede { max-width: 760px; color: var(--muted); margin: 0 0 32px; }

/* ---- streams --------------------------------------------------------- */
.streams {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.stream {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	padding: 20px 22px;
	background: var(--panel);
	border: 1px solid var(--line);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: border-color 0.2s, transform 0.2s;
	position: relative;
}
.stream:hover { border-color: var(--brand, var(--line-strong)); transform: translateY(-2px); }
.stream .top { display: flex; justify-content: space-between; align-items: center; }
.stream .icon { width: 28px; height: 28px; color: var(--brand, var(--text)); }
.stream .icon svg { width: 100%; height: 100%; display: block; }
.stream .name { font-size: 18px; font-weight: 500; letter-spacing: 0.2em; }
.stream .url { color: var(--muted); font-size: 13px; word-break: break-all; }
.stream .desc { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; flex: 1; }
.stream .go {
	font-size: 11px;
	letter-spacing: 0.2em;
	color: var(--text);
	padding-top: 12px;
	border-top: 1px solid var(--line);
}
.stream .go::after { content: ' →'; }
.stream.youtube { --brand: #ff0033; }
.stream.twitch { --brand: #9146ff; }
.stream.x { --brand: #e7eaee; }
.stream.vote { --brand: var(--cand); }

.player .frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: var(--panel-solid);
	border: 1px solid var(--line);
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .load {
	all: unset;
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	cursor: pointer;
	font-family: var(--mono);
	letter-spacing: 0.22em;
	font-size: 13px;
	background: radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 60%), var(--panel-solid);
}
.player .load small { color: var(--muted); letter-spacing: 0.1em; font-size: 11px; }
.player .load .play {
	width: 64px;
	height: 64px;
	border: 1px solid var(--line-strong);
	display: grid;
	place-items: center;
	transition: border-color 0.2s;
}
.player .load .play::before {
	content: '';
	border-left: 16px solid var(--text);
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	margin-left: 4px;
}
.player .load:hover .play, .player .load:focus-visible .play { border-color: var(--emg); }

/* ---- about ----------------------------------------------------------- */
.features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}
.features h3 {
	margin: 14px 0 6px;
	font-family: var(--sans);
	font-weight: 400;
	font-size: 17px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.features p { margin: 0; color: var(--muted); font-size: 13px; }

.rows { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.rows li {
	display: grid;
	grid-template-columns: minmax(200px, 280px) 1fr;
	gap: 16px;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 0; }
.rows li > span { color: var(--muted); }
code { color: var(--cand); font-family: var(--mono); }

/* ---- faq ------------------------------------------------------------- */
.faq article { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq article:first-child { padding-top: 0; }
.faq h3 {
	margin: 0 0 8px;
	font-family: var(--sans);
	font-weight: 400;
	font-size: 17px;
	letter-spacing: 0.04em;
}
.faq p { margin: 0; max-width: 760px; color: var(--muted); font-size: 14px; }
.faq a, .footer a { color: var(--text); border-bottom: 1px solid var(--line-strong); }
.faq a:hover, .footer a:hover { border-color: var(--cand); }

/* ---- comments -------------------------------------------------------- */
.compose { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.compose input, .compose textarea {
	width: 100%;
	font: inherit;
	font-size: 14px;
	color: var(--text);
	background: var(--panel-solid);
	border: 1px solid var(--line-strong);
	border-radius: 0;
	padding: 12px;
	resize: vertical;
}
.compose input { text-transform: uppercase; letter-spacing: 0.1em; max-width: 320px; }
.compose input::placeholder, .compose textarea::placeholder { color: var(--dim); text-transform: none; letter-spacing: 0; }
.compose input:focus, .compose textarea:focus { outline: none; border-color: var(--cand); }
.compose .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.compose .actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.compose button, .more {
	all: unset;
	cursor: pointer;
	font-family: var(--mono);
	font-size: 13px;
	letter-spacing: 0.2em;
	padding: 10px 18px;
	border: 1px solid var(--cand);
	color: var(--cand);
	transition: background 0.2s;
}
.compose button:hover, .compose button:focus-visible, .more:hover { background: rgba(103, 193, 255, 0.12); }
.compose button:disabled { opacity: 0.5; cursor: default; }
.msg { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.msg.err { color: var(--emg); }
.msg.ok { color: var(--ok); }

.comments { list-style: none; margin: 0; padding: 0; }
.comments li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comments li.new { animation: flash 1.6s ease-out; }
.comments .who { display: flex; gap: 14px; align-items: baseline; margin-bottom: 4px; }
.comments .who b { font-weight: 500; letter-spacing: 0.14em; font-size: 13px; }
.comments .who time { color: var(--dim); font-size: 11px; letter-spacing: 0.14em; }
.comments p { margin: 0; color: #c9ced4; white-space: pre-wrap; overflow-wrap: anywhere; }
.comments .empty { color: var(--dim); letter-spacing: 0.16em; font-size: 12px; }
.more { display: block; margin: 20px auto 0; }
@keyframes flash { from { background: rgba(103, 193, 255, 0.12); } to { background: transparent; } }

/* ---- footer ---------------------------------------------------------- */
.footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 40px;
	margin: 40px 48px 0;
	padding: 24px 0 48px;
	border-top: 1px solid var(--line);
	color: var(--dim);
	font-size: 11px;
	letter-spacing: 0.2em;
	text-align: center;
}

/* ---- small screens --------------------------------------------------- */
@media (max-width: 760px) {
	.topbar { padding: 18px 24px; }
	.meta a { display: none; }
	.brand span { font-size: 11px; letter-spacing: 0.16em; }
	main { padding: 0 20px; }
	.hero h1 { white-space: normal; }
	.rows li { grid-template-columns: 1fr; gap: 2px; }
	.footer { margin: 40px 20px 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}
