.actor-search { background: #e5dedb; border-bottom: 1px solid #cfc3c9; color: #221821; }
.actor-search__form { width: 93%; margin: 0 auto; padding: 16px 0 18px; display: grid; grid-template-columns: minmax(160px, 1.5fr) minmax(124px, 1fr) minmax(124px, 1fr) minmax(95px, .75fr) minmax(140px, 1.05fr) minmax(170px, 1.25fr) auto; gap: 12px; align-items: end; }
.actor-search__field { min-width: 0; margin: 0; padding: 0; border: 0; }
.actor-search__field > label, .actor-search__field > legend { display: block; margin: 0 0 7px; padding: 0; color: #352731; font-family: FuturaPTBook, sans-serif; font-size: 17px; line-height: 1.25; }
.actor-search input:not([type=hidden]), .actor-search select { box-sizing: border-box; width: 100%; min-width: 0; height: 44px; padding: 9px 12px; margin: 0; border: 1px solid #b5a7b0; border-radius: 0; background: #fbf8f6; color: #221821; font: 16px FuturaPTLight, sans-serif; box-shadow: none; }
.actor-search input::placeholder { color: #76646e; opacity: 1; }
.actor-search select {
    appearance: none;
    color-scheme: light;
    padding-inline-end: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2366525e' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}
.actor-search select:hover:not(:disabled) { border-color: #74377e; }
.actor-search select option, .actor-search select optgroup { background: #fff; color: #221821; }
.actor-search__range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 5px; }
.actor-search__range > span { color: #76646e; }
.actor-search__actions { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.actor-search .actor-search__submit { display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; margin: 0; border: 1px solid #74377e; border-radius: 0; background: #74377e; color: #fff; font: 16px FuturaPTBook, sans-serif; cursor: pointer; transition: background-color .15s ease; }
.actor-search__submit svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.actor-search .actor-search__submit:hover { background: #57265f; border-color: #57265f; }
.actor-search__reset { color: #49303f; font-size: 17px; text-decoration: underline; text-underline-offset: 4px; }
.actor-search__reset:hover { color: #74377e; }
.actor-search :is(button, a):focus-visible, .actor-search-results a:focus-visible { outline: 2px solid #74377e; outline-offset: 3px; }
.actor-search input:not([type=hidden]):focus, .actor-search select:focus { outline: none; box-shadow: none; border-color: #74377e; }
.actor-search input[aria-invalid=true], .actor-search input[aria-invalid=true]:focus { border-color: #a52e45; }
.actor-search ::selection { background: #74377e; color: #fff; }
.actor-search-results { padding-top: 30px; min-height: 45vh; }
.actor-search-results__heading { width: 93%; margin: 0 auto 26px; display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.actor-search-results__heading h1 { margin: 0; color: #221821; font: 32px/1.2 FuturaPTLight, sans-serif; }
.actor-search-results__heading .actor-search-results__count { margin: 0; color: #66525e; font-size: 19px; }
.actor-search-results__grid { width: 94%; }
.actor-search-results .aktor_name h2, .actor-search-results .span_pokaz_profil { margin: 0; color: #0c0a0c; text-align: center; font: 19px/27px FuturaPTLight, sans-serif; }
.actor-search-results__empty { width: 93%; box-sizing: border-box; margin: 0 auto 70px; padding: 24px 0; }
.actor-search-results__empty h2 { margin: 0 0 12px; color: #221821; font: 26px/1.3 FuturaPTLight, sans-serif; }
.actor-search-results__empty p { margin: 0 0 12px; font-size: 20px; }
.actor-search-results__empty a { color: #74377e; text-decoration: underline; text-underline-offset: 4px; }
.actor-search-results__pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; padding: 20px 15px 45px; }
.actor-search-results__pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 44px; height: 44px; box-sizing: border-box; margin: 0; padding: 0 14px; float: none; border: 1px solid #b5a7b0; border-radius: 0; background: #fbf8f6; color: #49303f; font: 17px/1 FuturaPTBook, sans-serif; text-decoration: none; transition: none; }
/* Override legacy global .next/.prev colors without changing other theme navigation. */
.actor-search-results__pagination :is(.next, .prev) { background: #fbf8f6 !important; color: #49303f !important; }
.actor-search-results__pagination a.page-numbers:is(:hover, :focus-visible) { background: #74377e !important; border-color: #74377e; color: #fff !important; }
.actor-search-results__pagination .current { background: #74377e; border-color: #74377e; color: #fff; }
.actor-search-results__pagination .dots { background: transparent; border-color: transparent; }

@media (max-width: 600px) {
    .actor-search__form { width: 90%; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding: 17px 0 19px; gap: 15px 12px; }
    .actor-search__name { grid-column: 1 / -1; }
    .actor-search__actions { justify-content: flex-start; gap: 20px; }
    .actor-search .actor-search__submit { flex: 1; }
    .actor-search__reset { padding: 10px 0; }
    .actor-search-results__heading { width: 90%; gap: 10px; margin-bottom: 20px; }
    .actor-search-results__heading h1 { font-size: 28px; }
    .actor-search-results .aktor_name h2, .actor-search-results .span_pokaz_profil { font-size: 17px; }
}

/* Age range and a progressively enhanced, keyboard-accessible name combobox. */
.actor-search { position: relative; z-index: 5; }

.actor-search__name { position: relative; }
.actor-suggestions { position: absolute; inset-inline: 0; top: calc(100% + 5px); z-index: 30; max-height: 320px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; background: #fbf8f6; border: 1px solid #9b8995; box-shadow: 0 8px 20px rgba(34, 24, 33, .16); }
.actor-suggestions[hidden] { display: none; }
.actor-suggestions [role=option], .actor-suggestions__notice { box-sizing: border-box; display: block; width: 100%; min-height: 44px; margin: 0; padding: 11px 14px; color: #352731; font: 18px/1.3 FuturaPTLight, sans-serif; overflow-wrap: anywhere; }
.actor-suggestions [role=option] { cursor: pointer; }
.actor-suggestions [role=option]:hover { background: #e5dedb; }
.actor-suggestions [role=option][aria-selected=true], .actor-suggestions [role=option]:focus { background: #74377e; color: #fff; outline: none; }
.actor-suggestions__notice { color: #66525e; font-size: 16px; }

/* All desktop filters share one baseline; smaller screens retain comfortable controls. */
.actor-search__actions { white-space: nowrap; }
.actor-search__range input { padding-inline: 8px; appearance: textfield; -moz-appearance: textfield; }
.actor-search__range input::-webkit-inner-spin-button, .actor-search__range input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.actor-search select:disabled { color: #76646e; background-color: #e5dedb; cursor: not-allowed; }
@media (max-width: 1179px) {
    .actor-search__form { grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(140px, 1fr)); gap: 16px; }
    .actor-search__actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 700px) {
    .actor-search__form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 12px; }
    .actor-search__name, .actor-search__level, .actor-search__actions { grid-column: 1 / -1; }
    .actor-search__actions { justify-content: flex-start; gap: 20px; }
    .actor-search input:not([type=hidden]), .actor-search select { font-size: 18px; }
}



/* Full-screen actor search: native dialog owns focus and sits above all page UI. */
.header-search-toggle {
    display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center;
    box-sizing: border-box; width: 44px; height: 44px; margin: 0 0 0 18px; padding: 9px;
    border: 1px solid #fff; border-radius: 50%; background: transparent; color: #fff; cursor: pointer;
}
.header-search-toggle { transition: background-color .5s ease, color .5s ease; }
.header-search-toggle img { display: none; }
.header-search-toggle::before {
    content: ''; display: block; width: 24px; height: 24px; background-color: currentColor;
    -webkit-mask: url('../interface/search.svg') center / contain no-repeat;
    mask: url('../interface/search.svg') center / contain no-repeat;
}
.header-search-toggle:hover { background-color: #fff; color: #864193; }
.header-search-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
html.actor-search-modal-open, html.actor-search-modal-open body { overflow: hidden; }
.actor-search-modal {
    box-sizing: border-box; position: fixed; inset: 0; width: 100%; max-width: none;
    height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
    background: transparent; color: #fff;
}
.actor-search-modal:not([open]) { display: none; }
.actor-search-modal[open] { display: flex; flex-direction: column; }
.actor-search-modal::backdrop { background: rgba(0, 0, 0, .9); }
.actor-search-modal__top {
    display: flex; flex: 0 0 auto; justify-content: flex-end; align-items: center;
    gap: 24px; padding: 20px 45px; background: transparent;
}
.actor-search-modal__close {
    display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; min-height: 44px; padding: 0;
    border: 0; background: transparent; color: #fff; font: 18px FuturaPTBook, sans-serif; cursor: pointer;
}
.actor-search-modal__close img { display: block; width: 40px; height: 40px; padding: 0; border: 0; filter: brightness(0) invert(1); }
.actor-search-modal__close:hover { color: #e5dedb; }
.actor-search-modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.actor-search-modal__body { display: flex; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 40px 48px; }
.actor-search-modal__content { width: 100%; max-width: 900px; margin: auto; }
.actor-search-modal__intro { margin-bottom: 32px; }
.actor-search-modal__intro h2 { margin: 0 0 12px; color: #fff; font: 52px/1.1 FuturaPTLight, sans-serif; }
.actor-search-modal__intro p { max-width: 65ch; margin: 0; color: #d1c5cd; font: 20px/1.4 FuturaPTBook, sans-serif; }
.actor-search-modal .actor-search { border: 0; background: transparent; }
.actor-search-modal .actor-search__form { width: 100%; margin: 0; padding: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 32px; }
.actor-search-modal .actor-search__name { grid-column: span 4; }
.actor-search-modal .actor-search__actions { grid-column: 1 / -1; }
.actor-search-modal .actor-search__gender { grid-column: span 2; }
.actor-search-modal :is(.actor-search__height, .actor-search__age) { grid-column: span 3; }
.actor-search-modal :is(.actor-search__language, .actor-search__level) { grid-column: span 3; }
.actor-search-modal .actor-search__field > label, .actor-search-modal .actor-search__field > legend { margin-bottom: 9px; color: #eee7eb; font-size: 18px; }
.actor-search-modal .actor-search input:not([type=hidden]), .actor-search-modal .actor-search select { height: 52px; padding-inline-start: 16px; border-color: #8b7c85; background-color: rgba(255,255,255,.06); color: #fff; font-size: 21px; }
.actor-search-modal .actor-search__range { max-width: 340px; gap: 10px; }
.actor-search-modal .actor-search__actions { justify-content: space-between; gap: 24px; margin-top: 4px; padding-top: 24px; border-top: 1px solid #5d535a; }
.actor-search-modal .actor-search__submit { min-width: 300px; min-height: 64px; padding: 18px 40px; font-size: 22px; }
.actor-search-modal .actor-search__submit svg { width: 24px; height: 24px; }
.actor-search-modal .actor-search__reset { color: #d1c5cd; font-size: 18px; }
.actor-search-modal .actor-suggestions { max-height: min(280px, 35vh); }
.actor-search-modal__errors { margin-bottom: 24px; padding: 12px 16px; border: 1px solid #ed9da7; background: rgba(255,255,255,.06); }
.actor-search-modal__errors p { margin: 4px 0; color: #ffc7d0; font-size: 18px; }
.actor-search-results__edit { margin-left: auto; min-height: 44px; padding: 9px 18px; border: 1px solid #74377e; border-radius: 0; background: transparent; color: #74377e; font: 17px FuturaPTBook, sans-serif; cursor: pointer; }
.actor-search-results__edit:hover { background: #74377e; color: #fff; }
.actor-search-results__edit:focus-visible { outline: 2px solid #74377e; outline-offset: 3px; }
@media (max-width: 700px) {
    .actor-search-modal__top { padding: 12px 20px; }
        .actor-search-modal__close { width: 44px; height: 44px; }
    .actor-search-modal__close img { width: 32px; height: 32px; padding: 0; }
    .actor-search-modal__body { padding: 26px 24px 32px; }
    .actor-search-modal__intro { margin-bottom: 26px; }
    .actor-search-modal__intro h2 { font-size: 38px; }
    .actor-search-modal__intro p { font-size: 18px; }
    .actor-search-modal .actor-search__form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 16px; }
    .actor-search-modal :is(.actor-search__height, .actor-search__age) { grid-column: span 1; }
    .actor-search-modal :is(.actor-search__name, .actor-search__gender, .actor-search__language, .actor-search__level) { grid-column: 1 / -1; }
    .actor-search-modal .actor-search__field > label, .actor-search-modal .actor-search__field > legend { font-size: 17px; margin-bottom: 7px; }
    .actor-search-modal .actor-search input:not([type=hidden]), .actor-search-modal .actor-search select { height: 48px; padding-inline-start: 12px; font-size: 18px; }
    .actor-search-modal .actor-search__range { gap: 6px; }
    .actor-search-modal .actor-search__actions { gap: 20px; padding-top: 20px; }
    .actor-search-modal .actor-search__submit { flex: 1; min-width: 0; min-height: 56px; padding: 14px 20px; font-size: 20px; }
    .actor-search-modal .actor-search__reset { padding-block: 10px; font-size: 17px; }
}
@media (max-width: 600px) {
    .header-search-toggle { margin-left: 8px; }
    #Bar_Top .langs-mob { margin-left: auto; }
    #Bar_Top .langs-mob ul { margin: 0; padding-left: 12px; }
    #Bar_Top .langs-mob a { margin-right: 0; }
}
@media (max-width: 360px) {
    .actor-search-modal__body { padding-inline: 18px; }
    .actor-search-modal__top { padding-inline: 18px; }
    .actor-search-modal__close > span { display: none; }
    #Bar_Top .logotyp { width: 160px; }
}
@media (max-height: 740px) and (min-width: 701px) {
    .actor-search-modal__top { padding-block: 16px; }
    .actor-search-modal__body { padding-block: 24px; }
    .actor-search-modal__intro { margin-bottom: 24px; }
    .actor-search-modal__intro h2 { font-size: 42px; }
    .actor-search-modal .actor-search__form { gap: 18px; }
}


/* Match the hamburger menu overlay while keeping the search controls legible. */
.actor-search-modal .actor-search input::placeholder, .actor-search-modal .actor-search__range > span { color: #bdb1b8; }
.actor-search-modal .actor-search select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23d1c5cd' stroke-width='1.5'/%3E%3C/svg%3E"); }
.actor-search-modal .actor-search select option, .actor-search-modal .actor-search select optgroup { background: #fff; color: #221821; }
.actor-search-modal .actor-search select:disabled { background-color: rgba(255,255,255,.03); border-color: #5d535a; color: #b0a7ad; }
.actor-search-modal .actor-search :is(input, select):focus, .actor-search-modal .actor-search select:hover:not(:disabled) { outline: none; border-color: #c99bd1; }
.actor-search-modal .actor-search :is(input, select).is-filled { background-color: #494449; color: #fff; border-color: #b778c5; }
.actor-search-modal .actor-search :is(input, select).is-filled:focus { border-color: #b778c5; }
.actor-search-modal .actor-search select.is-filled { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23d1c5cd' stroke-width='1.5'/%3E%3C/svg%3E"); }
.actor-search-modal .actor-search input[aria-invalid=true], .actor-search-modal .actor-search input[aria-invalid=true]:focus { border-color: #ed9da7; }
.actor-search-modal .actor-search :is(button, a):focus-visible { outline-color: #c99bd1; }
.actor-search-modal .actor-search__reset:hover { color: #fff; }
.actor-search-modal .actor-suggestions { background: #fbf8f6; border-color: #9b8995; }
.actor-search-modal .actor-suggestions [role=option] { color: #352731; }
.actor-search-modal .actor-suggestions .actor-suggestions__notice { color: #66525e; }
.actor-search-modal .actor-suggestions [role=option]:hover { background: #e5dedb; }
.actor-search-modal .actor-suggestions [role=option][aria-selected=true] { background: #74377e; color: #fff; }

/* Featured-photo previews keep a fixed footprint while names remain the option label. */
.actor-search-modal .actor-suggestions [role=option] { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 14px; }
.actor-suggestions__photo { display: block; flex: 0 0 36px; width: 36px; height: 48px; overflow: hidden; background: #e5dfdb url('../interface/photo-unavailable.svg') center / 100% 100% no-repeat; }
.actor-suggestions__photo > img { display: block; width: 36px; height: 48px; object-fit: cover; }
.actor-suggestions .actor-suggestions__photo::after { content: none; }
.actor-suggestions__label { min-width: 0; overflow-wrap: anywhere; }
.bumerang-images-enhanced .actor-suggestions__photo > img:not(.bumerang-image-loaded),
.bumerang-images-enhanced .actor-suggestions__photo > img.bumerang-image-missing { opacity: 0; }
