/**
 * Video UI — bám theo Anlie (Videos.tsx / VideoDetail.tsx)
 */

/* —— Trang danh sách —— */
.anlie-video-page {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding-inline: clamp(1rem, 2.5vw, 2rem);
    padding-top: max(
        calc(2.3rem + env(safe-area-inset-top, 0px)),
        calc(var(--lynk-content-below-header) - 4.5rem)
    );
    padding-bottom: 3rem;
    overflow-x: clip;
}

/* Hero tiêu đề lớn — dùng chung Video, Âm nhạc, Thư viện ảnh */
.anlie-video-hero,
.lynk-hero-section {
    position: relative;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.anlie-video-hero-glow,
.lynk-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16rem;
    height: 16rem;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 9999px;
    filter: blur(100px);
    pointer-events: none;
}

.anlie-video-hero-title,
.lynk-hero-title {
    position: relative;
    z-index: 1;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem;
    line-height: 1.1;
    color: #f7e7ce;
    background: linear-gradient(to bottom, #f7e7ce 0%, rgba(247, 231, 206, 0.62) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.anlie-video-hero-title span,
.lynk-hero-title span {
    background: linear-gradient(90deg, #34d399 0%, #99f6e4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.anlie-video-hero-sub,
.lynk-hero-sub {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(247, 231, 206, 0.82);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
}

.anlie-video-playlists {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.anlie-video-pl-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0.5rem;
    margin-bottom: 1.5rem;
}

.anlie-video-pl-head h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: var(--lynk-color-text);
}

.anlie-video-pl-head p {
    margin: 0;
    color: var(--lynk-color-text-muted);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    font-weight: 300;
}

.anlie-video-pl-more {
    display: none;
    align-items: center;
    gap: 0.25rem;
    color: #34d399;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.anlie-video-pl-more:hover {
    color: #6ee7b7;
}

@media (min-width: 768px) {
    .anlie-video-pl-more {
        display: inline-flex;
    }
}

.anlie-video-pl-more svg {
    flex-shrink: 0;
}

.anlie-video-pl-scroll {
    position: relative;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

@media (min-width: 768px) {
    .anlie-video-pl-scroll {
        gap: 1.5rem;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
}

.anlie-video-pl-scroll::-webkit-scrollbar {
    height: 6px;
}

.anlie-video-pl-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.anlie-video-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 280px;
    text-decoration: none;
    color: inherit;
    display: block;
}

@media (min-width: 768px) {
    .anlie-video-card {
        width: 360px;
    }
}

@media (min-width: 1024px) {
    .anlie-video-card {
        width: 420px;
    }
}

.anlie-video-card-inner {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: border-color 0.5s;
}

.anlie-video-card:hover .anlie-video-card-inner {
    border-color: rgba(16, 185, 129, 0.3);
}

.anlie-video-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.anlie-video-card:hover .anlie-video-card-inner img {
    transform: scale(1.05);
}

.anlie-video-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.5s;
}

.anlie-video-card:hover .anlie-video-card-gradient {
    opacity: 0.6;
}

.anlie-video-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.anlie-video-card:hover .anlie-video-card-play {
    opacity: 1;
}

.anlie-video-card-play span {
    display: flex;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.5);
    align-items: center;
    justify-content: center;
    transform: scale(0.75);
    transition: transform 0.5s;
}

.anlie-video-card:hover .anlie-video-card-play span {
    transform: scale(1);
}

.anlie-video-card-play svg {
    width: 24px;
    height: 24px;
    color: #6ee7b7;
    margin-left: 4px;
}

.anlie-video-card-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: var(--lynk-color-text);
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
}

.anlie-video-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    transform: translateY(0.5rem);
    transition: transform 0.5s;
}

.anlie-video-card:hover .anlie-video-card-info {
    transform: translateY(0);
}

.anlie-video-card-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #f7e7ce;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.anlie-video-card:hover .anlie-video-card-info h3 {
    color: #f7e7ce;
}

.anlie-video-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--lynk-color-text-muted);
}

.anlie-video-card-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.3);
}

.anlie-video-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--lynk-color-text-muted);
}

/* —— Mobile tabs cuộn ngang —— */
.anlie-video-mobile-tabs-wrap {
    position: relative;
    margin-bottom: 1.25rem;
}

.anlie-video-mobile-tabs-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4rem;
    height: 100%;
    background: linear-gradient(to left, var(--lynk-bg, #060f0c) 10%, transparent 100%);
    pointer-events: none;
}

@media (min-width: 900px) {
    .anlie-video-mobile-tabs-wrap {
        display: none;
    }
}

.anlie-video-mobile-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    padding-right: 3rem;
}

.anlie-video-mobile-tabs::-webkit-scrollbar {
    display: none;
}

.anlie-video-mobile-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    text-decoration: none;
    padding: 0.55rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lynk-color-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.anlie-video-mobile-tab.is-active {
    color: #052e23;
    background: #34d399;
    border-color: transparent;
    font-weight: 600;
}

/* —— Layout sidebar + grid —— */
.anlie-video-main__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    color: var(--lynk-color-text);
    letter-spacing: -0.02em;
    text-align: center;
}

.anlie-video-layout {
    display: block;
}

@media (min-width: 900px) {
    .anlie-video-layout {
        display: grid;
        grid-template-columns: 240px 1fr;
        gap: 2.5rem;
        align-items: stretch;
    }
}

@media (min-width: 1200px) {
    .anlie-video-layout {
        grid-template-columns: 280px 1fr;
    }
}

/* Sidebar nav — ẩn trên mobile, hiện từ 900px */
.anlie-video-sidebar-nav {
    display: none;
}

@media (min-width: 900px) {
    .anlie-video-sidebar-nav {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.35rem;
        align-self: stretch;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
        padding-right: 0.25rem;
    }
    .anlie-video-sidebar-nav::-webkit-scrollbar { width: 4px; }
    .anlie-video-sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
    }
}

.anlie-video-sidebar-header {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #052e23;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    margin-bottom: 0.35rem;
    flex-shrink: 0;
}

.anlie-video-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0.65rem;
    text-decoration: none;
    color: var(--lynk-color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 900px) {
    .anlie-video-sidebar-item {
        white-space: normal;
        padding: 0.7rem 1rem;
    }
}

.anlie-video-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--lynk-color-text);
    border-color: rgba(255, 255, 255, 0.1);
}

.anlie-video-sidebar-item.is-active {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
    font-weight: 600;
}

.anlie-video-sidebar-item__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 900px) {
    .anlie-video-sidebar-item__name {
        white-space: normal;
        text-overflow: unset;
        overflow: visible;
    }
}

.anlie-video-sidebar-item__count {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    padding: 0.1rem 0.45rem;
    line-height: 1.6;
}

.anlie-video-sidebar-item.is-active .anlie-video-sidebar-item__count {
    color: rgba(52, 211, 153, 0.7);
    background: rgba(52, 211, 153, 0.1);
}

/* Main content area */
.anlie-video-main {
    min-width: 0;
}

.anlie-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 900px) {
    .anlie-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1200px) {
    .anlie-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.anlie-video-grid-card {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.anlie-video-grid-card:hover {
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-2px);
}

.anlie-video-grid-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.anlie-video-grid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.anlie-video-grid-card:hover .anlie-video-grid-thumb img {
    transform: scale(1.04);
}

.anlie-video-grid-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15));
}

.anlie-video-grid-card:hover .anlie-video-grid-play {
    opacity: 1;
}

.anlie-video-grid-play span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.55);
}

.anlie-video-grid-play svg {
    width: 18px;
    height: 18px;
    color: #6ee7b7;
    margin-left: 2px;
}

.anlie-video-grid-body {
    padding: 0.85rem 0.9rem 1rem;
}

.anlie-video-grid-body h3 {
    margin: 0 0 0.4rem;
    color: #f7e7ce;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* —— Trang chi tiết —— */
.anlie-video-detail {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding-inline: clamp(1rem, 2.5vw, 2rem);
    padding-top: max(
        calc(var(--lynk-content-below-header) + 0.65rem),
        calc(env(safe-area-inset-top, 0px) + 3.5rem)
    );
    padding-bottom: 5rem;
    overflow-x: clip;
}

.anlie-video-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Desktop: cột trái = player + meta + Khám phá thêm (trong .anlie-video-detail-main), cột phải = sidebar — giữ layout như ban đầu. */

@media (min-width: 1024px) {
    .anlie-video-detail-grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
        align-items: start;
    }

    /* Sticky chỉ hợp lý khi sidebar là cột phải; trên mobile gây “dính” lệch với flex/order */
    .anlie-video-sidebar {
        position: sticky;
        top: 6rem;
    }
}

.anlie-video-detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}

.anlie-video-detail-top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Mobile: nội dung chính → Cùng Playlist → Khám phá thêm (chỉ đổi thứ tự hiển thị, không đổi DOM desktop) */

@media (max-width: 1023px) {
    .anlie-video-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .anlie-video-detail-main {
        display: contents;
    }

    .anlie-video-detail-top {
        order: 1;
    }

    .anlie-video-sidebar {
        order: 2;
    }

    .anlie-video-explore-detail--single {
        order: 3;
        width: 100%;
    }
}

.anlie-video-player-wrap {
    position: relative;
    isolation: isolate;
    aspect-ratio: 16 / 9;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #000;
    box-shadow:
        0 0 60px rgba(16, 185, 129, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 24px 64px rgba(0, 0, 0, 0.35);
}

.anlie-video-player-wrap .v-video-embed,
.anlie-video-player-wrap iframe,
.anlie-video-player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.anlie-video-player-wrap .v-video-embed {
    height: 100%;
}

.anlie-video-player-wrap .v-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.anlie-video-detail-head {
    margin: 0;
}

.anlie-video-detail-head h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--lynk-color-text);
}

.anlie-video-detail-artist {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--lynk-neon, #a78bfa);
    letter-spacing: 0.01em;
}
.anlie-video-detail-artist__icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.85;
}

.anlie-video-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--lynk-color-text-muted);
    padding-bottom: 1.5rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.anlie-video-detail-meta .dot {
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
}

.anlie-video-detail-views {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
}

.anlie-video-detail-pl-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    padding: 0.4rem 0.95rem 0.4rem 0.55rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.35);
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.12);
}

.anlie-video-detail-pl-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(52, 211, 153, 0.85);
}

.anlie-video-detail-pl {
    font-size: 0.9rem;
    font-weight: 600;
    color: #34d399;
    line-height: 1.2;
}

.anlie-video-glass {
    backdrop-filter: blur(32px) saturate(1.25);
    -webkit-backdrop-filter: blur(32px) saturate(1.25);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.04) 45%,
        rgba(255, 255, 255, 0.06) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.5rem;
    padding: 1.5rem;
    color: var(--lynk-color-text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    font-weight: 300;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .anlie-video-glass {
        font-size: 1rem;
    }
}

.anlie-video-glass p:last-child {
    margin-bottom: 0;
}

/* Khám phá thêm — mỗi playlist trong card + strip 3 ảnh ghép (mask mờ mép) */
.anlie-video-explore-detail {
    margin-top: 0.25rem;
}

.anlie-video-explore-detail__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    font-weight: 700;
    color: var(--lynk-color-text);
}

.anlie-video-explore-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.anlie-video-explore-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.15rem 1.15rem;
    border-radius: 1.25rem;
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(22px) saturate(1.2);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.11) 0%,
        rgba(255, 255, 255, 0.04) 48%,
        rgba(16, 185, 129, 0.06) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.09);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.anlie-video-explore-card:hover {
    transform: translateY(-2px);
    border-color: rgba(52, 211, 153, 0.32);
    box-shadow:
        0 16px 52px rgba(16, 185, 129, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.anlie-video-explore-card__name {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--lynk-color-text);
    letter-spacing: -0.02em;
}

/* 3 ảnh ghép ngang, chồng nhẹ + mask gradient để mép mờ vào nhau */
.anlie-video-explore-card__strip {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.45);
}

.anlie-video-explore-card__strip .anlie-video-explore-card__cell {
    position: absolute;
    top: 0;
    height: 100%;
    width: 46%;
    overflow: hidden;
}

.anlie-video-explore-card__strip .anlie-video-explore-card__cell:nth-child(1) {
    left: 0;
    z-index: 3;
}

.anlie-video-explore-card__strip .anlie-video-explore-card__cell:nth-child(2) {
    left: 27%;
    z-index: 2;
}

.anlie-video-explore-card__strip .anlie-video-explore-card__cell:nth-child(3) {
    left: 54%;
    z-index: 1;
    width: 46%;
}

.anlie-video-explore-card__strip .anlie-video-explore-card__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition: transform 0.4s ease;
}

/* Mờ dần ở mép tiếp giáp (mask tương thích WebKit + chuẩn) */
.anlie-video-explore-card__strip .anlie-video-explore-card__cell:nth-child(1) img {
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.35) 82%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.35) 82%, transparent 100%);
}

.anlie-video-explore-card__strip .anlie-video-explore-card__cell:nth-child(2) img {
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.45) 12%,
        #000 28%,
        #000 72%,
        rgba(0, 0, 0, 0.45) 88%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.45) 12%,
        #000 28%,
        #000 72%,
        rgba(0, 0, 0, 0.45) 88%,
        transparent 100%
    );
}

.anlie-video-explore-card__strip .anlie-video-explore-card__cell:nth-child(3) img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.4) 18%, #000 42%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.4) 18%, #000 42%, #000 100%);
}

.anlie-video-explore-card:hover .anlie-video-explore-card__strip .anlie-video-explore-card__cell img {
    transform: scale(1.04);
}

.anlie-video-explore-card__strip .anlie-video-explore-card__cell--empty {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

/* Sidebar (sticky chỉ từ 1024px — xem @media min-width ở trên) */
.anlie-video-sidebar {
    position: static;
}

.anlie-video-sidebar h3 {
    margin: 0 0 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lynk-color-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.anlie-video-sidebar h3::before {
    content: "";
    width: 4px;
    height: 1.5rem;
    background: #10b981;
    border-radius: 9999px;
}

.anlie-video-related {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.anlie-video-related a {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.anlie-video-related a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.anlie-video-rel-thumb {
    position: relative;
    width: 10rem;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s;
}

.anlie-video-related a:hover .anlie-video-rel-thumb {
    border-color: rgba(16, 185, 129, 0.3);
}

.anlie-video-rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.anlie-video-related a:hover .anlie-video-rel-thumb img {
    transform: scale(1.05);
}

.anlie-video-rel-dur {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    background: rgba(0, 0, 0, 0.8);
    color: var(--lynk-color-text);
    font-size: 10px;
    font-family: ui-monospace, monospace;
}

.anlie-video-rel-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s;
}

.anlie-video-rel-play svg {
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    display: block;
}

.anlie-video-related a:hover .anlie-video-rel-play {
    opacity: 1;
}

.anlie-video-rel-info h4 {
    margin: 0 0 0.25rem;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--lynk-color-text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anlie-video-related a:hover .anlie-video-rel-info h4 {
    color: #6ee7b7;
}

.anlie-video-rel-artist {
    font-size: 0.75rem;
    color: var(--lynk-neon, #a78bfa);
    opacity: 0.75;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anlie-video-notfound {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.anlie-video-notfound h2 {
    margin: 0 0 1rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--lynk-color-text);
}

.anlie-video-notfound a {
    color: #34d399;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.anlie-video-notfound a:hover {
    color: #6ee7b7;
}

.anlie-video-single-empty {
    padding: 1rem;
    text-align: center;
    color: var(--lynk-color-text-muted);
}
