/* JTC Video Showcase — vertical 9:16 clips in the JTC LASER minimal style. */
.jvs, .jvs-dialog, .jvs-page {
	--jvs-ink: #111315;
	--jvs-ink-2: #45494f;
	--jvs-muted: #6a6f76;
	--jvs-line: #dedfda;
	--jvs-bg: #f5f5f3;
	--jvs-black: #0c0d0f;
	--jvs-black-2: #18191c;
	--jvs-on-black: #f5f5f3;
	--jvs-on-black-2: #a9adb3;
	--jvs-accent: #ffc20e;
	--jvs-radius: 22px;
	--jvs-wrap: 1180px;
}
.jvs *, .jvs *::before, .jvs *::after, .jvs-dialog *, .jvs-page *, .jvs-page *::before, .jvs-page *::after { box-sizing: border-box; }

/* ---------- Card ---------- */
.jvs-card { margin: 0; min-width: 0; }
.jvs .jvs-card__media {
	position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; margin: 0; border: 0;
	border-radius: var(--jvs-radius); overflow: hidden; background: #1b1c1f; cursor: pointer; color: #fff;
	-webkit-tap-highlight-color: transparent; isolation: isolate;
}
.jvs .jvs-card__media:focus-visible { outline: 2px solid #0a64d8; outline-offset: 3px; }
.jvs-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.jvs .jvs-card__media:hover .jvs-video { transform: scale(1.03); }
.jvs-play {
	position: absolute; inset-inline-start: 14px; bottom: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center; color: #fff;
	background: rgba(17, 19, 21, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transition: background .2s, transform .2s;
}
.jvs-play svg { margin-inline-start: 2px; }
.jvs .jvs-card__media:hover .jvs-play { background: var(--jvs-accent); color: var(--jvs-ink); transform: scale(1.06); }
.jvs-card__cap { padding: 16px 4px 0; display: grid; gap: 6px; }
.jvs-card__cap strong { font-size: 17px; line-height: 1.25; font-weight: 600; color: inherit; }
.jvs-card__cap span { font-size: 14px; line-height: 1.45; color: var(--jvs-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.is-dark .jvs-card__cap span, .b-section--black .jvs-card__cap span { color: var(--jvs-on-black-2); }

/* ---------- Hero trio ---------- */
.jvs-hero-media.b-hero__media { max-width: 940px; }
.jvs-hero { display: grid; grid-template-columns: 1fr 1.32fr 1fr; gap: clamp(10px, 2.2vw, 26px); align-items: center; max-width: 900px; margin: 0 auto; }
.jvs-hero .jvs-card.is-side .jvs-card__media { border-radius: calc(var(--jvs-radius) - 4px); }
.jvs-hero .jvs-card.is-side .jvs-play { width: 34px; height: 34px; inset-inline-start: 10px; bottom: 10px; }
.jvs-hero .jvs-card.is-main .jvs-card__media { box-shadow: 0 30px 60px -28px rgba(17, 19, 21, 0.55); }
.jvs-hero[data-count="1"] { grid-template-columns: minmax(0, 360px); justify-content: center; }
@media (max-width: 600px) {
	.jvs-hero-media.b-hero__media { padding: 0 12px; margin-top: 36px; }
	.jvs-hero { grid-template-columns: 0.72fr 1.6fr 0.72fr; gap: 8px; }
	.jvs-hero .jvs-card.is-side .jvs-card__media { border-radius: 12px; }
	.jvs-hero .jvs-card.is-side .jvs-play { display: none; }
}

/* ---------- Rail (carousel) ---------- */
.jvs-sec .b-intro { margin-bottom: 0; }
.jvs-more { margin-top: 10px; }
.jvs-rail-wrap { position: relative; }
.jvs-rail {
	--gut: max(24px, calc((100vw - var(--jvs-wrap)) / 2 + 24px));
	display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gut); padding: 48px var(--gut) 8px; scrollbar-width: none;
}
.jvs-rail::-webkit-scrollbar { display: none; }
.jvs-rail .jvs-card { flex: 0 0 clamp(210px, 22vw, 272px); scroll-snap-align: start; }
.jvs-rail__nav { max-width: var(--jvs-wrap); margin: 20px auto 0; padding: 0 24px; display: flex; justify-content: flex-end; gap: 12px; }
.jvs .jvs-rail__btn {
	width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	background: #e8e8e4; color: var(--jvs-ink); transition: background .2s, opacity .2s;
}
.jvs .jvs-rail__btn:hover { background: #dcdcd7; }
.jvs .jvs-rail__btn:disabled { opacity: .35; cursor: default; }
[dir="rtl"] .jvs-rail__btn svg { transform: scaleX(-1); }
.b-section--white .jvs-rail__btn { background: #efefec; }
.is-dark .jvs-rail__btn, .b-section--black .jvs-rail__btn { background: #2a2c30; color: #fff; }
@media (max-width: 600px) {
	.jvs-rail { gap: 14px; padding-top: 36px; }
	.jvs-rail .jvs-card { flex-basis: 62vw; }
	.jvs-rail__nav { display: none; }
}

/* ---------- Wall (grid) ---------- */
.jvs-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(calc(50% - 10px), 210px), 1fr)); gap: 36px 20px; margin-top: 48px; }
.jvs-wall.is-few { grid-template-columns: repeat(auto-fit, minmax(min(calc(50% - 10px), 220px), 300px)); justify-content: start; }
.jvs-wall .jvs-card[hidden] { display: none; }
@media (max-width: 600px) {
	.jvs-wall { gap: 26px 12px; margin-top: 36px; }
	.jvs-wall.is-few { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -24px; padding-inline: 24px; scroll-padding-inline: 24px; }
	.jvs-wall.is-few::-webkit-scrollbar { display: none; }
	.jvs-wall.is-few .jvs-card { flex: 0 0 62vw; scroll-snap-align: start; }
	.jvs-card__cap strong { font-size: 15px; }
	.jvs-card__cap span { font-size: 13px; }
	.jvs-play { width: 36px; height: 36px; inset-inline-start: 10px; bottom: 10px; }
}

/* ---------- Panel (model compare) ---------- */
.jvs-panel-media { display: flex; justify-content: center; }
.jvs-panel { width: min(100%, 300px); }
.jvs-panel .jvs-card__media { box-shadow: 0 24px 50px -30px rgba(17, 19, 21, 0.6); }

/* ---------- Single ---------- */
.jvs-single { max-width: 340px; }
.jvs-head { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; font-weight: 700; margin: 0 0 8px; }

/* ---------- Lightbox ---------- */
.jvs-dialog { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; overflow: hidden; }
.jvs-dialog[open] { display: flex; align-items: center; justify-content: center; }
.jvs-dialog::backdrop { background: rgba(8, 9, 10, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.jvs-dialog__box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 94vw; }
.jvs-dialog__stage { height: min(78vh, 860px); aspect-ratio: 9 / 16; max-width: 92vw; border-radius: 18px; overflow: hidden; background: #000; }
.jvs-dialog__stage.is-h { height: auto; width: min(92vw, 1080px); aspect-ratio: 16 / 9; }
.jvs-dialog__stage video, .jvs-dialog__stage iframe { width: 100%; height: 100%; display: block; border: 0; object-fit: contain; background: #000; }
.jvs-dialog__cap { color: #f5f5f3; text-align: center; max-width: min(520px, 92vw); display: grid; gap: 4px; font-family: inherit; }
.jvs-dialog__cap strong { font-size: 17px; font-weight: 600; }
.jvs-dialog__cap span { font-size: 14px; color: #a9adb3; }
.jvs-dialog__cap span:empty { display: none; }
.jvs-dialog__close {
	position: fixed; top: 16px; inset-inline-end: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0;
	display: flex; align-items: center; justify-content: center; cursor: pointer; background: rgba(255, 255, 255, 0.14); color: #fff;
}
.jvs-dialog__close:hover { background: rgba(255, 255, 255, 0.26); }
.jvs-dialog__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 600px) {
	.jvs-dialog__stage { height: min(72vh, 680px); border-radius: 14px; }
}
html.jvs-lock { overflow: hidden; }

/* ---------- Video center page ---------- */
body.jvs-page { margin: 0; background: var(--jvs-bg); color: var(--jvs-ink); font-family: "Golos Text", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.jvs-page-ar { font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif; }
.jvs-page a { color: inherit; }
.jvs-top { position: sticky; top: 0; z-index: 20; background: rgba(245, 245, 243, 0.85); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(17, 19, 21, 0.08); }
.admin-bar .jvs-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .jvs-top { top: 46px; } }
@media (max-width: 600px) { .admin-bar .jvs-top { top: 0; } }
.jvs-top__in { max-width: var(--jvs-wrap); margin: 0 auto; padding: 0 24px; min-height: 56px; display: flex; align-items: center; gap: 20px; }
.jvs-brand { font-weight: 700; letter-spacing: 0.04em; font-size: 19px; text-decoration: none; flex: none; }
.jvs-langs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; justify-content: center; }
.jvs-langs::-webkit-scrollbar { display: none; }
.jvs-langs a { flex: none; font-size: 13px; color: var(--jvs-ink-2); text-decoration: none; padding: 8px 10px; border-radius: 999px; }
.jvs-langs a[aria-current] { background: var(--jvs-ink); color: #fff; }
.jvs-btn { flex: none; display: inline-flex; align-items: center; min-height: 36px; padding: 8px 18px; border-radius: 999px; background: var(--jvs-ink); color: #fff !important; text-decoration: none; font-size: 14px; font-weight: 500; }
.jvs-btn:hover { background: #2c2f34; }
@media (max-width: 720px) {
	.jvs-top__in { flex-wrap: wrap; gap: 0 12px; padding: 0 16px; }
	.jvs-brand { order: 1; padding: 12px 0; }
	.jvs-btn { order: 2; margin-inline-start: auto; }
	.jvs-langs { order: 3; flex-basis: 100%; justify-content: flex-start; padding-bottom: 8px; margin: 0 -6px; }
}
.jvs-main { padding: clamp(56px, 8vw, 110px) 0 clamp(72px, 9vw, 120px); }
.jvs-wrap { max-width: var(--jvs-wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .jvs-wrap { padding: 0 16px; } }
.jvs-h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.03; font-weight: 700; letter-spacing: -0.026em; margin: 0; }
.jvs-lead { font-size: clamp(18px, 1.8vw, 22px); color: var(--jvs-ink-2); max-width: 680px; margin: 18px 0 0; }
.jvs-filter { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 4px; margin-top: 40px; background: #ececea; border-radius: 999px; }
.jvs-filter::-webkit-scrollbar { display: none; }
.jvs .jvs-filter button { flex: none; white-space: nowrap; font: inherit; font-size: 14px; font-weight: 500; color: var(--jvs-ink-2); background: none; border: 0; min-height: 36px; padding: 6px 18px; border-radius: 999px; cursor: pointer; }
.jvs .jvs-filter button.is-on { background: #fff; color: var(--jvs-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.jvs-back { margin: 64px 0 0; font-size: 15px; }
.jvs-back a { color: #8a5a00; }

@media (prefers-reduced-motion: reduce) {
	.jvs-video, .jvs-play { transition: none; }
	.jvs .jvs-card__media:hover .jvs-video { transform: none; }
}
