/* BazaarBull Course – all rules scoped to #bbc-root so the theme can't break them */
.bbc-root {
	--bbc-bg: #ffffff;
	--bbc-soft: #f6f6fb;
	--bbc-line: #e4e4ef;
	--bbc-ink: #16162b;
	--bbc-muted: #62627a;
	--bbc-navy: #1a1a2e;
	--bbc-orange: #ff6b35;
	--bbc-orange-d: #e5531f;
	--bbc-green: #15955f;
	--bbc-green-soft: #e3f6ec;
	--bbc-red: #c62828;
	--bbc-radius: 14px;
	container-type: inline-size;
	font-family: "Mukta", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.55;
	color: var(--bbc-ink);
	margin: 0 auto;
	max-width: 1180px;
	-webkit-user-select: none;
	user-select: none;
}
@media (prefers-color-scheme: dark) {
	.bbc-root {
		--bbc-bg: #141426;
		--bbc-soft: #1c1c33;
		--bbc-line: #2c2c48;
		--bbc-ink: #f1f1f8;
		--bbc-muted: #a4a4bc;
		--bbc-green-soft: #12342a;
	}
}
#bbc-root *, #bbc-root *::before, #bbc-root *::after { box-sizing: border-box; }

/* neutralise theme styling on form controls, then style our own */
#bbc-root button, #bbc-root input, #bbc-root select { all: revert; font: inherit; box-sizing: border-box; }
#bbc-root h2, #bbc-root h3, #bbc-root p { margin: 0; padding: 0; border: 0; letter-spacing: normal; text-transform: none; }
#bbc-root a { color: var(--bbc-orange-d); text-decoration: underline; text-underline-offset: 2px; }
#bbc-root svg { display: block; width: 22px; height: 22px; fill: currentColor; }

#bbc-root .bbc-h { font-family: inherit; font-size: 1.35rem; font-weight: 800; line-height: 1.25; color: var(--bbc-ink); }
#bbc-root .bbc-eyebrow { font-size: .85rem; font-weight: 600; color: var(--bbc-muted); }
#bbc-root .bbc-mark {
	flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
	display: grid; place-items: center;
	background: var(--bbc-navy); color: var(--bbc-orange);
	font-weight: 800; font-size: 1.1rem; letter-spacing: .5px;
}

/* ---------- buttons ---------- */
#bbc-root .bbc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 8px 16px; margin: 0;
	border: 1px solid var(--bbc-line); border-radius: 10px;
	background: var(--bbc-bg); color: var(--bbc-ink);
	font-size: .98rem; font-weight: 600; line-height: 1.2; text-decoration: none;
	cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
	-webkit-tap-highlight-color: transparent;
}
#bbc-root .bbc-btn:hover { border-color: var(--bbc-orange); }
#bbc-root .bbc-btn:active { transform: scale(.98); }
#bbc-root .bbc-btn:disabled { opacity: .4; cursor: default; transform: none; }
#bbc-root .bbc-btn-primary { background: var(--bbc-orange); border-color: var(--bbc-orange); color: #fff; }
#bbc-root .bbc-btn-primary:hover { background: var(--bbc-orange-d); border-color: var(--bbc-orange-d); }
#bbc-root .bbc-btn-block { display: flex; width: 100%; min-height: 50px; font-size: 1.05rem; }
#bbc-root .bbc-btn-done.is-on { background: var(--bbc-green-soft); border-color: var(--bbc-green); color: var(--bbc-green); }
#bbc-root .bbc-btn:focus-visible, #bbc-root .bbc-item:focus-visible, #bbc-root .bbc-cb:focus-visible { outline: 3px solid var(--bbc-orange); outline-offset: 2px; }

/* ---------- login ---------- */
#bbc-root .bbc-login {
	max-width: 440px; margin: 24px auto; padding: 28px 24px;
	background: var(--bbc-bg); border: 1px solid var(--bbc-line); border-radius: 18px;
	box-shadow: 0 10px 40px rgba(26, 26, 46, .10);
	-webkit-user-select: text; user-select: text;
}
#bbc-root .bbc-login-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
#bbc-root .bbc-sub { color: var(--bbc-muted); margin-bottom: 18px; }
#bbc-root .bbc-alert { background: #fdecec; color: var(--bbc-red); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
#bbc-root .bbc-form { display: flex; flex-direction: column; }
#bbc-root .bbc-label { font-weight: 600; font-size: .92rem; margin: 10px 0 6px; color: var(--bbc-ink); }
#bbc-root .bbc-input {
	display: block; width: 100%; min-height: 48px; padding: 10px 14px; margin: 0;
	border: 1.5px solid var(--bbc-line); border-radius: 10px;
	background: var(--bbc-soft); color: var(--bbc-ink); font-size: 1rem;
}
#bbc-root .bbc-input:focus { outline: none; border-color: var(--bbc-orange); background: var(--bbc-bg); }
#bbc-root .bbc-passwrap { position: relative; }
#bbc-root .bbc-passwrap .bbc-input { padding-right: 76px; }
#bbc-root .bbc-eye {
	position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
	background: transparent; border: 0; padding: 6px 10px; margin: 0;
	color: var(--bbc-orange-d); font-weight: 600; font-size: .9rem; cursor: pointer;
}
#bbc-root .bbc-check { display: flex; align-items: center; gap: 8px; margin: 14px 0 18px; font-size: .95rem; color: var(--bbc-muted); }
#bbc-root .bbc-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--bbc-orange); }
#bbc-root .bbc-login-foot { margin-top: 18px; font-size: .9rem; color: var(--bbc-muted); display: grid; gap: 6px; text-align: center; }
#bbc-root .bbc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- course shell ---------- */
#bbc-root .bbc-course {
	background: var(--bbc-bg); border: 1px solid var(--bbc-line); border-radius: 18px;
	padding: 20px; margin: 16px 0;
}
#bbc-root .bbc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#bbc-root .bbc-top-l { display: flex; gap: 12px; align-items: center; min-width: 0; }
#bbc-root .bbc-logout { font-size: .9rem; font-weight: 600; color: var(--bbc-muted); white-space: nowrap; }
#bbc-root .bbc-progress { margin: 18px 0 6px; }
#bbc-root .bbc-progress-txt { font-size: .9rem; font-weight: 600; color: var(--bbc-muted); margin-bottom: 6px; }
#bbc-root .bbc-bar { height: 8px; border-radius: 99px; background: var(--bbc-soft); overflow: hidden; }
#bbc-root .bbc-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--bbc-orange), #ffa24c); border-radius: 99px; transition: width .4s; }
#bbc-root .bbc-intro { color: var(--bbc-muted); margin: 12px 0 0; }
#bbc-root .bbc-empty { margin: 24px 0; padding: 28px; text-align: center; background: var(--bbc-soft); border-radius: var(--bbc-radius); color: var(--bbc-muted); }

#bbc-root .bbc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 18px; }
@container (min-width: 860px) {
	#bbc-root .bbc-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
	#bbc-root .bbc-list { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
}

/* ---------- player ---------- */
#bbc-root .bbc-player {
	position: relative; background: #000; border-radius: var(--bbc-radius); overflow: hidden;
	display: flex; flex-direction: column; outline: none;
}
#bbc-root .bbc-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
#bbc-root .bbc-frame, #bbc-root .bbc-frame iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; max-width: none; }

/* shields hide YouTube's title / share / "Watch on YouTube" before playback starts */
#bbc-root .bbc-shield {
	position: absolute; left: 0; right: 0; z-index: 3; display: flex; align-items: center;
	padding: 0 16px; color: #fff; font-weight: 600; font-size: .95rem; pointer-events: auto;
}
#bbc-root .bbc-shield-top { top: 0; height: 22%; background: linear-gradient(#000 0 62%, rgba(0,0,0,0)); align-items: flex-start; padding-top: 12px; }
#bbc-root .bbc-shield-bottom { bottom: 0; height: 22%; background: linear-gradient(rgba(0,0,0,0), #000 40%); align-items: flex-end; padding-bottom: 12px; justify-content: center; font-size: .85rem; color: #d7d7e4; }
#bbc-root .bbc-shield span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bbc-root .bbc-player:not(.is-pre) .bbc-shield-bottom span { visibility: hidden; }

/* cover blocks every click on YouTube once the video has started */
#bbc-root .bbc-cover { position: absolute; inset: 0; z-index: 4; display: none; place-items: center; cursor: pointer; background: transparent; transition: background .2s; }
#bbc-root .bbc-player:not(.is-pre) .bbc-cover { display: grid; }
#bbc-root .bbc-player.is-paused .bbc-cover { background: rgba(10, 10, 20, .72); }
#bbc-root .bbc-player.is-loading .bbc-cover { background: #000; }
#bbc-root .bbc-bigplay {
	display: none; width: 76px; height: 76px; border-radius: 50%; background: var(--bbc-orange);
	box-shadow: 0 6px 24px rgba(255, 107, 53, .45); position: relative;
}
#bbc-root .bbc-bigplay::after { content: ""; position: absolute; left: 30px; top: 22px; border-left: 24px solid #fff; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
#bbc-root .bbc-player.is-paused .bbc-bigplay { display: block; }
#bbc-root .bbc-spin { display: none; width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.2); border-top-color: var(--bbc-orange); animation: bbc-spin .8s linear infinite; }
#bbc-root .bbc-player.is-loading .bbc-spin { display: block; }
@keyframes bbc-spin { to { transform: rotate(360deg); } }

#bbc-root .bbc-endcard {
	position: absolute; inset: 0; z-index: 6; display: none; flex-direction: column; gap: 16px;
	align-items: center; justify-content: center; text-align: center; padding: 16px;
	background: radial-gradient(circle at 50% 40%, #2a2a4a, #0d0d1a);
}
#bbc-root .bbc-player.is-ended .bbc-endcard { display: flex; }
#bbc-root .bbc-end-t { color: #fff; font-size: 1.3rem; font-weight: 800; }
#bbc-root .bbc-end-a { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#bbc-root .bbc-endcard .bbc-btn:not(.bbc-btn-primary) { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }

#bbc-root .bbc-wm {
	position: absolute; z-index: 5; top: 12%; left: 8%; pointer-events: none;
	color: rgba(255, 255, 255, .38); font-size: clamp(11px, 2.2cqi, 15px); font-weight: 600;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .55); white-space: nowrap;
	transition: top 1.2s ease, left 1.2s ease;
}

/* controls bar (below the video, so it never covers the picture) */
#bbc-root .bbc-controls {
	display: flex; align-items: center; gap: 4px; padding: 6px 8px;
	background: var(--bbc-navy); color: #fff;
}
#bbc-root .bbc-cb {
	display: inline-grid; place-items: center; flex: 0 0 auto;
	min-width: 40px; height: 40px; padding: 0 6px; margin: 0;
	background: transparent; border: 0; border-radius: 8px; color: #fff; cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
#bbc-root .bbc-cb:hover { background: rgba(255, 255, 255, .1); }
#bbc-root .bbc-cb-txt { font-size: .85rem; font-weight: 700; }
#bbc-root .bbc-cb .i-pause, #bbc-root .bbc-cb .i-muted { display: none; }
#bbc-root .bbc-player.is-playing .bbc-cb .i-play { display: none; }
#bbc-root .bbc-player.is-playing .bbc-cb .i-pause { display: block; }
#bbc-root .bbc-player.is-muted .bbc-cb .i-vol { display: none; }
#bbc-root .bbc-player.is-muted .bbc-cb .i-muted { display: block; }
#bbc-root .bbc-seek { flex: 1 1 auto; min-width: 60px; margin: 0 6px; accent-color: var(--bbc-orange); height: 24px; cursor: pointer; }
#bbc-root .bbc-time { font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: #d7d7e4; }
#bbc-root .bbc-speed {
	margin: 0 2px; padding: 4px 6px; height: 32px; border-radius: 8px; cursor: pointer;
	background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); font-size: .85rem;
}
#bbc-root .bbc-speed option { color: #000; }
@container (max-width: 520px) {
	#bbc-root .bbc-controls { flex-wrap: wrap; row-gap: 0; padding-top: 2px; }
	#bbc-root .bbc-seek { order: -1; flex: 1 1 100%; margin: 4px 4px 2px; }
	#bbc-root .bbc-time { display: none; }
	#bbc-root .bbc-speed { margin-left: auto; width: auto; padding: 2px 4px; }
	#bbc-root .bbc-cb { min-width: 38px; }
	#bbc-root .bbc-course { padding: 14px; }
	#bbc-root .bbc-h { font-size: 1.15rem; }
}

/* real fullscreen + fallback for iPhone */
#bbc-root .bbc-player:fullscreen { border-radius: 0; width: 100%; height: 100%; }
#bbc-root .bbc-player:-webkit-full-screen { border-radius: 0; width: 100%; height: 100%; }
#bbc-root .bbc-player:fullscreen .bbc-stage { aspect-ratio: auto; flex: 1 1 auto; }
#bbc-root .bbc-player:-webkit-full-screen .bbc-stage { aspect-ratio: auto; flex: 1 1 auto; }
#bbc-root .bbc-player.is-fakefs { position: fixed; inset: 0; z-index: 2147483000; border-radius: 0; }
#bbc-root .bbc-player.is-fakefs .bbc-stage { aspect-ratio: auto; flex: 1 1 auto; }
html.bbc-noscroll, html.bbc-noscroll body { overflow: hidden !important; }

/* ---------- now playing ---------- */
#bbc-root .bbc-now { padding: 16px 2px 0; }
#bbc-root .bbc-now-n { font-size: .85rem; font-weight: 700; color: var(--bbc-orange-d); }
#bbc-root .bbc-now-t { font-family: inherit; font-size: 1.25rem; font-weight: 800; line-height: 1.3; margin: 2px 0 6px; color: var(--bbc-ink); }
#bbc-root .bbc-now-note { color: var(--bbc-muted); margin-bottom: 12px; -webkit-user-select: text; user-select: text; }
#bbc-root .bbc-now-note:empty { display: none; }
#bbc-root .bbc-now-a { display: flex; gap: 8px; flex-wrap: wrap; }
#bbc-root .bbc-now-a .bbc-btn { flex: 1 1 auto; }

/* ---------- lesson list ---------- */
#bbc-root .bbc-list { background: var(--bbc-soft); border-radius: var(--bbc-radius); padding: 8px; }
#bbc-root .bbc-sec + .bbc-sec { margin-top: 6px; }
#bbc-root .bbc-sec-t { font-size: .8rem; font-weight: 800; letter-spacing: .3px; color: var(--bbc-muted); padding: 10px 10px 6px; }
#bbc-root .bbc-item {
	display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
	padding: 10px; margin: 0; border: 0; border-radius: 10px; background: transparent;
	color: var(--bbc-ink); font-size: .96rem; line-height: 1.35; cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
#bbc-root .bbc-item:hover { background: var(--bbc-bg); }
#bbc-root .bbc-item.is-active { background: var(--bbc-bg); box-shadow: inset 3px 0 0 var(--bbc-orange); font-weight: 700; }
#bbc-root .bbc-item-n {
	flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: var(--bbc-bg); border: 1.5px solid var(--bbc-line); font-size: .8rem; font-weight: 700; color: var(--bbc-muted);
}
#bbc-root .bbc-item.is-active .bbc-item-n { border-color: var(--bbc-orange); color: var(--bbc-orange-d); }
#bbc-root .bbc-item.is-done .bbc-item-n { background: var(--bbc-green); border-color: var(--bbc-green); color: #fff; font-size: 0; }
#bbc-root .bbc-item.is-done .bbc-item-n::after { content: "✓"; font-size: .85rem; }

#bbc-root .bbc-foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--bbc-line); font-size: .8rem; color: var(--bbc-muted); display: grid; gap: 4px; }
