.video-page {
    --video-gold: #e0c297;
    --video-bg: #0a1215;
    --video-panel: #0d171b;
    --video-line: #1b282d;
    --video-muted: #9caab0;
    min-height: 70vh;
    background: var(--video-bg);
    color: #fff;
}

.video-page *,
.video-page *:hover {
    letter-spacing: inherit;
}

.video-page h1,
.video-page h2,
.video-page h3,
.video-page h4,
.video-page h5,
.video-page h6,
.video-page p,
.video-page li,
.video-page blockquote,
.video-page figcaption,
.video-page label,
.video-page a {
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
}

.video-shell {
    width: min(1280px, 92%);
    margin-inline: auto;
}

.video-hero {
    min-height: 230px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--video-line);
    background:
        linear-gradient(90deg, rgba(10, 18, 21, 0.98), rgba(10, 18, 21, 0.8)),
        radial-gradient(circle at 72% 45%, rgba(224, 194, 151, 0.13), transparent 34%),
        linear-gradient(135deg, #0b1519, #111e22);
}

.video-hero::before {
    content: "";
    width: min(300px, 31vw);
    aspect-ratio: 16 / 10;
    position: absolute;
    inset-inline-end: 7%;
    top: 50%;
    border: 1px solid rgba(224, 194, 151, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(rgba(6, 13, 16, 0.22), rgba(6, 13, 16, 0.4)),
        url("../media/video-cover.webp") center / cover;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    opacity: 0.6;
    transform: translateY(-50%) rotate(-2deg);
}

.video-hero::after {
    content: "";
    width: 46px;
    height: 46px;
    position: absolute;
    inset-inline-end: calc(7% + min(130px, 13vw));
    top: 50%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    transform: translate(50%, -50%);
}

.video-page[dir="rtl"] .video-hero::after {
    transform: translate(-50%, -50%);
}

.video-hero .video-shell {
    position: relative;
    z-index: 2;
}

.video-hero .video-shell::after {
    content: "";
    position: absolute;
    inset-inline-end: calc(7% + min(145px, 14.5vw));
    top: 50%;
    z-index: 3;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-inline-start: 9px solid #172126;
    transform: translateY(-50%);
}

.video-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--video-gold);
    font-size: 0.72rem;
    font-weight: 800;
}

.video-page[dir="ltr"] .video-eyebrow {
    letter-spacing: 0.17em;
}

.video-hero h1 {
    display: block;
    max-width: 650px;
    margin: 0;
    color: #fff;
    font-family: "Barlow", sans-serif;
    font-size: clamp(32px, 4.2vw, 50px);
    font-weight: 800;
    line-height: 1.08;
}

.video-page[dir="rtl"] .video-hero h1 {
    font-family: "Peyda", sans-serif;
    line-height: 1.45;
}

.video-hero p {
    display: block;
    max-width: 560px;
    margin: 10px 0 0;
    color: var(--video-muted);
    font-size: 14px;
    line-height: 1.75;
}

.video-library {
    padding: 34px 0 90px;
}

.video-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--video-line);
}

.video-section-head span {
    display: block;
    margin-bottom: 6px;
    color: var(--video-gold);
    font-size: 0.68rem;
    font-weight: 800;
}

.video-page[dir="ltr"] .video-section-head span {
    letter-spacing: 0.14em;
}

.video-section-head h2 {
    display: block;
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 2.5vw, 34px);
    font-weight: 800;
}

.video-section-head small {
    padding: 7px 11px;
    border: 1px solid rgba(224, 194, 151, 0.16);
    border-radius: 999px;
    color: var(--video-muted);
    font-size: 0.7rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.video-card {
    overflow: hidden;
    border: 1px solid var(--video-line);
    border-radius: 17px;
    background: var(--video-panel);
    box-shadow: 0 15px 34px rgba(0, 0, 0, 0.25);
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 194, 151, 0.28);
}

.video-card__cover {
    aspect-ratio: 16 / 10;
    display: block;
    position: relative;
    overflow: hidden;
    background: #111d21;
}

.video-card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 9, 12, 0.55), transparent 54%);
}

.video-card__cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-card:hover .video-card__cover img {
    transform: scale(1.035);
}

.video-card__play {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    transform: translate(-50%, -50%);
}

.video-card__play::after,
.video-empty__play::after {
    content: "";
    margin-inline-start: 3px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-inline-start: 10px solid #172126;
}

.video-card__language {
    position: absolute;
    inset-inline-start: 12px;
    top: 12px;
    z-index: 2;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 7px;
    background: rgba(6, 13, 16, 0.72);
    color: #fff;
    font-family: "Barlow", sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
}

.video-card__body {
    padding: 20px;
}

.video-card__type {
    display: block;
    margin-bottom: 8px;
    color: var(--video-gold);
    font-size: 0.64rem;
    font-weight: 800;
}

.video-page[dir="ltr"] .video-card__type {
    letter-spacing: 0.12em;
}

.video-card h3 {
    display: block;
    margin: 0;
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.55;
}

.video-card h3 a {
    color: #fff;
}

.video-card p {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    margin: 9px 0 0;
    color: #8f9ea5;
    font-size: 0.79rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.video-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: #d7b983;
    font-size: 0.75rem;
    font-weight: 800;
}

.video-page[dir="ltr"] .video-card__link span {
    transform: rotate(180deg);
}

.video-empty {
    grid-column: 1 / -1;
    padding: 65px 24px;
    border: 1px dashed rgba(224, 194, 151, 0.18);
    border-radius: 17px;
    text-align: center;
}

.video-empty__play {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    border-radius: 50%;
    background: rgba(224, 194, 151, 0.12);
}

.video-empty__play::after {
    border-inline-start-color: var(--video-gold);
}

.video-empty h2 {
    display: block;
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.25rem;
}

.video-empty p {
    display: block;
    margin: 0;
    color: var(--video-muted);
    font-size: 0.82rem;
}

.video-detail {
    min-height: calc(100vh - 55px);
    padding: 88px 0 76px;
    background:
        radial-gradient(circle at 20% 12%, rgba(224, 194, 151, 0.09), transparent 30%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.012), transparent 46%),
        var(--video-bg);
}

.video-detail__shell {
    width: min(1280px, 92%);
    margin-inline: auto;
}

.video-detail__layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: 24px;
    align-items: stretch;
}

.video-detail__media {
    min-width: 0;
    display: flex;
    align-items: flex-start;
}

.video-player-wrap {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(224, 194, 151, 0.17);
    border-radius: 18px;
    background: #050a0c;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.46);
}

.video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #050a0c;
    object-fit: contain;
}

.video-detail__sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 25px 23px 22px;
    border: 1px solid rgba(224, 194, 151, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(150deg, rgba(224, 194, 151, 0.075), transparent 38%),
        rgba(13, 23, 27, 0.94);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.video-detail__sidebar::before {
    content: "";
    width: 72px;
    height: 2px;
    position: absolute;
    inset-inline-start: 23px;
    top: 0;
    background: linear-gradient(90deg, var(--video-gold), transparent);
}

.video-page[dir="rtl"] .video-detail__sidebar::before {
    background: linear-gradient(270deg, var(--video-gold), transparent);
}

.video-detail__sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.video-detail__sidebar-head .video-eyebrow {
    margin: 0;
    line-height: 1.5;
}

.video-detail__language {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(224, 194, 151, 0.2);
    border-radius: 7px;
    color: #d8c09d;
    font-family: "Barlow", sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
}

.video-detail__sidebar h1 {
    display: block;
    margin: 0;
    color: #fff;
    font-family: "Barlow", sans-serif;
    font-size: clamp(21px, 2vw, 29px);
    font-weight: 800;
    line-height: 1.3;
}

.video-page[dir="rtl"] .video-detail__sidebar h1 {
    font-family: "Peyda", sans-serif;
    line-height: 1.6;
}

.video-detail__divider {
    width: 100%;
    height: 1px;
    display: block;
    margin: 18px 0 16px;
    background: linear-gradient(90deg, rgba(224, 194, 151, 0.22), transparent);
}

.video-page[dir="rtl"] .video-detail__divider {
    background: linear-gradient(270deg, rgba(224, 194, 151, 0.22), transparent);
}

.video-description {
    max-height: 250px;
    overflow-y: auto;
    padding-inline-end: 5px;
    color: #a0adb3;
    font-size: 0.84rem;
    line-height: 1.95;
    white-space: pre-line;
    scrollbar-color: rgba(224, 194, 151, 0.34) transparent;
    scrollbar-width: thin;
}

.video-description--empty {
    color: #738187;
}

.video-detail__sidebar-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    margin-top: auto;
    padding-top: 22px;
}

.video-detail__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #839198;
    font-size: 0.7rem;
}

.video-detail__status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #65bc8a;
    box-shadow: 0 0 0 4px rgba(101, 188, 138, 0.1);
}

.video-back {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 13px;
    border: 1px solid rgba(224, 194, 151, 0.24);
    border-radius: 10px;
    background: rgba(224, 194, 151, 0.07);
    color: #e0c297;
    font-size: 0.75rem;
    font-weight: 750;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.video-back:hover {
    border-color: rgba(224, 194, 151, 0.45);
    background: rgba(224, 194, 151, 0.12);
}

.video-page[dir="ltr"] .video-back span {
    order: 2;
    transform: rotate(180deg);
}

.video-page h1:hover,
.video-page h2:hover,
.video-page h3:hover,
.video-page p:hover,
.video-page a:hover {
    transform: none;
    letter-spacing: inherit;
    text-shadow: none;
    filter: none;
}

@media (max-width: 980px) {
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-detail__layout {
        grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
        gap: 18px;
    }

    .video-hero::before,
    .video-hero::after,
    .video-hero .video-shell::after {
        opacity: 0.32;
    }
}

@media (max-width: 820px) {
    .video-detail__layout {
        grid-template-columns: 1fr;
    }

    .video-detail__sidebar {
        min-height: 0;
    }

    .video-description {
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 680px) {
    .video-hero {
        min-height: 220px;
        text-align: center;
    }

    .video-hero::before,
    .video-hero::after,
    .video-hero .video-shell::after {
        display: none;
    }

    .video-hero p {
        margin-inline: auto;
    }

    .video-library {
        padding: 28px 0 68px;
    }

    .video-section-head {
        align-items: flex-end;
        flex-direction: row;
        gap: 10px;
        margin-bottom: 18px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-detail {
        min-height: 0;
        padding: 75px 0 58px;
    }

    .video-detail__shell {
        width: min(100% - 28px, 1280px);
    }

    .video-player-wrap {
        border-radius: 12px;
    }

    .video-detail__sidebar {
        padding: 21px 18px 18px;
        border-radius: 13px;
    }

    .video-detail__sidebar::before {
        inset-inline-start: 18px;
    }

    .video-detail__sidebar h1 {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-card,
    .video-card__cover img {
        transition: none;
    }
}
