/* Naba Video: the full-width video page. Colours and type come from the Naba theme (with safe fallbacks). */

.nv-page {
	--nv-primary: var(--primary, #2f3ba2);
	--nv-accent: var(--accent, #d62839);
	--nv-ink: var(--ink, #14173d);
	--nv-muted: var(--muted, #5a5f86);
	--nv-line: var(--line, #dcdff0);
	--nv-surface: var(--surface, #fff);
	--nv-surface2: var(--surface-2, #eceef8);
	color: var(--nv-ink);
}
.nv-main { padding: 0 !important; }
:where(.nv-page .wrap) { max-width: 1600px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 60px); }
.nv-page a { color: inherit; text-decoration: none; }
.nv-page img { display: block; max-width: 100%; }
.nv-page button { font-family: inherit; }
.nv-meta { color: var(--nv-muted); font-size: .85rem; }

/* ---------- Thumbnails, play badge, length ---------- */
.nv-img { width: 100%; height: 100%; object-fit: cover; }
.nv-play {
	position: absolute; inset-inline-start: 8px; inset-block-end: 8px; z-index: 2;
	width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
	background: #bf1e2e url("icon-128.png") center / cover no-repeat;
}
.nv-dur {
	position: absolute; inset-inline-end: 8px; inset-block-end: 8px; z-index: 2; unicode-bidi: isolate;
	background: rgba(8, 10, 34, .82); color: #fff; font: 700 .75rem/1 system-ui, sans-serif; padding: 5px 7px; border-radius: 6px;
}

/* ---------- Cinema: the big player and the list beside it ---------- */
.nv-cinema {
	background: radial-gradient(120% 140% at 85% 0, #2f3ba2 0, #1a1f5a 42%, #0d0f2c 100%);
	color: #fff; padding-block: 26px 42px;
}
.nv-pagetitle { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.1rem; font-weight: var(--hw, 700); color: #fff; }
.nv-pagetitle::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--nv-accent); }
.nv-pagetitle--plain { color: var(--nv-ink); margin-block: 24px; }
.nv-cinema__grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 460px); gap: clamp(16px, 1.6vw, 30px); align-items: stretch; }
.nv-stage { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.nv-stage .nv-img, .nv-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.nv-stage:not(.is-playing)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 34, 0) 38%, rgba(8, 10, 34, .9) 100%); pointer-events: none; }
.nv-bigplay {
	position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: clamp(64px, 6vw, 96px); aspect-ratio: 1; border: 0; border-radius: 50%; cursor: pointer;
	background: #bf1e2e url("icon-256.png") center / cover no-repeat;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: transform .2s ease;
}
.nv-bigplay::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .6); animation: nv-pulse 2.2s ease-out infinite; pointer-events: none; }
.nv-bigplay:hover { transform: translate(-50%, -50%) scale(1.08); }
@keyframes nv-pulse { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.4); opacity: 0; } }
.nv-stage__cap { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: clamp(14px, 2vw, 28px); pointer-events: none; }
.nv-stage__title { margin: 0 0 6px; font-size: clamp(1.15rem, 2vw, 2rem); line-height: 1.65; font-weight: var(--hw, 700); color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.nv-stage .nv-meta { color: rgba(255, 255, 255, .78); }
.nv-stage.is-playing .nv-bigplay, .nv-stage.is-playing .nv-stage__cap, .nv-stage.is-playing > .nv-img { display: none; }

.nv-next { position: relative; min-height: 300px; }
.nv-next__in {
	position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden;
	background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px;
}
.nv-next__head { margin: 0; padding: 14px 18px; font-size: 1.05rem; font-weight: var(--hw, 700); color: #fff; border-block-end: 1px solid rgba(255, 255, 255, .13); }
.nv-next__list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 4px; align-content: start; overflow-y: auto; scrollbar-width: thin; }
.nv-item { display: grid; grid-template-columns: clamp(118px, 9vw, 170px) minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 10px; color: #fff; }
.nv-item:hover, .nv-item.is-current { background: rgba(255, 255, 255, .11); }
.nv-item__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.nv-item__thumb .nv-play { width: 26px; height: 26px; inset-inline-start: 6px; inset-block-end: 6px; }
.nv-item__txt { display: grid; gap: 4px; min-width: 0; }
.nv-item__txt strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; line-height: 1.7; font-weight: var(--hw, 700); }
.nv-item .nv-meta { color: rgba(255, 255, 255, .66); font-size: .78rem; }

/* ---------- Sections ---------- */
.nv-sec { margin-block: clamp(26px, 3vw, 46px); }
.nv-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-block-end: 1px solid var(--nv-line); margin-block-end: 18px; }
.nv-head__title { margin: 0 0 -1px; padding-block-end: 10px; font-size: clamp(1.2rem, 1.6vw, 1.6rem); font-weight: var(--hw, 700); border-block-end: 3px solid var(--nv-primary); }
.nv-head__title em { font-style: normal; font-size: .7em; color: var(--nv-muted); margin-inline-start: 6px; }
.nv-arrows { display: flex; gap: 8px; padding-block-end: 8px; }
.nv-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--nv-line); background: var(--nv-surface); color: var(--nv-ink); display: grid; place-items: center; cursor: pointer; }
.nv-arrow svg { width: 22px; height: 22px; fill: currentColor; }
.nv-arrow:hover { background: var(--nv-primary); border-color: var(--nv-primary); color: #fff; }
.nv-arrow--next svg, .nv-modal__nav--next svg { transform: scaleX(-1); }
html[dir="rtl"] .nv-arrow--prev svg, html[dir="rtl"] .nv-modal__nav--prev svg { transform: scaleX(-1); }
html[dir="rtl"] .nv-arrow--next svg, html[dir="rtl"] .nv-modal__nav--next svg { transform: none; }

/* Reels: tall 9:16 posters in a row */
.nv-rail { display: flex; gap: clamp(10px, 1vw, 18px); overflow-x: auto; scroll-snap-type: x proximity; padding-block: 4px 12px; scrollbar-width: thin; }
.nv-card--short { flex: 0 0 clamp(150px, 12.5vw, 230px); scroll-snap-align: start; display: block; }
.nv-card--short .nv-card__thumb { aspect-ratio: 9 / 16; background: #000; }
.nv-card__ov { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 46px 10px 10px; background: linear-gradient(0deg, rgba(8, 10, 34, .9), rgba(8, 10, 34, 0)); color: #fff; }
.nv-card--short .nv-card__title { color: #fff; font-size: .92rem; line-height: 1.7; -webkit-line-clamp: 3; padding-inline-start: 0; }
.nv-card--short:hover .nv-card__title { color: #fff; }
.nv-card--short .nv-play { inset-block-start: 8px; inset-block-end: auto; }
.nv-card--short .nv-meta { display: block; margin-block-start: 6px; }

/* Library: toolbar and grid */
.nv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-block-end: 20px; }
.nv-pills { display: flex; gap: 6px; padding: 4px; background: var(--nv-surface2); border-radius: 99px; }
.nv-pill { border: 0; background: transparent; color: var(--nv-ink); font-size: .95rem; padding: 7px 18px; border-radius: 99px; cursor: pointer; }
.nv-pill.is-on { background: var(--nv-primary); color: #fff; }
.nv-search { margin-inline-start: auto; display: flex; align-items: center; background: var(--nv-surface); border: 1px solid var(--nv-line); border-radius: 99px; padding-inline: 16px 5px; }
.nv-search input { border: 0; outline: 0; background: transparent; color: var(--nv-ink); font: inherit; font-size: .95rem; min-width: min(260px, 52vw); padding-block: 8px; }
.nv-search button { border: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--nv-primary); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nv-search svg { width: 18px; height: 18px; fill: currentColor; }

.nv-grid { display: grid; gap: clamp(18px, 1.6vw, 30px) clamp(12px, 1.2vw, 22px); }
.nv-grid--video { grid-template-columns: repeat(auto-fill, minmax(clamp(250px, 21vw, 360px), 1fr)); }
.nv-grid--short { grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 11vw, 210px), 1fr)); }
.nv-grid--short .nv-card--short { flex: none; }
.nv-card { display: block; }
.nv-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--nv-surface2); }
.nv-card__thumb .nv-img { transition: transform .35s ease; }
.nv-card:hover .nv-img { transform: scale(1.04); }
.nv-card__body { display: grid; gap: 4px; padding-block-start: 10px; }
.nv-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; line-height: 1.75; font-weight: var(--hw, 700); }
.nv-card:hover .nv-card__title { color: var(--nv-primary); }
.nv-all.is-loading .nv-grid { opacity: .55; transition: opacity .15s; }
.nv-empty { text-align: center; color: var(--nv-muted); padding: 40px 0; }
.nv-more { text-align: center; margin-block: 30px 6px; }
.nv-btn { border: 0; cursor: pointer; background: var(--nv-primary); color: #fff; font-size: 1rem; font-weight: var(--hw, 700); padding: 14px 38px; border-radius: 99px; display: inline-block; }
.nv-btn:hover { background: var(--nv-accent); }
.nv-btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Pop-up player ---------- */
html.nv-lock { overflow: hidden; }
.nv-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; background: rgba(8, 10, 30, .95); }
.nv-modal[hidden] { display: none; }
.nv-modal__box { width: min(1100px, 100%); }
.nv-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.nv-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.nv-modal.is-short .nv-modal__box { width: min(440px, calc((100vh - 170px) * .5625), 100%); }
.nv-modal.is-short .nv-modal__frame { aspect-ratio: 9 / 16; }
.nv-modal__info { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 14px; padding-block-start: 12px; color: #fff; }
.nv-modal__title { margin: 0; flex: 1 1 240px; font-size: 1rem; line-height: 1.7; font-weight: var(--hw, 700); color: #fff; }
.nv-btn--yt { background: #fff; color: #14173d; padding: 9px 18px; font-size: .9rem; }
.nv-btn--yt:hover { background: var(--nv-accent); color: #fff; }
.nv-modal__close { position: absolute; inset-block-start: 14px; inset-inline-end: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.nv-modal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.nv-modal__nav--prev { inset-inline-start: 16px; }
.nv-modal__nav--next { inset-inline-end: 16px; }
.nv-modal__nav svg { width: 26px; height: 26px; fill: currentColor; }
.nv-modal__close:hover, .nv-modal__nav:hover { background: var(--nv-accent); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1000px) {
	.nv-cinema__grid { grid-template-columns: 1fr; }
	.nv-next { position: static; min-height: 0; }
	.nv-next__in { position: static; }
	.nv-next__list { max-height: 440px; }
	.nv-card--short { flex-basis: 150px; }
}
@media (max-width: 600px) {
	.nv-cinema { padding-block: 16px 24px; }
	.nv-stage { border-radius: 10px; }
	.nv-grid--video { grid-template-columns: 1fr; }
	.nv-grid--short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nv-search { margin-inline-start: 0; width: 100%; }
	.nv-search input { flex: 1; min-width: 0; }
	.nv-modal.is-short .nv-modal__box { width: min(100%, calc((100vh - 160px) * .5625)); }
	.nv-modal__nav { top: auto; bottom: 16px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.nv-card__thumb .nv-img, .nv-bigplay { transition: none; }
	.nv-bigplay::after { animation: none; opacity: 0; }
}
