body.video-page {
    overflow: hidden;
}

.video-layout {
    width: 100%;
    height: 100vh;
    display: flex;
    background: rgba(6, 8, 14, 0.34);
    backdrop-filter: blur(1px);
    overflow: hidden;
}

.video-sidebar {
    width: 360px;
    min-width: 260px;
    max-width: 640px;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 12, 18, 0.58);
    display: flex;
    flex-direction: column;
}

.video-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-header-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-primary);
    white-space: nowrap;
}

.video-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.video-back-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.video-back-btn svg {
    width: 18px;
    height: 18px;
}

.video-header h2 {
    margin: 0;
}

.video-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-item {
    display: grid;
    grid-template-columns: 92px 1fr 34px;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(10, 12, 18, 0.72);
    color: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
}

.video-item:hover,
.video-item.active {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(18, 22, 30, 0.88);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.video-item-thumb {
    width: 92px;
    height: 64px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(12, 14, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-item-thumb::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 14px solid rgba(255, 255, 255, 0.92);
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    margin-left: 4px;
}

.video-item-info {
    min-width: 0;
}

.video-item-title {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-item-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-item-index {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.video-resizer {
    width: 12px;
    cursor: col-resize;
    position: relative;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.02);
}

.resizer-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 72px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.video-resizer.resizing .resizer-handle,
.video-resizer:hover .resizer-handle {
    background: rgba(255, 255, 255, 0.32);
}

.video-main {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: block;
    overflow: hidden;
}

.video-preview-section {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 10, 16, 0.26);
}

.video-player-shell {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.72);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

@media (max-width: 1024px) {
    .video-layout {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 70px);
    }

    .video-sidebar {
        width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .video-resizer {
        display: none;
    }

    .video-preview-section {
        padding: 18px;
        min-height: 52vh;
    }
}

@media (max-width: 640px) {
    .video-item {
        grid-template-columns: 76px 1fr;
    }

    .video-item-index {
        display: none;
    }

    .video-header-title {
        font-size: 0.9rem;
        letter-spacing: 0.18em;
    }
}
