/* BIPfR Video — видеохостинг в стиле BIPFric, интегрированный в сайт */
.video-shell {
    --v-bg: #0a0c0f;
    --v-card: #121417;
    --v-card2: #17191d;
    --v-card3: #1c1f24;
    --v-border: #1f2429;
    --v-border2: #2a3037;
    --v-txt: #e8ecef;
    --v-muted: #98a2ab;
    --v-accent: #4fc3f7;
    --v-accent-dim: rgba(79, 195, 247, .12);
    --v-danger: #ff7b7b;
    --v-radius: 12px;
    position: relative;
    min-height: 100vh;
    padding: 72px 0 0;
    color: var(--v-txt);
    background-color: var(--v-bg);
    background-image:
        radial-gradient(900px 460px at 8% -5%, rgba(79, 195, 247, .10), transparent 62%),
        radial-gradient(760px 420px at 96% 0%, rgba(124, 108, 247, .08), transparent 62%),
        repeating-linear-gradient(105deg, #0b0d11 0 170px, #0d1016 170px 340px);
    font-family: inherit;
    overflow-x: clip;
}
.video-shell *,
.video-shell *::before,
.video-shell *::after { box-sizing: border-box; }
.video-shell a { color: inherit; text-decoration: none; }
.video-shell button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.video-shell input,
.video-shell textarea,
.video-shell select {
    font: inherit;
    color: var(--v-txt);
    background: #14171b;
    border: 1px solid var(--v-border2);
    border-radius: 8px;
    padding: 10px 14px;
    outline: none;
    font-size: .88rem;
    transition: border-color .15s, box-shadow .15s;
}
.video-shell input:focus,
.video-shell textarea:focus,
.video-shell select:focus {
    border-color: var(--v-accent);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, .1);
}
.video-shell select option { background: var(--v-card2); }
.video-shell .svg-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.video-shell ::-webkit-scrollbar { width: 10px; height: 10px; }
.video-shell ::-webkit-scrollbar-thumb { background: #2a2f35; border-radius: 6px; }

/* ── Общая оболочка ─────────────────────────────────────── */
.video-sidebar {
    position: fixed;
    top: 70px;
    left: 8px;
    bottom: 8px;
    width: 238px;
    z-index: 80;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 10px 18px;
    overflow-y: auto;
    background: rgba(10, 12, 15, .78);
    border: 1px solid var(--v-border);
    border-radius: 16px;
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
    transition: width .16s ease, padding .16s ease;
}
.video-side-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--v-border);
}
.video-side-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--v-accent), #7c6cf7);
    color: #04121c;
}
.video-side-logo .svg-icon { width: 18px; height: 18px; }
.video-side-brand-text { min-width: 0; flex: 1; }
.video-side-brand-text strong { display: block; color: #fff; font-size: .92rem; line-height: 1.2; letter-spacing: .2px; }
.video-side-brand-text strong span { color: var(--v-accent); }
.video-side-brand-text small { display: block; color: #64748b; font-size: .64rem; margin-top: 2px; }
.video-side-toggle {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--v-border2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    color: #8fa4bf;
    font-size: 20px;
    line-height: 1;
}
.video-side-toggle:hover { color: #fff; border-color: rgba(79, 195, 247, .35); }
.video-side-nav { display: flex; flex-direction: column; gap: 1px; }
.video-side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 38px;
    padding: 8px 11px;
    border-radius: 9px;
    color: #c4cfdd;
    font-size: .83rem;
    font-weight: 650;
    transition: background .15s, color .15s;
}
.video-side-nav a:hover { color: #fff; background: var(--v-card2); }
.video-side-nav a.active { color: #fff; background: var(--v-card3); }
.video-side-nav a.active .svg-icon { color: var(--v-accent); }
.video-side-nav .svg-icon { width: 18px; height: 18px; opacity: .92; }
.video-side-label {
    margin: 15px 11px 6px;
    color: #64748b;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.video-side-cat-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(79, 195, 247, .65);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, .07);
}
.video-side-count {
    margin-left: auto;
    color: #64748b;
    font-size: .66rem;
    font-weight: 800;
}
.video-side-empty { padding: 8px 11px; color: #64748b; font-size: .74rem; }
.video-side-foot {
    margin-top: auto;
    padding: 16px 11px 2px;
    border-top: 1px solid var(--v-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #4b5a70;
    font-size: .66rem;
}
.video-side-foot a { color: #7dd3fc; }
.video-main {
    margin-left: 258px;
    padding: 18px 26px 80px;
    min-height: calc(100vh - 72px);
    max-width: 1780px;
}
.video-page { width: 100%; }
.video-shell.sidebar-collapsed .video-sidebar { width: 78px; padding: 12px 8px 18px; }
.video-shell.sidebar-collapsed .video-main { margin-left: 98px; }
.video-shell.sidebar-collapsed .video-side-brand { justify-content: center; padding-left: 0; padding-right: 0; }
.video-shell.sidebar-collapsed .video-side-brand-text,
.video-shell.sidebar-collapsed .video-side-logo,
.video-shell.sidebar-collapsed .video-side-text,
.video-shell.sidebar-collapsed .video-side-label,
.video-shell.sidebar-collapsed .video-side-count { display: none; }
.video-shell.sidebar-collapsed .video-side-nav a { justify-content: center; padding: 10px 0; }
.video-shell.sidebar-collapsed .video-side-cat-dot { width: 9px; height: 9px; }
.video-shell.sidebar-collapsed .video-side-toggle { transform: rotate(180deg); }

/* ── Заголовки и кнопки ─────────────────────────────────── */
.video-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin: 2px 0 18px;
}
.video-eyebrow {
    color: var(--v-accent);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 7px;
}
.video-page-head h1,
.video-form-head h1 {
    margin: 0 0 6px;
    color: #fff;
    font-size: clamp(1.55rem, 2.7vw, 2.15rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}
.video-page-head p,
.video-form-head p {
    margin: 0;
    max-width: 820px;
    color: var(--v-muted);
    font-size: .9rem;
    line-height: 1.62;
}
.video-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.video-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 15px;
    border-radius: 9px;
    border: 1px solid var(--v-border2);
    background: var(--v-card2);
    color: var(--v-txt);
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: .15s ease;
    white-space: nowrap;
    text-decoration: none;
}
.video-btn:hover { background: var(--v-card3); border-color: #3a424c; transform: translateY(-1px); }
.video-btn.primary { background: var(--v-accent); border-color: transparent; color: #04121c; }
.video-btn.primary:hover { background: #74d1fb; box-shadow: 0 8px 24px rgba(79, 195, 247, .22); }
.video-btn.danger { color: var(--v-danger); border-color: rgba(255, 123, 123, .28); background: rgba(255, 123, 123, .08); }
.video-btn.small { padding: 7px 11px; font-size: .78rem; border-radius: 8px; }
.video-btn.active { color: var(--v-accent); border-color: rgba(79, 195, 247, .4); background: var(--v-accent-dim); }
.video-muted { color: var(--v-muted); }
.video-count-badge { color: var(--v-accent); background: var(--v-accent-dim); padding: 2px 7px; border-radius: 999px; font-size: .7rem; font-weight: 800; }

/* ── Чипы, поиск, сетка ─────────────────────────────────── */
.video-chips-wrap { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.video-chips { flex: 1; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.video-chips::-webkit-scrollbar { display: none; }
.video-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 8px;
    border: 1px solid var(--v-border2);
    background: var(--v-card2);
    color: var(--v-txt);
    font-size: .79rem;
    font-weight: 700;
    white-space: nowrap;
    transition: .15s;
}
.video-chip span { color: #64748b; font-size: .68rem; font-weight: 800; }
.video-chip:hover { background: var(--v-card3); }
.video-chip.active { background: #e8ecef; border-color: #e8ecef; color: #0a0c0f; }
.video-chip.active span { color: rgba(10, 12, 15, .55); }
.video-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 14px;
}
.video-search-field {
    position: relative;
    flex: 1 1 300px;
    min-width: 220px;
    display: flex;
    align-items: center;
}
.video-search-field .svg-icon {
    position: absolute;
    left: 12px;
    color: #64748b;
    pointer-events: none;
    width: 17px;
    height: 17px;
}
.video-search-field input { width: 100%; padding-left: 38px; }
.video-toolbar select { min-width: 160px; }
.video-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--v-muted);
    font-size: .8rem;
}
.video-sort-note { color: #64748b; font-size: .74rem; }
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(278px, 1fr));
    gap: 24px 18px;
}
.video-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: var(--v-txt);
    cursor: pointer;
}
.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--v-radius);
    border: 1px solid var(--v-border);
    background: var(--v-card);
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-card:hover .video-thumb { border-color: var(--v-border2); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 25%, rgba(79, 195, 247, .14), transparent 58%), #0d1014;
    color: #3c4653;
}
.video-thumb-placeholder .svg-icon { width: 44px; height: 44px; }
.video-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.9);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(4, 10, 16, .72);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    opacity: 0;
    transition: .2s ease;
    backdrop-filter: blur(6px);
}
.video-card-play .svg-icon { width: 20px; height: 20px; }
.video-card:hover .video-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-duration,
.video-source {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(0, 0, 0, .85);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.video-source { left: 8px; right: auto; background: rgba(79, 195, 247, .92); color: #04121c; text-transform: uppercase; }
.video-card-body { display: flex; gap: 11px; padding: 11px 2px 0; min-width: 0; }
.video-card-author-avatar { flex: 0 0 auto; }
.video-card-author-avatar img,
.video-avatar.small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4fc3f7, #7c6cf7);
    color: #06121e;
    font-size: .68rem;
    font-weight: 800;
}
.video-card-copy { min-width: 0; flex: 1; }
.video-card-copy h3 {
    margin: 0 0 4px;
    color: #f2f5f8;
    font-size: .94rem;
    font-weight: 750;
    line-height: 1.38;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card-author { margin: 0; color: var(--v-muted); font-size: .78rem; line-height: 1.4; }
.video-card-meta-line { margin: 2px 0 0; color: #697481; font-size: .73rem; line-height: 1.4; }
.video-card-attachments { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; align-items: center; }
.video-card-attachment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 22px;
    border-radius: 5px;
    background: rgba(79, 195, 247, .08);
    border: 1px solid rgba(79, 195, 247, .14);
    color: #7dd3fc;
}
.video-card-attachment .svg-icon { width: 13px; height: 13px; }
.video-card-attachment-more { color: #64748b; font-size: .65rem; font-weight: 800; }
.video-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
    color: var(--v-muted);
    font-size: .82rem;
}

/* ── Пустые состояния и FAB ─────────────────────────────── */
.video-empty {
    text-align: center;
    padding: 74px 20px;
    color: var(--v-muted);
    border: 1px dashed var(--v-border2);
    border-radius: 16px;
    background: rgba(255, 255, 255, .018);
}
.video-empty-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    color: var(--v-accent);
    background: rgba(79, 195, 247, .08);
    border: 1px solid rgba(79, 195, 247, .16);
}
.video-empty-icon .svg-icon { width: 30px; height: 30px; }
.video-empty h2 { color: var(--v-txt); margin: 0 0 8px; font-size: 1.2rem; }
.video-empty p { margin: 0 0 18px; line-height: 1.6; }
.video-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--v-accent), #7c6cf7);
    color: #04121c;
    box-shadow: 0 10px 30px rgba(79, 195, 247, .32);
    z-index: 90;
    transition: transform .15s;
}
.video-fab:hover { transform: scale(1.07); }
.video-fab .svg-icon { width: 22px; height: 22px; }

/* ── Страница просмотра ─────────────────────────────────── */
.video-breadcrumbs { color: #6f7a8c; font-size: .78rem; margin-bottom: 10px; }
.video-breadcrumbs a:hover { color: var(--v-accent); }
.video-breadcrumbs span { margin: 0 5px; color: #455065; }
.video-watch-layout { display: flex; gap: 24px; align-items: flex-start; }
.video-watch-main { flex: 1; min-width: 0; }
.video-watch-side { width: 360px; flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 78px; }
.vp-card {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: 1px solid var(--v-border);
    border-radius: 14px;
    overflow: hidden;
    isolation: isolate;
}
.vp-video, .vp-frame { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; border: 0; }
.vp-video { cursor: pointer; }
.vp-empty { height: 100%; display: grid; place-items: center; color: #64748b; }
.vp-big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, .62);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    z-index: 5;
    opacity: 1;
    transition: .15s;
    backdrop-filter: blur(5px);
}
.vp-big-play:hover { background: rgba(0, 0, 0, .82); transform: translate(-50%, -50%) scale(1.06); }
.vp-big-play .svg-icon { width: 34px; height: 34px; margin-left: 3px; }
.vp-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(transparent 54%, rgba(0, 0, 0, .8));
    opacity: 0;
    transition: opacity .18s;
    z-index: 4;
}
.vp-card:hover .vp-overlay,
.vp-card.is-paused .vp-overlay { opacity: 1; }
.vp-card.is-idle { cursor: none; }
.vp-card.is-idle .vp-overlay { opacity: 0; }
.vp-card.is-playing .vp-big-play { opacity: 0; pointer-events: none; }
.vp-progress {
    position: relative;
    height: 4px;
    margin: 0 12px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .24);
    cursor: pointer;
    transition: height .12s;
}
.vp-progress:hover { height: 6px; }
.vp-buffered, .vp-played { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.vp-buffered { background: rgba(255, 255, 255, .34); }
.vp-played { width: 0; background: var(--v-accent); }
.vp-knob {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--v-accent);
    transform: translate(-50%, -50%);
    display: none;
    z-index: 2;
}
.vp-progress:hover .vp-knob { display: block; }
.vp-controls { display: flex; align-items: center; gap: 5px; padding: 7px 9px 10px; }
.vp-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    flex: 0 0 auto;
}
.vp-btn:hover { background: rgba(255, 255, 255, .15); }
.vp-btn .svg-icon { width: 20px; height: 20px; }
.vp-icon-pause { display: none; }
.vp-card.is-playing .vp-icon-play { display: none; }
.vp-card.is-playing .vp-icon-pause { display: block; }
.vp-volume { display: flex; align-items: center; }
.vp-volume input[type="range"] {
    width: 0;
    opacity: 0;
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: var(--v-accent);
    transition: width .2s, opacity .2s;
}
.vp-volume:hover input[type="range"] { width: 74px; opacity: 1; margin-right: 7px; }
.vp-time { color: #fff; font-size: .78rem; font-weight: 700; margin: 0 6px; white-space: nowrap; }
.vp-spacer { flex: 1; }
.wtitle-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin: 14px 0 9px;
}
.wtitle { margin: 0; font-size: clamp(1.2rem, 2.4vw, 1.65rem); line-height: 1.28; color: #f5f8ff; font-weight: 800; }
.video-action-bar { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.video-action-bar form { margin: 0; }
.video-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--v-card2);
    border: 1px solid var(--v-border2);
    color: var(--v-txt);
    font-size: .8rem;
    font-weight: 700;
    transition: .15s;
}
.video-action-pill:hover { background: var(--v-card3); }
.video-action-pill.active { color: #ff8aa4; border-color: rgba(255, 125, 156, .38); background: rgba(255, 125, 156, .09); }
.video-action-pill.primary { color: #04121c; background: var(--v-accent); border-color: transparent; }
.video-action-pill.primary:hover { background: #74d1fb; }
.video-action-pill.danger { color: var(--v-danger); }
.video-action-pill .svg-icon { width: 16px; height: 16px; }
.wmeta-row {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--v-muted);
    font-size: .78rem;
    margin-bottom: 14px;
}
.wmeta-row > span { display: inline-flex; align-items: center; gap: 3px; }
.video-author { display: inline-flex; align-items: center; gap: 9px; }
.video-author img,
.video-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #4fc3f7, #7c6cf7);
    color: #06121e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .8rem;
    flex: 0 0 auto;
}
.video-author span { display: flex; flex-direction: column; line-height: 1.2; }
.video-author strong { color: #e8ecef; font-size: .84rem; }
.video-author small { color: #6f7a8c; font-size: .7rem; }
.video-avatar.big { width: 46px; height: 46px; font-size: 1rem; }
.video-meta-dot { color: #455065; }
.video-category-badge, .video-visibility, .video-moderation-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
}
.video-category-badge { color: #7dd3fc; background: rgba(79, 195, 247, .1); border: 1px solid rgba(79, 195, 247, .2); }
.video-visibility { color: #c4b5fd; background: rgba(168, 85, 247, .1); border: 1px solid rgba(168, 85, 247, .2); }
.video-moderation-badge { color: #fde68a; background: rgba(250, 204, 21, .1); border: 1px solid rgba(250, 204, 21, .25); }
.video-moderation-badge.ok { color: #86efac; background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .25); }
.video-moderation-badge.danger { color: #fca5a5; background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .25); }

/* Описание, вложения, комментарии */
.card-like {
    background: var(--v-card);
    border: 1px solid var(--v-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.video-description { background: var(--v-card); border: 1px solid var(--v-border); border-radius: 11px; padding: 13px 15px; margin-bottom: 16px; }
.video-description-meta { color: var(--v-muted); font-size: .77rem; font-weight: 700; margin-bottom: 6px; }
.video-description-meta a { color: var(--v-accent); }
.video-description-text { color: #c8d1dc; font-size: .88rem; line-height: 1.62; white-space: pre-wrap; word-break: break-word; }
.video-description.is-collapsed .video-description-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-desc-toggle { margin-top: 7px; padding: 0; color: var(--v-muted); font-size: .77rem; font-weight: 700; }
.video-desc-toggle:hover { color: var(--v-accent); }
.video-block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.video-block-head h2 { margin: 0; font-size: .98rem; color: #e8ecef; display: flex; align-items: center; gap: 7px; }
.video-block-head h2 .svg-icon { color: var(--v-accent); }
.video-attachment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.video-attachment {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 9px;
    background: var(--v-card2);
    border: 1px solid var(--v-border);
    overflow: hidden;
}
.video-attachment:hover { border-color: rgba(79, 195, 247, .35); }
.video-attachment-link { display: flex; align-items: center; gap: 10px; padding: 9px 11px; flex: 1; min-width: 0; }
.video-attachment-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 195, 247, .1);
    border: 1px solid rgba(79, 195, 247, .16);
    color: #7dd3fc;
    flex: 0 0 auto;
}
.video-attachment-icon .svg-icon { width: 17px; height: 17px; }
.video-attachment-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.video-attachment-copy small { color: #6f7a8c; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; }
.video-attachment-copy strong { color: #e8ecef; font-size: .83rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-attachment-arrow { color: #556174; margin-left: auto; }
.video-attachment-delete { background: transparent; border: 0; color: #64748b; font-size: 1.1rem; cursor: pointer; padding: 0 10px; }
.video-attachment-delete:hover { color: #fca5a5; }
.video-attach-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--v-border); display: flex; flex-direction: column; gap: 10px; }
.video-attach-form[hidden] { display: none; }
.video-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.video-or-label { display: flex; align-items: center; gap: 8px; color: #64748b; font-size: .72rem; font-weight: 700; }
.video-or-label::before, .video-or-label::after { content: ""; height: 1px; flex: 1; background: var(--v-border); }
.video-comments { margin-top: 14px; }
.video-comment-sort { display: flex; gap: 4px; padding: 3px; background: var(--v-card2); border: 1px solid var(--v-border); border-radius: 8px; }
.video-comment-sort a { padding: 5px 10px; border-radius: 6px; color: var(--v-muted); font-size: .74rem; font-weight: 700; }
.video-comment-sort a.active { background: var(--v-card3); color: var(--v-accent); }
.video-comment-form { display: flex; gap: 10px; margin-bottom: 18px; }
.video-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4fc3f7, #7c6cf7);
    color: #06121e;
    font-weight: 800;
    font-size: .76rem;
    overflow: hidden;
}
.video-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.video-comment-input-wrap { flex: 1; min-width: 0; }
.video-comment-input-wrap textarea { width: 100%; resize: vertical; min-height: 64px; }
.video-comment-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #6f7a8c; font-size: .7rem; margin-top: 6px; }
.video-comment-list { display: flex; flex-direction: column; gap: 15px; }
.video-comment { display: flex; gap: 10px; }
.video-comment-body { flex: 1; min-width: 0; }
.video-comment-head { display: flex; gap: 9px; align-items: baseline; flex-wrap: wrap; }
.video-comment-head a { color: #e8ecef; font-weight: 700; font-size: .83rem; }
.video-comment-head span { color: #64748b; font-size: .69rem; }
.video-comment-body p { margin: 4px 0 0; color: #b9c3d4; line-height: 1.55; font-size: .85rem; }
.video-link-danger { background: transparent; border: 0; color: #64748b; font-size: .7rem; cursor: pointer; padding: 0; margin-top: 4px; }
.video-link-danger:hover { color: #fca5a5; }

/* Правая колонка */
.video-side-card { background: var(--v-card); border: 1px solid var(--v-border); border-radius: 12px; padding: 13px 14px; }
.video-side-card h3 { margin: 0 0 10px; font-size: .88rem; color: #e8ecef; }
.video-side-author { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.video-side-author div { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.video-side-author strong { color: #e8ecef; font-size: .89rem; }
.video-side-author small { color: #6f7a8c; font-size: .71rem; }
.video-side-item { display: flex; gap: 9px; padding: 7px 0; border-top: 1px solid var(--v-border); }
.video-side-item:first-of-type { border-top: 0; padding-top: 0; }
.video-side-thumb {
    width: 96px;
    min-width: 96px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    background: #0a0f18;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4fc3f7;
}
.video-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-side-item-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.video-side-item-copy strong { font-size: .77rem; line-height: 1.3; color: #dfe7f3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-side-item-copy small { color: #6f7a8c; font-size: .67rem; line-height: 1.3; }
.video-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.video-tags a, .video-tags span { padding: 4px 8px; border-radius: 6px; background: var(--v-card2); color: #7dd3fc; font-size: .74rem; border: 1px solid var(--v-border); }
.video-help-list { margin: 0; padding-left: 17px; color: #9aa6b8; font-size: .79rem; line-height: 1.6; }
.video-help-list li + li { margin-top: 7px; }
.video-side-tip p { margin: 0; color: #8b95a7; font-size: .78rem; line-height: 1.6; }
.video-side-tip a { color: var(--v-accent); }

/* Театральный режим */
.video-shell.video-theater .video-watch-layout { flex-direction: column; }
.video-shell.video-theater .video-watch-main { width: 100%; }
.video-shell.video-theater .video-watch-side { position: static; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.video-shell.video-theater .video-watch-side .video-side-card:first-child { display: none; }

/* ── Формы ──────────────────────────────────────────────── */
.video-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.video-form-head { margin-bottom: 14px; }
.video-form { display: flex; flex-direction: column; gap: 14px; }
.video-field, .video-form label { display: flex; flex-direction: column; gap: 6px; color: #b9c3d4; font-size: .8rem; }
.video-field > span i { color: #fca5a5; font-style: normal; }
.video-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid var(--v-border2);
    background: #14171b;
    color: var(--v-txt);
    font: inherit;
    font-size: .87rem;
    outline: none;
}
.video-input:focus { border-color: rgba(79, 195, 247, .6); box-shadow: 0 0 0 3px rgba(79, 195, 247, .1); }
.video-textarea { resize: vertical; min-height: 130px; }
select.video-input[multiple] { min-height: 108px; }
.video-file-input { color: #9aa6b8; font-size: .79rem; }
.video-upload-zone {
    border: 1px dashed rgba(79, 195, 247, .32);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    background: rgba(79, 195, 247, .035);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: .15s;
}
.video-upload-zone.dragover { border-color: var(--v-accent); background: rgba(79, 195, 247, .1); }
.video-upload-zone > .svg-icon { width: 30px; height: 30px; color: var(--v-accent); }
.video-upload-zone strong { color: #e8ecef; font-size: .9rem; }
.video-upload-zone p { margin: 0; color: #6f7a8c; font-size: .75rem; }
.video-upload-zone .video-file-input { margin-top: 8px; }
.video-hint { color: #6f7a8c; font-size: .71rem; line-height: 1.5; }
.video-error, .video-form-errors { color: #fca5a5; font-size: .75rem; }
.video-form-errors { padding: 10px 12px; border-radius: 8px; background: rgba(248, 113, 113, .08); border: 1px solid rgba(248, 113, 113, .2); }
.video-check-line { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; color: #b9c3d4; font-size: .84rem; }
.video-check-line input { width: 16px; height: 16px; accent-color: var(--v-accent); }
.video-form-actions { display: flex; gap: 8px; margin-top: 4px; }
.video-attach-initial { border-top: 1px solid var(--v-border); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.video-attach-initial h2 { margin: 0; font-size: .98rem; color: #e8ecef; }
.video-attach-initial p { margin: 0; }
.video-form-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 78px; }

/* ── Мои видео / студия ─────────────────────────────────── */
.video-studio-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.video-studio-profile { display: flex; align-items: center; gap: 14px; min-width: 0; }
.video-studio-profile h1 { margin: 0 0 3px; font-size: clamp(1.35rem, 2.5vw, 1.9rem); color: #fff; }
.video-studio-profile p { margin: 0; color: var(--v-muted); font-size: .84rem; }
.video-studio-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.video-stat { background: var(--v-card); border: 1px solid var(--v-border); border-radius: 10px; padding: 16px 12px; text-align: center; }
.video-stat b { display: block; color: var(--v-accent); font-size: 1.55rem; font-weight: 800; line-height: 1.1; margin-bottom: 4px; }
.video-stat span { color: var(--v-muted); font-size: .74rem; }
.video-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--v-border); margin-bottom: 16px; overflow-x: auto; }
.video-tabs a { padding: 9px 13px; border-bottom: 2px solid transparent; color: var(--v-muted); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.video-tabs a.active { color: #fff; border-bottom-color: var(--v-accent); }
.video-manage-list { display: flex; flex-direction: column; gap: 9px; }
.video-manage-row {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 11px;
    border-radius: 11px;
    background: var(--v-card);
    border: 1px solid var(--v-border);
    flex-wrap: wrap;
}
.video-manage-thumb {
    position: relative;
    width: 150px;
    min-width: 150px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: #0a0f18;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4fc3f7;
}
.video-manage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-manage-info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.video-manage-info > a strong { color: #e8ecef; font-size: .93rem; }
.video-manage-stats { display: flex; gap: 11px; color: #7e899b; font-size: .77rem; }
.video-manage-stats span { display: inline-flex; gap: 3px; align-items: center; }
.video-manage-stats .svg-icon { width: 14px; height: 14px; }
.video-manage-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.video-manage-actions form { margin: 0; }
.video-moderator-note { margin: 2px 0 0; color: #fca5a5; font-size: .74rem; }

/* ── Адаптивность ───────────────────────────────────────── */
@media (max-width: 1180px) {
    .video-sidebar { width: 206px; }
    .video-main { margin-left: 226px; padding-left: 18px; padding-right: 18px; }
    .video-shell.sidebar-collapsed .video-sidebar { width: 72px; }
    .video-shell.sidebar-collapsed .video-main { margin-left: 92px; }
    .video-watch-side { width: 320px; }
}
@media (max-width: 1000px) {
    .video-watch-layout { flex-direction: column; }
    .video-watch-side { width: 100%; position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .video-form-layout { grid-template-columns: 1fr; }
    .video-form-side { position: static; }
}
@media (max-width: 900px) {
    .video-shell { padding-top: 112px; }
    .video-sidebar {
        position: sticky;
        top: 102px;
        left: auto;
        bottom: auto;
        width: auto;
        max-height: none;
        margin: 0 8px 8px;
        padding: 6px;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 12px;
    }
    .video-side-brand, .video-side-label, .video-side-foot, .video-side-categories { display: none; }
    .video-side-nav { flex-direction: row; gap: 2px; }
    .video-side-nav a { min-height: 34px; padding: 7px 10px; white-space: nowrap; font-size: .76rem; }
    .video-shell.sidebar-collapsed .video-sidebar { width: auto; padding: 6px; }
    .video-shell.sidebar-collapsed .video-side-brand-text,
    .video-shell.sidebar-collapsed .video-side-text { display: inline; }
    .video-shell.sidebar-collapsed .video-side-nav a { padding: 7px 10px; }
    .video-main, .video-shell.sidebar-collapsed .video-main { margin-left: 0; padding: 12px 14px 60px; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px 12px; }
    .video-studio-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .video-fab { right: 16px; bottom: 16px; }
}
@media (max-width: 640px) {
    .video-page-head { align-items: flex-start; }
    .video-hero-actions { width: 100%; }
    .video-toolbar input, .video-toolbar select { flex: 1 1 100%; }
    .video-grid { grid-template-columns: 1fr; }
    .video-manage-thumb { width: 100%; min-width: 0; }
    .video-manage-row { align-items: flex-start; }
    .vp-big-play { width: 58px; height: 58px; }
    .vp-big-play .svg-icon { width: 26px; height: 26px; }
    .vp-time { font-size: .7rem; }
    .wtitle-row { flex-direction: column; }
    .video-action-bar { width: 100%; }
    .video-comment-form { flex-direction: column; }
}
@media (hover: none) {
    .vp-overlay { opacity: 1; }
    .vp-card.is-idle { cursor: auto; }
    .vp-card.is-idle .vp-overlay { opacity: 1; }
}

/* ── Блоки на главной и страницах проектов ──────────────── */
.home-videos-section, .video-related-block { margin: 34px 0; }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.home-section-head h2 { margin: 0 0 4px; color: #f3f7ff; font-size: 1.35rem; }
.home-section-head p { margin: 0; color: #7e899b; font-size: .85rem; }
.home-section-head > a { color: #7dd3fc; font-size: .84rem; font-weight: 700; }
.home-video-grid { grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); }

/* Таймкоды под видео */
.video-chapter-list { display: flex; flex-direction: column; gap: 5px; }
.video-chapter {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 7px;
    background: var(--v-card2);
    border: 1px solid var(--v-border);
    color: var(--v-txt);
}
.video-chapter:hover { border-color: rgba(79, 195, 247, .35); background: var(--v-card3); }
.video-chapter span {
    flex: 0 0 auto;
    min-width: 46px;
    color: var(--v-accent);
    font-size: .74rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.video-chapter strong { font-size: .8rem; font-weight: 650; color: #dbe4ef; }

/* Прогресс загрузки видео */
.video-upload-progress {
    padding: 11px 13px;
    border-radius: 10px;
    background: rgba(79, 195, 247, .06);
    border: 1px solid rgba(79, 195, 247, .22);
}
.video-upload-progress[hidden] { display: none; }
.video-upload-progress-head { display: flex; justify-content: space-between; align-items: center; color: #cfe9f8; font-size: .79rem; font-weight: 700; margin-bottom: 7px; }
.video-upload-progress-head b { color: var(--v-accent); font-size: .82rem; }
.video-upload-progress-bar { height: 8px; border-radius: 5px; overflow: hidden; background: #0d1117; }
.video-upload-progress-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, var(--v-accent), #7c6cf7); transition: width .18s ease; }
.video-upload-progress small { display: block; color: #6f7a8c; font-size: .68rem; margin-top: 6px; }
