.video-list-page {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #f5f7fb;
}

.video-list-hero {
    position: relative;
    min-height: 245px;
    padding: 50px 0 82px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 18% 20%,
            rgba(111, 88, 234, 0.34),
            transparent 30%
        ),
        radial-gradient(
            circle at 83% 70%,
            rgba(67, 106, 225, 0.26),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #111c42,
            #1d376d
        );
    text-align: center;
}

.video-list-hero::before {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.15) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.15) 1px,
            transparent 1px
        );
    background-size: 58px 58px;
    content: "";
    pointer-events: none;
}

.video-list-hero-inner {
    position: relative;
    z-index: 1;
}

.video-list-eyebrow {
    display: inline-flex;
    padding: 4px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ccd5ff;
    background-color: rgba(255, 255, 255, 0.07);
    font-size: 0.78rem;
    font-weight: 800;
}

.video-list-hero h1 {
    margin: 14px 0 8px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.45;
}

.video-list-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: #c5cee3;
    font-size: 0.92rem;
    line-height: 2;
}

.video-list-content {
    padding: 0 0 75px;
}

.video-search-form {
    position: relative;
    z-index: 2;
    display: flex;
    max-width: 900px;
    align-items: center;
    gap: 12px;
    margin: -42px auto 55px;
    padding: 12px;
    border: 1px solid #e0e5ef;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 20px 45px rgba(18, 31, 68, 0.14);
}

.video-search-form input {
    min-width: 0;
    min-height: 50px;
    flex: 1;
    padding: 0 18px;
    border: 1px solid #dce2ed;
    border-radius: 11px;
    color: #182342;
    background-color: #fafbfe;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.video-search-form input:focus {
    border-color: #5869e8;
    box-shadow: 0 0 0 4px rgba(82, 100, 229, 0.12);
}

.video-search-form button,
.video-sort-form button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 25px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #5269ef, #7454dc);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(78, 88, 215, 0.22);
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.video-search-form button:hover,
.video-sort-form button:hover {
    box-shadow: 0 12px 25px rgba(78, 88, 215, 0.32);
    transform: translateY(-1px);
}

.video-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.video-list-header > div > span {
    color: #5064e8;
    font-size: 0.78rem;
    font-weight: 800;
}

.video-list-header h2 {
    margin: 4px 0 2px;
    color: #142044;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.video-list-header p {
    margin: 0;
    color: #858da0;
    font-size: 0.82rem;
}

.video-sort-form {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px;
    border: 1px solid #dee3ed;
    border-radius: 12px;
    background-color: #ffffff;
}

.video-sort-form label {
    padding-right: 7px;
    color: #6f788c;
    font-size: 0.8rem;
    font-weight: 700;
}

.video-sort-form select {
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid #dce1eb;
    border-radius: 8px;
    color: #243052;
    background-color: #fafbfe;
    font-family: inherit;
    outline: none;
}

.video-sort-form button {
    min-height: 40px;
    padding: 0 15px;
    box-shadow: none;
}

.video-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.video-list-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid #dfe4ed;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow: 0 11px 32px rgba(24, 37, 75, 0.07);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.video-list-card:hover {
    border-color: #c8d0f1;
    box-shadow: 0 19px 42px rgba(24, 37, 75, 0.13);
    transform: translateY(-5px);
}

.video-list-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #111a35, #304573);
}

.video-list-media video {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #000000;
    object-fit: cover;
}

.video-list-placeholder {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #dce3fb;
}

.video-list-placeholder span {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #5264e5;
    background-color: rgba(255, 255, 255, 0.92);
}

.video-list-placeholder p {
    margin: 0;
    font-size: 0.78rem;
}

.video-access-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #09664f;
    background-color: rgba(222, 248, 239, 0.94);
    font-size: 0.7rem;
    font-weight: 800;
    backdrop-filter: blur(5px);
}

.video-list-card-content {
    display: flex;
    min-height: 220px;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.video-list-card-content time {
    color: #939bad;
    font-size: 0.72rem;
}

.video-list-card-content h3 {
    margin: 10px 0 7px;
    color: #17213f;
    font-size: 1.04rem;
    line-height: 1.75;
}

.video-list-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.video-list-card-content h3 a:hover {
    color: #4c60df;
}

.video-list-card-content > p {
    margin: 0 0 20px;
    color: #767f92;
    font-size: 0.82rem;
    line-height: 1.9;
}

.video-list-card-content footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e9ecf2;
}

.video-list-card-content footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #465be0;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.video-list-empty {
    grid-column: 1 / -1;
    padding: 55px 20px;
    border: 1px dashed #cbd2e1;
    border-radius: 18px;
    color: #778095;
    background-color: #ffffff;
    text-align: center;
}

.video-list-empty > span {
    display: flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #5c73e7, #7958d8);
    font-size: 1.7rem;
}

.video-list-empty h3 {
    margin: 0 0 7px;
    color: #253252;
}

.video-list-empty p {
    margin: 0 0 15px;
}

.video-list-empty a {
    color: #4559dd;
    font-weight: 800;
    text-decoration: none;
}

.video-pagination {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    margin: 40px auto 0;
    padding: 10px 16px;
    border: 1px solid #d9deea;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 10px 28px rgba(24, 37, 75, 0.08);
}

.video-pagination-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.video-pagination-buttons a,
.video-pagination-buttons span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce1ec;
    border-radius: 9px;
    color: #4055dd;
    background-color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.video-pagination-buttons a:hover {
    border-color: #5264e5;
    color: #ffffff;
    background-color: #5264e5;
}

.video-pagination-buttons .is-disabled {
    color: #afb5c3;
    background-color: #f2f4f7;
}

.video-pagination-buttons strong {
    min-width: 120px;
    color: #253252;
    font-size: 0.8rem;
    text-align: center;
}

.video-pagination > small {
    color: #8a92a4;
    font-size: 0.7rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.video-search-form button:focus-visible,
.video-search-form input:focus-visible,
.video-sort-form select:focus-visible,
.video-sort-form button:focus-visible,
.video-list-card a:focus-visible,
.video-pagination a:focus-visible {
    outline: 3px solid rgba(80, 100, 232, 0.35);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .video-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .video-list-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .video-list-hero {
        min-height: 225px;
        padding: 42px 0 76px;
    }

    .video-list-hero h1 {
        font-size: 1.85rem;
    }

    .video-search-form {
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 42px;
    }

    .video-search-form button {
        width: 100%;
    }

    .video-sort-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .video-sort-form select {
        min-width: 0;
        flex: 1;
    }

    .video-list-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }
}

@media (max-width: 420px) {
    .video-list-card {
        border-radius: 14px;
    }

    .video-list-card-content {
        min-height: 200px;
        padding: 17px;
    }

    .video-pagination {
        width: 100%;
        padding: 9px;
    }

    .video-pagination-buttons {
        width: 100%;
    }

    .video-pagination-buttons a,
    .video-pagination-buttons span {
        width: 34px;
        height: 34px;
    }

    .video-pagination-buttons strong {
        min-width: 100px;
        font-size: 0.74rem;
    }
}
