/* Home page presentation layer. Business behavior stays in search.js. */
:root {
    --home-blue: #087cff;
    --home-blue-dark: #0064e8;
    --home-ink: #071534;
    --home-muted: #647494;
    --home-border: #dce9f7;
    --home-panel: rgba(255, 255, 255, 0.91);
}

.home-page {
    color: var(--home-ink);
    background: #f3faff url('../images/home/search-bg-desktop.png') center top / 100% auto no-repeat;
    min-height: 100vh;
}

.home-page > main.container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.home-page .site-topbar {
    height: 64px;
    padding: 0 max(6.4vw, 32px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(218, 231, 246, 0.86);
    position: relative;
    z-index: 5;
}

.home-page .site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--home-ink);
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .02em;
}

.home-page .brand-mark {
    width: 39px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    border-radius: 16px 16px 12px 12px;
    background: linear-gradient(145deg, #21b9ff, #0577ee);
    box-shadow: 0 6px 15px rgba(15, 129, 240, .24);
    transform: rotate(-2deg);
}

.home-page .brand-mark i {
    transform: rotate(2deg);
}

.home-page .topbar-links {
    display: flex;
    align-items: center;
    gap: 38px;
}

.home-page .topbar-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5d6f8d;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.home-page .search-container {
    width: min(1328px, calc(100% - 112px));
    max-width: none;
    margin: 0 auto;
    padding: 20px 0 0;
}

.home-page .hero-search-card {
    width: min(820px, 72vw);
    margin: 0 auto 18px !important;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    border: 0;
    animation: none;
    transform: none !important;
    opacity: 1 !important;
}

.home-page .hero-search-card:hover {
    transform: none;
    box-shadow: none;
}

.home-page .hero-search-card .card-body {
    padding: 0 !important;
}

.home-page .hero-search-card .card-title {
    margin: 0 0 2px !important;
    color: var(--home-ink);
    font-size: clamp(39px, 3.25vw, 54px) !important;
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.08;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.home-page .hero-search-card .card-title span {
    color: var(--home-blue);
}

.home-page .hero-search-card .card-title + p {
    color: #5a6b89 !important;
    font-size: 18px !important;
    line-height: 1.35;
    margin-bottom: 15px !important;
}

.home-page .quick-nav-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 680px;
    margin: 0 auto;
}

.home-page .quick-nav-btn {
    height: 43px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
    background: rgba(255,255,255,.75);
    box-shadow: 0 4px 14px rgba(47, 107, 177, .08);
}

.home-page .quick-nav-btn:nth-child(1) { color: #087cff; border: 1px solid #bbdcff; background: #eef7ff; }
.home-page .quick-nav-btn:nth-child(2) { color: #00a944; border: 1px solid #bcebd0; background: #effbf3; }
.home-page .quick-nav-btn:nth-child(3) { color: #ff7900; border: 1px solid #ffe0b8; background: #fff8ee; }
.home-page .quick-nav-btn:nth-child(4) { color: #7b31e8; border: 1px solid #dec8ff; background: #f7f1ff; }
.home-page .quick-nav-btn i { font-size: 18px; }
.home-page .quick-nav-btn:hover { transform: translateY(-1px); }

.home-page #unifiedSearchForm {
    margin-top: 15px;
    padding: 3px;
    border: 1px solid #72b5ff;
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 8px 24px rgba(34, 105, 188, .12), 0 0 0 4px rgba(255,255,255,.55);
}

.home-page #unifiedSearchForm.search-focused,
.home-page #unifiedSearchForm:focus-within {
    border-color: #1687ff;
    box-shadow: 0 8px 24px rgba(34, 105, 188, .15), 0 0 0 4px rgba(22, 135, 255, .12);
}

.home-page #unifiedSearchForm .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    align-items: stretch;
}

.home-page #unifiedSearchForm .col-md-6:first-child { flex: 0 0 74%; max-width: 74%; }
.home-page #unifiedSearchForm .col-md-6:last-child { flex: 0 0 26%; max-width: 26%; }

.home-page #unifiedSearchForm .input-group,
.home-page #unifiedSearchForm .form-control,
.home-page #searchBtn {
    height: 58px;
}

.home-page #unifiedSearchForm .input-group,
.home-page #unifiedSearchForm .input-group:hover,
.home-page #unifiedSearchForm .input-group:focus-within {
    transform: none !important;
    box-shadow: none !important;
}

.home-page #unifiedSearchForm .input-group-text {
    width: 58px;
    justify-content: center;
    border: 0;
    color: var(--home-blue);
    background: transparent;
    font-size: 24px;
}

.home-page #searchKeyword {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: #233453;
    font-size: 17px;
    font-weight: 500;
    padding-left: 4px;
}

.home-page #searchKeyword:hover,
.home-page #searchKeyword:focus,
.home-page #searchKeyword:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

.home-page #searchKeyword::placeholder { color: #7887a1; opacity: 1; }

.home-page #searchBtn {
    border-radius: 11px;
    background: linear-gradient(135deg, #0784ff, #0067e9);
    box-shadow: 0 6px 14px rgba(0, 112, 238, .26);
    font-size: 17px;
    font-weight: 700;
}

.home-page #searchBtn:hover,
.home-page #searchBtn:focus,
.home-page #searchBtn:focus-visible,
.home-page #searchBtn:active {
    margin: 0 !important;
    outline: 0 !important;
    transform: none !important;
}

.home-page #searchBtn::before { display: none !important; }

.home-page .trending-searches {
    min-height: 34px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    white-space: nowrap;
}

.home-page .trending-label {
    color: #344866;
    font-size: 13px;
    font-weight: 700;
}

.home-page .trending-label i { color: #ff4e18; margin-right: 5px; }

.home-page .trending-searches button {
    height: 27px;
    padding: 0 12px;
    border: 1px solid #e2ebf5;
    border-radius: 8px;
    background: rgba(248, 251, 255, .9);
    color: #62718c;
    font-size: 12px;
    box-shadow: 0 2px 7px rgba(48, 90, 140, .06);
}

.home-page .trending-searches button:hover { color: var(--home-blue); border-color: #add2ff; }
.home-page .trending-searches .more-hot-keywords { border: 0; background: transparent; box-shadow: none; padding: 0 4px; }

.home-page #searchResults,
.home-page #noResults {
    margin: 16px auto;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.93);
    box-shadow: 0 12px 32px rgba(35, 95, 160, .10);
}

/* Search-results presentation */
.home-page.has-search-results .search-container {
    width: min(1120px, calc(100% - 48px));
    padding-top: 34px;
}

.home-page.has-search-results .hero-search-card {
    width: min(820px, 78vw);
    margin-bottom: 17px !important;
}

.home-page.has-search-results .hero-search-card .card-title,
.home-page.has-search-results .hero-search-card .card-title + p,
.home-page.has-search-results .quick-nav-shell {
    display: none !important;
}

.home-page.has-search-results #unifiedSearchForm { margin-top: 0; }

.home-page #searchResults {
    margin: 0 auto 10px;
    padding: 16px 20px 10px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 17px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 34px rgba(49, 99, 153, .09);
    backdrop-filter: blur(16px);
}

.home-page .search-results-header {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.home-page .search-results-header h5 {
    margin: 0;
    color: var(--home-ink);
    font-size: 21px;
    font-weight: 900;
}

.home-page .search-results-header h5 i { color: #087cff !important; }

.home-page .search-results-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.home-page .result-summary {
    align-items: center;
    color: #738099;
    font-size: 12px;
}

.home-page .result-summary strong {
    margin: 0 3px;
    color: #53647e;
    font-weight: 800;
}

.home-page #toggleResultsBtn {
    height: 36px;
    min-width: 78px;
    padding: 0 15px !important;
    border: 0;
    border-radius: 18px !important;
    background: linear-gradient(135deg, #087fff, #006bea);
    box-shadow: 0 5px 13px rgba(0, 111, 237, .22) !important;
    font-size: 13px;
    font-weight: 700;
}

.home-page #resultsList {
    display: grid;
    gap: 10px;
    margin: 0;
}

.home-page .result-item {
    min-height: 100px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 4px 14px rgba(54, 98, 148, .055);
    backdrop-filter: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.home-page .result-item:hover {
    border-color: #a9d2ff;
    box-shadow: 0 8px 22px rgba(36, 102, 175, .11) !important;
    transform: translateY(-1px);
}

.home-page .result-card-layout {
    min-height: 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 285px 18px;
    align-items: center;
    gap: 18px;
}

.home-page .result-content { min-width: 0; }

.home-page .result-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.home-page .result-hot-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 18px;
    line-height: 1.25;
}

.home-page .result-title {
    min-width: 0;
    margin: 0 !important;
    color: #111d36 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    word-break: break-word;
}

.home-page .result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 5px 0 6px 28px;
}

.home-page .result-tag {
    min-width: 44px;
    height: 21px;
    padding: 1px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: #60718d;
    background: #f0f5fb;
    font-size: 11px;
    line-height: 19px;
    white-space: nowrap;
}

.home-page .result-tag-primary {
    color: #0878ee;
    background: #e9f4ff;
    font-weight: 700;
}

.home-page .result-netdisk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-left: 28px;
}

.home-page .result-netdisk-btn {
    width: 124px;
    height: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #087cff;
    border-radius: 5px;
    color: #0878ee;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.home-page .result-netdisk-btn img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.home-page .result-netdisk-btn:hover,
.home-page .result-netdisk-btn:focus-visible {
    color: #fff;
    background: #087cff;
    box-shadow: 0 4px 10px rgba(8, 124, 255, .2);
    outline: 0;
}

.home-page .result-meta {
    min-width: 0;
    padding: 5px 0 5px 22px;
    display: grid;
    gap: 8px;
    border-left: 1px solid #e0e8f2;
}

.home-page .result-meta small {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #718099;
    font-size: 12px;
    line-height: 1.2;
}

.home-page .result-meta small span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page .result-meta .fa-calendar-alt { color: #11c8e6; }
.home-page .result-meta .fa-star { color: #ef4054; }

.home-page .result-chevron {
    color: #087cff;
    font-size: 18px;
}

.home-page #pagination { margin-top: 10px; }
.home-page #pagination .pagination { gap: 6px; margin: 0; }
.home-page #pagination .page-link {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5e5f6;
    border-radius: 6px;
    color: #0878ee;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.home-page #pagination .page-item.active .page-link {
    border-color: #087cff;
    color: #fff;
    background: #087cff;
    box-shadow: 0 5px 13px rgba(0, 117, 244, .22);
}

.home-page #pagination .page-item.disabled .page-link {
    color: #a9bdd3;
    background: #f8fbfe;
}

.home-page #dailyUpdate {
    margin: 0 0 16px !important;
    padding: 18px 28px 14px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 17px;
    background: var(--home-panel);
    box-shadow: 0 12px 34px rgba(49, 99, 153, .08);
    backdrop-filter: blur(16px);
}

.home-page #dailyUpdate .daily-header {
    display: grid !important;
    grid-template-columns: minmax(350px, 1fr) auto;
    align-items: center !important;
    gap: 28px;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.home-page .daily-heading-copy {
    display: flex;
    align-items: baseline;
    gap: 18px;
    min-width: 0;
}

.home-page .daily-heading-copy h4 {
    flex: 0 0 auto;
    margin: 0;
    color: var(--home-ink);
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -.5px;
}

.home-page .daily-header .fire-icon {
    color: #ff4c16;
    font-size: 27px;
}

.home-page .daily-heading-copy small {
    color: #7b8aa3;
    font-size: 13px;
    white-space: nowrap;
}

.home-page .daily-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-page .category-tabs-wrapper {
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.home-page .category-tabs {
    gap: 8px;
}

.home-page .category-tab-btn {
    height: 44px;
    min-width: 145px;
    padding: 0 22px;
    border: 1px solid #d7e3f1;
    border-radius: 9px !important;
    background: rgba(248,251,255,.9);
    color: #596a87;
    font-size: 15px;
    font-weight: 700;
    box-shadow: none;
}

.home-page .category-tab-btn.active,
.home-page .category-tab-btn.active:hover {
    color: #fff;
    border-color: #0782ff;
    background: linear-gradient(135deg, #0786ff, #006bf0);
    box-shadow: 0 6px 14px rgba(0, 118, 245, .20);
}

.home-page .wechat-group-btn {
    height: 44px;
    padding: 0 20px;
    border: 1px solid #93c7ff;
    border-radius: 9px;
    color: #0878ee;
    background: #f6fbff;
    box-shadow: 0 4px 12px rgba(48, 113, 181, .09);
    white-space: nowrap;
}

.home-page .wechat-group-btn:hover { color: #0878ee; background: #edf7ff; }

.home-page .daily-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin-bottom: 12px;
}

.home-page .resource-card {
    min-height: 77px;
    padding: 12px 19px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e5edf6;
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 5px 16px rgba(37, 82, 130, .07);
}

.home-page .resource-card:hover {
    transform: translateY(-1px);
    border-color: #b8d9ff;
    box-shadow: 0 8px 20px rgba(37, 95, 160, .12);
}

.home-page .resource-card-title {
    align-items: center;
    gap: 12px;
}

.home-page .resource-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-page .resource-title-text {
    overflow: hidden;
    color: #101d38;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page .resource-tags {
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.home-page .resource-tag {
    height: 22px;
    padding: 2px 12px;
    flex: 0 0 auto;
    border-radius: 6px;
    background: #f0f4f9;
    color: #63738e;
    font-size: 12px;
    line-height: 18px;
}

.home-page .resource-tag-primary { color: #0878ee; background: #eaf4ff; }

.home-page .resource-toggle-icon {
    color: #0078ff;
    font-size: 20px;
}

.home-page .resource-card.expanded .resource-toggle-icon { transform: rotate(90deg); }

.home-page .resource-actions-direct {
    margin-top: 10px;
    padding-top: 10px;
    border-color: #edf2f7;
}

.home-page .resource-btn-direct {
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0784ff, #0068e8);
}

.home-page #dailyUpdate .pagination {
    gap: 7px;
    margin-top: 2px;
}

.home-page #dailyUpdate .page-link {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e5f2;
    border-radius: 7px;
    color: #0878ee;
    background: rgba(255,255,255,.95);
    font-weight: 600;
}

.home-page #dailyUpdate .page-item.active .page-link {
    border-color: var(--home-blue);
    background: var(--home-blue);
    color: #fff;
    box-shadow: 0 5px 13px rgba(0, 117, 244, .22);
}

.home-page #doubanHot {
    margin: 0 0 8px;
    padding: 14px 27px 12px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 17px;
    background: var(--home-panel);
    box-shadow: 0 12px 34px rgba(49, 99, 153, .08);
    backdrop-filter: blur(16px);
}

.home-page .douban-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
}

.home-page .douban-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}

.home-page .douban-heading h4 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: var(--home-ink);
}

.home-page .douban-heading small { color: #71819d; font-size: 13px; }

.home-page .douban-mark {
    width: 27px;
    height: 30px;
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.home-page .douban-mark i {
    width: 6px;
    border-radius: 3px;
    background: linear-gradient(180deg, #12c7ff, #0874f8);
}

.home-page .douban-mark i:nth-child(1) { height: 18px; }
.home-page .douban-mark i:nth-child(2) { height: 29px; }
.home-page .douban-mark i:nth-child(3) { height: 23px; }

.home-page .douban-more {
    border: 0;
    background: transparent;
    color: #677894;
    font-size: 13px;
}

.home-page .douban-tabs {
    width: 310px;
    margin: -38px auto 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.home-page .douban-tabs button {
    height: 38px;
    border: 1px solid #dbe6f2;
    border-radius: 7px;
    background: #f9fbfe;
    color: #5d6e88;
    font-size: 14px;
    font-weight: 700;
}

.home-page .douban-tabs button.active {
    border-color: #0780ff;
    color: #fff;
    background: linear-gradient(135deg, #0784ff, #006df3);
    box-shadow: 0 5px 13px rgba(0, 116, 244, .2);
}

.home-page #doubanHot .hot-panel {
    display: block !important;
    margin: 16px 0 0;
    padding: 14px 0 0;
    border-top: 1px solid #e2ebf5;
}

.home-page #doubanHot #hotMovies { margin-top: 8px; }

.home-page #doubanHot .hot-panel > .d-flex:first-child {
    display: flex !important;
    margin-bottom: 10px !important;
}

.home-page #doubanHot .hot-panel > .d-flex:first-child h4 {
    color: var(--home-ink) !important;
    font-size: 17px;
    font-weight: 800;
}

.home-page #doubanHot .hot-panel > .d-flex:first-child small { font-size: 12px; }
.home-page #doubanHot [id$="Pagination"] { display: none !important; }

.home-page #moviesList,
.home-page #tvList,
.home-page #varietyList {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.home-page #moviesList > div,
.home-page #tvList > div,
.home-page #varietyList > div {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.home-page #moviesList > div:nth-child(n+6),
.home-page #tvList > div:nth-child(n+6),
.home-page #varietyList > div:nth-child(n+6) { display: none; }

.home-page .movie-card,
.home-page .tv-card,
.home-page .variety-card {
    min-height: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.home-page .movie-card:hover,
.home-page .tv-card:hover,
.home-page .variety-card:hover { transform: translateY(-2px); box-shadow: none; }

.home-page .movie-poster,
.home-page .tv-poster,
.home-page .variety-poster {
    height: auto;
    aspect-ratio: 1.75 / 1;
    border-radius: 7px;
    background: #eaf2fa;
    box-shadow: 0 4px 12px rgba(28, 69, 112, .10);
}

.home-page .movie-info,
.home-page .tv-info,
.home-page .variety-info {
    min-height: 0;
    padding: 7px 0 0;
    display: block;
}

.home-page .movie-title,
.home-page .tv-title,
.home-page .variety-title {
    min-height: 0;
    margin: 0 0 3px;
    color: #14213b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.home-page .movie-year,
.home-page .tv-year,
.home-page .variety-year,
.home-page .movie-directors,
.home-page .tv-directors,
.home-page .variety-directors,
.home-page .movie-year-director,
.home-page .tv-year-director,
.home-page .variety-year-director { display: none; }

.home-page .movie-genres,
.home-page .tv-genres,
.home-page .variety-genres {
    display: flex;
    gap: 5px;
    margin: 0;
    overflow: hidden;
    flex-wrap: nowrap;
}

.home-page .movie-genre,
.home-page .tv-genre,
.home-page .variety-genre {
    padding: 2px 8px;
    flex: 0 0 auto;
    border-radius: 5px;
    background: #edf3f9;
    color: #677993;
    font-size: 10px;
    line-height: 16px;
}

.home-page .movie-rating,
.home-page .tv-rating,
.home-page .variety-rating {
    top: auto;
    right: auto;
    left: 7px;
    bottom: 7px;
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 10px;
}

.home-page .home-footer {
    padding: 2px 20px 16px;
    text-align: center;
    color: #6d7d97;
    font-size: 12px;
}

.home-page .home-footer div {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.home-page .home-footer i { font-style: normal; color: #a4afbf; }
.home-page .home-footer a { color: #667792; text-decoration: none; }
.home-page .home-footer p { margin: 2px 0 0; }

@media (max-width: 768px) {
    .home-page {
        background-image: url('../images/home/search-bg-mobile.png');
        background-size: 100% auto;
    }

    .home-page .site-topbar {
        height: 55px;
        padding: 0 18px;
    }

    .home-page .site-brand { gap: 8px; font-size: 16px; }
    .home-page .brand-mark { width: 30px; height: 23px; font-size: 12px; }
    .home-page .topbar-links { gap: 18px; }
    .home-page .topbar-links a { gap: 5px; font-size: 12px; }

    .home-page .search-container {
        width: calc(100% - 28px);
        padding-top: 22px !important;
    }

    .home-page.has-search-results .search-container {
        width: calc(100% - 20px);
        padding-top: 15px !important;
    }

    .home-page .hero-search-card {
        width: 100%;
        margin-bottom: 15px !important;
    }

    .home-page.has-search-results .hero-search-card {
        width: 100%;
        margin-bottom: 10px !important;
    }

    .home-page .hero-search-card .card-title {
        font-size: 31px !important;
        letter-spacing: -1.2px;
    }

    .home-page .hero-search-card .card-title + p {
        margin-bottom: 13px !important;
        font-size: 13px !important;
    }

    .home-page .quick-nav-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 9px;
        max-width: 285px;
    }

    .home-page .quick-nav-btn {
        height: 43px;
        padding: 0 10px;
        font-size: 14px;
    }

    .home-page #unifiedSearchForm {
        margin-top: 15px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-page #unifiedSearchForm.search-focused,
    .home-page #unifiedSearchForm:focus-within {
        border: 0;
        box-shadow: none;
    }

    .home-page #unifiedSearchForm .row { display: block; }
    .home-page #unifiedSearchForm .col-md-6:first-child,
    .home-page #unifiedSearchForm .col-md-6:last-child { max-width: none; width: 100%; }

    .home-page #unifiedSearchForm .input-group {
        height: 54px;
        margin-bottom: 8px;
        border: 1px solid #86bfff;
        border-radius: 10px;
        background: rgba(255,255,255,.9);
        box-shadow: 0 5px 16px rgba(35, 100, 170, .10);
        overflow: hidden;
    }

    .home-page #unifiedSearchForm .input-group:focus-within {
        border-color: #1687ff;
        box-shadow: 0 5px 16px rgba(35, 100, 170, .10), 0 0 0 3px rgba(22, 135, 255, .12) !important;
    }

    .home-page #unifiedSearchForm .input-group-text,
    .home-page #unifiedSearchForm .form-control,
    .home-page #searchBtn { height: 54px; }

    .home-page #unifiedSearchForm .input-group-text { width: 48px; font-size: 22px; }
    .home-page #searchKeyword { font-size: 14px; }
    .home-page #searchBtn { border-radius: 10px; font-size: 16px; }

    .home-page.has-search-results #unifiedSearchForm { margin-top: 0; }

    .home-page #searchResults {
        margin: 0 auto 8px;
        padding: 12px 9px 10px;
        border-radius: 14px;
    }

    .home-page .search-results-header {
        min-height: 39px;
        gap: 8px;
        margin-bottom: 9px;
        padding: 0 2px;
    }

    .home-page .search-results-header h5 { font-size: 18px; }
    .home-page .search-results-header-actions { gap: 6px; }
    .home-page #toggleResultsBtn {
        min-width: 66px;
        height: 32px;
        padding: 0 11px !important;
        font-size: 12px !important;
    }

    .home-page #resultsList { gap: 8px; }

    .home-page .result-item {
        min-height: 142px;
        padding: 11px 12px;
        border-radius: 9px;
    }

    .home-page .result-card-layout {
        min-height: 118px;
        display: block;
        position: relative;
    }

    .home-page .result-title-row { gap: 7px; padding-right: 17px; }
    .home-page .result-hot-icon { font-size: 15px; }
    .home-page .result-title {
        font-size: 13px !important;
        line-height: 1.4 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-page .result-tags {
        gap: 5px;
        margin: 5px 0 7px 22px;
        max-height: 20px;
        overflow: hidden;
    }

    .home-page .result-tag {
        min-width: 38px;
        height: 19px;
        padding: 0 7px;
        font-size: 9px;
        line-height: 19px;
    }

    .home-page .result-netdisk-actions { gap: 7px; margin-left: 22px; }
    .home-page .result-netdisk-btn {
        width: 104px;
        height: 29px;
        padding: 0 8px;
        gap: 5px;
        font-size: 11px;
    }
    .home-page .result-netdisk-btn img { width: 15px; height: 15px; }

    .home-page .result-meta {
        margin: 9px 17px 0 22px;
        padding: 7px 0 0;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px 12px;
        border-top: 1px solid #e8eef5;
        border-left: 0;
    }

    .home-page .result-meta small { gap: 5px; font-size: 9px; }
    .home-page .result-chevron {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 15px;
    }

    .home-page #pagination { margin-top: 9px; overflow-x: auto; scrollbar-width: none; }
    .home-page #pagination::-webkit-scrollbar { display: none; }
    .home-page #pagination .pagination { gap: 4px; flex-wrap: nowrap; }
    .home-page #pagination .page-link {
        min-width: 31px;
        height: 32px;
        padding: 0 7px;
        font-size: 11px;
    }

    .home-page .trending-searches {
        margin: 11px -5px 0;
        padding: 0 5px 2px;
        justify-content: flex-start;
        gap: 7px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .home-page .trending-searches::-webkit-scrollbar { display: none; }
    .home-page .trending-label { font-size: 12px; flex: 0 0 auto; }
    .home-page .trending-searches button { padding: 0 10px; flex: 0 0 auto; }
    .home-page .trending-searches .more-hot-keywords { display: none; }

    .home-page #dailyUpdate {
        padding: 13px 10px 12px;
        border-radius: 14px;
    }

    .home-page #dailyUpdate .daily-header {
        grid-template-columns: 1fr auto;
        gap: 9px;
        margin-bottom: 10px;
    }

    .home-page .daily-heading-copy {
        display: block;
        min-width: 0;
    }

    .home-page .daily-heading-copy h4 { font-size: 22px; }
    .home-page .daily-header .fire-icon { font-size: 25px; }
    .home-page .daily-heading-copy small {
        display: block;
        margin-top: 2px;
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .home-page .daily-header-actions { display: contents; }
    .home-page .daily-header-actions .category-tabs-wrapper {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .home-page .daily-header-actions .wechat-group-btn {
        grid-column: 2;
        grid-row: 1;
    }

    .home-page .category-tabs { width: 100%; gap: 7px; }
    .home-page .category-tabs .nav-item { flex: 1; }
    .home-page .category-tab-btn {
        width: 100%;
        min-width: 0;
        height: 42px;
        padding: 0 8px;
        font-size: 13px;
    }

    .home-page .wechat-group-btn {
        height: 39px;
        padding: 0 13px;
        font-size: 12px;
    }

    .home-page .daily-grid { grid-template-columns: 1fr; gap: 7px; }

    .home-page .resource-card {
        min-height: 69px;
        padding: 10px 13px;
        border-radius: 8px;
    }

    .home-page .resource-title-text { font-size: 14px; }
    .home-page .resource-copy { gap: 5px; }
    .home-page .resource-tags { gap: 6px; }
    .home-page .resource-tag { height: 20px; padding: 1px 9px; font-size: 10px; line-height: 18px; }
    .home-page .resource-toggle-icon { font-size: 17px; }

    .home-page #dailyUpdate .pagination { gap: 5px; flex-wrap: nowrap; }
    .home-page #dailyUpdate .page-link { min-width: 34px; height: 36px; padding: 0 8px; font-size: 12px; }

    .home-page #doubanHot { padding: 13px 10px 12px; border-radius: 14px; }
    .home-page .douban-heading { gap: 8px; }
    .home-page .douban-heading h4 { font-size: 21px; }
    .home-page .douban-heading small { display: none; }
    .home-page .douban-mark { width: 24px; height: 27px; }

    .home-page #doubanHot .hot-panel {
        margin-top: 12px;
        padding-top: 10px;
    }

    .home-page #doubanHot #hotMovies { margin-top: 6px; }
    .home-page #doubanHot .hot-panel > .d-flex:first-child { margin-bottom: 8px !important; }
    .home-page #doubanHot .hot-panel > .d-flex:first-child h4 { font-size: 15px; }
    .home-page #doubanHot .hot-panel > .d-flex:first-child small { display: none; }

    .home-page #moviesList,
    .home-page #tvList,
    .home-page #varietyList { gap: 7px; }

    .home-page .movie-poster,
    .home-page .tv-poster,
    .home-page .variety-poster {
        aspect-ratio: .76 / 1;
        border-radius: 6px;
    }

    .home-page .movie-info,
    .home-page .tv-info,
    .home-page .variety-info { padding-top: 5px; }

    .home-page .movie-title,
    .home-page .tv-title,
    .home-page .variety-title { font-size: 10px; }

    .home-page .movie-genres,
    .home-page .tv-genres,
    .home-page .variety-genres { display: none; }

    .home-page .movie-year-director,
    .home-page .tv-year-director,
    .home-page .variety-year-director {
        display: block;
        margin: 0;
        color: #75839a;
        font-size: 9px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .home-page .movie-rating,
    .home-page .tv-rating,
    .home-page .variety-rating { left: 4px; bottom: 4px; padding: 1px 3px; font-size: 8px; }

    .home-page .home-footer { padding: 4px 22px 16px; font-size: 10px; line-height: 1.5; }
    .home-page .home-footer div { gap: 6px; }
}

@media (min-width: 769px) {
    .home-page .site-topbar { height: 48px; }
    .home-page .search-container { padding-top: 27px; }
    .home-page #unifiedSearchForm { margin-top: 22px; }
    .home-page .hero-search-card { margin-bottom: 11px !important; }
}

@media (max-width: 390px) {
    .home-page .site-topbar { padding: 0 13px; }
    .home-page .topbar-links { gap: 10px; }
    .home-page .topbar-links a { font-size: 11px; }
    .home-page .search-container { width: calc(100% - 20px); }
    .home-page .hero-search-card .card-title { font-size: 28px !important; }
    .home-page .daily-heading-copy h4 { font-size: 20px; }
    .home-page .daily-heading-copy small { max-width: 215px; }
}
