:root {
    color-scheme: dark;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #f4f0eb;
    background: #111315;
    --muted: #a8aaa9;
    --accent: #e6b879;
    --border: #333637;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button, input, select, textarea {
    font: inherit;
}

button, .button {
    display: inline-block;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #242729;
    color: #f4f0eb;
    padding: 11px 20px;
    cursor: pointer;
    min-height: 46px;
}

button:hover, .button:hover {
    border-color: var(--accent);
}

.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #191714;
    font-weight: 700;
}

.primary:hover {
    color: #191714;
    background: #f4cc99;
}

.danger {
    color: #ffb6b6;
    border-color: #a14d4d;
}

:focus-visible {
    outline: 3px solid #e6b879;
    outline-offset: 4px;
}

.site-header {
    padding: 24px 5vw;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    letter-spacing: 0.17em;
    font-size: 17px;
    white-space: nowrap;
}

.brand strong {
    color: var(--accent);
}

nav, .toolbar {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 5vw;
    min-height: 75vh;
}

h1 {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 500;
    line-height: 1.15;
    margin: 10px 0 30px;
    letter-spacing: -0.03em;
}

h2 {
    font-weight: 500;
}

.eyebrow {
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
}

.panel {
    background: #1b1e20;
    border: 1px solid var(--border);
    padding: 28px;
    margin: 28px 0;
    border-radius: 10px;
}

.narrow {
    max-width: 550px;
    margin: 25px auto;
}

.editor {
    max-width: 850px;
}

label {
    display: block;
    margin-bottom: 22px;
    font-weight: 500;
}

input:not([type="checkbox"]), select, textarea {
    display: block;
    width: 100%;
    background: #111315;
    border: 1px solid #454849;
    border-radius: 5px;
    padding: 12px;
    color: #fff;
    margin-top: 7px;
}

input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--accent);
}

.check {
    display: flex;
    align-items: center;
    gap: 12px;
}

fieldset {
    border: 1px solid var(--border);
    margin: 24px 0;
    padding: 18px;
}

.hint, .muted, .subtitle, .site-footer {
    color: var(--muted);
}

.hint {
    font-size: 14px;
}

.inline {
    display: inline;
}

.notice {
    padding: 15px;
    border-left: 3px solid var(--accent);
    background: #30291f;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.badge {
    font-size: 12px;
    color: var(--accent);
    margin: 0 14px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.film-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: #1b1e20;
}

.film-card img, .poster-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #272521;
}

.poster-placeholder {
    display: grid;
    place-items: center;
    font-size: 40px;
    letter-spacing: 0.2em;
    color: var(--accent);
}

.card-copy {
    padding: 18px;
}

.card-copy span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-top: 5px;
}

.profile {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.portrait {
    width: min(480px, 100%);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    flex-shrink: 0;
    background: #111315;
    border-radius: 8px;
}

.biography {
    white-space: pre-wrap;
}

.site-footer {
    padding: 24px 5vw;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

progress {
    width: 100%;
    accent-color: var(--accent);
}

@media (max-width: 650px) {
    .profile {
        flex-direction: column;
    }

    .panel {
        padding: 20px;
    }
}

.wrap-anywhere {
    overflow-wrap: anywhere;
}
