/**
 * Dedicated Live Stream Theater, Online Church Top Bar & Multi-Tab Sidebar Styles
 * Christ Embassy Tema Newtown
 * Inspired by Church Online Platform (cetemanewtown.online.church)
 */

/* ══════════════════════════════════════════════════════════
   1. MAIN BROADCAST THEATER CONTAINER (Integrated with Global Nav Dock)
   ══════════════════════════════════════════════════════════ */
.ce-live-page-main {
	position: relative;
	min-height: 100vh;
	background-color: #0B1120;
	padding-top: calc(var(--ce-admin-bar-h, 0px) + var(--ce-alert-dock-offset, 18px) + 68px);
	padding-bottom: 24px;
	display: flex;
	flex-direction: column;
}

.ce-live-page-container {
	max-width: 1560px;
	width: 100%;
	margin: 0 auto;
	padding: 0 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Compact Topbar (Title + Status Pills) */
.ce-live-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	position: relative;
	z-index: 30;
}

.ce-live-header-block {
	margin: 0;
}

.ce-live-headline {
	font-family: var(--font-display, 'Outfit', sans-serif);
	font-size: clamp(20px, 2.2vw, 28px);
	font-weight: 800;
	color: #F8FAFC;
	margin: 0 0 2px;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

.ce-live-subheadline {
	margin: 0;
	font-size: 12.5px;
	color: #94A3B8;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.ce-church-tag {
	color: #38BDF8;
	font-weight: 700;
}

.ce-tag-separator {
	color: #475569;
}

.ce-meta-pills-left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	position: relative;
	z-index: 35;
}

.ce-meta-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(15, 23, 42, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 9999px;
	padding: 5px 12px;
	font-size: 11.5px;
	font-weight: 600;
	color: #E2E8F0;
	letter-spacing: 0.02em;
	transition: all 0.2s ease;
}

.ce-pill-live {
	background: rgba(239, 68, 68, 0.18);
	border-color: rgba(239, 68, 68, 0.5);
	color: #F87171;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.ce-pill-dot-live {
	width: 7px;
	height: 7px;
	background-color: #EF4444;
	border-radius: 50%;
	animation: cePulseRed 1.8s infinite;
}

@keyframes cePulseRed {
	0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.8); }
	70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
	100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ce-pill-standby {
	background: rgba(148, 163, 184, 0.14);
	border-color: rgba(148, 163, 184, 0.3);
	color: #94A3B8;
}

.ce-pill-dot-standby {
	width: 7px;
	height: 7px;
	background-color: #94A3B8;
	border-radius: 50%;
}

.ce-pill-replay {
	background: rgba(56, 189, 248, 0.14);
	border-color: rgba(56, 189, 248, 0.35);
	color: #38BDF8;
}

.ce-pill-dot-replay {
	width: 7px;
	height: 7px;
	background-color: #38BDF8;
	border-radius: 50%;
}

.ce-pill-viewers svg { color: #38BDF8; }
.ce-pill-quality svg { color: #F59E0B; }

/* Quality Dropdown */
.ce-quality-trigger-wrap {
	position: relative;
	cursor: pointer;
	padding: 0 !important;
}

.ce-quality-trigger-btn {
	background: transparent;
	border: none;
	padding: 5px 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 700;
	color: #F8FAFC;
	cursor: pointer;
	border-radius: 9999px;
}

.ce-quality-caret {
	font-size: 9px;
	color: #94A3B8;
	transition: transform 0.2s ease;
	margin-left: 2px;
}

.ce-quality-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 320px;
	max-width: 90vw;
	background: #1E293B;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 12px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
	padding: 14px;
	z-index: 2000;
	display: none;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	text-align: left;
}

.ce-quality-dropdown.show {
	display: block;
	opacity: 1;
	transform: translateY(0);
}

.ce-quality-dropdown-header {
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ce-dropdown-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #F8FAFC;
}

.ce-dropdown-title-row h4 {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #F8FAFC;
}

.ce-dropdown-subtitle {
	margin: 3px 0 0;
	font-size: 11px;
	color: #94A3B8;
	line-height: 1.35;
}

.ce-quality-options-list {
	display: flex;
	flex-direction: column;
	gap: 3px;
	max-height: 250px;
	overflow-y: auto;
}

.ce-quality-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 8px 10px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	transition: all 0.15s ease;
}

.ce-quality-option:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.12);
}

.ce-quality-option.active {
	background: rgba(56, 189, 248, 0.12);
	border-color: rgba(56, 189, 248, 0.35);
}

.ce-quality-option-name {
	font-size: 12.5px;
	font-weight: 700;
	color: #F8FAFC;
}

.ce-quality-option-desc {
	font-size: 10.5px;
	color: #94A3B8;
}

.ce-quality-check {
	font-size: 12px;
	font-weight: 800;
	color: #38BDF8;
	opacity: 0;
	margin-left: 6px;
}

.ce-quality-option.active .ce-quality-check { opacity: 1; }

.ce-quality-dropdown-footer {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: flex-end;
}

.ce-quality-status-badge {
	font-size: 10.5px;
	font-weight: 700;
	color: #38BDF8;
	background: rgba(56, 189, 248, 0.12);
	padding: 3px 8px;
	border-radius: 9999px;
}

/* ══════════════════════════════════════════════════════════
   3. THEATER 2-COLUMN GRID (VIDEO LEFT, MULTI-TAB SIDEBAR RIGHT)
   ══════════════════════════════════════════════════════════ */
.ce-theater-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.8fr) 400px;
	gap: 18px;
	align-items: stretch;
	flex: 1;
	min-height: 0;
	position: relative;
	z-index: 1;
}

@media (min-width: 1400px) {
	.ce-theater-grid {
		grid-template-columns: minmax(0, 1.9fr) 420px;
	}
}

@media (max-width: 1080px) {
	.ce-theater-grid {
		grid-template-columns: 1fr;
		display: flex;
		flex-direction: column;
	}
}

/* ── LEFT COLUMN: VIDEO SCREEN THEATER ── */
.ce-theater-video-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 0;
}

.ce-theater-screen-wrapper {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #000000;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
	flex: 1;
	min-height: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 768px) {
	.ce-theater-screen-wrapper {
		min-height: 240px;
	}
}

.ce-ambient-backlight {
	position: absolute;
	top: -20px; left: -20px; right: -20px; bottom: -20px;
	background: radial-gradient(circle at 50% 30%, rgba(99, 102, 241, 0.25) 0%, rgba(56, 189, 248, 0.18) 35%, rgba(168, 85, 247, 0.12) 70%, transparent 100%);
	filter: blur(40px);
	pointer-events: none;
	z-index: 0;
	animation: ceAmbientGlow 6s ease-in-out infinite alternate;
}

@keyframes ceAmbientGlow {
	0% { opacity: 0.5; transform: scale(0.98); }
	100% { opacity: 0.9; transform: scale(1.02); }
}

.ce-theater-player-box {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
}

.ce-theater-player-box.ce-player-hidden {
	display: none;
}

/* Standby Screen */
.ce-standby-screen {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	min-height: 460px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 24px;
	overflow: hidden;
}

.ce-standby-bg {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background-size: cover;
	background-position: center;
	filter: blur(18px) brightness(0.2);
	transform: scale(1.08);
	z-index: 1;
}

.ce-standby-inner {
	position: relative;
	z-index: 2;
	max-width: 540px;
	margin: 0 auto;
}

.ce-standby-waves-icon {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.18);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #38BDF8;
	margin-bottom: 18px;
	animation: ceWavesPulse 2.5s infinite;
}

@keyframes ceWavesPulse {
	0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4); }
	70% { transform: scale(1.06); box-shadow: 0 0 0 14px rgba(56, 189, 248, 0); }
	100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.ce-standby-title {
	font-family: var(--font-display, 'Outfit', sans-serif);
	font-size: clamp(22px, 2.8vw, 30px);
	font-weight: 800;
	color: #FFFFFF;
	margin: 0 0 10px;
	line-height: 1.25;
}

.ce-standby-desc {
	font-size: 14px;
	color: #CBD5E1;
	line-height: 1.55;
	margin: 0 0 20px;
}

.ce-standby-schedule-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px;
	background: rgba(15, 23, 42, 0.85);
	border: 1px solid rgba(56, 189, 248, 0.35);
	border-radius: 8px;
	font-size: 13px;
	color: #38BDF8;
	margin-bottom: 22px;
}

.ce-standby-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Action Chips Below Video */
.ce-theater-action-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.ce-action-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: rgba(30, 41, 59, 0.85);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: #F1F5F9;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
}

.ce-action-chip:hover {
	background: #1E293B;
	border-color: #38BDF8;
	transform: translateY(-1px);
}

.ce-action-salvation {
	background: rgba(239, 68, 68, 0.15);
	border-color: rgba(239, 68, 68, 0.4);
	color: #FCA5A5;
}

.ce-action-salvation:hover {
	background: #EF4444;
	color: #FFFFFF;
}

.ce-action-giving {
	background: rgba(212, 175, 55, 0.18);
	border-color: rgba(212, 175, 55, 0.45);
	color: #FDE047;
}

.ce-action-giving:hover {
	background: #D4AF37;
	color: #002060;
}

/* ──────────────────────────────────────────────────────────
   Custom In-Player Controls (PiP & Cinema Mode)
   Integrated directly inside Plyr's .plyr__controls bar
   ────────────────────────────────────────────────────────── */
.plyr__controls .ce-plyr-control-cinema,
.plyr__controls .ce-plyr-control-pip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	background: transparent;
	border: 0;
	border-radius: var(--plyr-control-radius, 4px);
	cursor: pointer;
	padding: calc(var(--plyr-control-spacing, 10px) * .7);
	transition: background .2s ease, color .2s ease;
}

.plyr__controls .ce-plyr-control-cinema:hover,
.plyr__controls .ce-plyr-control-pip:hover {
	background: var(--plyr-video-control-background-hover, #002060);
	color: #FFFFFF;
}

.plyr__controls .ce-plyr-control-cinema.active,
.plyr__controls .ce-plyr-control-pip.active {
	color: #38BDF8;
}

.plyr__controls .ce-plyr-control-cinema svg,
.plyr__controls .ce-plyr-control-pip svg {
	width: 18px;
	height: 18px;
	display: block;
	stroke: currentColor;
	stroke-width: 2;
	fill: none;
}

/* Hide Cinema button when in native fullscreen or on mobile screens */
.plyr--fullscreen-active .ce-plyr-control-cinema {
	display: none !important;
}

@media (max-width: 900px) {
	.plyr__controls .ce-plyr-control-cinema {
		display: none !important;
	}
}

/* ══════════════════════════════════════════════════════════
   4. RIGHT COLUMN: UNIFIED MULTI-TAB ENGAGEMENT SIDEBAR
   ══════════════════════════════════════════════════════════ */
.ce-theater-sidebar-col {
	display: flex;
	flex-direction: column;
	min-height: 0;
	position: relative;
	z-index: 10;
}

.ce-sidebar-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 560px;
	max-height: calc(100vh - 120px);
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	position: relative;
}

@media (max-width: 1080px) {
	.ce-sidebar-card {
		max-height: none;
		height: 600px;
	}
}

/* Sidebar Top Header */
.ce-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: #F8FAFC;
	border-bottom: 1px solid #E2E8F0;
	flex-shrink: 0;
}

.ce-sidebar-header-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ce-sidebar-header-icon {
	font-size: 16px;
}

.ce-sidebar-header-title {
	margin: 0;
	font-size: 14.5px;
	font-weight: 800;
	color: #002060;
	letter-spacing: -0.01em;
}

.ce-chat-realtime-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: 9999px;
	padding: 3px 8px;
	font-size: 10.5px;
	font-weight: 700;
	color: #DC2626;
	letter-spacing: 0.05em;
}

.ce-chat-realtime-dot {
	width: 5px;
	height: 5px;
	background-color: #EF4444;
	border-radius: 50%;
	animation: cePulseRed 1.8s infinite;
}

/* Tab Panes Outer Wrapper */
.ce-sidebar-panes-wrap {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	position: relative;
	background: #FFFFFF;
}

.ce-tab-pane {
	display: none;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.ce-tab-pane.active {
	display: flex;
}

/* ──────────────── TAB 1: CHAT PANE ──────────────── */
.ce-reactions-bar {
	display: flex;
	gap: 6px;
	padding: 8px 12px;
	background: #F1F5F9;
	border-bottom: 1px solid #E2E8F0;
	overflow-x: auto;
	scrollbar-width: none;
	flex-shrink: 0;
}

.ce-reactions-bar::-webkit-scrollbar { display: none; }

.ce-reaction-chip {
	flex-shrink: 0;
	background: #FFFFFF;
	border: 1px solid #CBD5E1;
	border-radius: 9999px;
	padding: 4px 10px;
	font-size: 11.5px;
	font-weight: 600;
	color: #002060;
	cursor: pointer;
	transition: all 0.15s ease;
}

.ce-reaction-chip:hover {
	background: rgba(0, 56, 168, 0.08);
	border-color: #0038A8;
	transform: scale(1.04);
}

.ce-chat-pinned-box {
	background: #FFFBEB;
	border-bottom: 1px solid #FDE68A;
	padding: 8px 14px;
	font-size: 12px;
	flex-shrink: 0;
}

.ce-pinned-header {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 10px;
	font-weight: 800;
	color: #B45309;
	letter-spacing: 0.05em;
	margin-bottom: 2px;
}

.ce-pinned-content {
	color: #78350F;
	font-weight: 500;
	line-height: 1.35;
}

.ce-chat-stream-wrapper {
	flex: 1;
	min-height: 0;
	position: relative;
	display: flex;
	flex-direction: column;
}

.ce-chat-stream-box {
	flex: 1;
	overflow-y: auto;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ce-chat-message {
	padding: 8px 10px;
	border-radius: 8px;
	background: #F8FAFC;
	border: 1px solid #F1F5F9;
	animation: ceMsgIn 0.25s ease-out;
}

@keyframes ceMsgIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.ce-chat-message.ce-msg-official {
	background: #EFF6FF;
	border-color: #BFDBFE;
}

.ce-msg-header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 3px;
	font-size: 11px;
}

.ce-msg-author {
	font-weight: 800;
	color: #002060;
}

.ce-msg-badge {
	background: #0038A8;
	color: #FFFFFF;
	font-size: 9px;
	font-weight: 800;
	padding: 1px 5px;
	border-radius: 4px;
	letter-spacing: 0.05em;
}

.ce-msg-time {
	color: #94A3B8;
	margin-left: auto;
}

.ce-msg-text {
	font-size: 12.5px;
	color: #1E293B;
	line-height: 1.45;
	word-break: break-word;
}

.ce-chat-scroll-btn {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	background: #0038A8;
	color: #FFFFFF;
	border: none;
	border-radius: 9999px;
	padding: 6px 14px;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 56, 168, 0.3);
	display: flex;
	align-items: center;
	gap: 6px;
	z-index: 10;
}

.ce-unread-badge {
	background: #EF4444;
	color: #FFFFFF;
	border-radius: 50%;
	width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 800;
}

.ce-chat-input-wrap {
	border-top: 1px solid #E2E8F0;
	padding: 10px 12px;
	background: #FFFFFF;
	flex-shrink: 0;
}

.ce-chat-identity-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	font-size: 11px;
	color: #64748B;
}

.ce-identity-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ce-identity-dot {
	width: 6px;
	height: 6px;
	background: #10B981;
	border-radius: 50%;
}

.ce-change-name-btn {
	background: transparent;
	border: none;
	color: #0038A8;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
}

.ce-name-input-line {
	margin-bottom: 6px;
}

.ce-name-field-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #F8FAFC;
	border: 1px solid #CBD5E1;
	border-radius: 6px;
	padding: 4px 8px;
}

.ce-name-icon { color: #64748B; }

.ce-input-name {
	border: none;
	background: transparent;
	width: 100%;
	font-size: 12px;
	color: #1E293B;
	outline: none;
}

.ce-name-error-msg {
	color: #DC2626;
	font-size: 10.5px;
	margin-top: 2px;
	display: none;
}

.ce-message-input-line {
	display: flex;
	gap: 6px;
	align-items: center;
}

.ce-input-text {
	flex: 1;
	background: #F8FAFC;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 12.5px;
	color: #1E293B;
	outline: none;
	transition: border-color 0.15s ease;
}

.ce-input-text:focus {
	border-color: #0038A8;
	background: #FFFFFF;
}

.ce-chat-send-btn {
	background: #0038A8;
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	padding: 8px 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ce-chat-send-btn:hover {
	background: #002060;
}

/* ──────────────── TAB 2: PRAY PANE ──────────────── */
.ce-pray-container {
	padding: 16px;
	overflow-y: auto;
	flex: 1;
}

.ce-pray-header {
	margin-bottom: 14px;
}

.ce-pray-header h4 {
	font-size: 14.5px;
	font-weight: 800;
	color: #002060;
	margin: 0 0 4px;
}

.ce-pray-header p {
	font-size: 12px;
	color: #64748B;
	line-height: 1.45;
	margin: 0;
}

.ce-sidebar-form .ce-form-group {
	margin-bottom: 12px;
}

.ce-sidebar-form label {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 4px;
}

.ce-sidebar-form label .req {
	color: #EF4444;
}

.ce-form-input {
	width: 100%;
	padding: 8px 10px;
	background: #F8FAFC;
	border: 1px solid #CBD5E1;
	border-radius: 6px;
	font-size: 12.5px;
	color: #1E293B;
	outline: none;
	box-sizing: border-box;
	font-family: inherit;
}

.ce-form-input:focus {
	border-color: #0038A8;
	background: #FFFFFF;
}

.ce-form-textarea {
	resize: vertical;
	min-height: 80px;
}

.ce-pray-confidential-pill {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: #64748B;
	margin-bottom: 14px;
}

.ce-pray-confidential-pill svg {
	color: #0038A8;
}

.ce-pray-submit-btn {
	border-radius: 8px;
	padding: 10px;
	font-size: 13px;
	font-weight: 700;
}

.ce-form-feedback {
	padding: 10px;
	border-radius: 6px;
	font-size: 12px;
	margin-bottom: 10px;
}

.ce-form-feedback.is-success {
	background: #ECFDF5;
	border: 1px solid #A7F3D0;
	color: #065F46;
}

.ce-form-feedback.is-error {
	background: #FEF2F2;
	border: 1px solid #FECACA;
	color: #991B1B;
}

/* ──────────────── TAB 3: SCHEDULE PANE (Matches Reference Screenshot) ──────────────── */
.ce-schedule-container {
	padding: 16px;
	overflow-y: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ce-schedule-top-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #F1F5F9;
	padding-bottom: 8px;
}

.ce-schedule-next-label {
	font-size: 11px;
	font-weight: 800;
	color: #64748B;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ce-timezone-wrapper {
	position: relative;
}

.ce-timezone-select {
	background: transparent;
	border: none;
	font-size: 11.5px;
	font-weight: 600;
	color: #0038A8;
	text-decoration: underline;
	cursor: pointer;
	outline: none;
	padding-right: 4px;
}

/* Next Service Highlight Card */
.ce-next-service-card {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 16px;
	text-align: center;
}

.ce-next-service-time-display {
	font-size: 26px;
	font-weight: 800;
	color: #002060;
	line-height: 1.1;
	margin-bottom: 2px;
}

.ce-next-service-title-display {
	font-size: 12px;
	font-weight: 600;
	color: #64748B;
	margin-bottom: 14px;
}

/* Triple Countdown Boxes (HOURS, MINUTES, SECONDS) */
.ce-countdown-boxes {
	display: flex;
	justify-content: center;
	gap: 8px;
}

.ce-countdown-box {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 10px 8px;
	min-width: 68px;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ce-countdown-num {
	font-size: 20px;
	font-weight: 800;
	color: #002060;
	line-height: 1;
}

.ce-countdown-label {
	font-size: 9px;
	font-weight: 700;
	color: #94A3B8;
	letter-spacing: 0.06em;
	margin-top: 4px;
}

/* Upcoming Services List */
.ce-upcoming-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ce-upcoming-day-group {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.ce-upcoming-day-header {
	font-size: 10.5px;
	font-weight: 800;
	color: #64748B;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ce-upcoming-time-box {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	padding: 10px 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.15s ease;
}

.ce-upcoming-time-box:hover {
	border-color: #0038A8;
	background: #F8FAFC;
}

.ce-upcoming-time {
	font-size: 13.5px;
	font-weight: 700;
	color: #002060;
}

.ce-upcoming-service-name {
	font-size: 11px;
	font-weight: 500;
	color: #64748B;
}

.ce-upcoming-link {
	font-size: 11.5px;
	font-weight: 700;
	color: #0038A8;
	text-decoration: none;
}

/* ──────────────── TAB 4: NOTES PANE ──────────────── */
.ce-notes-container {
	padding: 16px;
	overflow-y: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ce-notes-pane-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
}

.ce-notes-pane-header h4 {
	font-size: 14.5px;
	font-weight: 800;
	color: #002060;
	margin: 0 0 2px;
}

.ce-notes-pane-header p {
	font-size: 11.5px;
	color: #64748B;
	margin: 0;
	line-height: 1.35;
}

.ce-notes-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 10.5px;
	font-weight: 700;
	color: #10B981;
	background: #ECFDF5;
	border: 1px solid #A7F3D0;
	padding: 2px 8px;
	border-radius: 999px;
	flex-shrink: 0;
}

.ce-notes-status-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #10B981;
}

.ce-notes-textarea-wrap {
	flex: 1;
	display: flex;
	margin-bottom: 12px;
}

.ce-sidebar-notes-textarea {
	width: 100%;
	min-height: 200px;
	flex: 1;
	background: #F8FAFC;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	padding: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #1E293B;
	font-family: inherit;
	outline: none;
	resize: vertical;
	box-sizing: border-box;
}

.ce-sidebar-notes-textarea:focus {
	border-color: #0038A8;
	background: #FFFFFF;
}

.ce-notes-pane-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

.ce-notes-stats {
	font-size: 11px;
	color: #64748B;
}

.ce-notes-actions {
	display: flex;
	gap: 6px;
}

.ce-btn-notes-clear {
	color: #EF4444 !important;
	border-color: rgba(239, 68, 68, 0.3) !important;
}

/* ──────────────── TAB 5: BIBLE PANE ──────────────── */
.ce-bible-container {
	padding: 16px;
	overflow-y: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ce-bible-header h4 {
	font-size: 14.5px;
	font-weight: 800;
	color: #002060;
	margin: 0 0 2px;
}

/* ══════════════════════════════════════════════════════════
   4. YOUVERSION-INSPIRED BIBLE APP STYLES (Matches Reference)
   ══════════════════════════════════════════════════════════ */
.ce-bible-app-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 480px;
	position: relative;
	background: #FFFFFF;
}

/* ── 1. Bible App Top Brand Bar ── */
.ce-bible-top-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #FFFFFF;
	border-bottom: 1px solid #EDF2F7;
	position: relative;
	z-index: 10;
}

.ce-bible-brand {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ce-bible-brand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.25));
}

.ce-bible-brand-title {
	font-family: var(--font-display, 'Outfit', sans-serif);
	font-size: 15px;
	font-weight: 800;
	color: #002060;
	letter-spacing: -0.01em;
}

.ce-bible-top-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.ce-bible-action-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: transparent;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #475569;
	cursor: pointer;
	transition: all 0.15s ease;
}

.ce-bible-action-btn:hover {
	background: #F1F5F9;
	color: #0038A8;
}

/* ── 2. Collapsible Scripture Search Bar ── */
.ce-bible-search-drawer {
	background: #F8FAFC;
	border-bottom: 1px solid #E2E8F0;
	padding: 10px 14px;
	animation: ceSlideDown 0.2s ease;
}

@keyframes ceSlideDown {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

.ce-bible-search-inner {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ce-bible-search-field {
	flex: 1;
	padding: 7px 12px;
	background: #FFFFFF;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	font-size: 12.5px;
	color: #1E293B;
	outline: none;
	transition: border-color 0.15s ease;
}

.ce-bible-search-field:focus {
	border-color: #0038A8;
	box-shadow: 0 0 0 3px rgba(0, 56, 168, 0.1);
}

.ce-bible-search-submit {
	background: #0038A8;
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ce-bible-search-submit:hover {
	background: #002060;
}

.ce-bible-search-close {
	background: transparent;
	border: none;
	font-size: 20px;
	line-height: 1;
	color: #94A3B8;
	cursor: pointer;
	padding: 0 4px;
}

.ce-bible-search-close:hover {
	color: #0F172A;
}

.ce-bible-quick-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 8px;
}

.ce-bible-chip {
	background: #FFFFFF;
	border: 1px solid #CBD5E1;
	border-radius: 999px;
	padding: 3px 9px;
	font-size: 11px;
	font-weight: 600;
	color: #0038A8;
	cursor: pointer;
	transition: all 0.15s ease;
}

.ce-bible-chip:hover {
	background: #0038A8;
	color: #FFFFFF;
	border-color: #0038A8;
}

/* ── 3. Subheader Controls Bar (Book Selector, Version, Audio, AA) ── */
.ce-bible-controls-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 14px;
	background: #FAFCFF;
	border-bottom: 1px solid #EDF2F7;
	position: relative;
	z-index: 9;
}

.ce-bible-controls-left,
.ce-bible-controls-right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ce-bible-pill-btn {
	background: #FFFFFF;
	border: 1px solid #CBD5E1;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 12.5px;
	font-weight: 700;
	color: #0F172A;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.15s ease;
}

.ce-bible-pill-btn:hover {
	border-color: #0038A8;
	background: #F0F7FF;
	color: #0038A8;
}

.ce-bible-caret {
	font-size: 10px;
	color: #94A3B8;
	transition: transform 0.2s ease;
}

.ce-bible-pill-btn[aria-expanded="true"] .ce-bible-caret {
	transform: rotate(180deg);
}

.ce-bible-version-dropdown-wrap {
	position: relative;
}

.ce-bible-version-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	width: 250px;
	background: #FFFFFF;
	border: 1px solid #CBD5E1;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
	z-index: 100;
	padding: 6px;
	animation: ceFadeIn 0.15s ease;
}

@keyframes ceFadeIn {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.ce-version-menu-title {
	font-size: 10px;
	font-weight: 800;
	color: #94A3B8;
	letter-spacing: 0.06em;
	padding: 6px 10px 4px;
}

.ce-version-opt {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	background: transparent;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	transition: all 0.12s ease;
}

.ce-version-opt:hover {
	background: #F1F5F9;
}

.ce-version-opt.active {
	background: #EFF6FF;
}

.ce-version-tag {
	font-weight: 800;
	font-size: 12px;
	color: #002060;
	min-width: 38px;
}

.ce-version-name {
	flex: 1;
	font-size: 11.5px;
	color: #475569;
}

.ce-version-check {
	font-size: 12px;
	font-weight: 800;
	color: #0038A8;
	opacity: 0;
}

.ce-version-opt.active .ce-version-check {
	opacity: 1;
}

.ce-bible-round-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #FFFFFF;
	border: 1px solid #CBD5E1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #334155;
	font-weight: 800;
	font-size: 11px;
	transition: all 0.15s ease;
}

.ce-bible-round-btn:hover {
	border-color: #0038A8;
	color: #0038A8;
	background: #F0F7FF;
}

.ce-bible-audio-btn.playing {
	background: #0038A8;
	color: #FFFFFF;
	border-color: #0038A8;
	animation: cePulseBlue 1.6s infinite;
}

@keyframes cePulseBlue {
	0%, 100% { box-shadow: 0 0 0 0 rgba(0, 56, 168, 0.4); }
	50% { box-shadow: 0 0 0 6px rgba(0, 56, 168, 0); }
}

/* ── 4. Passage Reading Area with Floating Navigation Arrows ── */
.ce-bible-scroll-area {
	position: relative;
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px 24px;
	scroll-behavior: smooth;
	min-height: 380px;
	max-height: calc(100vh - 310px);
}

/* Floating Chapter Arrows (< and >) */
.ce-bible-nav-arrow {
	position: sticky;
	z-index: 15;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid #CBD5E1;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #1E293B;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ce-bible-prev-arrow {
	float: left;
	top: 50%;
	margin-top: 140px;
	margin-left: -4px;
}

.ce-bible-next-arrow {
	float: right;
	top: 50%;
	margin-top: 140px;
	margin-right: -4px;
}

.ce-bible-nav-arrow:hover {
	transform: scale(1.12);
	background: #0038A8;
	color: #FFFFFF;
	border-color: #0038A8;
}

.ce-bible-passage-card {
	max-width: 100%;
	margin: 0 auto;
}

.ce-bible-passage-header {
	text-align: center;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #F1F5F9;
}

.ce-bible-heading {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 28px;
	font-weight: 800;
	color: #002060;
	margin: 0 0 4px;
	letter-spacing: -0.02em;
}

.ce-bible-subheading {
	font-size: 14px;
	font-weight: 600;
	color: #64748B;
	margin: 0 0 8px;
	font-style: italic;
}

.ce-bible-ver-tag {
	font-size: 10px;
	font-weight: 700;
	color: #0038A8;
	background: #EFF6FF;
	border: 1px solid #DBEAFE;
	border-radius: 9999px;
	display: inline-block;
	padding: 2px 10px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Scripture Text Stream */
.ce-bible-verses-stream {
	line-height: 1.85;
	color: #1E293B;
	font-family: Georgia, 'Cambria', serif;
	transition: font-size 0.15s ease;
}

/* Font Size Scales */
.ce-font-sm { font-size: 13.5px; line-height: 1.75; }
.ce-font-md { font-size: 15.5px; line-height: 1.85; }
.ce-font-lg { font-size: 18px; line-height: 1.95; }
.ce-font-xl { font-size: 21px; line-height: 2.05; }

.ce-bible-verse {
	display: inline;
	margin: 0;
	padding: 2px 3px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ce-bible-verse:hover {
	background: rgba(0, 56, 168, 0.09);
}

.ce-bible-verse.active-verse {
	background: rgba(217, 119, 6, 0.2);
	border-bottom: 2px solid #D97706;
}

.ce-verse-num {
	font-size: 0.7em;
	font-weight: 800;
	color: #0038A8;
	vertical-align: super;
	margin-right: 4px;
	margin-left: 4px;
	user-select: none;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ce-bible-loading-state {
	text-align: center;
	padding: 40px 10px;
	color: #64748B;
	font-size: 13px;
}

.ce-bible-spinner {
	width: 28px;
	height: 28px;
	border: 3px solid #E2E8F0;
	border-top-color: #0038A8;
	border-radius: 50%;
	margin: 0 auto 10px;
	animation: ceSpin 0.8s linear infinite;
}

@keyframes ceSpin {
	to { transform: rotate(360deg); }
}

.ce-bible-chapter-bottom-nav {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid #E2E8F0;
}

.ce-bible-bottom-nav-btn {
	flex: 1;
	background: #F8FAFC;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	padding: 9px 14px;
	font-size: 12px;
	font-weight: 700;
	color: #002060;
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
}

.ce-bible-bottom-nav-btn:hover {
	background: #0038A8;
	color: #FFFFFF;
	border-color: #0038A8;
}

/* ── 5. Floating Verse Action Tooltip ── */
.ce-verse-action-tooltip {
	position: absolute;
	z-index: 60;
	background: #0F172A;
	color: #FFFFFF;
	padding: 6px 10px;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	animation: ceFadeIn 0.15s ease;
}

.ce-tooltip-ref {
	font-weight: 800;
	color: #FCD34D;
	border-right: 1px solid rgba(255, 255, 255, 0.2);
	padding-right: 8px;
	font-size: 11.5px;
}

.ce-tooltip-btn {
	background: rgba(255, 255, 255, 0.14);
	border: none;
	color: #FFFFFF;
	padding: 4px 9px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}

.ce-tooltip-btn:hover {
	background: #0038A8;
}

.ce-tooltip-notes:hover {
	background: #D97706;
}

.ce-tooltip-close {
	background: transparent;
	border: none;
	color: #94A3B8;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}

.ce-tooltip-close:hover {
	color: #FFFFFF;
}

/* ── 6. Book & Chapter Picker Modal / Dialog ── */
.ce-bible-picker-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ce-picker-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.ce-picker-sheet {
	position: relative;
	z-index: 2;
	width: 92%;
	max-width: 580px;
	max-height: 85vh;
	background: #FFFFFF;
	border-radius: 16px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: ceModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ceModalPop {
	from { opacity: 0; transform: scale(0.96) translateY(10px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

.ce-picker-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px 12px;
	border-bottom: 1px solid #F1F5F9;
}

.ce-picker-title-group h4 {
	margin: 0;
	font-size: 17px;
	font-weight: 800;
	color: #002060;
}

.ce-picker-title-group p {
	margin: 2px 0 0;
	font-size: 12px;
	color: #64748B;
}

.ce-picker-close-btn {
	background: transparent;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #64748B;
	cursor: pointer;
	padding: 4px;
}

.ce-picker-close-btn:hover {
	color: #0F172A;
}

.ce-picker-tabs {
	display: flex;
	gap: 8px;
	padding: 10px 20px;
	background: #F8FAFC;
	border-bottom: 1px solid #E2E8F0;
}

.ce-picker-tab-btn {
	flex: 1;
	padding: 8px 12px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 700;
	color: #64748B;
	cursor: pointer;
	transition: all 0.15s ease;
}

.ce-picker-tab-btn.active {
	background: #FFFFFF;
	border-color: #CBD5E1;
	color: #0038A8;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ce-picker-search-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-bottom: 1px solid #F1F5F9;
}

.ce-picker-search-wrap input {
	flex: 1;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 13px;
	color: #1E293B;
	outline: none;
}

.ce-picker-search-wrap input:focus {
	border-color: #0038A8;
}

.ce-picker-books-grid {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}

@media (max-width: 480px) {
	.ce-picker-books-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.ce-book-card-btn {
	padding: 9px 12px;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 700;
	color: #0F172A;
	text-align: left;
	cursor: pointer;
	transition: all 0.12s ease;
}

.ce-book-card-btn:hover {
	background: #EFF6FF;
	border-color: #0038A8;
	color: #0038A8;
}

.ce-book-card-btn.active {
	background: #0038A8;
	color: #FFFFFF;
	border-color: #0038A8;
}

.ce-picker-chapters-view {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
}

.ce-chapters-view-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #E2E8F0;
}

.ce-back-to-books-btn {
	background: transparent;
	border: none;
	color: #0038A8;
	font-weight: 800;
	font-size: 13.5px;
	cursor: pointer;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ce-chapters-count-note {
	font-size: 11.5px;
	color: #64748B;
}

.ce-chapters-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 8px;
}

@media (max-width: 480px) {
	.ce-chapters-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

.ce-chapter-num-btn {
	padding: 10px 0;
	background: #F8FAFC;
	border: 1px solid #CBD5E1;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #002060;
	text-align: center;
	cursor: pointer;
	transition: all 0.12s ease;
}

.ce-chapter-num-btn:hover {
	background: #0038A8;
	color: #FFFFFF;
	border-color: #0038A8;
}

.ce-chapter-num-btn.active {
	background: #002060;
	color: #FFFFFF;
	border-color: #002060;
}

/* ══════════════════════════════════════════════════════════
   5. FLOATING ATTENDANCE / CHECK-IN TOAST (Matches Screenshot)
   ══════════════════════════════════════════════════════════ */
.ce-attendance-toast {
	margin: 0 10px 8px;
	padding: 8px 12px;
	background: #FFFBEB;
	border: 1px solid #FDE68A;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	flex-shrink: 0;
	animation: ceMsgIn 0.3s ease-out;
}

.ce-attendance-toast.is-hidden {
	display: none !important;
}

.ce-attendance-toast-content {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.ce-attendance-toast-icon {
	color: #D97706;
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.ce-attendance-toast-text {
	font-size: 11.5px;
	font-weight: 600;
	color: #92400E;
	line-height: 1.3;
}

.ce-attendance-toast-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.ce-toast-login-btn {
	background: #D97706;
	color: #FFFFFF;
	border: none;
	border-radius: 6px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.ce-toast-login-btn:hover {
	background: #B45309;
}

.ce-toast-close-btn {
	background: transparent;
	border: none;
	color: #B45309;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}

/* ══════════════════════════════════════════════════════════
   6. BOTTOM SIDEBAR TAB NAVIGATION BAR (Matches Screenshot)
   ══════════════════════════════════════════════════════════ */
.ce-sidebar-nav-tabs {
	height: 52px;
	background: #FFFFFF;
	border-top: 1px solid #E2E8F0;
	display: flex;
	align-items: stretch;
	justify-content: space-around;
	flex-shrink: 0;
}

.ce-sidebar-tab-btn {
	flex: 1;
	background: transparent;
	border: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	cursor: pointer;
	color: #64748B;
	font-family: inherit;
	transition: all 0.15s ease;
	padding: 6px 2px;
	position: relative;
}

.ce-sidebar-tab-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ce-sidebar-tab-label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ce-sidebar-tab-btn:hover {
	color: #0038A8;
	background: #F8FAFC;
}

.ce-sidebar-tab-btn.active {
	color: #0038A8;
	font-weight: 800;
	background: rgba(0, 56, 168, 0.04);
}

.ce-sidebar-tab-btn.active::before {
	content: '';
	position: absolute;
	top: 0;
	left: 15%;
	right: 15%;
	height: 3px;
	background: #0038A8;
	border-radius: 0 0 3px 3px;
}

/* ══════════════════════════════════════════════════════════
   7. CINEMA MODE & PIP
   ══════════════════════════════════════════════════════════ */
body.ce-cinema-active .ce-theater-grid {
	grid-template-columns: 1fr;
}

body.ce-cinema-active .ce-theater-sidebar-col {
	display: none;
}

body.ce-cinema-active .ce-theater-screen-wrapper {
	min-height: calc(100vh - 180px);
}

/* ══════════════════════════════════════════════════════════
   8. MOBILE RESPONSIVE BEHAVIOR (<= 900px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
	.ce-live-page-main {
		padding-top: calc(var(--ce-admin-bar-h, 0px) + var(--ce-alert-dock-offset, 18px) + 56px);
		padding-right: 0;
		padding-bottom: 60px;
		padding-left: 0;
	}

	.ce-live-page-container {
		padding: 0;
	}

	.ce-live-topbar {
		padding: 10px 16px;
		margin-bottom: 0;
		background: #0B1120;
	}

	.ce-theater-grid {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.ce-theater-screen-wrapper {
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		z-index: 50;
		border-radius: 0;
		border: none;
		min-height: 220px;
		width: 100%;
	}

	.ce-theater-action-bar {
		padding: 8px 12px;
		background: #0F172A;
		overflow-x: auto;
		flex-wrap: nowrap;
		scrollbar-width: none;
	}

	.ce-theater-action-bar::-webkit-scrollbar { display: none; }

	.ce-action-chip {
		flex-shrink: 0;
	}

	.ce-theater-sidebar-col {
		flex: 1;
	}

	.ce-sidebar-card {
		border-radius: 0;
		border-left: none;
		border-right: none;
		border-bottom: none;
		height: auto;
		min-height: 400px;
		max-height: none;
	}

	.ce-sidebar-nav-tabs {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	}
}
