/* ===== VARIÁVEIS E RESET ===== */
:root {
	--bg-primary: #f0f2f5;
	--bg-secondary: #ffffff;
	--bg-card: #ffffff;
	--accent-orange: #f46f23;
	--accent-orange-hover: #ff8534;
	--text-primary: #1a1a1a;
	--text-secondary: #5a5a5a;
	--text-muted: #8d8d8d;
}

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

body {
	font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: var(--bg-primary);
	color: var(--text-primary);
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
}

/* ===== CONTAINER PRINCIPAL ===== */
.player-container {
	background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
	border-radius: 16px;
	padding: 2rem;
	max-width: 400px;
	width: 100%;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ===== LOGO ===== */
.logo-wrapper {
	display: flex;
	justify-content: center;
	margin-bottom: 3rem;
	margin-top: 1.5rem;
	width: 100%;
}

.logo {
	max-width: 280px;
	width: 80%;
	object-fit: contain;
	border-radius: 8px;
}

/* ===== INFO DA RÁDIO ===== */
.radio-info {
	text-align: center;
	margin-bottom: 1.5rem;
}

.radio-name {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.radio-frequency {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.live-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(244, 111, 35, 0.15);
	color: var(--accent-orange);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	margin-top: 0.75rem;
}

.live-dot {
	width: 8px;
	height: 8px;
	background: var(--accent-orange);
	border-radius: 50%;
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(0.8);
	}
}

.listener-count {
	font-size: 0.8rem;
	color: var(--text-secondary);
	margin-top: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.listener-icon {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* ===== VISUALIZADOR DE ONDAS ===== */
.visualizer-container {
	background: var(--bg-card);
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1.5rem;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.visualizer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	height: 100%;
	width: 100%;
}

.visualizer-bar {
	width: 4px;
	background: linear-gradient(180deg, var(--accent-orange) 0%, #bd4c0e 100%);
	border-radius: 2px;
	transition: height 0.1s ease;
}

.visualizer-bar.paused {
	height: 4px !important;
	background: var(--text-muted);
}

/* ===== CONTROLES ===== */
.controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.play-button {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--accent-orange);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(244, 111, 35, 0.3);
}

.play-button:hover {
	background: var(--accent-orange-hover);
	transform: scale(1.05);
}

.play-button:active {
	transform: scale(0.98);
}

.play-button svg {
	width: 28px;
	height: 28px;
	fill: #ffffff;
}

.play-button .play-icon {
	margin-left: 0;
	width: 32px;
	height: 32px;
}

/* ===== VOLUME ===== */
.volume-control {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 0.5rem;
}

.volume-icon {
	width: 20px;
	height: 20px;
	fill: var(--text-secondary);
	cursor: pointer;
	transition: fill 0.2s ease;
	flex-shrink: 0;
}

.volume-icon:hover {
	fill: var(--text-primary);
}

.volume-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 4px;
	background: var(--text-muted);
	border-radius: 2px;
	outline: none;
	cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	background: var(--text-primary);
	border-radius: 50%;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	margin-top: -5px;
}

.volume-slider::-webkit-slider-thumb:hover {
	transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
	width: 14px;
	height: 14px;
	background: var(--text-primary);
	border-radius: 50%;
	cursor: pointer;
	border: none;
}

.volume-slider::-webkit-slider-runnable-track {
	background: linear-gradient(
		to right,
		var(--accent-orange) 0%,
		var(--accent-orange) var(--volume-percent, 100%),
		var(--text-muted) var(--volume-percent, 100%),
		var(--text-muted) 100%
	);
	height: 4px;
	border-radius: 2px;
}

.volume-value {
	font-size: 0.75rem;
	color: var(--text-secondary);
	min-width: 35px;
	text-align: right;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 480px) {
	body {
		padding: 1rem;
	}

	.player-container {
		padding: 1.5rem;
	}

	.radio-name {
		font-size: 1.25rem;
	}

	.play-button {
		width: 56px;
		height: 56px;
	}

	.play-button svg {
		width: 24px;
		height: 24px;
	}
}
