header,
footer,
#sub-header,
.header__submenu,
#gen-mobile-sidebar .ms-nav-area li,
#gen-mobile-overlay,
#dialog,
.profile-avatar-btn img,
#logout-dialog {
    width: 100%;
}

header,
footer,
#sub-header,
.header__submenu {
    height: auto;
}

header,
#gen-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__submenu {
    padding: 15px;
    display: grid;
    align-items: center;
    grid-template-columns: 1fr auto 1fr;
    max-height: 120px;
    overflow: visible;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__social-media {
    justify-content: left;
}

.social-media {
    width: 32px;
    height: 32px;
    color: var(--color-social-icon);
    background: var(--gradient-social);
    border-radius: 12px;
    justify-content: center;
    margin: 0 22px 0 12px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    position: relative;

    &:hover {
        transform: translateY(-2px);
        background: var(--gradient-social-hover);
        box-shadow: 0 4px 12px rgba(92, 124, 250, 0.4);
    }
}

.header__gi-photos-brands {
    justify-self: center;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__utils {
    justify-content: right;
}

.dl-sli {
    width: 52px;
    height: 28px;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 28px;
    background-color: var(--bg-toggle);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: background 0.28s ease, box-shadow 0.28s ease;

    &::before {
        content: '';
        position: absolute;
        left: 4px;
        top: 4px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: #ffffff;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 320ms cubic-bezier(.2, .9, .2, 1), background-color 280ms ease, box-shadow 280ms ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="%232d3748" viewBox="0 0 16 16"><path d="M12 8a4 4 0 1 1-8 0 4 4 0 0 1 8 0M8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0m0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13m8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5M3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8m10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.415a.5.5 0 1 1-.707-.708l1.414-1.414a.5.5 0 0 1 .707 0m-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0m9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707M4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .708"/></svg>');
    }
}

.dl-mod {
    width: 44px;
    height: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-right: 18px;
    position: relative;

    >input {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        border: 0;
        padding: 0;

        &:checked+.dl-sli {
            background-color: var(--bg-toggle-active);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }

        &:checked+.dl-sli::before {
            transform: translateX(24px);
            background-color: #1a202c;
            background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" fill="%23ffff" viewBox="0 0 16 16"><path d="M6 .278a.77.77 0 0 1 .08.858 7.2 7.2 0 0 0-.878 3.46c0 4.021 3.278 7.277 7.318 7.277q.792-.001 1.533-.16a.79.79 0 0 1 .81.316.73.73 0 0 1-.031.893A8.35 8.35 0 0 1 8.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.75.75 0 0 1 6 .278"/><path d="M10.794 3.148a.217.217 0 0 1 .412 0l.387 1.162c.173.518.579.924 1.097 1.097l1.162.387a.217.217 0 0 1 0 .412l-1.162.387a1.73 1.73 0 0 0-1.097 1.097l-.387 1.162a.217.217 0 0 1-.412 0l-.387-1.162A1.73 1.73 0 0 0 9.31 6.593l-1.162-.387a.217.217 0 0 1 0-.412l1.162-.387a1.73 1.73 0 0 0 1.097-1.097zM13.863.099a.145.145 0 0 1 .274 0l.258.774c.115.346.386.617.732.732l.774.258a.145.145 0 0 1 0 .274l-.774.258a1.16 1.16 0 0 0-.732.732l-.258.774a.145.145 0 0 1-.274 0l-.258-.774a1.16 1.16 0 0 0-.732-.732l-.774-.258a.145.145 0 0 1 0-.274l.774-.258c.346-.115.617-.386.732-.732z"/></svg>');
        }
    }

    &::before {
        position: absolute;
        content: "";
        width: 2px;
        height: 27px;
        top: 1px;
        right: -24px;
        background: #cecece;
    }
}

.header-notification::before {
    position: absolute;
    content: "";
    width: 2px;
    height: 27px;
    top: 7px;
    right: -8px;
    background: #cecece;
}

button.follow-button {
    width: auto;
    height: 2rem;
    white-space: nowrap;
    font-weight: 600;
    background: var(--gradient-primary);
    color: #fefefe;
    padding: 7px;
    border-radius: 10px;
    margin: 0 12px 0 12px;
    box-shadow: rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px;

    &:hover {
        color: #2d3748;
        background: var(--gradient-primary-hover);
    }

    .marg-icl {
        margin-left: 5px;
    }

    .marg {
        margin: 0 5px 0 7px;
    }

    .posi {
        position: relative;
        bottom: -2px;
    }
}

.header__menu-list {
    display: grid;
    align-items: center;
    /* gap: 1.5rem; */
    justify-items: center;
    grid-template-columns: repeat(7, 1fr);
}

.header__main-menu {
    justify-content: space-between;
    white-space: nowrap;
    padding: 0 15px;
    border-top: 1px solid var(--gen-border);
    border-bottom: 1px solid var(--gen-border);

    li {
        a {
            padding: 15px 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        a.h-hov,
        a.t-hov {
            position: relative;

            &::after {
                content: '';
                width: 100%;
                height: 2.5px;
                background: linear-gradient(315deg, #fe4f70, #ffa387);
                position: absolute;
                bottom: 11px;
                left: 0;
                border-radius: 5px;
                transform: scaleX(0);
                transition: transform 0.3s ease;
                transform-origin: right;
            }
        }

        &:hover {

            a.h-hov::after,
            a.t-hov::after {
                transform: scaleX(1);
                transform-origin: left;
            }
        }

        &.active {

            a.h-hov::after,
            a.t-hov::after {
                transform: scaleX(1);
                transform-origin: left;
            }
        }

        &.active:hover {

            a.h-hov::after,
            a.t-hov::after {
                transform: scaleX(1);
                transform-origin: left;
            }
        }
    }

    #toogle-sbar {
        display: none;
    }
}

#mobile-search-btn {
    display: none;
}

#dialog {
    overflow: hidden;
    max-width: 420px;
    padding: 24px;
    text-align: center;
    border: none;
    border-radius: 16px;
    background: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;

    &::backdrop {
        background: transparent;
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    #c-dialog {
        position: absolute;
        right: 45px;
        top: 23px;
        background: none;
        color: #2d3748;
        box-shadow: none;
        width: 0;
        height: 0;
        padding: 0;
    }

    p {
        color: #718096;
    }

    #h-dlog {
        h2 {
            color: #2d3748;
            font-size: 18px;
            margin-bottom: 8px;
        }

        p {
            font-size: 14px;
            margin-bottom: 16px;
        }
    }

    form>button {
        display: inline-flex;
        align-items: center;
        width: 100%;
        height: 40px;
        margin: 17px 0;
        gap: 10px;
        justify-content: center;
        border-radius: 8px;
        background: #f9fafb;
        color: #2d3748;
        border: 1px solid #e5e7eb;
        font-size: 16px;
        font-weight: 500;
        transition: background 0.2s, transform 0.15s;

        &:hover {
            transform: translateY(-2px);
        }



        svg {
            margin-bottom: -2px;
        }
    }

    svg.google,
    .t-google {
        position: relative;
        right: 11px;
    }

    #comit-dlog {
        p {
            font-style: italic;
            font-size: 12px;
            margin-top: 24px;
        }

        .t-comit {
            color: #66c59a;

            &:hover {
                text-decoration: underline;
            }
        }
    }
}

#profile-logout-btn {
    margin: 12px auto 7px;
}

#logout-dialog {
    max-width: 360px;
    padding: 24px;
    border: none;
    text-align: center;
    border-radius: 16px;
    background: var(--gen-body-bg);
    color: var(--gen-body-color);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: rgba(50, 50, 93, 0.25) 0 40px 80px -30px, rgba(15, 23, 42, 0.35) 0 30px 60px -40px;
}

#logout-dialog::backdrop {
    background: rgba(15, 23, 42, 0.35);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.logout-dialog__header {
    margin-bottom: 0.75rem;
}

.logout-dialog__header h3 {
    font-size: 1.05rem;
    margin: 0;
}

.logout-dialog__description {
    font-size: 0.9rem;
    margin: 0 0 1.3rem 0;
    color: var(--gen-desc-cont);
}

.logout-dialog__button {
    width: 6rem;
    height: auto;
    border-radius: 10px;
    margin: 0 15px;
    padding: 7px;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.logout-dialog__button:focus-visible {
    outline: 2px solid var(--gen-crimson);
    outline-offset: 2px;
}

.logout-dialog__button--secondary {
    background: transparent;
    border: 1px solid var(--gen-border);
    color: var(--gen-body-color);
}

.logout-dialog__button--secondary:hover {
    background: rgba(148, 163, 184, 0.2);
}

.logout-dialog__button--primary {
    background: linear-gradient(145deg, #be123c 0%, #FFAB91 100%);
    color: #fff;
    box-shadow: rgba(37, 99, 235, 0.25) 0 12px 24px -12px;
}

#follower-count {
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    margin-left: 12px;
    color: var(--gen-desc-cont);
    font-size: 0.75rem;
    font-weight: 500;

    &::before {
        position: absolute;
        content: "";
        width: 2px;
        height: 27px;
        right: 95px;
        top: 1.5px;
        background: #cecece;
    }
}

#follower-count .follower-count__value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gen-body-color);
}

#follower-count .follower-count__label {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
}

.header__social-media {
    justify-self: start;
}

.dl-log {
    justify-self: end;
}

@media (max-width: 768px) {
    .header__main-menu {
        border-top: none;
        padding: 0 15px !important;
    }

    header {
        #sub-header {
            grid-template-columns: 1fr;
        }

        .header__main-menu>ul,
        .header-search,
        .header__social-media,
        #dl {
            display: none;
        }

        .header__main-menu>#toogle-sbar>button#sbar {
            display: inline-flex;
            padding: 11.51px 11px;
            color: var(--gen-body-color);
        }

        .header__main-menu>#toogle-sbar {
            display: block;
        }

        #mobile-search-btn {
            display: block;
            margin-right: 15px;
        }

        .search-trigger-btn {
            display: inline-flex;
            padding: 11.51px 11px;
            color: var(--gen-body-color);
            background: transparent;
            border: none;
            cursor: pointer;
            position: absolute;
            left: -1.5rem;
            bottom: -2px;
        }

        .search-trigger-btn::before {
            content: "";
            position: absolute;
            width: 2px;
            height: 27px;
            left: 2.7rem;
            top: 10px;
            background: #cecece;
        }

        .header__utils {
            justify-self: end;
        }


    }
}

footer {
    border-radius: 16px;
    margin: 64px 0 25px;
    border: 1px solid var(--gen-border);
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;

    .sub-footer {
        display: grid;
        justify-content: center;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;

        .f-info {
            padding: 0 12px;
        }

        .sub-info {
            padding: 25px 15px;
        }

        .difl {
            display: inline-flex;
        }

        .sub-lis {
            width: auto;
            height: 100%;
            display: flex;
            justify-content: space-around;
            border-left: 1px solid var(--gen-border);
        }

        .sub-lis {
            padding-top: 45px;
        }

        .sub-contact>p>span>svg {
            margin-right: 7px;
        }

        .h-marg {
            font-size: 16px;
            margin-bottom: 16px;
        }

        .t-marg {
            margin-bottom: 8px;
        }
    }

    .pol-footer {
        text-align: center;
        padding: 12px 60px;
        border-top: 1px solid var(--gen-border);
    }

    @media (max-width: 991.98px) {
        .sub-footer {
            display: flex;
            flex-direction: column;
            width: 100%;
            padding: 0;
            gap: 0;
        }

        .sub-info,
        .sub-lis {
            width: 100%;
            padding: 30px 20px;
            box-sizing: border-box;
        }

        .sub-lis {
            border-left: none !important;
            border-top: 1px solid var(--gen-border);
            display: flex;
            flex-direction: column;
            gap: 30px;
        }
    }

    @media (max-width: 767.98px) {
        .sub-lis {
            flex-direction: column;
            justify-content: flex-start;
            gap: 25px;
        }

        .pol-footer {
            padding: 12px 20px;
        }

        .f-info {
            padding: 0;
        }

        .sub-info,
        .sub-lis {
            padding: 25px 15px;
        }
    }

    @media (max-width: 575.98px) {
        footer {
            margin: 40px 0 20px;
        }

        .pol-footer {
            padding: 12px 15px;
        }
    }
}

footer .social-media {
    margin: 0 15px !important;
}

.profile-container {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-container.hidden,
.follow-button.hidden {
    display: none !important;
}

.profile-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
    border: 2px solid #D66D75;
    cursor: pointer;
    overflow: hidden;
    background: none;
    box-shadow: none;
    margin: 0 12px;
    transition: border-color 0.2s;
}

.profile-avatar-btn:hover {
    border-color: #be123c;
}

.profile-avatar-btn img {
    height: 100%;
    object-fit: cover;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    z-index: 1010;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    background: var(--gen-pro);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--gen-border);
}

.profile-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.profile-info {
    display: grid;
    gap: 12px;
    justify-items: center;
    padding: 8px;
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #D66D75;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    object-fit: cover;
}

.user-details {
    display: grid;
    gap: 7px;
    text-align: center;
}

.user-name {
    font-weight: 600;
    color: var(--gen-body-color);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.8rem;
    color: var(--gen-desc-cont);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-follow-status {
    padding: 10px 12px;
    text-align: center;
    font-size: 0.9rem;
    color: inherit;
    border-top: 1px solid var(--gen-border);
    border-bottom: 1px solid var(--gen-border);
}

input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

#gen-mobile-overlay {
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#gen-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

#gen-mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    bottom: 0;
    width: 320px;
    max-width: 85%;
    height: auto;
    background: var(--gen-body-bg);
    color: var(--gen-body-color);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: left 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#gen-mobile-sidebar.active {
    left: 0;
}

#gen-mobile-sidebar .ms-header {
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 3rem;
    min-height: 60px;
}

#ms-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    color: var(--gen-desc-cont);
    padding: 8px;
    cursor: pointer;
}

#gen-mobile-sidebar .ms-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 42px;
    padding: 2rem 5px 20rem;
    border-top: 1px solid var(--gen-border);
}

#gen-mobile-sidebar .ms-body .ms-nav-area {
    padding: 0 16px;
}

#gen-mobile-sidebar .ms-nav-area ul {
    display: flex !important;
    flex-direction: column;
    gap: 32px;
}

#gen-mobile-sidebar .ms-nav-area li {
    width: 100%;
}

#gen-mobile-sidebar .ms-nav-area li a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    position: relative;
    padding: 12px 0;
    color: var(--gen-body-color);
}

#gen-mobile-sidebar .ms-nav-area li a::before {
    display: none !important;
}

#gen-mobile-sidebar .ms-nav-area li a::after {
    content: '';
    width: 100%;
    height: 3px;
    background: linear-gradient(315deg, #fe4f70, #ffa387);
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}

#gen-mobile-sidebar .ms-nav-area li.active a::after,
#gen-mobile-sidebar .ms-nav-area li:hover a::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* #gen-mobile-sidebar .ms-search-area {
    margin: 0 auto;
} */

#gen-mobile-sidebar .ms-footer {
    padding: 17px 16px 0;
    border-top: 1px solid var(--gen-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 5rem;
}

#gen-mobile-sidebar .ms-social-area .header__social-media {
    display: flex !important;
    gap: 12px;
}

#gen-mobile-sidebar .social-media,
#gen-mobile-sidebar .dl-mod {
    margin: 0 !important;
}

#gen-mobile-sidebar .dl-mod {
    &::before {
        display: none !important;
    }
}

/* Main Search Container */
.main-search {
    position: relative;
    width: 17rem;
    margin: 0;
}

/* Search Bar Wrapper */
.search-bar-wrapper {
    display: flex;
    align-items: center;
    background: var(--gen-body-bg);
    border: 1px solid var(--gen-border);
    border-radius: 8px;
    padding: 6px 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-bar-wrapper:focus-within {
    border-color: var(--gen-mems);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-icon {
    display: flex;
    align-items: center;
    color: var(--gen-desc-cont);
    margin-right: 10px;
}

#main-keyword-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--gen-body-color);
    font-size: 0.95rem;
    font-weight: 500;
}

#main-keyword-input::placeholder {
    color: var(--gen-desc-cont);
    opacity: 0.7;
}

/* Action Buttons */
.clear-btn,
.filter-toggle-btn,
.voice-btn {
    background: transparent;
    border: none;
    color: var(--gen-desc-cont);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.clear-btn:hover,
.filter-toggle-btn:hover,
.voice-btn:hover {
    background-color: var(--gen-border);
    color: var(--gen-body-color);
}

.clear-btn.hidden {
    display: none;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: var(--gen-body-bg);
    border: 1px solid var(--gen-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15);
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    max-height: 320px;
    /* Reduced height */
    padding: 8px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    scrollbar-width: thin;
    scrollbar-color: var(--gen-desc-cont) transparent;
}

.search-suggestions.hidden {
    display: none;
}

.suggestion-section-title {
    padding: 8px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gen-desc-cont);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 12px;
}

.suggestion-item:hover {
    background: var(--gen-partner);
}

.suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: #eee;
}

.suggestion-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gen-body-color);
    line-height: 1.2;
}

.suggestion-meta {
    font-size: 0.8rem;
    color: var(--gen-desc-cont);
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-star {
    color: #f59e0b;
}

/* Filter Dropdown */
.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 400px;
    background: var(--gen-body-bg);
    border: 1px solid var(--gen-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
    z-index: 99;
    padding: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform-origin: top right;
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.filter-dropdown-menu.hidden {
    display: none;
}

/* Filter Tabs */
.filter-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gen-border);
}

.filter-tab {
    background: transparent;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gen-desc-cont);
    transition: all 0.2s;
}

.filter-tab:hover {
    background: var(--gen-partner);
    color: var(--gen-body-color);
}

.filter-tab.active {
    background: var(--gen-mems);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Filter Forms */
/* Filter Forms */
.filter-group form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group.hidden {
    display: none;
}


.filter-row {
    display: flex;
    gap: 24px;
    /* Even spacing horizontally and vertically */
}

.filter-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--gen-border);
    background: var(--gen-body-bg);
    color: var(--gen-body-color);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.filter-input:focus {
    border-color: var(--gen-mems);
}

.filter-label {
    font-size: 0.9rem;
    color: var(--gen-body-color);
    align-self: center;
    min-width: 80px;
}

/* Apply Button */
.search-button-dropdown {
    width: 100%;
    margin-top: 16px;
    padding: 10px;
    background: linear-gradient(315deg, #bc3c4c, #ec4899);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(188, 60, 76, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-button-dropdown:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(188, 60, 76, 0.4);
}

@media (max-width: 768px) {
    .main-search {
        width: 100%;
    }

    .filter-dropdown-menu {
        width: calc(100vw - 32px);
        right: -16px;
        /* Adjust for padding if needed */
        position: fixed;
        top: 80px;
        left: 16px;
    }
}

/* Spotlight Modal Styles */
#spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    /* Lighter background requested */
    backdrop-filter: blur(4px);
    /* Lighter blur requested */
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
}

#spotlight-overlay.active {
    opacity: 1;
    visibility: visible;
}

#spotlight-modal {
    width: 100%;
    max-width: 640px;
    background: var(--gen-body-bg);
    border: 1px solid var(--gen-border);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

#spotlight-overlay.active #spotlight-modal {
    transform: scale(1);
}

.spotlight-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gen-border);
    gap: 12px;
}

.spotlight-header .search-icon {
    color: var(--gen-desc-cont);
    display: flex;
    align-items: center;
}

#spotlight-input {
    width: 100%;
    flex-grow: 1;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: var(--gen-body-color);
    outline: none;
    font-family: inherit;
}

#spotlight-close {
    display: none;
}

/* Spotlight Header Actions */
.spotlight-action-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gen-desc-cont);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.spotlight-action-btn:hover {
    background: var(--gen-border);
    color: var(--gen-body-color);
}

.spotlight-action-btn.active {
    color: var(--gen-crimson);
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(236, 72, 153, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
}

/* Tabs Container */
.spotlight-tabs-container {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--gen-border);
    display: flex;
    flex-direction: column;
}

.spotlight-tabs {
    display: flex;
    padding: 12px 16px 8px;
    gap: 12px;
}

/* Detailed Filters Area */
.spotlight-filters-detail {
    padding: 0 16px 12px;
}

.sp-filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-filter-group.hidden {
    display: none;
}

/* Filter Inputs */
.sp-select,
.sp-input-date,
.sp-input-text {
    background: var(--gen-bg-card, var(--bg-surface));
    border: 1px solid var(--gen-border);
    color: var(--gen-desc-cont);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

[data-theme="dark"] .sp-select,
[data-theme="dark"] .sp-input-date,
[data-theme="dark"] .sp-input-text {
    background-color: var(--bg-surface-2);
    color: var(--text-primary);
}

[data-theme="dark"] .sp-select option {
    background-color: var(--bg-surface-2);
    color: var(--text-primary);
}

.sp-input-date::-webkit-calendar-picker-indicator {
    filter: invert(0.6);
    cursor: pointer;
}

.spotlight-filters {
    display: flex;
    padding: 12px 16px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--gen-border);
}

.sp-tab {
    background: transparent;
    border: none;
    padding: 4px 12px;
    border-radius: 7px;
    font-size: 0.9rem;
    color: var(--gen-desc-cont);
    cursor: pointer;
    transition: all 0.2s;
}

.sp-tab:hover {
    background: var(--gen-border);
    color: var(--gen-body-color);
}

.sp-tab.active {
    background: #D66D75;
    color: white;
}

.spotlight-body {
    max-height: 260px;
    /* Reduced height as requested */
    overflow-y: auto;
    overscroll-behavior: contain;
    /* Fix for scroll chaining */
    padding: 8px 0;
}

/* Custom Scrollbar */
.spotlight-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.spotlight-body::-webkit-scrollbar-track {
    background: transparent;
}

.spotlight-body::-webkit-scrollbar-thumb {
    background: var(--gen-border);
    border-radius: 4px;
}

.spotlight-body::-webkit-scrollbar-thumb:hover {
    background: var(--gen-desc-cont);
}

.sp-helper-text {
    padding: 32px;
    text-align: center;
    color: var(--gen-desc-cont);
}

.spotlight-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--gen-border);
    font-size: 0.8rem;
    color: var(--gen-desc-cont);
}

.sp-shortcut span {
    background: var(--gen-border);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    margin-right: 4px;
}

/* Suggestion Items */
.sp-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sp-item:hover,
.sp-item.selected {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: #ff8a65;
}

.sp-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.sp-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sp-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--gen-tit-cont);
    line-height: 1.4;
}

.sp-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.sp-meta span {
    display: inline-flex;
    align-items: center;
}

.sp-meta .separator {
    margin: 0 8px;
    color: #cbd5e1;
}

.sp-meta .star {
    color: #475569;
    margin-right: 4px;
}

/* Ensure responsiveness for small screens */
@media (max-height: 800px) {
    .spotlight-body {
        max-height: 35vh;
    }
}

@media (max-width: 640px) {
    #spotlight-modal {
        height: auto;
        max-height: 85vh;
        /* Allow some space around */
        border-radius: 12px;
        /* Restore rounded corners */
        width: 95vw;
        /* Not full width */
        margin: 10px;
        /* Add margin */
    }

    #spotlight-overlay {
        padding-top: 20px;
        /* Push down slightly */
        align-items: flex-start;
    }

    .spotlight-body {
        max-height: calc(85vh - 180px);
    }
}

/* Header Trigger styling updates */
#header-search-trigger,
#mobile-search-trigger {
    cursor: pointer;
    position: relative;
}

#header-search-trigger input,
#mobile-search-trigger input {
    cursor: pointer;
}

#header-search-trigger .shortcut-hint,
#mobile-search-trigger .shortcut-hint {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--gen-desc-cont);
    border: 1px solid var(--gen-border);
    border-radius: 4px;
    padding: 2px 6px;
    pointer-events: none;
}

/* Hide old components in trigger */
#header-search-trigger #voice-search,
#header-search-trigger #filter-toggle,
#mobile-search-trigger #voice-search,
#mobile-search-trigger #filter-toggle {
    pointer-events: none;
    display: none;
}

#header-search-trigger .shortcut-hint,
#mobile-search-trigger .shortcut-hint {
    right: 12px;
}

/* Global Badge Colors */
.bg-article {
    background-color: #D66D75 !important;
}

.bg-video {
    background-color: #6D94D6 !important;
}

.bg-podcast {
    background-color: #A16DD6 !important;
}