/* Interior surfaces share the landing page's indigo identity. */
:root {
	color: #292a38;
	background: #eeece7;
	--muted: #61616c;
	--line: #ccc9c4;
	--accent: #494184;
}
body { background: radial-gradient(ellipse at 50% 0, #faf8f3, transparent 70%); }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.045em; }
h2 { letter-spacing: -.025em; }
div[content] { width: min(100% - 48px, 860px); margin-block: 44px 56px; }
[eyebrow] { margin-bottom: 10px; font-size: .7rem; letter-spacing: .17em; }
p[intro] { margin-top: 12px; line-height: 1.65; }
button, a[action] {
	min-height: 48px;
	border: 1px solid #393267;
	border-radius: 8px;
	background: linear-gradient(#60569d, #494184);
	box-shadow: inset 0 1px #ffffff40, 0 2px 2px #26213e25;
	font-weight: 600;
	line-height: 1.35;
}
button:hover:not(:disabled), a[action]:hover { background: linear-gradient(#6b60aa, #51478d); }
button:active:not(:disabled), a[action]:active { box-shadow: inset 0 2px 4px #17132955; }
button[plain], #previous, #refresh {
	color: #363440;
	border-color: #bcb8b2;
	background: linear-gradient(#fffefa, #e6e2dc);
	box-shadow: inset 0 1px #fff, 0 2px 2px #24202c12;
}
button[plain]:hover:not(:disabled), #previous:hover:not(:disabled), #refresh:hover:not(:disabled) { background: linear-gradient(#fff, #efebe5); }
button:disabled, #previous:disabled, #refresh:disabled {
	color: #77747b;
	background: #e4e1dc;
	border-color: #d0ccc6;
	box-shadow: none;
}
form[feed-settings] {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding: 20px;
	margin-top: 28px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: linear-gradient(#f8f6f1, #eeebe5);
	box-shadow: inset 0 1px #fff, 0 3px 8px #302c3510;
}
div[setting] { min-width: 0; display: grid; gap: 7px; }
div[setting] label { font-size: .75rem; font-weight: 700; color: #55515d; }
form[feed-settings] select {
	width: 100%;
	min-height: 48px;
	padding: 10px;
	border-color: #bcb8b2;
	border-radius: 6px;
	background: #fffefa;
	box-shadow: inset 0 2px 3px #2923340b;
}
#save-settings { grid-column: 1 / -1; justify-self: start; }
#settings-status { font-size: .8rem; line-height: 1.6; margin: 12px 2px 24px; max-width: 44rem; }
div[video-card] { padding: 0 0 20px; gap: 10px; }
div[video-card] h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.4; }
div[video-card] p { font-size: .875rem; }
div[player-frame] {
	margin-block: 10px 2px;
	padding: 6px;
	border: 1px solid #161620;
	border-radius: 12px;
	background: linear-gradient(#3b3947, #23222c);
	box-shadow: inset 0 1px #ffffff35, 0 8px 20px #29233422;
}
div[player-frame] iframe, div[player-slot] { min-height: 200px; border-radius: 6px; background: #15151b; }
div[video-card] > a { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 600; }
#position { font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
#status, #category-status { font-size: .875rem; }
#category-status:empty, #source-status:empty { display: none; }
#source-status { margin-block: 0 24px; padding: 14px 16px; border-left: 3px solid var(--accent); background: #e8e3f1; font-size: .875rem; line-height: 1.6; }
div[feed-controls] { gap: 10px; }
nav[player-info] { flex-wrap: wrap; gap: 8px 24px; }
nav[player-info] a { display: inline-flex; align-items: center; min-height: 44px; }
div[content] div[auth-card] {
	max-width: 30rem;
	padding: clamp(24px, 5vw, 40px);
	border: 1px solid var(--line);
	border-radius: 16px;
	background: linear-gradient(145deg, #fffdf8, #f1eee8);
	box-shadow: inset 0 1px #fff, 0 12px 32px #302c3510;
}
div[auth-card] p { margin-top: 18px; line-height: 1.65; overflow-wrap: anywhere; }
div[auth-card] h2 { margin-top: 30px; font-size: 1.15rem; }
div[auth-card] [role="alert"] { border-left: 3px solid var(--accent); padding: 12px 16px; background: #e8e3f1; }
div[download-card] { background: linear-gradient(145deg, #fffdf8, #eeebe5); box-shadow: inset 0 1px #fff, 0 4px 12px #302c350c; }
p[notice] { background: #e8e3f1; }
div[footer] { background: #e4e1dc; border-top-color: #ccc9c4; box-shadow: inset 0 1px #ffffff80; }
@media (max-width: 580px) {
	div[content] { width: calc(100% - 32px); margin-block: 28px 40px; }
	form[feed-settings] { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
	div[setting] { grid-template-columns: 5rem minmax(0, 1fr); align-items: center; gap: 12px; }
	#save-settings { justify-self: stretch; }
	div[feed-controls] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	div[feed-controls] button { padding-inline: 12px; }
	div[player-frame] { padding: 3px; border-radius: 8px; }
	div[content] div[auth-card] { padding: 24px; }
}
@media (max-width: 360px) {
	div[setting] { grid-template-columns: 1fr; gap: 6px; }
}
