.page-trailers .page-hero {
    background-image: linear-gradient(90deg, rgba(12, 13, 12, 0.94), rgba(12, 13, 12, 0.58)), url("/static/company/trailers-banner.png");
}

.page-trailers .listing-tools {
    --trailer-tool-height: 48px;
}

.page-trailers .category-nav a {
    display: inline-flex;
    height: var(--trailer-tool-height);
    align-items: center;
    padding-block: 0;
}

.page-trailers .trailer-grid .film-card-clean {
    padding-bottom: 0;
    border-bottom: 0;
}

.page-trailers .trailer-grid .film-card-clean h2 {
    min-height: 0;
    margin-top: 12px;
    overflow: hidden;
    font-size: clamp(18px, 1.45vw, 22px);
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-trailers .trailer-grid .film-card-clean h2 a {
    display: block;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-trailers .search-form {
    flex: 0 0 clamp(340px, 32vw, 430px);
    min-width: 340px;
    height: var(--trailer-tool-height);
    min-height: var(--trailer-tool-height);
    overflow: hidden;
    background: rgba(255, 253, 249, 0.72);
    border: 1px solid rgba(20, 21, 19, 0.18);
    box-shadow: 0 10px 30px rgba(20, 21, 19, 0.06);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.page-trailers .search-form:focus-within {
    border-color: rgba(152, 43, 45, 0.72);
    box-shadow: 0 12px 34px rgba(20, 21, 19, 0.09), 0 0 0 3px rgba(152, 43, 45, 0.08);
}

.page-trailers .search-form label {
    position: relative;
    display: grid;
    gap: 1px;
    align-content: center;
    padding: 8px 16px 8px 50px;
}

.page-trailers .search-form label::before {
    position: absolute;
    top: 50%;
    left: 19px;
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--red);
    border-radius: 50%;
    content: "";
    transform: translateY(-62%);
}

.page-trailers .search-form label::after {
    position: absolute;
    top: calc(50% + 6px);
    left: 32px;
    width: 7px;
    height: 1.5px;
    background: var(--red);
    content: "";
    transform: rotate(45deg);
    transform-origin: left center;
}

.page-trailers .search-label {
    color: var(--red);
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.16em;
}

.page-trailers .search-form input {
    padding: 0;
    color: var(--ink);
    font-size: 14px;
    line-height: 24px;
}

.page-trailers .search-form input::placeholder {
    color: rgba(20, 21, 19, 0.4);
}

.page-trailers .search-form button {
    display: flex;
    width: 96px;
    height: auto;
    min-height: 0;
    align-self: stretch;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 17px;
    color: var(--white);
    background: var(--ink);
    font-size: 12px;
    letter-spacing: 0.08em;
    transition: background 180ms ease;
}

.page-trailers .search-form button:hover,
.page-trailers .search-form button:focus-visible {
    background: var(--red);
}

.page-trailers .search-form button span:last-child {
    font-size: 16px;
    transition: transform 180ms ease;
}

.page-trailers .search-form button:hover span:last-child,
.page-trailers .search-form button:focus-visible span:last-child {
    transform: translate(2px, -2px);
}

.page-trailers .contact-ribbon {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: #171816;
    border-top: 1px solid rgba(255, 253, 249, 0.1);
}

.page-trailers .contact-ribbon::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 72%, rgba(152, 43, 45, 0.16) 72%),
        radial-gradient(circle at 76% 30%, rgba(179, 148, 95, 0.1), transparent 32%);
    content: "";
    pointer-events: none;
}

.page-trailers .contact-ribbon .container {
    position: relative;
    min-height: 330px;
    padding-block: 70px;
}

.page-trailers .contact-ribbon .container::after {
    position: absolute;
    right: 194px;
    bottom: 28px;
    color: rgba(255, 253, 249, 0.18);
    content: "XRPA / COLLABORATION";
    font-size: 9px;
    letter-spacing: 0.2em;
}

.page-trailers .contact-ribbon .eyebrow {
    color: var(--gold);
}

.page-trailers .contact-ribbon h2 {
    max-width: 780px;
    margin-top: 20px;
    font-size: clamp(38px, 4.2vw, 58px);
    line-height: 1.28;
    letter-spacing: -0.045em;
}

.page-trailers .circle-link {
    display: flex;
    width: 158px;
    height: 158px;
    aspect-ratio: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px;
    color: var(--white);
    background: var(--red);
    border: 0;
    border-radius: 0;
    transition: color 200ms ease, background 200ms ease, transform 200ms ease;
}

.page-trailers .circle-link::before {
    content: "开启合作";
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.page-trailers .circle-link span {
    align-self: flex-end;
    font-size: 28px;
    line-height: 1;
    transition: transform 200ms ease;
}

.page-trailers .circle-link:hover,
.page-trailers .circle-link:focus-visible {
    color: var(--ink);
    background: var(--white);
    transform: translateY(-4px);
}

.page-trailers .circle-link:hover span,
.page-trailers .circle-link:focus-visible span {
    transform: translate(3px, -3px);
}

@media (max-width: 760px) {
    .page-trailers .search-form {
        width: 100%;
        min-width: 0;
        height: var(--trailer-tool-height);
        min-height: var(--trailer-tool-height);
    }

    .page-trailers .search-form label {
        padding-left: 46px;
    }

    .page-trailers .search-form button {
        width: 82px;
        padding-inline: 14px;
    }

    .page-trailers .contact-ribbon .container {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 36px;
        padding-block: 56px;
    }

    .page-trailers .contact-ribbon .container::after {
        display: none;
    }

    .page-trailers .contact-ribbon h2 {
        max-width: 520px;
        font-size: clamp(34px, 10vw, 45px);
    }

    .page-trailers .circle-link {
        width: 100%;
        height: 56px;
        flex-direction: row;
        align-items: center;
        padding: 0 18px;
    }

    .page-trailers .circle-link span {
        align-self: auto;
        font-size: 22px;
    }
}
