.ct-shortcode{
	width:100%;
}
.video-contest{
	width:100%;
	border-top:solid 1px #ffffff;
}
.video-contest-header{
	width:100%;
	padding:40px;
}
.video-contest-header h2{
	color:#ffffff;
	font-size:48px;
	line-height:56px;
	font-weight:700;
	text-transform: uppercase;
}

.video-contest-content{
	width:100%;
	display:flex;
	flex-wrap:wrap;
}
.video-contest-item{
	border-bottom:solid 1px #ffffff;
	border-right:solid 1px #ffffff;
	padding-bottom:72px;
	position:relative;
}
.video-contest-item-thumbnail{
	width:100%;
	max-width:100%;
	position:relative;
}
.video-contest-item-thumbnail picture{
	width:100%;
	max-width:100%;
}
.video-contest-item-thumbnail img{
	width:100%;
	max-width:100%;
	height:auto;
}
.item-button{
	position:absolute;
	left:50%;
	top:50%;
	width:72px;
	height:56px;
	margin-left:-36px;
	margin-top:-28px;
	background:#000000;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 30px;
	border-top-right-radius: 30px;
}
.item-button svg{
	position:absolute;
	left:50%;
	top:50%;
	margin-left:-9px;
	margin-top:-10px;
}
.video-contest-item-content{
	padding:16px 40px;
	box-sizing: border-box;
}
h2.video-contest-item-title{
	width:100%;
	font-weight: 700;
	font-size: 18px;
	line-height: 26px;
	color:#ffffff;
	margin-bottom:16px;
}
.video-contest-item-description{
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color:#ffffff;
}
.video-contest-item-footer{
	position:absolute;
	width:100%;
	left:0;
	bottom:0;
	padding:0 40px 16px 40px;
	display:grid;
	grid-template-columns: 42% 58%;
}
.video-contest-item-votes{
	width:100%;
	display:flex;
	justify-content: flex-start;
	align-items: center;
}
.video-contest-item-votes span{
	color:#ffffff;
	font-weight: 400;
	font-size: 18px;
	line-height: 24px;
}
.vote-tooltip{
	position: absolute;
    bottom: 120%;
    left: 0;
    background: #000000;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 25px;
    color: #ffffff;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    padding: 40px;
    width: 100%;
	opacity: 0;
}
.vote-tooltip::before{
	position:absolute;
	left:60%;
	bottom:-8px;
	width:16px;
	height:16px;
	background: #000000;
	transform: rotate(45deg);
	content:' ';
}
.vote-tooltip.active{
	opacity:1;
	z-index:10;
}
.video-contest-item-button{
	width: 100%;
    height: 56px;
    background: #EA2146;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #F9DD4A;
	cursor:pointer;
}
.video-contest-item-button:hover{
	opacity:0.7;
}
.video-contest-item-button span{
	margin-left:10px;
}

/* Video popup */
.video-contest-popup{
	width:100%;
}
.video-contest-popup-wrap{
	width:100%;
	padding-left:90px;
	padding-right:90px;
	position:relative;
	display:flex;
	justify-content: center;
	align-items: center;
}
.video-contest-popup-prev{
	position:absolute;
	left:0px;
	top:50%;
	cursor: pointer;
	border-bottom-right-radius: 10px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 25px;
    border: solid 1px #ffffff;
    width: 72px;
    height: 56px;
    display: grid;
    justify-content: center;
    align-items: center;
}
.video-contest-popup-next{
	position: absolute;
    right:0px;
    top: 50%;
    cursor: pointer;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 25px;
    border: solid 1px #ffffff;
    width: 72px;
    height: 56px;
    display: grid;
    justify-content: center;
    align-items: center;
}
.video-contest-popup-prev svg,
.video-contest-popup-next svg{
	width:14px;
	fill:#ffffff;
}
.video-contest-popup-prev:hover,
.video-contest-popup-next:hover{
	background-color:#ffffff;
}
.video-contest-popup-prev:hover svg,
.video-contest-popup-next:hover svg{
	fill:#000000;
}

.video-contest-popup-video{
	display:flex;
	width:100%;
}
.video-contest-popup-video iframe{
	aspect-ratio: 16 / 9;
  	width: 100%;
}



.video-contest-popup-footer{
	width:100%;
	display:flex;
	flex-wrap:wrap;
	justify-content: center;
	padding-top:20px;
}
.video-contest-popup-footer h2{
	width:100%;
	margin:0 0 20px 0;
	text-align:center;
	font-size:24px;
	line-height:32px;
	font-weight:700;
	color:#ffffff;
}
.video-contest-popup-footer-inner{
	position:relative;
	width:fit-content;
	min-width:280px;
	display: flex;
    flex-direction: row;
    gap: 10px;
}
.video-contest-popup-votes{
	display:flex;
	justify-content: flex-start;
	align-items: center;
}
.video-contest-popup-votes span{
	color:#ffffff;
	font-weight: 400;
	font-size: 18px;
	line-height: 24px;
}
.vote-popup-tooltip{
	position: absolute;
    bottom: 120%;
    left: 0;
    background: #000000;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 25px;
    color: #ffffff;
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    padding: 40px;
    width: 100%;
	opacity: 0;
}
.vote-popup-tooltip::before{
	position:absolute;
	left:60%;
	bottom:-8px;
	width:16px;
	height:16px;
	background: #000000;
	transform: rotate(45deg);
	content:' ';
}
.vote-popup-tooltip.active{
	opacity:1;
	z-index:10;
}
.video-contest-popup-button{
	width: 174px;
    height: 56px;
    background: #EA2146;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 25px;
    border-top-right-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #F9DD4A;
	cursor:pointer;
}
.video-contest-popup-button:hover{
	opacity:0.7;
}
.video-contest-popup-button span{
	margin-left:10px;
}
.micromodal-terms,
.micromodal-error,
.log-item-actions input[type="checkbox"] {
	display: none;
}
.micromodal-terms .modal__content,
.micromodal-error .modal__content {
	width: auto;
}
.micromodal-terms .modal__content a {
	outline: 0;
}
.micromodal-error .modal__content {
	padding-bottom: 30px;
}
.video-contest-item-button-icon {
	display: inline-flex;
	position: relative;
}
.video-contest-item-button-icon::after {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background-image: url("data:image/svg+xml,%3Csvg width='38' height='38' viewBox='0 0 38 38' xmlns='http://www.w3.org/2000/svg' stroke='%23F9DD4A'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg transform='translate(1 1)' stroke-width='2'%3E%3Ccircle stroke-opacity='.5' cx='18' cy='18' r='18'/%3E%3Cpath d='M36 18c0-9.94-8.06-18-18-18'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 18 18' to='360 18 18' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	opacity: 0;
}
.video-contest-item.--loading .video-contest-item-button-icon svg {
	opacity: 0;
}
.video-contest-item.--loading .video-contest-item-button-icon::after {
	opacity: 1;
}

.micromodal-terms .modal__header .modal__close::before {
	content: "\2715"
}

.micromodal-terms .modal__close,
.micromodal-error .modal__close {
	top: 20px;
	right: 20px;
	width: 3rem;
	height: 3rem;
	border-radius: 1.5rem 0;
}

.micromodal-terms .modal__accept,
.micromodal-error .modal__confirm {
	display: block;
	width: 100%;
	padding: 0.75rem;
	text-align: center;
	text-decoration: none;
	background-color: #72bf44;
	color: #FFF;
	border-radius: 1.5rem 0;
	opacity: 1;
	transition: opacity .3s;
	outline: 0;
	border: 0;
	cursor: pointer;
}


.micromodal-terms .modal__accept:hover,
.micromodal-error .modal__accept:hover {
	opacity: 0.75;
}

.micromodal-terms .modal__container,
.micromodal-error .modal__container {
	background-color: #FFF;
	position: relative;
	width: 100%;
}

.micromodal-terms .modal__content,
.micromodal-error .modal__content {
	position: static;
	transform: unset;
	padding-top: 30px;
}

@media only screen and (min-width: 1220px) {
	.video-contest-item{
		width:25%;
	}
}
@media only screen and (max-width: 1219px) {
	.video-contest-item{
		width:33.3333%;
	}
}
@media only screen and (max-width: 880px) {
	.video-contest-item{
		width:50%;
	}
}
@media only screen and (max-width: 600px) {
	.video-contest-item{
		width:100%;
	}
}
@media only screen and (max-width: 1000px) {
	.modal__content{
		width:100%;
	}
}
@media only screen and (max-width: 480px) {
	.video-contest-item-content{
		padding:16px 20px;
	}
	.video-contest-item-footer{
		padding:0 20px 16px 20px;
	}
}
@media only screen and (max-width: 680px) {
	.video-contest-popup-wrap{
		padding-bottom:60px;
		padding-left:20px;
		padding-right:20px;
	}
	.video-contest-popup-prev{
		left:20px;
		top:100%;
		margin-top:-50px;
	}
	.video-contest-popup-next{
		right:20px;
		top:100%;
		margin-top:-50px;
	}
}

/***24.1.2025 JZ úprava pro zobrazení **/
/* Základní styl pro všechny položky */
.video-contest-item {
    margin-bottom: 25px;
}

/* Styl pro top 5 ve výsledcích */
.video-contest-item-top {
    background: #F4B43E;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Jednoduchý hover efekt */
.video-contest-item-top:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Úprava mezer mezi hlasy a textem */
.video-contest-item-footer {
    margin-top: 20px;
}

/* Speciální styly pouze pro vítěze */
.video-contest-content .video-contest-winner {
    position: relative;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

/* První místo */
.video-contest-content .video-contest-first {
    background: linear-gradient(45deg, rgba(255,215,0,0.1), rgba(255,215,0,0.2));
    border: 2px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255,215,0,0.2);
}

.video-contest-content .video-contest-first::before {
    content: "1.";
    position: absolute;
    top: -15px;
    left: 20px;
    background: #FFD700;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
	z-index: 999;
}

/* Druhé místo */
.video-contest-content .video-contest-second {
    background: linear-gradient(45deg, rgba(192,192,192,0.1), rgba(192,192,192,0.2));
    border: 2px solid #C0C0C0;
    box-shadow: 0 4px 15px rgba(192,192,192,0.2);
}

.video-contest-content .video-contest-second::before {
    content: "2.";
    position: absolute;
    top: -15px;
    left: 20px;
    background: #C0C0C0;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
	z-index: 999;
}

/* Třetí místo */
.video-contest-content .video-contest-third {
    background: linear-gradient(45deg, rgba(205,127,50,0.1), rgba(205,127,50,0.2));
    border: 2px solid #CD7F32;
    box-shadow: 0 4px 15px rgba(205,127,50,0.2);
}

.video-contest-content .video-contest-third::before {
    content: "3.";
    position: absolute;
    top: -15px;
    left: 20px;
    background: #CD7F32;
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
	z-index: 999;
}

/* Efekty při najetí myší pouze pro vítěze */
.video-contest-content .video-contest-winner:hover {
    transform: translateY(-5px);
}

/* Upravení rozložení pro vítěze */
.video-contest[data-view="winners"] .video-contest-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Upravení velikosti karet pro vítěze */
.video-contest[data-view="winners"] .video-contest-winner {
    flex: 0 1 calc(33.333% - 30px);
    max-width: 400px;
}

@media (max-width: 768px) {
    .video-contest[data-view="winners"] .video-contest-winner {
        flex: 0 1 100%;
    }
}