:root {
	--bg-0: #050810;
	--bg-1: #0a1020;
	--bg-2: #141d33;
	--text: #eef3ff;
	--muted: #b7c4df;
	--soft: #8fa2cb;
	--accent: #a893ff;
	--accent-2: #4fd7ff;
	--glass: rgba(255, 255, 255, 0.07);
	--glass-strong: rgba(255, 255, 255, 0.13);
	--stroke: rgba(255, 255, 255, 0.18);
	--shadow: 0 24px 70px rgba(3, 8, 21, 0.52);
	--success: #59e5aa;
	--danger: #ff8ca8;
	--spotify: #1db954;
	--apple: #fa57c1;
	--youtube: #ff3131;
	--soundcloud: #ff8800;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font-family: Inter, "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.55;
	background:
		radial-gradient(1100px 540px at 8% -12%, rgba(168, 147, 255, 0.24), transparent 60%),
		radial-gradient(900px 420px at 90% -8%, rgba(79, 215, 255, 0.2), transparent 60%),
		linear-gradient(160deg, var(--bg-0), var(--bg-1) 48%, var(--bg-2));
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.07), transparent 55%);
	opacity: 0.3;
	z-index: -3;
}

button,
a,
input,
textarea,
select {
	font: inherit;
}

a {
	color: inherit;
}

.ambient {
	position: fixed;
	border-radius: 50%;
	filter: blur(18px);
	pointer-events: none;
	z-index: -2;
	animation: drift 18s ease-in-out infinite alternate;
}

.ambient-one {
	width: 30rem;
	height: 30rem;
	top: -10rem;
	left: -8rem;
	background: radial-gradient(circle at 35% 35%, rgba(168, 147, 255, 0.4), rgba(168, 147, 255, 0.04));
}

.ambient-two {
	width: 28rem;
	height: 28rem;
	right: -8rem;
	top: 18rem;
	background: radial-gradient(circle at 35% 35%, rgba(79, 215, 255, 0.34), rgba(79, 215, 255, 0.04));
	animation-duration: 22s;
	animation-direction: alternate-reverse;
}

.shell {
	width: min(1120px, 92%);
	margin-inline: auto;
}

.site-header {
	position: relative;
	top: 0;
	z-index: 110;
	padding-top: 0.8rem;
}

.glass-nav,
.panel {
	position: relative;
	border: 1px solid var(--stroke);
	background: linear-gradient(140deg, var(--glass-strong), var(--glass));
	backdrop-filter: blur(24px) saturate(145%);
	-webkit-backdrop-filter: blur(24px) saturate(145%);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.glass-nav::before,
.panel::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 42%);
	opacity: 0.24;
	pointer-events: none;
}

.glass-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.78rem 1rem;
	border-radius: 999px;
}

.brand {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.2px;
}

.brand-mark {
	width: 0.62rem;
	height: 0.62rem;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 0 0 6px rgba(168, 147, 255, 0.18);
}

.nav-links {
	position: relative;
	z-index: 1;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
}

.nav-links a {
	display: inline-block;
	color: var(--text);
	text-decoration: none;
	padding: 0.5rem 0.88rem;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible,
.platform-button:hover,
.platform-button:focus-visible {
	transform: translateY(-1px);
}

.nav-links a:hover,
.nav-links a:focus-visible {
	background: rgba(255, 255, 255, 0.11);
	border-color: rgba(255, 255, 255, 0.28);
}

.nav-links a.active {
	background: rgba(79, 215, 255, 0.18);
	border-color: rgba(79, 215, 255, 0.48);
}

.page-grid {
	padding-block: 2.4rem 4rem;
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 1.4rem;
	align-items: start;
}

.hero-copy,
.result-panel {
	align-self: start;
}

.eyebrow {
	margin: 0 0 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.74rem;
	color: var(--accent-2);
	font-weight: 600;
}

h1,
h2,
h3,
p {
	position: relative;
	z-index: 1;
}

h1,
h2,
h3 {
	margin: 0;
	line-height: 1.12;
}

h1 {
	font-size: clamp(2.2rem, 5vw, 4rem);
	max-width: 12ch;
	letter-spacing: -0.02em;
}

h2 {
	font-size: clamp(1.45rem, 2vw, 2rem);
}

.hero-text,
.result-text,
.subtle-text,
.status-text {
	color: var(--muted);
}

.hero-text {
	margin-top: 1rem;
	max-width: 58ch;
}

.bullet-list {
	margin: 1.2rem 0 0;
	padding-left: 1.1rem;
	color: var(--muted);
}

.bullet-list li + li {
	margin-top: 0.7rem;
}

.panel {
	border-radius: 1.3rem;
	padding: 1.35rem;
}

.panel-header {
	margin-bottom: 1rem;
}

.smart-link-form {
	display: grid;
	gap: 0.95rem;
}

.field {
	display: grid;
	gap: 0.45rem;
}

.field span {
	color: var(--soft);
	font-size: 0.92rem;
	font-weight: 600;
}

.field input {
	width: 100%;
	padding: 0.88rem 0.96rem;
	border-radius: 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(9, 15, 30, 0.7);
	color: var(--text);
	outline: none;
	transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.field input::placeholder {
	color: rgba(183, 196, 223, 0.58);
}

.field input:focus {
	border-color: rgba(79, 215, 255, 0.58);
	box-shadow: 0 0 0 3px rgba(79, 215, 255, 0.14);
	transform: translateY(-1px);
}

.field-block {
	align-items: start;
}

.text-area,
.content-type {
	width: 100%;
	padding: 0.88rem 0.96rem;
	border-radius: 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(9, 15, 30, 0.7);
	color: var(--text);
	outline: none;
	transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
	resize: vertical;
}

.text-area:focus,
.content-type:focus {
	border-color: rgba(79, 215, 255, 0.58);
	box-shadow: 0 0 0 3px rgba(79, 215, 255, 0.14);
	transform: translateY(-1px);
}

.upload-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.95rem;
}

.upload-field input[type="file"] {
	padding: 0.78rem 0.85rem;
	border-radius: 0.95rem;
	border: 1px dashed rgba(255, 255, 255, 0.2);
	background: rgba(9, 15, 30, 0.55);
	color: var(--muted);
}

.upload-note {
	position: relative;
	z-index: 1;
	margin: -0.15rem 0 0;
	font-size: 0.9rem;
	color: var(--soft);
}

.custom-platform-section {
	position: relative;
	z-index: 1;
	padding: 0.95rem;
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(8, 14, 28, 0.42);
	display: grid;
	gap: 0.75rem;
}

.custom-platform-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	flex-wrap: wrap;
}

.custom-platform-header span {
	color: var(--soft);
	font-size: 0.92rem;
	font-weight: 600;
}

.custom-platform-list {
	display: grid;
	gap: 0.6rem;
}

.custom-platform-row {
	display: grid;
	grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr) auto;
	gap: 0.6rem;
	align-items: center;
}

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

.custom-platform-name,
.custom-platform-url,
.content-label,
.content-url {
	width: 100%;
	padding: 0.74rem 0.86rem;
	border-radius: 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(9, 15, 30, 0.72);
	color: var(--text);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-platform-name:focus,
.custom-platform-url:focus,
.content-label:focus,
.content-url:focus {
	border-color: rgba(79, 215, 255, 0.58);
	box-shadow: 0 0 0 3px rgba(79, 215, 255, 0.14);
}

.remove-platform-btn {
	min-height: 2.5rem;
	padding: 0.55rem 0.8rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.remove-platform-btn:hover,
.remove-platform-btn:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.34);
}

.form-actions,
.result-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.8rem;
	margin-top: 0.25rem;
}

.primary-button,
.secondary-button,
.platform-button {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 3rem;
	padding: 0.8rem 1.1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.primary-button {
	color: #0a1120;
	font-weight: 700;
	background: linear-gradient(135deg, var(--accent-2), #8cd9ff);
	box-shadow: 0 16px 30px rgba(79, 215, 255, 0.24);
}

.secondary-button {
	color: var(--text);
	background: rgba(255, 255, 255, 0.08);
}

.primary-button:hover,
.primary-button:focus-visible,
.secondary-button:hover,
.secondary-button:focus-visible,
.platform-button:hover,
.platform-button:focus-visible {
	border-color: rgba(255, 255, 255, 0.34);
}

.primary-button:disabled {
	cursor: wait;
	opacity: 0.75;
}

.status-text {
	margin: 0;
	min-height: 1.4rem;
}

.status-text[data-tone="error"] {
	color: var(--danger);
}

.status-text[data-tone="success"] {
	color: var(--success);
}

.result-panel {
	grid-column: 1 / -1;
}

.generated-field {
	margin-top: 0.85rem;
}

.generated-link-input {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: 1rem;
	border-radius: 1rem;
	border: 1px solid rgba(79, 215, 255, 0.28);
	background: rgba(9, 15, 30, 0.78);
	color: var(--text);
	font-weight: 600;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.generated-link-input:focus {
	border-color: rgba(79, 215, 255, 0.58);
	box-shadow: 0 0 0 3px rgba(79, 215, 255, 0.14);
}

.generated-link {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.8rem;
	padding: 1rem;
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(9, 15, 30, 0.6);
	text-decoration: none;
	font-weight: 600;
}

.generated-link:hover,
.generated-link:focus-visible {
	border-color: rgba(79, 215, 255, 0.46);
}

.link-page-main {
	padding-block: 2.7rem 4rem;
}

.link-page-clean {
	min-height: calc(100vh - 2.5rem);
	display: grid;
	align-items: center;
}

.link-panel {
	width: min(720px, 100%);
	margin: 0 auto;
	padding: 1.6rem;
}

.link-panel-clean {
	text-align: center;
	padding: 1.8rem;
	display: grid;
	justify-items: center;
}

.listen-title {
	margin-top: 0.25rem;
	font-size: clamp(2rem, 5vw, 3.6rem);
	max-width: 14ch;
	margin-inline: auto;
	text-wrap: balance;
}

.listen-subtitle {
	margin: 0.85rem 0 0;
	color: var(--muted);
}

.link-status {
	margin: 0.2rem 0 0.5rem;
	color: var(--soft);
}

.platform-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.9rem;
	margin-top: 1.35rem;
}

.platform-button {
	min-height: 3.4rem;
	padding-inline: 1.2rem;
	font-weight: 700;
	color: #fff;
}

.platform-button.spotify {
	background: linear-gradient(135deg, rgba(29, 185, 84, 0.92), rgba(20, 140, 64, 0.92));
}

.platform-button.apple {
	background: linear-gradient(135deg, rgba(250, 87, 193, 0.9), rgba(161, 68, 255, 0.9));
}

.platform-button.youtube {
	background: linear-gradient(135deg, rgba(255, 49, 49, 0.92), rgba(199, 24, 24, 0.92));
}

.platform-button.soundcloud {
	background: linear-gradient(135deg, rgba(255, 136, 0, 0.92), rgba(255, 94, 0, 0.92));
}

.platform-button.deezer {
	background: linear-gradient(135deg, rgba(253, 56, 107, 0.9), rgba(137, 89, 255, 0.9));
}

.platform-button.tidal {
	background: linear-gradient(135deg, rgba(38, 38, 38, 0.94), rgba(16, 16, 16, 0.94));
}

.platform-button.bandcamp {
	background: linear-gradient(135deg, rgba(66, 188, 209, 0.9), rgba(25, 134, 162, 0.9));
}

.platform-button.generic {
	background: linear-gradient(135deg, rgba(105, 141, 255, 0.9), rgba(103, 212, 255, 0.9));
}

.link-credit {
	position: relative;
	text-align: center;
	font-size: 0.8rem;
	color: var(--soft);
    margin-bottom: 1.5rem;
    margin-top: 0;
	opacity: 0.92;
}

.link-credit a {
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.artist-page-main {
	padding-block: 2.6rem 5rem;
	min-height: calc(100vh - 2rem);
	display: grid;
	align-items: center;
}

.artist-page-card {
	width: min(960px, 100%);
	margin: 0 auto;
	overflow: hidden;
	padding: 0;
	text-align: center;
}

.artist-hero-wrap {
	position: relative;
	background: rgba(8, 13, 26, 0.55);
}

.artist-hero-image {
	display: block;
	width: 100%;
	height: min(46vw, 28rem);
	object-fit: cover;
}

.artist-page-body {
	position: relative;
	z-index: 1;
	padding: 1.7rem;
	display: grid;
	gap: 1rem;
	justify-items: center;
}

.artist-name {
	max-width: 16ch;
	margin-inline: auto;
	text-wrap: balance;
	text-align: center;
}

.artist-tagline {
	margin: 0;
	font-size: 1.05rem;
	color: var(--accent-2);
	font-weight: 600;
	max-width: 46ch;
	text-align: center;
}

.artist-bio {
	margin: 0;
	max-width: 64ch;
	white-space: pre-line;
	color: var(--muted);
	text-align: center;
}

.artist-section {
	width: 100%;
	display: grid;
	gap: 1rem;
}

.artist-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.85rem;
	width: 100%;
}

.artist-gallery-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(9, 15, 30, 0.5);
	box-shadow: 0 12px 28px rgba(3, 8, 21, 0.28);
}

.artist-links-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.8rem;
	width: 100%;
}

.artist-link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3.2rem;
	padding: 0.9rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: linear-gradient(135deg, rgba(105, 141, 255, 0.9), rgba(103, 212, 255, 0.9));
	box-shadow: 0 16px 30px rgba(79, 215, 255, 0.16);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.22s ease, border-color 0.22s ease;
}

.artist-link-button:hover,
.artist-link-button:focus-visible {
	transform: translateY(-1px);
	border-color: rgba(255, 255, 255, 0.34);
}

.artist-video-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1rem;
	width: 100%;
}

.artist-video-card {
	padding: 0.45rem;
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(8, 13, 26, 0.48);
	text-align: left;
	box-shadow: 0 16px 32px rgba(3, 8, 21, 0.22);
}

.artist-video-card h3 {
	margin: 0.55rem 0.2rem 0.15rem;
	font-size: 1rem;
	color: var(--text);
	text-align: left;
}

.artist-video-frame {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: 0.85rem;
	overflow: hidden;
	background: #050810;
}

.artist-video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.error-box {
	position: relative;
	z-index: 1;
	margin-top: 1.15rem;
	padding: 0.95rem 1rem;
	border-radius: 1rem;
	border: 1px solid rgba(255, 140, 168, 0.34);
	background: rgba(255, 140, 168, 0.12);
	color: #ffd7e1;
}

.empty-state {
	margin-top: 1rem;
	color: var(--muted);
}

@keyframes drift {
	from {
		transform: translate3d(0, 0, 0) scale(1);
	}
	to {
		transform: translate3d(1.5rem, 1.25rem, 0) scale(1.06);
	}
}

@media (max-width: 900px) {
	.page-grid {
		grid-template-columns: 1fr;
	}

	.result-panel {
		grid-column: auto;
	}
}

@media (max-width: 700px) {
	.glass-nav {
		border-radius: 1.2rem;
		align-items: flex-start;
		flex-direction: column;
	}

	.nav-links {
		width: 100%;
		justify-content: center;
	}

	.nav-links a {
		flex: 1 1 auto;
		text-align: center;
	}

	.platform-grid {
		grid-template-columns: 1fr;
	}

	.custom-platform-row {
		grid-template-columns: 1fr;
	}

	.content-row,
	.upload-grid,
	.artist-gallery-grid,
	.artist-video-grid {
		grid-template-columns: 1fr;
	}

	.artist-page-body {
		padding: 1rem 0.8rem;
	}
}

@media (max-width: 560px) {
	.shell {
		width: min(100% - 1.2rem, 1120px);
	}

	.panel {
		padding: 1.05rem;
		border-radius: 1.05rem;
	}

	.form-actions,
	.result-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.primary-button,
	.secondary-button,
	.platform-button {
		width: 100%;
	}
}
