.video-library {
    padding: 40px 0;
}

.video-library__header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
}

.video-library__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.video-library__filter {
    min-width: 220px;
}

.video-library__grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    margin-top: 24px;
}

.video-library-card {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.video-library-card__link {
    color: inherit;
    display: block;
    text-decoration: none;
}

.video-library-card__image {
    background-position: center;
    background-size: cover;
    padding-top: 56.25%;
}

.video-library-card__title {
    font-size: 18px;
    margin: 12px;
}

.video-library-card__author {
    color: #555;
    font-size: 14px;
    margin: 0 12px 12px;
}

.video-library-card__presentation {
    align-items: center;
    background: #066ecd;
    border: 1px solid #066ecd;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 34px;
    margin: 0 12px 16px;
    padding: 7px 12px;
    text-decoration: none;
}

.video-library-card__presentation:hover,
.video-library-card__presentation:focus {
    background: #04549d;
    border-color: #04549d;
    color: #fff;
    text-decoration: none;
}

.video-library-card__presentation:focus {
    outline: 3px solid #27343b;
    outline-offset: 2px;
}

.video-library__message {
    padding: 40px 0;
    text-align: center;
}

.video-library__pagination {
    margin-top: 24px;
}

.video-library-video {
    margin: 0 auto;
    max-width: 960px;
}

.video-library-video__player {
    aspect-ratio: 16 / 9;
    background: #000;
    width: 100%;
}

.video-library-video__player-error {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
    display: flex;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.video-library-video__header {
    margin-top: 24px;
}

.video-library-video__metadata {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 24px 0;
}

.video-library-video__metadata-item {
    background: #f4f7f9;
    border-left: 4px solid #066ecd;
    min-width: 0;
    padding: 14px 16px;
}

.video-library-video__metadata dt {
    color: #04549d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.video-library-video__metadata dd {
    color: #27343b;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.video-library-video__presentation {
    align-items: center;
    background: #066ecd;
    border: 1px solid #066ecd;
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    padding: 10px 20px;
    text-decoration: none;
}

.video-library-video__presentation:hover,
.video-library-video__presentation:focus {
    background: #04549d;
    border-color: #04549d;
    color: #fff;
    text-decoration: none;
}

.video-library-video__presentation:focus {
    outline: 3px solid #27343b;
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .video-library__filters,
    .video-library__filter {
        width: 100%;
    }
}