/* Runtime layout ownership. */

/* BEGIN source style.css:1-320 layout-base */
:root {
    color-scheme: dark;
    --night: #090d16;
    --panel: #111a2d;
    --panel-2: #17233a;
    --panel-3: #1a2944;
    --line: rgba(116, 139, 171, 0.22);
    --line-strong: rgba(150, 170, 205, 0.36);
    --text: #eff4ff;
    --muted: #a2adbf;
    --blue: #2f80ff;
    --blue-soft: rgba(47, 128, 255, 0.16);
    --lime: #c9ff26;
    --danger: #ff5b4f;
    --radius: 8px;
    --shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
    /* Layout width scale: app pages use app/document shells instead of page-local magic widths. */
    --layout-app-max: 1490px;
    --layout-page-max: 1220px;
    --layout-document-shell: 1040px;
    --layout-document-panel: 980px;
    --layout-document: 880px;
    --layout-text: 680px;
    --layout-browse-copy: 1130px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--night);
    color: var(--text);
    line-height: 1.5;
}

body::before {
    content: "";
    position: fixed;
    inset: 56px 0 0 68px;
    pointer-events: none;
    background:
        radial-gradient(90% 62% at 46% 10%, rgba(24, 76, 143, 0.38), transparent 56%),
        radial-gradient(70% 52% at 48% 52%, rgba(13, 45, 87, 0.22), transparent 72%),
        linear-gradient(90deg, rgba(5, 9, 16, 0.82), rgba(12, 31, 59, 0.72) 34%, rgba(9, 14, 24, 0.9));
    z-index: -1;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

a:hover {
    color: var(--blue);
}

img {
    max-width: 100%;
}

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

/* App Shell */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;    
    gap: 28px;
    height: 56px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 13, 22, 0.9);
    backdrop-filter: blur(14px);
}

.brand-link {
    display: flex;
    align-items: center;
    width: 128px;
    height: 100%;
}

.brand-logo {
    height: 48px;
    width: auto;
}

.site-search {
    width: min(520px, 42vw);
    margin: 0;
}

.site-search label {
    position: relative;
    display: block;
}

.site-search input,
input,
textarea,
select {
    width: 100%;
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    padding: 9px 14px;
    outline: none;
}

textarea {
    border-radius: var(--radius);
}

select {
    appearance: auto;
    background-color: #10182a;
    color-scheme: dark;
}

select option,
select optgroup {
    background-color: #10182a;
    color: var(--text);
}

select option:checked {
    background-color: var(--blue);
    color: #fff;
}

.site-search input {
    padding-left: 20px;
    padding-right: 46px;
}

.site-search img {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    opacity: 0.82;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(47, 128, 255, 0.72);
    box-shadow: 0 0 0 1px rgba(47, 128, 255, 0.28), 0 0 28px rgba(47, 128, 255, 0.14);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
}

.profile-button,
.menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.account-profile-link {
    width: 38px;
    padding: 0;
    font-weight: 700;
}

.profile-button img {
    width: 20px;
    height: 20px;
}

.menu-button {
    width: auto;
    padding: 0 12px;
    color: var(--text);
}

.side-rail {
    position: fixed;
    z-index: 40;
    left: 0;
    top: 56px;
    bottom: 0;
    width: 68px;
    border-right: 1px solid var(--line);
    background: rgba(9, 13, 22, 0.82);
    backdrop-filter: blur(14px);
}

.side-rail nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 28px 0;
}

.side-rail a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    color: var(--muted);
    font-size: 0.68rem;
}

.side-rail span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.side-rail img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(1.35);
}

.side-rail a:hover {
    color: var(--text);
}

.side-rail a:hover span {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu {
    position: fixed;
    top: 64px;
    right: 16px;
    z-index: 70;
    display: grid;
    gap: 6px;
    min-width: 220px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 26, 45, 0.98);
    box-shadow: var(--shadow);
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu a {
    padding: 9px 12px;
    border-radius: 6px;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.main {
    position: relative;
    min-height: calc(100vh - 56px);
    margin-left: 68px;
    padding-top: 56px;
}

.film-shell {
    display: flex;
    flex-direction: column;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--layout-app-max);
    min-height: calc(100vh - 56px);
    margin: 0 auto;
    padding: 20px 24px 24px;
}

/* END source style.css:1-320 layout-base */

/* BEGIN source style.css:3080-3107 footer */
footer {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    margin-left: 68px;
    padding: 22px 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: rgba(9, 13, 22, 0.76);
}

.footerleft,
.footerright {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footerright {
    justify-content: flex-end;
}

.footercopy {
    color: var(--muted);
    text-align: center;
}
/* END source style.css:3080-3107 footer */

/* BEGIN source style.css:3196-3233 mobile-shell */
@media (max-width: 900px) {
    body::before {
        inset: 56px 0 0;
    }

    .navbar {
        padding: 0 16px;
        gap: 12px;
    }

    .brand-link {
        width: 108px;
    }

    .site-search {
        width: 100%;
    }

    .nav-actions > a:not(.profile-button) {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    .side-rail {
        display: none;
    }

    .main,
    footer {
        margin-left: 0;
    }

    .page-shell {
        padding: 24px 16px 32px;
    }
/* END source style.css:3196-3233 mobile-shell */

/* BEGIN source style.css:3483-3491 mobile-footer */
    footer {
        grid-template-columns: 1fr;
        padding: 22px 16px;
    }

    .footerleft,
    .footerright {
        justify-content: flex-start;
    }
/* END source style.css:3483-3491 mobile-footer */
