/* Pronto Videos 1.0.0 */
.pronto-videos {
	--pv-ink: #0d1b3e;
	--pv-accent: #00aeef;
	--pv-text: #1c2333;
	--pv-muted: #55607a;
	--pv-line: #dfe4ee;
	--pv-soft: #f3f6fb;
	--pv-radius: 12px;
	--pv-gap: 16px;
	color: var(--pv-text);
	max-width: 1200px;
	margin: 0 auto;
	padding: 8px 0 32px;
	font: inherit;
	line-height: 1.45;
}
.pronto-videos *, .pronto-videos *::before, .pronto-videos *::after { box-sizing: border-box; }
.pronto-videos ul { list-style: none; margin: 0; padding: 0; }
.pronto-videos button { font: inherit; color: inherit; cursor: pointer; }
.pronto-videos :focus-visible { outline: 3px solid var(--pv-accent); outline-offset: 2px; }
.pronto-videos [hidden] { display: none !important; }

/* Buttons */
.pronto-videos .pv-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 10px 20px; border-radius: 8px;
	border: 2px solid var(--pv-ink); background: transparent; color: var(--pv-ink);
	font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; text-align: center;
	transition: background-color .15s, color .15s;
}
.pronto-videos .pv-btn--primary { background: var(--pv-ink); color: #fff; }
.pronto-videos .pv-btn--primary:hover { background: #17306e; border-color: #17306e; color: #fff; }
.pronto-videos .pv-btn--ghost:hover { background: var(--pv-ink); color: #fff; }

/* Stories bar */
.pv-stories { margin: 0 0 24px; }
.pv-stories__list {
	display: flex; gap: 18px; justify-content: center;
	overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 4px 10px;
	scrollbar-width: none;
}
.pv-stories__list::-webkit-scrollbar { display: none; }
.pv-stories__list > li { flex: none; scroll-snap-align: start; }
.pv-story {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	width: 84px; padding: 0; border: 0; background: none;
}
.pv-story__ring {
	display: block; width: 72px; height: 72px; border-radius: 50%; padding: 3px;
	background: conic-gradient(from 210deg, #00aeef, #e61e7a, #f5c000, #00aeef);
	transition: transform .15s;
}
.pv-story:hover .pv-story__ring { transform: scale(1.05); }
.pv-story.is-seen .pv-story__ring { background: #b8c0d0; }
.pv-story__ring img, .pv-story__letter {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff;
	object-fit: cover; background: var(--pv-ink); color: #fff; font-weight: 700; font-size: 24px;
}
.pv-story__name { font-size: 13px; line-height: 1.2; text-align: center; color: var(--pv-text); }

/* Head */
.pv-head { margin: 0 0 18px; }
.pronto-videos .pv-title { margin: 0; color: var(--pv-ink); font-size: clamp(24px, 3.2vw, 36px); line-height: 1.15; }
.pronto-videos .pv-intro { margin: 8px 0 0; color: var(--pv-muted); font-size: 17px; max-width: 70ch; }

/* Theatre */
.pv-theatre { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 20px; align-items: start; margin: 0 0 36px; }
.pv-theatre--solo { grid-template-columns: minmax(0, 1fr); max-width: 960px; margin-left: auto; margin-right: auto; }
.pv-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--pv-radius); overflow: hidden; background: #0a1124; }
.pv-player > video, .pv-player > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.pv-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; display: block; }
.pv-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-poster--empty { background: linear-gradient(135deg, #0d1b3e 0%, #17306e 60%, #00aeef 140%); }
.pv-badge {
	position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px;
	background: rgba(13, 27, 62, .88); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.pv-playicon {
	position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
	border-radius: 50%; background: rgba(13, 27, 62, .88); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); transition: transform .15s, background-color .15s;
}
.pv-playicon::after {
	content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
	border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff;
}
.pv-facade:hover .pv-playicon { transform: scale(1.08); background: var(--pv-ink); }
.pv-theatre__meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
.pronto-videos .pv-now { margin: 0; font-weight: 700; font-size: 18px; color: var(--pv-ink); }
.pronto-videos .pv-now-caption { margin: 4px 0 0; color: var(--pv-muted); font-size: 15px; }
.pronto-videos .pv-now-caption:empty { display: none; }
.pv-theatre__meta .pv-btn { flex: none; }

.pv-upnext__title { font-weight: 700; font-size: 16px; color: var(--pv-ink); margin: 0 0 10px; cursor: default; list-style: none; }
.pv-upnext__title::-webkit-details-marker { display: none; }
.pv-upnext__list { display: flex; flex-direction: column; gap: 8px; }
.pv-upnext__item {
	display: flex; gap: 10px; align-items: center; width: 100%; padding: 6px; text-align: left;
	border: 1px solid var(--pv-line); border-radius: 10px; background: #fff; transition: border-color .15s, background-color .15s;
}
.pv-upnext__item:hover { border-color: var(--pv-ink); }
.pv-upnext__item.is-active { border-color: var(--pv-ink); background: var(--pv-soft); }
.pv-upnext__thumb { position: relative; flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0a1124; }
.pv-upnext__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pv-upnext__name { font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--pv-text); }
.pv-upnext__dur { font-size: 12px; color: var(--pv-muted); }

/* Reels */
.pv-reels__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--pv-line); margin-bottom: 8px; }
.pronto-videos .pv-reels__title { margin: 0; font-size: 26px; color: var(--pv-ink); }
.pv-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pronto-videos .pv-chip { min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--pv-ink); background: #fff; color: var(--pv-ink); font-size: 14px; font-weight: 600; }
.pronto-videos .pv-chip:hover, .pronto-videos .pv-chip.is-active { background: var(--pv-ink); color: #fff; }

.pv-row { padding: 16px 0 4px; scroll-margin-top: 90px; }
.pv-row.is-flash .pv-row__title { color: #006b96; }
.pv-row__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.pronto-videos .pv-row__title { margin: 0; font-size: 19px; color: var(--pv-ink); transition: color .3s; }
.pronto-videos .pv-seeall { padding: 4px 0; border: 0; background: none; color: #006b96; font-size: 14px; font-weight: 600; text-decoration: underline; }
.pv-row__wrap { position: relative; }
.pv-row__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 2px 2px 10px; scrollbar-width: none; }
.pv-row__track::-webkit-scrollbar { display: none; }
.pv-row__item { flex: none; width: 168px; scroll-snap-align: start; }
.pv-row--grid .pv-row__track { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; }
.pv-row--grid .pv-row__item { width: auto; }
.pv-row--grid .pv-arrow { display: none; }
.pv-card {
	position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 0;
	border-radius: var(--pv-radius); overflow: hidden; background: #0a1124; text-align: left;
	transition: transform .15s, box-shadow .15s;
}
.pv-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(13, 27, 62, .22); }
.pv-card::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(to top, rgba(6, 12, 30, .92), rgba(6, 12, 30, 0)); pointer-events: none; }
.pv-card__title { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.25; }
.pv-card__dur { position: absolute; top: 8px; right: 8px; z-index: 1; padding: 2px 7px; border-radius: 5px; background: rgba(6, 12, 30, .8); color: #fff; font-size: 12px; font-weight: 600; }
.pv-card__preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pronto-videos .pv-arrow {
	position: absolute; top: calc(50% - 26px); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--pv-line); background: #fff; box-shadow: 0 4px 12px rgba(13, 27, 62, .18);
}
.pv-arrow::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; border: solid var(--pv-ink); border-width: 0 2.5px 2.5px 0; }
.pv-arrow--prev { left: -14px; }
.pv-arrow--prev::after { transform: translate(-30%, -50%) rotate(135deg); }
.pv-arrow--next { right: -14px; }
.pv-arrow--next::after { transform: translate(-70%, -50%) rotate(-45deg); }

/* Viewer */
.pronto-videos .pv-viewer { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 24, .96); color: #fff; overflow: hidden; }
.pronto-videos .pv-viewer:not([open]) { display: none; }
.pv-viewer::backdrop { background: rgba(8, 12, 24, .9); }
.pv-viewer__inner { display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; height: 100%; padding: 24px; }
.pv-viewer__stage { position: relative; flex: none; height: min(86dvh, 760px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
.pv-viewer__media { position: absolute; inset: 0; }
.pv-viewer__media video, .pv-viewer__media iframe, .pv-viewer__media img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.pv-viewer__media iframe[src*="instagram.com"] { top: 56px; height: calc(100% - 56px); background: #fff; }
.pv-viewer__media .pv-out { position: absolute; left: 16px; right: 16px; bottom: 72px; z-index: 2; }
.pv-viewer__bar { position: absolute; top: 8px; left: 10px; right: 10px; z-index: 3; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.pv-viewer__bar span { display: block; width: 0; height: 100%; border-radius: 2px; background: #fff; }
.pv-viewer__tools { position: absolute; top: 18px; left: 10px; right: 10px; z-index: 3; display: flex; align-items: center; gap: 6px; }
.pv-viewer__count { margin-right: auto; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); font-size: 12px; font-weight: 600; }
.pronto-videos .pv-tool { min-height: 36px; padding: 6px 10px; border-radius: 6px; border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 600; }
.pronto-videos .pv-tool[aria-pressed="true"] { background: #fff; color: #0d1b3e; }
.pv-viewer__panel { flex: none; width: 320px; max-width: 100%; padding: 20px; border-radius: 14px; background: #fff; color: var(--pv-text); display: flex; flex-direction: column; gap: 12px; max-height: min(86dvh, 760px); overflow-y: auto; }
.pronto-videos .pv-viewer__eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pv-muted); }
.pronto-videos .pv-viewer__title { margin: 0; font-size: 22px; line-height: 1.2; color: var(--pv-ink); }
.pronto-videos .pv-viewer__caption { margin: 0; font-size: 15px; color: var(--pv-text); white-space: pre-line; }
.pronto-videos .pv-viewer__caption:empty { display: none; }
.pronto-videos .pv-viewer__link { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--pv-line); border-radius: 10px; color: var(--pv-ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.pronto-videos .pv-viewer__link:hover { border-color: var(--pv-ink); }
.pv-viewer__link img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.pv-viewer__share { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-viewer__share .pv-btn { flex: 1; min-width: 0; padding: 8px 10px; font-size: 14px; }
.pronto-videos .pv-viewer__hint { margin: 0; font-size: 13px; color: var(--pv-muted); }
.pronto-videos .pv-viewer__nav { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); position: relative; }
.pronto-videos .pv-viewer__nav:hover { background: rgba(255, 255, 255, .3); }
.pronto-videos .pv-viewer__nav:disabled { opacity: .3; cursor: default; }
.pv-viewer__nav::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; border: solid #fff; border-width: 0 3px 3px 0; }
.pv-viewer__nav--prev::after { transform: translate(-30%, -50%) rotate(135deg); }
.pv-viewer__nav--next::after { transform: translate(-70%, -50%) rotate(-45deg); }

/* Sticky quote bar (mobile only) */
.pv-sticky { display: none; }
.pv-empty { padding: 16px; border: 1px dashed #b8c0d0; border-radius: 8px; }

/* Tablet */
@media (max-width: 1023px) {
	.pv-theatre { grid-template-columns: minmax(0, 1fr); }
	.pv-upnext__list { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
	.pv-upnext__list > li { flex: none; width: 260px; }
	.pv-arrow { display: none; }
	.pv-row__item { width: calc((100% - 24px) / 3.2); max-width: 200px; }
}

/* Mobile */
@media (max-width: 599px) {
	.pronto-videos { padding-bottom: 24px; }
	.pv-stories__list { justify-content: flex-start; gap: 12px; }
	.pv-story { width: 72px; }
	.pv-story__ring { width: 62px; height: 62px; }
	.pv-theatre { margin-bottom: 24px; gap: 14px; }
	.pv-theatre.is-playing .pv-player { position: sticky; top: var(--pv-sticky-top, 0px); z-index: 20; border-radius: 0; margin: 0 calc(50% - 50vw); width: 100vw; }
	.pv-theatre__meta { flex-direction: column; align-items: stretch; }
	.pv-upnext__title { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--pv-line); border-radius: 10px; margin: 0; }
	.pv-upnext__title::after { content: ""; width: 9px; height: 9px; border: solid var(--pv-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .15s; }
	.pv-upnext__details[open] .pv-upnext__title { margin-bottom: 10px; }
	.pv-upnext__details[open] .pv-upnext__title::after { transform: rotate(-135deg); }
	.pv-upnext__list { flex-direction: column; overflow: visible; }
	.pv-upnext__list > li { width: auto; }
	.pv-chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
	.pv-chip { flex: none; }
	.pv-row__item { width: 42%; max-width: none; }
	.pv-row--grid .pv-row__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.pv-viewer__inner { padding: 0; gap: 0; }
	.pv-viewer__stage { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
	.pv-viewer__nav { display: none; }
	.pv-viewer__panel {
		position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; width: auto; max-height: 62dvh;
		padding: 48px 16px 18px; border-radius: 0; gap: 8px; color: #fff;
		background: linear-gradient(to top, rgba(6, 12, 30, .95) 55%, rgba(6, 12, 30, 0));
	}
	.pronto-videos .pv-viewer__title { color: #fff; font-size: 18px; }
	.pronto-videos .pv-viewer__eyebrow, .pronto-videos .pv-viewer__hint { color: #d5dbea; }
	.pronto-videos .pv-viewer__caption { color: #fff; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.pronto-videos .pv-viewer__link { color: #fff; border-color: rgba(255, 255, 255, .5); }
	.pv-viewer__panel .pv-btn--primary { background: #fff; color: var(--pv-ink); border-color: #fff; }
	.pv-viewer__panel .pv-btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }

	.pv-sticky {
		display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--pv-line);
		box-shadow: 0 -6px 18px rgba(13, 27, 62, .12);
	}
	.pv-sticky .pv-btn { flex: 1; }
	.pronto-videos:has(.pv-sticky) { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
	.pronto-videos *, .pronto-videos *::before, .pronto-videos *::after { transition: none !important; scroll-behavior: auto !important; }
}
