@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
        U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-display: swap;
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400 700;
    src: url('fonts/space-grotesk-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
        U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-display: swap;
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400 700;
    src: url('fonts/space-grotesk-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html, body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    background: #070b14;
    color: #e6edf7;
    margin: 0;
}

html[data-theme='light'] body {
    background: #f4f7fb;
    color: #0e1626;
}

h1:focus,
main:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 2px;
}

html[data-theme='light'] :focus-visible {
    outline-color: #0e7490;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.films-skip {
    background: #22d3ee;
    border-radius: 0 0 8px 8px;
    color: #04121a;
    font-weight: 600;
    left: 1rem;
    padding: 0.5rem 1rem;
    position: fixed;
    top: -4rem;
    z-index: 3000;
}

.films-skip:focus {
    top: 0;
}

.films-appbar {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background-color: color-mix(in srgb, var(--mud-palette-appbar-background) 80%, transparent) !important;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.films-brand {
    background: linear-gradient(90deg, #ff8a3d, #ffc83d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.films-icon-button {
    align-items: center;
    background: none;
    border: 0;
    border-radius: 50%;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    list-style: none;
    width: 2.75rem;
}

.films-icon-button::-webkit-details-marker {
    display: none;
}

.films-icon-button:hover {
    background: color-mix(in srgb, currentColor 10%, transparent);
}

.films-user-menu {
    position: relative;
}

.films-user-panel {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    color: var(--mud-palette-text-primary);
    min-width: 13rem;
    padding: 0.25rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 1500;
}

.films-menu-item {
    background: none;
    border: 0;
    border-radius: 6px;
    box-sizing: border-box;
    color: inherit;
    cursor: pointer;
    display: block;
    font: inherit;
    min-height: 2.75rem;
    padding: 0.7rem 0.75rem;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.films-menu-item:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

.films-user-panel form {
    margin: 0;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: #000;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
