:root {
	color-scheme: dark;
	--bg: #0e0e10;
	--field: #19191c;
	--border: #2a2a2f;
	--text: #ececee;
	--muted: #8b8b93;
	--focus: #6b8afd;
}

* {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family:
		system-ui,
		-apple-system,
		"Segoe UI",
		Roboto,
		sans-serif;
}

main {
	min-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px;
	/* sit slightly above centre, where the eye expects a search box */
	padding-bottom: 18vh;
}

#sj-form {
	display: flex;
	width: 100%;
	max-width: 640px;
	background: var(--field);
	border: 1px solid var(--border);
	border-radius: 12px;
	transition: border-color 0.15s;
}

#sj-form:focus-within {
	border-color: var(--focus);
}

#sj-address,
#sj-transport {
	height: 52px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	/* 16px stops iOS Safari zooming the page on focus */
	font-size: 16px;
	outline: none;
}

#sj-address {
	flex: 1;
	min-width: 0;
	padding: 0 16px;
}

#sj-address::placeholder {
	color: var(--muted);
}

#sj-transport {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	padding: 0 34px 0 14px;
	border-left: 1px solid var(--border);
	border-radius: 0;
	color: var(--muted);
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b8b93' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

#sj-transport:hover,
#sj-transport:focus-visible {
	color: var(--text);
}

#sj-transport option {
	background: var(--field);
	color: var(--text);
}

#sj-error {
	width: 100%;
	max-width: 640px;
	min-height: 1.4em;
	margin: 12px 0 0;
	padding: 0 4px;
	color: #ff7b7b;
	font-size: 14px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

#sj-frame {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	width: 100dvw;
	height: 100dvh;
	border: 0;
	background: var(--bg);
}

[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
#sj-submit {
	border: 0;
	border-left: 1px solid var(--border);
	border-radius: 0 12px 12px 0;
	padding: 0 14px;
	color: var(--text);
	background: transparent;
}
#sj-status { color: var(--muted); font-size: 14px; margin: 0; }
.has-results main { justify-content: flex-start; padding-top: 32px; padding-bottom: 130px; }
#sj-results { width: 100%; max-width: 640px; margin-top: 16px; }
.result { margin-bottom: 26px; overflow-wrap: anywhere; }
.result h2 { margin: 4px 0 8px; font-size: 20px; font-weight: 500; }
.result-title { color: #a8baff; text-decoration: none; }
.result-title:hover { text-decoration: underline; }
.result-url { margin: 0; color: var(--muted); font-size: 13px; }
.result-snippet, .answer { font-size: 15px; line-height: 1.6; margin: 0; }
.answer { background: var(--field); padding: 16px; border-radius: 12px; margin-bottom: 28px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.related button, .pagination button, #sj-close { background: var(--field); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pagination span { color: var(--muted); font-size: 14px; }
#sj-close { position: fixed; top: 8px; right: 8px; z-index: 2; font-size: 12px; opacity: 0.85; }
#sj-close:hover { opacity: 1; }

:root[data-theme="light"] { color-scheme: light; --bg: #f7f7f8; --field: #fff; --border: #dedee3; --text: #202026; --muted: #666670; --focus: #4260d6; }
:root[data-theme="light"] .result-title { color: #3652b6; }
.panel-note { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.panel-note a { color: inherit; }
.card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.library-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; text-align: left; text-decoration: none; border: 1px solid var(--border); border-radius: 12px; background: var(--field); color: var(--text); overflow: hidden; }
.library-card:hover { border-color: var(--muted); }
.library-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.card-name { padding: 11px 12px; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.no-image { min-height: 100px; justify-content: center; }
.app-card { align-items: center; justify-content: center; min-height: 160px; padding: 26px 8px 16px; text-align: center; }
.app-card img { width: 44px; height: 44px; aspect-ratio: 1; object-fit: contain; }
.app-card .card-name { padding: 12px 4px; }
.library-search { width: 100%; min-width: 0; padding: 16px 18px; font: inherit; font-size: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--field); color: var(--text); }
.library-search::placeholder { color: var(--muted); }
.library-search:focus-visible, .setting-row select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#game-pages { margin-top: 20px; }
#game-pages button, .subtle-button { padding: 9px 12px; color: var(--text); border: 1px solid var(--border); border-radius: 8px; background: var(--field); }
.source-note { margin: 22px 0 0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.setting-row select, .setting-row #sj-transport { height: 38px; max-width: 50%; padding: 6px 12px; background: var(--field); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font: inherit; appearance: auto; cursor: pointer; }
.save-setting { margin-top: 24px; }
.save-setting h2 { font-size: 15px; font-weight: 500; margin: 0 0 10px; }
#save-status { margin: 12px 0 0; }

@media (prefers-reduced-motion: reduce) { #sj-form { transition: none; } }

.library-page { max-width: 1440px; margin: 0 auto; padding: 38px 28px 130px; }
.page-header { margin-bottom: 32px; }
.wordmark { display: inline-block; margin-bottom: 36px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.wordmark span { color: var(--muted); font-weight: 400; }
.page-header h1 { margin: 0; font-size: clamp(30px, 4vw, 42px); font-weight: 600; letter-spacing: -1.3px; outline: none; }
.page-description { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.library-toolbar { display: flex; align-items: stretch; gap: 12px; margin-bottom: 16px; }
.source-chip { display: inline-flex; align-items: center; padding: 0 22px; border: 1px solid var(--border); border-radius: 12px; background: var(--field); font-size: 14px; white-space: nowrap; }
#app-search { max-width: 580px; margin-bottom: 24px; }
#app-empty { margin-top: 20px; }
#panel-settings { max-width: 620px; }
.page-dock { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; padding: 7px; background: var(--field); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 8px 30px rgb(0 0 0 / 16%); }
.page-dock a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 64px; height: 58px; padding: 8px 10px; border-radius: 13px; text-decoration: none; color: var(--muted); font-size: 11px; }
.page-dock a:hover { color: var(--text); }
.page-dock a[aria-current="page"] { background: var(--bg); color: var(--text); }
.page-dock a[aria-current="page"]::after { content: ""; position: absolute; bottom: 4px; width: 14px; height: 2px; background: var(--focus); border-radius: 2px; }
.page-dock svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .library-page { padding: 24px 18px 120px; } .wordmark { margin-bottom: 28px; } }
@media (max-width: 440px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .library-toolbar { gap: 8px; } .source-chip { padding: 0 14px; } .page-dock a { min-width: 58px; } .app-card { min-height: 138px; } }

.game-sources { display: flex; gap: 8px; }
.source-chip[aria-pressed="true"] { color: var(--text); border-color: var(--focus); background: var(--bg); }
.source-chip { color: var(--muted); min-height: 52px; }
#dock-close { position: absolute; top: -10px; right: -10px; width: 25px; height: 25px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--field); color: var(--muted); font-size: 19px; }
#dock-open { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 9px 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--field); color: var(--text); }
#sj-close { z-index: 4; width: 34px; height: 34px; padding: 0; font-size: 23px; }
.playing { overflow: hidden; }
.playing #page-dock, .playing #dock-open { display: none !important; }
.auth-window { position: fixed; inset: 0; z-index: 10; background: #111; }
.auth-window iframe { width: 100%; height: 100%; border: 0; }
.auth-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid #333; border-radius: 12px; background: #19191c; color: #ddd; font: 24px/1 sans-serif; cursor: pointer; }
#dock-close, #sj-close { display: grid; place-items: center; line-height: 1; }
#dock-close svg, #sj-close svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
#sj-close svg { width: 18px; height: 18px; }
#sj-frame { z-index: 2; }
@media (max-width: 700px) { .library-toolbar { flex-wrap: wrap; } .game-sources { width: 100%; } .source-chip { flex: 1; justify-content: center; padding: 0 12px; } }

.collection-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 18px; }
.collection-bar > div { display: flex; gap: 8px; flex-wrap: wrap; }
.collection-bar button, .collection-bar select { color: var(--muted); background: var(--field); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 13px; }
.collection-bar button[aria-pressed="true"] { color: var(--text); border-color: var(--focus); }
.collection-bar label { font-size: 13px; color: var(--muted); }
#add-app { margin-left: auto; color: var(--text); }
.card-shell { position: relative; min-width: 0; }
.card-shell .library-card { height: 100%; }
.card-shell .app-card { padding-top: 36px; }
.favorite-toggle, .custom-app-remove { position: absolute; top: 7px; right: 7px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--field); color: var(--muted); font: 19px/1 sans-serif; }
.favorite-toggle[aria-pressed="true"] { color: #f3c66e; }
.custom-app-remove { right: auto; left: 7px; font-size: 18px; }
.app-initial { font-size: 32px; line-height: 48px; color: var(--muted); }
.custom-app-form { padding: 20px; margin-bottom: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--field); max-width: 580px; }
.custom-app-form label { display: block; font-size: 13px; margin-bottom: 14px; }
.custom-app-form input { display: block; width: 100%; margin-top: 7px; padding: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font: inherit; }
#custom-app-error { color: #ff7b7b; font-size: 13px; }
.setting-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
#quick-lock-key { width: 64px; text-align: center; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--field); color: var(--text); font: inherit; }
#player-menu-toggle { position: fixed; top: 8px; left: 8px; z-index: 4; width: 34px; height: 34px; padding: 0; opacity: .8; }
.player-menu { position: fixed; top: 50px; left: 8px; z-index: 5; display: grid; gap: 4px; padding: 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--field); box-shadow: 0 8px 24px #0003; }
.player-menu button { text-align: left; border: 0; border-radius: 6px; padding: 10px 14px; background: transparent; color: var(--text); font-size: 13px; }
.player-menu button:hover { background: var(--bg); }
.player-feedback { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); z-index: 6; padding: 16px; background: var(--field); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px #0003; }
.player-feedback p { font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.player-feedback button { border: 1px solid var(--border); border-radius: 7px; padding: 7px 12px; color: var(--text); background: var(--bg); }
#player-fullscreen { position: fixed; top: max(8px, env(safe-area-inset-top)); right: calc(max(8px, env(safe-area-inset-right)) + 52px); z-index: 4; width: 44px; height: 44px; padding: 11px; display: grid; place-items: center; opacity: .85; touch-action: manipulation; }
#player-fullscreen svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#player-fullscreen[aria-pressed="true"] { border-color: var(--focus); }
#sj-close { top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right)); width: 44px; height: 44px; touch-action: manipulation; }
#player-menu-toggle { top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); width: 44px; height: 44px; touch-action: manipulation; }
.player-menu { top: calc(max(8px, env(safe-area-inset-top)) + 52px); left: max(8px, env(safe-area-inset-left)); }

#player-mute { position: fixed; top: max(8px, env(safe-area-inset-top)); right: calc(max(8px, env(safe-area-inset-right)) + 104px); z-index: 4; width: 44px; height: 44px; padding: 11px; display: grid; place-items: center; opacity: .85; touch-action: manipulation; }
#player-mute svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#player-mute[aria-pressed="true"] { border-color: var(--focus); color: var(--focus); }

/* Inactivity Auto-Dimming (90% transparent = 0.1 opacity) */
.auto-dim { transition: opacity 0.4s ease; }
.is-dimmed { opacity: 0.1 !important; }
.is-dimmed:hover, .is-dimmed:focus-visible, .is-dimmed:has(:focus-visible) { opacity: 1 !important; }

/* Dock Recent Item */
.dock-recent-wrap { display: flex; align-items: center; gap: 6px; }
.dock-recent-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 64px; max-width: 84px; height: 58px; padding: 8px 6px; border-radius: 13px; border: 0; background: transparent; color: var(--muted); cursor: pointer; text-decoration: none; font-size: 11px; font-family: inherit; transition: color 0.15s, background 0.15s; }
.dock-recent-btn:hover { color: var(--text); background: var(--bg); }
.dock-recent-img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.dock-recent-title { max-width: 74px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.dock-divider { width: 1px; height: 28px; background: var(--border); margin: 0 4px; align-self: center; }

/* Dock Music Speaker Indicator & Volume Slider */
.music-dock-label { display: inline-flex; align-items: center; gap: 4px; }
.music-sound-container { position: relative; display: inline-flex; align-items: center; }
.music-playing-speaker { width: 13px; height: 13px; fill: currentColor; stroke: none; display: none; color: var(--focus, #60a5fa); flex-shrink: 0; cursor: pointer; }
.is-playing .music-playing-speaker { display: inline-block; animation: pulse-speaker 1.5s infinite ease-in-out; }
@keyframes pulse-speaker { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.music-volume-flyout { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(4px); z-index: 1000; background: rgba(18, 18, 22, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 7px 11px; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; white-space: nowrap; }
.music-volume-flyout::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 16px; }
.music-sound-container:hover .music-volume-flyout, .music-volume-flyout:hover, .music-volume-flyout.is-active { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.music-volume-track-wrap { display: flex; align-items: center; }
#music-volume-slider { -webkit-appearance: none; appearance: none; width: 84px; height: 4px; border-radius: 9999px; background: rgba(255, 255, 255, 0.2); outline: none; cursor: pointer; margin: 0; padding: 0; border: 0; }
#music-volume-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); border: 0; cursor: pointer; transition: transform 0.1s ease; }
#music-volume-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
#music-volume-slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); border: 0; cursor: pointer; }
.music-volume-val { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.85); min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }

/* Up Next Toast */
.next-track-toast { position: fixed; bottom: 24px; left: 24px; z-index: 9999; width: 320px; background: rgba(18, 18, 22, 0.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); overflow: hidden; font-family: inherit; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease; animation: toast-slide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes toast-slide-in { from { opacity: 0; transform: translateY(24px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.next-track-toast.toast-out { opacity: 0; transform: translateY(16px) scale(0.95); pointer-events: none; }
.next-track-body { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.next-track-cover { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #2a2a30; flex-shrink: 0; }
.next-track-info { flex: 1; min-width: 0; }
.next-track-label { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 2px; }
.next-track-title { font-size: 13.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.next-track-meta { font-size: 12px; color: rgba(255, 255, 255, 0.6); display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.next-track-meta #next-track-artist { overflow: hidden; text-overflow: ellipsis; }
.meta-dot { opacity: 0.5; }
.next-track-close { background: transparent; border: 0; color: rgba(255, 255, 255, 0.4); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; border-radius: 6px; transition: color 0.15s, background 0.15s; align-self: flex-start; }
.next-track-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.next-track-progress-track { width: 100%; height: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.next-track-progress-bar { width: 0%; height: 100%; background: var(--focus, #60a5fa); }

/* Music tab: the Liner app in a persistent same-origin frame, kept above the
   dock so the dock never covers its playback controls. */
#music-view { position: fixed; inset: 0; z-index: 1; background: #0a0a0a; }
#music-view[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
#music-frame { display: block; width: 100%; height: 100%; border: 0; background: #0a0a0a; }
#watch-view { position: fixed; inset: 0; z-index: 1; background: #090909; }
#watch-view[hidden] { display: none; }
#shows-frame { display: block; width: 100%; height: 100%; border: 0; background: #090909; }
body[data-page="watch"].shows-fullscreen #page-dock, body[data-page="watch"].shows-fullscreen #dock-open { display: none !important; }
.playing #watch-view { visibility: hidden; pointer-events: none; }
@media (max-width: 620px) {
  .page-dock { width: calc(100% - 24px); gap: 2px; padding: 5px; }
  .page-dock a { flex: 1; min-width: 0; padding: 8px 3px; font-size: 10px; }
  .dock-recent-wrap { flex-shrink: 0; gap: 2px; }
  .dock-recent-btn { min-width: 36px; max-width: 44px; padding: 8px 3px; }
  .dock-recent-title { max-width: 40px; }
  .dock-divider { margin: 0 2px; }
}
body[data-page="music"] #page-dock, body[data-page="music"] #dock-open { bottom: calc(82px + env(safe-area-inset-bottom)); }
#dock-open { left: 50%; transform: translateX(-50%); width: 48px; height: 48px; padding: 13px; display: grid; place-items: center; }
#dock-open svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.playing #music-view { visibility: hidden; pointer-events: none; }

/* Shows shares Music's Inter type, red accent, quiet panels and shelves.
   Static paint only: no backdrop filters, moving glow or animated previews. */
@font-face { font-family: Shows Inter; src: url('/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
.watch-page { --focus: #ff3b3b; --field: #171717; --border: #252525; --bg: #0a0a0a; max-width: 1344px; min-height: calc(100dvh - 24px); margin: 12px auto; padding: 0 0 110px; background: var(--bg); border: 1px solid #ffffff08; border-radius: 18px; font-family: Shows Inter, system-ui, sans-serif; }
.watch-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 32px; border-bottom: 1px solid var(--border); }
.watch-wordmark { font-size: 17px; letter-spacing: -.04em; font-weight: 750; white-space: nowrap; }
.watch-wordmark span { color: var(--muted); font-weight: 450; }
.watch-content { padding: 28px 32px 0; }
.watch-header h1 { font-size: 32px; line-height: 1.15; font-weight: 650; letter-spacing: -.045em; margin: 5px 0 8px; }
.watch-eyebrow { color: var(--muted); font-size: 13px; font-weight: 500; margin: 0; }
.watch-intro { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 22px; }
.watch-search { display: flex; width: min(100%, 440px); gap: 6px; }
.watch-search input { flex: 1; min-width: 0; }
.watch-page input, .watch-page select, .watch-page button:not(.watch-card) { font: inherit; font-size: 13px; color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 9px; padding: 10px 13px; }
.watch-page input:focus-visible, .watch-page select:focus-visible, .watch-page button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.watch-page button { cursor: pointer; }
.watch-page button:disabled { opacity: .45; cursor: default; }
.watch-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 28px; }
.watch-page .watch-filters button { border: 0; padding: 9px 15px; font-size: 12px; color: var(--muted); }
.watch-page .watch-filters button[aria-pressed="true"] { color: var(--text); background: #ffffff17; }
.watch-status { color: var(--muted); font-size: 14px; }
.watch-status:empty { display: none; }
.watch-shelf-heading, .watch-row-heading { font-size: 21px; font-weight: 620; letter-spacing: -.035em; margin: 26px 0 16px; }
.watch-shelf-heading::before, .watch-row-heading::before { content: ''; display: inline-block; width: 7px; height: 19px; background: var(--focus); border-radius: 3px; margin-right: 10px; vertical-align: -2px; }
.watch-row-heading { grid-column: 1/-1; margin: 8px 0 -4px; }
.watch-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 22px 16px; }
.watch-card { display: flex; flex-direction: column; min-width: 0; padding: 0; background: none; border: 0; color: var(--text); text-align: left; font: inherit; content-visibility: auto; contain-intrinsic-size: auto 300px; }
.watch-poster { position: relative; width: 100%; aspect-ratio: 2/3; border-radius: 10px; overflow: hidden; background: var(--field); }
.watch-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.watch-card:hover .watch-poster { outline: 2px solid #ffffff38; outline-offset: -2px; }
.watch-art-fallback { height: 100%; display: grid; place-items: center; padding: 16px; color: var(--muted); font-weight: 600; text-align: center; }
.watch-card strong { margin-top: 10px; line-height: 1.4; font-size: 13px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.watch-card-meta { font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.watch-badge { position: absolute; left: 8px; bottom: 8px; padding: 4px 7px; background: #080808df; color: #eee; border: 1px solid #ffffff14; border-radius: 5px; font-size: 10px; font-weight: 550; }
.watch-details { margin: 24px 0; padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--field); }
.watch-title-info h2 { margin: 6px 0; font-size: 26px; font-weight: 600; letter-spacing: -.035em; }
.watch-actions, .watch-episode-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.watch-page .watch-primary { background: var(--focus); border-color: var(--focus); color: #fff; font-weight: 600; }
.watch-episode-controls label { font-size: 13px; color: var(--muted); }
.watch-episode-controls input { width: 80px; margin-left: 8px; }
.watch-episode-controls select { max-width: 100%; }
.watch-video { scroll-margin-top: 12px; margin: 24px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.watch-player-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; color: #eee; background: #171717; }
.watch-player-bar strong { font-size: 13px; font-weight: 550; }
.watch-playback-controls { display: flex; gap: 6px; flex-wrap: wrap; }
.watch-page .watch-playback-controls button { padding: 8px 10px; font-size: 12px; }
.watch-video iframe { display: block; width: 100%; aspect-ratio: 16/9; max-height: max(240px,calc(100dvh - 210px)); border: 0; }
.watch-footer { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 38px; }
.watch-footer a { color: inherit; text-underline-offset: 3px; }
.watch-empty { grid-column: 1/-1; color: var(--muted); padding: 30px 0; }
:root[data-theme="light"] .watch-page { --bg: #f5f5f7; --field: #e6e6eb; --border: #dedee3; }
:root[data-theme="light"] .watch-page .watch-filters button[aria-pressed="true"] { background: #00000012; }
@media (max-width: 1000px) { .watch-page { margin: 0; border: 0; border-radius: 0; }.watch-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 600px) { .watch-topbar { padding: 16px 18px; flex-wrap: wrap; gap: 14px; }.watch-search { width: 100%; }.watch-content { padding: 22px 18px 0; }.watch-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 12px; }.watch-card strong { font-size: 12px; }.watch-shelf-heading,.watch-row-heading { font-size: 19px; }.watch-details { padding: 16px; } }
