@charset "utf-8";
/* ==========================================================================
   Radio Municipal Maciá · FM 87.9
   Author: José M. Chiardola · www.chiardola.com
   ========================================================================== */

:root {
	--color-panel:   rgba(10, 10, 10, 0.82);
	--color-border:  rgba(255, 255, 255, 0.08);
	--color-accent:  #e8102a;
	--color-accent2: #ff4d5e;
	--color-text:    #f0f0f0;
	--color-muted:   rgba(255, 255, 255, 0.45);
	--color-glass:   rgba(255, 255, 255, 0.04);
	--font-title:    'Oswald', sans-serif;
	--font-body:     'Ubuntu', sans-serif;
	--radius:        12px;
	--radius-sm:     8px;
	--transition:    0.25s ease;
	--logo-h:        0px;  /* calculado dinámicamente por JS */
}

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

/* body: Vegas requiere position:static y overflow visible en body */
html {
	height: 100%;
}
body {
	min-height: 100%;
	font-family: var(--font-body);
	color: var(--color-text);
	background: #0d0d0d;
	/* NO overflow:hidden — Vegas lo necesita libre */
}

/* =========================================================
   Logo Bar — full-width, altura automática según imagen
   ========================================================= */
#logo-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: auto;          /* crece con la imagen */
	z-index: 100;
	display: block;
	background: linear-gradient(
		to bottom,
		rgba(0,0,0,0.80) 0%,
		rgba(0,0,0,0.45) 65%,
		transparent       100%
	);
}
#logo-img {
	display: block;
	width: 100%;           /* ancho completo siempre */
	height: auto;          /* mantiene proporción real de la imagen */
}

/* =========================================================
   Panel wrapper — top calculado por JS según altura real del logo
   ========================================================= */
#panel-wrapper {
	position: fixed;
	top: var(--logo-h);    /* JS actualiza esta variable */
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 24px 5vw 0;
	pointer-events: none;
}

/* =========================================================
   Panel principal
   ========================================================= */
#panel {
	pointer-events: all;   /* reactiva para el panel en sí */
	width: 100%;
	max-width: 460px;
	background: var(--color-panel);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 22px 24px 20px;
	backdrop-filter: blur(18px) saturate(140%);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	box-shadow:
		0 0 0 1px rgba(255,255,255,0.04),
		0 2px 12px rgba(0,0,0,0.90),
		0 8px 48px rgba(0,0,0,0.80),
		0 0 80px rgba(232,16,42,0.06);
	animation: panelIn 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes panelIn {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0);    }
}

/* --- Badge EN VIVO --- */
#live-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-bottom: 16px;
}
.live-dot {
	width: 9px;
	height: 9px;
	background: var(--color-accent);
	border-radius: 50%;
	flex-shrink: 0;
	animation: pulse 1.8s infinite;
}
@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 0   rgba(232,16,42,0.7); }
	50%       { box-shadow: 0 0 0 6px rgba(232,16,42,0);   }
}
.live-text {
	font-family: var(--font-title);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: var(--color-accent);
	text-transform: uppercase;
}

/* --- Stream Info --- */
#stream-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
	padding: 12px 14px;
	background: var(--color-glass);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
}
.info-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
}
.info-item--song .info-value {
	font-style: italic;
	color: rgba(255,255,255,0.75);
}
.info-icon {
	color: var(--color-accent);
	width: 16px;
	text-align: center;
	font-size: 0.8rem;
	flex-shrink: 0;
}
.info-label {
	color: var(--color-muted);
	font-size: 0.78rem;
	width: 68px;
	flex-shrink: 0;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-family: var(--font-title);
	font-weight: 400;
}
.info-value {
	color: var(--color-text);
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* --- Reproductor custom --- */
#custom-player {
	display: flex;
	align-items: center;
	gap: 12px;
	background: var(--color-glass);
	border: 1px solid var(--color-border);
	border-radius: 50px;
	padding: 8px 16px 8px 8px;
}
#play-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: var(--color-accent);
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background var(--transition), transform var(--transition);
}
#play-btn:hover  { background: var(--color-accent2); transform: scale(1.08); }
#play-btn:active { transform: scale(0.95); }

#player-info { flex: 1; overflow: hidden; }
#player-label {
	display: block;
	font-family: var(--font-title);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--color-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Ecualizador */
#eq-bars {
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 14px;
	margin-top: 4px;
}
#eq-bars span {
	display: block;
	width: 3px;
	background: var(--color-accent);
	border-radius: 2px;
	animation: eq 0.8s ease-in-out infinite alternate;
}
#eq-bars span:nth-child(1) { height: 4px;  animation-delay: 0s;    animation-duration: 0.70s; }
#eq-bars span:nth-child(2) { height: 10px; animation-delay: 0.15s; animation-duration: 0.90s; }
#eq-bars span:nth-child(3) { height: 7px;  animation-delay: 0.05s; animation-duration: 0.60s; }
#eq-bars span:nth-child(4) { height: 12px; animation-delay: 0.25s; animation-duration: 1.00s; }
#eq-bars span:nth-child(5) { height: 5px;  animation-delay: 0.10s; animation-duration: 0.75s; }
@keyframes eq {
	from { transform: scaleY(0.3); }
	to   { transform: scaleY(1);   }
}

/* Volumen */
#volume-area {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-shrink: 0;
}
#vol-icon {
	color: var(--color-muted);
	font-size: 0.85rem;
	cursor: pointer;
	transition: color var(--transition);
}
#vol-icon:hover { color: var(--color-text); }
#volume-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 70px;
	height: 3px;
	border-radius: 2px;
	background: rgba(255,255,255,0.2);
	outline: none;
	cursor: pointer;
}
#volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--color-accent);
	transition: transform var(--transition);
}
#volume-slider::-webkit-slider-thumb:hover { transform: scale(1.3); }
#volume-slider::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--color-accent);
	border: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 500px) {
	#panel-wrapper {
		align-items: flex-end;
		justify-content: center;
		padding: 0;
	}
	#panel {
		max-width: 100%;
		width: 100%;
		border-radius: var(--radius) var(--radius) 0 0;
		border-bottom: none;
		padding: 18px 16px 20px;
	}
	#volume-slider { width: 55px; }
}
@media (min-width: 501px) and (max-width: 768px) {
	#panel { max-width: 400px; }
}
