.overtop-books__empty {
	margin: 0;
	padding: 16px;
	border-radius: 10px;
	background: var(--overtop-card);
	color: var(--overtop-muted);
	font-size: 14px;
	line-height: 1.6;
}

.overtop-books {
	padding-top: 28px;
	padding-bottom: 80px;
	color: var(--overtop-ink);
	font-family: var(--overtop-sans);
}

.overtop-books__inner {
	width: 100%;
	margin: 0;
}

.overtop-books__inner--detail {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 36px 40px;
	align-items: start;
}

.overtop-books__sidebar {
	position: sticky;
	top: 96px;
	padding-top: 4px;
}

.overtop-books__sidebar-label {
	margin: 0 0 14px;
	color: var(--overtop-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.overtop-books__sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.overtop-books__sidebar-link {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--overtop-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.overtop-books__sidebar-link:hover {
	background: rgba(47, 111, 235, 0.08);
	color: var(--overtop-blue);
}

.overtop-books__sidebar-link.is-active {
	background: rgba(47, 111, 235, 0.12);
	color: var(--overtop-blue);
	font-weight: 700;
}

.overtop-books__main {
	min-width: 0;
}

.overtop-books__intro {
	margin: 10px 0 0;
	color: var(--overtop-muted);
	font-size: 15px;
	line-height: 1.6;
}

.overtop-books__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--overtop-muted);
	font-size: 13px;
}

.overtop-books__breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.overtop-books__breadcrumb a:hover {
	color: var(--overtop-blue);
}

.overtop-books__back-link {
	color: var(--overtop-blue);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.overtop-books__back-link:hover {
	text-decoration: underline;
}

.overtop-books__filters {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 28px;
}

.overtop-books__filter-row {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.overtop-books__filter-row.is-collapsed {
	display: none;
}

.overtop-books__filter-label {
	color: var(--overtop-muted);
	font-size: 13px;
	font-weight: 600;
}

.overtop-books__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.overtop-books__chip {
	padding: 8px 14px;
	border: 1px solid rgba(26, 26, 26, 0.12);
	border-radius: 999px;
	background: var(--overtop-card);
	color: var(--overtop-ink);
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.overtop-books__chip:hover {
	border-color: rgba(47, 111, 235, 0.35);
	color: var(--overtop-blue);
}

.overtop-books__chip.is-active {
	border-color: var(--overtop-blue);
	background: rgba(47, 111, 235, 0.1);
	color: var(--overtop-blue);
	font-weight: 600;
}

.overtop-books__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 20px 18px;
}

.overtop-books__empty-grid {
	margin: 8px 0 0;
	color: var(--overtop-muted);
	font-size: 14px;
}

.overtop-book-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.overtop-book-card[hidden],
.overtop-books__chip[hidden],
.overtop-books__filter-row[hidden],
.overtop-books__empty-grid[hidden] {
	display: none !important;
}

.overtop-book-card:hover .overtop-book-card__title {
	color: var(--overtop-blue);
}

.overtop-book-card__cover {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: var(--overtop-card);
	box-shadow: var(--overtop-shadow);
}

.overtop-book-card__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	padding: 4px 8px;
	border-radius: 4px;
	background: #ff2e00;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
	box-shadow: 0 2px 8px rgba(255, 46, 0, 0.45);
}

.overtop-book-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 7;
	object-fit: cover;
}

.overtop-book-placeholder {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: 5 / 7;
	padding: 16px 14px 18px 18px;
	overflow: hidden;
	border: 1px solid rgba(40, 32, 24, 0.08);
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
		linear-gradient(165deg, #f7efe4, #e8d9c4);
}

.overtop-book-placeholder__spine {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 7px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(0, 0, 0, 0.12));
	box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.35);
}

.overtop-book-placeholder__mark {
	position: absolute;
	top: 12px;
	left: 16px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: rgba(26, 26, 26, 0.45);
}

.overtop-book-placeholder__title {
	display: -webkit-box;
	max-height: 4.2em;
	overflow: hidden;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: #1a1a1a;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.overtop-book-placeholder--peach {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
		linear-gradient(165deg, #f8d4c4, #e8a58c);
}
.overtop-book-placeholder--sage {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
		linear-gradient(165deg, #d7e6c8, #9fb892);
}
.overtop-book-placeholder--lavender {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
		linear-gradient(165deg, #e2d6f2, #b9a6d4);
}
.overtop-book-placeholder--sand {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
		linear-gradient(165deg, #f0dfc0, #d2b684);
}
.overtop-book-placeholder--mint {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
		linear-gradient(165deg, #d4ebdc, #8fbfa8);
}
.overtop-book-placeholder--rose {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
		linear-gradient(165deg, #f3cdd2, #d98b96);
}
.overtop-book-placeholder--sky {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
		linear-gradient(165deg, #d4e0f2, #8aa4cc);
}
.overtop-book-placeholder--clay {
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, 0.5), transparent 55%),
		linear-gradient(165deg, #ebd0b8, #c4926c);
}

.overtop-book-placeholder--popular {
	height: 100%;
	aspect-ratio: auto;
	min-height: 100%;
}

.overtop-book-detail__placeholder-wrap {
	display: block;
	width: min(220px, 58%);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.overtop-book-detail__placeholder-wrap .overtop-book-placeholder {
	aspect-ratio: 5 / 7;
	min-height: 0;
	padding: 22px 18px 26px 22px;
}

.overtop-book-detail__placeholder-wrap .overtop-book-placeholder__title {
	font-size: 16px;
	line-height: 1.35;
}

.overtop-book-card__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

.overtop-book-detail {
	display: grid;
	grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
	gap: 40px 56px;
	align-items: start;
}

.overtop-book-detail__media {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.overtop-book-detail__stage {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 28px 24px;
	background: #ececec;
}

.overtop-book-detail__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	padding: 6px 10px;
	border-radius: 4px;
	background: #ff2e00;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
	box-shadow: 0 2px 10px rgba(255, 46, 0, 0.45);
}

.overtop-book-detail__image {
	display: block;
	width: auto;
	max-width: min(100%, 280px);
	max-height: min(48vh, 380px);
	height: auto;
	object-fit: contain;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.overtop-book-detail__gallery-toggle {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1a1a1a;
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.overtop-book-detail__gallery-toggle:hover {
	opacity: 0.65;
}

.overtop-book-detail__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.overtop-book-detail__thumb {
	overflow: hidden;
	width: 64px;
	padding: 0;
	border: 1px solid transparent;
	background: #ececec;
	cursor: pointer;
}

.overtop-book-detail__thumb img {
	display: block;
	width: 100%;
	aspect-ratio: 5 / 7;
	object-fit: cover;
}

.overtop-book-detail__thumb.is-active,
.overtop-book-detail__thumb:hover {
	border-color: #1a1a1a;
}

.overtop-book-detail__body {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
	min-width: 0;
	padding-top: 8px;
}

.overtop-book-detail__title {
	margin: 0;
	color: var(--overtop-ink);
	font-family: var(--overtop-sans);
	font-size: clamp(26px, 3.2vw, 34px);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.01em;
}

.overtop-book-detail__credits {
	margin: 2px 0 0;
}

.overtop-book-detail__credit-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}

.overtop-book-detail__credit {
	display: grid;
	grid-template-columns: 4em minmax(0, 1fr);
	column-gap: 14px;
	align-items: baseline;
	margin: 0;
}

.overtop-book-detail__credit dt {
	margin: 0;
	color: var(--overtop-muted);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.overtop-book-detail__credit dd {
	margin: 0;
	color: var(--overtop-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
}

.overtop-book-detail__credit a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease;
}

.overtop-book-detail__credit a:hover {
	border-bottom-color: rgba(26, 26, 26, 0.35);
}

.overtop-book-detail__meta-line {
	margin: 0;
	color: #5c5c5c;
	font-size: 15px;
	line-height: 1.6;
}

.overtop-book-detail__meta-line a {
	color: inherit;
	text-decoration: none;
}

.overtop-book-detail__meta-line a:hover {
	color: var(--overtop-ink);
	text-decoration: underline;
}

.overtop-book-info {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid rgba(26, 26, 26, 0.12);
}

.overtop-book-info__title {
	margin: 0 0 22px;
	font-family: var(--overtop-serif);
	font-size: clamp(22px, 2.8vw, 28px);
	font-weight: 700;
	line-height: 1.25;
}

.overtop-book-info__body {
	color: #3d4654;
	font-size: 15px;
	line-height: 1.9;
}

.overtop-book-info__body p {
	margin: 0 0 1em;
}

.overtop-book-info__body p:last-child {
	margin-bottom: 0;
}

.overtop-book-info__empty {
	margin: 0;
	color: var(--overtop-muted);
	font-size: 15px;
	line-height: 1.7;
}

.overtop-book-detail__video {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
	padding: 14px 18px;
	border: 1px solid rgba(47, 111, 235, 0.35);
	border-radius: 8px;
	background: rgba(47, 111, 235, 0.08);
	color: var(--overtop-blue, #2f6feb);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}

.overtop-book-detail__video:hover {
	border-color: var(--overtop-blue, #2f6feb);
	background: rgba(47, 111, 235, 0.14);
	color: var(--overtop-blue, #2f6feb);
}

.overtop-book-detail__buy {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 4px;
	padding: 15px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--overtop-blue, #2f6feb);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}

.overtop-book-detail__buy:hover {
	background: #2558c7;
	color: #fff;
}

.overtop-book-detail__buy.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

@media (max-width: 720px) {
	.overtop-books {
		padding-top: 16px;
		padding-bottom: 56px;
	}

	.overtop-books__inner--detail {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.overtop-books--detail .overtop-books__sidebar {
		display: none;
	}

	.overtop-books__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px 12px;
	}

	.overtop-book-detail {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.overtop-book-detail__stage {
		padding: 20px 16px;
	}

	.overtop-book-detail__image {
		max-width: min(100%, 220px);
		max-height: 300px;
	}

	.overtop-book-detail__placeholder-wrap {
		width: min(200px, 62%);
	}
}
