/* --- Responsive para pantallas pequeñas --- */
@media (max-width: 600px) {
	body {
		overflow: hidden;
		height: 100vh;
		min-height: 100vh;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0;
		margin: 0;
	}
	.container {
		max-width: 90vw;
		width: 90vw;
		padding: 1.5vh 2.5vw;
		border-radius: 18px;
		margin: 0;
		max-height: 96vh;
		overflow: hidden;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}
	.logo {
		width: 18vw;
		min-width: 70px;
		margin-bottom: 0.8vh;
	}
	.metadata {
		max-width: 100%;
		padding: 1.2vh 2vw;
		border-radius: 14px;
		margin-top: 0.8vh;
		margin-bottom: 0.8vh;
	}
	.metadata h2 {
		font-size: 0.75em !important;
		margin-bottom: 0.8vh !important;
		margin-top: 0 !important;
	}
	.song-info-centered {
		margin-top: 0.8vh;
		margin-bottom: 0.8vh;
	}
	.cover-large {
		width: 28vw;
		height: 28vw;
		min-width: 105px;
		min-height: 105px;
		border-radius: 14px;
		margin-bottom: 0.8vh;
	}
	.meta-details-centered .title {
		font-size: 0.85em !important;
		margin-bottom: 0.3vh !important;
	}
	.meta-details-centered .artist {
		font-size: 0.75em !important;
	}
	#audio-visualizer {
		width: 100% !important;
		max-width: 240px !important;
		height: 38px !important;
		margin-top: 0.8vh;
		display: block !important;
		visibility: visible !important;
	}
	.player-row-centered {
		gap: 1.2vh;
		flex-direction: column;
		margin: 0.8vh 0;
	}
	.player-btn-modern-centered .circle-centered {
		width: 12vw;
		height: 12vw;
		min-width: 48px;
		min-height: 48px;
	}
	.player-btn-modern-centered .circle-centered::before {
		width: 16vw;
		height: 16vw;
		min-width: 62px;
		min-height: 62px;
	}
	.player-btn-modern-centered i {
		font-size: 1.6rem;
	}
	.volume-modern-centered {
		width: 68vw;
		max-width: 230px;
		padding: 0.9vh 2.5vw;
		gap: 1.8vw;
	}
	.volume-slider-modern {
		width: 34vw;
		min-width: 75px;
		height: 6px;
	}
	.volume-icon-modern {
		font-size: 1em;
		width: 22px;
	}
	.player-controls {
		margin: 0;
	}
	
	/* Responsive para header y metadata */
	.header-bar {
		margin-bottom: 1vh;
	}
	
	.logo {
		width: 16vw;
		min-width: 60px;
	}
	
	.header-btn {
		width: 36px;
		height: 36px;
		font-size: 0.95em;
	}
	
	.metadata-header h2 {
		font-size: 0.85em;
	}
	
	.listeners-count {
		font-size: 0.75em;
		padding: 4px 8px;
	}
	
	.favorite-btn {
		width: 32px;
		height: 32px;
		font-size: 0.95em;
	}
	
	/* Modales responsive */
	.modal-content {
		max-width: 88vw !important;
		max-height: 70vh !important;
		padding: 12px !important;
		width: 88vw;
	}
	
	.modal-content h3 {
		font-size: 0.9em !important;
		margin-bottom: 10px !important;
		gap: 5px !important;
	}
	
	.modal-close {
		width: 24px !important;
		height: 24px !important;
		font-size: 0.9em !important;
	}
	
	.share-modal {
		min-width: auto !important;
		width: 88vw !important;
	}
	
	.history-modal {
		min-width: auto !important;
		max-width: 88vw !important;
		width: 88vw !important;
	}
	
	.history-list {
		gap: 8px !important;
	}
	
	.history-item {
		padding: 6px !important;
		gap: 6px !important;
		border-radius: 6px !important;
	}
	
	.history-cover {
		width: 35px !important;
		height: 35px !important;
		border-radius: 5px !important;
	}
	
	.history-title {
		font-size: 0.75em !important;
		margin-bottom: 2px !important;
	}
	
	.history-artist {
		font-size: 0.68em !important;
	}
	
	.history-time {
		font-size: 0.65em !important;
	}
}

/* --- Responsive para pantallas muy pequeñas (iPhone SE, etc) --- */
@media (max-width: 400px) {
	body {
		height: 100vh;
		height: 100svh; /* Small viewport height para iPhone */
	}
	.container {
		padding: 0.8svh 2vw;
		max-height: 96svh;
		width: 88vw;
	}
	.logo {
		width: 16vw;
		min-width: 50px;
		margin-bottom: 0.3svh;
	}
	.metadata {
		padding: 0.5svh 1.5vw;
		margin-top: 0.3svh;
		margin-bottom: 0.3svh;
	}
	.metadata h2 {
		font-size: 0.58em;
		margin-bottom: 0.3svh;
		margin-top: 0;
		line-height: 1.1;
	}
	.song-info-centered {
		margin-top: 0.3svh;
		margin-bottom: 0.3svh;
	}
	.cover-large {
		width: 20vw;
		height: 20vw;
		min-width: 75px;
		min-height: 75px;
		border-radius: 11px;
		margin-bottom: 0.3svh;
	}
	.meta-details-centered .title {
		font-size: 0.65em;
		margin-bottom: 0.1svh;
		line-height: 1.1;
	}
	.meta-details-centered .artist {
		font-size: 0.55em;
		line-height: 1.1;
	}
	#audio-visualizer {
		width: 100% !important;
		max-width: 170px !important;
		height: 26px !important;
		margin-top: 0.3svh;
		display: block !important;
		visibility: visible !important;
	}
	.player-row-centered {
		gap: 0.5svh;
		margin: 0 0;
		transform: scale(0.8);
		transform-origin: center;
		margin-top: -5px !important;
	}

	i#playPauseIcon {
    	margin-left: 5px;
	}
	.player-btn-modern-centered .circle-centered {
		width: 36px;
		height: 36px;
	}
	.player-btn-modern-centered .circle-centered::before {
		width: 48px;
		height: 48px;
	}
	.player-btn-modern-centered i {
		font-size: 1.1rem;
	}
	.player-icon {
		width: 48px !important;
		height: 48px !important;
	}
	.player-icon {
		width: 60px !important;
		height: 60px !important;
	}
	.volume-modern-centered {
		width: 68vw;
		max-width: 180px;
		padding: 0.5svh 2vw;
		gap: 1vw;
	}
	.volume-slider-modern {
		width: 32vw;
		min-width: 50px;
		height: 4px;
	}
	.volume-icon-modern {
		font-size: 0.75em;
		width: 15px;
	}
	.player-controls {
		margin: 0;
		padding: 0;
	}
	
	/* Responsive para iPhone SE - header y metadata */
	.header-bar {
		margin-bottom: 0.5svh;
	}
	
	.logo {
		width: 14vw;
		min-width: 50px;
	}
	
	.header-btn {
		width: 30px;
		height: 30px;
		font-size: 0.85em;
	}
	
	.metadata-header h2 {
		font-size: 0.7em;
	}
	
	.listeners-count {
		font-size: 0.65em;
		padding: 3px 6px;
	}
	
	.favorite-btn {
		width: 28px;
		height: 28px;
		font-size: 0.85em;
	}
	
	/* Modales responsive iPhone SE */
	.modal-content {
		max-width: 90vw !important;
		max-height: 65svh !important;
		padding: 10px !important;
		width: 90vw !important;
	}
	
	.modal-content h3 {
		font-size: 0.8em !important;
		margin-bottom: 8px !important;
		gap: 4px !important;
	}
	
	.modal-close {
		width: 22px !important;
		height: 22px !important;
		font-size: 0.85em !important;
		top: 6px !important;
		right: 6px !important;
	}
	
	.share-option {
		padding: 7px 10px !important;
		font-size: 0.75em !important;
		gap: 6px !important;
	}
	
	.share-option i {
		font-size: 1.1em !important;
	}
	
	.share-modal {
		width: 90vw !important;
	}
	
	.history-modal {
		max-width: 90vw !important;
		width: 90vw !important;
	}
	
	.history-list {
		gap: 6px !important;
	}
	
	.history-item {
		padding: 5px !important;
		gap: 5px !important;
		border-radius: 5px !important;
	}
	
	.history-cover {
		width: 30px !important;
		height: 30px !important;
		border-radius: 4px !important;
	}
	
	.history-title {
		font-size: 0.68em !important;
		margin-bottom: 2px !important;
	}
	
	.history-artist {
		font-size: 0.6em !important;
	}
	
	.history-time {
		font-size: 0.55em !important;
	}
}
.waveform-visualizer {
	width: 100%;
	max-width: 320px;
	height: 60px;
	margin: 18px auto 0 auto;
	background: transparent;
}

#audio-visualizer {
	display: block;
	width: 100%;
	max-width: 320px;
	height: 60px;
	margin: 18px auto 0 auto;
	background: transparent;
}

.player-row-centered {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 32px;
	width: 100%;
	margin: 1px 0 2px 0;
}
.song-info-centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-top: 18px;
	margin-bottom: 18px;
}

.cover-large {
	width: 220px;
	height: 220px;
	object-fit: cover;
	border-radius: 24px;
	box-shadow: 0 20px 60px rgba(255,255,255,0.4), 0 8px 20px rgba(0,0,0,0.3);
	background: #222;
	border: 3px solid #ffffff;
	margin-bottom: 18px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	animation: coverPulse 3s ease-in-out infinite;
}

.cover-large:hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 0 25px 70px rgba(255,255,255,0.5), 0 12px 25px rgba(0,0,0,0.4);
}

@keyframes coverPulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.02);
	}
}

.meta-details-centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}
.meta-details-centered .title {
	font-size: 1.25em;
	line-height: 1.1em;
	font-weight: 700;
	color: #fff;
	margin-bottom: 2px;
	text-align: center;
	text-shadow: 0 2px 10px rgba(0,0,0,0.5);
	letter-spacing: 0.5px;
	animation: fadeIn 0.5s ease;
}
.meta-details-centered .artist {
	font-size: 1.15em;
	background: linear-gradient(135deg, #dddddd 0%, #e0e0e066 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 600;
	text-align: center;
	animation: fadeIn 0.7s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.player-modern-centered {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-bottom: 12px;
}
.player-btn-modern-centered {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	outline: none;
	display: flex;
	align-items: center;
	justify-content: center;
}
.player-btn-modern-centered .circle-centered {
	background: white;
	background-size: 200% 200%;
	border-radius: 50%;
	width: 74px;
	height: 74px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 32px rgba(255,255,255,0.5), 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
	transition: all 0.3s ease;
	position: relative;
	animation: playPulse 2s ease-in-out infinite;
}

.player-btn-modern-centered .circle-centered::before {
	content: '';
	position: absolute;
	width: 90px;
	height: 90px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.3);
	animation: ripple 2s ease-in-out infinite;
}

@keyframes playPulse {
	0%, 100% {
		box-shadow: 0 8px 32px rgba(255,255,255,0.5), 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
	}
	50% {
		box-shadow: 0 12px 40px rgba(255,255,255,0.7), 0 6px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.2);
	}
}

@keyframes ripple {
	0% {
		transform: scale(0.8);
		opacity: 1;
	}
	100% {
		transform: scale(1.3);
		opacity: 0;
	}
}

.player-btn-modern-centered:hover .circle-centered {
	background-position: 100% 50%;
	box-shadow: 0 16px 50px rgba(255,255,255,0.8), 0 8px 24px rgba(0,0,0,0.4);
	transform: scale(1.1);
}

.player-btn-modern-centered:active .circle-centered {
	transform: scale(0.95);
}

.player-btn-modern-centered i {
	font-size: 2.7rem;
	color: #fff;
	transition: all 0.2s;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Iconos personalizados del player */
.player-icon {
	width: 58px;
	height: 58px;
	object-fit: contain;
	transition: all 0.3s ease;
	filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.player-icon.loading {
	animation: spinIcon 1.5s linear infinite;
}

@keyframes spinIcon {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.player-btn-modern-centered:hover .player-icon {
	filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8));
	transform: scale(1.05);
}

.volume-modern-centered {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	background: rgba(40,40,40,0.6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 24px;
	padding: 10px 22px;
	box-shadow: 0 4px 16px rgba(255,255,255,0.2), 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
	width: 220px;
	margin: 0 auto 8px auto;
	border: 1px solid rgba(255,255,255,0.2);
	transition: all 0.3s ease;
}

.volume-modern-centered:hover {
	background: rgba(40,40,40,0.7);
	box-shadow: 0 6px 20px rgba(255,255,255,0.3), 0 3px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
	transform: translateY(-2px);
}
.player-modern {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 32px;
	width: 100%;
	margin-top: 18px;
}

.player-btn-modern {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	outline: none;
	display: flex;
	align-items: center;
	justify-content: center;
}
.player-btn-modern .circle {
	background: linear-gradient(135deg, #ffffff 60%, #191414 100%);
	border-radius: 50%;
	width: 68px;
	height: 68px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(255,255,255,0.18), 0 2px 8px rgba(0,0,0,0.3);
	transition: box-shadow 0.2s, transform 0.2s;
}
.player-btn-modern:hover .circle {
	box-shadow: 0 8px 32px rgba(255,255,255,0.25);
	transform: scale(1.08);
}
.player-btn-modern i {
	font-size: 2.4rem;
	color: #fff;
	transition: color 0.2s;
}

.volume-modern {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(40,40,40,0.85);
	border-radius: 24px;
	padding: 8px 18px;
	box-shadow: 0 2px 8px rgba(255,255,255,0.10);
}
.volume-icon-modern {
	font-size: 1.6em;
	color: #ffffff;
	width: 28px;
	text-align: center;
}
.volume-slider-modern {
	width: 120px;
	accent-color: #ffffff;
	height: 8px;
	border-radius: 4px;
	background: #222;
	margin: 0 4px;
}
#background-blur img {
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	filter: blur(32px) brightness(0.6) saturate(1.2);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	transition: all 0.5s;
	animation: zoomCover 8s ease-in-out infinite alternate;
}

@keyframes zoomCover {
	0% {
		transform: scale(1);
	}
	100% {
		transform: scale(1.08);
	}
}
.player-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 24px;
	width: 100%;
	margin-top: 8px;
}
.player-controls {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 24px 0 0 0;
}

.player-btn {
	background: linear-gradient(135deg, #ffffff 60%, #191414 100%);
	border: none;
	border-radius: 50%;
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.2rem;
	color: #191414;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(255,255,255,0.18);
	transition: box-shadow 0.2s, transform 0.2s;
	margin-bottom: 8px;
}
.player-btn:hover {
	box-shadow: 0 4px 16px rgba(255,255,255,0.3);
	transform: scale(1.08);
	color: #ffffff;
}

.volume-group {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 180px;
	margin: 0 auto;
}

.volume-icon {
	font-size: 1.7em;
	color: #ffffff;
	margin: 0 4px;
	vertical-align: middle;
	width: 28px;
	text-align: center;
}

.volume-slider {
	width: 100px;
	accent-color: #ffffff;
	height: 8px;
	border-radius: 4px;
	background: #222;
	margin: 0 4px;
}
/* Fondo desenfocado con cover */
#background-blur {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 0;
	overflow: hidden;
}
#background-blur img {
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	filter: blur(32px) brightness(0.6) saturate(1.2);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	transition: all 0.5s;
}
.background-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(20, 20, 20, 0.65);
	z-index: 1;
}

body {
	font-family: 'Montserrat', 'Arial', sans-serif;
	background: linear-gradient(135deg, #191414 60%, #ffffff 100%);
	color: #fff;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.container {
	position: relative;
	z-index: 2;
	max-width: 420px;
	background: rgba(25, 20, 20, 0.75);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 32px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 8px 32px rgba(255,255,255,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
	padding: 32px 28px 28px 28px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 auto;
	border: 1px solid rgba(255,255,255,0.2);
	animation: containerFadeIn 0.6s ease;
}

@keyframes containerFadeIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.logo {
	width: 160px;
	margin-bottom: 12px;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(255,255,255,0.3), 0 4px 12px rgba(0,0,0,0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.logo:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(255,255,255,0.4), 0 6px 16px rgba(0,0,0,0.4);
}

audio {
	width: 100%;
	margin: 18px 0 0 0;
	display: none;
}

.player-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 18px 0 0 0;
}

.player-btn {
	background: linear-gradient(135deg, #ffffff 60%, #191414 100%);
	border: none;
	border-radius: 50%;
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: #191414;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(255,255,255,0.18);
	transition: box-shadow 0.2s, transform 0.2s;
}
.player-btn:hover {
	box-shadow: 0 4px 16px rgba(255,255,255,0.3);
	transform: scale(1.08);
	color: #ffffff;
}

.volume-slider {
	width: 120px;
	accent-color: #ffffff;
	height: 6px;
	border-radius: 4px;
	background: #222;
}

.volume-icon {
	font-size: 1.5em;
	color: #ffffff;
	margin: 0 8px;
	vertical-align: middle;
}

.song-info {
	display: flex;
	align-items: center;
	gap: 22px;
	justify-content: center;
	margin-top: 18px;
}

.cover {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(255,255,255,0.18);
	background: #222;
	border: 2px solid #ffffff;
}

.meta-details {
	text-align: left;
	font-size: 1.08em;
	color: #fff;
}

.metadata {
	background: rgba(40, 40, 40, 0.4);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 24px;
	padding: 28px 28px 18px 28px;
	margin-top: 22px;
	box-shadow: 0 8px 32px rgba(255,255,255,0.2), 0 4px 16px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
	width: 100%;
	max-width: 420px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255,255,255,0.2);
	transition: all 0.3s ease;
}

.metadata:hover {
	background: rgba(40, 40, 40, 0.5);
	box-shadow: 0 10px 40px rgba(255,255,255,0.15), 0 6px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.metadata h2 {
	margin-top: 0;
	font-size: 1em;
	background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: 1.5px;
	font-weight: 700;
	text-transform: uppercase;
	text-shadow: 0 2px 10px rgba(255,255,255,0.2);
}
/* Fondo desenfocado con cover */
#background-blur {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 0;
	overflow: hidden;
}
#background-blur img {
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	filter: blur(32px) brightness(0.6) saturate(1.2);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	transition: all 0.5s;
}
.background-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(20, 20, 20, 0.65);
	z-index: 1;
}

.container {
	position: relative;
	z-index: 2;
	max-width: 420px;
	margin: 48px auto;
	background: rgba(25, 20, 20, 0.98);
	border-radius: 18px;
	box-shadow: 0 8px 32px rgba(255,255,255,0.18), 0 2px 8px rgba(0,0,0,0.3);
	padding: 32px 28px 28px 28px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.player-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 18px 0 0 0;
}

.player-btn {
	background: linear-gradient(135deg, #ffffff 60%, #191414 100%);
	border: none;
	border-radius: 50%;
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: #191414;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(255,255,255,0.18);
	transition: box-shadow 0.2s, transform 0.2s;
}
.player-btn:hover {
	box-shadow: 0 4px 16px rgba(255,255,255,0.3);
	transform: scale(1.08);
	color: #ffffff;
}

.volume-slider {
	width: 120px;
	accent-color: #ffffff;
	height: 6px;
	border-radius: 4px;
	background: #222;
}

.volume-icon {
	font-size: 1.5em;
	color: #ffffff;
	margin: 0 8px;
	vertical-align: middle;
}
.player-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 18px 0 0 0;
}

.player-btn {
	background: linear-gradient(90deg, #ffd700 60%, #ff9800 100%);
	border: none;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: #222;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	transition: box-shadow 0.2s, transform 0.2s;
}
.player-btn:hover {
	box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
	transform: scale(1.08);
}

.volume-slider {
	width: 120px;
	accent-color: #ffd700;
	height: 6px;
	border-radius: 4px;
	background: #444;
}
.song-info {
	display: flex;
	align-items: center;
	gap: 20px;
	justify-content: center;
}

.cover {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	background: #444;
}

.meta-details {
	text-align: left;
}
.logo {
	width: 180px;
	margin-bottom: 16px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.spotify-font {
	font-family: 'Montserrat', 'Arial', sans-serif;
}

body {
	font-family: 'Montserrat', 'Arial', sans-serif;
	background: linear-gradient(135deg, #191414 60%, #ffffff 100%);
	color: #fff;
	margin: 0;
	padding: 0;
	min-height: 100vh;
}

.container {
	max-width: 420px;
	margin: 48px auto;
	background: rgba(25, 20, 20, 0.98);
	border-radius: 18px;
	box-shadow: 0 8px 32px rgba(255,255,255,0.18), 0 2px 8px rgba(0,0,0,0.3);
	padding: 32px 28px 28px 28px;
	text-align: center;
	position: relative;
}

.logo {
	width: 160px;
	margin-bottom: 5px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(255,255,255,0.15);
}

audio {
	width: 100%;
	margin: 18px 0 0 0;
	display: none;
}

.player-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 18px 0 0 0;
}

.player-btn {
	background: linear-gradient(135deg, #ffffff 60%, #191414 100%);
	border: none;
	border-radius: 50%;
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	color: #191414;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(255,255,255,0.18);
	transition: box-shadow 0.2s, transform 0.2s;
}
.player-btn:hover {
	box-shadow: 0 4px 16px rgba(255,255,255,0.3);
	transform: scale(1.08);
	color: #ffffff;
}

.volume-slider {
	width: 120px;
	accent-color: #ffffff;
	height: 6px;
	border-radius: 4px;
	background: #222;
}

.song-info {
	display: flex;
	align-items: center;
	gap: 22px;
	justify-content: center;
	margin-top: 18px;
}

.cover {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(255,255,255,0.18);
	background: #222;
	border: 2px solid #ffffff;
}

.meta-details {
	text-align: left;
	font-size: 1.08em;
	color: #fff;
}

.metadata {
	background: rgba(40,40,40,0.98);
	border-radius: 12px;
	padding: 18px 18px 12px 18px;
	margin-top: 22px;
	box-shadow: 0 2px 8px rgba(255,255,255,0.10);
}

.metadata h2 {
	margin-top: 0;
	font-size: 1.15em;
	color: #ffffff;
	letter-spacing: 1px;
	font-weight: 600;
}

/* ===== NUEVOS ESTILOS PARA FUNCIONALIDADES ===== */

/* Loader de carga */
.loader-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(25, 20, 20, 0.98);
	backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
	opacity: 0;
	visibility: hidden;
}

/* Mensaje de rotación de dispositivo */
/* Mensaje de rotación - OCULTO por defecto */
.rotate-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #0a0a0a;
	display: none !important;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	flex-direction: column;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}

.rotate-content {
	text-align: center;
	color: #ffffff;
	padding: 40px;
	max-width: 500px;
}

.rotate-icon {
	font-size: 80px;
	color: #d4d4d4;
	margin-bottom: 30px;
	animation: rotateDevice 2s ease-in-out infinite;
}

@keyframes rotateDevice {
	0%, 100% { transform: rotate(0deg); }
	50% { transform: rotate(90deg); }
}

.rotate-content h2 {
	font-size: 2em;
	color: #ffffff;
	margin-bottom: 15px;
	font-weight: 700;
}

.rotate-content p {
	font-size: 1.1em;
	color: #d4d4d4;
	line-height: 1.6;
}

/* Mostrar mensaje solo en modo horizontal en móviles */
@media only screen and (orientation: landscape) and (max-height: 600px) {
	.rotate-overlay {
		display: flex !important;
		visibility: visible !important;
		opacity: 1 !important;
		pointer-events: auto !important;
	}
	
	body {
		overflow: hidden !important;
	}
	
	.container,
	#background-blur,
	.loader-overlay:not(.rotate-overlay) {
		display: none !important;
		visibility: hidden !important;
	}
}

/* En desktop con pantallas grandes nunca mostrar */
@media only screen and (min-height: 601px) and (orientation: landscape) {
	.rotate-overlay {
		display: none !important;
	}
}

.loader-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.spinner {
	width: 60px;
	height: 60px;
	border: 4px solid rgba(255, 255, 255, 0.2);
	border-top: 4px solid #ffffff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loader-text {
	color: #ffffff;
	font-size: 1.1em;
	font-weight: 600;
	letter-spacing: 1px;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.5; }
}

/* Barra de encabezado con logo y acciones */
.header-bar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	margin-bottom: 15px;
	gap: 5px;
	width: 100%;
}

.header-bar > :first-child {
	justify-self: start;
}

.header-bar > :nth-child(2) {
	justify-self: center;
}

.header-bar > :last-child {
	justify-self: end;
}

.header-actions {
	display: flex;
	gap: 10px;
}

.header-btn {
	background: rgba(80, 80, 80, 0.4);
	border: 2px solid rgba(160, 160, 160, 0.5);
	color: #e8e8e8;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1em;
	transition: all 0.3s ease;
}

.header-btn:hover {
	background: rgba(120, 120, 120, 0.6);
	border-color: #ffffff;
	color: #ffffff;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

.header-btn:active {
	transform: scale(0.95);
}

/* Header de metadata con estadísticas integradas */
.metadata-header {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	margin-bottom: 12px;
	gap: 5px;
	width: 100%;
}

.metadata-header > :first-child {
	justify-self: start;
}

.metadata-header > :nth-child(2) {
	justify-self: center;
}

.metadata-header > :last-child {
	justify-self: end;
}

.metadata-header h2 {
	margin: 0;
	background: linear-gradient(135deg, #ffffff, #d4d4d4, #ffffff);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-size: 1.2em;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	animation: gradientShift 3s ease infinite;
	filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

@keyframes gradientShift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.listeners-count {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #e8e8e8;
	font-weight: 600;
	font-size: 0.9em;
	padding: 6px 12px;
	background: rgba(60, 60, 60, 0.5);
	border-radius: 20px;
	border: 1px solid rgba(140, 140, 140, 0.4);
}

.listeners-count i {
	font-size: 1em;
}

.favorite-btn {
	background: rgba(255, 255, 255, 0.08);
	border: 2px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1em;
	transition: all 0.3s ease;
}

.favorite-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	border-color: #ffffff;
	transform: scale(1.1);
}

.favorite-btn:active {
	transform: scale(0.95);
}

.favorite-active {
	background: rgba(255, 255, 255, 0.2);
	border-color: #ffffff;
	color: #ffffff;
}

.favorite-active i {
	animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
	0%, 100% { transform: scale(1); }
	25% { transform: scale(1.3); }
	50% { transform: scale(1.1); }
}

/* Modales overlay */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	animation: fadeIn 0.3s ease;
}

.modal-overlay.hidden {
	display: none;
}

.modal-content {
	background: rgba(25, 20, 20, 0.98);
	border: 2px solid #b0b0b0;
	border-radius: 16px;
	padding: 25px;
	max-width: 90%;
	max-height: 85%;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
	animation: slideUp 0.3s ease;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2em;
	transition: all 0.3s ease;
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

.modal-content h3 {
	margin: 0 0 20px 0;
	font-size: 1.3em;
	color: #e8e8e8;
	text-align: center;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

/* Modal de compartir */
.share-modal {
	min-width: 320px;
}

.share-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.share-option {
	background: rgba(60, 60, 60, 0.4);
	border: 1px solid rgba(140, 140, 140, 0.4);
	color: #e8e8e8;
	padding: 14px 20px;
	border-radius: 10px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1em;
	transition: all 0.3s ease;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
}

.share-option:hover {
	background: rgba(100, 100, 100, 0.6);
	border-color: #c0c0c0;
	color: #ffffff;
	transform: translateX(8px);
}

.share-option i {
	font-size: 1.4em;
}

/* Modal de historial */
.history-modal {
	min-width: 400px;
	max-width: 500px;
}

.history-modal::-webkit-scrollbar {
	width: 8px;
}

.history-modal::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 4px;
}

.history-modal::-webkit-scrollbar-thumb {
	background: #b0b0b0;
	border-radius: 4px;
}

.history-modal::-webkit-scrollbar-thumb:hover {
	background: #d0d0d0;
}

.history-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.history-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	background: rgba(40, 40, 40, 0.6);
	border-radius: 10px;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.history-item:hover {
	background: rgba(80, 80, 80, 0.7);
	border-color: rgba(180, 180, 180, 0.4);
	transform: translateX(5px);
}

.history-cover {
	width: 55px;
	height: 55px;
	border-radius: 8px;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	flex-shrink: 0;
}

.history-info {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.history-title {
	margin: 0 0 5px 0;
	font-size: 0.95em;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.history-artist {
	margin: 0;
	font-size: 0.85em;
	color: #aaa;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.history-time {
	font-size: 0.8em;
	color: #888;
	white-space: nowrap;
	flex-shrink: 0;
}

.loading-text {
	text-align: center;
	color: #888;
	font-size: 0.95em;
	margin: 20px 0;
}

/* ===== NUEVAS FUNCIONALIDADES AVANZADAS ===== */

/* Header actions right */
.header-actions-right {
	display: flex;
	gap: 10px;
}

/* Modal de configuración */
.settings-modal {
	min-width: 420px;
	max-width: 500px;
}

.settings-section {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.settings-section h4 {
	color: #e8e8e8;
	font-size: 1em;
	margin: 0 0 12px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.settings-btn {
	background: rgba(80, 80, 80, 0.4);
	border: 1px solid rgba(160, 160, 160, 0.5);
	color: #e8e8e8;
	padding: 10px 20px;
	border-radius: 8px;
	cursor: pointer;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 0.95em;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: center;
}

.settings-btn:hover {
	background: rgba(120, 120, 120, 0.6);
	border-color: #c0c0c0;
	color: #ffffff;
}

.settings-btn.active {
	background: rgba(180, 180, 180, 0.5);
	border-color: #ffffff;
	color: #ffffff;
}

.settings-description {
	margin: 8px 0 0 0;
	font-size: 0.85em;
	color: #999;
}

/* Timer options */
.timer-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.timer-btn {
	background: rgba(60, 60, 60, 0.4);
	border: 1px solid rgba(140, 140, 140, 0.4);
	color: #e8e8e8;
	padding: 8px 16px;
	border-radius: 6px;
	cursor: pointer;
	font-family: 'Montserrat', sans-serif;
	font-weight: 500;
	font-size: 0.9em;
	transition: all 0.3s ease;
	flex: 1;
	min-width: 70px;
}

.timer-btn:hover {
	background: rgba(100, 100, 100, 0.6);
	border-color: #c0c0c0;
}

.timer-btn.active {
	background: rgba(180, 180, 180, 0.5);
	border-color: #ffffff;
	color: #ffffff;
}

.timer-btn.cancel {
	background: rgba(200, 50, 50, 0.3);
	border-color: rgba(200, 50, 50, 0.5);
}

.timer-btn.cancel:hover {
	background: rgba(200, 50, 50, 0.5);
	border-color: #ff4444;
}

#timerStatus {
	font-weight: 600;
	color: #e8e8e8;
}

/* Shortcuts list */
.shortcuts-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.shortcut-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	background: rgba(40, 40, 40, 0.6);
	border-radius: 6px;
	font-size: 0.9em;
	color: #ccc;
}

kbd {
	background: rgba(80, 80, 80, 0.6);
	border: 1px solid rgba(160, 160, 160, 0.4);
	border-radius: 4px;
	padding: 4px 8px;
	font-family: 'Montserrat', monospace;
	font-size: 0.85em;
	color: #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	min-width: 30px;
	text-align: center;
	display: inline-block;
}

/* Stats grid */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.stat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px;
	background: rgba(60, 60, 60, 0.4);
	border: 1px solid rgba(140, 140, 140, 0.3);
	border-radius: 8px;
	transition: all 0.3s ease;
}

.stat-item:hover {
	background: rgba(80, 80, 80, 0.6);
	border-color: rgba(180, 180, 180, 0.4);
}

.stat-value {
	font-size: 1.5em;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 4px;
}

.stat-label {
	font-size: 0.75em;
	color: #999;
	text-align: center;
}

/* Responsive para configuración */
@media (max-width: 600px) {
	.settings-modal {
		min-width: auto !important;
		width: 88vw !important;
	}
	
	.stats-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	
	.timer-options {
		flex-direction: column;
	}
	
	.timer-btn {
		min-width: auto;
	}
}

@media (max-width: 400px) {
	.settings-modal {
		width: 90vw !important;
	}
	
	.settings-section h4 {
		font-size: 0.9em;
	}
	
	.settings-btn {
		font-size: 0.85em;
		padding: 8px 16px;
	}
	
	.stat-value {
		font-size: 1.2em;
	}
}
