/* Bible Brain Player - FCBH brand styling
   Red #7E0E2A | Palatino Linotype headings | Calibri body */

.bbp-root {
	--bbp-red: #7E0E2A;
	--bbp-red-dark: #5E0A20;
	--bbp-ink: #1f2024;
	--bbp-muted: #6b6f76;
	--bbp-line: #e4e2dd;
	--bbp-bg: #ffffff;
	--bbp-bg-soft: #faf8f5;
	--bbp-radius: 10px;

	max-width: 880px;
	margin: 0 auto;
	background: var(--bbp-bg);
	border: 1px solid var(--bbp-line);
	border-radius: var(--bbp-radius);
	overflow: hidden;
	color: var(--bbp-ink);
	font-family: Calibri, "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 28px rgba(0,0,0,.06);
}

.bbp-root *,
.bbp-root *::before,
.bbp-root *::after { box-sizing: border-box; }

/* ---- Selection bar ---- */
.bbp-bar {
	display: grid;
	grid-template-columns: 1.4fr 1.4fr 1fr .7fr;
	gap: 14px;
	padding: 16px 18px;
	background: var(--bbp-bg-soft);
	border-bottom: 1px solid var(--bbp-line);
}
.bbp-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bbp-field label {
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bbp-muted);
	font-weight: 600;
}
.bbp-field select,
.bbp-lang-input {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--bbp-line);
	border-radius: 8px;
	background: #fff;
	color: var(--bbp-ink);
	font-family: inherit;
	font-size: 15px;
	appearance: none;
}
.bbp-field select:focus,
.bbp-lang-input:focus {
	outline: none;
	border-color: var(--bbp-red);
	box-shadow: 0 0 0 3px rgba(126,14,42,.12);
}
.bbp-field select:disabled { background: #f1efeb; color: #9a9da3; cursor: not-allowed; }

/* ---- Language type-ahead ---- */
.bbp-combo { position: relative; }
.bbp-lang-list {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0; right: 0;
	margin: 0; padding: 4px;
	list-style: none;
	max-height: 280px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--bbp-line);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.bbp-lang-list li {
	padding: 8px 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 15px;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}
.bbp-lang-list li small { color: var(--bbp-muted); }
.bbp-lang-list li:hover,
.bbp-lang-list li.is-active { background: rgba(126,14,42,.08); }

/* ---- Tabs ---- */
.bbp-tabs {
	display: flex;
	gap: 2px;
	padding: 0 18px;
	background: var(--bbp-bg-soft);
	border-bottom: 1px solid var(--bbp-line);
}
.bbp-tab {
	border: 0;
	background: none;
	padding: 13px 18px;
	font-family: Calibri, system-ui, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--bbp-muted);
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}
.bbp-tab:hover { color: var(--bbp-ink); }
.bbp-tab[aria-selected="true"] { color: var(--bbp-red); border-bottom-color: var(--bbp-red); }
.bbp-tab[disabled] { opacity: .35; cursor: not-allowed; }

/* ---- Stage ---- */
.bbp-stage { padding: 22px 24px; min-height: 220px; }
.bbp-status { color: var(--bbp-muted); text-align: center; padding: 40px 10px; font-size: 15px; }
.bbp-status.is-error { color: var(--bbp-red); }

.bbp-now {
	font-family: "Palatino Linotype", Palatino, Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	color: var(--bbp-red);
	margin-bottom: 14px;
}

/* ---- Reader (text) ---- */
.bbp-reader {
	font-size: 19px;
	line-height: 1.72;
	color: #23252b;
}
.bbp-reader .bbp-chapnum {
	font-family: "Palatino Linotype", Palatino, Georgia, serif;
	font-size: 30px;
	font-weight: 700;
	color: var(--bbp-red);
	display: block;
	margin: 0 0 12px;
}
.bbp-verse { transition: background-color .25s ease; padding: 1px 2px; border-radius: 4px; }
.bbp-verse .bbp-vn {
	font-size: 11px;
	font-weight: 700;
	color: var(--bbp-red);
	vertical-align: super;
	margin-right: 3px;
	font-family: Calibri, sans-serif;
}
.bbp-verse.is-playing { background: rgba(126,14,42,.12); }

/* ---- Sync toggle ---- */
.bbp-sync { margin-bottom: 16px; }
.bbp-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--bbp-muted); cursor: pointer; }
.bbp-switch input { accent-color: var(--bbp-red); width: 16px; height: 16px; }

/* ---- Footer nav ---- */
.bbp-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-top: 1px solid var(--bbp-line);
	background: var(--bbp-bg-soft);
}
.bbp-ref { font-family: "Palatino Linotype", Palatino, Georgia, serif; font-weight: 700; color: var(--bbp-ink); }
.bbp-prev, .bbp-next {
	border: 1px solid var(--bbp-red);
	background: #fff;
	color: var(--bbp-red);
	padding: 8px 16px;
	border-radius: 8px;
	font-family: Calibri, sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.bbp-prev:hover:not(:disabled), .bbp-next:hover:not(:disabled) { background: var(--bbp-red); color: #fff; }
.bbp-prev:disabled, .bbp-next:disabled { opacity: .4; cursor: not-allowed; }

.bbp-copyright { font-size: 12px; color: var(--bbp-muted); padding: 0 18px 16px; margin: 0; }

video.bbp-video { background: #000; border-radius: 8px; max-height: 460px; }

/* ---- Spinner ---- */
.bbp-spin { display: inline-block; width: 22px; height: 22px; border: 3px solid rgba(126,14,42,.25); border-top-color: var(--bbp-red); border-radius: 50%; animation: bbp-rot .8s linear infinite; }
@keyframes bbp-rot { to { transform: rotate(360deg); } }

/* ---- Responsive ---- */
@media (max-width: 720px) {
	.bbp-bar { grid-template-columns: 1fr 1fr; }
	.bbp-stage { padding: 18px 16px; }
	.bbp-reader { font-size: 18px; }
}
@media (max-width: 440px) {
	.bbp-bar { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.bbp-spin { animation: none; }
	.bbp-verse { transition: none; }
}
