#search-input-box {
    position: relative;
    display: flex;
    align-items: center;
    height: 3rem;
    padding: 0 1rem;
    background: #201f26;
    border-radius: 1.5rem;
}

#search-input-box .search-input {
    flex: 1;
    min-width: 8rem;
    margin-right: 0.1rem;
    color: #fff;
    font-size: 1.2rem;
    background: transparent;
    border: 0;
    outline: 0;
}

#search-input-box .search-input::placeholder {
    color: #9f9f9f;
}

#search-input-box .search-submit {
    padding: 0;
    color: #fff;
    cursor: pointer;
    background: transparent;
    border: 0;
}

#search-input-box .search-submit img,
.search-mobile-btn img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

#search-input-box .search-hostory-box {
    position: absolute;
    top: 3.6rem;
    right: 0;
    z-index: 20;
    display: none;
    width: min(50rem, 90vw);
    height: min(59rem, calc(100vh - 6rem));
    padding: 2.2rem 2rem;
    overflow-y: auto;
    background: #171515;
    border: 1px solid rgba(255, 188, 1, 0.25);
    border-radius: 1.6rem;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.35);
}

#search-input-box .search-hostory-box.show {
    display: block;
}

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

.search-title,
.search-page-container h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.search-title {
    margin-bottom: 2rem;
}

.search-title-left,
.search-heading {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 500;
}

.search-title-line,
.search-heading i {
    display: block;
    width: 0.4rem;
    height: 2rem;
    margin-right: 1rem;
    background: #ffbc01;
}

.search-history-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.2rem;
    color: #ffbc01;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 188, 1, 0.1);
    border: 1px solid rgba(255, 188, 1, 0.4);
    border-radius: 8rem;
}

.search-history-clear img {
    width: 1.2rem;
    height: 1.2rem;
    margin-right: 0.4rem;
}

.search-history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3.2rem;
}

.search-history-list a {
    height: 2.8rem;
    padding: 0 1.2rem;
    color: #ffbc01;
    font-size: 1.2rem;
    line-height: 2.8rem;
    background: rgba(255, 188, 1, 0.05);
    border: 1px solid #ffbc01;
    border-radius: 0.4rem;
}

.search-hostory-box .no-data {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-bottom: 2rem;
    color: #9f9f9f;
    font-size: 1.2rem;
}

.search-hostory-box .no-data.show {
    display: flex;
}

.search-section-title {
    margin-top: 1.5rem;
}

.search-actress-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 2rem;
    text-align: center;
}

.search-actress-list a {
    min-width: 0;
    color: #ccc;
}

.search-actress-list img {
    display: block;
    width: 4.4rem;
    height: 4.4rem;
    margin: 0 auto 0.4rem;
    object-fit: cover;
    background: #2a292d;
    border: 1px solid #333;
    border-radius: 50%;
}

.search-actress-list span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-hot-list a {
    display: flex;
    align-items: center;
    height: 3rem;
    margin-bottom: 1.2rem;
    color: #fff;
}

.search-hot-rank {
    display: flex;
    flex: 0 0 3rem;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-right: 0.4rem;
    color: #ffbc01;
    font-size: 1.6rem;
}

.search-hot-rank img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-hot-title {
    flex: 1;
    overflow: hidden;
    color: #fff;
    font-size: 1.6rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-hot-fire {
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    margin-left: 0.7rem;
    object-fit: contain;
}

.search-hot-count {
    color: #ffbc01;
    font-size: 1.6rem;
    white-space: nowrap;
}

.search-page-container {
    max-width: 60rem;
    min-height: 100vh;
    margin: 0 auto;
    padding: 7rem 2rem 2rem;
}

.search-page-container .search-head {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 60rem;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: #1c1c1d;
}

.search-back {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-back img {
    width: 2rem;
    height: 2.4rem;
    object-fit: contain;
}

.search-page-container .search-input-box {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 1rem;
    background: #262626;
    border-radius: 2rem;
}

.search-page-container .search-input-box input {
    width: 100%;
    color: #fff;
    background: transparent;
    border: 0;
    outline: 0;
}

.search-page-container .search-input-box > img {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
}

.search-page-submit {
    padding: 0.7rem 1.5rem;
    color: #000;
    cursor: pointer;
    background: #ffbc01;
    border: 0;
    border-radius: 2rem;
}

.search-page-container h3 {
    margin: 2rem 0 1rem;
}

.search-page-container section {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    #search-input-box {
        display: none;
    }

    .search-mobile-btn {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        max-width: 13rem;
        padding: 0.6rem 1rem;
        overflow: hidden;
        color: #9f9f9f;
        background: #201f26;
        border-radius: 2rem;
    }

    .search-mobile-btn span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .search-page-container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .search-page-container .search-head {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .search-actress-list {
        gap: 0.5rem;
    }

    .search-actress-list img {
        width: 3.5rem;
        height: 3.5rem;
    }

    .search-hot-list a {
        height: 3.5rem;
        margin-bottom: 0.6rem;
    }

    .search-hot-title,
    .search-hot-count {
        font-size: 1.3rem;
    }

    .search-hot-rank,
    .search-hot-fire {
        flex-basis: 2.4rem;
        width: 2.4rem;
        height: 2.4rem;
    }
}

/* The empty search page is a standalone H5 view. Keep these pixel values in
 * sync with the frontend prototype instead of inheriting the site's rem scale. */
.search-landing-body {
    min-width: 0;
    background: #1c1c1d;
    scrollbar-color: #5f5b61 #171719;
    scrollbar-width: thin;
}

.search-landing-body::-webkit-scrollbar {
    width: 6px;
}

.search-landing-body::-webkit-scrollbar-track {
    background: #171719;
}

.search-landing-body::-webkit-scrollbar-thumb {
    background: #5f5b61;
    border: 1px solid #171719;
    border-radius: 6px;
}

.search-landing-body::-webkit-scrollbar-thumb:hover {
    background: #ffbc01;
}

.search-landing-body #site-header,
.search-landing-body #site-footer {
    display: none !important;
}

.search-landing-body .search-page-container {
    box-sizing: border-box;
    display: block !important;
    width: 100%;
    max-width: 600px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 70px 15px 20px;
    font-size: 16px;
    background: #1c1c1d;
}

.search-landing-body .search-page-container .search-head {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 99999;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 600px;
    height: 50px;
    margin: 0;
    padding: 0 15px;
    background: #1c1c1d;
    transform: translateX(-50%);
}

.search-landing-body .search-back {
    flex: 0 0 20px;
    width: 20px;
    height: 24px;
    margin-right: 10px;
}

.search-landing-body .search-back img {
    width: 20px;
    height: 24px;
}

.search-landing-body .search-page-container .search-input-box {
    box-sizing: border-box;
    height: 36px;
    gap: 0;
    padding: 0 12px;
    border-radius: 18px;
}

.search-landing-body .search-page-container .search-input-box > img {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.search-landing-body .search-page-container .search-input-box input {
    min-width: 0;
    padding: 0;
    font-size: 14px;
}

.search-landing-body .search-page-submit {
    flex: 0 0 60px;
    width: 60px;
    height: 34px;
    margin-left: 8px;
    padding: 0;
    font-size: 14px;
    line-height: 34px;
    border-radius: 17px;
}

.search-landing-body .search-page-container section {
    margin-bottom: 16px;
}

.search-landing-body .search-page-container h3 {
    margin: 18px 0 10px;
}

.search-landing-body .search-heading {
    font-size: 14px;
}

.search-landing-body .search-heading i {
    width: 3px;
    height: 16px;
    margin-right: 6px;
}

.search-landing-body .search-history-clear {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
}

.search-landing-body .search-history-clear img {
    width: 14px;
    height: 14px;
    margin-right: 4px;
}

.search-landing-body .search-history-list {
    gap: 8px;
    margin-bottom: 16px;
}

.search-landing-body .search-history-list a {
    height: 28px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 28px;
    border-radius: 4px;
}

.search-landing-body .search-hostory-box .no-data {
    padding-bottom: 10px;
    font-size: 12px;
}

.search-landing-body .search-actress-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 16px;
}

.search-landing-body .search-actress-list img {
    width: 44px;
    height: 44px;
    margin-bottom: 4px;
}

.search-landing-body .search-actress-list span {
    margin-top: 4px;
    font-size: 11px;
    line-height: 16px;
}

.search-landing-body .search-hot-list a {
    height: 40px;
    margin-bottom: 1px;
    font-size: 14px;
}

.search-landing-body .search-hot-rank {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    font-size: 13px;
}

.search-landing-body .search-hot-title {
    font-size: 13px;
}

.search-landing-body .search-hot-fire {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    align-self: center;
}

.search-landing-body .search-hot-count {
    flex: 0 0 42px;
    width: 42px;
    font-size: 12px;
    line-height: 16px;
    text-align: right;
}
