.wto-video-library {
    background: radial-gradient(ellipse at 46% 5%, #12364b 0%, #101e31 37%, #0b1523 85%);
    color: #f0f7ff;
    min-height: 58vh;
}

.wto-video-library__inner {
    padding-top: clamp(34px, 5vw, 76px);
    padding-bottom: clamp(48px, 7vw, 100px);
}

.wto-video-library h1,
.wto-video-detail h1 {
    margin: 0;
    font-size: clamp(1.85rem, 3.4vw, 3rem);
    line-height: 1.14;
    overflow-wrap: anywhere;
}

.wto-video-library__intro {
    margin: 12px 0 32px;
    color: #c2d4e4;
}

.wto-video-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 255px), 1fr));
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wto-video-card {
    display: block;
    position: relative;
    height: 100%;
    color: #f0f7ff;
    background: #142438;
    border: 1px solid #31506a;
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease;
}

.wto-video-card:focus-visible {
    outline: 2px solid #80e8ed;
    outline-offset: 4px;
}

.wto-video-card:focus-visible,
.wto-video-card:hover {
    z-index: 1;
    transform: scale(1.035);
    color: #fff;
    border-color: #80e8ed;
    box-shadow: 0 0 24px #39d6e84d, 0 15px 32px #060e1b70;
}

.wto-video-card__image {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a1423;
}

.wto-video-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wto-video-card__play {
    position: absolute;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e1f7ffb3;
    border-radius: 50%;
    background: #0c1b2cba;
    box-shadow: 0 2px 12px #07122266;
}

.wto-video-card__play::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 3px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid white;
}

.wto-video-card h2 {
    margin: 0;
    padding: 13px 15px 15px;
    color: inherit;
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.wto-video-library__pages {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 30px;
}

.wto-video-library__pages a {
    color: #9eeaf0;
}

.wto-video-library__empty {
    color: #c2d4e4;
}

.wto-video-detail {
    max-width: 1100px;
    padding-top: 22px;
    padding-bottom: 44px;
}

.wto-video-detail__back {
    display: inline-block;
    margin-bottom: 12px;
    color: #095f83;
    font-weight: 600;
}

.wto-video-detail video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 70vh;
    margin-top: 16px;
    border-radius: 12px;
    background: #0d1724;
}

.wto-video-detail__summary {
    max-width: 75ch;
    margin: 10px 0 0;
    color: #3d4f60;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

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

    .wto-video-card:hover,
    .wto-video-card:focus-visible {
        transform: none;
    }
}
