/*
 * 
 * Por: ROD
 * Discord: rodzeraz
 * 
 */

.video-single-wrap {
    max-width: 1380px;
    margin: 20px auto;
}

.video-player-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    margin-bottom: 5px;
}

.video-player-main {
    max-width: 980px;
}

.video-player-main,
.video-sidebar {
    background: transparent;
    padding: 12px 0;
}

.video-player-main iframe,
.video-player-main video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    background: #000;
    border-radius: 4px;
}

.video-info-box {
    background: transparent;
    padding: 2px 0 12px;
    margin-top: -6px;
    box-sizing: border-box;
}

.video-info-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 15px;
    margin-bottom: 15px;
}

.video-info-top h1 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    min-width: 0;
	
}

.video-info-meta {
    margin-top: 0;
    color: #999;
    font-size: 14px;
    white-space: nowrap;
    justify-self: end;
    margin-right: 14px;
}

.video-info-meta i {
    margin-right: 5px;
}

/*
|--------------------------------------------------------------------------
| Player - Plyr
|--------------------------------------------------------------------------
*/
.video-player-main .plyr .plyr__control--overlaid {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #d9d9d9 !important;
}

.video-player-main .plyr .plyr__control--overlaid svg {
    width: 70px;
    height: 70px;
}

.video-player-main .plyr .plyr__controls {
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.video-player-main .plyr.plyr--playing .plyr__controls {
    opacity: 1;
    pointer-events: auto;
}

.video-player-main .plyr.hora-controles-visiveis .plyr__controls,
.video-player-main .plyr.hora-controles-visiveis.plyr--hide-controls .plyr__controls {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Barra principal */
.video-player-main .plyr {
    --plyr-color-main: #ed2553;
}

/* Hover dos botões */
.video-player-main .plyr__control:hover {
    background: #ed2553 !important;
    color: #fff !important;
}

/* Botão ativo */
.video-player-main .plyr__control[aria-expanded="true"],
.video-player-main .plyr__control[aria-pressed="true"] {
    background: #ed2553 !important;
}

/* Barra carregada */
.video-player-main .plyr__progress__buffer {
    color: rgba(255,255,255,.15);
}

/* Fundo dos controles */
.video-player-main .plyr--video .plyr__controls {
    background: linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.35),
        transparent
    );
}

/* Volume hover */
.video-player-main .plyr input[type=range] {
    color: #ed2553;
}

/* Play central hover */
.video-player-main .plyr .plyr__control--overlaid:hover {
    background: transparent !important;
    color: #ed2553 !important;
}

.video-player-main video.hora-video-player {
    opacity: 0;
}

.video-player-main .plyr video.hora-video-player {
    opacity: 1;
}

.video-player-main .plyr,
.video-player-main .plyr__video-wrapper,
.video-player-main .plyr video {
    border-radius: 8px;
    overflow: hidden;
}

.video-player-main .plyr__video-wrapper {
    background: #000;
    line-height: 0;
}

.video-player-main .plyr video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-player-main .plyr__poster {
    background-size: cover !important;
    background-position: center !important;
    border-radius: 8px;
}

/*
|--------------------------------------------------------------------------
| Sidebar
|--------------------------------------------------------------------------
*/

.video-sidebar-title {
    display: none;
}

.video-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.video-sidebar::-webkit-scrollbar {
    width: 6px;
}

.video-sidebar::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 20px;
}

.video-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.video-sidebar-list li {
    margin-bottom: 10px;
}

.video-sidebar-list a {
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 10px;
    color: #ddd;
    text-decoration: none !important;
    padding: 0;
    border-radius: 4px;
    transition: background .2s;
    background: transparent;
    border-left: 0 !important;
    box-shadow: none !important;
}

.video-sidebar-list a.atual {
    background: transparent;
    border-left: 0 !important;
    box-shadow: none !important;
}

.video-sidebar-thumb {
    grid-row: 1 / span 2;
    display: block;
    width: 135px;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

.video-sidebar-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: opacity .2s ease;
}

.video-sidebar-list a:hover .video-sidebar-thumb img {
    opacity: .8;
}

.video-sidebar-ep-title {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.3;
    color: #ddd;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-top: 2px;
}

.video-sidebar-list a:hover .video-sidebar-ep-title {
    color: #ea1953;
}

.video-sidebar-meta {
    display: flex;
    justify-content: space-between;
    align-items: end;
    font-size: 12px;
    color: #c8c8d4;
    align-self: end;
}

.video-sidebar-meta i {
    margin-right: 4px;
}

.video-sidebar-voto {
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-sidebar-voto i {
    font-size: 10px;
    width: 18px;
    height: 18px;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| Episódios
|--------------------------------------------------------------------------
*/

.video-episodios-botoes a {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1px solid #666;
    padding: 6px 18px;
    margin: 4px 6px 4px 0;
    border-radius: 3px;
    text-decoration: none;
    transition: .2s;
}

.video-episodios-botoes a:hover {
    background: #ed2553;
    border-color: #ed2553;
    color: #fff;
    text-decoration: none;
}

.video-episodios-botoes a.atual {
    background: #ed2553;
    border-color: #ed2553;
    color: #fff;
}

.video-episodios-botoes a.atual:hover {
    background: #ed2553;
}

/*
|--------------------------------------------------------------------------
| Taxonomias
|--------------------------------------------------------------------------
*/

.video-tax-list {
    display: block;
    margin: 14px 0 0;
}

.video-tax-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.video-tax-row strong {
    font-size: 14px;
    color: #fff;
    margin-right: 6px;
}

.video-tax-badge {
    display: inline-flex;
    align-items: center;
    background-color: #404040;
    color: #fff;
    text-decoration: none !important;
    margin-right: 6px;
    margin-bottom: 5px;
    border-radius: 0;
    overflow: hidden;
    font-size: 14px;
    line-height: 22px;
}

.video-tax-badge:hover {
    color: #fff;
    text-decoration: none !important;
}

.video-tax-name {
    background: #353535;
    color: #c8c8d4;
    padding: 4px 10px;
    line-height: 22px;
}

.video-tax-count {
    background: #30324d;
    color: #c8c8d4;
    padding: 4px 10px;
    line-height: 22px;
}

.video-tax-badge:hover .video-tax-name,
.video-tax-badge:hover .video-tax-count {
    color: #fff;
}

/*
|--------------------------------------------------------------------------
| Taxonomy Vídeos-Page
|--------------------------------------------------------------------------
*/

.video-taxonomy-page.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.video-taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
	margin: 0 -3px 20px;
}

.video-taxonomy-grid .video-relacionado-card {
    width: 100%;
}

.video-taxonomy-grid .video-relacionado-thumb img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .video-taxonomy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
	
	.video-taxonomy-page.container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }
}

/*
|--------------------------------------------------------------------------
| Favoritos
|--------------------------------------------------------------------------
*/

.favoritos-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.favoritos-videos-grid .video-relacionado-card {
    width: 100%;
    min-width: 0;
}

.favoritos-videos-grid .video-relacionado-thumb img {
    width: 100%;
    display: block;
}

.favoritos-videos-grid .video-relacionado-title {
    display: block;
    margin-top: 8px;
    line-height: 1.4;
}

.favoritos-videos-grid .video-relacionado-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
}

@media (max-width: 768px) {

    .favoritos-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

}

/*
|--------------------------------------------------------------------------
| Ações
|--------------------------------------------------------------------------
*/

.video-acoes {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 20px;
    flex-wrap: wrap;
}

.video-acoes .botaoExtraPost {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    line-height: 42px;
}

.video-acoes .botaoDownloadVideo {
    background-image: url(../img/download.png);
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 32px;
    padding-left: 50px !important;
}

@media (max-width: 768px) {
	.video-acoes .botaoDownloadVideo {
		background-size: 16px !important;
		padding-left: 35px !important;
	}
}

.postVotar {
    display: flex;
    align-items: center;
    gap: 0;
}

.postVotarBotao {
    background: transparent;
    border: 0;
    padding: 0;
    margin-right: 8px !important;
    cursor: pointer;
    float: none !important;
    line-height: normal !important;
}

.video-acoes .postVotarBotao i {
    color: #aaa;
    font-size: 28px;
    transition: .2s;
}

.postVotarBotao:hover i {
    color: #fff;
}

.video-acoes .postVotarBotao.ativo i {
    color: #fff;
}

.vote-circle {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    border: 3px solid #2ecc71 !important;
    background: transparent !important;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.vote-circle span {
    display: block;
    line-height: 1;
    box-shadow: none !important;
    outline: none !important;
}

.vote-circle::before,
.vote-circle::after,
.vote-circle span::before,
.vote-circle span::after {
    display: none !important;
    content: none !important;
}

.video-relacionado-card a,
.video-relacionado-card a:hover,
.video-sidebar-list a,
.video-sidebar-list a:hover {
    text-decoration: none !important;
}

.video-relacionado-title,
.video-sidebar-list span {
    text-decoration: none !important;
}

.video-relacionado-title,
.video-relacionado-meta {
    padding-left: 8px;
    padding-right: 8px;
}

/*
|--------------------------------------------------------------------------
| Descrição
|--------------------------------------------------------------------------
*/

.video-descricao {
    margin-top: 20px;
    color: #bbb;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Relacionados
|--------------------------------------------------------------------------
*/

.video-relacionados-box {
    margin-top: 34px;
    background: transparent;
    padding: 0;
}

.video-relacionados-box h2 {
    font-size: 18px;
    margin: 0 0 16px;
    color: #d9d9d9;
	padding-bottom: 8px;
    border-bottom: 1px solid #2c2c2c;
}

.video-relacionados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 300px);
    gap: 10px;
}

.video-relacionado-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    transition: background .2s;
}

.video-relacionado-card:hover {
    background: #151515;
}

.video-relacionado-card a {
    display: block;
    color: #fff;
    text-decoration: none !important;
}

.video-relacionado-thumb {
    position: relative;
    display: block;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
	transition: border-radius .2s;
    aspect-ratio: 16 / 9;
}

.video-relacionado-card:hover .video-relacionado-thumb {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.video-relacionado-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .2s ease;
}

.video-relacionado-card:hover .video-relacionado-thumb img {
    opacity: .8;
}

.video-relacionado-title {
    display: -webkit-box;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.35;
    color: #ddd;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
	min-height: 38px;
}

.video-relacionado-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
	padding-bottom: 8px;
    font-size: 13px;
    color: #c8c8d4;
}

.video-relacionado-meta i {
    margin-right: 4px;
}

.video-relacionado-voto {
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-relacionado-voto i {
    font-size: 10px;
    width: 18px;
    height: 18px;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    box-sizing: border-box;
}

.video-relacionado-card:hover .video-relacionado-title {
    color: #ea1953;
}

.video-info-box {
    width: calc(100% - 312px);
    margin-left: 4px;
}

.video-relacionados-box {
    width: 100%;
    margin-left: 4px;
}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .video-player-grid {
        grid-template-columns: 1fr;
    }

    .video-sidebar {
        display: none;
    }

    .video-info-box,
	.video-relacionados-box {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

    .video-relacionados-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {

    .video-single-wrap {
        max-width: 100%;
        margin: 0 0 15px;
    }

    .video-player-grid {
        display: block;
        margin-bottom: 12px;
    }

    .video-player-main,
    .video-sidebar {
        padding: 0;
    }

    .video-player-main iframe,
    .video-player-main video {
        border-radius: 0;
    }
	

    .video-info-box {
        padding: 12px 0;
		margin-left: 5px;
    }

    .video-info-top {
        display: block;
        margin-bottom: 17px;
    }

    .video-info-top h1 {
        font-size: 20px;
        line-height: 1.25;
    }

    .video-info-meta {
        margin-top: 8px;
    }

    .video-episodios-botoes {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        width: calc(100% - 10px);
        max-width: calc(100% - 10px);
        padding-bottom: 0;
        margin-bottom: 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .video-episodios-botoes::-webkit-scrollbar {
        display: none;
    }

    .video-episodios-botoes a {
        white-space: nowrap;
        flex: 0 0 auto;
        margin: 0;
        padding: 8px 12px;
        font-size: 13px;
    }
	
	.video-tax-row {
		align-items: center;
	}

    .video-tax-row strong {
		width: auto;
		font-size: 14px;
		margin-right: 6px;
	}

    .video-tax-badge {
        font-size: 13px;
    }

    .video-tax-name,
    .video-tax-count {
        padding: 5px 8px;
    }

    .video-acoes {
        gap: 2px;
        margin: 16px 0;
    }

    .video-relacionados-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .video-relacionados-box h2 {
        font-size: 18px;
    }

    .video-relacionado-title {
        font-size: 13px;
    }
	
	.video-info-meta {
    	display: none;
	}

}

@media (max-width: 480px) {

    .video-relacionados-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	
	.video-relacionado-title {
		font-size: 12px;
		min-height: 34px;
	}

	.video-relacionado-meta {
		font-size: 12px;
	}

}

/* =========================================================
 * Plyr Mobile - controles mais limpos
 * ========================================================= */

@media (max-width: 768px) {

    .video-player-main .plyr--video .plyr__controls {
        gap: 0;
        padding: 8px;
    }

    .video-player-main .plyr--video .plyr__progress__container {
        flex: 1 1 auto;
        min-width: 100px;
        margin-left: 4px;
        margin-right: 4px;
    }

    .video-player-main .plyr--video .plyr__volume {
        flex: 0 0 auto;
        width: auto;
        min-width: auto;
        max-width: none;
    }

    .video-player-main .plyr--video .plyr__volume input[type="range"] {
        display: none;
    }

    .video-player-main .plyr--video .plyr__time {
        font-size: 12px;
        margin-left: 2px;
        margin-right: 2px;
        white-space: nowrap;
    }

    .video-player-main .plyr--video .plyr__control {
        padding: 3px;
    }
}

.video-player-main .plyr:fullscreen video,
.video-player-main .plyr:-webkit-full-screen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================================
 * Plyr Mobile - fullscreen fake landscape
 * ========================================================= */

@media (max-width: 768px) {

    html.hora-video-landscape-lock,
    body.hora-video-landscape-lock {
        overflow: hidden !important;
        width: 100% !important;
        height: 100% !important;
        position: fixed !important;
    }

    .plyr.hora-force-landscape {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: none !important;
        max-height: none !important;
        transform: none !important;
        z-index: 2147483647 !important;
        background: #000 !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }

    .plyr.hora-force-landscape .plyr__video-wrapper {
        width: 100vw !important;
        height: 100vh !important;
        background: #000 !important;
        border-radius: 0 !important;
    }

    .plyr.hora-force-landscape video {
        width: 100vw !important;
        height: 100vh !important;
        object-fit: contain !important;
        border-radius: 0 !important;
    }
}

/* =========================================================
 * Plyr - ícones de avanço/retrocesso 10s
 * ========================================================= */

.video-player-main .plyr--video .hora-plyr-skip {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: #fff !important;
}

.video-player-main .plyr--video .hora-skip-icon {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 1;
}

.video-player-main .plyr--video .hora-skip-arrow {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    line-height: 1;
    font-weight: normal;
}

.video-player-main .plyr--video .hora-skip-number {
    position: relative;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    margin-top: 5px;
}

.video-player-main .plyr--video .hora-plyr-skip:hover,
.video-player-main .plyr--video .hora-plyr-skip:hover .hora-skip-icon {
    background: transparent !important;
    color: #ed2553 !important;
}

/* Ajuste no mobile pra não apertar demais a barra */
@media (max-width: 768px) {

    .video-player-main .plyr--video .hora-plyr-skip {
        width: 30px;
        height: 30px;
        min-width: 30px;
        padding: 0 0 8px !important;
    }

    .video-player-main .plyr--video .hora-skip-icon {
        width: 24px;
        height: 24px;
        position: relative;
    }

    .video-player-main .plyr--video .hora-skip-arrow {
        font-size: 30px;
        line-height: 1;
    }

    .video-player-main .plyr--video .hora-skip-number {
        position: absolute;
        top: 58%;
        left: 50%;
        transform: translate(-50%, -43%);
        font-size: 8px;
        font-weight: 800;
        line-height: 1;
        margin: 0;
    }
}
