.pm-search-page {
    position: relative;
    padding: 12px 0 80px;
    color: var(--pm-text);
}

.pm-search-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -120px;
    left: 50%;
    width: min(1080px, 92vw);
    height: 430px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(237, 30, 36, 0.075), transparent 68%);
    pointer-events: none;
}

.pm-search-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

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

/* Search introduction */
.pm-search-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    overflow: hidden;
    padding: clamp(28px, 4.2vw, 48px);
    border: 1px solid rgba(237, 30, 36, 0.16);
    border-radius: 28px;
    background:
        radial-gradient(circle at 95% 2%, rgba(237, 30, 36, 0.16), transparent 34%),
        radial-gradient(circle at 2% 115%, rgba(245, 158, 11, 0.11), transparent 36%),
        var(--pm-surface);
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
    isolation: isolate;
}

.pm-search-hero::after {
    content: "travel_explore";
    position: absolute;
    z-index: -1;
    top: -52px;
    right: -24px;
    color: rgba(237, 30, 36, 0.055);
    font-family: "Material Symbols Outlined";
    font-size: clamp(180px, 23vw, 290px);
    font-variation-settings: "wght" 250;
    line-height: 1;
    pointer-events: none;
}

.pm-search-hero-copy {
    max-width: 920px;
}

.pm-search-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    color: #ed1e24;
    font-size: 0.69rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
}

.pm-search-eyebrow .material-symbols-outlined {
    font-size: 1rem;
}

.pm-search-title {
    max-width: 960px;
    margin: 0;
    color: var(--pm-text);
    font-family: var(--font-heading, "Playfair Display", serif);
    font-size: clamp(2rem, 5.2vw, 3.85rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.pm-search-title span {
    color: #ed1e24;
}

.pm-search-intro {
    max-width: 670px;
    margin: 12px 0 0;
    color: var(--pm-text-muted);
    font-size: clamp(0.9rem, 1.6vw, 1.03rem);
    line-height: 1.65;
}

.pm-search-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 17px;
    padding: 6px 10px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.075);
    color: #15803d;
    font-size: 0.7rem;
    font-weight: 800;
}

.pm-search-summary .material-symbols-outlined {
    font-size: 0.92rem;
}

@media (min-width: 901px) {
    .pm-search-hero {
        gap: 16px;
        padding: 32px 36px;
    }

    .pm-search-title {
        font-size: clamp(2rem, 4.2vw, 3.2rem);
    }

    .pm-search-intro {
        max-width: 800px;
        margin-top: 8px;
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .pm-search-summary {
        margin-top: 12px;
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

.pm-search-form {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(760px, 100%);
    gap: 10px;
}

.pm-search-input-wrap {
    display: flex;
    min-width: 0;
    min-height: 54px;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    padding: 0 17px;
    border: 1.5px solid var(--pm-border);
    border-radius: 17px;
    background: color-mix(in srgb, var(--pm-bg) 62%, var(--pm-surface));
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.pm-search-input-wrap:focus-within {
    border-color: rgba(237, 30, 36, 0.68);
    background: var(--pm-surface);
    box-shadow: 0 0 0 4px rgba(237, 30, 36, 0.09);
}

.pm-search-input-wrap > .material-symbols-outlined {
    flex: 0 0 auto;
    color: #ed1e24;
    font-size: 1.3rem;
}

.pm-search-input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 !important;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--pm-text) !important;
    font-family: var(--font-body, "Montserrat", sans-serif);
    font-size: 0.92rem;
    font-weight: 600;
    -webkit-appearance: none;
}

.pm-search-input-wrap input::-webkit-search-cancel-button {
    cursor: pointer;
}

.pm-search-input-wrap input::placeholder {
    color: var(--pm-text-muted);
    opacity: 0.78;
}

.pm-search-submit {
    display: inline-flex;
    min-height: 54px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 23px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, #ed1e24, #b91c1c);
    box-shadow: 0 9px 22px rgba(237, 30, 36, 0.24);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.79rem;
    font-weight: 800;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.pm-search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 27px rgba(237, 30, 36, 0.3);
}

.pm-search-submit .material-symbols-outlined {
    font-size: 1rem;
}

/* Sticky result filters */
.pm-search-filter-wrap {
    position: sticky;
    z-index: 30;
    top: 72px;
    margin: 18px 0 28px;
    padding: 8px 0;
    background: color-mix(in srgb, var(--pm-bg) 86%, transparent);
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
}

.pm-search-filters {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid var(--pm-border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--pm-surface) 94%, transparent);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
    scrollbar-width: none;
}

.pm-search-filters::-webkit-scrollbar {
    display: none;
}

.pm-search-filter {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--pm-text-muted) !important;
    font-size: 0.7rem;
    font-weight: 750;
    text-decoration: none !important;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.pm-search-filter:hover {
    border-color: var(--pm-border);
    background: color-mix(in srgb, var(--pm-text) 5%, transparent);
    color: var(--pm-text) !important;
}

.pm-search-filter.active {
    border-color: rgba(237, 30, 36, 0.17);
    background: rgba(237, 30, 36, 0.09);
    color: #ed1e24 !important;
}

.pm-search-filter > .material-symbols-outlined {
    font-size: 1.05rem;
}

.pm-search-filter-count {
    display: inline-grid;
    min-width: 20px;
    height: 20px;
    box-sizing: border-box;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--pm-text) 8%, transparent);
    color: currentColor;
    font-size: 0.58rem;
    font-weight: 850;
}

.pm-search-filter.active .pm-search-filter-count {
    background: #ed1e24;
    color: #fff;
}

/* Top match */
.pm-search-top-match {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
    min-height: 270px;
    align-items: center;
    gap: clamp(24px, 4vw, 52px);
    overflow: hidden;
    margin-bottom: 30px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid rgba(237, 30, 36, 0.22);
    border-radius: 26px;
    background:
        linear-gradient(118deg, rgba(237, 30, 36, 0.1), transparent 57%),
        var(--pm-surface);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
}

.pm-search-top-match::after {
    content: "auto_awesome";
    position: absolute;
    right: -24px;
    bottom: -56px;
    color: rgba(237, 30, 36, 0.05);
    font-family: "Material Symbols Outlined";
    font-size: 210px;
    line-height: 1;
    pointer-events: none;
}

.pm-search-top-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--pm-border);
    border-radius: 19px;
    background: var(--pm-bg);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.15);
}

.pm-search-top-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-search-top-match.type-person .pm-search-top-media {
    width: min(210px, 100%);
    aspect-ratio: 1;
    justify-self: center;
    border-radius: 50%;
}

.pm-search-top-match.type-movie .pm-search-top-media {
    width: min(190px, 100%);
    aspect-ratio: 2 / 3;
    justify-self: center;
}

.pm-search-top-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(237, 30, 36, 0.92);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1.75rem;
}

.pm-search-top-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.pm-search-top-kickers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
}

.pm-top-match-chip,
.pm-result-type {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 850;
    letter-spacing: 0.055em;
    line-height: 1.35;
    text-transform: uppercase;
}

.pm-top-match-chip {
    background: rgba(237, 30, 36, 0.1);
    color: #ed1e24;
}

.pm-top-match-chip .material-symbols-outlined,
.pm-result-type .material-symbols-outlined {
    font-size: 0.8rem;
}

.pm-result-type.type-person { background: #f3e8ff; color: #7e22ce; }
.pm-result-type.type-movie { background: #dbeafe; color: #1d4ed8; }
.pm-result-type.type-post { background: #dcfce7; color: #15803d; }
.pm-result-type.type-video { background: #fee2e2; color: #b91c1c; }
.pm-result-type.type-event { background: #ffedd5; color: #c2410c; }

.pm-search-top-content h2 {
    max-width: 790px;
    margin: 0;
    color: var(--pm-text);
    font-family: var(--font-heading, "Playfair Display", serif);
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.pm-search-top-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    color: var(--pm-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.pm-search-top-content > p {
    max-width: 680px;
    margin: 13px 0 20px;
    color: var(--pm-text-muted);
    font-size: 0.85rem;
    line-height: 1.65;
}

.pm-search-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.pm-search-primary-action,
.pm-search-secondary-action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-decoration: none !important;
}

.pm-search-primary-action {
    background: #ed1e24;
    box-shadow: 0 8px 18px rgba(237, 30, 36, 0.23);
    color: #fff !important;
}

.pm-search-primary-action .material-symbols-outlined {
    font-size: 0.95rem;
    transition: transform 150ms ease;
}

.pm-search-primary-action:hover .material-symbols-outlined {
    transform: translateX(3px);
}

.pm-search-secondary-action {
    border: 1px solid var(--pm-border);
    background: color-mix(in srgb, var(--pm-surface) 88%, var(--pm-bg));
    color: var(--pm-text) !important;
}

/* Result sections */
.pm-search-results-stack {
    display: grid;
    gap: 24px;
}

.pm-search-section {
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid var(--pm-border);
    border-radius: 24px;
    background: var(--pm-surface);
    box-shadow: 0 12px 42px rgba(15, 23, 42, 0.055);
}

.pm-search-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 19px;
}

.pm-search-section-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.pm-section-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 12px;
    background: rgba(237, 30, 36, 0.09);
    color: #ed1e24;
    font-size: 1.25rem;
}

.pm-search-section.type-person .pm-section-icon { background: #f3e8ff; color: #7e22ce; }
.pm-search-section.type-movie .pm-section-icon { background: #dbeafe; color: #1d4ed8; }
.pm-search-section.type-post .pm-section-icon { background: #dcfce7; color: #15803d; }
.pm-search-section.type-event .pm-section-icon { background: #ffedd5; color: #c2410c; }
.pm-search-section.type-video .pm-section-icon { background: #fee2e2; color: #b91c1c; }

.pm-search-section-title > div {
    min-width: 0;
}

.pm-search-section-title span:not(.pm-section-icon) {
    display: block;
    margin-bottom: 1px;
    color: var(--pm-text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.pm-search-section-title h2 {
    margin: 0;
    color: var(--pm-text);
    font-family: var(--font-heading, "Playfair Display", serif);
    font-size: clamp(1.2rem, 2.6vw, 1.65rem);
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.pm-search-section-head > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: #ed1e24 !important;
    font-size: 0.67rem;
    font-weight: 800;
    text-decoration: none !important;
}

.pm-search-section-head > a .material-symbols-outlined {
    font-size: 0.9rem;
}

.pm-search-movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 16px;
}

.pm-result-movie-card,
.pm-result-person-card,
.pm-result-story-card,
.pm-result-event-card,
.pm-result-video-card {
    min-width: 0;
    color: var(--pm-text) !important;
    text-decoration: none !important;
}

.pm-result-movie-card {
    display: block;
}

.pm-result-movie-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 1px solid var(--pm-border);
    border-radius: 16px;
    background: var(--pm-bg);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.pm-result-movie-poster > img,
.pm-result-story-media img,
.pm-result-event-media img,
.pm-result-video-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pm-result-movie-card:hover .pm-result-movie-poster > img,
.pm-result-story-card:hover .pm-result-story-media img,
.pm-result-event-card:hover .pm-result-event-media img,
.pm-result-video-card:hover .pm-result-video-media img {
    transform: scale(1.035);
}

.pm-result-movie-poster > .pm-result-type {
    position: absolute;
    top: 9px;
    left: 9px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}

.pm-result-movie-poster .pm-home-rating {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    margin: 0;
}

.pm-result-card-body {
    min-width: 0;
    padding: 11px 2px 2px;
}

.pm-result-card-body h3,
.pm-result-story-content h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--pm-text);
    font-size: 0.78rem;
    font-weight: 780;
    letter-spacing: -0.01em;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.pm-result-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: 7px;
    color: var(--pm-text-muted);
    font-size: 0.64rem;
    font-weight: 650;
}

.pm-result-card-meta .material-symbols-outlined {
    color: #ed1e24;
    font-size: 0.9rem;
}

.pm-search-people-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pm-result-person-card {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    min-height: 98px;
    align-items: center;
    gap: 13px;
    padding: 11px 13px;
    border: 1px solid var(--pm-border);
    border-radius: 17px;
    background: color-mix(in srgb, var(--pm-surface) 94%, var(--pm-bg));
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pm-result-person-card:hover {
    border-color: rgba(126, 34, 206, 0.28);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.pm-result-person-card > img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border: 2px solid var(--pm-surface);
    border-radius: 50%;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12);
}

.pm-result-person-card > div {
    min-width: 0;
}

.pm-result-person-card h3 {
    margin: 6px 0 2px;
    overflow: hidden;
    color: var(--pm-text);
    font-size: 0.82rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-result-person-card p {
    margin: 0;
    overflow: hidden;
    color: var(--pm-text-muted);
    font-size: 0.63rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-result-arrow {
    color: var(--pm-text-muted);
    font-size: 1.05rem;
}

.pm-search-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pm-result-story-card {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    min-height: 132px;
    overflow: hidden;
    border: 1px solid var(--pm-border);
    border-radius: 17px;
    background: color-mix(in srgb, var(--pm-surface) 94%, var(--pm-bg));
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pm-result-story-card:hover {
    border-color: rgba(21, 128, 61, 0.24);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.pm-result-story-media {
    min-height: 132px;
    overflow: hidden;
    background: var(--pm-bg);
}

.pm-result-story-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 14px;
}

.pm-result-story-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--pm-text-muted);
    font-size: 0.6rem;
    font-weight: 650;
}

.pm-result-story-content h3 {
    font-size: 0.76rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.pm-result-read {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 9px;
    color: #ed1e24;
    font-size: 0.61rem;
    font-weight: 800;
}

.pm-result-read .material-symbols-outlined {
    font-size: 0.78rem;
}

.pm-search-event-grid,
.pm-search-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pm-result-event-card,
.pm-result-video-card {
    display: block;
    overflow: hidden;
    border: 1px solid var(--pm-border);
    border-radius: 17px;
    background: color-mix(in srgb, var(--pm-surface) 94%, var(--pm-bg));
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.pm-result-event-card:hover,
.pm-result-video-card:hover {
    border-color: rgba(237, 30, 36, 0.24);
    box-shadow: 0 11px 28px rgba(15, 23, 42, 0.09);
    transform: translateY(-3px);
}

.pm-result-event-media,
.pm-result-video-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--pm-bg);
}

.pm-result-event-date {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    min-width: 44px;
    min-height: 48px;
    box-sizing: border-box;
    place-items: center;
    padding: 5px 8px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.22);
    color: #111827;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.pm-result-event-date b {
    color: #ed1e24;
    font-size: 0.52rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.pm-result-event-card .pm-result-card-body,
.pm-result-video-card .pm-result-card-body {
    padding: 13px 14px 15px;
}

.pm-result-event-card .pm-result-card-body > .pm-result-type {
    margin-bottom: 7px;
}

.pm-result-location {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--pm-text-muted);
    font-size: 0.61rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-result-location .material-symbols-outlined {
    flex: 0 0 auto;
    color: #c2410c;
    font-size: 0.85rem;
}

.pm-result-video-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.28), transparent 58%);
    pointer-events: none;
}

.pm-result-video-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(237, 30, 36, 0.92);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 1.3rem;
    transition: transform 180ms ease;
}

.pm-result-video-card:hover .pm-result-video-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.pm-result-duration {
    position: absolute;
    z-index: 2;
    right: 8px;
    bottom: 8px;
    padding: 3px 7px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
}

/* Pagination and empty/discovery states */
.pm-search-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 14px;
    border: 1px solid var(--pm-border);
    border-radius: 18px;
    background: var(--pm-surface);
}

.pm-search-pagination > a,
.pm-search-pagination > .disabled {
    display: inline-flex;
    width: fit-content;
    min-height: 38px;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--pm-border);
    border-radius: 11px;
    color: var(--pm-text) !important;
    font-size: 0.67rem;
    font-weight: 800;
    text-decoration: none !important;
}

.pm-search-pagination > a:last-child,
.pm-search-pagination > .disabled:last-child {
    justify-self: end;
}

.pm-search-pagination > .disabled {
    color: var(--pm-text-muted) !important;
    opacity: 0.48;
}

.pm-search-pagination .material-symbols-outlined {
    font-size: 0.9rem;
}

.pm-search-page-number {
    color: var(--pm-text-muted);
    font-size: 0.68rem;
    font-weight: 650;
}

.pm-search-page-number strong {
    color: var(--pm-text);
}

.pm-search-empty-state,
.pm-search-discovery {
    margin-top: 28px;
    padding: clamp(34px, 6vw, 64px) clamp(20px, 5vw, 52px);
    border: 1px solid var(--pm-border);
    border-radius: 25px;
    background:
        radial-gradient(circle at 90% 0, rgba(237, 30, 36, 0.09), transparent 34%),
        var(--pm-surface);
    box-shadow: 0 15px 48px rgba(15, 23, 42, 0.06);
}

.pm-search-empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.pm-search-empty-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 50%;
    background: rgba(237, 30, 36, 0.09);
    color: #ed1e24;
    font-size: 1.8rem;
}

.pm-search-empty-kicker {
    color: #ed1e24;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.pm-search-empty-state h2,
.pm-search-discovery h2 {
    margin: 7px 0 8px;
    color: var(--pm-text);
    font-family: var(--font-heading, "Playfair Display", serif);
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.pm-search-empty-state > p,
.pm-search-discovery > div:first-child p {
    max-width: 600px;
    margin: 0;
    color: var(--pm-text-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.pm-search-empty-action {
    margin-top: 15px;
    padding: 10px 14px;
    border-radius: 11px;
    background: #ed1e24;
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none !important;
}

.pm-search-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
}

.pm-search-suggestions a {
    padding: 7px 11px;
    border: 1px solid var(--pm-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--pm-surface) 90%, var(--pm-bg));
    color: var(--pm-text) !important;
    font-size: 0.65rem;
    font-weight: 750;
    text-decoration: none !important;
}

.pm-search-suggestions a:hover {
    border-color: rgba(237, 30, 36, 0.3);
    color: #ed1e24 !important;
}

.pm-search-discovery {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(28px, 5vw, 70px);
}

.pm-search-discovery-grid {
    display: grid;
    gap: 9px;
}

.pm-search-discovery-grid a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 11px;
    padding: 12px;
    border: 1px solid var(--pm-border);
    border-radius: 15px;
    background: color-mix(in srgb, var(--pm-surface) 92%, var(--pm-bg));
    color: var(--pm-text) !important;
    text-decoration: none !important;
}

.pm-search-discovery-grid .material-symbols-outlined {
    grid-row: 1 / 3;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(237, 30, 36, 0.09);
    color: #ed1e24;
}

.pm-search-discovery-grid b {
    font-size: 0.74rem;
}

.pm-search-discovery-grid small {
    color: var(--pm-text-muted);
    font-size: 0.61rem;
}

/* Dark mode */
.dark-theme .pm-search-summary {
    color: #86efac;
}

.dark-theme .pm-search-hero,
.dark-theme .pm-search-top-match,
.dark-theme .pm-search-section,
.dark-theme .pm-search-pagination,
.dark-theme .pm-search-empty-state,
.dark-theme .pm-search-discovery {
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.25);
}

.dark-theme .pm-search-filters {
    background: rgba(16, 22, 33, 0.94);
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
}

.dark-theme .pm-result-person-card,
.dark-theme .pm-result-story-card,
.dark-theme .pm-result-event-card,
.dark-theme .pm-result-video-card,
.dark-theme .pm-search-secondary-action,
.dark-theme .pm-search-suggestions a,
.dark-theme .pm-search-discovery-grid a {
    background: rgba(255, 255, 255, 0.035);
}

/* Responsive layout */
@media (max-width: 900px) {
    .pm-search-filter-wrap {
        top: 62px;
    }

    .pm-search-top-match {
        grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
        gap: 26px;
    }

    .pm-search-event-grid,
    .pm-search-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pm-search-story-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 700px) {
    .pm-search-page {
        padding-top: 0;
        padding-bottom: 56px;
    }

    .pm-search-shell {
        width: min(100% - 22px, 1240px);
    }

    .pm-search-hero {
        gap: 18px;
        padding: 26px 19px 21px;
        border-radius: 22px;
    }

    .pm-search-hero::after {
        top: -18px;
        right: -35px;
        font-size: 150px;
    }

    .pm-search-title {
        font-size: clamp(1.85rem, 10vw, 2.8rem);
    }

    .pm-search-form {
        flex-direction: column;
    }

    .pm-search-submit {
        width: 100%;
    }

    .pm-search-filter-wrap {
        margin: 12px -11px 20px;
        padding: 7px 11px;
    }

    .pm-search-filters {
        border-radius: 15px;
    }

    .pm-search-top-match {
        grid-template-columns: minmax(0, 1fr);
        gap: 21px;
        padding: 18px;
        border-radius: 22px;
    }

    .pm-search-top-media {
        max-height: 235px;
    }

    .pm-search-top-match.type-person .pm-search-top-media {
        width: 160px;
    }

    .pm-search-top-match.type-movie .pm-search-top-media {
        width: 150px;
        max-height: none;
    }

    .pm-search-top-content {
        text-align: left;
    }

    .pm-search-top-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .pm-search-primary-action,
    .pm-search-secondary-action {
        width: 100%;
        box-sizing: border-box;
    }

    .pm-search-section {
        padding: 16px;
        border-radius: 20px;
    }

    .pm-search-section-head {
        margin-bottom: 15px;
    }

    .pm-search-people-grid,
    .pm-search-event-grid,
    .pm-search-video-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pm-search-movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .pm-search-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .pm-search-page-number {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
    }

    .pm-search-discovery {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 430px) {
    .pm-search-summary {
        max-width: 100%;
        box-sizing: border-box;
    }

    .pm-search-section-head > a {
        width: 34px;
        height: 34px;
        justify-content: center;
        overflow: hidden;
        border: 1px solid var(--pm-border);
        border-radius: 50%;
        font-size: 0;
    }

    .pm-search-section-head > a .material-symbols-outlined {
        font-size: 0.95rem;
    }

    .pm-result-story-card {
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 126px;
    }

    .pm-result-story-media {
        min-height: 126px;
    }

    .pm-result-story-content {
        padding: 11px;
    }

    .pm-result-read {
        display: none;
    }

    .pm-search-pagination > a,
    .pm-search-pagination > .disabled {
        padding: 0 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pm-search-page *,
    .pm-search-page *::before,
    .pm-search-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
