/**
 * Skills Practice Session - Player Styles
 * Mobile-first responsive design
 */

/* === TARGETED CSS ISOLATION === */
/* Prevents WordPress theme styles from overriding plugin styles */
/* Uses targeted resets - preserves layout properties (grid, flex, borders, spacing) */

/* Base container - establish typography foundation */
.erc-player,
.erc-dashboard {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
	color: var(--erc-text-primary);
	background-color: var(--erc-bg-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Box-sizing inheritance - does NOT reset margin/padding/border */
.erc-player *,
.erc-player *::before,
.erc-player *::after,
.erc-dashboard *,
.erc-dashboard *::before,
.erc-dashboard *::after {
	box-sizing: border-box;
}

/* Typography reset - headings */
.erc-player h1,
.erc-player h2,
.erc-player h3,
.erc-player h4,
.erc-player h5,
.erc-player h6,
.erc-dashboard h1,
.erc-dashboard h2,
.erc-dashboard h3,
.erc-dashboard h4,
.erc-dashboard h5,
.erc-dashboard h6 {
	font-family: inherit !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* Typography reset - paragraphs */
.erc-player p,
.erc-dashboard p {
	font-family: inherit !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* Span/label reset */
.erc-player span,
.erc-player label,
.erc-dashboard span,
.erc-dashboard label {
	font-family: inherit !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* Button reset - targeted properties only */
.erc-player button,
.erc-dashboard button {
	font-family: inherit !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	min-height: auto !important;
	min-width: auto !important;
	height: auto !important;
	max-height: none !important;
	box-shadow: none !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

/* Link reset */
.erc-player a,
.erc-dashboard a {
	font-family: inherit !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none;
}

/* Form element reset */
.erc-player input,
.erc-player textarea,
.erc-player select,
.erc-dashboard input,
.erc-dashboard textarea,
.erc-dashboard select {
	font-family: inherit !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
	letter-spacing: normal !important;
	appearance: none;
	-webkit-appearance: none;
}

/* List reset - only list-style */
.erc-player ul,
.erc-player ol,
.erc-dashboard ul,
.erc-dashboard ol {
	list-style: none;
}

/* Image reset */
.erc-player img,
.erc-dashboard img {
	max-width: 100%;
	height: auto;
	border: none;
}

/* Video reset */
.erc-player video,
.erc-dashboard video {
	max-width: 100%;
	border: none;
}

/* === Layout === */
.erc-player {
	max-width: 100%;
	min-width: 0;
	margin: 0 auto;
	padding: 1rem;
	overflow: hidden;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.erc-player {
		padding: 2rem;
		max-width: 1200px;
	}
}

/* === Avatar Picker === */
/* Doubled specificity for theme override */
.erc-player .erc-avatar-picker,
.erc-avatar-picker.erc-avatar-picker {
	padding: 2rem 0;
	min-width: 0;
	overflow: hidden;
}

.erc-player .erc-avatar-picker__title,
.erc-avatar-picker__title.erc-avatar-picker__title {
	font-size: 1.625rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	margin-bottom: 1.5rem;
	text-align: center;
	color: var(--erc-text-primary);
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.erc-player .erc-avatar-grid,
.erc-avatar-grid.erc-avatar-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin-top: 1rem;
	min-width: 0;
}

.erc-player .erc-avatar-card,
.erc-avatar-card.erc-avatar-card {
	flex: 0 1 150px;
	max-width: 200px;
	min-width: 0;
	background: var(--erc-bg-secondary);
	border: 2px solid var(--erc-border);
	border-radius: 12px;
	padding: 1rem;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 1rem;
	line-height: 1.5;
	box-sizing: border-box;
}

/* Narrow container / small mobile - stack cards full width */
@media (max-width: 479px) {
	.erc-player .erc-avatar-picker,
	.erc-avatar-picker.erc-avatar-picker {
		padding: 1rem 0;
	}

	.erc-player .erc-avatar-picker__title,
	.erc-avatar-picker__title.erc-avatar-picker__title {
		font-size: 1.25rem;
		margin-bottom: 1rem;
	}

	.erc-player .erc-avatar-grid,
	.erc-avatar-grid.erc-avatar-grid {
		flex-direction: column;
		align-items: center;
		gap: 0.75rem;
	}

	.erc-player .erc-avatar-card,
	.erc-avatar-card.erc-avatar-card {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
	}
}

/* Medium screens */
@media (min-width: 480px) and (max-width: 767px) {
	.erc-player .erc-avatar-card,
	.erc-avatar-card.erc-avatar-card {
		flex: 0 1 130px;
		max-width: 180px;
	}
}

@media (min-width: 768px) {
	.erc-avatar-grid {
		gap: 1.5rem;
	}

	.erc-avatar-card {
		flex: 0 1 200px;
		max-width: 220px;
	}
}

.erc-player .erc-avatar-card:hover,
.erc-player .erc-avatar-card:focus,
.erc-avatar-card.erc-avatar-card:hover,
.erc-avatar-card.erc-avatar-card:focus {
	border-color: var(--erc-primary);
	transform: translateY(-4px);
	box-shadow: 0 8px 16px var(--erc-shadow);
}

.erc-player .erc-avatar-card__image,
.erc-avatar-card__image.erc-avatar-card__image {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 0.75rem;
}

.erc-player .erc-avatar-card__name,
.erc-avatar-card__name.erc-avatar-card__name {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	margin-bottom: 0.25rem;
	color: var(--erc-text-primary);
}

.erc-player .erc-avatar-card__description,
.erc-avatar-card__description.erc-avatar-card__description {
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	color: var(--erc-text-secondary);
}

/* === Skip Avatar Selection === */
.erc-skip-avatar-container {
	margin-top: 2rem;
	text-align: center;
}

.erc-skip-avatar-divider {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.erc-skip-avatar-divider::before,
.erc-skip-avatar-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--erc-border);
}

.erc-skip-avatar-divider span {
	padding: 0 1rem;
	color: var(--erc-text-secondary);
	font-size: 0.9375rem;
	text-transform: lowercase;
}

.erc-skip-avatar-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.875rem 1.5rem;
	background: var(--erc-bg-secondary);
	border: 2px solid var(--erc-border);
	border-radius: 8px;
	font-size: 1.0625rem;
	color: var(--erc-text-primary);
	cursor: pointer;
	transition: all 0.2s ease;
}

.erc-skip-avatar-btn:hover,
.erc-skip-avatar-btn:focus {
	border-color: var(--erc-primary);
	background: var(--erc-bg-primary);
	transform: translateX(4px);
}

.erc-skip-avatar-text {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.erc-skip-avatar-name {
	color: var(--erc-primary);
}

.erc-skip-avatar-arrow {
	font-size: 1.25rem;
	transition: transform 0.2s ease;
}

.erc-skip-avatar-btn:hover .erc-skip-avatar-arrow {
	transform: translateX(4px);
}

/* === Avatar Preview Modal === */
.erc-avatar-preview {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.erc-avatar-preview__backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
}

.erc-avatar-preview__content {
	position: relative;
	background: var(--erc-bg-primary);
	border-radius: 16px;
	padding: 1.5rem;
	max-width: 480px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 1;
}

.erc-avatar-preview__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 32px;
	height: 32px;
	border: none;
	background: var(--erc-bg-secondary);
	border-radius: 50%;
	font-size: 1.25rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--erc-text-primary);
	transition: all 0.2s ease;
	z-index: 2;
}

.erc-avatar-preview__close:hover {
	background: var(--erc-primary);
	color: white;
}

.erc-avatar-preview__video-container {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: transparent;
	border: 1px solid var(--erc-border);
	margin-bottom: 1rem;
}

.erc-avatar-preview__video {
	width: 100%;
	max-height: 320px;
	display: block;
	object-fit: contain;
	background: var(--erc-bg-secondary);
}

.erc-avatar-preview__info {
	text-align: center;
	margin-bottom: 1.5rem;
}

.erc-avatar-preview__name {
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--erc-text-primary);
	margin: 0;
}

.erc-avatar-preview__actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.erc-avatar-preview__btn {
	padding: 0.875rem 1.5rem;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
}

.erc-avatar-preview__btn--primary {
	background: var(--erc-primary);
	color: white;
}

.erc-avatar-preview__btn--primary:hover {
	background: var(--erc-primary-dark);
	transform: translateY(-2px);
}

.erc-avatar-preview__btn--secondary {
	background: var(--erc-bg-secondary);
	color: var(--erc-text-primary);
	border: 1px solid var(--erc-border);
}

.erc-avatar-preview__btn--secondary:hover {
	background: var(--erc-bg-hover);
}

@media (max-width: 480px) {
	.erc-avatar-preview__actions {
		flex-direction: column;
	}

	.erc-avatar-preview__btn {
		width: 100%;
	}
}

/* === Session Picker === */
.erc-session-picker {
	padding: 2rem 0;
}

.erc-session-picker__title {
	font-size: 1.625rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: var(--erc-text-primary);
}

.erc-session-picker__back {
	background: var(--erc-bg-secondary);
	border: 1px solid var(--erc-border);
	border-radius: 8px;
	padding: 0.5rem 1rem;
	cursor: pointer;
	margin-bottom: 1.5rem;
	font-size: 0.9375rem;
	color: var(--erc-text-primary);
	transition: all 0.2s ease;
}

.erc-session-picker__back:hover {
	background: var(--erc-primary);
	color: white;
}

.erc-session-list {
	display: grid;
	gap: 1rem;
}

.erc-session-card {
	background: var(--erc-bg-secondary);
	border: 2px solid var(--erc-border);
	border-radius: 12px;
	padding: 1.5rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.erc-session-card:hover,
.erc-session-card:focus {
	border-color: var(--erc-primary);
	box-shadow: 0 4px 12px var(--erc-shadow);
}

.erc-session-card__title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--erc-text-primary);
}

.erc-session-card__description {
	font-size: 1rem;
	color: var(--erc-text-secondary);
	margin-bottom: 1rem;
	line-height: 1.5;
}

.erc-session-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.875rem;
	color: var(--erc-text-secondary);
}

.erc-session-card__meta-item {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.erc-session-card__image {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 0.75rem;
}

/* No Sessions Message */
.erc-no-sessions {
	text-align: center;
	padding: 3rem 2rem;
	background: var(--erc-bg-secondary);
	border: 2px dashed var(--erc-border);
	border-radius: 12px;
}

.erc-no-sessions__icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.erc-no-sessions__title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--erc-text-primary);
}

.erc-no-sessions__message {
	font-size: 0.9375rem;
	color: var(--erc-text-secondary);
	margin-bottom: 1.5rem;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

.erc-no-sessions__back-btn {
	background: var(--erc-primary);
	color: white;
	border: none;
	border-radius: 8px;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.erc-no-sessions__back-btn:hover {
	background: var(--erc-primary-dark, var(--erc-primary));
	transform: translateY(-2px);
	box-shadow: 0 4px 12px var(--erc-shadow);
}

/* === Session Player === */
.erc-session-player {
	max-width: 1100px;
	margin: 0 auto;
}

.erc-session-header {
	margin-bottom: 1.5rem;
	text-align: center;
}

.erc-session-header__title {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--erc-text-primary);
}

.erc-session-header__description {
	font-size: 1rem;
	color: var(--erc-text-secondary);
}

/* === Video Player === */
.erc-video-container {
	position: relative;
	width: 100%;
	max-width: 800px;
	margin: 0 auto 1rem;
	background: transparent;
	border-radius: 12px;
	overflow: hidden;
}

.erc-video {
	width: 100%;
	display: block;
}

/* Video overlay controls - hidden, using session navigation buttons instead */
.erc-video-controls,
.erc-video-container .erc-video-controls,
.erc-player .erc-video-controls,
.erc-session-player .erc-video-controls {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	position: absolute !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
}

.erc-video-controls__row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.erc-video-controls__row:last-child {
	margin-bottom: 0;
}

.erc-video-controls__button {
	background: transparent;
	border: none;
	color: white;
	padding: 0.5rem;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.2s ease;
	font-size: 1.25rem;
	line-height: 1;
}

.erc-video-controls__button:hover,
.erc-video-controls__button:focus {
	background: rgba(255, 255, 255, 0.2);
}

.erc-video-controls__button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.erc-video-controls__progress {
	flex: 1;
	height: 6px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	cursor: pointer;
	position: relative;
}

.erc-video-controls__progress-bar {
	height: 100%;
	background: var(--erc-primary);
	border-radius: 3px;
	transition: width 0.1s ease;
}

.erc-video-controls__volume {
	width: 80px;
	height: 6px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	cursor: pointer;
	position: relative;
}

.erc-video-controls__volume-bar {
	height: 100%;
	background: white;
	border-radius: 3px;
}

.erc-video-controls__time {
	color: white;
	font-size: 0.875rem;
	min-width: 100px;
	text-align: center;
}

.erc-video-controls__speed {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: white;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.875rem;
}

.erc-video-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 2rem;
	z-index: 10;
}

.erc-video-error {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.9);
	color: white;
	padding: 2rem;
	border-radius: 8px;
	text-align: center;
	z-index: 10;
}

/* === Progress Bar === */
.erc-progress-bar {
	background: var(--erc-bg-secondary);
	border-radius: 8px;
	height: 24px;
	overflow: hidden;
	margin-bottom: 1rem;
}

.erc-progress-bar__fill {
	height: 100%;
	background: var(--erc-primary);
	transition: width 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 0.75rem;
	font-weight: 600;
}

/* === Transcript === */
/* Doubled specificity for theme override */
.erc-player .erc-transcript,
.erc-transcript.erc-transcript {
	background: var(--erc-bg-secondary) !important;
	border: 1px solid var(--erc-border) !important;
	border-radius: 8px !important;
	margin-bottom: 1rem !important;
	overflow: hidden !important;
	box-shadow: none !important;
}

.erc-player .erc-transcript__toggle,
.erc-transcript__toggle.erc-transcript__toggle {
	background: #6b7280 !important;
	border: none !important;
	border-bottom: 1px solid var(--erc-border) !important;
	border-radius: 0 !important;
	padding: 0.85rem 1rem !important;
	width: 100% !important;
	text-align: left !important;
	cursor: pointer;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	line-height: 1.5 !important;
	color: white !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	display: flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
	transition: all 0.2s ease;
	min-height: auto !important;
	height: auto !important;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
}

.erc-player .erc-transcript__toggle:hover,
.erc-transcript__toggle.erc-transcript__toggle:hover {
	background: #4b5563 !important;
	color: white !important;
}

.erc-player .erc-transcript__content,
.erc-transcript__content.erc-transcript__content {
	font-size: 1.3125rem !important; /* 21px */
	font-weight: 400 !important;
	line-height: 1.8 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	padding: 1rem !important;
	max-height: 250px !important;
	overflow-y: auto !important;
	color: var(--erc-text-primary) !important;
	background: transparent !important;
}

.erc-transcript__line {
	padding: 0.75rem 1rem;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-bottom: 0.25rem;
}

.erc-transcript__line:hover {
	background: var(--erc-bg-hover);
}

.erc-transcript__line--active {
	background: var(--erc-primary-light);
	font-weight: 600;
	border-left: 4px solid var(--erc-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.erc-transcript__timestamp {
	color: var(--erc-text-secondary);
	font-size: 0.875rem;
	font-weight: 500;
	margin-right: 0.75rem;
	font-family: monospace;
}

.erc-transcript__text {
	color: var(--erc-text-primary);
}

.erc-transcript__paragraph {
	margin: 0;
	color: var(--erc-text-primary);
}

/* === Options/Responses === */
.erc-options {
	margin-top: 2rem;
	animation: slideUp 0.4s ease;
}

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

.erc-player .erc-options__title,
.erc-options__title.erc-options__title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	margin-bottom: 1rem;
	text-align: center;
	color: var(--erc-text-primary);
}

.erc-options__grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

/* Admin-defined column counts with tiered responsive capping */
.erc-options__grid--cols-1 {
	grid-template-columns: 1fr !important;
}

/* Mobile phones portrait (<480px): always 1 column */
@media (max-width: 479px) {
	.erc-options__grid,
	.erc-options__grid[class*="--cols-"] {
		grid-template-columns: 1fr !important;
		gap: 0.5rem !important;
	}
}

/* Small tablets / phones landscape (480-767px): cap at 2 cols */
@media (min-width: 480px) and (max-width: 767px) {
	.erc-options__grid:not([class*="--cols-"]) {
		grid-template-columns: repeat(2, 1fr);
	}
	.erc-options__grid--cols-2,
	.erc-options__grid--cols-3,
	.erc-options__grid--cols-4,
	.erc-options__grid--cols-5,
	.erc-options__grid--cols-6,
	.erc-options__grid--cols-7,
	.erc-options__grid--cols-8,
	.erc-options__grid--cols-9,
	.erc-options__grid--cols-10,
	.erc-options__grid--cols-11,
	.erc-options__grid--cols-12 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Tablets (768-1023px): cap at 3 cols */
@media (min-width: 768px) and (max-width: 1023px) {
	.erc-options__grid:not([class*="--cols-"]) {
		grid-template-columns: repeat(3, 1fr);
	}
	.erc-options__grid--cols-2 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.erc-options__grid--cols-3,
	.erc-options__grid--cols-4,
	.erc-options__grid--cols-5,
	.erc-options__grid--cols-6,
	.erc-options__grid--cols-7,
	.erc-options__grid--cols-8,
	.erc-options__grid--cols-9,
	.erc-options__grid--cols-10,
	.erc-options__grid--cols-11,
	.erc-options__grid--cols-12 {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

/* Desktop (1024px+): honor admin column setting fully */
@media (min-width: 1024px) {
	.erc-options__grid:not([class*="--cols-"]) {
		grid-template-columns: repeat(3, 1fr);
	}
	.erc-options__grid--cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
	.erc-options__grid--cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
	.erc-options__grid--cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
	.erc-options__grid--cols-5 { grid-template-columns: repeat(5, 1fr) !important; }
	.erc-options__grid--cols-6 { grid-template-columns: repeat(6, 1fr) !important; }
	.erc-options__grid--cols-7 { grid-template-columns: repeat(7, 1fr) !important; }
	.erc-options__grid--cols-8 { grid-template-columns: repeat(8, 1fr) !important; }
	.erc-options__grid--cols-9 { grid-template-columns: repeat(9, 1fr) !important; }
	.erc-options__grid--cols-10 { grid-template-columns: repeat(10, 1fr) !important; }
	.erc-options__grid--cols-11 { grid-template-columns: repeat(11, 1fr) !important; }
	.erc-options__grid--cols-12 { grid-template-columns: repeat(12, 1fr) !important; }
}

/* NUCLEAR OPTION - Maximum specificity to override ANY theme */
html body .erc-player .erc-options .erc-option,
html body .erc-player .erc-options .erc-option.erc-option,
html body .erc-player .erc-options button.erc-option,
html body .erc-player .erc-options__grid .erc-option,
html body .entry-content .erc-player .erc-option,
html body .wp-block-post-content .erc-player .erc-option,
html body article .erc-player .erc-option {
	font-weight: 500 !important;
	font-size: 0.875rem !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

html body .erc-player .erc-options .erc-option *,
html body .erc-player .erc-options .erc-option span,
html body .erc-player .erc-options .erc-option div,
html body .erc-player .erc-options .erc-option p,
html body .erc-player .erc-option .erc-option__label,
html body .erc-player .erc-option .erc-option__description {
	font-weight: 500 !important;
	font-size: 0.875rem !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* Option buttons - doubled specificity for theme override */
.erc-player .erc-option,
.erc-option.erc-option {
	position: relative;
	background: var(--erc-bg-secondary) !important;
	border: 2px solid var(--erc-border) !important;
	border-radius: 8px !important;
	padding: 1rem !important;
	cursor: pointer;
	text-align: center !important;
	/* Only transition hover effects - NOT background or color for instant selection */
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	color: var(--erc-text-primary) !important;
	min-height: auto !important;
	min-width: auto !important;
	height: auto !important;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
}

/* Mobile: reduce option button padding and font size */
@media (max-width: 479px) {
	.erc-player .erc-option,
	.erc-option.erc-option {
		padding: 0.625rem 0.5rem !important;
		font-size: 0.8125rem !important;
	}
}

.erc-player .erc-option:hover,
.erc-player .erc-option:focus,
.erc-option.erc-option:hover,
.erc-option.erc-option:focus {
	border-color: var(--erc-primary) !important;
	background: var(--erc-primary-light) !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px var(--erc-shadow) !important;
}

/* Hover state when already selected - maintain selected appearance */
.erc-player .erc-option--selected:hover,
.erc-player .erc-option--selected:focus,
.erc-option--selected.erc-option--selected:hover,
.erc-option--selected.erc-option--selected:focus {
	background: var(--erc-primary-dark) !important;
	border-color: var(--erc-primary-dark) !important;
	transform: translateY(-2px);
}

.erc-player .erc-option:disabled,
.erc-option.erc-option:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.erc-player .erc-option--selected,
.erc-option--selected.erc-option--selected {
	border-color: var(--erc-primary) !important;
	border-width: 3px !important;
	background: var(--erc-primary) !important;
	color: white !important;
	/* Adjust padding to compensate for thicker border */
	padding: calc(1rem - 1px) !important;
}

/* Checkmark indicator for selected options */
.erc-player .erc-option--selected::after,
.erc-option--selected.erc-option--selected::after {
	content: '';
	position: absolute;
	top: 8px;
	right: 8px;
	width: 20px;
	height: 20px;
	background: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Checkmark icon inside the circle */
.erc-player .erc-option--selected::before,
.erc-option--selected.erc-option--selected::before {
	content: '✓';
	position: absolute;
	top: 8px;
	right: 8px;
	width: 20px;
	height: 20px;
	color: var(--erc-primary);
	font-size: 12px;
	font-weight: 700;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.erc-player .erc-option__image,
.erc-option__image.erc-option__image {
	width: 100% !important;
	height: 80px !important;
	object-fit: contain !important;
	border-radius: 4px !important;
	margin: 0 auto 0.5rem auto !important;
	padding: 0 !important;
}

/* Mobile: slightly smaller option images */
@media (max-width: 479px) {
	.erc-player .erc-option__image,
	.erc-option__image.erc-option__image {
		height: 60px !important;
		margin-bottom: 0.25rem !important;
	}
}

/* Option card text protection - EXPLICIT values, not inherit */
.erc-player .erc-option span,
.erc-player .erc-option p,
.erc-player .erc-option div,
.erc-player .erc-option .erc-option__label,
.erc-player .erc-option .erc-option__description,
.erc-option.erc-option span,
.erc-option.erc-option p,
.erc-option.erc-option div,
.erc-option.erc-option .erc-option__label,
.erc-option.erc-option .erc-option__description {
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	/* No transition on color - instant change */
	transition: none !important;
}

/* Selected state text - explicit white, no transition for instant feedback */
.erc-player .erc-option--selected span,
.erc-player .erc-option--selected p,
.erc-player .erc-option--selected div,
.erc-player .erc-option--selected .erc-option__label,
.erc-player .erc-option--selected .erc-option__description,
.erc-option--selected.erc-option--selected span,
.erc-option--selected.erc-option--selected p,
.erc-option--selected.erc-option--selected div,
.erc-option--selected.erc-option--selected .erc-option__label,
.erc-option--selected.erc-option--selected .erc-option__description {
	color: white !important;
	transition: none !important;
}

/* Triple specificity for stubborn themes */
.erc-player .erc-options .erc-option span,
.erc-player .erc-options .erc-option p,
.erc-player .erc-options .erc-option div {
	font-weight: 500 !important;
}

/* File Link Options */
.erc-option--file-link {
	position: relative;
	border-style: dashed;
	background: linear-gradient(135deg, var(--erc-bg-secondary) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.erc-option--file-link:hover {
	border-color: #2563eb;
	background: linear-gradient(135deg, var(--erc-bg-secondary) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.erc-option__file-icon {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 1rem;
	opacity: 0.7;
}

.erc-option--file-link:hover .erc-option__file-icon {
	opacity: 1;
}

/* === Selection List Styles === */
/* Doubled specificity for theme override */
.erc-player .erc-selection-list,
.erc-selection-list.erc-selection-list {
	padding: 1rem 0;
}

.erc-player .erc-selection-list--empty,
.erc-selection-list--empty.erc-selection-list--empty {
	text-align: center;
	color: var(--erc-text-secondary);
	padding: 2rem;
}

/* Card Grid Layout - explicit grid properties */
.erc-player .erc-selection-list--card-grid,
.erc-selection-list--card-grid.erc-selection-list--card-grid {
	display: grid !important;
	gap: 1rem !important;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
}

/* Mobile phones portrait (<480px): 1 column, force stacking */
@media (max-width: 479px) {
	.erc-player .erc-selection-list--card-grid,
	.erc-selection-list--card-grid.erc-selection-list--card-grid {
		grid-template-columns: 1fr !important;
		gap: 0.5rem !important;
	}

	/* Force all admin column overrides to single column on mobile */
	.erc-selection-list--card-grid[class*="erc-selection-list--cols-"] {
		grid-template-columns: 1fr !important;
	}

	/* Reduce card content padding on small screens */
	.erc-player .erc-selection-card__content,
	.erc-selection-card__content.erc-selection-card__content {
		padding: 0.75rem !important;
	}

	/* Full-width action button on mobile */
	.erc-player .erc-selection-card__action,
	.erc-selection-card__action.erc-selection-card__action {
		display: flex !important;
		justify-content: center;
		width: 100%;
	}
}

/* Small tablets / phones landscape (480-767px): cap at 2 cols */
@media (min-width: 480px) and (max-width: 767px) {
	.erc-player .erc-selection-list--card-grid,
	.erc-selection-list--card-grid.erc-selection-list--card-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.erc-selection-list--cols-1 { grid-template-columns: 1fr !important; }
	.erc-selection-list--cols-2,
	.erc-selection-list--cols-3,
	.erc-selection-list--cols-4,
	.erc-selection-list--cols-5,
	.erc-selection-list--cols-6 {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

/* Tablets (768-1023px): cap at 3 cols */
@media (min-width: 768px) and (max-width: 1023px) {
	.erc-player .erc-selection-list--card-grid,
	.erc-selection-list--card-grid.erc-selection-list--card-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
	.erc-selection-list--cols-1 { grid-template-columns: 1fr !important; }
	.erc-selection-list--cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
	.erc-selection-list--cols-3,
	.erc-selection-list--cols-4,
	.erc-selection-list--cols-5,
	.erc-selection-list--cols-6 {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

/* Desktop (1024px+): honor admin column setting fully */
@media (min-width: 1024px) {
	.erc-player .erc-selection-list--card-grid,
	.erc-selection-list--card-grid.erc-selection-list--card-grid {
		grid-template-columns: repeat(3, 1fr) !important;
	}
	.erc-selection-list--cols-1 { grid-template-columns: 1fr !important; }
	.erc-selection-list--cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
	.erc-selection-list--cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
	.erc-selection-list--cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
	.erc-selection-list--cols-5 { grid-template-columns: repeat(5, 1fr) !important; }
	.erc-selection-list--cols-6 { grid-template-columns: repeat(6, 1fr) !important; }
}

/* Selection Card - explicit border/padding */
.erc-player .erc-selection-card,
.erc-selection-card.erc-selection-card {
	display: block !important;
	flex-direction: column !important;
	background: var(--erc-bg-secondary);
	border: 2px solid var(--erc-border) !important;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	cursor: default;
	padding: 0;
	margin: 0;
	min-width: 0;
	box-sizing: border-box;
}

.erc-player .erc-selection-card--has-file,
.erc-selection-card--has-file.erc-selection-card--has-file {
	cursor: pointer;
}

.erc-player .erc-selection-card:hover,
.erc-selection-card.erc-selection-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px var(--erc-shadow);
	border-color: var(--erc-primary) !important;
}

.erc-player .erc-selection-card__image,
.erc-selection-card__image.erc-selection-card__image {
	width: 100% !important;
	min-height: 100px;
	max-height: 160px;
	height: auto;
	overflow: visible;
	background: var(--erc-bg-tertiary, #f0f0f0);
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-width: 0;
	box-sizing: border-box;
}

.erc-player .erc-selection-card__image img,
.erc-selection-card__image.erc-selection-card__image img {
	max-width: 100%;
	max-height: 160px;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
	display: block;
}

.erc-player .erc-selection-card:hover .erc-selection-card__image img {
	transform: scale(1.05);
}

.erc-player .erc-selection-card__content,
.erc-selection-card__content.erc-selection-card__content {
	padding: 1rem !important;
	display: block !important;
	min-width: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.erc-player .erc-selection-card__title,
.erc-selection-card__title.erc-selection-card__title {
	font-size: 1rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	color: var(--erc-text-primary);
	margin: 0 0 0.5rem 0 !important;
	display: block !important;
	text-align: center !important;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal !important;
}

.erc-player .erc-selection-card__description,
.erc-selection-card__description.erc-selection-card__description {
	font-size: 0.875rem !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: var(--erc-text-secondary);
	margin: 0 0 0.75rem 0 !important;
	display: block !important;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal !important;
}

.erc-player .erc-selection-card__action,
.erc-selection-card__action.erc-selection-card__action {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem !important;
	background: var(--erc-primary);
	color: white;
	border: none !important;
	border-radius: 6px;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	cursor: pointer;
	transition: all 0.2s ease;
}

.erc-player .erc-selection-card__action:hover,
.erc-selection-card__action.erc-selection-card__action:hover {
	background: var(--erc-primary-dark, #1d4ed8);
	transform: scale(1.02);
}

.erc-player .erc-selection-card__action-icon,
.erc-selection-card__action-icon.erc-selection-card__action-icon {
	font-size: 1rem !important;
}

/* Stacked Rows Layout */
.erc-selection-list--stacked-rows {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.erc-selection-row {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem;
	background: var(--erc-bg-secondary);
	border: 2px solid var(--erc-border);
	border-radius: 12px;
	transition: all 0.3s ease;
	min-width: 0;
	box-sizing: border-box;
}

.erc-selection-row--has-file {
	cursor: pointer;
}

.erc-selection-row:hover {
	transform: translateX(4px);
	box-shadow: 0 4px 12px var(--erc-shadow);
	border-color: var(--erc-primary);
}

.erc-selection-row__image {
	flex-shrink: 0;
	width: auto;
	min-width: 80px;
	max-width: 120px;
	height: auto;
	min-height: 80px;
	max-height: 100px;
	border-radius: 8px;
	overflow: visible;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
}

.erc-selection-row__image img {
	max-width: 100%;
	max-height: 100px;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.erc-selection-row:hover .erc-selection-row__image img {
	transform: scale(1.1);
}

.erc-selection-row__content {
	flex: 1;
	min-width: 0;
}

.erc-selection-row__title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--erc-text-primary);
	margin: 0 0 0.25rem 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
	white-space: normal !important;
}

.erc-selection-row__description {
	font-size: 0.875rem;
	color: var(--erc-text-secondary);
	margin: 0;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.erc-selection-row__action {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 1rem;
	background: var(--erc-primary);
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.erc-selection-row__action:hover {
	background: var(--erc-primary-dark, #1d4ed8);
}

/* Stacked rows mobile: stack vertically */
@media (max-width: 479px) {
	.erc-selection-row {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
		padding: 0.75rem;
	}

	.erc-selection-row__image {
		max-width: 100%;
		min-width: 0;
		align-self: center;
	}

	.erc-selection-row__action {
		width: 100%;
		justify-content: center;
	}
}

/* Compact List Layout */
.erc-selection-list--compact {
	padding: 0;
}

.erc-selection-compact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.erc-selection-compact-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--erc-border);
	transition: all 0.2s ease;
}

.erc-selection-compact-item:last-child {
	border-bottom: none;
}

.erc-selection-compact-item--has-file {
	cursor: pointer;
}

.erc-selection-compact-item:hover {
	background: var(--erc-primary-light, rgba(37, 99, 235, 0.05));
	padding-left: 1.25rem;
}

.erc-selection-compact-item__icon {
	flex-shrink: 0;
	width: auto;
	min-width: 32px;
	max-width: 60px;
	height: auto;
	min-height: 32px;
	max-height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	color: white;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 600;
	overflow: visible;
}

/* Keep blue background only for checkmark fallback (no image) */
.erc-selection-compact-item__icon:not(:has(img)) {
	width: 32px;
	height: 32px;
	background: var(--erc-primary);
	border-radius: 50%;
}

.erc-selection-compact-item__icon img {
	max-width: 100%;
	max-height: 50px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.erc-selection-compact-item__label {
	flex: 1;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--erc-text-primary);
}

.erc-selection-compact-item__action {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--erc-bg-secondary);
	border: 1px solid var(--erc-border);
	border-radius: 6px;
	cursor: pointer;
	font-size: 1rem;
	transition: all 0.2s ease;
}

.erc-selection-compact-item__action:hover {
	background: var(--erc-primary);
	border-color: var(--erc-primary);
}

.erc-option--file-link:hover .erc-option__file-icon {
	opacity: 1;
}

/* === Rating Scale === */
.erc-rating {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.erc-rating__button {
	width: 48px;
	height: 48px;
	background: var(--erc-bg-secondary);
	border: 2px solid var(--erc-border);
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--erc-text-primary);
	transition: all 0.2s ease;
}

.erc-rating__button:hover,
.erc-rating__button:focus {
	border-color: var(--erc-primary);
	background: var(--erc-primary-light);
	transform: scale(1.1);
}

.erc-rating__button--selected {
	background: var(--erc-primary);
	border-color: var(--erc-primary);
	color: white;
}

/* === Navigation === */
.erc-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--erc-border);
}

.erc-nav-button {
	background: var(--erc-primary);
	border: none;
	border-radius: 8px;
	padding: 0.75rem 1.5rem;
	color: white;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.erc-nav-button:hover,
.erc-nav-button:focus {
	background: var(--erc-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px var(--erc-shadow);
}

.erc-nav-button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.erc-nav-button--secondary {
	background: var(--erc-bg-secondary);
	color: var(--erc-text-primary);
	border: 1px solid var(--erc-border);
}

.erc-nav-button--secondary:hover {
	background: var(--erc-bg-hover);
}

.erc-current-step {
	font-size: 0.875rem;
	color: var(--erc-text-secondary);
}

/* === Completion Screen === */
.erc-completion {
	text-align: center;
	padding: 3rem 1rem;
	animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.erc-completion__avatar {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 1.5rem;
}

.erc-completion__title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: var(--erc-primary);
}

.erc-completion__message {
	font-size: 1.125rem;
	color: var(--erc-text-secondary);
	margin-bottom: 2rem;
}

.erc-completion__stats {
	background: var(--erc-bg-secondary);
	border-radius: 8px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.erc-completion__stat {
	text-align: center;
}

.erc-completion__stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--erc-primary);
	display: block;
}

.erc-completion__stat-label {
	font-size: 0.875rem;
	color: var(--erc-text-secondary);
}

.erc-completion__stat-icon {
	font-size: 1.75rem;
	display: block;
	margin-bottom: 0.5rem;
}

/* Achievement Badges */
.erc-completion__badges {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.erc-completion__badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: 2px solid #dee2e6;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	min-width: 120px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.erc-completion__badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.erc-completion__badge-icon {
	font-size: 2rem;
	margin-bottom: 0.5rem;
	animation: badge-bounce 0.6s ease-out;
}

@keyframes badge-bounce {
	0% { transform: scale(0) rotate(-20deg); }
	60% { transform: scale(1.2) rotate(10deg); }
	100% { transform: scale(1) rotate(0deg); }
}

.erc-completion__badge-title {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--erc-text, #1a1a1a);
	margin-bottom: 0.25rem;
}

.erc-completion__badge-desc {
	font-size: 0.75rem;
	color: var(--erc-text-secondary, #666);
	text-align: center;
}

@media (max-width: 480px) {
	.erc-completion__badges {
		gap: 0.75rem;
	}

	.erc-completion__badge {
		min-width: 100px;
		padding: 0.75rem 1rem;
	}

	.erc-completion__badge-icon {
		font-size: 1.5rem;
	}

	.erc-completion__badge-title {
		font-size: 0.75rem;
	}

	.erc-completion__badge-desc {
		font-size: 0.625rem;
	}
}

.erc-completion__actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 400px;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.erc-completion__actions {
		flex-direction: row;
	}
}

/* User Practice Summary Section */
.erc-completion__community {
	margin-top: 2rem;
}

.erc-completion__community-label {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--erc-text-secondary, #666);
	margin-bottom: 0.75rem;
}

.erc-completion__stats--community {
	background: var(--erc-bg-tertiary, #f0f4f8);
	border: 1px solid var(--erc-border, #e2e8f0);
}

/* Completion Video */
.erc-completion__video {
	position: relative;
	width: 100%;
	max-width: 640px;
	margin: 0 auto 2rem auto;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	background: #000;
}

.erc-completion__video iframe,
.erc-completion__video video {
	width: 100%;
	aspect-ratio: 16 / 9;
	display: block;
}

.erc-completion__video video {
	background: #000;
}

@media (max-width: 768px) {
	.erc-completion__video {
		max-width: 100%;
		margin-bottom: 1.5rem;
		border-radius: 8px;
	}
}

/* === Crisis Resources === */
.erc-crisis {
	background: #fff3cd;
	border: 2px solid #ffc107;
	border-radius: 8px;
	padding: 2rem;
	margin: 2rem 0;
	text-align: center;
}

.erc-crisis__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #856404;
	margin-bottom: 1rem;
}

.erc-crisis__message {
	font-size: 1rem;
	color: #856404;
	margin-bottom: 1.5rem;
}

.erc-crisis__contacts {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.erc-crisis__contact {
	background: white;
	border-radius: 6px;
	padding: 1rem;
	font-weight: 600;
}

.erc-crisis__actions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 400px;
	margin: 0 auto;
}

/* === Loading States === */
.erc-loading {
	text-align: center;
	padding: 3rem 1rem;
	color: var(--erc-text-secondary);
}

.erc-spinner {
	width: 48px;
	height: 48px;
	border: 4px solid var(--erc-border);
	border-top-color: var(--erc-primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem;
}

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

/* === Confetti Animation === */
.erc-confetti-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
	z-index: 9999;
}

.erc-confetti-piece {
	position: absolute;
	top: -20px;
	border-radius: 2px;
	animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
	0% {
		top: -20px;
		opacity: 1;
		transform: translateX(0) rotateZ(0deg);
	}
	25% {
		transform: translateX(15px) rotateZ(90deg);
	}
	50% {
		transform: translateX(-15px) rotateZ(180deg);
	}
	75% {
		transform: translateX(15px) rotateZ(270deg);
	}
	100% {
		top: 100vh;
		opacity: 0;
		transform: translateX(-15px) rotateZ(360deg);
	}
}

/* === Utilities === */
.erc-hidden {
	display: none !important;
}

.erc-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* === Focus Styles === */
.erc-player *:focus,
.erc-dashboard *:focus {
	outline: 2px solid var(--erc-primary);
	outline-offset: 2px;
}

/* === Scrollbar === */
.erc-transcript::-webkit-scrollbar {
	width: 8px;
}

.erc-transcript::-webkit-scrollbar-track {
	background: var(--erc-bg-primary);
	border-radius: 4px;
}

.erc-transcript::-webkit-scrollbar-thumb {
	background: var(--erc-border);
	border-radius: 4px;
}

.erc-transcript::-webkit-scrollbar-thumb:hover {
	background: var(--erc-primary);
}

/* === Rating with Images === */
.erc-rating__button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
}

.erc-rating__image {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 4px;
}

.erc-rating__label {
	font-size: 0.875rem;
	font-weight: 500;
}

/* Expand rating buttons when they have images */
.erc-rating__button:has(.erc-rating__image) {
	width: auto;
	height: auto;
	min-width: 80px;
	padding: 0.75rem;
	border-radius: 8px;
}

/* === Session Navigation Buttons === */
/* Doubled specificity to override theme styles */
.erc-player .erc-session-navigation,
.erc-session-navigation.erc-session-navigation {
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 1rem !important;
	padding: 1rem 0 !important;
	margin: 1rem auto !important;
	max-width: 600px !important;
	background: var(--erc-bg-secondary) !important;
	border-radius: 12px !important;
	border: 1px solid var(--erc-border) !important;
	box-shadow: none !important;
}

.erc-player .erc-session-nav-btn,
.erc-session-nav-btn.erc-session-nav-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.5rem !important;
	padding: 0.75rem 1.5rem !important;
	border: 2px solid var(--erc-border) !important;
	border-radius: 8px !important;
	background: var(--erc-bg-primary) !important;
	color: var(--erc-text-primary) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	line-height: 1.5 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
	min-height: auto !important;
	min-width: auto !important;
	height: auto !important;
	max-height: none !important;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
}

.erc-player .erc-session-nav-btn:hover:not(:disabled),
.erc-session-nav-btn.erc-session-nav-btn:hover:not(:disabled) {
	border-color: var(--erc-primary);
	background: var(--erc-primary-light);
	transform: translateY(-2px);
}

.erc-player .erc-session-nav-btn:disabled,
.erc-session-nav-btn.erc-session-nav-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
}

.erc-player .erc-session-nav-btn--play,
.erc-session-nav-btn--play.erc-session-nav-btn--play {
	background: var(--erc-primary) !important;
	border-color: var(--erc-primary) !important;
	color: white !important;
	padding: 0.75rem 2rem !important;
}

.erc-player .erc-session-nav-btn--play:hover:not(:disabled),
.erc-session-nav-btn--play.erc-session-nav-btn--play:hover:not(:disabled) {
	background: var(--erc-primary-dark, #1565c0);
	border-color: var(--erc-primary-dark, #1565c0);
}

.erc-session-nav-btn--play.is-playing .erc-session-nav-btn__icon {
	display: inline;
}

.erc-player .erc-session-nav-btn__icon,
.erc-session-nav-btn__icon.erc-session-nav-btn__icon {
	font-size: 1.25rem;
	line-height: 1;
}

.erc-player .erc-session-nav-btn__label,
.erc-session-nav-btn__label.erc-session-nav-btn__label {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: normal;
	text-transform: none;
}

/* === Transcript Expanded/Collapsed States === */
.erc-transcript[data-expanded="true"] .erc-transcript__content {
	display: block;
}

.erc-transcript[data-expanded="true"] .erc-transcript__toggle {
	border-bottom: 1px solid var(--erc-border);
}

.erc-transcript[data-expanded="false"] .erc-transcript__content {
	display: none;
}

.erc-transcript[data-expanded="false"] .erc-transcript__toggle {
	border-bottom: none;
}

.erc-transcript__toggle-icon {
	transition: transform 0.2s ease;
	font-size: 0.875rem;
}

.erc-transcript[data-expanded="false"] .erc-transcript__toggle-icon {
	transform: rotate(-90deg);
}

/* === Options State === */
/* Options are always clickable - users can select while video plays or after */
.erc-options .erc-option {
	opacity: 1;
	cursor: pointer;
	pointer-events: auto;
}

/* === Responsive Adjustments === */
@media (max-width: 480px) {
	.erc-session-navigation {
		flex-direction: column;
		gap: 0.5rem;
	}

	.erc-session-nav-btn {
		width: 100%;
		justify-content: center;
	}
}

/* === Completed Session Choice === */
.erc-completed-choice {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem 2rem;
	text-align: center;
	min-height: 400px;
}

.erc-completed-choice-icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--erc-success, #10b981), var(--erc-success-dark, #059669));
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.erc-completed-choice-icon .material-symbols-outlined {
	font-size: 40px;
	color: #fff;
}

.erc-completed-choice-title {
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--erc-text-primary);
	margin: 0 0 0.5rem 0;
}

.erc-completed-choice-date {
	font-size: 0.95rem;
	color: var(--erc-text-secondary);
	margin: 0 0 1rem 0;
}

.erc-completed-choice-message {
	font-size: 1.1rem;
	color: var(--erc-text-secondary);
	margin: 0 0 2rem 0;
	max-width: 400px;
}

.erc-completed-choice-buttons {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: center;
}

.erc-completed-choice-buttons .erc-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	border: none;
}

.erc-completed-choice-buttons .erc-btn .material-symbols-outlined {
	font-size: 20px;
}

.erc-completed-choice-buttons .erc-btn-primary {
	background: linear-gradient(135deg, var(--erc-primary, #3b82f6), var(--erc-primary-dark, #2563eb));
	color: #fff;
	box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.erc-completed-choice-buttons .erc-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.erc-completed-choice-buttons .erc-btn-secondary {
	background: var(--erc-bg-secondary, #f3f4f6);
	color: var(--erc-text-primary);
	border: 1px solid var(--erc-border, #e5e7eb);
}

.erc-completed-choice-buttons .erc-btn-secondary:hover {
	background: var(--erc-bg-tertiary, #e5e7eb);
}

@media (max-width: 480px) {
	.erc-completed-choice {
		padding: 2rem 1rem;
	}

	.erc-completed-choice-buttons {
		flex-direction: column;
		width: 100%;
	}

	.erc-completed-choice-buttons .erc-btn {
		width: 100%;
		justify-content: center;
	}
}

