/* PNT Bedtime Story Assembly + Player + Kid Recording — shared CSS */

#pnt-segment-builder {
	font-size: 13px;
}

.pnt-seg-row .pnt-seg-id,
.pnt-seg-row .pnt-seg-character {
	padding: 4px 6px;
	font-size: 12px;
}

.pnt-seg-row textarea {
	font-family: inherit;
	font-size: 12px;
	padding: 6px;
}

.pnt-seg-row input[type="text"] {
	padding: 4px 6px;
	font-size: 12px;
}

.pnt-seg-row .pnt-seg-up,
.pnt-seg-row .pnt-seg-down,
.pnt-seg-row .pnt-seg-del {
	padding: 0 8px;
	min-height: 26px;
	line-height: 24px;
}

#pnt-assembly-progress {
	font-size: 12px;
}

/* Bedtime story player (front-end) */

.pnt-bedtime-player {
	background: #1a2a44;
	color: #fff;
	border-radius: 12px;
	padding: 28px;
	margin: 24px 0;
	max-width: 720px;
}

.pnt-bedtime-player .pnt-bp-title {
	font-size: 1.6em;
	font-weight: 600;
	margin: 0 0 4px;
}

.pnt-bedtime-player .pnt-bp-subtitle {
	font-size: 0.95em;
	opacity: 0.8;
	margin-bottom: 20px;
}

.pnt-bedtime-player .pnt-bp-controls {
	display: flex;
	align-items: center;
	gap: 16px;
	background: rgba(255,255,255,0.08);
	padding: 16px;
	border-radius: 8px;
}

.pnt-bedtime-player .pnt-bp-play {
	background: #e0660d;
	border: none;
	color: #fff;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pnt-bedtime-player .pnt-bp-play:hover {
	background: #f57711;
}

.pnt-bedtime-player .pnt-bp-progress-track {
	flex: 1;
	height: 6px;
	background: rgba(255,255,255,0.15);
	border-radius: 3px;
	position: relative;
	cursor: pointer;
}

.pnt-bedtime-player .pnt-bp-progress-fill {
	background: #e0660d;
	height: 100%;
	width: 0;
	border-radius: 3px;
	transition: width 0.1s linear;
}

.pnt-bedtime-player .pnt-bp-time {
	font-size: 0.85em;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
	min-width: 90px;
	text-align: right;
}

.pnt-bedtime-player .pnt-bp-segment-marker {
	position: absolute;
	top: -2px;
	height: 10px;
	width: 2px;
	background: rgba(255,255,255,0.3);
}

.pnt-bedtime-player .pnt-bp-kid-status {
	margin-top: 16px;
	font-size: 0.9em;
	opacity: 0.85;
}

.pnt-bedtime-player .pnt-bp-kid-status .pnt-bp-kid-name {
	color: #f5b14a;
	font-weight: 600;
}

/* Kid recording form */

.pnt-kid-recording {
	background: #FFF8F0;
	border: 2px solid #e0660d;
	border-radius: 12px;
	padding: 24px;
	max-width: 600px;
	margin: 24px auto;
}

.pnt-kid-recording h3 {
	margin-top: 0;
	color: #0e3216;
}

.pnt-kid-recording .pnt-kr-line {
	background: #fff;
	border: 1px dashed #e0660d;
	border-radius: 8px;
	padding: 16px;
	font-size: 1.2em;
	font-weight: 600;
	color: #0e3216;
	text-align: center;
	margin: 16px 0;
}

.pnt-kid-recording .pnt-kr-character-info {
	background: rgba(224,102,13,0.1);
	border-radius: 6px;
	padding: 10px 14px;
	margin-bottom: 12px;
	font-size: 0.95em;
}

.pnt-kid-recording .pnt-kr-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.pnt-kid-recording button {
	background: #e0660d;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 1em;
	cursor: pointer;
	font-weight: 600;
}

.pnt-kid-recording button:hover:not(:disabled) {
	background: #f57711;
}

.pnt-kid-recording button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pnt-kid-recording button.pnt-kr-secondary {
	background: #999;
}

.pnt-kid-recording .pnt-kr-status {
	margin-top: 14px;
	font-size: 0.95em;
	color: #0e3216;
}

.pnt-kid-recording .pnt-kr-recording-indicator {
	display: inline-block;
	width: 12px;
	height: 12px;
	background: #dc3232;
	border-radius: 50%;
	animation: pnt-kr-pulse 1s infinite;
	margin-right: 8px;
	vertical-align: middle;
}

@keyframes pnt-kr-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.3; }
}

.pnt-kid-recording audio {
	width: 100%;
	margin-top: 12px;
}

/* Invitation banner (on bedtime story player when family has unfulfilled invitation) */

.pnt-bedtime-invitation {
	background: linear-gradient(135deg, #e0660d, #f57711);
	color: #fff;
	padding: 20px 24px;
	border-radius: 10px;
	margin: 20px 0;
	display: flex;
	align-items: center;
	gap: 16px;
}

.pnt-bedtime-invitation .pnt-bi-icon {
	font-size: 2em;
}

.pnt-bedtime-invitation .pnt-bi-text {
	flex: 1;
}

.pnt-bedtime-invitation .pnt-bi-text strong {
	display: block;
	font-size: 1.1em;
	margin-bottom: 4px;
}

.pnt-bedtime-invitation a.pnt-bi-button {
	background: #fff;
	color: #e0660d;
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
}
