/* Votação de Vídeos: estilos. Para adaptar à identidade do site, altere as variáveis abaixo
   (ex.: no Elementor > Definições do site > CSS personalizado). */
.vv-wrap {
	--vv-accent: #2f6b3a;
	--vv-accent-hover: #24552d;
	--vv-text: #1d2420;
	--vv-muted: #5d6a62;
	--vv-card: #ffffff;
	--vv-border: #e3e8e4;
	--vv-radius: 12px;
	--vv-gap: 24px;
	color: var(--vv-text);
}
.vv-status { padding: 12px 16px; border-radius: var(--vv-radius); background: #f4f6f4; margin: 0 0 24px; }
.vv-status--open { background: #eaf3ec; }
.vv-rules { padding: 16px 20px; }
.vv-rules p { margin: 4px 0 0; }
.vv-rules__title { display: block; font-size: 1.05em; margin-bottom: 2px; }
.vv-cat { margin: 0 0 48px; }
.vv-cat-title { margin: 0 0 6px; }
.vv-cat-desc { margin: 0 0 18px; color: var(--vv-muted); }
.vv-grid { display: grid; gap: var(--vv-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vv-cols-1 { grid-template-columns: minmax(0, 1fr); }
.vv-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vv-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .vv-cols-3, .vv-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vv-grid { grid-template-columns: minmax(0, 1fr) !important; } }

.vv-card { background: var(--vv-card); border: 1px solid var(--vv-border); border-radius: var(--vv-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.vv-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.vv-card--lead { border-color: var(--vv-accent); }
.vv-card { position: relative; }
.vv-winner-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--vv-accent, #2f6b3a); color: #fff; font-weight: 700; font-size: .88em; padding: 7px 16px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.vv-winners-intro { font-weight: 500; }
.vv-media { background: #000; aspect-ratio: 16 / 9; }
.vv-media video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.vv-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vv-title { margin: 0; font-size: 1.05em; line-height: 1.3; }
.vv-autor { margin: 0; color: var(--vv-muted); font-size: .92em; }
.vv-desc { margin: 4px 0 0; font-size: .92em; }
.vv-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vv-count { color: var(--vv-muted); font-size: .95em; }
.vv-count strong { color: var(--vv-text); font-size: 1.15em; }

.vv-btn { appearance: none; border: 0; cursor: pointer; background: var(--vv-accent, #2f6b3a); color: #fff; font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 999px; transition: background .2s, opacity .2s; margin-left: auto; line-height: 1.2; }
.vv-btn:hover:not(:disabled) { background: var(--vv-accent-hover, #24552d); }
.vv-btn:disabled { opacity: .6; cursor: default; }
.vv-btn--done { background: #8a968e !important; font-weight: 500; }
.vv-btn--full { width: 100%; margin: 8px 0 0; padding: 13px 22px; }

/* Modal */
html.vv-lock { overflow: hidden; }
.vv-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vv-modal[hidden] { display: none; }
.vv-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 14, .6); }
.vv-modal__box { position: relative; background: #fff; color: #1d2420; width: 100%; max-width: 440px; border-radius: 16px; padding: 28px 24px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.3); max-height: calc(100vh - 32px); overflow-y: auto; }
.vv-modal__x { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #5d6a62; padding: 6px; }
.vv-modal__title { margin: 0 32px 4px 0; font-size: 1.2em; line-height: 1.3; }
.vv-modal__sub { margin: 0 0 18px; color: #5d6a62; font-size: .92em; }
.vv-label { display: block; font-weight: 600; margin: 0 0 6px; font-size: .95em; }
.vv-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #cfd8d2; border-radius: 10px; font: inherit; font-size: 16px; }
.vv-input:focus { outline: 2px solid #2f6b3a; outline-offset: 1px; border-color: transparent; }
.vv-input--code { text-align: center; font-size: 28px; letter-spacing: .4em; font-variant-numeric: tabular-nums; }
.vv-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 6px; font-size: .85em; color: #3b4741; line-height: 1.4; cursor: pointer; }
.vv-check input { margin-top: 3px; flex: none; }
.vv-captcha { margin: 10px 0 0; min-height: 0; }
.vv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.vv-link { display: block; margin: 12px auto 0; background: none; border: 0; color: #2f6b3a; text-decoration: underline; cursor: pointer; font: inherit; font-size: .9em; }
.vv-msg { margin: 14px 0 0; font-size: .92em; min-height: 1em; }
.vv-msg:empty { display: none; }
.vv-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.vv-suggest .vv-btn { margin: 0; padding: 8px 16px; }
.vv-suggest .vv-link { margin: 0; }
.vv-msg--err { color: #b42318; }
.vv-msg--ok { color: #1f5f2b; }
.vv-done-icon { width: 64px; height: 64px; border-radius: 50%; background: #eaf3ec; color: #2f6b3a; font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 4px auto 8px; }
.vv-notice { padding: 10px; border: 1px dashed #cf222e; color: #cf222e; }

/* Partilhar e popup de video */
.vv-share { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .88em; color: var(--vv-accent, #2f6b3a); text-decoration: underline; }
.vv-share:hover { opacity: .8; }
.vv-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 18px; }
.vv-lb[hidden] { display: none; }
.vv-lb__bg { position: absolute; inset: 0; background: rgba(6, 16, 11, .85); }
.vv-lb__box { position: relative; width: 100%; max-width: 920px; }
.vv-lb__media { background: #000; border-radius: 12px; overflow: hidden; }
.vv-lb__media video { display: block; width: 100%; max-height: 72vh; background: #000; }
.vv-lb__info { color: #fff; padding: 14px 6px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vv-lb__title { font-size: 1.15em; font-weight: 700; margin: 0; }
.vv-lb__meta { color: #c9d4cd; font-size: .92em; }
.vv-lb__win { background: var(--vv-accent, #2f6b3a); color: #fff; font-size: .8em; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.vv-lb__x { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; padding: 6px; }
.vv-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border: 0; color: #fff; font-size: 26px; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.vv-lb__nav:hover { background: rgba(255,255,255,.28); }
.vv-lb__prev { left: -8px; }
.vv-lb__next { right: -8px; }
.vv-lb__count { position: absolute; top: -40px; left: 0; color: #c9d4cd; font-size: .9em; }
@media (max-width: 700px) { .vv-lb__nav { width: 38px; height: 38px; font-size: 22px; } }
