/* ═══ v1.51 «Видеогид Оракула» — assets/videos.css ═══
   Стилистика futurist: холодный вакуум #04070d, ионный циан, золото,
   срезанные углы, тонкие 1px линии, Unbounded/Onest. */

/* ── Плеер ── */
.vp-stage { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }

.vp-screen {
    position: relative;
    border: 1px solid var(--line);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    background: #02050a;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.vp-screen video {
    display: block; width: 100%; height: 100%;
    object-fit: cover; background: #02050a;
}
.vp-screen[data-state="idle"] video { opacity: 0; }
.vp-screen-frame i {
    position: absolute; width: 26px; height: 26px;
    border: 2px solid var(--line-hot); pointer-events: none;
}
.vp-screen-frame i:nth-child(1) { top: 10px; left: 10px;  border-right: 0; border-bottom: 0; }
.vp-screen-frame i:nth-child(2) { top: 10px; right: 10px; border-left: 0;  border-bottom: 0; }
.vp-screen-frame i:nth-child(3) { bottom: 10px; left: 10px;  border-right: 0; border-top: 0; }
.vp-screen-frame i:nth-child(4) { bottom: 10px; right: 10px; border-left: 0;  border-top: 0; }
.vp-screen.is-live .vp-screen-frame i { border-color: var(--ion); box-shadow: 0 0 12px rgba(94, 226, 240, .35); }

.vp-bigplay {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 86px; height: 86px; border-radius: 50%;
    border: 1px solid var(--line-hot);
    background: rgba(4, 7, 13, .72);
    color: var(--ion-soft); font-size: 30px; line-height: 1;
    cursor: pointer; z-index: 3;
    transition: transform .25s, box-shadow .25s, opacity .25s;
    box-shadow: 0 0 24px rgba(94, 226, 240, .18) inset, 0 0 20px rgba(94, 226, 240, .12);
}
.vp-bigplay:hover { transform: translate(-50%, -50%) scale(1.07); box-shadow: 0 0 34px rgba(94, 226, 240, .35); }
.vp-screen.is-live .vp-bigplay { opacity: 0; pointer-events: none; }

.vp-stage-info h3 { margin: 10px 0 6px; font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.vp-stage-info p  { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.vp-line-badge {
    display: inline-block; padding: 4px 12px;
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ion-soft); border: 1px solid var(--line-hot);
    background: rgba(94, 226, 240, .06);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* ── Действия (лайк/сохранить/поделиться/скачать) ── */
.vp-actions, .vp-stage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-act {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 13px; min-height: 40px;
    font: 600 13px/1 var(--font-main); color: var(--text);
    background: rgba(10, 18, 34, .66);
    border: 1px solid var(--line);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    cursor: pointer; text-decoration: none;
    transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.vp-act .ic { font-size: 14px; color: var(--muted); transition: color .2s, text-shadow .2s; }
.vp-act:hover { border-color: var(--line-hot); transform: translateY(-1px); color: var(--ion-soft); }
.vp-act:active { transform: translateY(0); }

.vp-act.on { border-color: rgba(255, 179, 71, .55); background: rgba(255, 179, 71, .07); color: var(--solar); }
.vp-act.on .ic { color: var(--solar); text-shadow: 0 0 10px rgba(255, 179, 71, .6); }
.vp-act.save-act.on, .vp-act.vp-save.on, .vp-act.on.is-save { border-color: rgba(94, 226, 240, .55); background: rgba(94, 226, 240, .07); color: var(--ion-soft); }
.vp-act.save-act.on .ic, .vp-act.vp-save.on .ic, .vp-act.on.is-save .ic { color: var(--ion); text-shadow: 0 0 10px rgba(94, 226, 240, .6); }
.vp-act:disabled { opacity: .55; cursor: wait; transform: none; }

/* ── Фильтры ── */
.vp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.vp-chip {
    padding: 8px 14px; min-height: 38px;
    font: 600 13px/1 var(--font-main); color: var(--muted);
    background: transparent; border: 1px solid var(--line);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.vp-chip:hover { color: var(--ion-soft); border-color: var(--line-hot); }
.vp-chip.active { color: #04070d; background: linear-gradient(120deg, var(--ion), var(--ion-soft)); border-color: transparent; }

/* ── Сетка карточек ── */
.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.vp-card {
    display: flex; flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.vp-card:hover { border-color: var(--line-hot); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.vp-card.is-hidden { display: none; }

.vp-thumb {
    position: relative; display: block; width: 100%;
    aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer;
    background: #02050a; overflow: hidden;
}
.vp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s, filter .45s; }
.vp-card:hover .vp-thumb img { transform: scale(1.05); filter: brightness(1.12); }
.vp-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 18px; color: var(--ion-soft);
    background: rgba(4, 7, 13, .66); border: 1px solid var(--line-hot);
    transition: transform .25s, background .25s;
}
.vp-thumb:hover .vp-play { transform: translate(-50%, -50%) scale(1.1); background: rgba(4, 7, 13, .85); }
.vp-dur {
    position: absolute; right: 8px; bottom: 8px;
    padding: 3px 8px; font: 600 11px/1 var(--font-main);
    color: var(--ink); background: rgba(2, 5, 10, .8); border: 1px solid var(--line);
}

.vp-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1; }
.vp-card-body h3 { margin: 0; font-family: var(--font-display); font-size: 16px; color: var(--ink); line-height: 1.3; }
.vp-card-body > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; flex: 1; }

.vp-stats { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.vp-stats b { color: var(--text); font-weight: 600; }

/* ── Шторка «Поделиться» ── */
.vp-sheet { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; }
.vp-sheet[hidden] { display: none; }
.vp-sheet-backdrop { position: absolute; inset: 0; background: rgba(2, 4, 9, .78); backdrop-filter: blur(4px); }
.vp-sheet-panel {
    position: relative; width: min(420px, calc(100vw - 28px));
    padding: 26px 22px 22px;
    background: linear-gradient(160deg, #08101d, #04070d);
    border: 1px solid var(--line-hot);
    clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
    animation: vpSheetIn .25s ease-out;
}
@keyframes vpSheetIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.vp-sheet-title { margin: 0 0 4px; font: 700 17px/1.2 var(--font-display); color: var(--ink); }
.vp-sheet-name { margin: 0 0 16px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-sheet-net { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vp-net {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 6px; min-height: 76px;
    font: 600 11px/1.2 var(--font-main); color: var(--text);
    background: rgba(10, 18, 34, .66); border: 1px solid var(--line);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    cursor: pointer; transition: border-color .2s, transform .15s;
}
.vp-net i {
    font-style: normal; display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 50%;
    font-size: 12px; font-weight: 700; color: #04070d;
    background: linear-gradient(120deg, var(--ion), var(--ion-soft));
}
.vp-net.tg i   { background: linear-gradient(120deg, #ffb347, #ffd08a); }
.vp-net.wa i   { background: linear-gradient(120deg, #9beaff, #c9f6ff); }
.vp-net.ok i   { background: linear-gradient(120deg, #f7a558, #ffc58f); }
.vp-net.native i { background: linear-gradient(120deg, #8b9dbd, #b9c8de); }
.vp-net.copy i { background: transparent; border: 1px solid var(--line-hot); color: var(--ion-soft); }
.vp-net:hover { border-color: var(--line-hot); transform: translateY(-2px); }
.vp-sheet-close {
    position: absolute; top: 10px; right: 10px;
    width: 34px; height: 34px; border-radius: 50%;
    color: var(--muted); background: transparent; border: 1px solid var(--line);
    cursor: pointer; transition: color .2s, border-color .2s;
}
.vp-sheet-close:hover { color: var(--ion-soft); border-color: var(--line-hot); }

/* ── Мобильная версия ── */
@media (max-width: 860px) {
    .vp-stage { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .vp-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
    .vp-sheet-net { grid-template-columns: repeat(2, 1fr); }
    .vp-actions .vp-act { flex: 1 1 auto; justify-content: center; }
    .vp-bigplay { width: 68px; height: 68px; font-size: 24px; }
}

/* ── Доступность и reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .vp-card, .vp-act, .vp-net, .vp-thumb img, .vp-bigplay { transition: none; }
    .vp-sheet-panel { animation: none; }
    .vp-card:hover { transform: none; }
}
.vp-thumb:focus-visible, .vp-act:focus-visible, .vp-chip:focus-visible,
.vp-net:focus-visible, .vp-bigplay:focus-visible, .vp-sheet-close:focus-visible {
    outline: 2px solid var(--ion); outline-offset: 2px;
}
