.video-library-page {
    --collection-primary: #7d1238;
    --collection-gold: #c99a2e;
    --collection-line: #eaded8;
    --collection-muted: #6c5a52;
    background: linear-gradient(180deg, #fffaf5 0%, #fff 46%, #fff8f1 100%);
}

.video-hero {
    min-height: 240px;
    padding: 34px 0;
    background-size: cover;
    background-position: center right;
}

.video-hero .shop-hero-content h1 {
    font-size: clamp(32px, 4vw, 48px);
}

.video-section {
    background: transparent;
}

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

.video-list-head h2 {
    margin: 0 0 4px;
    color: #21151a;
    font-family: "Playfair Display", serif;
    font-size: 30px;
}

.video-list-head p {
    margin: 0;
    color: var(--collection-muted);
}

.video-cat-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: #fff3e1;
    color: #7d1238;
}

.video-search-btn {
    width: 100%;
    margin-top: 12px;
    border: 0;
    border-radius: 8px;
    background: #7d1238;
    color: #fff;
    padding: 12px 16px;
    font-weight: 800;
}

.video-subcategory-list {
    margin: 8px 0 16px 54px;
    padding: 0;
    list-style: none;
}

.video-subcategory-list li {
    margin-bottom: 6px;
}

.video-subcategory-list a {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #5c4c45;
    background: #fffaf5;
    font-size: 13px;
    text-decoration: none;
}

.video-subcategory-list a.active,
.video-subcategory-list a:hover {
    color: #fff;
    background: #7d1238;
}

.video-subcategory-list small {
    color: inherit;
    opacity: .78;
}

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

.video-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--collection-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(35, 21, 27, .08);
}

.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: linear-gradient(135deg, #26141c, #7d1238);
    cursor: pointer;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease, opacity .3s ease;
}

.video-thumb span {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(125, 18, 56, .94);
    color: #fff;
    box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
}

.video-thumb span i {
    transform: translateX(2px);
}

.video-thumb:hover img {
    transform: scale(1.04);
    opacity: .78;
}

.video-card-body {
    padding: 16px;
}

.video-card-body small {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff3e1;
    color: #7d1238;
    font-weight: 800;
    font-size: 11px;
}

.video-card-body strong {
    display: block;
    color: #201820;
    font-size: 15px;
    line-height: 1.35;
}

.video-card-body p {
    min-height: 42px;
    margin: 8px 0 14px;
    color: var(--collection-muted);
    font-size: 12px;
    line-height: 1.6;
}

.collection-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    border: 1px solid rgba(125, 18, 56, .34);
    padding: 0 18px;
    background: #fff;
    color: var(--collection-primary);
    font-weight: 800;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.video-card-body .collection-btn {
    width: 100%;
}

.collection-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(125, 18, 56, .12);
}

.video-empty {
    padding: 48px;
    border: 1px solid var(--collection-line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    color: var(--collection-muted);
}

.video-empty i {
    color: var(--collection-gold);
    font-size: 40px;
    margin-bottom: 12px;
}

.video-empty h3 {
    margin: 0 0 8px;
    color: #21151a;
}

.collection-modal-open {
    overflow: hidden;
}

.collection-modal-open .back-to-top,
.collection-modal-open .consult-fab {
    display: none !important;
}

.collection-media-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.collection-media-modal.show {
    display: flex;
}

.collection-media-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 9, 13, .78);
    backdrop-filter: blur(4px);
}

.collection-media-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .32);
}

.collection-media-head {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px 12px 20px;
    border-bottom: 1px solid var(--collection-line);
}

.collection-media-head h2 {
    margin: 0;
    min-width: 0;
    color: #201820;
    font-size: 18px;
    line-height: 1.35;
}

.collection-media-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #fff1f5;
    color: var(--collection-primary);
    cursor: pointer;
}

.collection-media-body {
    padding: 0;
    background: #1d1720;
}

.collection-media-body iframe,
.collection-media-body video {
    width: 100%;
    display: block;
    border: 0;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #111;
}

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

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

    .collection-media-modal {
        padding: 12px;
    }

    .video-subcategory-list {
        margin-left: 0;
    }
}
