/* =========================================================
   FREE LEAKED CLIPS
   Main stylesheet
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    background: #090909;
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;

    background: #090909;
    color: #eeeeee;

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

    font-size: 16px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    width: 100%;
    background: #111111;
    border-bottom: 1px solid #292929;
}

.header-inner {
    width: 100%;
    min-height: 78px;
    padding: 14px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    flex: 0 0 auto;

    color: #ffffff;
    text-decoration: none;

    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;

    white-space: nowrap;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: #ffffff;
}


/* =========================================================
   HEADER SEARCH
========================================================= */

.header-search {
    width: min(650px, 55%);
    height: 46px;

    margin-left: auto;

    display: flex;

    background: #1b1b1b;
    border: 1px solid #303030;
}

.header-search input {
    width: 100%;
    min-width: 0;
    height: 100%;

    padding: 0 16px;

    border: 0;
    outline: 0;

    background: transparent;
    color: #ffffff;

    font-size: 15px;
}

.header-search input::placeholder {
    color: #777777;
}

.header-search input:focus {
    background: #202020;
}

.header-search button {
    flex: 0 0 56px;

    width: 56px;
    height: 46px;

    margin: -1px -1px -1px 0;
    padding: 0;

    border: 0;

    background: #e50914;
    color: #ffffff;

    cursor: pointer;
    font-size: 20px;

    transition: background 0.15s ease;
}

.header-search button:hover {
    background: #f20d19;
}

.header-search button:active {
    background: #c90710;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav {
    width: 100%;
    border-top: 1px solid #181818;
}

.nav-inner {
    width: 100%;
    padding: 0 20px;

    display: flex;
    align-items: stretch;

    gap: 8px;

    overflow-x: auto;
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-inner a {
    flex: 0 0 auto;

    min-height: 48px;
    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    background: #181818;
    border: 1px solid #303030;

    color: #dddddd;

    text-decoration: none;
    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.nav-inner a:hover {
    background: #222222;
    border-color: #444444;
    color: #ffffff;
}

.nav-inner a.active {
    background: #e50914;
    border-color: #e50914;
    color: #ffffff;
}


/* =========================================================
   MAIN
========================================================= */

main {
    min-height: 500px;
}

.page-section {
    width: 100%;
    padding: 28px 20px 55px;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}


/* =========================================================
   BREADCRUMBS
========================================================= */

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;
    margin-bottom: 10px;

    color: #8d8d8d;
    font-size: 14px;
}

.breadcrumbs a {
    color: #dddddd;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {
    margin: 0 0 26px;
}

.page-header h1 {
    max-width: 1200px;

    margin: 0 0 7px;

    color: #ffffff;

    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -0.6px;

    overflow-wrap: anywhere;
    word-break: normal;
}

.page-header h2 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: clamp(23px, 2.5vw, 32px);
    line-height: 1.2;

    font-weight: 800;
}

.page-header p {
    margin: 0;
    color: #888888;
    font-size: 16px;
}

.page-header strong {
    color: #dddddd;
}


/* =========================================================
   VIDEO GRID
========================================================= */

.video-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 20px;
}


/* =========================================================
   VIDEO CARD
========================================================= */

.video-card {
    min-width: 0;
    overflow: hidden;

    background: #171717;
    border: 1px solid #2a2a2a;

    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.video-card:hover {
    background: #1b1b1b;
    border-color: #444444;
}


/* =========================================================
   VIDEO THUMBNAIL
========================================================= */

.video-thumbnail {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #111111;

    text-decoration: none;
}

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

    object-fit: cover;

    transition: transform 0.2s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.025);
}


/* =========================================================
   THUMBNAIL PLACEHOLDER
========================================================= */

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

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

    background: #1d1d1d;

    color: #777777;
    font-size: 14px;
}


/* =========================================================
   PLAY BUTTON
========================================================= */

.play-button {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 58px;
    height: 58px;

    transform: translate(-50%, -50%);

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

    border-radius: 50%;

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

    color: #ffffff;

    font-size: 22px;

    padding-left: 3px;

    pointer-events: none;
}


/* =========================================================
   DURATION
========================================================= */

.duration {
    position: absolute;

    right: 8px;
    bottom: 8px;

    padding: 3px 7px;

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

    color: #ffffff;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}


/* =========================================================
   VIDEO INFO
========================================================= */

.video-info {
    min-width: 0;
    padding: 12px;
}

.video-title {
    margin: 0;

    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-title a {
    color: #ffffff;
    text-decoration: none;
}

.video-title a:hover {
    color: #e50914;
}


/* =========================================================
   VIDEO PLAYER
========================================================= */

.video-player {
    width: 100%;

    background: #000000;
    border: 1px solid #292929;

    overflow: hidden;
}

.video-player iframe,
.video-player video {
    display: block;

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

    height: auto;
    min-height: 0;

    border: 0;

    background: #000000;
}


/* =========================================================
   VIDEO TAXONOMY
========================================================= */

.video-taxonomy {
    padding: 14px 0;

    border-bottom: 1px solid #282828;
}

.taxonomy-row {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    flex-wrap: wrap;
}

.taxonomy-row > strong {
    flex: 0 0 auto;
    color: #ffffff;
}

.taxonomy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.taxonomy-buttons a {
    display: inline-flex;

    padding: 4px 9px;

    background: #181818;
    border: 1px solid #303030;

    color: #cccccc;

    text-decoration: none;

    font-size: 14px;
}

.taxonomy-buttons a:hover {
    background: #e50914;
    border-color: #e50914;
    color: #ffffff;
}


/* =========================================================
   VIDEO DESCRIPTION
========================================================= */

.video-description {
    margin: 25px 0;
    padding: 20px 0;

    border-top: 1px solid #292929;
    border-bottom: 1px solid #292929;
}

.video-description h2 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: 22px;
    line-height: 1.2;
}

.video-description p {
    margin: 0;

    color: #999999;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   VIDEO DURATION
========================================================= */

.video-duration {
    margin: 18px 0;

    color: #999999;

    font-size: 14px;
}

.video-duration strong {
    color: #dddddd;
}


/* =========================================================
   SEARCH
========================================================= */

.search-page-form {
    display: none !important;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    width: 100%;

    min-height: 240px;

    padding: 40px 25px;

    display: flex;
    flex-direction: column;

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

    text-align: center;

    background: #151515;

    border: 1px solid #2a2a2a;
}

.empty-state h1,
.empty-state h2 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 26px;
    line-height: 1.2;
}

.empty-state p {
    margin: 0 0 24px;

    color: #858585;

    font-size: 15px;
}


/* =========================================================
   BUTTON
========================================================= */

.button {
    display: inline-flex;

    min-height: 44px;

    padding: 0 20px;

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

    background: #e50914;

    border: 1px solid #e50914;

    color: #ffffff;

    text-decoration: none;

    font-weight: 700;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.button:hover {
    background: #f20d19;
    border-color: #f20d19;
    color: #ffffff;
}


/* =========================================================
   MODEL GRID
========================================================= */

.model-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.model-card {
    min-width: 0;
    min-height: 70px;

    padding: 15px 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    background: #171717;
    border: 1px solid #2b2b2b;

    color: #ffffff;

    text-decoration: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.model-card:hover {
    background: #202020;
    border-color: #e50914;
}


/* =========================================================
   CATEGORY GRID
========================================================= */

.category-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}

.category-card {
    min-height: 68px;

    padding: 14px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    background: #171717;
    border: 1px solid #2b2b2b;

    color: #ffffff;

    text-decoration: none;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.category-card:hover {
    background: #202020;
    border-color: #e50914;
}


/* =========================================================
   PAGINATION
========================================================= */

.pagination {
    margin-top: 30px;

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

    gap: 12px;

    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-height: 42px;

    padding: 0 16px;

    display: inline-flex;

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

    background: #181818;
    border: 1px solid #303030;

    color: #dddddd;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.pagination a:hover {
    background: #e50914;
    border-color: #e50914;
    color: #ffffff;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    width: 100%;

    background: #111111;

    border-top: 1px solid #292929;

    margin-top: 40px;
}

.footer-content {
    max-width: 1500px;

    margin: 0 auto;

    padding: 38px 20px;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 40px;
}

.footer h3 {
    margin: 0 0 14px;

    color: #ffffff;

    font-size: 17px;
}

.footer p {
    margin: 0;

    color: #858585;

    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #8d8d8d;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding: 18px 20px;

    border-top: 1px solid #222222;

    color: #666666;

    text-align: center;

    font-size: 13px;
}


/* =========================================================
   FOCUS
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #e50914;
    outline-offset: 2px;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1500px) {

    .video-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }

    .model-grid,
    .category-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }
}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1200px) {

    .video-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .model-grid,
    .category-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .header-inner {
        gap: 20px;
    }

    .header-search {
        width: min(600px, 52%);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .header-inner {
        min-height: auto;

        padding: 14px 16px;

        flex-wrap: wrap;

        gap: 12px;
    }

    .logo {
        font-size: 24px;
    }

    .header-search {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .page-section {
        padding: 24px 16px 45px;
    }

    .video-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .model-grid,
    .category-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .footer-content {
        grid-template-columns:
            1fr 1fr;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .header-inner {
        padding: 12px;
    }

    .logo {
        font-size: 22px;
    }

    .header-search {
        height: 44px;
    }

    .header-search button {
        height: 44px;

        flex-basis: 50px;
        width: 50px;
    }

    .nav-inner {
        padding: 0 12px;
        gap: 6px;
    }

    .nav-inner a {
        min-height: 44px;
        padding: 0 14px;
        font-size: 14px;
    }

    .page-section {
        padding: 20px 12px 35px;
    }

    /*
     * Video page title:
     * smaller and easier to read on phones.
     */

    .page-header h1 {
        max-width: 100%;

        font-size: 25px;
        line-height: 1.2;

        letter-spacing: -0.3px;

        overflow-wrap: anywhere;
    }

    .page-header h2 {
        font-size: 23px;
    }

    .page-header p {
        font-size: 14px;
    }

    .breadcrumbs {
        font-size: 13px;
        margin-bottom: 8px;
    }

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

    .model-grid,
    .category-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .video-title {
        font-size: 15px;
    }

    .video-info {
        padding: 10px;
    }


    .taxonomy-row {
        flex-direction: column;
        gap: 7px;
    }

    .empty-state {
        min-height: 210px;
        padding: 30px 18px;
    }

    .empty-state h1,
    .empty-state h2 {
        font-size: 22px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 30px 16px;
    }

    .footer-bottom {
        padding: 16px 12px;
    }

    .pagination {
        gap: 8px;
    }

    .pagination a,
    .pagination span {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .logo {
        font-size: 20px;
    }

    .nav-inner a {
        padding: 0 11px;
        font-size: 13px;
    }

    .video-info {
        padding: 9px;
    }

    .video-title {
        font-size: 14px;
    }

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 19px;
    }

    .page-header h1 {
        font-size: 23px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}