/**
 * Miniplayer persistente da rádio.
 */

.vtr-radio-player,
.vtr-radio-player * {
	box-sizing: border-box;
}

.vtr-radio-player {
	position: fixed;
	right: auto;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	left: 50%;
	z-index: 9990;
	width: min(310px, calc(100% - 36px));
	padding: 4px 18px 4px 12px;
	border: 1px solid rgba(0, 177, 170, 0.72);
	border-radius: 999px;
	background: linear-gradient(120deg, rgba(16, 67, 62, 0.97), rgba(43, 119, 109, 0.96));
	box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
	color: var(--vtr-color-white, #fff);
	font-family: Montserrat, Arial, "Helvetica Neue", Helvetica, sans-serif;
	backdrop-filter: blur(16px);
	transform: translateX(-50%);
}

.vtr-radio-player[hidden] {
	display: none !important;
}

.vtr-radio-player__inner {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
}

.vtr-radio-player__brand {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.78);
	border-radius: 50%;
	background: rgba(255, 250, 226, 0.9);
	box-shadow: inset 0 0 0 1px rgba(7, 61, 56, 0.08), 0 6px 18px rgba(0, 0, 0, 0.12);
	overflow: hidden;
}

.vtr-radio-player__brand img {
	display: block;
	width: 32px;
	height: 32px;
	object-fit: contain;
	filter: brightness(0);
	opacity: 0.68;
}

.vtr-radio-player__body {
	display: grid;
	grid-template-rows: auto 40px;
	min-width: 0;
	gap: 4px;
}

.vtr-radio-player__copy {
	min-width: 0;
	padding-right: 24px;
	overflow: hidden;
}

.vtr-radio-player__close {
	position: absolute;
	top: 50%;
	right: 8px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.78);
	cursor: pointer;
	transform: translateY(-50%);
	transition: color 180ms ease, background-color 180ms ease;
}

.vtr-radio-player__close:hover,
.vtr-radio-player__close:focus-visible {
	background: rgba(0, 177, 170, 0.22);
	color: #fff;
}

.vtr-radio-player__close:focus-visible {
	outline: 2px solid #00b1aa;
	outline-offset: 1px;
}

.vtr-radio-player__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2.2;
}

.vtr-radio-player__title-viewport {
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
}

.vtr-radio-player__title-viewport strong {
	display: inline-block;
	min-width: max-content;
	color: var(--vtr-color-white, #fff);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.vtr-radio-player__title-viewport.is-marquee strong {
	animation: vtr-radio-title-marquee var(--vtr-radio-title-duration, 7s) linear infinite alternate;
	will-change: transform;
}

.vtr-radio-player__title-viewport:hover strong {
	animation-play-state: paused;
}

.vtr-radio-player__copy > span {
	display: none;
}

.vtr-radio-player__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(100% + 52px);
	margin-left: -52px;
	gap: 2px;
}

.vtr-radio-player button {
	margin: 0;
	font: inherit;
}

.vtr-radio-player__toggle,
.vtr-radio-player__skip {
	display: inline-grid;
	place-items: center;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: transparent;
	color: var(--vtr-color-white, #fff);
	cursor: pointer;
	transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.vtr-radio-player__toggle {
	width: 50px;
	flex: 0 0 50px;
}

.vtr-radio-player__skip {
	width: 44px;
	flex: 0 0 44px;
	color: rgba(255, 255, 255, 0.84);
}

.vtr-radio-player__toggle:hover,
.vtr-radio-player__toggle:focus-visible,
.vtr-radio-player__skip:hover,
.vtr-radio-player__skip:focus-visible {
	background: rgba(0, 177, 170, 0.22);
	color: #fff;
	transform: scale(1.05);
}

.vtr-radio-player__toggle:focus-visible,
.vtr-radio-player__skip:focus-visible {
	outline: 2px solid #00b1aa;
	outline-offset: 2px;
}

.vtr-radio-player__toggle svg {
	width: 29px;
	height: 29px;
	fill: currentColor;
	stroke: none;
}

.vtr-radio-player__skip svg {
	width: 25px;
	height: 25px;
	fill: currentColor;
	stroke: none;
}

.vtr-radio-player__toggle [data-vtr-radio-play],
.vtr-radio-player__toggle [data-vtr-radio-pause] {
	place-items: center;
	line-height: 0;
}

.vtr-radio-player__toggle [data-vtr-radio-play] {
	display: grid;
	padding-left: 2px;
}

.vtr-radio-player__toggle [data-vtr-radio-pause] {
	display: none;
}

.vtr-radio-player__toggle[aria-pressed="true"] [data-vtr-radio-play] {
	display: none;
}

.vtr-radio-player__toggle[aria-pressed="true"] [data-vtr-radio-pause] {
	display: grid;
}

.vtr-radio-player[data-vtr-radio-error="true"] {
	border-color: rgba(164, 28, 52, 0.78);
}

body.vtr-radio-player-visible .vtr-back-to-top {
	bottom: calc(var(--vtr-radio-player-height, 92px) + 32px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 600px) {
	.vtr-radio-player {
		right: auto;
		bottom: calc(8px + env(safe-area-inset-bottom, 0px));
		left: 50%;
		width: min(310px, calc(100% - 16px));
		transform: translateX(-50%);
	}
}

@keyframes vtr-radio-title-marquee {
	0%,
	15% {
		transform: translateX(0);
	}

	85%,
	100% {
		transform: translateX(var(--vtr-radio-title-offset, 0));
	}
}

@media (prefers-reduced-motion: reduce) {
	.vtr-radio-player__toggle,
	.vtr-radio-player__skip,
	.vtr-radio-player__close {
		transition: none;
	}

	.vtr-radio-player__title-viewport.is-marquee strong {
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		animation: none;
	}
}
