/* js/components/enhanced_search/styles/search-styles.css */

/* Core Layout Container System Layouts */
.canvas-container {
 
}

.search-wrapper-relative {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
    /* z-index: 1000; */
}

/* 2026 Floating Input Field Pill Box Group */
.search-pill-box {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 100px;
    padding: 12px 16px;
    width: 100%;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-pill-box:focus-within {
    background-color: #ffffff;
    border-color: #111111;
    box-shadow: 0 4px 20px rgba(17, 17, 17, 0.04);
}

/* Contextual Restrictive Profile Scope Badge */
.scope-chip-badge {
    display: flex;
    align-items: center;
    background-color: #111111;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 100px;
    margin-right: 8px;
    white-space: nowrap;
}

.scope-chip-close {
    margin-left: 6px;
    cursor: pointer;
    opacity: 0.6;
    font-size: 10px;
    transition: opacity 0.15s ease;
}

.scope-chip-close:hover {
    opacity: 1;
}

/* Global Search Dropdown — full-height overlay panel.
   Acts like an overlay on top of the window (position: fixed, reaches the
   screen bottom) but reads like a component swap: solid panel, flat bottom
   edge, aligned to the search column. top/left/width are set at runtime in
   SearchBarView.positionFullHeightOverlay() so it lines up with the search bar. */
.global-search-dropdown {
    position: fixed;
    bottom: 0;
    background-color: #ffffff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 30px rgba(17, 17, 17, 0.06);
    border: 1px solid rgba(17, 17, 17, 0.05);
    border-bottom: none;
    padding: 12px 0;
    overflow-y: auto;
    z-index: 1000;
}

/* 🚀 The Global Search Escape Hatch Row Component */
.global-override-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    background-color: rgba(238, 0, 0, 0.04); /* Light Verizon Red Accent Tint */
    border-bottom: 1px solid rgba(17, 17, 17, 0.04);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.global-override-row:hover {
    background-color: rgba(238, 0, 0, 0.08);
}

.dropdown-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6C757D;
    padding: 12px 20px 6px 20px;
}

.dropdown-suggest-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    color: #111111;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.dropdown-suggest-item:hover {
    background-color: #f8f9fa;
}

.suggest-item-icon {
    margin-right: 14px;
    font-size: 16px;
    color: #6C757D;
}

/* Flexible Category Tabs System Modules — matches the top nav's flat tab
   style (header .navbar.navbar-default): plain text tabs, no background
   chip, active tab marked with a bold bottom border (.icon_link_active a.menuLabel). */
.pill-tabs-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e7e7e7;
}

.pill-tab-node {
    padding: 8px 0;
    color: #6C757D;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 4px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-tab-node:hover {
    color: #000000;
}

.pill-tab-node.active {
    color: #000000;
    border-bottom-color: #000000;
    font-family: nhg-display-bold, arial, sans-serif;
}

/* Fix #10: spacing between playlist accordion rows + bottom padding on container */
/* Override music.css .music_alpha_list { top: -30px } which pulls content up into the pill */
.music-playlist-search-view .music_alpha_list,
.music-songs-search-view .music_alpha_list,
.music-files-search-view .music_alpha_list {
    top: 0;
}
.music-playlist-search-view {
    padding-bottom: 30px;
}
.music-playlist-search-view .music_play_li {
    margin-bottom: 10px;
}
.music-playlist-search-view .music_named_group {
    border-radius: 4px;
}

/* Fix #7 & #9: when any item is checked (multiSelectMode active), hide ALL per-item
   hover action menus — the top ribbon bulk-actions bar handles all actions instead */
.album-search-view.multiSelectMode .album-card .options {
    display: none !important;
}
.music-playlist-search-view.multiSelectMode .music_play_li .menu_container {
    display: none !important;
}
.music-songs-search-view.multiSelectMode .music_songlist_li .menu_container {
    opacity: 0 !important;
    pointer-events: none !important;
}


/* Asymmetric Timeline Media Matrix System Grid Elements */
.asymmetric-media-matrix {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.media-asset-node {
   
}

/* Widescreen Priority Aspect Ratio Mapping */
.media-asset-node.hero-block-span {
  
}

.media-asset-node:hover {
    transform: scale(1.02);
    /* box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06); */
}

/* Floating Circular Overlay Multi-Select Checkboxes Indicators */
.floating-checkbox-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background-color: rgba(17, 17, 17, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 5;
    transition: all 0.2s ease;
}

/* Show selector on card hover, or force visible when active selection toggle sets are on */
.media-asset-node:hover .floating-checkbox-badge,
.media-asset-node.forced-selected-active .floating-checkbox-badge {
    opacity: 1;
}

.media-asset-node.forced-selected-active .floating-checkbox-badge {
    background-color: #EE0000; /* Crisp Verizon Red Core Accent Badge */
    border-color: #EE0000;
}

/* Bulk Management Glassmorphic Action Sheet */
.glassmorphic-action-sheet {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 100;
    animation: slideUpActionSheet 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpActionSheet {
    from {
        transform: translateY(40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Search grid checkbox visibility — mirror photos multiselect behavior.
   The check glyph itself is drawn by the generic default.css rule
   (.checkbox-custom:checked + .checkbox-custom-label:before); here we only
   control WHEN the label box is visible: on hover, in multi-select mode, or
   when the item is checked. The blue selection border comes from photo.css
   (.itemContainer .selectedItem .itemContent) since the template now adds the
   selectedItem class. */
.search-grid-view .checkbox-wrapper .checkbox-custom-label {
    visibility: hidden;
}

.search-grid-view .gridElem:hover .checkbox-custom-label,
.search-grid-view.multiSelectMode .checkbox-custom-label,
.search-grid-view .checkbox-custom:checked + .checkbox-custom-label {
    visibility: visible;
}

/* Month/year group checkboxes always visible */
.search-grid-view .month-group-checkbox-wrapper .checkbox-custom-label {
    visibility: visible !important;
}

/* List view checkboxes always visible */
.search-grid-view.list-view .checkbox-wrapper .checkbox-custom-label {
    visibility: visible !important;
}

.bulk-actions .bulk-share-btn, .bulk-actions .bulk-favorite-btn, .bulk-actions .bulk-download-btn, .bulk-actions .bulk-album-btn,.bulk-actions .bulk-delete-btn,.bulk-actions .bulk-play-all-btn{
    background: none; 
    border: none; 
    cursor: pointer;
}

.bulk-actions .bulk-delete-btn{
    position: relative;
    top: 1px;
}

.bulk-actions .bulk-unselect-all-btn{
    margin-left: auto;
    font-size: 18px;
    padding: 6px;
    position: relative;
    top: -1px;
    left: -5px;
    background: none;
    border: none;
    color: #000;
}

.bulk-actions .albumIcon {
    display: inline-block;
    width: 24px;
    height: 18px;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAAXNSR0IArs4c6QAAAbVJREFUOBGdkj9Lw2AQxn2TWlMrLjrYji6CTtqU4FDBTaoWV6EIboKLm+AXECdxEuoiOKmomHwAByH0D/UTlIoIKrqJlIIk8bnQK018hzaBl3vvcs8vd5cTuq5feJ5XHIrwCCGaqqrOVyqVb5IrOJsROL4ERUw7jmOwXmQyGY+dKBbV5VOplArtSCwKIKxBhRrOMrUpe1wEH3FaspeymKIor1IYSj+r1+tLSNiVCcOxRCJxZ5rmkbRNlDybzWanYHUSAm7DzMCfCIPIb7fbG4VCYVQKg3jOdd33jvAHFRbx1wh81YkFDD4CiViUtdmIx+MLyP4kBUD71Wr1GW1fQ3AZoPQ4ADbCMBr8tm3bL1jGHdwfADplDc0QwA/22WLxby3LOg7v2Qkq2OMkwzDGebs5hlmuYwQm+4Dn0+m0h9hwb2UNJBxwEtkwiGK1Ws2COac7PwCNoc2V7g+g2WialszlcklOYovhC7qzhfAQ9zWEJjkH+rcuDPSbVqvvHWWGb9HmPY7ThQXeDuiUSqVfkvTObEDE/3SCff0P9x/BCvn7SIoYBreFga72Lw9kNsvl8hPWww/+AUFqnzgs/grPAAAAAElFTkSuQmCC) no-repeat;
    background-size: contain;
}


.bulk-actions .vz-icon-share {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    bottom: 4px;
    color: #000;
}

.bulk-actions .vz-icon-share:hover,.bulk-actions .bulk-favorite-btn .svg-icon-star:hover,.bulk-actions .bulk-unselect-all-btn:hover {
    color: #CD040B !important;
}

.bulk-actions .bulk-favorite-btn .svg-icon-star.selected, .bulk-actions .bulk-favorite-btn .svg-icon-star:hover {
    background-position: -42px -445px;
}

.bulk-actions .svg-icon-star {
    display: inline-block;
    width: 18px;
    background-repeat: no-repeat;
    position: relative;
    top: 1px;
}

.bulk-actions .svg-icon-download {
   display: inline-block;
    width: 18px;
    background-repeat: no-repeat;
    position: relative;
    top: 3px;
}

.bulk-actions .albumIcon {
    display: inline-block;
    width: 18px;
    height: 26px;
    background-repeat: no-repeat;
    position: relative;
    top: 10px;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAAXNSR0IArs4c6QAAAbVJREFUOBGdkj9Lw2AQxn2TWlMrLjrYji6CTtqU4FDBTaoWV6EIboKLm+AXECdxEuoiOKmomHwAByH0D/UTlIoIKrqJlIIk8bnQK018hzaBl3vvcs8vd5cTuq5feJ5XHIrwCCGaqqrOVyqVb5IrOJsROL4ERUw7jmOwXmQyGY+dKBbV5VOplArtSCwKIKxBhRrOMrUpe1wEH3FaspeymKIor1IYSj+r1+tLSNiVCcOxRCJxZ5rmkbRNlDybzWanYHUSAm7DzMCfCIPIb7fbG4VCYVQKg3jOdd33jvAHFRbx1wh81YkFDD4CiViUtdmIx+MLyP4kBUD71Wr1GW1fQ3AZoPQ4ADbCMBr8tm3bL1jGHdwfADplDc0QwA/22WLxby3LOg7v2Qkq2OMkwzDGebs5hlmuYwQm+4Dn0+m0h9hwb2UNJBxwEtkwiGK1Ws2COac7PwCNoc2V7g+g2WialszlcklOYovhC7qzhfAQ9zWEJjkH+rcuDPSbVqvvHWWGb9HmPY7ThQXeDuiUSqVfkvTObEDE/3SCff0P9x/BCvn7SIoYBreFga72Lw9kNsvl8hPWww/+AUFqnzgs/grPAAAAAElFTkSuQmCC) no-repeat;
}

.bulk-actions .albumIcon:hover {
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAASCAYAAAC5DOVpAAAAAXNSR0IArs4c6QAAAeVJREFUOBGdUs9LG1EQnnm7xtSYBNIK7bUoAUU0P6D0IvQipSW00JMggrdCL3oS/A88iScPXgRPtqhob730UOpt9eTJkFJ6aGlBbIy6idkZ30SeYTfvoBkW3ptv5vuY9+3gYU9yg5imoZtArKSSsdzQyUlV6EoLTXWj0+IwP62d158ZPnpugk3SzYmO80oBO8Tc63YjEOUQqzgzv1DRguQIQID4TV8vbHUbxsi/rGJaaK1wVZtQqD7YiFEs92Zyp1CvLlmfqU0cPkoMPPYbl0UhIuI+M2QB+GFUSPLD3S9vIZbus4ohw4hfv/gtjQhYcxxnmigoEsFHwSyhnYHnHc/UU5TBdfNa5K+QEGFhzP//I9eofdK1TYtQC1KKyyExMV4xzub9059K4Xst9XW8cbZqBB7EUTz8Y3Jz5hbnt8f86nJ4zxBXtPFzpuk4k0mZ7TaY15ssQUB7Jpc90x7L13M7mTzvyUBq0TTJGRUSrFA/+6yNXJe7CWTsB8KX7ckUvsMYyG51hCP/QYdibp1BU6WDgL/raR7JZMCYQAiy7b9JvMV+h04LaHbAFEJodHC3UCoFbbFQ+X5J0fOuwPPg1rP70e3dSu/TP3vpbijTzT5Kt8uOmkGi13ejhrsYuJJvnB7IZktcA5rcoXv34P3GAAAAAElFTkSuQmCC) no-repeat;
}

.bulk-actions .svg-icon-delete {
    display: inline-block;
    width: 18px;
    background-repeat: no-repeat;
}

/* List view row hover effect - match photos.css styling */
.search-grid-view.list-view .listContainer.list-row-item {
    background-color: transparent !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-grid-view.list-view .listContainer.list-row-item:hover {
    background-color: #E8F6FE !important;
}

.search-grid-view.list-view .listContainer.list-row-item.selectedItem {
    background-color: #E8F6FE !important;
}

.search-grid-view.list-view .listContainer.list-row-item.selectedItem:hover {
    background-color: #E8F6FE !important;
}

/* Select-all checkbox in list view header - always show checkmark when checked */
.search-grid-view.list-view .select-all-checkbox + .checkbox-custom-label {
    visibility: visible !important;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: white;
    width: 18px;
    height: 18px;
    display: inline-block;
    cursor: pointer;
    position: relative;
}

.search-grid-view.list-view .select-all-checkbox:checked + .checkbox-custom-label {
    background-color: #000;
    border-color: #000;
}

.search-grid-view.list-view .select-all-checkbox:checked + .checkbox-custom-label:before {
    content: "\f00c";
    font-family: 'FontAwesome';
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: visible !important;
}

/* Partial state for select-all - show "-" */
.search-grid-view.list-view .checkbox-custom-label-part {
    background-color: #000 !important;
    border-color: #000 !important;
}

.search-grid-view.list-view .checkbox-custom-label-part:before {
    content: "\f068";
    font-family: 'FontAwesome';
    color: #fff;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    visibility: visible !important;
}

/* List view header styling - match photos */
.search-grid-view.list-view .list-header-row {
    font-family: nhg-text-bold, Arial, Sans-Serif !important;
    font-weight: 600;
}

.search-grid-view.list-view .list-header-row > div {
    padding: 7px 4px 7px 11px;
    text-align: left;
    min-height: 33px;
    display: flex;
    align-items: center;
}

.search-grid-view.list-view .list-header-row > div[data-sort-field] {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

/* .search-grid-view.list-view .list-header-row > div[data-sort-field]:hover {
    background-color: #dcdcdd;
} */

/* Responsive list view for mobile/tablet */
@media (max-width: 768px) {
    .search-grid-view.list-view .list-header-row {
        display: none !important;
    }

    .search-grid-view.list-view .listContainer.list-row-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 10px !important;
        border: 1px solid #D2D3D4 !important;
        margin-bottom: 10px !important;
        border-radius: 4px;
        width: 100% !important;
    }

    .search-grid-view.list-view .listContainer.list-row-item > div {
        width: 100% !important;
        margin-bottom: 8px !important;
    }

    .search-grid-view.list-view .listItemContent.itemClick.preview {
        width: 60px !important;
        height: 60px !important;
        margin-right: 8px !important;
        margin-bottom: 0 !important;
        float: left;
    }
}

/* ----------------------------------------------------------------------
   Landing screen polish.
   These rules target the ACTUAL classes rendered on the search landing
   view. Inline styles on those elements still set base look; we only add
   properties that are NOT set inline (hover, transition) so nothing is
   overridden and no inline-style-based event binding is affected.
   ---------------------------------------------------------------------- */

/* Recent search pills — hook class added in renderLandingView. The inline
   "padding: 6px 12px" / "cursor: pointer" substrings are preserved on the
   element because the recent-search click handler is bound to them. */
.recent-search-pill {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.recent-search-pill:hover {
    background-color: #ffffff !important;
    border-color: #ee0000 !important;
    color: #ee0000 !important;
    box-shadow: 0 2px 8px rgba(238, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* People preview cards (avatar tiles) — class exists in people-preview-lane.html */
.avatar-card-item {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-card-item:hover {
    transform: translateY(-3px);
}

.avatar-card-item:hover .avatar-circle-frame {
    border-color: #ee0000 !important;
    box-shadow: 0 4px 12px rgba(238, 0, 0, 0.12);
}

.avatar-circle-frame {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* "View All" people link — class exists in people-preview-lane.html */
.view-all-people-trigger {
    color: #ee0000 !important;
    transition: opacity 0.2s ease;
}

.view-all-people-trigger:hover {
    text-decoration: underline !important;
    opacity: 0.8;
}

/* Empty-state icon — hook class added in renderLandingView */
.search-empty-icon {
    display: inline-block;
    animation: searchEmptyFloat 3s ease-in-out infinite;
}

@keyframes searchEmptyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.date-filter-icon{
    background: none;
     border: none;
     cursor: pointer;
     font-size: 18px;
     padding: 6px;

}
.date-filter-chip{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    font-size: 13px;
    font-family: sans-serif;
    cursor: pointer;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: #0c0c0c;
    transition: background-color 0.15s ease;
}
.date-filter-clear{
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    margin-left: 6px;
    padding: 2px 4px;
}


/* ── Music playlist search view ────────────────────────────────────────────── */

/* Each row is the containing block for its absolutely-positioned menu container */
.music-playlist-search-view .music_play_li {
    position: relative;
}

/* Pin the playlist action menu to the top-right of its row.
   The real module uses #music_playlist .music_play_li .menu_container { top:0 }
   which is not in scope here, so we replicate it. */
.music-playlist-search-view .music_play_li .menu_container.playList.full {
    top: 11px;
}

/* Establish positioning context; name stays at default position by default */
.music-playlist-search-view .playlist_accordion {
    position: relative;
}

/* On hover OR when any playlist is selected (pl-multiselect), shift name right to
   reserve 34px for the checkbox. !important beats music.css padding: 4px rule. */
.music-playlist-search-view .music_play_li:hover .playlist_accordion,
.music-playlist-search-view.pl-multiselect .playlist_accordion {
    padding-left: 34px !important;
}

/* Absolutely position the checkbox within the 34px hover-reserved space */
.music-playlist-search-view .playlist_accordion .checkbox-wrapper.multi_small_checkbox {
    position: absolute !important;
    left: 5px;
    top: 30%;
    transform: translateY(-50%);
    z-index: 10;
    width: 24px;
    height: 24px;
}

/* Inline edit mode: show a visible border on the name input */
.music-playlist-search-view .playlist_accordion[mode="edit"] .playlist_name_change {
    border: 1px solid #959595 !important;
    -webkit-text-fill-color: #333 !important;
    outline: none;
}

/* Override the global visibility:hidden rule */
#page_search .music-playlist-search-view .playlist_accordion
    .checkbox-wrapper.multi_small_checkbox .checkbox-custom-label {
    visibility: visible;
    width: 24px;
    height: 24px;
}

/* Checked state: use Verizon red to match the music module's brand color
   instead of the default.css black */
.music-playlist-search-view .playlist_accordion
    .checkbox-wrapper.multi_small_checkbox .checkbox-custom:checked + .checkbox-custom-label:before {
    background: #CD040B;
    border-color: #CD040B;
}

/* Row selection highlight — music_play_li has no forced-selected-active style by default */
.music-playlist-search-view .music_play_li.forced-selected-active .music_named_group {
    background-color: #f5e0e0;
}

/* ==========================================================================
   Nav Search — global search pill + Spotlight-style dropdown (NavSearchView.js)
   ========================================================================== */

/* Nav search button — circular gray bg, Verizon red icon, matches landing page icon style */
.nav-search-icon-pill {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: #000; border: none;
    cursor: pointer;
}
.nav-search-icon-pill:hover { background: #000; }
.nav-search-icon-pill:active { background: #ddd; }
.nav-search-icon-pill:focus { outline: none; }
.nav-search-icon-rotated { display: inline-block; transform: rotate(0deg); }

/* Slide-down + fade animation */
@keyframes nsSlideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes nsSpinner { to { transform: rotate(360deg); } }

/* Panel */
#nav-search-panel {
    position: fixed; width: 480px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 2px 8px rgba(0,0,0,0.08);
    z-index: 9999; border-top: 3px solid #cd040b;
    animation: nsSlideIn 0.18s ease-out;
}

/* Triangle arrow pointing up toward the pill */
#nav-search-panel::before {
    content: ""; position: absolute; top: -16px; right: 12px;
    border-left: 10px solid transparent; border-right: 10px solid transparent;
    border-bottom: 14px solid #cd040b;
}

/* Input row */
.nav-search-input-row {
    display: flex; align-items: center; padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.nav-search-input-icon { color: #cd040b; font-size: 15px; margin-right: 12px; flex-shrink: 0; }
.nav-search-input {
    flex: 1; border: none !important; outline: none; font-size: 15px; color: #111 !important;
    background: transparent; letter-spacing: 0.01em;
}
.nav-search-input::placeholder { color: #bbb; }
.nav-search-close {
    background: none; border: none; width: 26px; height: 26px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #bbb; cursor: pointer; flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.nav-search-close:hover { background: #ffeaea; color: #cd040b; }

/* Dropdown container */
.nav-search-dropdown { max-height: 400px; overflow-y: auto; padding-bottom: 8px; }

/* Section header row — title on left, "Clear all" on right */
.ns-section-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.nav-search-section-title {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #bbb;
}
.ns-clear-all { font-size: 11px; color: #cd040b; cursor: pointer; font-weight: 600; }
.ns-clear-all:hover { text-decoration: underline; }

/* "Search for X" sticky row */
.ns-search-for {
    display: flex; align-items: center; padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.15s;
}
.ns-search-for:hover, .ns-search-for.ns-active { background: #fff5f5; }
.ns-search-for .ns-drop-icon { background: #ffeaea; color: #cd040b; }
.ns-search-for .nav-search-drop-label { font-weight: 600; color: #111; font-size: 14px; }
.ns-search-for em { font-style: normal; color: #cd040b; }

/* Item rows */
.nav-search-drop-item { display: flex; align-items: center; padding: 10px 16px; cursor: pointer; transition: background 0.12s; }
.nav-search-drop-item:hover, .nav-search-drop-item.ns-active { background: #f7f7f7; }

/* Round icon on left of each item */
.ns-drop-icon {
    width: 30px; height: 30px; border-radius: 50%; background: #f2f2f2;
    display: flex; align-items: center; justify-content: center;
    margin-right: 12px; flex-shrink: 0; color: #999; font-size: 12px;
}
.ns-drop-icon-img { width: 16px; height: 16px; opacity: 0.7; }
.nav-search-drop-item.ns-active .ns-drop-icon { background: #ffeaea; color: #cd040b; }

/* Item label */
.nav-search-drop-label {
    flex: 1; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; font-size: 14px; color: #222;
}

/* Category badge on right */
.ns-type-badge {
    font-size: 10px; font-weight: 700; color: #888; background: #f0f0f0;
    border-radius: 10px; padding: 2px 9px; margin-left: 10px; flex-shrink: 0;
    text-transform: uppercase; letter-spacing: 0.04em;
}

/* Delete recent × button */
.nav-search-del-recent {
    color: #ccc; font-size: 16px; font-weight: 600;
    padding: 0 4px; cursor: pointer; flex-shrink: 0; margin-left: 6px;
    transition: color 0.15s; line-height: 1;
}
.nav-search-del-recent:hover { color: #cd040b; }

/* Empty / loading states */
.nav-search-empty-hint { padding: 28px 16px 20px; font-size: 13px; color: #bbb; text-align: center; }
.nav-search-loading { padding: 24px 16px; text-align: center; }
.ns-spinner {
    display: inline-block; width: 20px; height: 20px;
    border: 2px solid #f0f0f0; border-top-color: #cd040b; border-radius: 50%;
    animation: nsSpinner 0.7s linear infinite; vertical-align: middle;
}

/* Mobile: full width, no arrow */
@media (max-width: 767px) {
    #nav-search-panel { border-radius: 0 0 8px 8px; }
    #nav-search-panel::before { display: none; }
}

/* Sticky search header — ribbon, search bar, AND category nav-pills are all
   one physical box (the pills' .pill-tabs-nav row renders inside .inside,
   see SearchMainLayoutView/SearchResultsViewController) so there is only a
   single position:fixed element and its height simply grows to fit — no
   separate offset math that could drift the pills away from the header.
   The outer bar is full-bleed (left:0/width:100%), same as the top nav ribbon
   (header .navbar.navbar-default) — it's just the background/shadow plane.
   `top` below is only the pre-JS fallback; UIStateManager.updateStickyOffsets
   overwrites it with the real measured navbar bottom edge (avoids a hairline
   gap on DPI/zoom/rounding drift that a hardcoded value can't account for).
   The ".inside" wrapper is what actually carries the content width/offset,
   set in the same JS pass from the canvas container's real position, so it
   lines up with the page content instead of a guessed %.
   z-index: matches the top navbar's own tier (header { z-index: 999 } in
   default.css) — high enough to sit above normal scrolling page content,
   but strictly below every dropdown/tooltip/modal layer in the app
   (.dropdown-menu and .global-search-dropdown at 1000, Bootstrap
   .modal/.modal-backdrop at 1050/1040, the legacy .loader_popup overlay at
   ~100000 used by the session-expired dialog). A prior 9999 sat above all
   of those, so the sticky header rendered on top of/through the
   session-expired backdrop instead of being dimmed underneath it like the
   rest of the page. Do not raise this past 999 without checking those. */
.search-sticky-header-group {
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #ffffff;
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.1);
    padding: 15px 0 0 0;
}

.search-sticky-header-group .inside {
    position: relative;
    display: flex;
    flex-direction: column;
}

.search-sticky-disabled .search-sticky-header-group {
    position: static;
    box-shadow: none;
    padding: 0;
}

.search-sticky-disabled .search-sticky-header-group .inside {
    left: auto !important;
    width: auto !important;
}

.bulk-actions .bulk-play-all-btn{
    font-size: 17px;
}

.bulk-actions .bulk-play-all-btn:hover .glyphicon.glyphicon-play{
    color: red;
}

/* Video play-icon overlay — mirrors #page_photos rules in photo.css.
   Search grid items use the same .item_cell.landscape/.portrait + .video-icon
   markup (chronological-grid-item-card.html), but that CSS is scoped to
   #page_photos only, so videos in search results rendered with no play icon. */
#page_search .item_cell .video-icon:before {
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAABGCAYAAACZrlevAAAACXBIWXMAABcSAAAXEgFnn9JSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAmBJREFUeNrsmzFWwkAQhpdIrxWt3AAa3rMDT2BuAK00cAPDCYwFtMYTiCcQagqxoxNvACeIM7rrAx4SCZvNzLzMe/OSIln4+LOzf8KkFMexMjEajVqw6UPeqO14h4wwu93uSjGKkgEEuA5sHhOOX0OGmFxAvwEBzof95yPO+4TsAOSEC+AS9i9TnP8AGVBW86xSqeCl2U55/hXk7Ww2WzQajQVFQA/SP3GMc7y84SoYQ15QBKxbGgsr71IXKzpzcDgcxhmMO9VFaElBwSyiCTkHNftSFdxVsw9qziUpuKvmG6gZSFVw1/J1XKrpOf5Ba0ZNV0uKl9Pcv9NFqCUVUGlr+AqQYZZq5glooqfV9LMY3HWRSYoXXYRWkhTcZ/d8qYCb5n0CWZUIaNXuUZuD1s27p3gEqvmRxu5xUTC13fMUv6gdY945KrgZiU/3PMU7Eu0ed8Bdu9eSCrilplTAXzUBMpIMiNE2VZZ7FU2Ka0/JjkA6YFM6oCoAC8ACsADM9G6jWAcZxxTuEyOpgPhYw5c6BxGuZZ6OSwN82oTDKEuplurnb/KxxGUCu63q++C4K/ivfjmuCg60apOkA7kpeHQTAyfAAYAFx57EAfCktjDKgNhdjL2o4SmDlCWqRhlwrcHGEu8HscOiahOOioJ/2iwJCh60WZwVdPZagpejahMXH+ZSQee9oi4BU9ksDoC59mtnCWjFZlEFJPPOhAHEL9S0pBpejhEl74fLhI1F1tgsUnBGQQS8p2KOrSuo58pDygW7ShkOY/MVVyzlNUo2yyqghsSy3jvgREKK8+xQfAkwAHHgCPIKZsBkAAAAAElFTkSuQmCC) no-repeat;
    width: 58px;
    height: 71px;
    color: rgba(186, 184, 177, 1);
    font-size: 60px;
    position: absolute;
    display: block;
    left: 35%;
    content: "\00a0";
    top: 31%;
}

#page_search .item_cell.landscape .video-icon:before {
    left: 40% !important;
}
