.catalogue-root {
	--bg-primary: #FFFFFF;
	--bg-hover: #00000008;
	--text-primary: #1A1A1A;
	--text-secondary: #9A9A9A;
	--text-tertiary: #bfbfbf7b;
	--divider: #E0E0E0;
	background-color: var(--bg-primary);
	color: var(--text-primary);
	min-height: 100vh;
}

.catalogue-root .index-page {
	display: flex;
	flex-direction: column;
	height: 100vh;
	box-sizing: border-box;
	padding-top: 7px;
	transition: opacity 250ms ease;
	position: relative;
}

.catalogue-root .index-page.dimmed-page {
	opacity: 0;
	pointer-events: none;
}

.catalogue-root .band {
	position: fixed;
	top: 0;
	bottom: 0;
	background: #F9FE02;
	pointer-events: none;
	z-index: 0;
	opacity: 0;
}

.catalogue-root .dimmed {
	opacity: 0.3;
	transition: opacity 150ms;
}

.catalogue-root .grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 20px;
	padding: 0 20px;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

.catalogue-root .index-page .col-dots {
	grid-column: 3 / 13;
}

.catalogue-root .row {
	align-items: center;
	height: 36px;
}

.catalogue-root .col-name {
	grid-column: 1;
	display: flex;
	align-items: center;
}

.catalogue-root .col-range {
	grid-column: 2;
	display: flex;
	align-items: center;
	font-feature-settings: "tnum";
}

.catalogue-root .col-dots {
	grid-column: 3;
	display: flex;
	align-items: center;
	height: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	min-width: 0;
}

.catalogue-root .col-dots::-webkit-scrollbar {
	display: none;
}

.catalogue-root .index-page.dots-scrollable::before {
	content: '';
	position: absolute;
	left: var(--divider-left, 40%);
	top: 0;
	height: 100vh;
	width: 1px;
	background-color: var(--text-tertiary);
	pointer-events: none;
	z-index: 1;
}

.catalogue-root .divider-row {
	height: 36px;
	align-items: center;
	flex-shrink: 0;
}

.catalogue-root .divider {
	width: 10px;
	height: 1px;
	background-color: var(--text-tertiary);
}

.catalogue-root .content {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	overflow-y: auto;
}

.catalogue-root .row-clip {
	clip-path: inset(0);
}

.catalogue-root .content .row,
.catalogue-root .index-page > .grid.row,
.catalogue-root .index-page > .row-clip > .grid.row,
.catalogue-root .list .row,
.catalogue-root .item-info .item-label {
	transform: translateY(100%);
	animation: reveal-row 1200ms cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
}

.catalogue-root .item-info .item-label {
	text-align: right;
}

@keyframes reveal-row {
	from { transform: translateY(100%); }
	to   { transform: translateY(0); }
}

.catalogue-root .decade-label {
	font-size: 10px;
	color: var(--text-secondary);
	white-space: nowrap;
	font-feature-settings: "tnum";
	user-select: none;
}

.catalogue-root .dot-col {
	flex: 1;
	min-width: var(--dot-col-min-width, 28px);
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	cursor: default;
}

.catalogue-root .dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	transition: transform 0.15s;
	flex-shrink: 0;
}

.catalogue-root .dot.active {
	background-color: var(--text-primary);
}

.catalogue-root .dot.inactive {
	background-color: var(--text-tertiary);
	width: 3px;
	height: 3px;
}

.catalogue-root .dot.range {
	background-color: var(--text-tertiary);
	width: 3px;
	height: 3px;
}

.catalogue-root .dot-col:has(.dot.active) {
	cursor: pointer;
}

.catalogue-root .dot-col:hover .dot.active {
	transform: scale(2.4);
}

.catalogue-root .secondary {
	color: var(--text-secondary);
}

.catalogue-root .year-pill {
	position: fixed;
	top: 25px;
	transform: translate(-50%, -50%);
	border: 1px solid var(--text-secondary);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 13px;
	color: var(--text-secondary);
	white-space: nowrap;
	background: var(--bg-primary);
	pointer-events: none;
	z-index: 2;
	opacity: 0;
}

.catalogue-root .year-pill-sizer {
	visibility: hidden;
	left: -9999px;
}

.catalogue-root a.row {
	text-decoration: none;
	transition: opacity 150ms;
}

.catalogue-root .thumb-preview {
	position: fixed;
	width: 80px;
	height: 80px;
	object-fit: contain;
	pointer-events: none;
	z-index: 100;
	transform: translateX(-100%) translateY(-50%);
	border: 1px solid var(--text-secondary);
	border-radius: 8px;
	background: var(--bg-primary);
}

@keyframes mask-out-down  { from { clip-path: inset(0 0 -12.5% 0); } to { clip-path: inset(0 0 112.5% 0); } }
@keyframes mask-out-up    { from { clip-path: inset(-12.5% 0 0 0); } to { clip-path: inset(112.5% 0 0 0); } }
@keyframes mask-out-left  { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 100% 0 0); } }
@keyframes mask-out-right { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 0 100%); } }
@keyframes bar-down  { from { top: 100%; } to { top: -2px; } }
@keyframes bar-up    { from { top: 0%;   } to { top: calc(100% + 2px); } }
@keyframes bar-left  { from { left: 100%; } to { left: -2px; } }
@keyframes bar-right { from { left: 0%;   } to { left: calc(100% + 2px); } }
@keyframes fade-out  { from { opacity: 1; } to { opacity: 0; } }
@keyframes reveal-text { from { transform: translateY(100%); } to { transform: translateY(0); } }

.catalogue-root .label-clip {
	overflow: hidden;
	clip-path: inset(0);
	position: relative;
}

.catalogue-root .label-reveal {
	display: block;
	text-align: right;
	transform: translateY(100%);
	animation: reveal-row 1200ms cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
}

@media (max-width: 768px) {
	.catalogue-root .index-page {
		height: auto;
	}

	.catalogue-root .grid {
		grid-template-columns: 1fr 1fr;
		gap: 20px;
	}

	.catalogue-root .col-name {
		grid-column: 1;
	}

	.catalogue-root .col-range {
		grid-column: 2;
	}

	.catalogue-root .col-dots,
	.catalogue-root .band,
	.catalogue-root .year-pill,
	.catalogue-root .thumb-preview {
		display: none;
	}

	.catalogue-root .content {
		padding-bottom: 7px;
	}
}
