:root {
    --app-page-background: #f4f6f8;
}

html {
    min-height: 100%;
    background: var(--app-page-background);
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background: transparent !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(
            115deg,
            rgba(244, 246, 248, 0.93) 0%,
            rgba(244, 246, 248, 0.88) 42%,
            rgba(244, 246, 248, 0.70) 73%,
            rgba(244, 246, 248, 0.78) 100%
        ),
        url("/static/submariner-background-v1.png");
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: cover, cover;
    filter: saturate(0.72) contrast(0.95);
}

:where(
    .search-panel,
    .results-card,
    .panel,
    .card,
    .notice,
    .toolbar,
    .brand,
    .stat,
    .queue,
    .guide
) {
    background-color: rgba(255, 255, 255, 0.94) !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

:where(.nav, .app-nav) a,
input,
select,
textarea {
    background-color: rgba(255, 255, 255, 0.97) !important;
}

:where(.nav, .app-nav) a.active,
.search-button,
.primary {
    background-color: #2563eb !important;
}

.page-banner {
    --banner-image: url("/static/banner-search-v1.png");
    --custom-watch-image: url("/static/gothic-r-timing-bezel-master-v1.png");
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 168px;
    margin: 0 0 22px;
    padding: 30px 34px 30px 180px;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(207, 214, 222, 0.92);
    border-radius: 14px;
    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.99) 0%,
            rgba(255, 255, 255, 0.96) 36%,
            rgba(255, 255, 255, 0.74) 61%,
            rgba(255, 255, 255, 0.48) 100%
        ),
        var(--banner-image);
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: cover, cover;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}

.page-banner::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 10px;
    z-index: 0;
    width: 152px;
    pointer-events: none;
    background-image: var(--custom-watch-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.82;
    filter:
        drop-shadow(0 5px 5px rgba(26, 41, 61, 0.16));
}

.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(232, 236, 240, 0.12));
}

.page-banner h1 {
    position: relative;
    z-index: 1;
    max-width: 42%;
    margin: 0 0 7px !important;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.page-banner .subtitle {
    position: relative;
    z-index: 1;
    max-width: 42%;
    margin: 0 !important;
    color: #475467;
    font-size: 14px;
    line-height: 1.5;
}

.banner-search {
    --banner-image: url("/static/banner-search-v1.png");
}

.banner-catalog {
    --banner-image: url("/static/banner-catalog-v1.png");
}

.banner-compare {
    --banner-image: url("/static/banner-compare-v1.png");
}

.banner-research {
    --banner-image: url("/static/banner-research-v1.png");
}

@media (max-width: 800px) {
    body::before {
        background-image:
            linear-gradient(rgba(244, 246, 248, 0.91), rgba(244, 246, 248, 0.95)),
            url("/static/submariner-background-v1.png");
        background-position: center, 68% center;
    }

    .page-banner {
        min-height: 142px;
        padding: 23px 22px;
        background-image:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.92) 58%,
                rgba(255, 255, 255, 0.68) 100%
            ),
            var(--banner-image);
        background-position: center, 67% center;
    }

    .page-banner::before {
        display: none;
    }

    .page-banner h1,
    .page-banner .subtitle {
        max-width: 75%;
    }

    .page-banner h1 {
        font-size: 25px;
    }
}

@media (prefers-reduced-transparency: reduce) {
    body::before {
        background-image:
            linear-gradient(rgba(244, 246, 248, 0.95), rgba(244, 246, 248, 0.97)),
            url("/static/submariner-background-v1.png");
    }
}
