:root {
	--bg: #120f05;
	--bg-strong: #181206;
	--panel: rgba(32, 24, 10, 0.86);
	--panel-strong: rgba(44, 32, 11, 0.94);
	--line: rgba(255, 240, 171, 0.12);
	--text: #fff7d6;
	--muted: #d5c788;
	--accent: #f2e205;
	--accent-strong: #ffd84d;
	--accent-soft: rgba(242, 226, 5, 0.14);
	--danger: #ff9d57;
	--shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
	--bar-1: 24%;
	--bar-2: 38%;
	--bar-3: 58%;
	--bar-4: 76%;
	--bar-5: 52%;
	--bar-6: 62%;
	--bar-7: 40%;
	--bar-8: 28%;
	--pulse-scale: 1;
	--glow-strength: 0.4;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	background:
		radial-gradient(circle at top left, rgba(255, 216, 77, 0.18), transparent 24%),
		radial-gradient(circle at bottom right, rgba(242, 226, 5, 0.08), transparent 28%),
		linear-gradient(180deg, #171106 0%, var(--bg) 100%);
	color: var(--text);
	font-family: "Archivo", "Segoe UI", sans-serif;
	line-height: 1.5;
	overflow-x: hidden;
}

body::selection {
	background: var(--accent);
	color: #201704;
}

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

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

button,
input,
select {
	outline: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
	outline: 3px solid rgba(255, 216, 77, 0.55);
	outline-offset: 3px;
}

body::-webkit-scrollbar,
.list::-webkit-scrollbar,
.letra::-webkit-scrollbar {
	width: 6px;
	background: #0d0a03;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #f2e205, #ffd84d);
	border-radius: 999px;
}

.ambient {
	position: fixed;
	border-radius: 999px;
	filter: blur(28px);
	pointer-events: none;
	opacity: 0.42;
	animation: ambientFloat 11s ease-in-out infinite;
	z-index: 0;
}

.ambient-left {
	left: -80px;
	top: 110px;
	width: 260px;
	height: 260px;
	background: rgba(255, 216, 77, 0.12);
}

.ambient-right {
	right: -90px;
	top: 260px;
	width: 320px;
	height: 320px;
	background: rgba(242, 226, 5, 0.12);
	animation-delay: -3s;
}

.ambient-bottom {
	left: 30%;
	bottom: -140px;
	width: 420px;
	height: 420px;
	background: rgba(255, 157, 87, 0.08);
	animation-delay: -5s;
}

.interface {
	position: relative;
	z-index: 1;
	width: min(1380px, calc(100% - 32px));
	margin: 0 auto;
	padding: 24px 0 32px;
	display: grid;
	gap: 26px;
}

.site-header,
.hero-panel,
.player-card,
.lyrics-card,
.filter-card,
.playlist-card,
.stat-chip,
.detail-chip {
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	backdrop-filter: blur(16px);
	background: var(--panel);
}

.site-header,
.hero-panel,
.player-card,
.lyrics-card,
.filter-card,
.playlist-card {
	border-radius: 30px;
	padding: 30px;
}

.header-inner,
.hero-panel,
.dashboard {
	display: grid;
	gap: 24px;
}

.header-inner {
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
	align-items: center;
}

.header-kicker,
.section-kicker {
	display: inline-flex;
	width: fit-content;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-strong);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.brand-stack h1,
.hero-copy h2,
.card-top h2 {
	font-family: "Bebas Neue", sans-serif;
	letter-spacing: 0.03em;
	line-height: 0.96;
	font-weight: 400;
}

.brand-stack h1 {
	margin-top: 14px;
	font-size: clamp(1.6rem, 2.6vw, 2.5rem);
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brand-stack h1 a {
	color: var(--accent);
	text-shadow: 0 0 18px rgba(242, 226, 5, 0.18);
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brand-stack p,
.hero-copy p,
.playlist-hint,
.lyrics-hint,
.filter-feedback,
.detail-chip span,
.stat-chip span,
.track-copy em,
.letra,
.site-footer p {
	color: var(--muted);
}

.brand-stack p {
	max-width: 56ch;
	margin-top: 14px;
	font-size: 1.02rem;
}

.header-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.stat-chip,
.detail-chip {
	padding: 18px;
	border-radius: 22px;
	display: grid;
	gap: 8px;
}

.stat-chip strong,
.detail-chip strong,
.track-copy strong {
	font-size: 1.02rem;
	letter-spacing: -0.02em;
}

.stat-live strong {
	color: var(--accent-strong);
}

.hero-panel {
	grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
	align-items: center;
	margin-bottom: 26px;
	background:
		linear-gradient(135deg, rgba(242, 226, 5, 0.08), transparent 45%),
		var(--panel-strong);
}

.hero-copy h2 {
	margin-top: 16px;
	font-size: clamp(1.35rem, 2.2vw, 1.9rem);
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.08;
}

.hero-copy .section-kicker {
	margin-bottom: 10px;
}

.hero-copy p {
	max-width: 58ch;
	margin-top: 16px;
	font-size: 1.05rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

.hero-btn,
.playlist-search,
.list_artista {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(27, 20, 8, 0.94);
	color: var(--text);
	border-radius: 16px;
}

.hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 20px;
	transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-btn:hover {
	transform: translateY(-2px);
	border-color: rgba(242, 226, 5, 0.34);
	background: rgba(242, 226, 5, 0.14);
}

.hero-btn.ghost {
	background: transparent;
	color: var(--muted);
}

.hero-visual {
	position: relative;
	min-height: 320px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 24px;
	background: radial-gradient(circle, rgba(255, 216, 77, calc(var(--glow-strength) * 0.24)), transparent 56%);
}

.vinyl-stack {
	position: relative;
	width: 240px;
	height: 240px;
	transform: scale(var(--pulse-scale));
	transition: transform 0.18s linear;
}

.vinyl-disc {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background:
		radial-gradient(circle at center, #181207 0 12%, #292013 12% 14%, #100b03 14% 22%, #221a0e 22% 42%, #100b03 42% 58%, #2a2011 58% 78%, #0a0702 78% 100%);
	box-shadow: 0 0 0 12px rgba(255, 216, 77, 0.06), 0 25px 60px rgba(0, 0, 0, 0.35);
	animation: spin 5.5s linear infinite paused;
}

.vinyl-core {
	position: absolute;
	inset: 38%;
	border-radius: 50%;
	background: radial-gradient(circle, #ffefab 0%, #f2e205 38%, #9a7f09 100%);
	box-shadow: 0 0 18px rgba(255, 216, 77, 0.35);
}

.beat-bars {
	position: absolute;
	right: 8%;
	bottom: 14%;
	display: flex;
	align-items: end;
	gap: 10px;
	height: 120px;
}

.beat-bars span {
	width: 12px;
	height: var(--bar-1);
	border-radius: 999px;
	background: linear-gradient(180deg, #fff7b0, #f2e205);
	box-shadow: 0 0 16px rgba(242, 226, 5, 0.24);
	transition: height 0.16s linear;
}

.beat-bars span:nth-child(1) { height: var(--bar-1); }
.beat-bars span:nth-child(2) { height: var(--bar-2); }
.beat-bars span:nth-child(3) { height: var(--bar-3); }
.beat-bars span:nth-child(4) { height: var(--bar-4); }
.beat-bars span:nth-child(5) { height: var(--bar-5); }
.beat-bars span:nth-child(6) { height: var(--bar-6); }
.beat-bars span:nth-child(7) { height: var(--bar-7); }
.beat-bars span:nth-child(8) { height: var(--bar-8); }

.floating-notes span,
.particle {
	position: absolute;
	color: rgba(255, 247, 214, 0.6);
	font-size: 1.8rem;
	animation: floatNote 6s ease-in-out infinite;
}

.floating-notes span:nth-child(1) { left: 8%; top: 18%; }
.floating-notes span:nth-child(2) { left: 22%; bottom: 12%; animation-delay: -2s; }
.floating-notes span:nth-child(3) { right: 24%; top: 16%; animation-delay: -3s; }
.floating-notes span:nth-child(4) { right: 10%; bottom: 26%; animation-delay: -4s; }

.dashboard {
	grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
	align-items: start;
}

.stage-column,
.playlist-column {
	display: grid;
	gap: 24px;
}

.card-top {
	display: flex;
	justify-content: space-between;
	align-items: start;
	gap: 16px;
	margin-bottom: 20px;
}

.card-top.compact {
	margin-bottom: 18px;
}

.card-top h2 {
	margin-top: 10px;
	font-size: clamp(1.8rem, 3vw, 3rem);
}

.playback-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.03);
	color: var(--muted);
	white-space: nowrap;
}

.playback-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent-strong);
	box-shadow: 0 0 14px rgba(242, 226, 5, 0.45);
}

.player-shell {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	padding: 18px;
	background: linear-gradient(180deg, rgba(255, 216, 77, 0.08), rgba(255, 255, 255, 0.02));
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.music-grid-overlay {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 216, 77, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 216, 77, 0.08) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 82%);
	pointer-events: none;
}

.music-particles {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.particle.p1 { left: 4%; top: 14%; animation-delay: -1s; }
.particle.p2 { left: 18%; bottom: 8%; animation-delay: -3s; }
.particle.p3 { right: 16%; top: 12%; animation-delay: -2s; }
.particle.p4 { right: 6%; bottom: 18%; animation-delay: -4.5s; }
.particle.p5 { left: 48%; top: 6%; animation-delay: -5.5s; }

.musica {
	width: 100%;
}

.content-musica {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	border-radius: 22px;
	overflow: hidden;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
	transform: translateZ(0);
}

.content-musica::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 22px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

.content-musica iframe,
#player {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: #000;
}

.player-details {
	margin-top: 18px;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.detail-chip.highlight strong {
	color: var(--accent-strong);
}

.filter-card,
.playlist-card,
.lyrics-card,
.player-card {
	background:
		linear-gradient(180deg, rgba(255, 216, 77, 0.06), transparent 34%),
		var(--panel);
}

.field-label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--text);
}

.list_artista,
.playlist-search {
	width: 100%;
	min-height: 50px;
	padding: 0 16px;
	margin-bottom: 16px;
}

.list_artista {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 48px;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--accent-strong) 50%),
		linear-gradient(135deg, var(--accent-strong) 50%, transparent 50%);
	background-position:
		calc(100% - 22px) calc(50% - 3px),
		calc(100% - 14px) calc(50% - 3px);
	background-size: 8px 8px, 8px 8px;
	background-repeat: no-repeat;
	border-color: rgba(242, 226, 5, 0.2);
	box-shadow: inset 0 0 0 1px rgba(242, 226, 5, 0.04);
	color-scheme: dark;
	color: var(--text);
	line-height: 1.3;
}

.list_artista:hover,
.list_artista:focus-visible {
	border-color: rgba(242, 226, 5, 0.42);
	background-color: rgba(34, 24, 8, 0.98);
}

.list_artista option {
	background: #1b1408;
	color: #fff7d6;
}

.playlist-search {
	color: var(--text);
}

.playlist-search::placeholder {
	color: rgba(255, 247, 214, 0.58);
}

.playlist-search::-webkit-search-cancel-button {
	filter: brightness(1.4);
}

.list {
	max-height: 900px;
	overflow: auto;
	padding-right: 6px;
}

.list ul {
	list-style: none;
	display: grid;
	gap: 10px;
}

.playlist-item {
	display: grid;
	gap: 8px;
}

.playlist-item[hidden] {
	display: none;
}

.next-musica {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 14px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	background: rgba(255, 255, 255, 0.03);
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.next-musica:hover {
	transform: translateX(4px);
	background: rgba(242, 226, 5, 0.1);
	border-color: rgba(242, 226, 5, 0.24);
}

.next-musica.active {
	background: linear-gradient(135deg, rgba(242, 226, 5, 0.22), rgba(255, 216, 77, 0.08));
	border-color: rgba(242, 226, 5, 0.42);
	box-shadow: 0 0 0 1px rgba(242, 226, 5, 0.08) inset;
}

.track-number {
	display: inline-grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--accent-strong);
	font-weight: 700;
}

.track-copy {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.track-copy strong,
.track-copy em {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.track-copy em {
	font-style: normal;
	font-size: 0.94rem;
}

.legend-link {
	display: inline-flex;
	width: fit-content;
	padding-left: 62px;
	font-size: 0.9rem;
	color: var(--accent-strong);
}

.letra {
	max-height: 760px;
	overflow: auto;
	padding-right: 6px;
	font-size: 1rem;
	line-height: 1.75;
}

.letra header {
	margin-bottom: 12px !important;
	height: auto;
}

.letra a,
.site-footer a {
	color: var(--accent);
}

.letra a:hover,
.site-footer a:hover {
	text-decoration: underline;
}

.site-footer {
	padding: 4px 0 10px;
	text-align: center;
}

.site-footer p {
	font-size: 0.96rem;
}

body.is-playing .vinyl-disc {
	animation-play-state: running;
}

body.is-playing .playback-dot {
	animation: pulseDot 0.8s ease-in-out infinite alternate;
}

body.is-playing .player-shell {
	box-shadow: 0 0 0 1px rgba(242, 226, 5, 0.08), 0 0 45px rgba(242, 226, 5, 0.08);
}

body.is-playing .hero-visual,
body.is-playing .player-shell {
	background-image: radial-gradient(circle, rgba(255, 216, 77, calc(var(--glow-strength) * 0.3)), transparent 62%);
}

@keyframes ambientFloat {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
	50% { transform: translate3d(18px, -24px, 0) scale(1.08); }
}

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

@keyframes floatNote {
	0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
	50% { transform: translateY(-12px) scale(1.12); opacity: 0.8; }
}

@keyframes pulseDot {
	from { transform: scale(0.9); box-shadow: 0 0 10px rgba(242, 226, 5, 0.25); }
	to { transform: scale(1.2); box-shadow: 0 0 18px rgba(242, 226, 5, 0.55); }
}

@media (max-width: 1180px) {
	.header-inner,
	.hero-panel,
	.dashboard,
	.player-details {
		grid-template-columns: 1fr;
	}

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

	.hero-visual {
		min-height: 260px;
	}
}

@media (max-width: 720px) {
	.interface {
		width: min(100% - 20px, 1380px);
		padding-top: 16px;
	}

	.site-header,
	.hero-panel,
	.player-card,
	.lyrics-card,
	.filter-card,
	.playlist-card {
		padding: 22px;
		border-radius: 24px;
	}

	.header-stats,
	.player-details,
	.hero-actions {
		grid-template-columns: 1fr;
	}

	.header-stats {
		gap: 10px;
	}

	.hero-actions,
	.card-top {
		flex-direction: column;
		align-items: start;
	}

	.brand-stack h1 {
		max-width: 100%;
		font-size: clamp(1.2rem, 5.8vw, 1.7rem);
		white-space: normal;
	}

	.brand-stack h1 a {
		white-space: normal;
	}

	.hero-copy h2,
	.card-top h2 {
		font-size: clamp(1.2rem, 5.2vw, 1.65rem);
		max-width: 100%;
		white-space: normal;
	}

	.brand-stack p,
	.hero-copy p,
	.filter-feedback,
	.lyrics-hint,
	.playlist-hint {
		font-size: 0.95rem;
	}

	.hero-panel {
		gap: 18px;
	}

	.hero-visual {
		min-height: 220px;
		padding: 8px;
	}

	.vinyl-stack {
		width: 180px;
		height: 180px;
	}

	.beat-bars {
		right: 4%;
		bottom: 10%;
		gap: 7px;
		height: 86px;
	}

	.beat-bars span {
		width: 9px;
	}

	.player-shell {
		padding: 12px;
	}

	.track-number {
		width: 40px;
		height: 40px;
		border-radius: 14px;
	}

	.next-musica {
		grid-template-columns: 40px minmax(0, 1fr);
		gap: 10px;
		padding: 12px;
	}

	.track-copy strong {
		font-size: 0.95rem;
	}

	.track-copy em {
		font-size: 0.88rem;
	}

	.letra {
		max-height: 520px;
		font-size: 0.95rem;
		line-height: 1.65;
	}

	.list_artista,
	.playlist-search {
		min-height: 48px;
		font-size: 0.95rem;
	}

	.legend-link {
		padding-left: 0;
	}
}