/* ===================== 全局基础（暗色风格） ===================== */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

html {
    line-height: 1;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
button,
input,
textarea {
    color: #d8d8d8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "Source Sans Pro", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    outline: none;
    background: #121212;
}

a {
    color: inherit;
    text-decoration: none;
}

a img {
    border: none;
    display: block;
    width: 100%;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

@media (min-width: 769px) {
    .container {
        padding: 0 20px;
    }
}

/* ===================== 头部（用作 search 页自己的顶条，与你现有 head 颜色接近） ===================== */
.header {
    background: #434343;
    padding: 0px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

.header .container::after {
    content: "";
    display: block;
    clear: both;
}

.header__logo {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

@media (min-width: 769px) {
    .header__logo {
        float: left;
        font-size: 22px;
    }

    .header__ios-badge-link {
        display: block;
        float: right;
        transform: translateY(2px);
    }

    .header__ios-badge {
        display: block;
        height: 34px;
        width: auto;
    }
}

/* ===================== 搜索区域 ===================== */
.form {
    padding: 20px 0 4px;
}

@media (min-width: 769px) {
    .form {
        padding: 26px 0 4px;
    }
}

/* 搜索行 */
.form > .container {
    max-width: 800px;
}

/* 输入框容器 */
.form__field {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* 输入框 */
.form__input {
    appearance: none;
    border: 1px solid #2a2a2f;
    border-radius: 999px;
    background: #1d1d22;
    width: 100%;
    margin-top: 10px;
    color: #f5f5f5;
    font-size: 14px;
    padding: 10px 44px 10px 16px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease,
        transform .1s ease;
}

.form__input::placeholder {
    color: #7a7a85;
}

/* 聚焦效果 */
.form__input:focus {
    background: #202028;
    border-color: #ff4272;
    box-shadow: 0 0 0 1px rgba(255, 66, 114, .6);
    transform: translateY(-1px);
}

/* 右侧统计小字（可留空，不影响） */
.form__field::before {
    content: attr(data-count);
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
    pointer-events: none;
}

/* 搜索按钮区域 */
.action {
    margin-top: 10px;
}

.action > .container {
    max-width: 800px;
    padding: 0;
}

/* 搜索按钮 */
.action__button {
    border: none;
    cursor: pointer;
    display: block;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    height: 40px;
    line-height: 40px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #ff4272 0%, #ff7043 100%);
    box-shadow: 0 4px 16px rgba(255, 66, 114, .35);
    transition: transform .1s ease, box-shadow .2s ease, opacity .2s ease;
}

.action__button:hover {
    opacity: .96;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 66, 114, .5);
}

/* PC：输入框 + 按钮一行 */
@media (min-width: 769px) {
    .form > .container {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .form__field {
        flex: 1;
        margin: 0;
    }

    .action {
        margin-top: 0;
    }

    .action > .container {
        max-width: none;
        padding: 0;
    }

    .action__button {
        margin: 0;
        width: 150px;
        height: 40px;
        line-height: 40px;
        font-size: 13px;
    }
}

/* 移动端：输入框 + 按钮上下排 */
@media (max-width: 768px) {
    .form > .container {
        display: block;
    }

    .form__field {
        width: 100%;
    }

    .action > .container {
        width: 100%;
    }

    .action__button {
        max-width: 100%;
        margin-top: 8px;
    }
}

/* ===================== 顶部提示文案 ===================== */
.disclaimer {
    margin-top: 10px;
}

.disclaimer__text {
    font-size: 13px;
    color: #8b8b95;
    text-align: center;
}

/* ===================== 热门搜索标签 ===================== */
.TagArea_tagarea__b9DDP {
    margin-top: 18px;
}

.TagArea_tagarea__b9DDP ul {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.TagArea_tagarea__b9DDP li {
    width: auto;
}

.TagArea_tagarea__b9DDP li a {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    background: #1d1d23;
    color: #c5c5ce;
    border: 1px solid #2f2f3a;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease,
        transform .1s ease, box-shadow .15s ease;
}

.TagArea_tagarea__b9DDP li a:hover {
    background: #ff4272;
    color: #fff;
    border-color: #ff4272;
    box-shadow: 0 2px 10px rgba(255, 66, 114, .5);
    transform: translateY(-1px);
}

/* ===================== 视频结果列表 ===================== */
.SearchVideoShelf_items_container__3JT-6 {
    margin: 22px auto 26px;
    padding: 0 8px;
    max-width: 1200px;
}

.SearchVideoShelf_items_container__3JT-6 ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 默认：移动端 2 个一排 */
.SearchVideoShelf_items_container__3JT-6 li {
    width: 48%;
    margin-bottom: 16px;
}

/* 卡片外层 */
.SearchVideoShelf_searh_item__Vi0NL {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #101015;
    border: 1px solid #24242b;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .7);
    transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}

/* 封面图 */
.SearchVideoShelf_searh_item__Vi0NL img {
    width: 100%;
    height: 32vw;
    object-fit: cover;
    transition: transform .25s ease, opacity .2s ease;
}

/* 悬停效果 */
.SearchVideoShelf_searh_item__Vi0NL:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .9);
    border-color: #ff4272;
}

.SearchVideoShelf_searh_item__Vi0NL:hover img {
    transform: scale(1.04);
    opacity: .96;
}

/* 右下角角标 */
.SearchVideoShelf_searh_item__Vi0NL span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    min-width: 42px;
    padding: 0 8px;
    height: 20px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .78);
    color: #fefefe;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
}

/* 卡片文字区域 */
.SearchVideoShelf_search_bottom_section__1pkFM {
    margin-top: 6px;
}

.SearchVideoShelf_search_bottom_section__1pkFM h3 {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    color: #f0f0f0;
}

.SearchVideoShelf_search_bottom_section__1pkFM h3 a {
    color: #f0f0f0;
}

.SearchVideoShelf_search_bottom_section__1pkFM h3 a:hover {
    color: #ff4272;
}

.SearchVideoShelf_search_bottom_section__1pkFM h3 a span {
    color: #ff4272;
}

.SearchVideoShelf_search_bottom_section__1pkFM span {
    display: block;
    font-size: 11px;
    line-height: 1.4;
    color: #8d8d99;
    margin-top: 2px;
}

/* PC：4 个一排 */
@media (min-width: 769px) {
    .SearchVideoShelf_items_container__3JT-6 {
        padding: 0;
    }

    .SearchVideoShelf_items_container__3JT-6 ul {
        justify-content: flex-start;
    }

    .SearchVideoShelf_items_container__3JT-6 li {
        width: 23.5%;
        margin-right: 2%;
        margin-bottom: 22px;
    }

    .SearchVideoShelf_items_container__3JT-6 li:nth-child(4n) {
        margin-right: 0;
    }

    .SearchVideoShelf_searh_item__Vi0NL img {
        height: 190px;
    }
}

/* ===================== 分页 ===================== */
.PageChooser_page_navi__16y4X {
    width: 100%;
    text-align: center;
    padding: 8px 0 24px;
}

.PageChooser_page_navi__16y4X a {
    text-decoration: none;
    color: #a0a0aa;
}

.PageChooser_page_navi__16y4X .PageChooser_pagenum__3ThNA {
    display: inline-block;
    min-width: 34px;
    margin: 0 3px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 999px;
    background: #18181f;
    border: 1px solid #2e2e38;
    color: #b9b9c5;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease,
        transform .1s ease, box-shadow .15s ease;
}

.PageChooser_page_navi__16y4X .PageChooser_pagenum__3ThNA:hover {
    background: #ff4272;
    color: #fff;
    border-color: #ff4272;
    box-shadow: 0 2px 10px rgba(255, 66, 114, .6);
    transform: translateY(-1px);
}

.PageChooser_page_navi__16y4X .PageChooser_pagenum__3ThNA.PageChooser_current__1AtpD {
    background: #ff4272;
    color: #fff;
    border-color: #ff4272;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 66, 114, .7);
}

.PageChooser_page_navi__16y4X .PageChooser_extend__3fVgw {
    width: auto;
}

/* ===================== 无数据提示 ===================== */
.nodata_alert {
    margin: 60px auto;
    text-align: center;
    color: #8b8b95;
    font-size: 13px;
}
/* 搜索页整体容器：给顶部预留空间，避免被广告挡住 */
.search-page {
    padding-top: 70px;  /* 按需可改成 60/80 */
}

/* 兼容：有顶部广告 .gy_gg 时再多空一点 */
.gy_gg + .search-page {
    padding-top: 90px;
}

