/* SLS Immersive Video — Nexus skin. Scoped to .sls-iv; tokens fall back to Nexus values. */
.sls-iv {
	--iv-bg: #020617;
	--iv-surface: #0f172a;
	--iv-raised: #111c33;
	--iv-line: #1e2a44;
	--iv-text: #e2e8f0;
	--iv-muted: #94a3b8;
	--iv-accent: #00f2ff;
	--iv-accent-ink: #001417;
	--iv-good: #34d399;
	--iv-bad: #fb7185;
	--iv-info: #a78bfa;
	--iv-display: "Orbitron", "Inter", system-ui, sans-serif;
	--iv-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--iv-body);
	color: var(--iv-text);
	background: var(--iv-bg);
	border: 1px solid var(--iv-line);
	border-radius: 14px;
	padding: 18px;
	margin: 1.5rem 0;
	line-height: 1.55;
}
.sls-iv *, .sls-iv *::before, .sls-iv *::after { box-sizing: border-box; }
/* The vrschool theme styles every <button> (nexus.css, button:not(.is-style-outline)).
   Neutralise the properties the player does not set itself, at higher specificity. */
.sls-iv.sls-iv button { text-transform: none; letter-spacing: normal; font-family: var(--iv-body); box-shadow: none; background-image: none; min-height: 0; width: auto; text-decoration: none; }
.sls-iv.sls-iv .sls-iv__chapter, .sls-iv.sls-iv .sls-iv__line, .sls-iv.sls-iv .sls-iv__option { width: 100%; }
.sls-iv.sls-iv .sls-iv__bigplay { width: 84px; height: 84px; padding: 0 0 0 6px; }
.sls-iv.sls-iv h3, .sls-iv.sls-iv h4 { font-style: normal; text-transform: none; letter-spacing: normal; }

.sls-iv .sls-iv__eyebrow { font: 600 0.72rem/1 var(--iv-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--iv-accent); }
.sls-iv .sls-iv__title { font-family: var(--iv-display); font-size: clamp(1.1rem, 2.4vw, 1.45rem); margin: 0.35rem 0 1rem; color: #f8fafc; text-transform: none; font-style: normal; }
.sls-iv .sls-iv__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
@media (max-width: 960px) { .sls-iv__body { grid-template-columns: minmax(0, 1fr); } }
.sls-iv .sls-iv__main { min-width: 0; }

.sls-iv .sls-iv__stage { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.sls-iv .sls-iv__video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.sls-iv .sls-iv__video::cue { font-family: var(--iv-body); font-size: 1rem; background: rgba(2, 6, 23, 0.82); color: #fff; }
.sls-iv .sls-iv__bigplay {
	position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
	border: 2px solid var(--iv-accent); background: rgba(2, 6, 23, 0.72); color: var(--iv-accent);
	font-size: 1.9rem; cursor: pointer; display: grid; place-items: center; padding-left: 6px;
}
.sls-iv .sls-iv__bigplay:hover { background: rgba(0, 242, 255, 0.14); }

.sls-iv .sls-iv__hotspots { position: absolute; inset: 0; pointer-events: none; }
.sls-iv .sls-iv__hotspot {
	position: absolute; transform: translate(-50%, 0); pointer-events: auto; display: inline-flex; align-items: center; gap: 8px;
	max-width: 46%; padding: 7px 12px 7px 7px; border-radius: 999px; border: 1px solid rgba(167, 139, 250, 0.7);
	background: rgba(2, 6, 23, 0.86); color: #f1f5f9; font: 600 0.82rem/1.25 var(--iv-body); cursor: pointer; text-align: left;
	animation: sls-iv-in 0.35s ease-out;
}
.sls-iv .sls-iv__hotspot:hover { border-color: var(--iv-info); background: rgba(30, 27, 75, 0.92); }
.sls-iv .sls-iv__hotspot-dot {
	flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
	background: var(--iv-info); color: #1e1b4b; font: 800 0.8rem/1 Georgia, serif; font-style: italic;
	animation: sls-iv-pulse 1.8s ease-out infinite;
}
@keyframes sls-iv-pulse { 0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.7); } 100% { box-shadow: 0 0 0 12px rgba(167, 139, 250, 0); } }
@keyframes sls-iv-in { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }

.sls-iv .sls-iv__overlay { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.78); display: grid; place-items: center; padding: 14px; overflow-y: auto; }
.sls-iv .sls-iv__overlay[hidden] { display: none; }
@media (max-width: 640px) {
	/* On phones the 16:9 stage is too small for a question card: open checkpoints full screen. */
	.sls-iv__overlay { position: fixed; z-index: 100000; background: rgba(2, 6, 23, 0.96); padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
	.sls-iv__card { max-height: none; }
}
.sls-iv .sls-iv__card {
	width: min(620px, 100%); max-height: 100%; overflow-y: auto; background: var(--iv-surface); border: 1px solid var(--iv-line);
	border-top: 3px solid var(--iv-accent); border-radius: 12px; padding: 18px 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.is-info .sls-iv__card { border-top-color: var(--iv-info); }
.is-advisory .sls-iv__card { border-top-color: #fbbf24; }
.sls-iv .sls-iv__card p { margin: 0 0 0.7rem; color: #cbd5e1; font-size: 0.95rem; }
.sls-iv .sls-iv__kicker { font: 700 0.7rem/1 var(--iv-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--iv-accent); margin-bottom: 0.45rem; }
.is-info .sls-iv__kicker { color: var(--iv-info); }
.is-advisory .sls-iv__kicker { color: #fbbf24; }
.sls-iv .sls-iv__card-title { font-family: var(--iv-body); font-weight: 700; font-size: 1.12rem; line-height: 1.35; margin: 0 0 0.8rem; color: #f8fafc; text-transform: none; font-style: normal; letter-spacing: 0; }
.sls-iv .sls-iv__source { font-size: 0.8rem !important; color: var(--iv-muted) !important; }
.sls-iv .sls-iv__note { font-size: 0.85rem !important; color: var(--iv-muted) !important; }

.sls-iv .sls-iv__options { display: grid; gap: 8px; margin-bottom: 0.8rem; }
.sls-iv .sls-iv__option {
	text-align: left; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--iv-line); background: var(--iv-raised);
	color: var(--iv-text); font: 500 0.93rem/1.4 var(--iv-body); cursor: pointer;
}
.sls-iv .sls-iv__option:hover:not([disabled]) { border-color: #3b4a6b; }
.sls-iv .sls-iv__option[aria-checked="true"] { border-color: var(--iv-accent); box-shadow: inset 0 0 0 1px var(--iv-accent); }
.sls-iv .sls-iv__option.is-correct { border-color: var(--iv-good); background: rgba(52, 211, 153, 0.12); }
.sls-iv .sls-iv__option.is-wrong { border-color: var(--iv-bad); background: rgba(251, 113, 133, 0.12); }
.sls-iv .sls-iv__option[disabled] { cursor: default; }
.sls-iv .sls-iv__feedback { font-size: 0.92rem; margin-bottom: 0.8rem; }
.sls-iv .sls-iv__feedback.is-correct strong { color: var(--iv-good); }
.sls-iv .sls-iv__feedback.is-wrong strong { color: var(--iv-bad); }
.sls-iv .sls-iv__textarea {
	width: 100%; border-radius: 9px; border: 1px solid var(--iv-line); background: var(--iv-bg); color: var(--iv-text);
	font: 0.95rem/1.5 var(--iv-body); padding: 10px 12px; resize: vertical; margin-bottom: 0.4rem;
}
.sls-iv .sls-iv__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.4rem; }
.sls-iv .sls-iv__primary, .sls-iv .sls-iv__ghost {
	padding: 9px 16px; border-radius: 999px; font: 700 0.88rem/1 var(--iv-body); cursor: pointer;
}
.sls-iv .sls-iv__primary { background: var(--iv-accent); color: var(--iv-accent-ink); border: 1px solid var(--iv-accent); }
.sls-iv .sls-iv__primary[disabled] { opacity: 0.45; cursor: not-allowed; }
.sls-iv .sls-iv__ghost { background: transparent; color: var(--iv-text); border: 1px solid #334155; }
.sls-iv .sls-iv__ghost:hover { border-color: var(--iv-muted); }
.sls-iv .sls-iv__bigscore { font-family: var(--iv-display); font-size: 2.4rem !important; color: var(--iv-accent) !important; margin: 0.2rem 0 0 !important; }

.sls-iv .sls-iv__controls { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sls-iv .sls-iv__btn {
	min-width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--iv-line); background: var(--iv-surface);
	color: var(--iv-text); cursor: pointer; font-size: 0.95rem; display: inline-grid; place-items: center; padding: 0 8px;
}
.sls-iv .sls-iv__btn:hover { border-color: #3b4a6b; }
.sls-iv .sls-iv__btn--text { font: 700 0.8rem/1 var(--iv-body); }
.sls-iv .sls-iv__btn[aria-pressed="false"] { color: var(--iv-muted); }
.sls-iv .sls-iv__time { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: var(--iv-muted); min-width: 86px; }
.sls-iv .sls-iv__seek { position: relative; flex: 1 1 180px; height: 10px; border-radius: 6px; background: var(--iv-line); cursor: pointer; }
.sls-iv .sls-iv__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #0891b2, var(--iv-accent)); }
.sls-iv .sls-iv__markers { position: absolute; inset: 0; pointer-events: none; }
.sls-iv .sls-iv__marker { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--iv-bg); }
.sls-iv .sls-iv__marker--mcq, .sls-iv .sls-iv__marker--reflect { background: #fbbf24; }
.sls-iv .sls-iv__marker--hotspot { background: var(--iv-info); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }

.sls-iv .sls-iv__side { min-width: 0; background: var(--iv-surface); border: 1px solid var(--iv-line); border-radius: 10px; display: flex; flex-direction: column; max-height: 520px; }
@media (max-width: 960px) { .sls-iv__side { max-height: 360px; } }
.sls-iv .sls-iv__tabs { display: flex; border-bottom: 1px solid var(--iv-line); }
.sls-iv .sls-iv__tab { flex: 1; padding: 10px 6px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--iv-muted); font: 700 0.78rem/1 var(--iv-body); letter-spacing: 0.04em; cursor: pointer; }
.sls-iv .sls-iv__tab[aria-selected="true"] { color: var(--iv-accent); border-bottom-color: var(--iv-accent); }
.sls-iv .sls-iv__panel { overflow-y: auto; padding: 8px; display: grid; gap: 4px; align-content: start; }
.sls-iv .sls-iv__panel[hidden] { display: none; }
.sls-iv .sls-iv__chapter, .sls-iv .sls-iv__line {
	display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 8px; align-items: start; width: 100%; text-align: left;
	padding: 8px; border-radius: 8px; border: 0; background: transparent; color: #cbd5e1; font: 0.86rem/1.45 var(--iv-body); cursor: pointer;
}
.sls-iv .sls-iv__chapter:hover, .sls-iv .sls-iv__line:hover { background: var(--iv-raised); }
.sls-iv .sls-iv__chapter.is-current, .sls-iv .sls-iv__line.is-current { background: rgba(0, 242, 255, 0.08); color: #f8fafc; box-shadow: inset 2px 0 0 var(--iv-accent); }
.sls-iv .sls-iv__chapter-time { font-variant-numeric: tabular-nums; color: var(--iv-accent); font-weight: 700; font-size: 0.78rem; padding-top: 1px; }
.sls-iv .sls-iv__score { margin: 4px 8px 8px; font-size: 0.85rem; color: var(--iv-muted); }
.sls-iv .sls-iv__pill { font: 700 0.68rem/1 var(--iv-body); padding: 4px 7px; border-radius: 999px; background: var(--iv-line); color: var(--iv-muted); white-space: nowrap; }
.sls-iv .sls-iv__pill--correct, .sls-iv .sls-iv__pill--written { background: rgba(52, 211, 153, 0.16); color: var(--iv-good); }
.sls-iv .sls-iv__pill--tryagain { background: rgba(251, 113, 133, 0.16); color: var(--iv-bad); }
.sls-iv .sls-iv__error { color: var(--iv-muted); }

.sls-iv button:focus-visible, .sls-iv [tabindex]:focus-visible, .sls-iv textarea:focus-visible { outline: 2px solid var(--iv-accent); outline-offset: 2px; }
.sls-iv:fullscreen { padding: 18px; overflow-y: auto; }
.sls-iv:fullscreen .sls-iv__stage { aspect-ratio: auto; height: calc(100vh - 170px); }
@media (prefers-reduced-motion: reduce) {
	.sls-iv__hotspot, .sls-iv .sls-iv__hotspot-dot { animation: none; }
}
