/*
 * Cha Stall Adda - front-end styles.
 * Night/day immersive tea-stall theme with warm amber accents.
 */

.cs-app {
	--cs-accent: #ffb457;
	--cs-accent-soft: rgba(255, 180, 87, 0.16);
	--cs-bg: #140f0b;
	--cs-bg-2: #1d1510;
	--cs-surface: rgba(32, 23, 17, 0.72);
	--cs-surface-solid: #241a13;
	--cs-border: rgba(255, 216, 170, 0.16);
	--cs-border-strong: rgba(255, 216, 170, 0.3);
	--cs-text: #f8efe2;
	--cs-text-soft: #d8c7b2;
	--cs-muted: #a8957f;
	--cs-danger: #ff7a6b;
	--cs-ok: #7fd28f;
	--cs-radius: 18px;
	--cs-radius-sm: 12px;
	--cs-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
	--cs-font-bn: 'Hind Siliguri', 'Baloo Da 2', system-ui, sans-serif;
	--cs-font-display: 'Baloo Da 2', 'Hind Siliguri', system-ui, sans-serif;
	--cs-font-en: 'Poppins', system-ui, sans-serif;
	position: relative;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--cs-bg);
	color: var(--cs-text);
	font-family: var(--cs-font-bn);
	overflow-x: hidden;
	isolation: isolate;
	direction: ltr;
}

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

.cs-app button,
.cs-app input {
	font-family: inherit;
}

.cs-app.cs-theme-day {
	--cs-bg: #2a1c12;
	--cs-bg-2: #3a2718;
	--cs-surface: rgba(58, 40, 27, 0.68);
	--cs-surface-solid: #3b2919;
	--cs-text: #fff7ea;
	--cs-text-soft: #f1dcc1;
	--cs-muted: #c9ab88;
	--cs-border: rgba(255, 230, 190, 0.22);
}

/* ---------- Scene ---------- */

.cs-scene {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.cs-scene-sky {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 90% at 18% 0%, rgba(95, 56, 29, 0.55), transparent 55%),
		radial-gradient(80% 60% at 82% 8%, rgba(255, 176, 80, 0.16), transparent 58%),
		linear-gradient(170deg, #171009 0%, #1c130c 45%, #120c08 100%);
	transition: background 1200ms ease;
}

.cs-app.cs-theme-day .cs-scene-sky {
	background:
		radial-gradient(120% 90% at 18% 0%, rgba(255, 178, 92, 0.4), transparent 55%),
		radial-gradient(90% 70% at 78% 12%, rgba(255, 210, 140, 0.28), transparent 60%),
		linear-gradient(170deg, #3a2415 0%, #472c19 45%, #2c1c11 100%);
}

.cs-scene-glow {
	position: absolute;
	left: 50%;
	top: 32%;
	width: min(1100px, 130vw);
	height: min(700px, 90vh);
	transform: translate(-50%, -30%);
	background: radial-gradient(closest-side, rgba(255, 170, 80, 0.22), transparent 70%);
	filter: blur(20px);
	transition: opacity 1000ms ease;
}

.cs-scene-lights {
	position: absolute;
	inset: auto 0 0;
	height: 42%;
	background:
		radial-gradient(60% 120% at 15% 100%, rgba(255, 168, 74, 0.14), transparent 70%),
		radial-gradient(55% 120% at 82% 100%, rgba(255, 130, 60, 0.12), transparent 70%);
}

.cs-scene-vignette {
	position: absolute;
	inset: 0;
	background: radial-gradient(120% 100% at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

.cs-grain {
	position: absolute;
	inset: 0;
	opacity: 0.06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

.cs-scene-art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	opacity: 1;
}

.cs-day-only {
	display: none;
}

.cs-app.cs-theme-day .cs-day-only {
	display: inline;
}

.cs-app.cs-theme-day .cs-night-only {
	display: none;
}

.cs-scene-stars,
.cs-scene-moon,
.cs-scene-sun,
.cs-scene-river,
.cs-scene-far,
.cs-scene-tree,
.cs-scene-stall,
.cs-scene-lanterns {
	position: absolute;
	pointer-events: none;
}

.cs-scene-stars {
	inset: 0 0 40%;
	background-image:
		radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 245, 220, 0.7), transparent),
		radial-gradient(1px 1px at 28% 8%, rgba(255, 245, 220, 0.55), transparent),
		radial-gradient(1.4px 1.4px at 46% 22%, rgba(255, 245, 220, 0.65), transparent),
		radial-gradient(1px 1px at 63% 12%, rgba(255, 245, 220, 0.5), transparent),
		radial-gradient(1.2px 1.2px at 78% 28%, rgba(255, 245, 220, 0.6), transparent),
		radial-gradient(1px 1px at 88% 10%, rgba(255, 245, 220, 0.45), transparent),
		radial-gradient(1.5px 1.5px at 34% 32%, rgba(255, 245, 220, 0.4), transparent);
	opacity: 0.85;
	transition: opacity 800ms ease;
}

.cs-scene-moon {
	top: 8%;
	right: 14%;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 32%, #fff4d4, #e8c98a 62%, transparent 68%);
	box-shadow: 0 0 28px 8px rgba(255, 220, 150, 0.28);
	transition: opacity 800ms ease, transform 800ms ease;
}

.cs-scene-sun {
	top: 10%;
	right: 16%;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 40%, #ffe7a8, #ffb457 58%, transparent 70%);
	box-shadow: 0 0 50px 18px rgba(255, 176, 80, 0.35);
	opacity: 0;
	transition: opacity 800ms ease;
}

.cs-scene-river {
	left: 0;
	right: 0;
	bottom: 0;
	height: 28%;
	background:
		linear-gradient(180deg, rgba(28, 58, 72, 0.18), rgba(10, 22, 32, 0.55)),
		repeating-linear-gradient(90deg, transparent 0 40px, rgba(255, 210, 140, 0.05) 40px 42px);
	mask-image: linear-gradient(180deg, transparent, #000 28%);
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 28%);
}

.cs-scene-far {
	left: 0;
	right: 0;
	bottom: 22%;
	height: 18%;
	background:
		radial-gradient(18px 10px at 12% 70%, rgba(40, 28, 18, 0.7), transparent 70%),
		radial-gradient(22px 12px at 22% 78%, rgba(40, 28, 18, 0.6), transparent 70%),
		radial-gradient(16px 9px at 78% 72%, rgba(32, 48, 38, 0.55), transparent 70%),
		radial-gradient(20px 11px at 88% 80%, rgba(32, 48, 38, 0.5), transparent 70%);
	opacity: 0.7;
}

.cs-scene-tree {
	bottom: 18%;
	width: 180px;
	height: 42%;
	background:
		radial-gradient(60% 50% at 50% 18%, rgba(18, 38, 22, 0.55), transparent 70%),
		linear-gradient(90deg, transparent 46%, rgba(42, 28, 16, 0.7) 48%, rgba(42, 28, 16, 0.7) 52%, transparent 54%);
	filter: blur(0.2px);
}

.cs-scene-tree-l { left: -40px; }
.cs-scene-tree-r { right: -50px; transform: scaleX(-1); }

.cs-scene-stall {
	opacity: 1;
}

.cs-scene-stall {
	left: 50%;
	bottom: 8%;
	width: min(560px, 86vw);
	height: min(320px, 46vh);
	transform: translateX(-50%);
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.cs-scene-sign {
	position: absolute;
	left: 50%;
	top: -6%;
	transform: translateX(-50%);
	padding: 4px 14px;
	border-radius: 4px;
	background: #7a2d22;
	color: #ffd27a;
	font-family: var(--cs-font-display);
	font-size: 13px;
	letter-spacing: 0.08em;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.cs-scene-kettle {
	position: absolute;
	left: 28%;
	bottom: 26%;
	width: 28px;
	height: 22px;
	border-radius: 40% 40% 30% 30%;
	background: linear-gradient(180deg, #c9a57a, #6a4328);
	box-shadow: 4px -6px 0 -8px #c9a57a;
}

.cs-scene-bench {
	position: absolute;
	left: 8%;
	right: 8%;
	bottom: 2%;
	height: 8%;
	background: linear-gradient(180deg, #5a3a22, #2a1b10);
	border-radius: 2px;
}

.cs-scene-roof {
	position: absolute;
	left: 6%;
	right: 6%;
	top: 0;
	height: 22%;
	background:
		linear-gradient(180deg, #7a2d22 0%, #c24a32 38%, #8a3326 100%);
	clip-path: polygon(4% 100%, 12% 18%, 88% 18%, 96% 100%);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.cs-scene-posts {
	position: absolute;
	inset: 20% 10% 18%;
	background:
		linear-gradient(90deg, rgba(92, 58, 28, 0.95) 0 8px, transparent 8px),
		linear-gradient(90deg, transparent calc(100% - 8px), rgba(92, 58, 28, 0.95) calc(100% - 8px));
}

.cs-scene-hut {
	position: absolute;
	left: 12%;
	right: 12%;
	top: 22%;
	bottom: 22%;
	background:
		linear-gradient(180deg, rgba(255, 176, 90, 0.16), transparent 40%),
		repeating-linear-gradient(90deg, #3a2616 0 10px, #2a1b10 10px 12px);
	border: 1px solid rgba(255, 200, 130, 0.18);
	box-shadow: inset 0 0 40px rgba(255, 150, 60, 0.12);
}

.cs-scene-counter {
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: 10%;
	height: 16%;
	background: linear-gradient(180deg, #6a4328, #3d2716);
	border-radius: 3px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.cs-scene-tv {
	position: absolute;
	left: 50%;
	top: 40%;
	width: 54px;
	height: 38px;
	transform: translateX(-50%);
	border-radius: 4px;
	background: #111;
	box-shadow: 0 0 18px rgba(120, 200, 255, 0.35), inset 0 0 8px rgba(80, 160, 255, 0.5);
	animation: cs-tv-glow 3.6s ease-in-out infinite;
}

.cs-scene-steam {
	position: absolute;
	left: 34%;
	top: 34%;
	width: 18px;
	height: 34px;
	background:
		radial-gradient(circle at 40% 80%, rgba(255, 240, 220, 0.35), transparent 60%),
		radial-gradient(circle at 70% 40%, rgba(255, 240, 220, 0.22), transparent 60%);
	filter: blur(2px);
	animation: cs-steam 3.2s ease-in-out infinite;
}

.cs-scene-cups {
	position: absolute;
	left: 22%;
	bottom: 24%;
	width: 58%;
	height: 10%;
	background:
		radial-gradient(circle at 10% 50%, #d9b48a 0 5px, transparent 6px),
		radial-gradient(circle at 22% 50%, #d9b48a 0 5px, transparent 6px),
		radial-gradient(circle at 78% 50%, #c9a57a 0 6px, transparent 7px);
	opacity: 0.85;
}

.cs-scene-lanterns {
	left: 50%;
	bottom: 38%;
	width: min(460px, 70vw);
	height: 40px;
	transform: translateX(-50%);
	display: flex;
	justify-content: space-around;
	align-items: flex-end;
}

.cs-scene-lanterns i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ffd27a;
	box-shadow: 0 0 14px 6px rgba(255, 176, 80, 0.45);
	animation: cs-lantern 2.8s ease-in-out infinite;
}

.cs-scene-lanterns i:nth-child(2) { animation-delay: 0.4s; }
.cs-scene-lanterns i:nth-child(3) { animation-delay: 0.9s; }
.cs-scene-lanterns i:nth-child(4) { animation-delay: 1.3s; }

.cs-app.cs-theme-day .cs-scene-stars,
.cs-app.cs-theme-day .cs-scene-moon {
	opacity: 0;
}

.cs-app.cs-theme-day .cs-scene-sun {
	opacity: 1;
}

.cs-app.cs-theme-day .cs-scene-river {
	background:
		linear-gradient(180deg, rgba(90, 150, 170, 0.28), rgba(40, 80, 90, 0.45)),
		repeating-linear-gradient(90deg, transparent 0 40px, rgba(255, 230, 180, 0.08) 40px 42px);
}

.cs-app.cs-theme-day .cs-scene-hut {
	background:
		linear-gradient(180deg, rgba(255, 200, 120, 0.28), transparent 45%),
		repeating-linear-gradient(90deg, #5a3a22 0 10px, #3d2718 10px 12px);
}

@keyframes cs-tv-glow {
	0%, 100% { box-shadow: 0 0 12px rgba(120, 200, 255, 0.25); }
	50% { box-shadow: 0 0 22px rgba(160, 220, 255, 0.55); }
}

@keyframes cs-steam {
	0%, 100% { opacity: 0.35; transform: translateY(0); }
	50% { opacity: 0.7; transform: translateY(-6px); }
}

@keyframes cs-lantern {
	0%, 100% { opacity: 0.7; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.12); }
}

.cs-lang-btn {
	min-width: 38px;
	font-family: var(--cs-font-en);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

/* ---------- Top bar ---------- */

.cs-topbar {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	padding: max(8px, env(safe-area-inset-top)) clamp(14px, 3vw, 32px) 0;
	font-size: 14px;
	color: var(--cs-text-soft);
}

.cs-clock {
	font-family: var(--cs-font-en);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.cs-live {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: center;
	padding: 5px 14px;
	border-radius: 999px;
	border: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	font-size: 12.5px;
	white-space: nowrap;
}

.cs-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cs-ok);
	box-shadow: 0 0 10px var(--cs-ok);
	animation: cs-pulse 2.4s ease-in-out infinite;
}

.cs-top-actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.cs-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	border: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.28);
	color: var(--cs-text-soft);
	cursor: pointer;
	transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
	-webkit-tap-highlight-color: transparent;
}

.cs-icon-btn svg {
	width: 19px;
	height: 19px;
}

.cs-icon-btn:hover {
	background: var(--cs-accent-soft);
	border-color: var(--cs-border-strong);
	color: var(--cs-text);
}

.cs-icon-btn:active {
	transform: scale(0.94);
}

.cs-icon-btn[aria-pressed='true'] {
	color: var(--cs-accent);
	border-color: var(--cs-accent);
	background: var(--cs-accent-soft);
}

.cs-lang-btn:focus-visible,
.cs-icon-btn:focus-visible,
.cs-chip:focus-visible,
.cs-tab:focus-visible,
.cs-send:focus-visible,
.cs-round:focus-visible,
.cs-input:focus-visible,
.cs-player-card:focus-visible,
.cs-station-card:focus-visible {
	outline: 2px solid var(--cs-accent);
	outline-offset: 2px;
}

/* ---------- Brand ---------- */

.cs-brand {
	position: relative;
	z-index: 2;
	text-align: left;
	padding: clamp(4px, 1.2vw, 12px) clamp(16px, 3vw, 40px) 0;
	max-width: min(520px, 48vw);
}

.cs-brand-bn {
	margin: 0;
	font-family: var(--cs-font-display);
	font-weight: 800;
	font-size: clamp(2rem, 6vw, 3.6rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: #fff4e2;
	text-shadow: 0 6px 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 170, 80, 0.2);
}

.cs-brand-en {
	margin: 2px 0 0;
	font-family: var(--cs-font-en);
	font-size: clamp(0.75rem, 2.4vw, 1rem);
	letter-spacing: 0.42em;
	text-transform: uppercase;
	color: rgba(255, 226, 190, 0.72);
}

.cs-tagline {
	margin: 10px 0 0;
	font-size: clamp(0.95rem, 3vw, 1.15rem);
	color: var(--cs-text-soft);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ---------- Stage / panels ---------- */

.cs-stage {
	position: relative;
	z-index: 2;
	width: min(1060px, 100% - 24px);
	margin: 0 auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	padding-bottom: 16px;
}

.cs-overlays {
	position: fixed;
	left: 50%;
	bottom: calc(44px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	width: min(1060px, calc(100% - 24px));
	z-index: 4;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	max-height: min(46vh, 560px);
}

.cs-overlay {
	position: relative;
	overflow: auto;
}

.cs-overlays,
.cs-overlay {
	/* overlays sit on the illustrated stall */
}

.cs-tabs {
	display: flex;
	gap: 6px;
	padding: 6px;
	margin: 4px auto 8px;
	border-radius: 999px;
	border: 1px solid var(--cs-border);
	background: rgba(12, 8, 5, 0.5);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

.cs-tabs::-webkit-scrollbar {
	display: none;
}

.cs-tab {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--cs-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: color 180ms ease, background 180ms ease;
	min-height: 40px;
	-webkit-tap-highlight-color: transparent;
}

.cs-tab svg {
	width: 18px;
	height: 18px;
}

.cs-tab:hover {
	color: var(--cs-text-soft);
}

.cs-tab[aria-selected='true'] {
	background: var(--cs-accent);
	color: #2a1a08;
	box-shadow: 0 6px 20px rgba(255, 170, 80, 0.28);
}

.cs-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	padding: clamp(10px, 1.6vw, 16px);
	border-radius: var(--cs-radius);
	border: 1px solid var(--cs-border);
	background: linear-gradient(180deg, rgba(40, 28, 20, 0.62), rgba(20, 13, 9, 0.72));
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: var(--cs-shadow);
	animation: cs-panel-in 280ms ease-out;
}

.cs-panel[hidden] {
	display: none;
}

.cs-panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}

.cs-panel-head h2 {
	margin: 0;
	font-family: var(--cs-font-display);
	font-size: clamp(1.25rem, 3.4vw, 1.6rem);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.cs-panel-head p {
	margin: 3px 0 0;
	font-size: 13px;
}

.cs-muted {
	color: var(--cs-muted);
}

.cs-badge {
	display: inline-block;
	vertical-align: middle;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--cs-accent-soft);
	border: 1px solid var(--cs-accent);
	color: var(--cs-accent);
	font-family: var(--cs-font-en);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
}

.cs-presence {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.25);
	font-size: 12.5px;
	color: var(--cs-text-soft);
	white-space: nowrap;
}

.cs-presence-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cs-ok);
	box-shadow: 0 0 8px var(--cs-ok);
}

/* ---------- Inputs ---------- */

.cs-input {
	width: 100%;
	min-height: 42px;
	padding: 10px 14px;
	border-radius: var(--cs-radius-sm);
	border: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.28);
	color: var(--cs-text);
	font-size: 15px;
	transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cs-input::placeholder {
	color: rgba(216, 199, 178, 0.5);
}

.cs-input:focus {
	border-color: var(--cs-accent);
	background: rgba(0, 0, 0, 0.4);
	box-shadow: 0 0 0 3px var(--cs-accent-soft);
	outline: none;
}

.cs-input-lg {
	font-size: 15.5px;
}

.cs-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.24);
	color: var(--cs-text-soft);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 160ms ease;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}

.cs-chip:hover {
	border-color: var(--cs-border-strong);
	background: var(--cs-accent-soft);
	color: var(--cs-text);
}

.cs-chip:active {
	transform: scale(0.96);
}

.cs-chip.is-active {
	background: var(--cs-accent);
	border-color: var(--cs-accent);
	color: #2a1a08;
}

.cs-send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--cs-radius-sm);
	background: linear-gradient(180deg, #ffc36e, #ff9f3d);
	color: #2b1a06;
	font-weight: 700;
	font-size: 14.5px;
	cursor: pointer;
	transition: transform 160ms ease, box-shadow 180ms ease, filter 180ms ease;
	box-shadow: 0 8px 22px rgba(255, 150, 60, 0.26);
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}

.cs-send svg {
	width: 17px;
	height: 17px;
}

.cs-send:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
}

.cs-send:active {
	transform: translateY(0) scale(0.97);
}

.cs-send:disabled {
	opacity: 0.5;
	cursor: default;
	transform: none;
	box-shadow: none;
}

/* ---------- Chat ---------- */

.cs-nickrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.cs-nickrow label {
	font-size: 13px;
	color: var(--cs-muted);
	white-space: nowrap;
}

.cs-nickrow .cs-input {
	max-width: 280px;
	min-height: 38px;
	padding: 7px 12px;
	font-size: 14px;
}

.cs-chat {
	flex: 1;
	min-height: 220px;
	max-height: min(56vh, 540px);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 6px 8px 6px 2px;
	scrollbar-width: thin;
	scrollbar-color: var(--cs-border-strong) transparent;
	overscroll-behavior: contain;
}

.cs-chat::-webkit-scrollbar {
	width: 8px;
}

.cs-chat::-webkit-scrollbar-thumb {
	background: var(--cs-border-strong);
	border-radius: 999px;
}

.cs-msg {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: min(78%, 620px);
	animation: cs-msg-in 240ms ease-out;
}

.cs-msg.is-mine {
	align-self: flex-end;
	align-items: flex-end;
}

.cs-msg.is-system {
	align-self: center;
	max-width: 100%;
}

.cs-msg-head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 0 4px;
	font-size: 12px;
	color: var(--cs-muted);
}

.cs-msg-name {
	font-weight: 700;
	color: var(--cs-text-soft);
}

.cs-msg.is-mine .cs-msg-name {
	color: var(--cs-accent);
}

.cs-bubble {
	position: relative;
	padding: 10px 14px;
	border-radius: 16px 16px 16px 5px;
	background: rgba(255, 244, 226, 0.08);
	border: 1px solid var(--cs-border);
	font-size: 15px;
	line-height: 1.55;
	word-break: break-word;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.cs-msg.is-mine .cs-bubble {
	border-radius: 16px 16px 5px 16px;
	background: linear-gradient(160deg, rgba(255, 180, 87, 0.22), rgba(255, 150, 60, 0.12));
	border-color: rgba(255, 180, 87, 0.34);
}

.cs-msg.is-system .cs-bubble {
	background: transparent;
	border-style: dashed;
	font-size: 13px;
	color: var(--cs-muted);
	border-radius: 999px;
	padding: 6px 14px;
}

.cs-reactions {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 0 4px;
}

.cs-react {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 28px;
	padding: 2px 9px;
	border-radius: 999px;
	border: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.24);
	color: var(--cs-text-soft);
	font-family: var(--cs-font-bn);
	font-size: 12px;
	cursor: pointer;
	transition: background 160ms ease, border-color 160ms ease, transform 140ms ease;
}

.cs-react:hover {
	background: var(--cs-accent-soft);
}

.cs-react:active {
	transform: scale(0.94);
}

.cs-react.is-active {
	background: var(--cs-accent);
	border-color: var(--cs-accent);
	color: #2a1a08;
}

.cs-react-add {
	padding: 2px 8px;
	font-size: 14px;
	line-height: 1;
}

.cs-typing {
	min-height: 20px;
	padding: 4px 4px 0;
	font-size: 12px;
	color: var(--cs-muted);
}

.cs-compose {
	margin-top: 10px;
}

.cs-emoji-bar {
	display: flex;
	gap: 6px;
	margin-bottom: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}

.cs-emoji-bar::-webkit-scrollbar {
	display: none;
}

.cs-emoji {
	min-height: 30px;
	padding: 4px 12px;
	border-radius: 999px;
	border: 1px solid var(--cs-border);
	background: transparent;
	color: var(--cs-text-soft);
	font-size: 12.5px;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease;
}

.cs-emoji:hover {
	background: var(--cs-accent-soft);
	color: var(--cs-text);
}

.cs-compose-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.cs-compose-row .cs-input {
	flex: 1;
}

/* ---------- TV ---------- */

.cs-player-shell {
	border-radius: var(--cs-radius);
	border: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.35);
	overflow: hidden;
	margin-bottom: 14px;
}

.cs-tv-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	background: #050403;
	overflow: hidden;
}

.cs-video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #050403;
	display: block;
}

.cs-tv-noise {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
	opacity: 0.5;
	mix-blend-mode: screen;
}

.cs-tv-empty {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: rgba(216, 199, 178, 0.55);
	text-align: center;
	pointer-events: none;
	transition: opacity 240ms ease;
}

.cs-tv-empty svg {
	width: 54px;
	height: 54px;
	opacity: 0.7;
}

.cs-tv-empty p {
	margin: 0;
	font-size: 14px;
}

.cs-tv-frame.is-playing .cs-tv-empty {
	opacity: 0;
	pointer-events: none;
}

.cs-tv-play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 68px;
	height: 68px;
	border: 0;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(20, 12, 6, 0.72);
	color: var(--cs-accent);
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
	transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
	z-index: 2;
}

.cs-tv-play svg {
	width: 28px;
	height: 28px;
	margin-left: 3px;
}

.cs-tv-play:hover,
.cs-tv-play:focus-visible {
	transform: scale(1.06);
	background: rgba(20, 12, 6, 0.88);
	outline: 2px solid var(--cs-accent);
	outline-offset: 3px;
}

.cs-tv-frame.is-playing .cs-tv-play {
	opacity: 0;
	pointer-events: none;
}

.cs-nowbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	border-top: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.25);
}

.cs-nowbar-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.cs-nowbar-info strong {
	font-size: 14.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cs-nowbar-info span {
	font-size: 12px;
}

.cs-nowbar-actions {
	display: flex;
	gap: 6px;
}

.cs-nowbar-actions .cs-chip {
	min-height: 34px;
	padding: 5px 12px;
	font-size: 12px;
}

.cs-filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.cs-filter-row .cs-input[type='search'] {
	flex: 1;
	min-width: 180px;
	max-width: 340px;
	min-height: 40px;
	font-size: 14px;
}

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

.cs-filter-chips::-webkit-scrollbar {
	display: none;
}

.cs-filter-chips .cs-chip {
	min-height: 34px;
	padding: 5px 12px;
	font-size: 12.5px;
}

.cs-channel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	max-height: min(38vh, 380px);
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: var(--cs-border-strong) transparent;
}

.cs-player-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--cs-radius-sm);
	border: 1px solid var(--cs-border);
	background: rgba(255, 244, 226, 0.04);
	color: var(--cs-text);
	text-align: left;
	cursor: pointer;
	transition: border-color 180ms ease, background 180ms ease, transform 160ms ease;
	-webkit-tap-highlight-color: transparent;
	overflow: hidden;
}

.cs-player-card:hover {
	border-color: var(--cs-border-strong);
	background: rgba(255, 244, 226, 0.08);
}

.cs-player-card.is-active {
	border-color: var(--cs-accent);
	background: var(--cs-accent-soft);
}

.cs-player-card:active {
	transform: scale(0.98);
}

.cs-player-logo {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--cs-border);
	font-family: var(--cs-font-display);
	font-size: 15px;
	font-weight: 700;
	color: var(--cs-accent);
	overflow: hidden;
}

.cs-player-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cs-player-card-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.cs-player-card-body strong {
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cs-player-card-body small {
	font-size: 11px;
	color: var(--cs-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cs-player-card .cs-live-tag {
	position: absolute;
	top: 6px;
	right: 6px;
	font-family: var(--cs-font-en);
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 2px 5px;
	border-radius: 5px;
	background: rgba(255, 120, 90, 0.18);
	color: #ff9d86;
	border: 1px solid rgba(255, 120, 90, 0.35);
}

/* ---------- Radio ---------- */

.cs-seg {
	display: inline-flex;
	padding: 3px;
	border-radius: 999px;
	border: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.24);
	gap: 2px;
}

.cs-seg-btn {
	min-height: 32px;
	padding: 5px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--cs-muted);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease;
}

.cs-seg-btn.is-active {
	background: var(--cs-accent);
	color: #2a1a08;
}

.cs-radio-now {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px;
	margin-bottom: 14px;
	border-radius: var(--cs-radius);
	border: 1px solid var(--cs-border);
	background:
		radial-gradient(70% 120% at 0% 0%, rgba(255, 170, 80, 0.16), transparent 60%),
		rgba(0, 0, 0, 0.28);
	overflow: hidden;
}

.cs-disc {
	position: relative;
	flex-shrink: 0;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background:
		repeating-radial-gradient(circle at center, #1a120c 0 2px, #241811 2px 4px),
		#1a120c;
	border: 1px solid var(--cs-border-strong);
	display: grid;
	place-items: center;
	box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7);
}

.cs-disc::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 200, 140, 0.4), transparent);
	transform: translate(-50%, -50%) rotate(-30deg);
}

.cs-disc.is-spinning {
	animation: cs-spin 3.4s linear infinite;
}

.cs-disc-label {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: linear-gradient(180deg, #ffc36e, #ff9f3d);
	color: #2b1a06;
	box-shadow: 0 4px 14px rgba(255, 160, 70, 0.35);
}

.cs-disc-label svg {
	width: 18px;
	height: 18px;
}

.cs-radio-meta {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.cs-radio-meta strong {
	font-family: var(--cs-font-display);
	font-size: clamp(1rem, 3vw, 1.2rem);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cs-radio-meta > span {
	font-size: 12.5px;
}

.cs-radio-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.cs-round {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.26);
	color: var(--cs-text-soft);
	cursor: pointer;
	transition: background 160ms ease, color 160ms ease, transform 150ms ease;
	-webkit-tap-highlight-color: transparent;
}

.cs-round svg {
	width: 17px;
	height: 17px;
}

.cs-round:hover {
	background: var(--cs-accent-soft);
	color: var(--cs-text);
}

.cs-round:active {
	transform: scale(0.92);
}

.cs-round-primary {
	width: 46px;
	height: 46px;
	background: linear-gradient(180deg, #ffc36e, #ff9f3d);
	border: 0;
	color: #2b1a06;
	box-shadow: 0 8px 20px rgba(255, 150, 60, 0.3);
}

.cs-round-primary svg {
	width: 21px;
	height: 21px;
}

.cs-eq {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 34px;
	opacity: 0.45;
}

.cs-eq i {
	width: 3px;
	border-radius: 2px;
	background: var(--cs-accent);
	height: 20%;
}

.cs-eq.is-playing {
	opacity: 1;
}

.cs-eq.is-playing i {
	animation: cs-eq 1s ease-in-out infinite;
}

.cs-eq i:nth-child(2) { animation-delay: 0.15s; }
.cs-eq i:nth-child(3) { animation-delay: 0.3s; }
.cs-eq i:nth-child(4) { animation-delay: 0.45s; }
.cs-eq i:nth-child(5) { animation-delay: 0.6s; }

.cs-station-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 10px;
	max-height: min(38vh, 380px);
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: var(--cs-border-strong) transparent;
}

.cs-station-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: var(--cs-radius-sm);
	border: 1px solid var(--cs-border);
	background: rgba(255, 244, 226, 0.04);
	color: var(--cs-text);
	text-align: left;
	cursor: pointer;
	transition: border-color 180ms ease, background 180ms ease, transform 160ms ease;
	min-height: 58px;
	-webkit-tap-highlight-color: transparent;
}

.cs-station-card:hover {
	border-color: var(--cs-border-strong);
	background: rgba(255, 244, 226, 0.08);
}

.cs-station-card.is-active {
	border-color: var(--cs-accent);
	background: var(--cs-accent-soft);
}

.cs-station-card:active {
	transform: scale(0.98);
}

.cs-station-avatar {
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.34);
	border: 1px solid var(--cs-border);
	font-family: var(--cs-font-display);
	font-weight: 700;
	color: var(--cs-accent);
	overflow: hidden;
}

.cs-station-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cs-station-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.cs-station-body strong {
	font-size: 13.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cs-station-body small {
	font-size: 11px;
	color: var(--cs-muted);
}

/* ---------- P2P ---------- */

.cs-p2p-state {
	font-family: var(--cs-font-en);
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid var(--cs-border);
	color: var(--cs-muted);
	white-space: nowrap;
}

.cs-p2p-state.is-live {
	color: var(--cs-ok);
	border-color: rgba(127, 210, 143, 0.4);
	background: rgba(127, 210, 143, 0.1);
}

.cs-p2p {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 14px;
	min-height: 0;
	flex: 1;
}

.cs-peer-list {
	border-radius: var(--cs-radius-sm);
	border: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.24);
	padding: 12px;
	display: flex;
	flex-direction: column;
	min-height: 240px;
}

.cs-peer-list h3 {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cs-muted);
}

.cs-peer-items {
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow-y: auto;
	max-height: min(42vh, 420px);
	scrollbar-width: thin;
}

.cs-peer {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 9px;
	border-radius: 10px;
	border: 1px solid transparent;
	background: transparent;
	color: var(--cs-text-soft);
	cursor: pointer;
	text-align: left;
	transition: background 160ms ease, border-color 160ms ease;
	min-height: 42px;
	-webkit-tap-highlight-color: transparent;
}

.cs-peer:hover {
	background: rgba(255, 244, 226, 0.06);
}

.cs-peer.is-active {
	background: var(--cs-accent-soft);
	border-color: var(--cs-accent);
	color: var(--cs-text);
}

.cs-peer-avatar {
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--cs-font-display);
	font-weight: 700;
	font-size: 13px;
	color: #2b1a06;
	background: linear-gradient(160deg, #ffd39a, #ffa54a);
}

.cs-peer-meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.cs-peer-meta strong {
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cs-peer-meta small {
	font-size: 10.5px;
	color: var(--cs-muted);
}

.cs-dm {
	display: flex;
	flex-direction: column;
	border-radius: var(--cs-radius-sm);
	border: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.2);
	min-height: 240px;
	overflow: hidden;
}

.cs-dm-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.22);
}

.cs-dm-head strong {
	font-size: 14px;
}

.cs-dm-head span {
	font-size: 11.5px;
}

.cs-dm-log {
	flex: 1;
	min-height: 180px;
	max-height: min(36vh, 360px);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 14px;
	scrollbar-width: thin;
	scrollbar-color: var(--cs-border-strong) transparent;
}

.cs-dm .cs-compose {
	margin: 0;
	padding: 10px 12px;
	border-top: 1px solid var(--cs-border);
	background: rgba(0, 0, 0, 0.22);
}

.cs-dm-empty {
	margin: auto;
	text-align: center;
	color: var(--cs-muted);
	font-size: 13px;
	padding: 20px;
}

/* ---------- Footer / toast ---------- */

.cs-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 18px;
	padding: 8px clamp(14px, 3vw, 32px) max(10px, env(safe-area-inset-bottom));
	font-size: 12.5px;
	color: var(--cs-muted);
	text-align: center;
	background: linear-gradient(180deg, transparent, rgba(12, 8, 5, 0.72));
}

.cs-footer a {
	color: var(--cs-accent);
	text-decoration: none;
	border-bottom: 1px dashed rgba(255, 180, 87, 0.45);
	transition: border-color 160ms ease;
}

.cs-footer a:hover {
	border-bottom-style: solid;
}

.cs-toast {
	position: fixed;
	left: 50%;
	bottom: max(22px, env(safe-area-inset-bottom));
	transform: translate(-50%, 20px);
	z-index: 60;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid var(--cs-border-strong);
	background: rgba(24, 16, 10, 0.92);
	color: var(--cs-text);
	font-size: 13px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 220ms ease, transform 220ms ease;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	max-width: calc(100vw - 32px);
	text-align: center;
}

.cs-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- Animations ---------- */

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

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

@keyframes cs-eq {
	0%, 100% { height: 22%; }
	50% { height: 100%; }
}

@keyframes cs-msg-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes cs-panel-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

.cs-songs {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--cs-border);
}

.cs-songs h3 {
	margin: 0 0 10px;
	font-size: 15px;
}

.cs-song-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px;
	margin-bottom: 12px;
}

.cs-song-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--cs-border);
	border-radius: var(--cs-radius-sm);
	background: rgba(12, 8, 5, 0.35);
	color: inherit;
	cursor: pointer;
	text-align: left;
	transition: border-color 180ms ease, background 180ms ease;
}

.cs-song-card:hover,
.cs-song-card:focus-visible {
	border-color: var(--cs-border-strong);
	background: rgba(255, 180, 87, 0.12);
}

.cs-song-card strong {
	font-size: 13px;
}

.cs-song-card small {
	color: var(--cs-muted);
	font-size: 11px;
}

.cs-song-form {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 8px;
	align-items: end;
}

.cs-song-form label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

@media (max-width: 720px) {
	.cs-topbar {
		grid-template-columns: auto 1fr auto;
		gap: 8px;
		font-size: 12px;
	}

	.cs-live {
		padding: 4px 10px;
		font-size: 11.5px;
	}

	.cs-top-actions {
		gap: 6px;
	}

	.cs-icon-btn {
		width: 34px;
		height: 34px;
	}

	.cs-brand {
		padding-top: 4px;
		max-width: 72vw;
	}

	.cs-stage {
		width: 100%;
		padding: 0 10px 12px;
	}

	.cs-overlays {
		position: fixed;
		left: 10px;
		right: 10px;
		width: auto;
		transform: none;
		bottom: calc(40px + env(safe-area-inset-bottom));
		top: auto;
		max-height: min(48vh, 480px);
		z-index: 4;
	}

	.cs-song-form {
		grid-template-columns: 1fr;
	}

	.cs-tabs {
		width: 100%;
		justify-content: flex-start;
		border-radius: 16px;
	}

	.cs-tab {
		flex: 1;
		justify-content: center;
		padding: 9px 8px;
		font-size: 12.5px;
	}

	.cs-tab svg {
		width: 16px;
		height: 16px;
	}

	.cs-panel {
		border-radius: 16px;
		padding: 14px 12px;
	}

	.cs-panel-head {
		flex-direction: column;
		gap: 8px;
	}

	.cs-msg {
		max-width: 88%;
	}

	.cs-nickrow {
		flex-wrap: wrap;
	}

	.cs-nickrow .cs-input {
		max-width: none;
		flex: 1;
		min-width: 140px;
	}

	.cs-channel-grid {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
		max-height: 34vh;
	}

	.cs-station-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		max-height: 34vh;
	}

	.cs-radio-now {
		gap: 12px;
		padding: 12px;
	}

	.cs-disc {
		width: 70px;
		height: 70px;
	}

	.cs-disc-label {
		width: 28px;
		height: 28px;
	}

	.cs-eq {
		display: none;
	}

	.cs-p2p {
		grid-template-columns: 1fr;
	}

	.cs-peer-list {
		min-height: 0;
		max-height: 150px;
	}

	.cs-peer-items {
		flex-direction: row;
		overflow-x: auto;
		max-height: none;
	}

	.cs-peer {
		flex-shrink: 0;
		flex-direction: column;
		gap: 4px;
		min-width: 78px;
		text-align: center;
	}

	.cs-peer-meta {
		align-items: center;
	}

	.cs-peer-meta strong {
		max-width: 78px;
	}

	.cs-dm-log {
		max-height: 30vh;
	}

	.cs-footer {
		font-size: 11.5px;
	}
}

@media (max-width: 420px) {
	.cs-live span:last-child {
		display: none;
	}

	.cs-send span {
		display: none;
	}

	.cs-send {
		padding: 10px 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cs-app *,
	.cs-app *::before,
	.cs-app *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.cs-disc.is-spinning {
		animation: none;
	}
}
