/* =====================================================================
   Grande FM 92,1 — NOVO PLAYER (estilo EPG, igual à grade de programação)
   Tokens de cor/tipografia idênticos ao main.css do site.
   ===================================================================== */

:root {
	--primaria: #da2a2a;
	--secundaria: #29aff3;
	--tercearia: #0b5d76;
	--fundo: #053c5b;
	--fundo_gradient: linear-gradient(90deg, rgba(45, 10, 10, 1) 0%, rgba(9, 15, 20, 1) 100%);
	--texto: #eeeeee;
	--texto-suave: #a7c3d4;
}

* {
	box-sizing: border-box;
}

/* o atributo hidden sempre vence (autores podem definir display nos componentes) */
[hidden] {
	display: none !important;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--fundo);
	font-family: "Montserrat", "SF UI Text", sans-serif;
	color: var(--texto);
	-webkit-font-smoothing: antialiased;
	padding: 15px 0 15px 0 !important;
}

/* scrollbars no estilo do site */
*::-webkit-scrollbar-track {
	width: 5px;
	background: var(--fundo);
}

*::-webkit-scrollbar {
	width: 5px;
	height: 6px;
	background: #111;
}

*::-webkit-scrollbar-thumb {
	width: 5px;
	background: var(--tercearia);
	border-radius: 5px;
}

/* ============ FUNDO AMBIENTE (capa desfocada) ============ */
.ambiente {
	position: fixed;
	inset: -40px;
	z-index: -2;
	background-size: cover;
	background-position: center;
	filter: blur(30px) saturate(1.25);
	opacity: .88;
	transition: background-image 1.8s ease, opacity 1.8s ease;
}

.ambiente::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(1200px 600px at 50% -10%, rgba(41, 175, 243, .16), transparent 60%),
		linear-gradient(180deg, rgba(5, 32, 50, .55), rgba(4, 26, 41, .92) 70%);
}

/* ============ TOPO ============ */
.topo {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1160px;
	margin: 0 auto;
	padding: 18px 20px 8px;
	flex-wrap: wrap;
}

.topo__logo img {
	width: 58px;
	height: 58px;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
	transition: transform .2s ease;
}

.topo__logo:hover img {
	transform: translateY(-2px) scale(1.03);
}

.topo__marca {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.topo__freq {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	color: var(--texto-suave);
}

.topo__freq b {
	color: var(--secundaria);
}

.topo__relogio {
	text-align: right;
}

.topo__relogio b {
	display: block;
	font-size: 24px;
	font-weight: 900;
	color: var(--secundaria);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.topo__relogio span {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--texto-suave);
	text-transform: capitalize;
}

.chip-vivo {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: var(--primaria);
	color: #fff;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .12em;
	border-radius: 20px;
	padding: 5px 12px;
	box-shadow: 0 0 18px rgba(217, 42, 42, .55);
}

.chip-vivo.is-off {
	background: var(--tercearia);
	box-shadow: none;
}

.chip-vivo .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	animation: pulse 1.6s infinite;
}

.chip-vivo.is-off .dot {
	animation: none;
	opacity: .6;
}

/* ============ BANNER (preservado) ============ */
.banner-area {
	display: flex;
	justify-content: center;
	margin: 6px auto 14px;
}

.banner_310x100 {
	border-radius: 6px;
	background-color: #006191;
	border: 0;
}

/* ============ LAYOUT ============ */
.layout {
	display: grid;
	grid-template-columns: 1.65fr 1fr;
	gap: 18px;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}

.card {
	background: linear-gradient(155deg, rgba(9, 58, 86, .78), rgba(4, 30, 48, .88));
	border: 1px solid rgba(41, 175, 243, .3);
	border-radius: 16px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}

/* ============ CARD DO PLAYER ============ */
.player {
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.player__topo {
	display: flex;
	gap: 24px;
	align-items: center;
}

/* arte com anel animado (homenagem ao "glow" original) */
.player__art {
	flex: 0 0 auto;
	padding: 3px;
	border-radius: 18px;
	background: linear-gradient(45deg, var(--tercearia), var(--primaria), var(--secundaria), var(--primaria), var(--tercearia));
	background-size: 400% 400%;
	animation: glowring 20s linear infinite;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}

.player__art-inner {
	width: 168px;
	height: 168px;
	border-radius: 15px;
	overflow: hidden;
	background: #04304a;
}

.player__art-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity .5s ease;
}

.player__art-inner img.is-loading {
	opacity: .35;
}

.player__info {
	min-width: 0;
	flex: 1;
}

.tag-noar {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--primaria);
	color: #fff;
	font-size: 9.5px;
	font-weight: 900;
	letter-spacing: .12em;
	border-radius: 20px;
	padding: 3px 10px;
	margin-bottom: 8px;
}

.tag-noar .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	animation: pulse 1.6s infinite;
}

.player__programa {
	margin: 0;
	font-size: clamp(22px, 3.4vw, 22px);
	font-weight: 900;
	line-height: 1.05;
	text-transform: uppercase;
	letter-spacing: .01em;
}

.player__locutor {
	margin: 6px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--texto-suave);
}

.locutor__foto {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--secundaria);
	margin-right: 9px;
	vertical-align: middle;
	background: #04304a;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}

.player__faixa {
	margin-top: 14px;
	padding: 12px 14px;
	background: rgba(0, 0, 0, .3);
	border: 1px solid rgba(255, 255, 255, .07);
	border-left: 4px solid var(--secundaria);
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.faixa__label {
	font-size: 8.5px;
	font-weight: 900;
	letter-spacing: .16em;
	color: var(--secundaria);
}

.faixa__musica {
	font-size: 16px;
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.faixa__interprete {
	font-size: 12px;
	font-weight: 600;
	color: var(--texto-suave);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* barra de progresso do programa */
.progbar__dados {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 11px;
	font-weight: 800;
	color: var(--secundaria);
	font-variant-numeric: tabular-nums;
	margin-bottom: 6px;
}

.progbar__dados #restantePrograma {
	color: var(--texto-suave);
	font-weight: 700;
}

.progbar__trilho {
	height: 8px;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, .1);
}

.progbar__trilho i {
	display: block;
	height: 100%;
	border-radius: 8px;
	background: linear-gradient(90deg, var(--secundaria), var(--primaria));
	box-shadow: 0 0 14px rgba(217, 42, 42, .5);
	transition: width .6s ease;
}

/* status */
.player__status {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--texto-suave);
	background: rgba(0, 0, 0, .25);
	border-radius: 10px;
	padding: 10px 14px;
}

.status__ico {
	display: flex;
	color: var(--secundaria);
}

.status__ico .material-icons-round {
	font-size: 20px;
}

.player__status.is-live {
	color: #fff;
}

.player__status.is-live .status__ico {
	color: var(--primaria);
}

.player__status.is-erro {
	color: #ffd9d9;
}

.player__status.is-erro .status__ico {
	color: var(--primaria);
}

/* controles */
.controles {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: rgba(0, 0, 0, .35);
	border: 1px solid rgba(41, 175, 243, .35);
	border-radius: 50rem;
	padding: 10px 16px;
	flex-wrap: wrap;
}

.controles__grupo {
	display: flex;
	align-items: center;
	gap: 10px;
}

.controles__sep {
	width: 1px;
	height: 26px;
	background: rgba(255, 255, 255, .14);
}

.controles__volume {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 180px;
	justify-content: flex-end;
}

.ctl {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, border-color .2s ease, transform .15s ease, color .2s ease;
}

.ctl:hover {
	background: rgba(41, 175, 243, .2);
	border-color: var(--secundaria);
	transform: translateY(-2px);
}

.ctl:focus-visible {
	outline: 2px solid var(--secundaria);
	outline-offset: 2px;
}

.ctl .material-icons-round {
	font-size: 22px;
}

.ctl--peq {
	width: 34px;
	height: 34px;
}

.ctl--peq .material-icons-round {
	font-size: 18px;
}

.ctl.is-on {
	color: var(--secundaria);
	border-color: var(--secundaria);
	background: rgba(41, 175, 243, .15);
}

#btnLike.is-on {
	color: #7ee081;
	border-color: #7ee081;
	background: rgba(126, 224, 129, .12);
}

#btnDislike.is-on {
	color: #ff9d9d;
	border-color: #ff9d9d;
	background: rgba(255, 157, 157, .12);
}

.ctl--play {
	width: 62px;
	height: 62px;
	background: var(--primaria);
	border: 0;
	box-shadow: 0 8px 26px rgba(217, 42, 42, .55);
}

.ctl--play:hover {
	background: var(--primaria);
	filter: brightness(1.12);
}

.ctl--play .material-icons-round {
	font-size: 32px;
}

.ctl--play.is-aguardando {
	animation: pulseplay 1.8s infinite;
}

#volume {
	-webkit-appearance: none;
	appearance: none;
	width: 130px;
	height: 6px;
	border-radius: 6px;
	outline: none;
	cursor: pointer;
	background: linear-gradient(90deg, var(--secundaria) var(--vol, 100%), rgba(255, 255, 255, .14) var(--vol, 100%));
}

#volume::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 10px rgba(41, 175, 243, .8);
	cursor: pointer;
}

#volume::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 10px rgba(41, 175, 243, .8);
	cursor: pointer;
}

.vol__pct {
	font-size: 10px;
	font-weight: 800;
	color: var(--texto-suave);
	width: 34px;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.player__dica {
	font-size: 10px;
	font-weight: 600;
	color: #7fa3b8;
	text-align: center;
}

/* ============ LATERAL ============ */
.lateral {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.info-card {
	padding: 18px 20px;
}

.info-card__head {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
	color: var(--secundaria);
	margin-bottom: 12px;
}

.info-card__head .material-icons-round {
	font-size: 18px;
}

.clima {
	display: flex;
	align-items: center;
	gap: 16px;
}

.clima__ico {
	font-size: 44px;
	color: var(--secundaria);
}

.clima__grande {
	font-size: 16px;
	font-weight: 700;
	color: var(--texto-suave);
}

.clima__grande b {
	font-size: 40px;
	font-weight: 900;
	color: var(--texto);
}

.clima__detalhes {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--texto-suave);
}

.clima__detalhes b {
	color: var(--texto);
}

.clima__legenda {
	text-transform: capitalize;
	color: var(--secundaria);
	font-weight: 800;
}

.mercado {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mercado li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	background: rgba(0, 0, 0, .25);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 700;
	color: var(--texto-suave);
}

.mercado li b {
	color: var(--texto);
	font-variant-numeric: tabular-nums;
}

.promo__img {
	width: 100%;
	border-radius: 10px;
	margin-bottom: 10px;
}

.promo__l1 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 900;
}

.promo__l2 {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--texto-suave);
}

/* ============ MINI EPG ============ */
.miniepg {
	max-width: 1160px;
	margin: 18px auto 0;
	padding: 16px 20px 18px;
}

.miniepg__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 10px;
	font-weight: 900;
	letter-spacing: .16em;
	color: var(--secundaria);
	margin-bottom: 12px;
}

.miniepg__head>div {
	display: flex;
	align-items: center;
	gap: 8px;
}

.miniepg__head .material-icons-round {
	font-size: 18px;
}

.miniepg__agora {
	background: var(--primaria);
	color: #fff;
	border-radius: 20px;
	padding: 3px 10px;
	font-size: 9.5px;
	letter-spacing: .08em;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 0 14px rgba(217, 42, 42, .55);
}

.miniepg__corpo {
	position: relative;
}

.miniepg__ruler {
	position: relative;
	height: 26px;
	border-bottom: 1px solid rgba(41, 175, 243, .25);
}

.miniepg__hour {
	position: absolute;
	bottom: 4px;
	font-size: 9px;
	font-weight: 700;
	color: #9fc4d8;
	transform: translateX(-50%);
	font-variant-numeric: tabular-nums;
}

.miniepg__tick {
	position: absolute;
	top: 12px;
	bottom: 0;
	width: 1px;
	background: rgba(255, 255, 255, .1);
}

.miniepg__tick.is-major {
	background: rgba(41, 175, 243, .35);
}

.miniepg__track {
	position: relative;
	height: 58px;
	border-radius: 10px;
	overflow: hidden;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px, transparent calc(100% / 24)),
		rgba(0, 0, 0, .28);
}

.miniepg__bloco {
	position: absolute;
	top: 7px;
	bottom: 7px;
	border-radius: 9px;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	background: linear-gradient(150deg, rgba(217, 42, 42, .35), rgba(11, 93, 118, .6));
	border: 1px solid var(--primaria);
	box-shadow: 0 0 0 1px rgba(217, 42, 42, .5), 0 0 20px rgba(217, 42, 42, .4);
	min-width: 90px;
}

.miniepg__bloco img {
	width: 34px;
	height: 34px;
	border-radius: 7px;
	object-fit: cover;
	background: #04304a;
	flex: 0 0 auto;
}

.miniepg__bloco .b-nome {
	font-size: 12.5px;
	font-weight: 800;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.miniepg__bloco .b-hora {
	font-size: 9.5px;
	font-weight: 700;
	color: #ffd9d9;
	white-space: nowrap;
}

.miniepg__bloco .b-txt {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.miniepg__bloco-progresso {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--secundaria), var(--primaria));
}

.miniepg__nowline {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	z-index: 5;
	background: var(--primaria);
	box-shadow: 0 0 12px rgba(217, 42, 42, .95);
	pointer-events: none;
}

.miniepg__vazio {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--texto-suave);
}

/* ============ SOCIAL ============ */
.social {
	max-width: 1160px;
	margin: 18px auto 0;
	padding: 18px 20px;
	text-align: center;
}

.social__titulo {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .2em;
	color: var(--secundaria);
}

.social__row {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.social__btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(218, 42, 42, .5);
	color: #fff;
	font-size: 17px;
	text-decoration: none;
	transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.social__btn:hover {
	transform: translateY(-3px);
	background: var(--primaria);
	border-color: var(--primaria);
	box-shadow: 0 8px 22px rgba(217, 42, 42, .45);
}

.social__btn--x img {
	display: block;
}

/* ============ RODAPÉ ============ */
.rodape {
	max-width: 1160px;
	margin: 20px auto 0;
	padding: 0 20px;
	text-align: center;
	font-size: 8.5pt;
	color: #9fc4d8;
}

.rodape a {
	color: var(--secundaria);
	text-decoration: none;
	font-weight: 700;
}

.rodape__dev {
	color: #7fa3b8;
}

/* ============ ANIMAÇÕES ============ */
@keyframes pulse {

	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}

	50% {
		opacity: .35;
		transform: scale(.75);
	}
}

@keyframes pulseplay {

	0%,
	100% {
		box-shadow: 0 8px 26px rgba(217, 42, 42, .55);
	}

	50% {
		box-shadow: 0 8px 34px rgba(217, 42, 42, .95), 0 0 0 12px rgba(217, 42, 42, .12);
	}
}

@keyframes glowring {
	0% {
		background-position: 0 0;
	}

	50% {
		background-position: 400% 0;
	}

	100% {
		background-position: 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	html {
		scroll-behavior: auto;
	}
}

/* ============ RESPONSIVO ============ */
@media only screen and (max-width: 860px) {
	.layout {
		grid-template-columns: 1fr;
	}

	.topo {
		justify-content: center;
		text-align: center;
	}

	.topo__relogio {
		text-align: center;
	}
}

@media only screen and (max-width: 520px) {
	.player {
		padding: 18px;
	}

	.player__topo {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}

	.player__info {
		width: 100%;
	}

	.controles {
		justify-content: center;
	}

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

	.controles__sep {
		display: none;
	}

	.clima {
		flex-wrap: wrap;
		justify-content: center;
		text-align: center;
	}

	.miniepg__bloco .b-txt {
		display: none;
	}
}