/* 搜索页面样式 */
.search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.search-header {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.search-box {
    width: 350px;
}

.search-box .form-control {
    border-radius: 20px;
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.search-box .form-control:focus {
    box-shadow: 0 0 0 3px rgba(13,110,253,0.15);
    border-color: #0d6efd;
}

.search-box .btn {
    border-radius: 20px;
    padding: 10px 20px;
    margin-left: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 0 0 8px 0 !important;
    margin-bottom: 10px;
}

.video-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding: 5px 0 0 0;
    margin-left: 2px;
}

.video-meta {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    font-size: 12px;
    color: #888;
    margin-left: 2px;
}

.card-img-wrapper {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-img-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 15px;
}

.card-img-overlay .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 15px;
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body .text-muted {
    font-size: 0.85rem;
}

.card-body .badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    background: #f8f9fa;
    color: #6c757d;
}

.no-results {
    padding: 80px 0;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.no-results-icon {
    color: #dee2e6;
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #495057;
    margin-bottom: 15px;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 25px;
}

.no-results .btn {
    padding: 10px 25px;
    border-radius: 20px;
}

/* 分页美化 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 28px 0 18px 0;
    flex-wrap: wrap;
}
.pagination .page-link {
    display: inline-block;
    min-width: 38px;
    padding: 7px 0;
    border-radius: 8px;
    border: 1.5px solid #eee;
    background: #fff;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.pagination .page-link:hover {
    background: #f8f9fa;
    border-color: #ddd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pagination .page-link.active,
.pagination .page-item.active .page-link {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 2px 8px rgba(13,110,253,0.3);
}

.pagination .page-dots {
    display: inline-block;
    min-width: 38px;
    padding: 7px 0;
    color: #999;
    text-align: center;
    font-size: 14px;
}

/* 新的分页样式 */
.pagination-wrapper {
    margin: 40px 0 20px 0;
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-item {
    margin: 0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1.2px solid #e0e0e0;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1;
}

.pagination-link:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13,110,253,0.10);
}

.pagination-item.pagination-active .pagination-link {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 2px 8px rgba(13,110,253,0.18);
}

.pagination-prev,
.pagination-next {
    gap: 2px;
    min-width: 56px;
    font-size: 13px;
}

.pagination-arrow {
    font-size: 14px;
    font-weight: bold;
}

.pagination-ellipsis {
    min-width: 32px;
    height: 32px;
}

.pagination-ellipsis-text {
    color: #999;
    font-size: 13px;
}

.pagination-info {
    font-size: 13px;
    gap: 4px;
}

.pagination-text {
    color: #666;
    font-size: 13px;
    font-weight: 400;
}

@media (max-width: 600px) {
    .pagination-link {
        min-width: 28px;
        height: 28px;
        padding: 3px 6px;
        font-size: 12px;
    }
    .pagination-prev,
    .pagination-next {
        min-width: 44px;
        font-size: 12px;
    }
    .pagination-info {
        font-size: 12px;
    }
    .pagination-text {
        font-size: 12px;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .search-box {
        width: 100%;
        margin-top: 15px;
    }
    
    .search-header .d-flex {
        flex-direction: column;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .pagination .page-link {
        padding: 6px 12px;
    }
}

/* 搜索结果行式布局 */
.video-list {
    width: 100%;
}
.video-row {
    display: flex;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 24px;
}
.video-row:last-child {
    border-bottom: none;
}
.video-cover {
    width: 140px;
    min-width: 140px;
    height: 190px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}
.video-title:hover {
    color: #d81e06;
}
.video-meta {
    color: #888;
    font-size: 0.98rem;
    margin-bottom: 16px;
    line-height: 1.8;
}
.video-actions {
    display: flex;
    gap: 12px;
}
.video-actions .btn-danger {
    background: #d81e06;
    border: none;
    color: #fff;
    font-weight: 500;
    border-radius: 20px;
    padding: 7px 22px;
    font-size: 1rem;
    transition: background 0.2s;
}
.video-actions .btn-danger:hover {
    background: #b31204;
}
.video-actions .btn-outline-secondary {
    border-radius: 20px;
    padding: 7px 22px;
    font-size: 1rem;
    border: 1px solid #ccc;
    color: #666;
    background: #fff;
    transition: background 0.2s, color 0.2s;
}
.video-actions .btn-outline-secondary:hover {
    background: #f5f5f5;
    color: #d81e06;
    border-color: #d81e06;
}
@media (max-width: 768px) {
    .video-row {
        flex-direction: column;
        gap: 12px;
        padding: 18px 0;
    }
    .video-cover {
        width: 100%;
        min-width: 0;
        height: 180px;
        margin-bottom: 8px;
    }
    .video-info {
        padding-left: 0;
    }
    .video-title {
        font-size: 1rem;
    }
    .video-meta {
        font-size: 0.92rem;
    }
    .video-actions .btn-danger,
    .video-actions .btn-outline-secondary {
        font-size: 0.95rem;
        padding: 6px 14px;
    }
}

/* 三栏布局 */
.search-layout {
    display: flex;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}
.search-sidebar-left {
    width: 0;
    min-width: 0;
}
.search-main {
    flex: 1 1 0%;
    min-width: 0;
}
.search-sidebar-right {
    width: 280px;
    min-width: 220px;
    max-width: 320px;
}
@media (max-width: 1100px) {
    .search-layout {
        gap: 0;
    }
    .search-sidebar-right {
        width: 200px;
        min-width: 140px;
    }
}
@media (max-width: 900px) {
    .search-layout {
        flex-direction: column;
    }
    .search-sidebar-left,
    .search-sidebar-right {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .search-sidebar-right {
        margin-top: 32px;
    }
    body .nav-bar {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    body .nav-bar::-webkit-scrollbar {
        display: none;
    }
    body .nav-bar a {
        font-size: 15px;
        min-width: 44px;
        padding: 8px 0;
    }
    body .header-main {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important;
    }
    body .logo {
        flex: 0 0 auto;
        margin-right: 10px;
    }
    body .logo img {
        height: 38px !important;
    }
    body .search-form {
        flex: 1 1 0%;
        max-width: 60vw;
        margin-top: 0;
        margin-left: 10px;
        width: auto;
    }
    body .search-form input {
        width: 100%;
        font-size: 14px;
        border-radius: 16px;
        padding: 0 34px 0 10px;
        height: 32px;
    }
    body .search-form button {
        height: 28px;
        width: 28px;
        right: 2px;
        top: 2px;
    }
    body .video-title {
        font-weight: normal !important;
        font-size: 14px !important;
    }
    body .video-meta {
        margin-bottom: 0 !important;
    }
    body .site-footer {
        font-size: 13px !important;
        line-height: 1.7 !important;
        padding: 18px 0 8px 0 !important;
    }
    body .footer-content {
        padding: 0 8px !important;
    }
    body .footer-links {
        font-size: 13px !important;
        gap: 0 4px !important;
        margin-bottom: 6px !important;
    }
    body .footer-disclaimer, body .footer-note {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }
    .search-main h1,
    .search-main .h3,
    .search-main h3 {
        font-size: 18px !important;
        margin-block-start: 0.5em;
        margin-block-end: 0.5em;
        font-weight: 600;
    }
    .main-section {
        padding-bottom: 0 !important;
    }
    .hot-section {
        border-bottom: 1px solid #eee;
    }
}
@media (max-width: 600px) {
    body .nav-bar {
        justify-content: flex-start!important;
        gap: 20px !important;
        padding-left: 7px !important;
        padding-right: 7px !important;
    }
    body .nav-bar a {
        font-size: 14px !important;
        min-width: 38px !important;
        padding: 7px 0 !important;
    }
    body .logo {
        margin-left: 4px !important;
        margin-top: 4px !important;
    }
    body .logo img {
        height: 32px !important;
    }
    body .search-form {
        max-width: 65vw;
        margin-left: 6px;
    }
    body .search-form input {
        font-size: 12px;
        border-radius: 12px;
        height: 26px;
        padding: 0 28px 0 8px;
    }
    body .search-form button {
        height: 22px;
        width: 22px;
    }
    body .header-main {
        padding: 8px 6px !important;
    }
    body .video-title {
        font-size: 13px !important;
    }
    body .site-footer {
        font-size: 12px !important;
        line-height: 1.6 !important;
        padding: 12px 0 4px 0 !important;
    }
    body .footer-content {
        padding: 0 3px !important;
    }
    body .footer-links {
        font-size: 12px !important;
        gap: 0 2px !important;
        margin-bottom: 4px !important;
    }
    body .footer-disclaimer, body .footer-note {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }
    
    /* WAP端搜索页面隐藏热播榜 */
    .search-sidebar-right {
        display: none !important;
    }
}

/* 热播榜样式（可根据 includes/hotlist.php 结构微调） */
.search-sidebar-right {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 24px 18px 18px 18px;
    font-size: 1rem;
}
.search-sidebar-right h3,
.search-sidebar-right .hotlist-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #d81e06;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-sidebar-right .hotlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.search-sidebar-right .hotlist-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f2f2f2;
    font-size: 0.98rem;
}
.search-sidebar-right .hotlist-list li:last-child {
    border-bottom: none;
}
.search-sidebar-right .hotlist-rank {
    width: 22px;
    text-align: center;
    font-weight: bold;
    color: #d81e06;
    margin-right: 8px;
}
.search-sidebar-right .hotlist-title-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-sidebar-right .hotlist-ep {
    color: #aaa;
    font-size: 0.92em;
    margin-left: 8px;
}
@media (max-width: 900px) {
    .search-sidebar-right {
        margin-top: 24px;
        padding: 18px 10px 10px 10px;
    }
}

/* ====== 以下为 static/css/style.css 合并内容，供兼容和补充 ====== */

/* 全局变量 */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2c2c2c;
    --accent-color: #ff5c38;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* 头部样式增强 */
body .site-header {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    border-bottom: 2px solid #ff5c38 !important;
    position: sticky;
    top: 0;
    z-index: 100;
}
body .header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    max-width: 1200px;
    margin: 0 auto;
}
body .logo img {
    display: block;
    height: 40px;
}
body .nav-bar {
    display: flex;
    gap: 32px;
    justify-content: center;
    border-bottom: 1px solid #ff5c38;
    background: #fff;
    padding: 0 0 8px 0;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
body .nav-bar a {
    color: #333;
    font-size: 18px;
    padding: 8px 0;
    position: relative;
    text-decoration: none;
    transition: color .2s;
    background: none;
    border: none;
    outline: none;
    min-width: 44px;
    display: inline-block;
    text-align: center;
}
body .nav-bar a.active,
body .nav-bar a:hover {
    color: #ff5c38;
    font-weight: bold;
}
body .nav-bar a.active::after,
body .nav-bar a:hover::after {
    content: '';
    display: block;
    height: 2px;
    background: #ff5c38;
    width: 100%;
    position: absolute;
    left: 0; bottom: -8px;
    border-radius: 2px;
}
body .search-form {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1 1 auto;
    max-width: 180px;
}
body .search-form input {
    width: 100%;
    height: 38px;
    border-radius: 19px;
    border: 1px solid #eee;
    padding: 0 38px 0 14px;
    font-size: 15px;
    background: #fafbfc;
    outline: none;
    transition: border .2s;
}
body .search-form input:focus {
    border: 1.5px solid #ff5c38;
}
body .search-form button {
    position: absolute;
    right: 2px;
    top: 2px;
    height: 34px;
    width: 34px;
    background: none;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}
body .search-form button:hover {
    background: #e54b2a;
}
body .search-form .icon-search {
    display: block;
}

/* 底部美化 */
body > footer.site-footer, body > .site-footer {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
    margin: 32px 0 0 0 !important;
    padding: 24px 0 12px 0 !important;
    color: #666 !important;
    font-size: 15px !important;
}
body > footer.site-footer .footer-content, body > .site-footer .footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 10px;
}
body > footer.site-footer .footer-disclaimer, body > .site-footer .footer-disclaimer {
    color: #d81e06;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}
body > footer.site-footer .footer-note, body > .site-footer .footer-note {
    color: #666;
    margin-bottom: 10px;
}
body > footer.site-footer .footer-links, body > .site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 8px;
    margin-bottom: 10px;
    font-size: 15px;
}
body > footer.site-footer .footer-link, body > .site-footer .footer-link,
body > footer.site-footer .footer-links a, body > .site-footer .footer-links a {
    color: #ff5c38;
    text-decoration: none !important;
    margin: 0 2px;
    font-size: 15px;
    transition: color .2s;
}
body > footer.site-footer .footer-link:hover, body > .site-footer .footer-link:hover,
body > footer.site-footer .footer-links a:hover, body > .site-footer .footer-links a:hover {
    color: #d32f2f;
    text-decoration: underline;
}
body > footer.site-footer .footer-copyright, body > .site-footer .footer-copyright {
    color: #aaa;
    margin: 0;
    font-size: 0.95rem;
}
@media (max-width: 600px) {
    body > footer.site-footer, body > .site-footer {
        font-size: 13px !important;
        border-radius: 7px !important;
        padding: 14px 0 6px 0 !important;
        margin: 16px 0 0 0 !important;
    }
    body > footer.site-footer .footer-content, body > .site-footer .footer-content {
        padding: 0 3px;
    }
    body > footer.site-footer .footer-links, body > .site-footer .footer-links {
        font-size: 13px;
        gap: 0 4px;
        margin-bottom: 6px;
    }
    body > footer.site-footer .footer-disclaimer, body > .site-footer .footer-disclaimer,
    body > footer.site-footer .footer-note, body > .site-footer .footer-note {
        font-size: 12px;
        margin-bottom: 6px;
    }
}

/* 恢复主页WAP版排版样式 */
@media (max-width: 900px) {
    .container {
        max-width: 100vw;
        padding-left: 5px;
        padding-right: 5px;
    }
    .main-center .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px 6px;
    }
    .main-center .video-card,
    .hot-section .video-card {
        min-height: 0 !important;
        height: unset !important;
    }
    .main-center .video-title {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }
    .main-right {
        display: none !important;
    }
    .new-rank-list li {
        min-height: 30px;
        font-size: 14px;
    }
    .main-center .video-actors {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}
@media (max-width: 600px) {
    .video-grid {
        padding: 0;
    }
    .main-section.three-col-layout {
        margin-bottom: 10px;
    }
    .video-title {
        padding: 5px 0 0 0;
    }
    .video-thumbnail {
        padding-top: 140%;
    }
    .video-score {
        display: none;
    }
}

.video-card a, .video-card a:visited, .video-card a:active, .video-card a:hover {
    color: #222;
    text-decoration: none !important;
}
.video-card .video-title {
    color: #222;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.video-card .video-meta {
    color: #888;
    font-size: 12px;
    margin-top: 2px;
    display: flex;
    gap: 10px;
}
.video-card .video-meta span {
    color: #888;
}

/* 子栏目导航美化 */
.sub-categories {
    margin: 18px 0 24px 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 10px 0 6px 0;
    overflow-x: auto;
}
.sub-categories-list {
    display: flex;
    gap: 12px;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
}
.sub-categories-list::-webkit-scrollbar {
    display: none;
}
.sub-category-link {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    background: #f5f5f5;
    color: #333;
    font-size: 15px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}
.sub-category-link:hover {
    background: #ffe3d7;
    color: #d81e06;
}
.sub-category-link.active {
    background: #ff5c38;
    color: #fff;
    font-weight: bold;
    border: 1px solid #ff5c38;
    box-shadow: 0 2px 8px rgba(255,92,56,0.08);
}
@media (max-width: 900px) {
    .sub-categories {
        margin: 12px 0 16px 0;
        border-radius: 6px;
        padding: 6px 0 4px 0;
    }
    .sub-categories-list {
        gap: 8px;
        padding: 0 6px;
    }
    .sub-category-link {
        font-size: 14px;
        padding: 5px 12px;
        border-radius: 16px;
    }
}

/* 栏目头部美化 */
.container > .channel-header {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 14px 16px 10px 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.container > .channel-header .breadcrumb {
    font-size: 14px;
    color: #888;
    margin: 0 0 2px 0;
    padding: 0;
}
.container > .channel-header .breadcrumb a {
    color: #2196f3;
    text-decoration: none;
}
.container > .channel-header .breadcrumb a:hover {
    color: #ff5c38;
}
.container > .channel-header .section-title {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}
@media (max-width: 900px) {
    .container > .channel-header {
        border-radius: 7px;
        padding: 10px 8px 7px 8px;
        margin-bottom: 8px;
        gap: 4px;
    }
    .container > .channel-header .breadcrumb {
        font-size: 13px;
    }
    .container > .channel-header .section-title {
        font-size: 18px;
    }
}

/* 强化底部链接颜色，防止被全局 a 样式覆盖 */
.site-footer .footer-links a,
.site-footer .footer-link,
footer.site-footer .footer-links a,
footer.site-footer .footer-link {
    color: #ff5c38 !important;
    text-decoration: none !important;
    transition: color .2s;
}
.site-footer .footer-links a:hover,
.site-footer .footer-link:hover,
footer.site-footer .footer-links a:hover,
footer.site-footer .footer-link:hover {
    color: #d32f2f !important;
    text-decoration: underline !important;
}

/* 栏目页视频标题只显示一行，超出省略号隐藏 */
.main-center .video-title,
.video-grid .video-title,
.video-card .video-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    height: auto !important;
    max-width: 100%;
}

.site-footer, .site-footer .footer-content, .site-footer .footer-disclaimer, .site-footer .footer-note, .site-footer .footer-links, .site-footer .footer-copyright {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
}

/* 栏目页视频主演只显示一行，超出省略号隐藏 */
.main-center .video-meta,
.video-grid .video-meta,
.video-card .video-meta {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    max-width: 100%;
}

/* 栏目页视频卡片更紧凑，去掉 .video-info 的 padding */
.main-center .video-info,
.video-grid .video-info,
.video-card .video-info {
    padding: 0 !important;
}

/* 搜索页按钮美化 */
.search-main .btn-primary,
.search-main .btn-primary:hover,
.search-main .btn-primary:focus,
.search-main .btn-primary:active {
    text-decoration: none !important;
    border: none !important;
    background-color: #ff5c38 !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    transition: background-color 0.2s !important;
}

.search-main .btn-primary:hover {
    background-color: #d32f2f !important;
}

/* 搜索表单一行显示，按钮不换行，内容垂直居中（最终修正版） */
.search-main .search-box form {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100%;
}
.search-main .search-box .form-control {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin-right: 8px !important;
    height: 44px !important;
    font-size: 16px;
    border-radius: 22px;
    box-sizing: border-box;
}
.search-main .search-box button.btn.btn-primary {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    padding: 0 32px !important;
    font-size: 18px !important;
    border-radius: 22px !important;
    margin-left: 0 !important;
    gap: 8px;
    min-width: unset !important;
    line-height: 1 !important;
}
@media (max-width: 600px) {
    .search-main .search-box .form-control {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 38px !important;
        font-size: 15px !important;
        border-radius: 19px !important;
        padding: 0 10px !important;
        margin-right: 6px !important;
        box-sizing: border-box;
        max-width: unset !important;
    }
    .search-main .search-box button.btn.btn-primary {
        flex: 0 0 auto !important;
        height: 38px !important;
        font-size: 15px !important;
        border-radius: 19px !important;
        padding: 0 14px !important;
        min-width: 60px !important;
        line-height: 1 !important;
        margin-left: 0 !important;
    }
}

body, html {
    overflow-x: hidden;
}
@media (max-width: 600px) {
    html, body {
        width: 100vw !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
        overflow-x: hidden !important;
    }
    .container, .search-header, .search-main, .main-center {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        box-sizing: border-box;
    }
    .search-main .search-box form {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
    .search-main .search-box .form-control {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        height: 36px !important;
        font-size: 15px !important;
        border-radius: 18px !important;
        padding: 0 10px !important;
        box-sizing: border-box;
        margin: 0 !important;
    }
    .search-main .search-box button.btn.btn-primary {
        flex: 0 0 auto !important;
        height: 36px !important;
        font-size: 16px !important;
        border-radius: 18px !important;
        padding: 0 18px !important;
        margin-left: 8px !important;
        line-height: 1 !important;
        box-sizing: border-box;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        min-width: 60px !important;
        width: auto !important;
    }
    .search-main .search-box button.btn.btn-primary .search-btn-text {
        display: inline !important;
    }
}

/* 播放页主内容美化 */
.video-detail {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 28px 28px 18px 28px;
    margin-bottom: 24px;
}
@media (max-width: 900px) {
    .video-detail {
        border-radius: 8px;
        padding: 14px 6px 10px 6px;
        margin-bottom: 12px;
    }
}
.video-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.video-player-container {
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    margin: 24px auto 32px auto;
    position: relative;
    min-height: 360px;
    overflow: hidden;
}
.video-player-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border-radius: 12px;
}
.video-info {
    padding: 0 0 8px 0 !important;
    margin-bottom: 10px;
}
.video-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
@media (max-width: 900px) {
    .video-title {
        font-size: 17px;
        font-weight: 600;
    }
}
.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 14px;
    color: #888;
    margin-bottom: 0;
}
.video-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.playlist-section {
    background: #fafbfc;
    border-radius: 8px;
    padding: 14px 12px 10px 12px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.playlist-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.playlist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.episode-link {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 16px;
    background: #fff;
    color: #333;
    font-size: 14px;
    border: 1px solid #eee;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.episode-link.active, .episode-link:hover {
    background: #ff5c38;
    color: #fff;
    border: 1px solid #ff5c38;
}
.video-description {
    background: #fafbfc;
    border-radius: 8px;
    padding: 14px 12px 10px 12px;
    margin-bottom: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.video-description h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.video-description p {
    color: #444;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}
.related-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 18px 10px 10px 10px;
    margin-bottom: 18px;
}
.related-section .section-title {
    font-size: 18px;
    font-weight: 600;
    color: #d81e06;
    margin: 0 0 14px 0;
}

/* play.php 面包屑美化 */
.container > .breadcrumb {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 8px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}
.container > .breadcrumb a {
    color: #2196f3;
    text-decoration: none;
    transition: color 0.2s;
}
.container > .breadcrumb a:hover {
    color: #ff5c38;
    text-decoration: underline;
}

/* WAP下播放列表按钮居中 */
@media (max-width: 900px) {
    .playlist-grid {
        justify-content: center !important;
    }
}

/* 播放器下方工具栏按钮美化与居中 */
.player-toolbar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(0,0,0,0.18);
    border-radius: 18px;
    padding: 4px 8px;
    display: flex;
    gap: 8px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.player-toolbar button {
    background: #ff5c38;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s;
    outline: none;
}
.player-toolbar button:hover {
    background: #d32f2f;
}
@media (max-width: 900px) {
    .player-toolbar {
        top: 6px;
        right: 6px;
        padding: 2px 4px;
        gap: 4px;
        border-radius: 12px;
    }
    .player-toolbar button {
        font-size: 12px;
        padding: 3px 8px;
        border-radius: 10px;
    }
}

/* loading-logo 绝对居中于播放器区域 */
.video-player-container {
    position: relative;
}
.loading-logo {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: rgba(0,0,0,0.12);
    min-height: unset;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}
.loading-logo img {
    height: 48px;
    max-width: 90%;
    opacity: 0.8;
    margin-bottom: 8px;
}
.loading-logo div {
    color: #888;
    font-size: 14px;
    margin-top: 8px;
}

/* WAP端加载logo修复 */
@media (max-width: 600px) {
    .video-player-container {
        position: relative !important;
        overflow: hidden !important;
        min-height: 200px !important;
        aspect-ratio: 16/9 !important;
    }
    .loading-logo {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10 !important;
        background: rgba(0,0,0,0.12) !important;
        min-height: unset !important;
        text-align: center !important;
    }
    .loading-logo img {
        height: 36px !important;
        max-width: 80% !important;
        opacity: 0.8 !important;
        margin-bottom: 6px !important;
    }
    .loading-logo div {
        color: #888 !important;
        font-size: 12px !important;
        margin-top: 6px !important;
    }
    
    /* 强制隐藏加载logo */
    .loading-logo[style*="display: none"] {
        display: none !important;
    }
    .loading-logo.hidden {
        display: none !important;
    }
}

/* 播放器工具栏点击显示 */
.video-player-container {
    cursor: pointer;
}

.player-toolbar {
    transition: opacity 0.3s ease;
}

.player-toolbar.hide {
    opacity: 0;
    pointer-events: none;
}

.player-toolbar.show {
    opacity: 1;
    pointer-events: auto;
}

/* Channel页面布局样式 */
.channel-layout {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.channel-main {
    /* 主内容区域 */
}

.channel-sidebar-right {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
}

.hotlist-placeholder {
    text-align: center;
}

.hotlist-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.hotlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hotlist-list li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .channel-layout {
        grid-template-columns: 1fr 250px;
    }
}

@media (max-width: 900px) {
    .channel-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .channel-sidebar-right {
        order: -1;
    }
}

@media (max-width: 600px) {
    .channel-layout {
        gap: 15px;
    }
    
    .channel-sidebar-right {
        display: none; /* WAP模式下隐藏热播榜 */
    }
    
    .hotlist-title {
        font-size: 16px;
    }
}

/* 面包屑导航样式修复 */
.breadcrumb-nav {
    padding: 12px 0;
    margin-bottom: 0;
}

.breadcrumb-nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    list-style: none;
    padding-left: 0;
}

.breadcrumb-item {
    color: #6c757d;
    display: inline;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
    font-weight: bold;
    margin: 0 8px;
}

.breadcrumb-item a {
    color: #0d6efd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

@media (max-width: 600px) {
    .breadcrumb-nav {
        padding: 5px 0 10px 10px;
    }
    
    .breadcrumb-nav .container {
        padding: 0 10px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 6px;
    }
}

/* 首页热门推荐大图卡片样式优化 */
.video-card-large.hot-large-only {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.hot-large-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin: 18px 18px 8px 18px;
    text-align: left;
    min-height: 2.2em;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hot-large-info {
    padding: 12px 18px 0 18px;
    font-size: 15px;
    color: #555;
    background: #fff;
    flex-shrink: 0;
}
.hot-large-actor {
    margin-bottom: 6px;
    color: #888;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hot-large-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 6px;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    overflow: hidden;
}
@media (max-width: 900px) {
    .hot-large-info, .hot-large-title, .video-card-large.hot-large-only { display: none !important; }
}

.video-desc {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.channel-sidebar-right .rank-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
    border-bottom: 2px solid #ffe3d7;
    padding-bottom: 6px;
}
.channel-sidebar-right .rank-list,
.channel-sidebar-right .new-rank-list {
    list-style: none !important;
    counter-reset: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.channel-sidebar-right .rank-list li,
.channel-sidebar-right .new-rank-list li {
    margin-bottom: 10px;
    padding-left: 0;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 15px;
}
.channel-sidebar-right .rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
    background: #f5f5f5;
    color: #bbb;
    flex-shrink: 0;
}
.channel-sidebar-right .new-rank-list li:nth-child(1) .rank-num { background: #ff5c38; color: #fff; }
.channel-sidebar-right .new-rank-list li:nth-child(2) .rank-num { background: #ff9c38; color: #fff; }
.channel-sidebar-right .new-rank-list li:nth-child(3) .rank-num { background: #ffc438; color: #fff; }
.channel-sidebar-right .rank-list a,
.channel-sidebar-right .new-rank-list a {
    flex: 1;
    margin-left: 0;
    color: #222;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    white-space: normal !important;
}
.channel-sidebar-right .rank-list a:hover,
.channel-sidebar-right .new-rank-list a:hover {
    color: var(--accent-color);
}

.filter-bar {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 18px;
    padding: 18px 0 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 18px;
}
.filter-label {
    min-width: 60px;
    color: #ff5c38;
    font-weight: 500;
    margin-right: 18px;
    font-size: 15px;
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.filter-btn {
    display: inline-block;
    padding: 4px 18px;
    border-radius: 18px;
    background: #f8f8f8;
    color: #333;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s;
}
.filter-btn.active, .filter-btn:hover {
    background: #ff5c38;
    color: #fff;
    border: 1px solid #ff5c38;
}
@media (max-width: 600px) {
    .container, .filter-bar {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .filter-row {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .filter-options {
        width: 100vw !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .filter-label {
        min-width: 44px;
        font-size: 13px;
        margin-right: 0;
        margin-bottom: 4px;
    }
    .filter-options {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px;
        min-width: 0;
        width: 100%;
        max-width: 100vw;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .filter-options::-webkit-scrollbar {
        display: none;
    }
    .filter-btn {
        font-size: 13px;
        padding: 3px 10px;
        white-space: nowrap;
    }
    .filter-bar { padding: 0 0 4px 0 !important; }
}

/* 强力覆盖PC端猜你喜欢为6列，移动端3列（assets） */
.related-section .video-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 20px !important;
    padding: 0 !important;
}
@media (max-width: 900px) {
  .related-section .video-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .related-section .video-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px 4px !important;
  }
}

/* PC端播放器响应式优化 */
@media (min-width: 900px) {
    .video-player-container {
        max-width: 1000px;
        min-height: 480px;
        aspect-ratio: 16/9;
    }
}

@media (min-width: 1200px) {
    .video-player-container {
        max-width: 1100px;
        min-height: 540px;
        aspect-ratio: 16/9;
    }
}

@media (min-width: 1400px) {
    .video-player-container {
        max-width: 1200px;
        min-height: 600px;
        aspect-ratio: 16/9;
    }
}

/* PC端搜索头部样式优化 */
@media (min-width: 601px) {
    .search-header {
        padding: 15px 20px;
        margin-bottom: 25px;
        border-radius: 8px;
    }
    
    .search-header .h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
        line-height: 1.4;
    }
    
    .search-header .text-muted {
        font-size: 14px !important;
        margin-bottom: 0 !important;
    }
}

/* WAP端搜索头部样式优化 */
@media (max-width: 600px) {
    .search-header {
        padding: 12px 15px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .search-header .h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
        line-height: 1.3;
    }
    
    .search-header .text-muted {
        font-size: 13px !important;
        margin-bottom: 0 !important;
    }
    
    .search-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .search-header {
        padding: 10px 12px;
        margin-bottom: 15px;
    }
    
    .search-header .h3 {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }
    
    .search-header .text-muted {
        font-size: 12px !important;
    }
}

/* 搜索页面右侧榜单样式 */
.main-right {
    width: 300px;
    min-width: 240px;
    margin-left: 20px;
    margin-right: 24px;
}

.rank-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rank-title .icon-hot {
    color: #ff5c38;
    font-size: 20px;
}

.new-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-rank-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.new-rank-list li:last-child {
    border-bottom: none;
}

.new-rank-list .rank-num {
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    background: #f5f5f5;
    color: #999;
}

.new-rank-list li:nth-child(1) .rank-num {
    background: #ff5c38;
    color: #fff;
}

.new-rank-list li:nth-child(2) .rank-num {
    background: #ff9c38;
    color: #fff;
}

.new-rank-list li:nth-child(3) .rank-num {
    background: #ffc438;
    color: #fff;
}

.new-rank-list a {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.new-rank-list a:hover {
    color: #ff5c38;
}

.rank-tag {
    font-size: 12px;
    color: #999;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .main-right {
        width: 240px;
        min-width: 200px;
        margin-right: 12px;
    }
}

@media (max-width: 900px) {
    .main-right {
        display: none;
    }
}

/* 只影响搜索页右侧热播榜的右侧间距 */
.search-main .main-right,
.search-layout .main-right {
    margin-right: 24px;
}
@media (max-width: 1100px) {
    .search-main .main-right,
    .search-layout .main-right {
        margin-right: 12px;
    }
}

.container {
    padding-left: 24px;
    padding-right: 24px;
    /* 保持已有的最大宽度和其他样式 */
}
@media (max-width: 1100px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.container > .main-right {
    margin-right: 24px;
}
@media (max-width: 1100px) {
    .container > .main-right {
        margin-right: 12px;
    }
}

body.index .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}
@media (max-width: 1200px) {
    body.index .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (min-width: 1200px) {
    .main-center .video-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 18px 12px !important;
    }
}

@media (min-width: 900px) {
    .channel-sidebar-right .rank-list a,
    .channel-sidebar-right .new-rank-list a {
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
    }
} 