:root {
	--ink: #eeeeee;
	--muted: #8c8c8c;
	--paper: #020202;
	--surface: #0a0a0a;
	--surface-2: #121212;
	--line: rgba(238, 238, 238, 0.16);
	--accent: #eeeeee;
	--accent-2: #5f5f5f;
	--danger: #ff354f;
	--shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

* {
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

html::-webkit-scrollbar {
	display: none;
}

[hidden] {
	display: none !important;
}

body {
	margin: 0;
	min-height: 100vh;
	max-width: 100vw;
	overflow-x: hidden;
	color: var(--ink);
	font-family: "IBM Plex Mono", monospace;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 22%),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 76px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 76px),
		var(--paper);
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.78)), radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.06), transparent 30%);
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input {
	font: inherit;
}

button {
	text-transform: uppercase;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px clamp(12px, 3vw, 54px);
	border-bottom: 1px solid var(--line);
	background: rgba(3, 3, 3, 0.88);
	backdrop-filter: blur(18px);
}

.brand,
.topnav,
.meta-row,
.tags,
.license-list,
.section-head,
.dashboard-head,
.form-title-row,
.row-actions {
	display: flex;
	align-items: center;
}

.brand {
	gap: 12px;
	font-family: "Archivo Black", sans-serif;
	font-size: clamp(1.15rem, 2.5vw, 1.8rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
}

.topnav {
	gap: 8px;
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.topnav a,
.back-link {
	padding: 10px 12px;
	border: 1px solid transparent;
}

.topnav a:hover,
.back-link:hover {
	border-color: var(--line);
	color: var(--ink);
}

main {
	position: relative;
	width: min(960px, calc(100% - 28px));
	margin: 0 auto;
	padding: 24px 0 100px;
}

.suggested {
	margin-bottom: 30px;
	padding-top: 150px;
	width: 100%;
	max-width: 680px;
	margin-left: auto;
	margin-right: auto;
}

.suggested .eyebrow {
	margin: 0 0 10px 0;
	align-self: flex-start;
}

.suggested-card {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0;
	border: 1px solid var(--line);
	background: rgba(10, 10, 10, 0.9);
	width: 100%;
	overflow: hidden;
}

.suggested-card .cover {
	width: 180px;
	height: 180px;
	flex-shrink: 0;
}

.suggested-card .cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.suggested-card .cover-fallback {
	background: linear-gradient(135deg, #f1f1f1, #111 60%, #454545);
}

.suggested-card .cover-fallback::after {
	content: "";
	position: absolute;
	inset: 20%;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, #030303 0 4px, #222 4px 8px);
	box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.08);
}

.suggested-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	flex: 1;
	padding: 16px 16px 16px 0;
}

.suggested-info h3 {
	margin: 0;
	font-size: 1.5rem;
}

.suggested-meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: center;
}

.suggested-meta .track-col-label {
	font-size: 0.68rem;
}

.suggested-meta .track-col-value {
	font-size: 1.15rem;
}

.suggested-meta .tag {
	font-size: 0.68rem;
	min-height: 22px;
	padding: 3px 6px;
}

.suggested-buy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 20px;
	border: 1px solid var(--ink);
	color: #050505;
	background: var(--ink);
	font-family: "Archivo Black", sans-serif;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
	align-self: flex-start;
	margin-top: 2px;
}

.suggested-buy:hover {
	background: transparent;
	color: var(--ink);
}

.hero-shell,
.login-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
	gap: clamp(22px, 5vw, 62px);
	align-items: stretch;
	padding: clamp(28px, 6vw, 74px) 0 42px;
}

.hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.eyebrow {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1,
h2,
h3 {
	font-family: "Archivo Black", sans-serif;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

h1 {
	max-width: 840px;
	margin-bottom: 18px;
	font-size: clamp(4rem, 13vw, 12rem);
	line-height: 0.78;
}

h2 {
	margin-bottom: 0;
	font-size: clamp(1.4rem, 3vw, 2.2rem);
	line-height: 0.88;
}

h3 {
	margin-bottom: 6px;
	font-size: 1.55rem;
}

.hero-text {
	max-width: 680px;
	margin-bottom: 0;
	color: var(--muted);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.7;
}

.hero-panel {
	position: relative;
	min-height: 390px;
	border: 1px solid var(--line);
	overflow: hidden;
	background: linear-gradient(145deg, rgba(70, 70, 70, 0.72), rgba(9, 9, 9, 0.98) 62%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 28px);
	box-shadow: var(--shadow);
}

.track-number {
	position: absolute;
	left: 26px;
	top: 18px;
	font-family: "Archivo Black", sans-serif;
	font-size: clamp(4rem, 12vw, 9rem);
	line-height: 0.8;
	color: rgba(255, 255, 255, 0.1);
}

.hero-disc {
	position: absolute;
	right: -74px;
	bottom: -86px;
	width: 300px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, #030303 0 7px, #1c1c1c 7px 12px);
	box-shadow: inset 0 0 0 58px rgba(255, 255, 255, 0.06), inset 0 0 0 92px #2d2d2d;
	animation: spin 16s linear infinite;
}

.meter {
	position: absolute;
	left: 34px;
	width: 54%;
	height: 12px;
	background: var(--ink);
	transform-origin: left center;
}

.meter-one {
	top: 178px;
	animation: pulseWidth 2.8s ease-in-out infinite;
}

.meter-two {
	top: 214px;
	width: 72%;
	animation: pulseWidth 3.4s ease-in-out infinite reverse;
}

.meter-three {
	top: 250px;
	width: 42%;
	animation: pulseWidth 3s ease-in-out infinite;
}

.controls,
.form-columns,
.upload-grid,
.choice-grid,
.detail-stats,
.stat-grid,
.admin-grid {
	display: grid;
	gap: 12px;
}

.stat-grid {
	grid-template-columns: repeat(3, 1fr);
}

.controls {
	grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.42fr) auto auto;
	align-items: end;
	margin-bottom: 46px;
}

.search-box,
.admin-form label {
	display: grid;
	gap: 8px;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

input {
	width: 100%;
	height: 50px;
	border: 1px solid var(--line);
	border-radius: 0;
	padding: 0 14px;
	color: var(--ink);
	background: rgba(10, 10, 10, 0.92);
	outline: none;
}

input[type="file"] {
	height: auto;
	padding: 10px;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
}

input[type="file"]::file-selector-button {
	height: 34px;
	padding: 0 14px;
	margin-right: 10px;
	border: 1px solid var(--line);
	border-radius: 0;
	color: var(--ink);
	background: rgba(255, 255, 255, 0.06);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 120ms ease;
}

input[type="file"]::file-selector-button:hover {
	background: rgba(255, 255, 255, 0.14);
}

input[type="checkbox"] {
	width: 20px;
	height: 20px;
	accent-color: var(--ink);
	cursor: pointer;
	flex-shrink: 0;
}

input:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.primary-button,
.ghost-button,
.danger-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 50px;
	border-radius: 0;
	padding: 0 18px;
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	cursor: pointer;
}

.primary-button {
	border: 1px solid var(--accent);
	color: #070707;
	background: var(--accent);
}

.ghost-button {
	border: 1px solid var(--line);
	color: var(--ink);
	background: rgba(255, 255, 255, 0.035);
}

.danger-button {
	border: 1px solid rgba(255, 53, 79, 0.58);
	color: #fff;
	background: rgba(255, 53, 79, 0.15);
}

.small {
	height: 36px;
	padding: 0 12px;
}

.catalog-head,
.section-head,
.dashboard-head {
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 18px;
}

.catalog-divider {
	width: 100%;
	height: 1px;
	background: var(--line);
	margin-bottom: 20px;
}

main {
	position: relative;
}

.catalog-glow {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	top: 0;
	height: 100%;
	pointer-events: none;
	z-index: 0;
	transition: background 0.8s ease;
	mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.result-count {
	margin-bottom: 6px;
	color: var(--muted);
	font-weight: 900;
	text-transform: uppercase;
}

.beat-grid {
	display: grid;
	gap: 8px;
}

.track-row-card {
	display: grid;
	gap: 8px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	background: rgba(10, 10, 10, 0.9);
	transition: border-color 140ms ease, background 140ms ease;
}

.track-row-card:hover {
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.06);
}

.track-row-body {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.track-row-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1;
}

.track-row-info h3 {
	margin: 0;
	font-size: 1.1rem;
	line-height: 1.2;
}

.track-row-meta {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	flex-wrap: wrap;
}

.track-col {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.track-col-label {
	color: var(--muted);
	font-size: 0.64rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.track-col-value {
	font-family: "Archivo Black", sans-serif;
	font-size: 1.1rem;
	letter-spacing: 0.04em;
}

.track-col-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: flex-end;
}

.track-col-tags .tag {
	font-size: 0.64rem;
	min-height: 22px;
	padding: 3px 6px;
}

.track-buy {
	margin-left: auto;
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 40px;
	padding: 0 18px;
	border: 1px solid var(--ink);
	color: #050505;
	background: var(--ink);
	font-family: "Archivo Black", sans-serif;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	flex-shrink: 0;
}

.track-buy:hover {
	background: transparent;
	color: var(--ink);
}

.track-index,
.track-price {
	font-family: "Archivo Black", sans-serif;
	font-size: 1.4rem;
	letter-spacing: 0.04em;
}

.cover {
	position: relative;
	width: 72px;
	aspect-ratio: 1;
	overflow: hidden;
	flex-shrink: 0;
	background: linear-gradient(135deg, #f1f1f1, #111 60%, #454545);
}

.cover-play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border: 0;
	color: var(--ink);
	background: rgba(0, 0, 0, 0);
	opacity: 0;
	transition: opacity 150ms ease, background 150ms ease;
	cursor: pointer;
}

.cover:hover .cover-play,
.detail-art:hover .cover-play,
.cover-play:focus-visible,
.cover-play.is-playing {
	opacity: 1;
	background: rgba(0, 0, 0, 0.5);
}

.cover-play i {
	font-size: 1.45rem;
	filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.34));
}

.cover img,
.detail-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cover-fallback::after,
.detail-art-fallback::after {
	content: "";
	position: absolute;
	inset: 15%;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, #030303 0 7px, #222 7px 12px);
	box-shadow: inset 0 0 0 28px rgba(255, 255, 255, 0.08), inset 0 0 0 46px #555;
}

.track-info p,
.admin-row p {
	margin-bottom: 6px;
	color: var(--muted);
	font-weight: 800;
}

.meta-row,
.tags,
.license-list,
.license-stack,
.row-actions {
	flex-wrap: wrap;
	gap: 8px;
}

.tag,
.license-pill,
.status-pill {
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 5px 8px;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.tag {
	color: var(--ink);
	border: 1px solid var(--line);
	background: #151515;
}

.license-pill {
	color: #050505;
	background: var(--accent);
}

.track-price {
	display: grid;
	gap: 2px;
	color: var(--ink);
	white-space: nowrap;
}

.track-price span,
.field-icons span,
.audio-label {
	color: var(--muted);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.field-icons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.field-icons span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--line);
	padding: 5px 7px;
}

.empty-state,
.error-state,
.admin-form,
.data-section,
.admin-row,
.license-card {
	border: 1px solid var(--line);
	background: rgba(10, 10, 10, 0.9);
	box-shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
}

.stat-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.stat-box {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	border: 1px solid var(--line);
	background: rgba(10, 10, 10, 0.92);
	text-align: left;
	overflow: hidden;
	transition: border-color 160ms ease, background 160ms ease;
}

.stat-box:hover {
	border-color: rgba(238, 238, 238, 0.4);
	background: rgba(20, 20, 20, 0.95);
}

.stat-box::before {
	content: "";
	position: absolute;
	top: -20px;
	right: -20px;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	opacity: 0.06;
	background: var(--ink);
	pointer-events: none;
	transition: opacity 200ms ease, transform 200ms ease;
}

.stat-box:hover::before {
	opacity: 0.12;
	transform: scale(1.15);
}

.stat-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.04);
	font-size: 1.2rem;
	color: var(--muted);
}

.stat-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.stat-box span {
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.stat-box strong {
	font-family: "Archivo Black", sans-serif;
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.02em;
}

.empty-state,
.error-state {
	padding: 38px;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 22px;
	color: var(--muted);
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: color 140ms ease;
}

.back-link:hover {
	color: var(--ink);
}

/* ── Detail page ─────────────────────────────────────────────── */

.detail-view {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

/* ── Detail head (cover + info row) ──────────────────────── */

.detail-head {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	flex-wrap: wrap;
}

/* ── Cover art section ─────────────────────────────────────── */

.detail-cover-wrap {
	position: relative;
	flex-shrink: 0;
	width: 160px;
	overflow: visible;
}

.detail-cover-wrap::after {
	content: "";
	position: absolute;
	inset: -60px;
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(circle at 50% 50%, rgba(var(--glow-r, 255), var(--glow-g, 255), var(--glow-b, 255), 0.5) 0%, rgba(var(--glow-r, 255), var(--glow-g, 255), var(--glow-b, 255), 0.15) 45%, transparent 75%);
	filter: blur(40px);
	opacity: 0;
	transition: opacity 800ms ease;
}

.detail-cover-wrap.glow-ready::after {
	opacity: 1;
}

.detail-cover-glow {
	position: absolute;
	top: -70px;
	left: -70px;
	width: 300px;
	height: 300px;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.9;
	z-index: 0;
	pointer-events: none;
	transition: background 800ms ease;
}

.detail-art {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: linear-gradient(135deg, #f1f1f1, #111 60%, #454545);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
	transition: box-shadow 600ms ease;
}

.detail-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.detail-art-fallback {
	background: linear-gradient(135deg, #f1f1f1, #111, #454545);
}

.detail-art-fallback::after {
	content: "";
	position: absolute;
	inset: 12%;
	border-radius: 50%;
	background: repeating-radial-gradient(circle, #030303 0 3px, #222 3px 6px);
	box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.06);
}

.detail-play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border: 0;
	color: var(--ink);
	background: rgba(0, 0, 0, 0);
	opacity: 0;
	font-size: 1.1rem;
	transition: opacity 150ms ease, background 150ms ease;
	cursor: pointer;
}

.detail-art:hover .detail-play,
.detail-play:focus-visible,
.detail-play.is-playing {
	opacity: 1;
	background: rgba(0, 0, 0, 0.55);
}

/* ── Info section ──────────────────────────────────────────── */

.detail-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.detail-info h1 {
	margin: 0;
	font-family: "Archivo Black", sans-serif;
	font-size: clamp(1.2rem, 2.5vw, 1.8rem);
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.15;
}

.detail-meta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
}

.detail-meta-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.detail-meta-label {
	color: var(--muted);
	font-size: 0.64rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.detail-meta-value {
	font-family: "Archivo Black", sans-serif;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
}

.detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.detail-date {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.65rem;
	color: var(--muted);
	letter-spacing: 0.04em;
	margin-top: 12px;
}

.detail-tags .tag {
	font-size: 0.68rem;
	min-height: 24px;
	padding: 4px 8px;
}

.tag-link {
	text-decoration: none;
	transition: border-color 140ms ease, color 140ms ease;
}

.tag-link:hover {
	border-color: var(--ink);
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ── Waveform ─────────────────────────────────────────── */

.waveform-canvas {
	display: block;
	width: 100%;
	height: 64px;
	margin: 16px 0 8px;
	border-radius: 8px;
}

/* ── License cards ─────────────────────────────────────────── */

.license-grid {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}

.license-card {
	border: 1px solid var(--line);
	background: rgba(10, 10, 10, 0.9);
	cursor: pointer;
	transition: border-color 140ms ease, background 140ms ease;
	padding: 0;
	box-shadow: none;
}

.license-card:hover {
	border-color: rgba(238, 238, 238, 0.4);
}

.license-card.is-selected {
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.06);
}

.license-card-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
}

.license-card-radio {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--line);
	flex-shrink: 0;
	display: grid;
	place-items: center;
	transition: border-color 140ms ease;
}

.license-card.is-selected .license-card-radio {
	border-color: var(--ink);
}

.license-card.is-selected .license-card-radio::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ink);
}

.license-card-name {
	font-family: "Archivo Black", sans-serif;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	flex: 1;
	min-width: 0;
}

.license-card-format {
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.license-card-price {
	font-family: "Archivo Black", sans-serif;
	font-size: 1.2rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.license-card-body {
	padding: 0 18px 16px 50px;
	display: none;
}

.license-card.is-selected .license-card-body {
	display: block;
}

.license-terms {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.license-terms li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--muted);
}

.license-terms li.included {
	color: var(--ink);
}

.license-terms li i {
	width: 16px;
	text-align: center;
	font-size: 0.7rem;
}

.license-terms li.included i {
	color: var(--ink);
}

/* exclusive glow */
.license-card.license-exclusive.is-selected {
	border-color: #ffd700;
	box-shadow: 0 0 30px rgba(255, 215, 0, 0.12);
}

.license-card.license-exclusive.is-selected .license-card-radio {
	border-color: #ffd700;
}

.license-card.license-exclusive.is-selected .license-card-radio::after {
	background: #ffd700;
}

/* ── Cart button ───────────────────────────────────────────── */

.cart-add-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 28px;
	border: 1px solid var(--ink);
	border-radius: 0;
	color: #050505;
	background: var(--ink);
	font-family: "Archivo Black", sans-serif;
	font-size: 0.85rem;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	margin-top: 8px;
	transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
	align-self: flex-start;
}

.cart-add-btn:hover {
	background: transparent;
	color: var(--ink);
}

.cart-add-btn.is-in-cart {
	background: transparent;
	color: var(--ink);
	border-color: rgba(255, 53, 79, 0.5);
}

.cart-add-btn.is-in-cart:hover {
	border-color: var(--danger);
	color: var(--danger);
}

/* ── Skeleton loading ──────────────────────────────────────── */

.detail-art-skeleton {
	width: 160px;
	flex-shrink: 0;
	aspect-ratio: 1;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--line);
	animation: pulse 1.6s ease-in-out infinite;
}

.detail-info-skeleton {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.skeleton-line {
	height: 18px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 2px;
	animation: pulse 1.6s ease-in-out infinite;
}

.skeleton-title {
	width: 70%;
	height: 32px;
}

.skeleton-meta {
	width: 50%;
}

.skeleton-tags {
	width: 60%;
}

.skeleton-license {
	height: 56px;
	width: 100%;
}

@keyframes pulse {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 0.8; }
}

.login-panel {
	align-items: center;
}

.dashboard {
	display: grid;
	gap: 26px;
}

.admin-grid {
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
	align-items: start;
}

.admin-form,
.data-section {
	display: grid;
	gap: 16px;
	padding: 22px;
}

.form-columns {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-grid,
.choice-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tag-manager {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
	align-items: end;
}

.tag-chip-grid {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 34px;
	border: 1px solid var(--line);
	color: var(--ink);
	background: #151515;
	padding: 0 10px;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.tag-chip span {
	color: var(--muted);
}

.upload-box,
.choice-card {
	padding: 14px;
	border: 1px dashed var(--line);
	background: rgba(255, 255, 255, 0.025);
	transition: border-color 140ms ease, background 140ms ease;
}

.upload-box:hover {
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.05);
}

.upload-box span,
.choice-card span {
	display: block;
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.upload-box small,
.choice-card small {
	display: block;
	margin-top: 8px;
	color: var(--muted);
	font-weight: 700;
	font-size: 0.7rem;
	letter-spacing: 0;
	text-transform: none;
	word-break: break-all;
}

.form-title-row {
	justify-content: space-between;
	gap: 16px;
}

.toggle-row {
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.025);
	cursor: pointer;
	user-select: none;
}

.toggle-row span {
	color: var(--ink);
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.field-title {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.choice-card {
	display: grid !important;
	grid-template-columns: auto 1fr;
	gap: 6px 12px !important;
	align-items: center;
	color: var(--ink) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	user-select: none;
	transition: border-color 140ms ease;
}

.choice-card:hover {
	border-color: var(--accent);
}

.choice-card small {
	grid-column: 2;
	color: var(--muted);
	font-size: 0.68rem;
	margin-top: 0;
}

.choice-card input[type="checkbox"] {
	margin: 0;
}

.admin-list {
	display: grid;
	gap: 10px;
}

.admin-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 14px;
	align-items: center;
	padding: 16px;
}

.license-row {
	grid-template-columns: minmax(0, 1fr) auto;
}

.status-pill.active {
	color: #050505;
	background: var(--ink);
}

.status-pill.inactive {
	color: #fff;
	background: rgba(255, 53, 79, 0.24);
}

.status-pill.pending {
	color: #f0a020;
	background: rgba(240, 160, 32, 0.15);
}

.status-pill.paid {
	color: #34d399;
	background: rgba(52, 211, 153, 0.15);
}

.status-pill.cancelled {
	color: #f87171;
	background: rgba(248, 113, 113, 0.15);
}

.form-message {
	min-height: 24px;
	margin: 0;
	color: var(--muted);
	font-weight: 900;
}

.form-message[data-type="success"] {
	color: var(--ink);
}

.audio-dock {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	padding: 0;
	border: 0;
	background: linear-gradient(180deg, rgba(18, 18, 18, 0.98), rgba(2, 2, 2, 0.98));
	box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(16px);
	isolation: isolate;
}

.player-row {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	height: 72px;
	padding: 0;
}

.player-info {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

.player-buttons {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 6px;
}

.player-cover {
	position: relative;
	width: 72px;
	height: 72px;
	flex-shrink: 0;
	overflow: hidden;
	background: linear-gradient(135deg, #f1f1f1, #111 60%, #454545);
}

.player-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.audio-dock strong {
	display: block;
	font-family: "Work Sans", sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.player-artist {
	font-family: "Work Sans", sans-serif;
	font-size: 0.62rem;
	font-weight: 500;
	color: var(--muted);
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.player-title-link {
	color: var(--ink);
	text-decoration: none;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
}

.player-title-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.audio-dock audio {
	display: none;
}

.player-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	min-width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	color: var(--ink);
	background: #080808;
	cursor: pointer;
}

.player-button i {
	font-size: 0.92rem;
}

.player-button:hover,
.player-button.is-active {
	color: #050505;
	background: var(--ink);
}

/* prev / next / loop — bez obramowania */
#prevTrack,
#nextTrack,
#loopToggle {
	border: none;
	background: transparent;
}

#prevTrack:hover,
#nextTrack:hover {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.08);
}

/* loop aktywny — szara ikona, bez białego tła */
#loopToggle.is-active {
	color: #6b6b6b;
	background: transparent;
}

#loopToggle:hover {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.08);
}

/* ---------- Player buy button ---------- */
.player-buy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid var(--ink);
	border-radius: 6px;
	color: #050505;
	background: var(--ink);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.68rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	flex-shrink: 0;
	margin-left: auto;
	margin-right: 8px;
}

.player-buy:hover {
	background: transparent;
	color: var(--ink);
}

/* ---------- Volume ---------- */
.player-volume {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: 0;
	margin-right: 14px;
	flex-shrink: 0;
	height: 100%;
}

/* detail page: no buy button → volume to far right */
.player-row:not(:has(.player-buy)) .player-volume {
	margin-left: auto;
}

#volumeToggle {
	border: none;
	background: transparent !important;
	width: 20px;
	min-width: 20px;
	height: 20px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}

#volumeToggle i {
	color: #fff;
	font-size: 0.85rem;
}

#volumeToggle:hover {
	opacity: 0.7;
}

#volumeSlider {
	-webkit-appearance: none;
	appearance: none;
	width: 80px;
	height: 4px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 2px;
	background: transparent;
	outline: none;
	cursor: pointer;
	flex-shrink: 0;
}

#volumeSlider::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--ink) 0%, var(--ink) var(--vol-pct, 80%), rgba(238, 238, 238, 0.18) var(--vol-pct, 80%));
}

#volumeSlider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--ink);
	border: none;
	margin-top: -3px;
	opacity: 0;
	cursor: pointer;
	transition: opacity 0.12s;
}

.player-volume:hover #volumeSlider::-webkit-slider-thumb,
#volumeSlider:active::-webkit-slider-thumb {
	opacity: 1;
}

#volumeSlider::-moz-range-track {
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(to right, var(--ink) 0%, var(--ink) var(--vol-pct, 80%), rgba(238, 238, 238, 0.18) var(--vol-pct, 80%));
}

#volumeSlider::-moz-range-thumb {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--ink);
	border: none;
	opacity: 0;
	cursor: pointer;
	transition: opacity 0.12s;
}

.player-volume:hover #volumeSlider::-moz-range-thumb,
#volumeSlider:active::-moz-range-thumb {
	opacity: 1;
}

.player-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ink);
	color: #050505;
}

.player-toggle i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.player-timeline {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 9px;
	padding: 8px 0 0;
	margin: 0;
}

.player-timeline span {
	display: none;
}

.player-timeline input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 4px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	outline: none;
	cursor: pointer;
	position: absolute;
	bottom: 0;
	left: 0;
}

.player-timeline input[type="range"]:focus,
.player-timeline input[type="range"]:active {
	outline: none;
	box-shadow: none;
}

.player-timeline input[type="range"]::-webkit-slider-runnable-track {
	height: 5px;
	border-radius: 0;
	background: linear-gradient(to right, var(--ink) 0%, var(--ink) var(--seek-pct, 0%), transparent var(--seek-pct, 0%));
}

.player-timeline input[type="range"]:focus::-webkit-slider-runnable-track,
.player-timeline input[type="range"]:active::-webkit-slider-runnable-track {
	height: 5px;
}

.player-timeline input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ink);
	border: none;
	margin-top: -4px;
	opacity: 0;
	cursor: pointer;
}

.player-timeline input[type="range"]:focus::-webkit-slider-thumb,
.player-timeline input[type="range"]:active::-webkit-slider-thumb {
	width: 12px;
	height: 12px;
	margin-top: -4px;
}

.player-timeline:hover input[type="range"]::-webkit-slider-thumb {
	opacity: 1;
}

.player-timeline input[type="range"]::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--ink);
	border: none;
	opacity: 0;
	cursor: pointer;
}

.player-timeline input[type="range"]:focus::-moz-range-thumb,
.player-timeline input[type="range"]:active::-moz-range-thumb {
	width: 12px;
	height: 12px;
}

.player-timeline:hover input[type="range"]::-moz-range-thumb {
	opacity: 1;
}

.player-timeline input[type="range"]::-moz-range-track {
	height: 5px;
	border-radius: 0;
	background: linear-gradient(to right, var(--ink) 0%, var(--ink) var(--seek-pct, 0%), transparent var(--seek-pct, 0%));
}

.player-timeline input[type="range"]:focus::-moz-range-track,
.player-timeline input[type="range"]:active::-moz-range-track {
	height: 5px;
}

/* dymek z czasem nad barem */
.player-time-tip {
	position: absolute;
	top: -22px;
	transform: translateX(-50%);
	color: var(--ink);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	pointer-events: none;
	opacity: 0;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.9);
	padding: 2px 6px;
	border: 1px solid var(--line);
	border-radius: 2px;
}

.player-timeline:hover .player-time-tip,
.player-time-tip.visible {
	opacity: 1;
}

.form-message[data-type="error"] {
	color: var(--danger);
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

[hidden] {
	display: none !important;
}

.skeleton {
	background: linear-gradient(100deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
	background-size: 220% 100%;
	animation: shimmer 1.25s ease-in-out infinite;
}

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

@keyframes pulseWidth {
	50% {
		transform: scaleX(0.72);
	}
}

@keyframes shimmer {
	to {
		background-position: -220% 0;
	}
}

/* ── Cart icon in topbar ──────────────────────────────────────── */

.cart-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: auto;
	min-width: 44px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid transparent;
	border-radius: 0;
	color: var(--muted);
	background: transparent;
	font-size: 1.15rem;
	cursor: pointer;
	transition: border-color 140ms ease, color 140ms ease;
	margin-left: auto;
}

.cart-icon-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.cart-price-label {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--ink);
	white-space: nowrap;
	display: inline;
}

.cart-trigger:hover {
	border-color: var(--line);
	color: var(--ink);
}

.cart-badge {
	position: absolute;
	top: -6px;
	right: -8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--danger);
	color: #fff;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.62rem;
	font-weight: 900;
	line-height: 1;
	pointer-events: none;
}

/* ── Cart overlay (click-outside) ─────────────────────────────── */

.cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 25;
	background: rgba(0, 0, 0, 0.45);
}

/* ── Cart dropdown ────────────────────────────────────────────── */

.cart-dropdown {
	position: fixed;
	top: 68px;
	right: clamp(12px, 4vw, 54px);
	z-index: 26;
	width: 380px;
	max-width: calc(100vw - 24px);
	max-height: calc(100vh - 90px);
	overflow-y: auto;
	border: 1px solid var(--line);
	background: rgba(10, 10, 10, 0.98);
	box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(18px);
	display: none;
}

.cart-dropdown.is-open {
	display: block;
	animation: cartFadeIn 160ms ease;
}

@keyframes cartFadeIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cart-dropdown-list {
	display: grid;
	gap: 0;
}

.cart-dropdown-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
}

.cart-dropdown-cover {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	overflow: hidden;
	background: linear-gradient(135deg, #f1f1f1, #111 60%, #454545);
}

.cart-dropdown-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cart-dropdown-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1;
}

.cart-dropdown-title {
	font-family: "Archivo Black", sans-serif;
	font-size: 0.82rem;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cart-dropdown-license {
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.cart-dropdown-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid transparent;
	border-radius: 0;
	color: var(--muted);
	background: transparent;
	cursor: pointer;
	flex-shrink: 0;
	transition: color 120ms ease, border-color 120ms ease;
}

.cart-dropdown-remove:hover {
	color: var(--danger);
	border-color: rgba(255, 53, 79, 0.4);
}

.cart-dropdown-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 20px;
	color: var(--muted);
}

.cart-dropdown-empty i {
	font-size: 2.2rem;
	opacity: 0.5;
}

.cart-dropdown-empty p {
	margin: 0;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.cart-dropdown-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px;
	border-bottom: 1px solid var(--line);
}

.cart-dropdown-total span {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cart-dropdown-total strong {
	font-family: "Archivo Black", sans-serif;
	font-size: 1.15rem;
}

.cart-dropdown-footer {
	display: flex;
	gap: 10px;
	padding: 16px;
}

.cart-btn-checkout {
	flex: 1;
	text-decoration: none;
}

.cart-btn-continue {
	flex: 1;
}

/* ── Cart page ────────────────────────────────────────────────── */

.cart-empty-icon {
	display: block;
	font-size: 3rem;
	color: var(--muted);
	opacity: 0.4;
	margin-bottom: 16px;
}

.cart-page-list {
	display: grid;
	gap: 8px;
	margin-bottom: 24px;
}

.cart-page-item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	background: rgba(10, 10, 10, 0.9);
	transition: border-color 140ms ease, background 140ms ease;
}

.cart-page-item:hover {
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.06);
}

.cart-page-cover {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
	overflow: hidden;
	background: linear-gradient(135deg, #f1f1f1, #111 60%, #454545);
}

.cart-page-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cart-page-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	flex: 1;
}

.cart-page-info h3 {
	margin: 0;
	font-size: 1.15rem;
}

.cart-page-meta {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.cart-page-license {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cart-page-price {
	font-family: "Archivo Black", sans-serif;
	font-size: 1.25rem;
	letter-spacing: 0.04em;
}

.cart-page-remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid rgba(255, 53, 79, 0.3);
	border-radius: 0;
	color: var(--muted);
	background: transparent;
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	flex-shrink: 0;
	transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}

.cart-page-remove:hover {
	color: var(--danger);
	border-color: var(--danger);
	background: rgba(255, 53, 79, 0.1);
}

.cart-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px;
	border: 1px solid var(--line);
	background: rgba(10, 10, 10, 0.9);
	flex-wrap: wrap;
}

.cart-summary-row {
	display: flex;
	align-items: center;
	gap: 14px;
}

.cart-summary-row span {
	color: var(--muted);
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.cart-summary-row strong {
	font-family: "Archivo Black", sans-serif;
	font-size: 1.6rem;
}

.cart-summary .primary-button {
	text-decoration: none;
}

.cart-checkout-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
	width: 100%;
}

.cart-email-label {
	display: block;
	width: 100%;
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: -8px;
}

.cart-email-input {
	flex: 1 1 250px;
	padding: 12px 16px;
	background: rgba(10, 10, 10, 0.9);
	border: 1px solid var(--line);
	color: var(--ink);
	font-family: "Work Sans", sans-serif;
	font-size: 0.88rem;
	font-weight: 500;
	border-radius: 0;
	outline: none;
	transition: border-color 0.2s;
}

.cart-email-input:focus {
	border-color: var(--ink);
}

/* ── Cart responsive ──────────────────────────────────────────── */

@media (max-width: 680px) {
	.brand {
		font-size: 1.05rem;
		letter-spacing: 0.02em;
	}

	.cart-dropdown {
		top: 60px;
		right: 6px;
		width: calc(100vw - 12px);
	}

	.cart-page-item {
		flex-wrap: wrap;
		gap: 12px;
		padding: 14px;
	}

	.cart-page-cover {
		width: 56px;
		height: 56px;
	}

	.cart-page-info h3 {
		font-size: 0.9rem;
	}

	.cart-page-price {
		font-size: 1rem;
	}

	.cart-page-remove {
		width: 100%;
		justify-content: center;
	}

	.cart-summary {
		flex-direction: column;
		align-items: stretch;
	}

	.cart-summary-row strong {
		font-size: 1.3rem;
	}

	.cart-summary .primary-button {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 980px) {
	.login-panel,
	.admin-grid {
		grid-template-columns: 1fr;
	}

	.controls,
	.upload-grid,
	.choice-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 680px) {
	.topbar,
	.catalog-head,
	.section-head,
	.dashboard-head,
	.form-title-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.topnav {
		width: 100%;
		justify-content: space-between;
	}

	.controls,
	.stat-grid,
	.form-columns,
	.upload-grid,
	.choice-grid,
	.admin-row {
		grid-template-columns: 1fr;
	}

	.suggested {
		padding-top: 80px;
		max-width: 100%;
	}

	.suggested-card {
		flex-direction: row;
		align-items: center;
		gap: 8px;
		padding: 0;
		max-width: 100%;
	}

	.suggested-card .cover {
		width: 70px;
		height: 70px;
		min-height: auto;
	}

	.suggested-info {
		gap: 4px;
		padding: 8px 8px 8px 0;
	}

	.suggested-info h3 {
		font-size: 0.85rem;
	}

	.suggested-meta {
		gap: 6px;
	}

	.suggested-meta .track-col-value {
		font-size: 0.78rem;
	}

	.suggested-meta .tag {
		font-size: 0.54rem;
		min-height: 16px;
		padding: 1px 4px;
	}

	.suggested-buy {
		align-self: flex-start;
		height: 26px;
		padding: 0 8px;
		font-size: 0.65rem;
		margin-top: 2px;
	}

	.track-row-body {
		flex-direction: row;
		align-items: center;
		gap: 10px;
	}

	.track-row-body .cover {
		width: 44px;
		min-height: auto;
		flex-shrink: 0;
	}

	.track-row-info h3 {
		font-size: 0.8rem;
	}

	.track-row-meta {
		gap: 8px;
		align-items: center;
	}

	.track-col-label {
		font-size: 0.54rem;
	}

	.track-col-value {
		font-size: 0.8rem;
	}

	.track-col-tags,
	.track-col-time {
		display: none;
	}

	.track-buy {
		margin-left: auto;
		align-self: center;
		justify-content: center;
		height: 28px;
		padding: 0 10px;
		font-size: 0.68rem;
		margin-top: 0;
		flex-shrink: 0;
	}

	.audio-dock {
		/* player-row adapts below */
	}

	.player-row {
		display: flex;
		gap: 8px;
		height: 44px;
		padding: 0 8px 0 0;
	}

	.player-cover {
		width: 40px;
		height: 40px;
	}

	.audio-dock strong {
		font-size: 0.7rem;
		font-weight: 500;
		max-width: 80px;
	}

	.player-artist {
		font-size: 0.55rem;
	}

	.player-buy {
		padding: 0 8px;
		height: 28px;
		font-size: 0;
		gap: 0;
		margin-right: 4px;
	}

	.player-buy i {
		font-size: 0.7rem;
	}

	.player-buttons {
		position: static;
		left: auto;
		top: auto;
		transform: none;
		display: flex;
		align-items: center;
		gap: 4px;
		margin-left: auto;
		flex-shrink: 0;
	}

	.player-volume {
		display: none;
	}

	.player-button {
		width: 28px;
		min-width: 28px;
		height: 28px;
	}

	.player-toggle {
		width: 32px;
		min-width: 32px;
		height: 32px;
	}

	main {
		width: min(100% - 20px, 960px);
		padding-top: 16px;
	}
}

@media (max-width: 400px) {
	.brand {
		font-size: 0.95rem;
	}

	.player-buy {
		display: none;
	}

	#loopToggle {
		display: none;
	}

	.player-cover {
		width: 36px;
		height: 36px;
	}

	.player-row {
		height: 40px;
		padding: 0 6px 0 0;
		gap: 6px;
	}

	.audio-dock strong {
		font-size: 0.65rem;
		max-width: 60px;
	}

	.player-artist {
		font-size: 0.5rem;
	}
}
/* ── Checkout success modal ───────────────────────────────────── */

.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(8px);
	animation: modalFadeIn 200ms ease;
}

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

.modal-card {
	width: min(440px, calc(100vw - 32px));
	padding: 40px 32px 32px;
	border: 1px solid var(--line);
	background: rgba(10, 10, 10, 0.98);
	box-shadow: 0 32px 90px rgba(0, 0, 0, 0.8);
	text-align: center;
	animation: modalSlideUp 240ms ease;
}

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

.modal-icon {
	font-size: 3rem;
	color: var(--ink);
	margin-bottom: 16px;
}

.modal-card h2 {
	margin-bottom: 8px;
}

.modal-warning {
	margin-bottom: 22px;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.5;
}

.modal-order-id {
	padding: 16px;
	margin-bottom: 24px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.03);
}

.modal-order-label {
	display: block;
	margin-bottom: 8px;
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.modal-order-id code {
	display: block;
	padding: 10px;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid var(--line);
	color: var(--ink);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	word-break: break-all;
	user-select: all;
}

.modal-card .primary-button {
	width: 100%;
}

/* ── Footer ─────────────────────────────────────────── */

.site-footer {
	text-align: center;
	padding: 32px 16px 40px;
	margin-top: 60px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.site-footer p {
	margin: 0;
}

/* ── Download page ─────────────────────────────────── */

.download-grid {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
}

.download-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: var(--surface);
}

.download-info h3 {
	font-family: "Work Sans", sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0 0 4px;
}

.download-meta {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.65rem;
	color: var(--muted);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.download-links {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.download-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: 1px solid var(--ink);
	border-radius: 6px;
	color: var(--ink);
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.68rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	transition: background 0.15s, color 0.15s;
}

.download-btn:hover {
	background: var(--ink);
	color: #050505;
}

/* ── Related tracks ─────────────────────────────────── */

.related-section {
	margin-top: 48px;
}

.related-head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.related-head::before,
.related-head::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

.related-label {
	font-family: "IBM Plex Mono", monospace;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
	white-space: nowrap;
}

.related-grid {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* ── About / Licenses page ─────────────────────────── */

.about-license-card {
	border: 1px solid var(--line);
	background: rgba(10, 10, 10, 0.9);
	overflow: hidden;
}

.about-license-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--line);
}

.about-license-name {
	font-family: "Archivo Black", sans-serif;
	font-size: 1.1rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.about-license-format {
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-left: 8px;
}

.about-license-price {
	font-family: "Archivo Black", sans-serif;
	font-size: 1.3rem;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.about-license-terms {
	margin: 0;
	padding: 16px 20px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.about-license-terms li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--muted);
}

.about-license-terms li i {
	width: 16px;
	text-align: center;
	font-size: 0.7rem;
	color: var(--ink);
}

/* ── Page loading overlay ────────────────────────────────────── */

.page-loader {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	background: var(--paper);
	transition: opacity 300ms ease, visibility 300ms ease;
}

.page-loader.is-hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.page-loader-brand {
	font-family: "Archivo Black", sans-serif;
	font-size: clamp(1.4rem, 3vw, 2rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink);
}

.page-loader-spinner {
	width: 32px;
	height: 32px;
	border: 2px solid var(--line);
	border-top-color: var(--ink);
	border-radius: 50%;
	animation: loaderSpin 0.7s linear infinite;
}

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