body {
	margin: 0px;
	padding: 0px;
	font-size: 18px;
	color: #fff;
	background-color: transparent !important;
	background-image: none !important;
	overflow: hidden;
	font-family: Verdana, sans-serif;
	width: 1280px;
	height: 720px;
}

div,
span {}

#wrapper {
	height: 720px;
	width: 1280px;
	overflow: hidden;
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 1;
}

#menu {}

#topMenu {
	height: 50px;
	left: 0px;
	overflow: hidden;
	position: absolute;
	top: 0px;
	white-space: nowrap;
	width: 1280px;
	background-color: rgba(0, 129, 200, 0.1);
	border-bottom: 2px solid #0081c8;
	display: block;
	z-index: 9;
}

#topMenuItems {
	height: 50px;
	left: 0px;
	overflow: visible;
	position: absolute;
	top: 0px;
	white-space: nowrap;
	width: auto;
	padding-left: 475px;
	-moz-transition: 0.5s left cubic-bezier(0.42, 0, 0.58, 1);
	-webkit-transition: 0.5s left cubic-bezier(0.42, 0, 0.58, 1);
	-o-transition: 0.5s left cubic-bezier(0.42, 0, 0.58, 1);
	transition: 0.5s left cubic-bezier(0.42, 0, 0.58, 1);
}

.topmenuitem {
	color: #000;
	display: inline-block;
	font-size: 24px;
	margin-left: 63px;
	height: 46px;
	line-height: 46px;
	border-bottom: 5px solid transparent;

	-moz-transition: all 0.10s linear;
	-webkit-transition: all 0.10s linear;
	-o-transition: all 0.10s linear;
	transition: all 0.10s linear;
}

.topmenuitem.focused {
	text-decoration: none !important;
	border-bottom: none !important;
	box-shadow: 0 3px 0 0 #0081c8;
	-webkit-box-shadow: 0 3px 0 0 #0081c8;
	-moz-box-shadow: 0 3px 0 0 #0081c8;
	-webkit-transform: scale(1.2, 1.2);
	transform: scale(1.2, 1.2);
	color: #0081c8 !important;
	padding-left: 16px;
	padding-right: 16px;
	background-color: rgba(0, 129, 200, 0.15);
}

.topmenuitem.selected {
	text-decoration: none !important;
	color: #0b2e6c !important;
	-webkit-transform: scale(1.3, 1.3);
	transform: scale(1.3, 1.3);
}

.topmenuitem.focused.selected {
	text-decoration: none !important;
	border-bottom: none !important;
	box-shadow: 0 3px 0 0 #0081c8;
	-webkit-box-shadow: 0 3px 0 0 #0081c8;
	-moz-box-shadow: 0 3px 0 0 #0081c8;
	-webkit-transform: scale(1.2, 1.2);
	transform: scale(1.2, 1.2);
	color: #0b2e6c !important;
	padding-left: 16px;
	padding-right: 16px;
	background-color: rgba(0, 129, 200, 0.2);
}

#gridScrollView {
	display: block;
	height: 500px;
	position: absolute;
	top: 100px;
	white-space: nowrap;
	width: auto;
	-moz-transition: 0.35s left cubic-bezier(0.42, 0, 0.58, 1);
	-webkit-transition: 0.35s left cubic-bezier(0.42, 0, 0.58, 1);
	-o-transition: 0.35s left cubic-bezier(0.42, 0, 0.58, 1);
	transition: 0.35s left cubic-bezier(0.42, 0, 0.58, 1);
}


.grid {
	background-color: rgba(0, 129, 200, 0.15);
	border: 1px solid rgba(0, 129, 200, 0.3);
	display: inline-block;
	height: 530px;
	position: absolute;
	top: 10px;
	white-space: nowrap;
	width: auto;
	word-wrap: normal;
	-moz-transition: 0.35s all cubic-bezier(0.42, 0, 0.58, 1);
	-webkit-transition: 0.35s all cubic-bezier(0.42, 0, 0.58, 1);
	-o-transition: 0.35s all cubic-bezier(0.42, 0, 0.58, 1);
	transition: 0.35s all cubic-bezier(0.42, 0, 0.58, 1);
}

.grid.grid-centered {
	display: flex;
	justify-content: center;
	align-items: center;
}

.grid.grid-centered .gridColumn {
	display: flex;
	justify-content: center;
	align-items: center;
}

.grid.zoom_in {}

.gridColumn {
	display: inline-block;
	height: 520px;
	margin-top: 6px;
	/*
                    overflow: hidden;
					*/
	vertical-align: top;
}

.gridColumn:first-child {
	margin-left: 12px;
}

.gridColumn:last-child {
	margin-right: 12px;
}

.gridColumn.columnsize_3 {
	width: 294px;
}

.gridColumn.columnsize_6 {
	width: 588px;
}

.gridColumn.columnsize_9 {
	width: 882px;
}

.gridViewBox {
	background-color: transparent;
	border: 5px solid transparent;
	color: #fff;
	height: 160px;
	width: 284px;
	line-height: 160px;
	text-align: center;
	transition: all 0.05s linear 0s;
	vertical-align: middle;
	white-space: normal;

	word-break: break-all;

	justify-content: center;
	align-items: center;
	overflow: hidden;
	position: relative;
	z-index: 2;

	display: block;
	float: left;

	background-image: url(images/bg_gridViewBox_before.png);
	background-repeat: no-repeat;
	background-size: cover;
	/**/


	-moz-background-clip: content;
	/* Firefox 3.6 */
	-webkit-background-clip: content;
	/* Safari 4? Chrome 6? */
	background-clip: content-box;

}

/* Podcast items background */
.gridViewBox.podcast-item {
	background-image: url(images/podcast_bg.jpg) !important;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}

.gridViewBox_1x1 {
	width: 284px;
	height: 160px;
}

.gridViewBox_1x1.disabled {
	opacity: 0.5;
}

.gridViewBox_2x2 {
	width: 578px;
	height: 330px;
	line-height: 330px;
}

/* Stile per elemento QR code centrato - non selezionabile, simile al logo */
.grid.grid-centered .gridViewBox {
	margin: 0 auto;
	float: none;
	width: 400px !important;
	height: auto !important;
	min-height: 330px;
	line-height: normal;
	border: 2px solid #0081c8 !important;
	border-bottom: 2px solid #0b2e6c !important;
	background-color: rgba(255, 255, 255, 0.95) !important;
	cursor: default;
	pointer-events: none;
	padding: 30px !important;
	box-sizing: border-box;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
}
/* Solo i box non-hero (QR/dona) hanno background-image none; la hero (live card) mantiene l'immagine dall'XML */
.grid.grid-centered .gridViewBox:not(.gridViewBox_hero) {
	background-image: none !important;
}

/* Wrapper per la descrizione separata sotto il QR code */
.grid.grid-centered .gridColumn .qr-description-wrapper {
	width: 400px;
	margin: 0 auto;
	display: block;
}

.grid.grid-centered .gridViewBox_2x2 {
	width: 400px !important;
	height: auto !important;
	min-height: 330px;
	line-height: normal;
}

.grid.grid-centered .gridViewBox.focused {
	border: 2px solid #0081c8 !important;
	border-bottom: 2px solid #0b2e6c !important;
	background-color: rgba(255, 255, 255, 0.95) !important;
	transform: none !important;
	box-shadow: none !important;
}

/* Live card (hero) selezionata: bordo spesso come la card podcast */
.grid.grid-centered .gridViewBox_hero.focused {
	border: 5px solid #0081c8 !important;
	border-bottom: 5px solid #0b2e6c !important;
}

.grid.grid-centered .gridViewBox img {
	position: absolute;
	top: 30px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 540px;
	max-height: 540px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.grid.grid-centered .gridViewBox span {
	display: none !important;
}

/* Titolo livestream nella hero card: deve restare visibile */
.grid.grid-centered .gridViewBox_hero span {
	display: block !important;
}

/* Testo descrizione sotto il QR code - in div separato */
.grid.grid-centered .gridColumn .qr-description-wrapper .qr-description,
.grid.grid-centered .gridColumn .qr-description {
	color: #000000 !important;
	width: 100% !important;
	line-height: 1.4 !important;
	word-break: break-word !important;
	text-align: center !important;
	font-size: 16px !important;
	padding: 15px 20px 0 20px !important;
	margin: 0 !important;
	background: transparent !important;
	border: none !important;
	text-shadow: none !important;
	font-weight: normal !important;
	display: block !important;
	box-sizing: border-box !important;
	overflow: visible !important;
	white-space: normal !important;
	max-height: none !important;
}

/* Forza il colore nero anche per tutti gli stati - regola ultra-specifica */
.grid.grid-centered .gridColumn .qr-description-wrapper .qr-description,
.grid.grid-centered .gridColumn .qr-description,
.qr-description-wrapper .qr-description,
.qr-description-wrapper .qr-description * {
	color: #000000 !important;
}

/* Override per qualsiasi altro stile che potrebbe sovrascrivere */
.grid.grid-centered .gridColumn .qr-description-wrapper .qr-description {
	color: rgb(0, 0, 0) !important;
	color: black !important;
}

.gridViewBox_1x2 {
	width: 578px;
	height: 160px;
}

.gridViewBox_2x1 {
	width: 284px;
	height: 330px;
	line-height: 330px;
}

.gridViewBox_hero {
	width: 872px;
	height: 500px;
	line-height: 500px;
	font-size: 32px !important;
}

.grid.grid-centered .gridViewBox_hero {
	width: 872px !important;
	height: 500px !important;
	line-height: 500px !important;
}

.gridViewBox_hero span {
	height: 60px;
	line-height: 50px;
	font-size: 30px;
}

.gridViewBox:first-child {}

.gridViewBox.focused {
	border: 5px solid #0081c8;
	z-index: 3;
}


/* Chrome, Safari, Opera */
@-webkit-keyframes focusBorderColorChange {
	0% {
		border-color: #0081c8;
	}

	25% {
		border-color: #0b2e6c;
	}

	50% {
		border-color: #0081c8;
	}

	75% {
		border-color: #0b2e6c;
	}

	100% {
		border-color: #0081c8;
	}
}

@keyframes focusBorderColorChange {
	0% {
		border-color: #0081c8;
	}

	25% {
		border-color: #0b2e6c;
	}

	50% {
		border-color: #0081c8;
	}

	75% {
		border-color: #0b2e6c;
	}

	100% {
		border-color: #0081c8;
	}
}

.gridViewBox img {
	flex-shrink: 0;
	max-height: 100%;
	max-width: 100%;
	z-index: 10;
	position: relative;
	top: 0px;
	left: 0px;
}

.gridViewBox_hero img {
	width: 100% !important;
	height: 100% !important;
}

.gridViewBox span {
	position: absolute;
	bottom: 0px;
	left: 0px;
	width: 100%;
	height: 30px;
	line-height: 20px;
	text-align: left;
	padding-left: 10px;
	padding-top: 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	z-index: 12;
	background-image: url(images/bg_gridViewBox_span.png);
	background-repeat: repeat-x;
	background-color: rgba(0, 129, 200, 0.4);
	border-top: 2px solid #0081c8;
	font-size: 18px;
	text-shadow: 1px 1px 2px #000;
}


#logo1,
#logo2 {
	background-repeat: no-repeat;
	z-index: 10;
	position: absolute;
	-webkit-animation: fromLeft 2s;
	/* Safari 4+ */
	-moz-animation: fromLeft 2s;
	/* Fx 5+ */
	-o-animation: fromLeft 2s;
	/* Opera 12+ */
	animation: fromLeft 2s;
	/* IE 10+, Fx 29+ */
}

#logo1 {
	top: 0px;
	left: 55px;
	width: 375px;
	height: 62px;
	background-image: url(images/rm_full_logo.png);
	background-size: 375px 62px;
	background-repeat: no-repeat;
	background-position: left center;
	z-index: 11;
	border: 2px solid #0081c8;
	border-bottom: 2px solid #0b2e6c;
	background-color: rgba(0, 0, 0, 0.05);
}


#logo2 {
	top: 640px;
	left: -235px;
	left: 55px;
	height: 125px;
	width: 235px;
	background-image: url(images/rm_small_logo.png);
	/*
    -webkit-animation-delay: 1s;
    animation-delay: 1s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    */
}


@keyframes fadein {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes slidedown {
	0% {
		margin-top: -125px;
	}

	100% {
		margin-top: 0px;
	}
}

@keyframes fromLeft {
	0% {
		left: -235px;
	}

	100% {
		left: 55px;
	}
}

#itemDescription {
	width: 1280px;
	height: 40px;
	top: 675px;
	position: absolute;
	color: #fff;
	font-size: 16px;
	left: 0px;
	background-color: #0b2e6c;
	text-align: left;
	line-height: 40px;
	padding-left: 0px;
	padding-right: 0px;
	padding-top: 0px;
	padding-bottom: 0px;
	font-family: Verdana, sans-serif;
	overflow: hidden;
	white-space: nowrap;
	display: block;
}

.itemDescription-marquee-wrapper {
	width: 100%;
	height: 40px;
	overflow: hidden;
	position: relative;
	line-height: 40px;
}

.itemDescription-text {
	display: inline-block;
	white-space: nowrap;
	padding-left: 20px;
	padding-right: 20px;
	line-height: 40px;
}

.itemDescription-text.itemDescription-scroll {
	animation: scrollText 20s linear infinite;
	-webkit-animation: scrollText 20s linear infinite;
	-moz-animation: scrollText 20s linear infinite;
	-o-animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
	0% {
		transform: translateX(20px);
		-webkit-transform: translateX(20px);
		-moz-transform: translateX(20px);
		-o-transform: translateX(20px);
	}

	100% {
		transform: translateX(-100%);
		-webkit-transform: translateX(-100%);
		-moz-transform: translateX(-100%);
		-o-transform: translateX(-100%);
	}
}

@-webkit-keyframes scrollText {
	0% {
		-webkit-transform: translateX(20px);
	}

	100% {
		-webkit-transform: translateX(-100%);
	}
}

@-moz-keyframes scrollText {
	0% {
		-moz-transform: translateX(20px);
	}

	100% {
		-moz-transform: translateX(-100%);
	}
}

@-o-keyframes scrollText {
	0% {
		-o-transform: translateX(20px);
	}

	100% {
		-o-transform: translateX(-100%);
	}
}

/* Channel info */
.channel_info {
	color: #fff;
	font-size: 24px;
	right: 50px;
	position: absolute;

	-moz-transition: all 0.10s linear;
	-webkit-transition: all 0.10s linear;
	-o-transition: all 0.10s linear;
	transition: all 0.10s linear;

	display: block;
	top: 645px;
	height: 60px;
	line-height: 60px;
	text-shadow: 1px 1px 1px #000;
	text-align: right;
	padding-right: 10px;
}

.channel_info span:first-child {
	background-color: #0081c8;
	border-radius: 50%;
	color: #fff;
	display: inline-block;
	font-size: 34px;
	height: 60px;
	width: 60px;
	letter-spacing: -2px;
	line-height: 60px;
	margin-right: 0px;
	text-align: center;
	text-shadow: 0 1px 1px #000;
	box-shadow: 2px 2px 4px #000;
	border: 2px solid #0b2e6c;
	z-index: 10;
	position: relative;
	font-weight: 800;
	float: right;
	margin-left: -7px;
}

.channel_info span:last-child {
	color: #fff;
	background-color: rgba(0, 129, 200, 0.3);
	padding: 2px 15px 2px 10px;
	z-index: 9;
	position: relative;
	border-radius: 4px;
	text-align: right;
	border-left: 3px solid #0081c8;
}

/* App loader screen (shown at startup until setLoading(false)) - below navbar and footer */
#appLoader {
	position: fixed;
	top: 0;
	left: 0;
	width: 1280px;
	height: 720px;
	background-color: #0b2e6c;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
#appLoader.app-loader-hide {
	display: none !important;
}
#appLoader .app-loader-logo {
	width: 320px;
	height: auto;
	max-height: 200px;
	object-fit: contain;
	margin-bottom: 40px;
}
#appLoader .app-loader-spinner {
	width: 48px;
	height: 48px;
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: app-loader-spin 0.8s linear infinite;
}
@keyframes app-loader-spin {
	to { transform: rotate(360deg); }
}