.movie-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.movie-filter__item {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
}

.movie-filter__item.is-active {
    background: #333;
    border-color: #333;
    color: #fff;
}

.movie-channel-link {
    display: flex;
    justify-content: center;
    margin: 32px 0 8px;
}

.movie-channel-link .btn-base {
    width: auto;
    min-width: 260px;
    max-width: 100%;
    gap: 20px;
    padding: 11px 24px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.movie-channel-link .btn-base:has(*) {
    padding: 11px 24px;
}

.movie-channel-link__label {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
}

.movie-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.movie-card {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.movie-card[disabled] {
    cursor: default;
    opacity: 0.7;
}

.movie-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f2f2f2;
    overflow: hidden;
}

.movie-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-card__thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #666;
    font-size: 14px;
}

.movie-card__meta {
    display: block;
    margin-top: 10px;
}

.movie-card__date {
    display: block;
    color: #666;
    font-size: 12px;
}

.movie-card__title {
    display: block;
    margin-top: 6px;
    color: #222;
    font-size: 16px;
    line-height: 1.5;
}

.movie-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.movie-modal[hidden] {
    display: none;
}

.movie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.movie-modal__dialog {
    position: relative;
    width: min(900px, 92vw);
    max-height: calc(100vh - 48px);
    margin: 0;
    background: #000;
}

.movie-modal__close {
    position: absolute;
    top: -38px;
    right: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.movie-modal__player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.movie-modal__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

body.movie-modal-open {
    overflow: hidden;
}

@media screen and (max-width: 900px) {
    .movie-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 600px) {
    .movie-channel-link {
        margin: 28px 0 8px;
    }

    .movie-list {
        grid-template-columns: 1fr;
    }

    .movie-modal {
        padding: 16px;
    }

    .movie-modal__dialog {
        width: min(100%, 92vw);
        max-height: calc(100vh - 32px);
    }
}
