* {
    box-sizing: border-box;
}


body {
    margin: 0;

    background: #0f0f0f;
    color: #ffffff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


a {
    color: inherit;
    text-decoration: none;
}


.header {
    height: 64px;

    border-bottom: 1px solid #292929;

    display: flex;
    align-items: center;
}


.container {
    width: min(1200px, calc(100% - 32px));

    margin: 0 auto;
}


.logo {
    font-size: 22px;
    font-weight: 700;
}


main {
    padding-top: 32px;
    padding-bottom: 60px;
}


h1 {
    margin-bottom: 28px;
}


.video-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(280px, 1fr)
        );

    gap: 24px;
}


.video-card {
    display: block;
}


.thumbnail {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    border-radius: 10px;

    background: #202020;
}


.thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


.thumbnail-placeholder {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 42px;

    color: #777;
}


.duration {
    position: absolute;

    right: 8px;
    bottom: 8px;

    padding: 4px 7px;

    background: rgba(0, 0, 0, 0.8);

    border-radius: 4px;

    font-size: 13px;
}


.video-info {
    padding-top: 10px;
}


.video-info h2 {
    margin: 0;

    font-size: 17px;
}


.video-info p {
    margin-top: 7px;

    color: #999;

    font-size: 14px;
}


.empty {
    color: #888;
}


.player {
    width: 100%;

    background: #000;

    border-radius: 10px;

    overflow: hidden;
}


.player video {
    width: 100%;

    display: block;

    max-height: 75vh;
}


.watch-info {
    padding-top: 20px;
}


.watch-info h1 {
    margin: 0 0 10px;
}


.watch-info p {
    color: #999;
}


.episodes-title {
    margin-top: 40px;
}


.episode-list {
    display: flex;

    flex-direction: column;

    gap: 12px;

    max-width: 800px;
}


.episode {
    display: flex;

    gap: 14px;

    padding: 8px;

    border-radius: 8px;

    transition: background 0.15s;
}


.episode:hover {
    background: #1e1e1e;
}


.episode-thumbnail {
    flex: 0 0 180px;

    aspect-ratio: 16 / 9;

    background: #202020;

    border-radius: 6px;

    overflow: hidden;
}


.episode-thumbnail img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


.episode h3 {
    margin: 5px 0 8px;

    font-size: 16px;
}


.episode p {
    margin: 0;

    color: #888;

    font-size: 14px;
}


@media (max-width: 600px) {

    .container {
        width: min(
            100% - 20px,
            1200px
        );
    }


    main {
        padding-top: 20px;
    }


    .video-grid {
        grid-template-columns: 1fr;
    }


    .episode-thumbnail {
        flex-basis: 130px;
    }

}
