/* ==========================================================================
   Law and order page
   ========================================================================== */

.law-order-page {
    width: 100%;
    background: #fff;
    font-family: var(--font-family);
    color: #151515;
}

.law-order-page__main {
    width: 100%;
    padding-bottom: 80px;
}

.law-order-container {
    width: min(100%, var(--container-max-width));
    margin: 0 auto;
}

/* Breadcrumbs */

.law-order-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding-top: 34px;
    padding-bottom: 45px;
    font-size: 14px;
    font-weight: 300;
    line-height: 24px;
}

.law-order-breadcrumbs a {
    color: #151515;
}

.law-order-breadcrumbs a:hover {
    color: #3a68d5;
}

.law-order-breadcrumbs__sep,
.law-order-breadcrumbs__current {
    color: #777;
}

.law-order-breadcrumbs__current {
    min-width: 0;
}

/* Content */

.law-order-content__title {
    margin: 0 0 27px;
    max-width: 893px;
    font-size: 42px;
    font-weight: 600;
    line-height: 46px;
}

/* Grid */

.law-order-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

/* Video card */

.law-order-card {
    width: 100%;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.law-order-card__trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.law-order-card__trigger[hidden] {
    display: none;
}

.law-order-card__thumb {
    position: relative;
    display: block;
    height: 270px;
}

.law-order-card__player {
    position: relative;
    height: 270px;
}

.law-order-card__player[hidden] {
    display: none;
}

.law-order-card__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.law-order-card__image {
    display: block;
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.law-order-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-top-left-radius: 30px;
    border-bottom-right-radius: 30px;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.law-order-card__meta {
    position: absolute;
    top: 20px;
    left: 21px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 17px;
}

.law-order-card__channel-icon {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}

.law-order-card__channel {
    font-size: 16px;
    font-weight: 400;
    line-height: 21px;
    color: #fff;
    white-space: nowrap;
}

.law-order-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 60px;
}

.law-order-card__bar {
    position: absolute;
    left: 0;
    bottom: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 287px;
    max-width: calc(100% - 24px);
    height: 49px;
    padding: 0 38px;
    background: rgba(0, 0, 0, 0.5);
    border-top-right-radius: 20px;
}

.law-order-card__action {
    font-size: 19px;
    font-weight: 400;
    line-height: 21px;
    color: #fff;
    white-space: nowrap;
}

/* Responsive */

@media (max-width: 1200px) {
    .law-order-breadcrumbs {
        padding-top: 28px;
        padding-bottom: 36px;
        gap: 14px;
    }

    .law-order-page__main {
        padding-bottom: 64px;
    }

    .law-order-content__title {
        font-size: 36px;
        line-height: 40px;
        margin-bottom: 24px;
    }

    .law-order-grid {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .law-order-breadcrumbs {
        padding-top: 24px;
        padding-bottom: 28px;
        gap: 12px;
    }

    .law-order-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .law-order-card__thumb,
    .law-order-card__player {
        height: auto;
        aspect-ratio: 410 / 270;
    }

    .law-order-card__image {
        height: 100%;
        aspect-ratio: auto;
    }
}

@media (max-width: 800px) {
    .law-order-breadcrumbs {
        padding-top: 20px;
        padding-bottom: 24px;
        gap: 12px;
        font-size: 13px;
        line-height: 20px;
    }

    .law-order-breadcrumbs__current {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .law-order-content__title {
        font-size: 28px;
        line-height: 34px;
    }
}

@media (max-width: 700px) {
    .law-order-content__title {
        margin-bottom: 20px;
    }

    .law-order-card__meta {
        top: 16px;
        left: 16px;
        gap: 12px;
    }

    .law-order-card__channel-icon {
        width: 32px;
        height: 32px;
    }

    .law-order-card__channel {
        font-size: 14px;
        line-height: 18px;
    }

    .law-order-card__play {
        width: 72px;
        height: 50px;
    }

    .law-order-card__bar {
        bottom: 16px;
        height: 44px;
        padding: 0 24px;
    }

    .law-order-card__action {
        font-size: 16px;
        line-height: 20px;
    }
}

@media (max-width: 599px) {
    .law-order-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

@media (max-width: 480px) {
    .law-order-breadcrumbs {
        padding-top: 16px;
        padding-bottom: 20px;
        gap: 10px;
    }

    .law-order-page__main {
        padding-bottom: 48px;
    }

    .law-order-content__title {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 18px;
    }

    .law-order-grid {
        gap: 16px;
    }

    .law-order-card__bar {
        width: min(100%, 260px);
        max-width: calc(100% - 16px);
        padding: 0 18px;
    }

    .law-order-card__action {
        font-size: 15px;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .law-order-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    }

    .law-order-card:hover .law-order-card__thumb::after {
        background: rgba(0, 0, 0, 0.12);
    }

    .law-order-card:hover .law-order-card__play {
        transform: translate(-50%, -50%) scale(1.06);
    }

    .law-order-card__play {
        transition: transform 0.35s ease;
    }

    .law-order-card__thumb::after {
        transition: background 0.35s ease;
    }
}