.global-search { padding-top:40px; padding-bottom:70px; }
.global-search h1 { font-size:clamp(2.5rem,6vw,5rem); margin:0; }
.global-search-note { color:#bbb; max-width:85ch; }
.global-search-note { margin-top:36px; font-size:.9rem; line-height:1.5; }
.global-search-card p.global-search-match { color:#f2c5a9; font-size:.8rem; line-height:1.4; margin:10px 0; }
.global-search-card p.global-search-excerpt { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; overflow-wrap:anywhere; }
.global-search .site-search-form { margin:24px 0 0; }
body #main-content .global-search .site-search-form input[type=search] {border:0;border-radius:0;outline:none;box-shadow:none;-webkit-appearance:none;appearance:none}
body #main-content .global-search .site-search-form:focus-within {box-shadow:0 0 0 1px #fff}
body #main-content .global-search input[type=search]::-webkit-search-cancel-button {-webkit-appearance:none;appearance:none;width:18px;height:18px;margin-left:12px;cursor:pointer;background-color:#fff;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M6 18 18 6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 6 12 12M6 18 18 6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat}
.global-search-types,.global-search-pages { display:flex; flex-wrap:wrap; gap:16px; margin:28px 0; }
.global-search-types button,.global-search-pages a { color:#fff; border:1px solid #888; border-radius:24px; padding:10px 18px; text-decoration:none; background:transparent; font:inherit; cursor:pointer; }
.global-search-types button[aria-pressed="true"] { background:#fff; color:#111; border-color:#fff; }
.global-search-pages { align-items:center; justify-content:center; flex-wrap:nowrap; gap:clamp(12px,3vw,32px); margin:40px 0 0; }
.global-search-pages a,.global-search-pages button { display:inline-flex; align-items:center; justify-content:center; padding:14px 28px; border:1px solid #666; border-radius:999px; background:transparent; color:#fff; font:inherit; text-decoration:none; }
.global-search-pages button:disabled { color:#666; border-color:#303030; cursor:default; }
.global-search-pages span { color:#fff; white-space:nowrap; }
.global-search-pages a:hover { border-color:#fff; }
.global-search-pages a:focus-visible { outline:2px solid #fff; outline-offset:4px; }
@media(max-width:520px){.global-search-pages a,.global-search-pages button{padding:12px 16px;}.global-search-pages{font-size:14px;gap:12px;}}
.global-search-types button:focus-visible { outline:2px solid #fff; outline-offset:4px; }
.global-search-group[hidden] { display:none!important; }
.global-search-group { margin-top:48px; scroll-margin-top:110px; }
.global-search-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.global-search-card { color:#fff; text-decoration:none!important; min-width:0; }
.global-search-card img { width:100%; height:auto; aspect-ratio:auto; object-fit:contain; border-radius:12px; }
body #main-content .global-search .global-search-card img.is-search-fallback { aspect-ratio:16/9; object-fit:contain; background:#111; }
#result-articles .global-search-card img { aspect-ratio:16/9; object-fit:cover; }
.global-search-video-media { display:block; overflow:hidden; border-radius:20px; background:rgba(255,255,255,.08); }
.global-search-video-media img { display:block; border-radius:0; transition:transform .28s ease; }
#result-videos .global-search-card:is(:hover,:focus-visible) { opacity:1; }
@media(hover:hover) and (pointer:fine){
    #result-videos .global-search-card:is(:hover,:focus-visible) .global-search-video-media img { transform:scale(1.045); }
}
#result-videos .global-search-card p.global-search-excerpt { margin:16px 0 0; }
@media(prefers-reduced-motion:reduce){.global-search-video-media img{transition:none}}
.global-search-card h3 { font-family:var(--vixen-heading); line-height:1.1; font-size:1.3rem; margin:14px 0 8px; letter-spacing: -0.04em !important; }
.global-search-card p { color:#bbb; font-size:.95rem; line-height:1.4; }
.global-search-card p :is(strong,.search-transcript-label) { color:#fff; }
.global-search-card p .search-transcript-label { display:inline-block; padding:3px 8px; margin:0 5px 2px 0; border-radius:5px; background:#fff; color:#111; font-family:"FranklinGothicHeavy",sans-serif; font-size:.8rem; line-height:1.2; vertical-align:baseline; letter-spacing: -0.04em !important; }
.global-search-card:hover { opacity:.8; }
.global-search-episode-play { display:block; width:100%; padding:0; border:0; border-radius:0; background:transparent; color:inherit; font:inherit; letter-spacing:inherit; line-height:inherit; text-align:left; cursor:pointer; }
.global-search-episode-play svg { display:inline-block; width:22px; height:22px; margin-right:8px; vertical-align:-3px; }
body #main-content .global-search-episode-play:is(:hover,:focus-visible) { transform:none; background:transparent; color:var(--nova-link-hover,#bcbcbc); opacity:1; }
.global-search-episode-play:focus-visible { outline:2px solid #fff; outline-offset:5px; }
.global-search-episode-image { display:block; }
.global-search-result-media { display:block; overflow:hidden; border-radius:12px; }
.global-search-result-media img { display:block; transition:transform 420ms cubic-bezier(.22,1,.36,1),filter 420ms ease; }
:is(#result-articles,#result-episodes,#result-podcasts) .global-search-card { transition:transform 420ms cubic-bezier(.22,1,.36,1),box-shadow 420ms ease; }
:is(#result-articles,#result-episodes,#result-podcasts) .global-search-card:is(:hover,:focus-within) { opacity:1; }
@media(hover:hover) and (pointer:fine){
    :is(#result-articles,#result-episodes,#result-podcasts) .global-search-card:is(:hover,:focus-within) { transform:translateY(-4px); box-shadow:0 14px 34px rgba(0,0,0,.22); }
    :is(#result-articles,#result-episodes,#result-podcasts) .global-search-card:is(:hover,:focus-within) .global-search-result-media img { transform:scale(1.035); filter:saturate(1.05); }
}
@media(prefers-reduced-motion:reduce){
    :is(#result-articles,#result-episodes,#result-podcasts) .global-search-card:is(:hover,:focus-within),
    :is(#result-articles,#result-episodes,#result-podcasts) .global-search-card:is(:hover,:focus-within) .global-search-result-media img { transition:none; transform:none; }
}
@media(max-width:1000px){.global-search-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:520px){.global-search-grid{grid-template-columns:1fr;}}
@media(max-width:760px){
    #result-videos .global-search-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 16px; }
    #result-articles .global-search-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 16px; }
    #result-articles .global-search-card h3,
    #result-articles .global-search-card p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; overflow-wrap:anywhere; }
    #result-articles .global-search-card h3 { font-size:1.1rem; line-height:1.15; min-height:3.45em; margin:12px 0 8px; }
    #result-articles .global-search-card p { font-size:.9rem; line-height:1.4; margin:0; }
    :is(#result-episodes,#result-podcasts) .global-search-grid { grid-template-columns:minmax(0,1fr); gap:28px; }
    :is(#result-episodes,#result-podcasts) .global-search-card { display:grid; grid-template-columns:clamp(76px,21vw,112px) minmax(0,1fr); gap:12px 18px; align-items:start; }
    :is(#result-episodes,#result-podcasts) .global-search-card img { grid-column:1; grid-row:1; width:100%; height:auto; aspect-ratio:auto; border-radius:8px; }
    :is(#result-episodes,#result-podcasts) .global-search-result-media { grid-column:1; grid-row:1; border-radius:8px; }
    :is(#result-episodes,#result-podcasts) .global-search-card h3 { grid-column:2; grid-row:1; margin:0; align-self:center; font-size:clamp(1.15rem,4.8vw,1.6rem); line-height:1.12; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; overflow-wrap:anywhere; }
    :is(#result-episodes,#result-podcasts) .global-search-card:not(:has(img)) h3 { grid-column:1/-1; }
    :is(#result-episodes,#result-podcasts) .global-search-card p { grid-column:1/-1; margin:0; font-size:.9rem; line-height:1.4; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; overflow-wrap:anywhere; }
}
