/* "Video taklifnomalar" bo'limi (assets/vasl-vtayyor.js) — site.css ranglari bilan */

.vt-switch { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 18px 8px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(235, 197, 126, .08); color: var(--tilla-hi); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background-color .2s, transform .2s; }
.vt-switch:hover { background: rgba(235, 197, 126, .16); transform: translateY(-2px); }
.vt-switch i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #241703; font-style: normal; }
.vt-switch svg { width: 16px; height: 16px; fill: currentColor; }

#video-tayyor .chips { margin-bottom: 0; }
.vt-grid { display: grid; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(214px, 100%), 1fr)); gap: clamp(26px, 4vw, 48px) clamp(16px, 3vw, 36px); }
.vt-card { display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(30px); transition: opacity .8s ease calc(var(--n, 0) * 70ms), transform .9s var(--ease-out) calc(var(--n, 0) * 70ms); }
.vt-card.is-in { opacity: 1; transform: none; }
.vt-card .phone { transition: box-shadow .5s ease, transform .6s var(--ease-out); }
@media (hover: hover) { .vt-card:hover .phone { transform: translateY(-10px) rotate(-.6deg); box-shadow: inset 0 0 0 1px rgba(235, 197, 126, .6), 0 44px 80px -36px rgba(0, 0, 0, .9), 0 26px 110px -26px rgba(235, 197, 126, .6); } }
.vt-screen { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 11% / 6.2%; background: linear-gradient(170deg, var(--lapis-700), var(--lapis-900)); }
.vt-screen img, .vt-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vt-screen video { opacity: 0; transition: opacity .4s ease; }
.vt-screen video.is-on { opacity: 1; }
.vt-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(10, 10, 36, .55); box-shadow: 0 0 0 1px rgba(235, 197, 126, .6), 0 12px 30px -8px rgba(0, 0, 0, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .3s, transform .3s; }
.vt-play svg { width: 26px; height: 26px; margin-left: 3px; fill: var(--tilla-hi); }
.vt-card:hover .vt-play { transform: scale(1.08); }
.vt-card.is-preview .vt-play { opacity: 0; }
.vt-badge { position: absolute; left: 8%; top: 5%; padding: 3px 10px; border-radius: 99px; background: rgba(10, 10, 36, .6); color: var(--tilla-hi); font-size: .74rem; font-weight: 600; letter-spacing: .06em; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vt-dur { position: absolute; right: 8%; bottom: 4%; padding: 2px 9px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .76rem; font-variant-numeric: tabular-nums; }
.vt-card .card-meta { padding: 16px 4px 0; }
.vt-note { margin-top: 6px; color: var(--ivory-45); font-size: .88rem; line-height: 1.45; }

/* Ko'rish oynasi */
.vt-viewer { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 6, 24, .92); color: var(--ivory); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.vt-viewer::backdrop { background: none; }
.vt-viewer[open] { animation: veil .35s ease; }
.vt-vbody { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: clamp(20px, 4vw, 64px); width: min(1000px, 100% - 48px); margin: 0 auto; padding: 28px 0; }
.vt-vstage { container-type: size; display: grid; place-items: center; min-height: 0; }
.vt-vstage .phone { width: min(100cqw, 100cqh * .5625, 400px); }
.vt-vstage video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: contain; border-radius: 11% / 6.2%; background: #000; }
.vt-vside { position: relative; align-self: center; display: grid; justify-items: start; padding-right: 52px; }
.vt-vside .viewer-close { position: absolute; top: 0; right: 4px; }
.vt-vside .viewer-actions { width: 100%; margin-top: 26px; }
.vt-vside .plan-list { margin-top: 22px; }

@media (max-width: 860px) {
  .vt-viewer { overflow-y: auto; }
  .vt-vbody { display: block; width: 100%; height: auto; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); }
  .vt-vstage { container-type: normal; display: block; padding: 0; }
  .vt-vstage .phone { width: auto; padding: 0; border-radius: 0; background: #000; box-shadow: none; }
  .vt-vstage video { border-radius: 0; max-height: 78vh; max-height: 78svh; }
  .vt-vside { padding: 6px 20px 0; }
  .vt-vside .viewer-actions { position: sticky; bottom: 0; z-index: 2; margin-top: 18px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(6, 6, 24, 0), rgba(6, 6, 24, .96) 30%); }
  .vt-vside .viewer-close { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 3; background: rgba(10, 10, 36, .7); }
}
@media (max-width: 520px) {
  .vt-grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .vt-card .card-name { font-size: 1.22rem; }
  .vt-card .card-meta { padding-top: 12px; }
  .vt-play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .vt-note { display: none; }
}
@media (prefers-reduced-motion: reduce) { .vt-card { opacity: 1; transform: none; transition: none; } }
