/* NarratiaVerse: follow, like, report, Library and comment actions. */

.nv-follow-btn[aria-pressed="true"],
.nv-like-btn[aria-pressed="true"] {
	color: var(--primary-500);
	border-color: currentColor;
}

.nv-follow-btn i,
.nv-like-btn i,
.nv-report-btn i {
	margin-right: 0.35em;
}

.nv-report-btn i:only-child {
	margin-right: 0;
}

.nv-creator__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.75rem 0;
}

.nv-chapter-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 2rem 0 1rem;
}

.nv-comment-action {
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: inherit;
	font: inherit;
	opacity: 0.8;
}

.nv-comment-action:hover,
.nv-comment-action:focus-visible {
	opacity: 1;
	text-decoration: underline;
}

/* Report dialog */
.nv-report-dialog {
	width: min(92vw, 440px);
	max-height: 90vh;
	overflow: auto;
	border: 0;
	border-radius: 14px;
	padding: 1.25rem;
	background: var(--bg-800, #161A22);
	color: var(--fg-300, #E8EAF0);
	box-shadow: 0 20px 60px rgb(0 0 0 / 45%);
}

.nv-report-dialog::backdrop {
	background: rgb(0 0 0 / 60%);
}

.nv-report-dialog__title {
	font-size: 1.15rem;
	margin: 0 0 0.75rem;
}

.nv-report-dialog__what {
	display: block;
	font-size: 0.85rem;
	font-weight: 400;
	opacity: 0.75;
	margin-top: 0.2rem;
}

.nv-report-reasons {
	border: 0;
	padding: 0;
	margin: 0 0 0.75rem;
	display: grid;
	gap: 0.15rem;
}

.nv-report-reasons legend {
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.nv-report-reason {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.45rem 0.5rem;
	border-radius: 8px;
	cursor: pointer;
	min-height: 44px;
}

.nv-report-reason input {
	appearance: auto;
	-webkit-appearance: radio;
	accent-color: var(--primary-500);
	width: 18px;
	height: 18px;
	margin: 0;
	flex: none;
	opacity: 1;
}

.nv-report-reason:hover {
	background: rgb(255 255 255 / 6%);
}

.nv-report-hint {
	font-size: 0.85rem;
	margin: 0 0 0.75rem;
	padding: 0.5rem 0.75rem;
	border-left: 3px solid var(--primary-500);
	background: rgb(255 255 255 / 4%);
}

.nv-report-note span {
	display: block;
	font-size: 0.9rem;
	margin-bottom: 0.3rem;
}

.nv-report-note textarea {
	width: 100%;
	box-sizing: border-box;
}

.nv-report-status {
	min-height: 1.4em;
	font-size: 0.9rem;
	margin: 0.5rem 0;
}

.nv-report-dialog__buttons {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
}

.nv-toast {
	position: fixed;
	left: 50%;
	bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
	transform: translate(-50%, 20px);
	max-width: min(90vw, 420px);
	padding: 0.7rem 1rem;
	border-radius: 10px;
	background: #0B0D12;
	color: #fff;
	font-size: 0.9rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 100000;
}

.nv-toast._show {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* Library */
.nv-library__section {
	margin: 0 0 2rem;
}

.nv-library__heading {
	font-size: 1.25rem;
	margin: 0 0 0.75rem;
}

.nv-library__heading--follows {
	margin-top: 0.5rem;
}

.nv-library__empty,
.nv-library__hint {
	opacity: 0.75;
	font-size: 0.9rem;
	margin: 0 0 0.75rem;
}

.nv-continue {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 0.75rem;
}

.nv-continue__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem;
	border-radius: 12px;
	background: var(--bg-800, rgb(255 255 255 / 5%));
	color: inherit;
	text-decoration: none;
	min-height: 72px;
}

.nv-continue__link:hover,
.nv-continue__link:focus-visible {
	outline: 2px solid var(--primary-500);
	outline-offset: 0;
}

.nv-continue__thumb {
	width: 52px;
	height: 70px;
	flex: none;
	object-fit: cover;
	border-radius: 6px;
}

.nv-continue__thumb._empty {
	display: grid;
	place-items: center;
	background: rgb(255 255 255 / 6%);
	font-size: 1.25rem;
}

.nv-continue__text {
	display: grid;
	min-width: 0;
	flex: 1;
}

.nv-continue__story,
.nv-continue__chapter {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nv-continue__chapter,
.nv-continue__where {
	font-size: 0.85rem;
	opacity: 0.8;
}

.nv-continue__go {
	flex: none;
	font-weight: 700;
	color: var(--primary-500);
	font-size: 0.9rem;
}

.nv-creator-chips {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nv-creator-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.3rem 0.8rem 0.3rem 0.3rem;
	border-radius: 999px;
	background: var(--bg-800, rgb(255 255 255 / 5%));
	color: inherit;
	text-decoration: none;
	min-height: 44px;
}

.nv-creator-chip img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

@media (max-width: 480px) {
	.nv-continue__go {
		font-size: 0;
	}

	.nv-continue__go i {
		font-size: 1rem;
	}
}
