.search-main {
    padding: 16px 0 48px;
    background: var(--bg);
}

.search-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* ===== 左侧主内容 ===== */
.search-content {
    flex: 1;
    min-width: 0;
}

.search-content-inner {
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
}

/* ===== 搜寻结果标题 ===== */
.search-result-header {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    margin-bottom: 10px;
    border-left: 4px solid var(--accent);
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.5;
}

.search-kw {
    color: var(--accent);
    font-style: normal;
    font-weight: 700;
}

.search-count {
    color: var(--accent);
    font-weight: 700;
}

.search-result-tip {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.search-result-tip p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

.tip-link {
    color: var(--accent);
    text-decoration: underline;
}

.tip-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== 搜寻结果列表 ===== */
.search-list {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 0 0 10px;
    padding: 0;
    overflow: hidden;
}

.search-card {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.search-card:last-child { border-bottom: none; }
.search-card:hover { background: #fafafa; }

.sc-thumb-link { flex-shrink: 0; }

.sc-thumb {
    position: relative;
    width: 80px;
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    margin: 0;
}

.sc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.search-card:hover .sc-thumb img { transform: scale(1.05); }

.sc-score {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

.sc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sc-info-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sc-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: color 0.15s;
}

.sc-title:hover { color: var(--accent); }

.sc-cat {
    font-size: 11px;
    color: var(--accent);
    background: var(--accent-light);
    padding: 1px 7px;
    border-radius: 3px;
    flex-shrink: 0;
}

.sc-meta {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-desc {
    -webkit-line-clamp: 2;
    color: var(--text-light);
}

.sc-meta-label {
    color: var(--text-muted);
    font-weight: 500;
}

.sc-detail-link {
    font-size: 12px;
    color: var(--accent);
    margin-top: auto;
    display: inline-block;
}

.sc-detail-link:hover { text-decoration: underline; }

/* ===== 最近更新区块 ===== */
.search-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    margin-top: 4px;
}

.search-section-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.search-more {
    font-size: 12px;
    color: var(--text-muted);
}

.search-more:hover { color: var(--accent); }

.search-recent {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 10px;
    padding: 0;
}

.search-recent .vod-card { flex: 0 0 calc(16.666% - 9px); }

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.page-btn,
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid var(--border-mid);
    background: var(--bg-white);
    color: var(--text-light);
    transition: all 0.15s;
}

.page-btn:hover,
.page-num:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.page-num.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
}

/* ===== 右侧 Sidebar ===== */
.search-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.ssb-block {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}

.ssb-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.ssb-rank-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.ssb-rank-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.ssb-rank-item:last-child { border-bottom: none; }

.ssb-rn {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #f0f0f0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ssb-rn--1 { background: var(--accent); color: #fff; }
.ssb-rn--2 { background: #f5a623; color: #fff; }
.ssb-rn--3 { background: #ffc600; color: #fff; }

.ssb-rank-name {
    flex: 1;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}

.ssb-rank-name:hover { color: var(--accent); }

.ssb-cat {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg);
    padding: 1px 5px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* ===== 相关演员 ===== */
.search-actors {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 16px;
    margin-bottom: 10px;
}

.search-actors:not(:has(.search-actor-card)) { display: none; }

.search-actors-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.search-actors-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.search-actors-title iconify-icon { color: var(--accent); font-size: 17px; }

.search-actor-row {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0;
    padding: 0 0 2px;
}

.search-actor-row::-webkit-scrollbar { display: none; }

.search-actor-row > li {
    flex: 0 0 70px;
}

.search-actor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.search-actor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-light);
    border: 2px solid var(--border-mid);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-muted);
    transition: border-color 0.15s;
    margin: 0;
}

.search-actor-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.search-actor-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 70px;
    transition: color 0.15s;
}

.search-actor-card:hover .search-actor-name { color: var(--accent); }
.search-actor-card:hover .search-actor-avatar { border-color: var(--accent); }

/* ===== RWD ===== */
@media (max-width: 1024px) {
    .search-sidebar { width: 200px; }
    .search-recent .vod-card { flex: 0 0 calc(25% - 8px); }
}

@media (max-width: 767px) {
    .search-main { padding: 0 0 68px; }

    .search-container {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .search-sidebar { display: none; }

    .search-result-header {
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-bottom: 1px solid var(--border);
        margin-bottom: 0;
    }

    .search-actors {
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
        border-bottom: 8px solid var(--bg);
    }

    .search-list {
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 0;
        border-bottom: 8px solid var(--bg);
    }

    .search-card { padding: 12px 14px; gap: 10px; }

    .sc-thumb { width: 65px; }

    .search-section-header {
        padding: 14px 14px 0;
        margin-bottom: 8px;
    }

    .search-recent {
        padding: 0 14px;
        gap: 7px;
        border-bottom: 8px solid var(--bg);
        padding-bottom: 14px;
    }

    .search-recent .vod-card { flex: 0 0 calc(33.333% - 5px); }

    .pagination { padding: 12px 0; }
}

@media (max-width: 479px) {
    .search-recent .vod-card { flex: 0 0 calc(33.333% - 5px); }
    .sc-thumb { width: 60px; }
    .sc-title { font-size: 14px; }
}