/* ═══════════════════════════════════════════
   Videos — cinema studio
   ═══════════════════════════════════════════ */

:root {
    --vp-surface: rgba(14, 14, 20, 0.72);
    --vp-surface-2: rgba(20, 20, 28, 0.82);
    --vp-line: rgba(255, 255, 255, 0.08);
    --vp-glow: rgba(139, 92, 246, 0.28);
}

body.videos-page #root > div:first-child {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

body.videos-page .rcx-glass-home-back {
    display: inline-flex;
}

.rcx-focus-shell .vp-shell {
    padding-top: calc(52px + env(safe-area-inset-top, 0px));
}

.vp-shell--ready {
    animation: vp-enter 0.45s ease both;
}

@keyframes vp-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.vp-shell {
    min-height: 100vh;
    padding: 0 0 48px;
    color: var(--rcx-text, #f8fafc);
    background:
        radial-gradient(ellipse 90% 55% at 8% -10%, rgba(139, 92, 246, 0.2), transparent 52%),
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(34, 211, 238, 0.12), transparent 48%),
        transparent;
}

.vp-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 22px 48px;
}

/* Boot */
.vp-boot {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.vp-boot__glow {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.vp-boot__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 28px;
}

.vp-boot__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.7rem;
    color: #ddd6fe;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(34, 211, 238, 0.18));
    border: 1px solid rgba(167, 139, 250, 0.4);
    box-shadow: 0 16px 40px var(--vp-glow);
    animation: vp-pulse 2s ease-in-out infinite;
}

@keyframes vp-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.vp-boot__brand {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: linear-gradient(105deg, #fafafa 0%, #c4b5fd 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.vp-boot__text {
    margin: 8px 0 20px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rcx-muted, #94a3b8);
}

.vp-boot__bar {
    width: 220px;
    height: 3px;
    margin: 0 auto;
    border-radius: 99px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.vp-boot__bar-fill {
    display: block;
    height: 100%;
    width: 42%;
    border-radius: 99px;
    background: linear-gradient(90deg, #8b5cf6, #22d3ee);
    animation: vp-bar 1.2s ease-in-out infinite;
}

@keyframes vp-bar {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}

/* Hero */
.vp-hero-head {
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    position: relative;
}

.vp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.28);
    margin-bottom: 10px;
}

.vp-hero-head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.vp-hero-head p {
    margin: 0;
    max-width: 540px;
    color: var(--rcx-muted, #94a3b8);
    font-size: 0.95rem;
    line-height: 1.55;
}

.vp-hero-head__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--rcx-muted, #94a3b8);
}

.vp-hero-head__stats strong {
    color: var(--rcx-text, #f8fafc);
    font-weight: 800;
}

.vp-hero-head__user {
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--vp-line);
    background: rgba(255, 255, 255, 0.04);
}

.vp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--vp-line);
    background: rgba(255, 255, 255, 0.05);
    color: var(--rcx-text, #f8fafc);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.vp-btn:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
}

.vp-btn--primary {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    border-color: transparent;
    box-shadow: 0 10px 28px rgba(139, 92, 246, 0.32);
}

.vp-btn--primary:hover {
    box-shadow: 0 14px 32px rgba(139, 92, 246, 0.42);
}

/* Toolbar */
.vp-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    padding: 10px;
    border-radius: 18px;
    background: var(--vp-surface);
    border: 1px solid var(--vp-line);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.vp-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
}

.vp-tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    color: var(--rcx-muted, #94a3b8);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.vp-tab:hover { color: #fff; }

.vp-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(6, 182, 212, 0.18));
    color: #fff;
}

.vp-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.vp-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rcx-dim, #64748b);
}

.vp-search {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border-radius: 12px;
    border: 1px solid var(--vp-line);
    background: rgba(0, 0, 0, 0.28);
    color: inherit;
    font-size: 0.9rem;
    outline: none;
}

.vp-search:focus {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

.vp-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--vp-line);
    background: transparent;
    color: var(--rcx-muted, #94a3b8);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.vp-chip--on {
    color: #a5f3fc;
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.1);
}

/* Gate */
.vp-gate {
    text-align: center;
    padding: 48px 28px;
    border-radius: 22px;
    border: 1px solid var(--vp-line);
    background:
        radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.18), transparent 55%),
        var(--vp-surface);
}

.vp-gate__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(139, 92, 246, 0.16);
    color: #c4b5fd;
    font-size: 1.4rem;
}

.vp-gate h2 { margin: 0 0 8px; font-size: 1.4rem; }
.vp-gate p { margin: 0 0 18px; color: var(--rcx-muted, #94a3b8); }
.vp-gate__actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* Spotlight */
.vp-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0;
    margin-bottom: 28px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--vp-line);
    background: var(--vp-surface-2);
    min-height: 240px;
}

.vp-spotlight__media {
    position: relative;
    min-height: 240px;
    background: #000;
}

.vp-spotlight__media img,
.vp-spotlight__fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vp-spotlight__fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #312e81, #0e7490);
}

.vp-spotlight__copy {
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vp-spotlight__copy h2 {
    margin: 0 0 8px;
    font-size: clamp(1.2rem, 2.4vw, 1.7rem);
    line-height: 1.2;
}

.vp-spotlight__copy p {
    margin: 0 0 16px;
    color: var(--rcx-muted, #94a3b8);
}

.vp-spotlight__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.vp-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.vp-section__head h2 { margin: 0; font-size: 1.05rem; }
.vp-section__count { font-size: 0.78rem; color: var(--rcx-muted, #94a3b8); }

.vp-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.vp-course-card {
    border-radius: 18px;
    overflow: hidden;
    background: var(--vp-surface);
    border: 1px solid var(--vp-line);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.vp-course-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.42);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(139, 92, 246, 0.14);
}

.vp-course-card__cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #312e81, #0e7490);
    overflow: hidden;
}

.vp-course-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.vp-course-card:hover .vp-course-card__cover img { transform: scale(1.06); }

.vp-course-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: rgba(255, 255, 255, 0.35);
}

.vp-course-card__badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(10, 10, 15, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.vp-course-card__body { padding: 16px 18px 18px; }
.vp-course-card__body h3 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; }

.vp-course-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 12px;
    font-size: 0.78rem;
    color: var(--rcx-muted, #94a3b8);
}

.vp-course-card__stats i { color: var(--rcx-violet, #8b5cf6); }

.vp-course-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #c4b5fd;
}

.vp-card {
    border-radius: 14px;
    overflow: hidden;
    background: var(--vp-surface);
    border: 1px solid var(--vp-line);
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.vp-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.vp-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

.vp-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.vp-card:hover .vp-card__thumb img { transform: scale(1.05); }

.vp-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, #312e81, #0e7490);
}

.vp-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.25s;
}

.vp-card:hover .vp-card__play { opacity: 1; }

.vp-card__play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding-left: 3px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.45);
}

.vp-card__duration,
.vp-card__order,
.vp-card__lock {
    position: absolute;
    border-radius: 8px;
    font-weight: 700;
}

.vp-card__duration {
    bottom: 8px;
    right: 8px;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.75);
    font-size: 0.72rem;
}

.vp-card__order {
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.92);
    font-size: 0.78rem;
}

.vp-card__lock {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    background: rgba(239, 68, 68, 0.85);
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vp-card__body { padding: 12px 14px 14px; }
.vp-card__title {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vp-card__meta { font-size: 0.78rem; color: var(--rcx-muted, #94a3b8); }

.vp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.vp-empty {
    text-align: center;
    padding: 48px 24px;
    border-radius: 16px;
    border: 1px dashed var(--rcx-border-strong, rgba(255, 255, 255, 0.12));
    color: var(--rcx-muted, #94a3b8);
}

.vp-empty i {
    font-size: 2.4rem;
    color: var(--rcx-violet, #8b5cf6);
    margin-bottom: 12px;
    display: block;
}

.vp-course-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 22px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.vp-course-banner__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.vp-course-banner__info { flex: 1; min-width: 180px; }
.vp-course-banner__info h2 { margin: 0 0 4px; font-size: 1.25rem; }
.vp-course-banner__info p { margin: 0; font-size: 0.88rem; color: var(--rcx-muted, #94a3b8); }

.vp-trimester-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.vp-trimester-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 16px;
    min-width: 128px;
    border-radius: 14px;
    border: 1px solid var(--vp-line);
    background: var(--vp-surface);
    color: var(--rcx-muted, #94a3b8);
    cursor: pointer;
    text-align: left;
}

.vp-trimester-tab:hover { color: #fff; border-color: rgba(139, 92, 246, 0.3); }

.vp-trimester-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(6, 182, 212, 0.12));
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
}

.vp-trimester-tab__n {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: rgba(139, 92, 246, 0.25);
    color: #e9d5ff;
    margin-bottom: 4px;
}

.vp-trimester-tab__count { font-size: 0.72rem; opacity: 0.85; }

.vp-curriculum { display: flex; flex-direction: column; gap: 14px; }

.vp-chapter-block {
    border-radius: 16px;
    border: 1px solid var(--vp-line);
    background: var(--vp-surface);
    overflow: hidden;
}

.vp-chapter-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.vp-chapter-block:not(.is-open) .vp-chapter-block__head { border-bottom: 0; }

.vp-chapter-block__title { display: flex; align-items: center; gap: 10px; }
.vp-chapter-block__title h3 { margin: 0; font-size: 1rem; }
.vp-chapter-block__count {
    font-size: 0.78rem;
    color: var(--rcx-muted, #94a3b8);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vp-section__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.vp-lessons { display: flex; flex-direction: column; }

.vp-lesson {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 18px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.vp-lesson:last-child { border-bottom: 0; }
.vp-lesson:hover { background: rgba(139, 92, 246, 0.08); }
.vp-lesson--active { background: rgba(139, 92, 246, 0.12); box-shadow: inset 3px 0 0 #8b5cf6; }
.vp-lesson--locked { opacity: 0.62; }

.vp-lesson__num {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 800;
    background: rgba(139, 92, 246, 0.18);
    color: #c4b5fd;
}

.vp-lesson__thumb {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    height: 54px;
    border-radius: 10px;
    overflow: hidden;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.vp-lesson__thumb img { width: 100%; height: 100%; object-fit: cover; }

.vp-lesson__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    color: #fff;
    font-size: 0.8rem;
}

.vp-lesson:hover .vp-lesson__play { opacity: 1; }

.vp-lesson__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vp-lesson__title { font-size: 0.92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-lesson__meta { font-size: 0.76rem; color: var(--rcx-muted, #94a3b8); }

.vp-lesson__action {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b5cf6;
}

.vp-lesson__queue {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
}

.vp-recorded-panel {
    padding: 22px;
    border-radius: 18px;
    background: var(--vp-surface);
    border: 1px solid var(--vp-line);
}

.vp-recorded-panel h2 { margin: 0 0 6px; font-size: 1.15rem; }
.vp-recorded-panel > p { margin: 0 0 18px; color: var(--rcx-muted, #94a3b8); }

/* Theater */
.vp-theater {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(3, 3, 8, 0.94);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    animation: vp-fade 0.22s ease;
}

@keyframes vp-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.vp-theater__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vp-theater__info h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(62vw, 560px);
}

.vp-theater__meta {
    font-size: 0.78rem;
    color: var(--rcx-muted, #94a3b8);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.vp-theater__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-theater__close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.vp-theater__body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 300px;
    min-height: 0;
    max-height: calc(100vh - 64px);
    overflow: hidden;
}

.vp-theater__player-col {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 16px 16px 16px 20px;
}

.vp-player {
    position: relative;
    flex: 1;
    min-height: 280px;
    max-height: calc(100vh - 250px);
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.vp-player__media { position: absolute; inset: 0; }

.vp-player__media video,
.vp-player__media iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
    background: #000;
}

.vp-player__center-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.22);
    border: none;
    cursor: pointer;
    z-index: 4;
    opacity: 0;
    color: #fff;
}

.vp-player:hover .vp-player__center-play,
.vp-player.vp-player--paused .vp-player__center-play { opacity: 1; }

.vp-player__center-play i {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.5);
    padding-left: 4px;
}

.vp-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding: 12px 14px 14px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
}

.vp-player:hover .vp-controls,
.vp-player.vp-player--show-controls .vp-controls {
    opacity: 1;
    transform: translateY(0);
}

.vp-progress {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    cursor: pointer;
    margin-bottom: 10px;
}

.vp-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #8b5cf6;
}

.vp-controls__row { display: flex; align-items: center; gap: 10px; }

.vp-controls__btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-controls__btn:hover { background: rgba(139, 92, 246, 0.35); }
.vp-controls__time { font-size: 0.78rem; font-variant-numeric: tabular-nums; min-width: 90px; }
.vp-controls__spacer { flex: 1; }

.vp-controls__volume {
    width: 72px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    cursor: pointer;
}

.vp-controls__volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
}

.vp-theater__desc {
    padding: 12px 0 0;
    font-size: 0.88rem;
    color: var(--rcx-muted, #94a3b8);
    line-height: 1.55;
}

.vp-theater__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.vp-theater__keys { margin: 8px 0 0; font-size: 0.72rem; color: var(--rcx-dim, #64748b); }

.vp-upnext {
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.vp-upnext__head {
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rcx-muted, #94a3b8);
}

.vp-upnext__list { flex: 1; overflow-y: auto; padding: 8px; }

.vp-upnext__item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
}

.vp-upnext__item:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.vp-upnext__thumb {
    position: relative;
    width: 96px;
    height: 54px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #111;
}

.vp-upnext__thumb img { width: 100%; height: 100%; object-fit: cover; }

.vp-upnext__index {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vp-upnext__title {
    font-size: 0.82rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 2px;
}

.vp-upnext__sub { font-size: 0.72rem; color: var(--rcx-muted, #94a3b8); }
.vp-upnext__empty { padding: 24px 16px; text-align: center; color: var(--rcx-muted, #94a3b8); font-size: 0.85rem; }

@media (max-width: 900px) {
    .vp-spotlight { grid-template-columns: 1fr; }
    .vp-spotlight__media { min-height: 180px; max-height: 220px; }
    .vp-theater__body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    .vp-upnext {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        max-height: 220px;
    }
    .vp-upnext__list {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 12px 12px;
    }
    .vp-upnext__item { flex: 0 0 200px; flex-direction: column; }
    .vp-upnext__thumb { width: 100%; height: 100px; }
}

@media (max-width: 640px) {
    .vp-main { padding: 16px 14px 28px; }
    .vp-toolbar { flex-direction: column; align-items: stretch; }
    .vp-course-banner { flex-direction: column; align-items: flex-start; }
    .vp-lesson__thumb { flex: 0 0 72px; width: 72px; height: 44px; }
    .vp-trimester-tab { min-width: calc(50% - 8px); flex: 1; }
    .vp-theater__player-col { padding: 10px; }
    .vp-theater__info h2 { max-width: calc(100vw - 80px); }
}

@media (prefers-reduced-motion: reduce) {
    .vp-shell--ready, .vp-theater, .vp-card, .vp-course-card, .vp-boot__icon, .vp-boot__bar-fill {
        animation: none !important;
        transition: none !important;
    }
}
