/* ==========================================================================
   Deep Audiobooks – header search dropdown (js/search.js). Additions only (prefix .ss_)
   ========================================================================== */
/* the template's comboTree wrapper is gone, so give the plain input the same pill look */
.navi_searchbar_wrapper input#justAnotherInputBox { display: block; float: none; width: 100%; height: 50px; padding: 0 46px 0 50px; border-radius: 50px; background: #fff; color: #191919;
    border: 1px solid #e6e6e6; font-size: 15px; text-transform: none; outline: 0; box-shadow: none; transition: box-shadow .25s, border-color .25s; }
.navi_searchbar_wrapper input#justAnotherInputBox:focus { border-color: #fa5b41; box-shadow: 0 0 0 4px rgba(250, 91, 65, .2); }
.navi_searchbar_wrapper input#justAnotherInputBox::placeholder { color: #6b6b78; }
.ss_clear { position: absolute; right: 12px; top: 20px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .08); color: #191919; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; z-index: 2; }
.ss_clear:hover { background: #fa5b41; color: #fff; }
.ss_clear[hidden], .ss_panel[hidden] { display: none; }

.ss_panel { position: absolute; left: 0; right: 0; top: 66px; z-index: 9999; min-width: 340px; max-height: min(72vh, 560px); overflow-y: auto; padding: 14px 14px 10px; text-align: left;
    background: var(--box-color); color: var(--heading-color); border: 1px solid var(--border-color); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; animation: ss_in .22s ease; }
@keyframes ss_in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.ss_panel::-webkit-scrollbar { width: 6px; } .ss_panel::-webkit-scrollbar-thumb { background: rgba(127, 127, 140, .45); border-radius: 6px; }
.ss_panel * { box-sizing: border-box; text-transform: none; font-family: inherit; }

.ss_label { font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase !important; color: var(--hover-color); margin: 8px 6px 10px; }
.ss_label i { margin-right: 6px; }
.ss_group { margin-bottom: 6px; }
.ss_chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 6px; }
.ss_chip { display: inline-block; padding: 7px 15px; border-radius: 50px; font-size: 13px; color: var(--heading-color); background: rgba(250, 91, 65, .09); border: 1px solid rgba(250, 91, 65, .28); transition: background .2s, color .2s, transform .2s; }
.ss_chip:hover { background: linear-gradient(135deg, #fa5b41, #ff8a50); color: #fff; border-color: transparent; transform: translateY(-2px); }

.ss_item { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 14px; color: var(--heading-color); transition: background .2s; }
.ss_item:hover, .ss_item.on { background: rgba(250, 91, 65, .1); }
.ss_item img { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.ss_meta { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.ss_meta b { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss_meta small { font-size: 12.5px; color: var(--para-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss_item > i { flex: 0 0 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: linear-gradient(135deg, #fa5b41, #ff8a50); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s; }
.ss_item:hover > i, .ss_item.on > i { opacity: 1; transform: none; }

.ss_state { margin: 0; padding: 26px 10px; text-align: center; font-size: 14.5px; line-height: 1.7; color: var(--para-color); }
.ss_state small { font-size: 12.5px; }
.ss_err { color: #ff3939; }
.ss_spin { display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; border-radius: 50%; border: 2px solid rgba(250, 91, 65, .3); border-top-color: #fa5b41; animation: ss_rot .7s linear infinite; }
@keyframes ss_rot { to { transform: rotate(360deg); } }
@media (max-width: 767px) { .ss_panel { min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .ss_panel, .ss_spin { animation: none; } }
