/* 全局变量 */
: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;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #222;
    background: #fafbfc;
    margin: 0;
    border: none;
}

.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-bottom: 2px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    max-width: 1200px;
    margin: 0 auto;
}
.logo svg {
    display: block;
    height: 40px;
}
.search-form {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1 1 auto;
    max-width: 180px;
}
.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;
}
.search-form input:focus {
    border: 1.5px solid #ff5c38;
}
.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;
}
.search-form button:hover {
    background: #e54b2a;
}
.search-form .icon-search {
    display: block;
}
.logo svg {
    display: block;
    height: 36px;
    width: 100px;
}

.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; /* Firefox */
}
.nav-bar::-webkit-scrollbar {
    display: none;
}
.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;
}
.nav-bar a.active,
.nav-bar a:hover {
    color: #ff5c38;
    font-weight: bold;
}
.nav-bar a.active::after,
.nav-bar a:hover::after {
    content: '';
    display: block;
    height: 2px;
    background: #ff5c38;
    width: 100%;
    position: absolute;
    left: 0; bottom: -8px;
    border-radius: 2px;
}
@media (max-width: 900px) {
    .nav-bar {
        gap: 18px;
        padding: 0 0 8px 0;
        font-size: 16px;
    }
    .nav-bar a {
        font-size: 16px;
        min-width: 44px;
        padding: 8px 0;
    }
}
@media (max-width: 600px) {
    .nav-bar {
        gap: 10px;
        padding: 0 0 6px 0;
        font-size: 15px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .nav-bar::-webkit-scrollbar {
        display: none;
    }
    .nav-bar a {
        font-size: 15px;
        min-width: 44px;
        padding: 8px 0;
        text-decoration: none;
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 热门推荐区块 */
.hot-section {
    margin: 20px 0;
}

.hot-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.hot-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hot-update-info {
    font-size: 14px;
    color: var(--text-light);
}

.icon-hot {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg fill="%23ff5c38" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 2C10.343 2 9 3.343 9 5c0 1.657 1.343 3 3 3s3-1.343 3-3c0-1.657-1.343-3-3-3zm0 18c-4.418 0-8-3.582-8-8 0-2.21 1.79-4 4-4h8c2.21 0 4 1.79 4 4 0 4.418-3.582 8-8 8z"/></svg>') no-repeat center/contain;
}

/* 视频网格布局 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

/* ================= PC端栏目区块布局统一优化 ================ */
.main-section.three-col-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
}

.main-center .video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px 12px;
}

.main-center .video-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 240px;
}

.main-center .video-thumb {
    aspect-ratio: 3/4;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    flex: 1 1 auto;
}

.main-center .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0; top: 0;
}

.main-center .video-title {
    padding: 4px 4px 2px 4px;
    font-size: 15px;
    text-align: center;
    min-height: 2.2em;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none;
    margin: 0;
}

.main-center .video-actors {
    color: #999999;
    font-size: 13px;
    margin: 0 8px 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.4;
    padding: 0;
}
/* ========== END PC端栏目区块布局统一优化 ========== */

/* 右侧榜单 */
.main-right {
    width: 100%;
    background: none;
}

.rank-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
    border-bottom: 2px solid #ffe3d7;
    padding-bottom: 6px;
}

.rank-title a {
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: normal;
}

.rank-title a:hover {
    text-decoration: underline;
}

.rank-list {
    counter-reset: rank;
}

.rank-list li {
    margin-bottom: 10px;
    padding-left: 0;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.rank-list li::before {
    counter-increment: rank;
    content: counter(rank) ". ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 6px;
    font-size: 15px;
}

.rank-list a {
    color: var(--text-color);
    text-decoration: none;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-list a:hover {
    color: var(--accent-color);
}

/* 视频卡片通用样式 */
.video-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.video-card:hover {
    box-shadow: 0 8px 32px rgba(255,92,56,0.13);
    transform: translateY(-4px) scale(1.02);
    z-index: 2;
}

.video-title {
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    margin-top: 4px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .container {
        max-width: 100vw;
        padding-left: 10px;
        padding-right: 10px;
    }
    .main-center .video-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px 8px;
    }
    .hot-section .video-card-large.hot-large-only {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .container {
        width: 100vw !important;
        max-width: 100vw !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
    .hot-section {
        padding-left: 5px !important;
        padding-right: 5px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    .hot-section .video-grid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .hot-section .video-card {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .hot-section .video-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .hot-section .video-card {
        min-width: 0 !important;
        max-width: 100% !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }
    .main-center .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px 6px;
    }
    .main-center .video-card {
        min-height: unset !important;
        height: auto;
    }
    .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: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-center .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-section.three-col-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .rank-title {
        font-size: 16px;
    }
    .video-title {
        font-size: clamp(11px, 3.5vw, 14px);
        font-weight: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        padding-left: 0;
        padding-right: 0;
        padding-top: 6px;
        padding-bottom: 6px;
    }
    .main-center .video-card {
        min-height: unset;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }
    .main-center .video-thumb {
        aspect-ratio: 2/3;
        min-height: 0;
        padding-top: 0 !important;
        border-radius: 8px 8px 0 0;
    }
    .main-center .video-thumb img {
        border-radius: 8px 8px 0 0;
    }
    .main-center .video-title {
        font-size: 15px;
        padding: 6px 0 8px 0;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .main-center .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-section.three-col-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .rank-title {
        font-size: 15px;
    }
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
}
@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 900px) {
    .video-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
}
@media (max-width: 600px) {
    .main-center .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 4px;
    }
    .main-center .video-title {
        font-size: 12px;
        padding: 4px 2px 2px 2px;
        -webkit-line-clamp: 2;
    }
    .hot-title-row {
        display: flex;
        flex-direction: row;
        align-items: stretch !important;
        justify-content: space-between;
        margin-bottom: 4px;
        gap: 4px;
        min-height: 32px;
    }
    .hot-title, .hot-update-info {
        display: flex;
        align-items: center !important;
        justify-content: center;
        height: 100%;
        line-height: 1.2;
    }
    .hot-title {
        font-size: 16px;
        min-height: 32px;
    }
    .hot-update-info {
        font-size: 13px;
        padding: 0;
        margin: 0;
        height: auto;
        line-height: 1.2;
        min-height: 32px;
    }
    .video-title, .video-title a {
        text-decoration: none !important;
        color: inherit;
    }
}
.video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.video-card:hover {
    transform: translateY(-5px);
}
.video-thumb {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
}
.video-thumb img {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover;
    background: #eee;
}
.video-score {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    font-size: 11px;
    border-radius: 12px 0 12px 0;
    padding: 0 8px;
    background: rgba(255,92,56,0.96);
    color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    font-weight: 500;
    line-height: 22px;
    min-width: 22px;
    text-align: center;
    pointer-events: none;
    border-top-left-radius: 12px;
}
.video-title {
    text-align: center;
    font-size: 16px;
    color: #333;
    padding: 12px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 移除调试红框 */
body { border: none !important; }

/* 视频网格样式 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 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: 56.25%; /* 16:9 比例 */
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.4;
}

.video-info p {
    color: #666;
    font-size: 0.9rem;
}

/* 播放器页面样式 */
.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;
}
.video-player-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
    border-radius: 12px;
}
@media (max-width: 900px) {
    .video-player-container {
        max-width: 100vw;
        min-height: 180px;
    }
}

.loading-logo {
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    z-index: 5;
    display: none;
    text-align: center;
    padding: 30px 0;
    background: rgba(255,255,255,0.7);
    pointer-events: none;
}
.player-toolbar {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 99 !important;
    display: flex !important;
    pointer-events: auto !important;
}
.player-toolbar button {
    background: #fff;
    color: #222;
    border: none;
    border-radius: 32px;
    padding: 14px 36px;
    font-size: 18px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    outline: none;
}
.player-toolbar button:hover {
    background: #ff5c38;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,92,56,0.13);
}
.loading-logo img {
    height: 48px;
    opacity: 0.7;
}
.loading-logo div {
    color: #888;
    font-size: 14px;
    margin-top: 8px;
}

.video-details {
    margin-top: 20px;
}

.video-details h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    color: #666;
    font-size: 0.9rem;
}

.video-meta span {
    display: flex;
    align-items: center;
}

.video-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.video-meta a:hover {
    color: #333;
}

.video-description {
    line-height: 1.8;
    color: #333;
    margin-top: 20px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 4px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

/* 页脚样式 */
.site-footer {
    background: #fff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    color: #666;
    font-size: 15px;
    padding: 24px 0 12px 0;
    margin-top: 32px;
}
.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}
.footer-desc {
    color: #666;
    margin: 0;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 8px;
    margin-bottom: 10px;
    font-size: 15px;
}
.footer-link, .footer-links a {
    color: #ff5c38;
    text-decoration: none !important;
    margin: 0 2px;
    font-size: 15px;
    transition: color .2s;
}
.footer-link:hover, .footer-links a:hover {
    color: #d32f2f;
    text-decoration: underline;
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}
.copyright, .footer-copyright {
    color: #aaa;
    margin: 0;
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .footer, .site-footer {
        padding: 2rem 0 1rem;
        font-size: 13px;
        margin-top: 18px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        font-size: 13px;
    }
    .footer-links {
        justify-content: center;
        font-size: 13px;
        gap: 0 4px;
    }
    .footer-link, .footer-links a {
        font-size: 13px;
    }
    .footer-bottom {
        padding-top: 1rem;
    }
    .copyright, .footer-copyright {
        font-size: 12px;
    }
}

/* 分类展示区域样式 */
.category-section {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 0 15px;
}

.category-card {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.category-card a {
    text-decoration: none;
    color: inherit;
}

/* 分类视频区域样式 */
.category-videos {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 15px;
}

.category-header h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.more-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.more-link:hover {
    color: #333;
}

/* 相关推荐区域样式 */
.related-videos {
    margin-top: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.related-videos h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* 图片懒加载占位符 */
.video-thumbnail img {
    background-color: #f0f0f0;
}

/* 播放器加载状态 */
.video-player.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 播放器错误提示 */
.video-player.error::before {
    content: '视频加载失败，请刷新页面重试';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
}

/* 播放器控制栏样式 */
.video-player video::-webkit-media-controls {
    background-color: rgba(0, 0, 0, 0.5);
}

.video-player video::-webkit-media-controls-panel {
    padding: 0 10px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .video-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .video-description {
        padding: 10px;
    }
    
    .related-videos {
        padding: 15px;
    }
    
    .video-player {
        border-radius: 0;
    }
    
    .video-player video {
        border-radius: 0;
    }
}

.breadcrumb {
    margin: 20px 0 10px 0;
    font-size: 0.95rem;
    color: #888;
}
.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: #333;
}

/* 按钮美化 */
.more-link, .pagination a {
    border-radius: 20px;
    padding: 8px 20px;
    background: linear-gradient(90deg, #ffd700 0%, #ffb300 100%);
    color: #333;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255,215,0,0.08);
    border: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.more-link:hover, .pagination a:hover {
    background: linear-gradient(90deg, #ffb300 0%, #ffd700 100%);
    color: #111;
    box-shadow: 0 4px 16px rgba(255,215,0,0.15);
}
.pagination a.active {
    background: #333;
    color: #fff;
    border: none;
}

/* 响应式优化增强 */
@media (max-width: 600px) {
    .container { padding: 0 5px; }
    .category-header, .video-meta { flex-direction: column; align-items: flex-start; }
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-bottom: 2px solid var(--accent-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--primary-color);
    color: white;
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.search-box button {
    padding: 10px 20px;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: #e54b2a;
}

/* 视频卡片 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.video-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px 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;
    transition: var(--transition);
}

.video-info {
    padding: 12px;
}

.video-title {
    font-size: 14px;
    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-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

/* 分类标题 */
.section-title {
    font-size: 24px;
    font-weight: 600;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: var(--transition);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .search-box {
        width: 200px;
    }
}

@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .search-box {
        display: none;
    }
}

/* 视频详情页样式 */
.video-detail {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin: 20px 0;
}

.video-main {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 比例 */
    background: #000;
}

.video-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 14px;
}

.meta-item i {
    font-size: 16px;
}

.video-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.video-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.video-description p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

/* 播放列表样式 */
.playlist-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    box-shadow: var(--shadow);
}

.playlist-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.episode-link {
    display: block;
    padding: 8px 12px;
    text-align: center;
    background: #f5f5f5;
    border-radius: var(--border-radius);
    color: var(--text-color);
    transition: var(--transition);
}

.episode-link:hover {
    background: var(--primary-color);
    color: white;
}

.episode-link.active {
    background: var(--primary-color);
    color: white;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 10px 0;
    color: var(--text-light);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    color: var(--text-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .video-detail {
        grid-template-columns: 1fr;
    }
    
    .video-title {
        font-size: 20px;
    }
    
    .video-meta {
        gap: 10px;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .episode-link {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 图标样式 */
.icon-calendar,
.icon-globe,
.icon-user,
.icon-users,
.icon-eye,
.icon-star {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.icon-calendar {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z'/%3E%3C/svg%3E");
}

.icon-globe {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
}

.icon-user {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

.icon-users {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}

.icon-eye {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z'/%3E%3C/svg%3E");
}

.icon-star {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23666' d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}

/* 轮播图区域 */
.banner-section {
    margin-bottom: 30px;
}

.swiper-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.banner-info h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.banner-info p {
    font-size: 16px;
    opacity: 0.9;
}

/* 分类区域 */
.category-section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.section-title {
    font-size: 20px;
    color: var(--primary-color);
}

.section-title a {
    color: inherit;
}

.more-link {
    color: var(--accent-color);
    font-size: 14px;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-light);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.pagination a {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .swiper-container {
        height: 300px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .video-title {
        font-size: clamp(11px, 3.5vw, 14px);
        font-weight: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        padding-left: 0;
        padding-right: 0;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .section-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .swiper-container {
        height: 200px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .banner-info h3 {
        font-size: 18px;
    }

    .banner-info p {
        font-size: 14px;
    }
}

/* 错误消息 */
.error-message {
    background: #fff3f3;
    color: #d32f2f;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #ffcdd2;
}

/* 无数据提示 */
.no-videos,
.no-categories {
    text-align: center;
    padding: 30px;
    color: var(--text-light);
    background: #fff;
    border-radius: 8px;
    margin: 20px 0;
}

.hot-update-info {
    color: #888;
    font-size: 14px;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .hot-title-row {
        display: flex;
        flex-direction: row;
        align-items: stretch !important;
        justify-content: space-between;
        margin-bottom: 4px;
        gap: 4px;
        min-height: 32px;
    }
    .hot-title, .hot-update-info {
        display: flex;
        align-items: center !important;
        justify-content: center;
        height: 100%;
        line-height: 1.2;
    }
    .hot-title {
        font-size: 16px;
        min-height: 32px;
    }
    .hot-update-info {
        font-size: 13px;
        padding: 0;
        margin: 0;
        height: auto;
        line-height: 1.2;
        min-height: 32px;
    }
    .video-title, .video-title a {
        text-decoration: none !important;
        color: inherit;
    }
}

/* 首页三栏式布局 */
.main-section.three-col-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
    align-items: start;
    margin-bottom: 32px;
}
.main-left {
    /* 左侧大图推荐 */
}
.main-center {
    /* 中间视频网格 */
}
.main-right {
    /* 右侧榜单 */
}

/* 大图推荐卡片 */
.big-video-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.big-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}
.big-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.big-video-title {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 12px 12px 12px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 新榜单美化 */
.new-rank-list,
.new-rank-list li,
.new-rank-list ul,
.new-rank-list ol {
    list-style: none !important;
    counter-reset: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.new-rank-list li::marker,
.new-rank-list li::before {
    content: '' !important;
    display: none !important;
}
.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;
}
.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; }
.rank-tag {
    font-size: 15px;
    color: #bbb;
    margin-left: 12px;
    flex-shrink: 0;
}
.new-rank-list a {
    flex: 1;
    margin-left: 0;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
}

/* 榜单 */
.rank-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
    border-bottom: 2px solid #ffe3d7;
    padding-bottom: 6px;
}
.rank-title a {
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: normal;
}
.rank-title a:hover {
    text-decoration: underline;
}
.rank-list {
    counter-reset: rank;
}
.rank-list li {
    margin-bottom: 10px;
    padding-left: 0;
    position: relative;
    display: flex;
    align-items: center;
    font-size: 14px;
}
.rank-list li::before {
    counter-increment: rank;
    content: counter(rank) ". ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 6px;
    font-size: 15px;
}
.rank-list a {
    color: var(--text-color);
    text-decoration: none;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-list a:hover {
    color: var(--accent-color);
}

@media (max-width: 900px) {
    .main-section.three-col-layout {
        display: block;
    }
    .main-left, .main-center, .main-right {
        width: 100%;
        margin-bottom: 16px;
    }
    .big-video-title {
        font-size: 1rem;
    }
}

/* 分区间距和分割线 */
.main-section {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}
.main-section:last-child {
  border-bottom: none;
}

/* 视频网格更紧凑 */
.video-grid {
  gap: 8px !important;
  padding: 4px 0 0 0;
}

/* 榜单右侧宽度适当收窄 */
@media (min-width: 900px) {
  .three-col-layout {
    display: grid;
    grid-template-columns: 260px 1fr 180px;
    gap: 20px;
  }
}
@media (max-width: 899px) {
  .three-col-layout {
    display: block !important;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
  }
  .hot-section .video-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px 14px;
    align-items: stretch;
  }
  .hot-section .video-card-large {
    grid-row: 1 / span 2;
    grid-column: 1 / 2;
  }
  .hot-section .video-card:not(.video-card-large) {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .hot-section .video-card:not(.video-card-large) .video-thumb {
    flex: 1 1 auto;
    aspect-ratio: 3/4;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
  }
  .hot-section .video-card:not(.video-card-large) .video-title {
    flex-shrink: 0;
    padding: 10px 8px 8px 8px;
    font-size: 15px;
    text-align: center;
    min-height: 2.2em;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none;
  }
  .hot-section .video-card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .hot-section .video-card:nth-child(3) { grid-column: 3; grid-row: 1; }
  .hot-section .video-card:nth-child(4) { grid-column: 4; grid-row: 1; }
  .hot-section .video-card:nth-child(5) { grid-column: 5; grid-row: 1; }
  .hot-section .video-card:nth-child(6) { grid-column: 6; grid-row: 1; }
  .hot-section .video-card:nth-child(7) { grid-column: 7; grid-row: 1; }
  .hot-section .video-card:nth-child(8) { grid-column: 2; grid-row: 2; }
  .hot-section .video-card:nth-child(9) { grid-column: 3; grid-row: 2; }
  .hot-section .video-card:nth-child(10) { grid-column: 4; grid-row: 2; }
  .hot-section .video-card:nth-child(11) { grid-column: 5; grid-row: 2; }
  .hot-section .video-card:nth-child(12) { grid-column: 6; grid-row: 2; }
  .hot-section .video-card:nth-child(13) { grid-column: 7; grid-row: 2; }
  .hot-section .video-card:nth-child(n+14) { display: none; }
  .main-section .video-grid,
  .category-section .video-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    padding: 12px 0;
  }
  .video-card, .big-video-card {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    background: #fff;
  }
  .main-center .video-title,
  .hot-section .video-card:not(.video-card-large) .video-title {
    font-weight: normal;
  }
  .main-center .video-actors,
  .hot-section .video-card:not(.video-card-large) .video-actors {
    color: #999999;
    font-size: 13px;
    margin: 2px 8px 8px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.4;
  }
}

/* 视频标题和链接无下划线 */
.hot-section .video-title,
.hot-section .video-title a,
.hot-section .video-card a,
.big-video-title,
.big-video-title a,
.video-info h3 a,
.video-info a,
.video-card .video-title a,
.main-section .video-title a,
.category-section .video-title a {
  text-decoration: none !important;
  color: inherit !important;
}

@media (min-width: 900px) {
  .container {
    max-width: 90vw;
    padding-left: 0;
    padding-right: 0;
  }
  .hot-section .video-grid {
    padding-left: 0;
    padding-right: 0;
  }
}

/* 全局去除所有链接下划线 */
a, a:visited, a:active, a:hover {
  text-decoration: none !important;
  color: inherit;
}

/* 搜索页面样式 */
.search-container {
    padding: 2rem 0;
}

.search-header {
    text-align: center;
}

.search-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.search-count {
    font-size: 1rem;
    color: #666;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-img-wrapper {
    position: relative;
    padding-top: 140%;
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-img-overlay {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(33, 150, 243, 0.9);
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.card-text {
    font-size: 0.875rem;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.no-results p {
    color: #666;
}

@media (max-width: 768px) {
    .search-title {
        font-size: 1.5rem;
    }
    
    .card-img-wrapper {
        padding-top: 150%;
    }
}

/* 栏目区块下视频卡片高度自适应，图片更大气 */
.main-center .video-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
}

.main-center .video-thumb {
    flex: 1 1 auto;
    aspect-ratio: 3/4;
    width: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
    padding-top: 0 !important;
    background: #f5f5f5;
}

.main-center .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0; top: 0;
}

.main-center .video-title {
    flex-shrink: 0;
    padding: 8px 4px 6px 4px;
    font-size: 15px;
    text-align: center;
    min-height: 2.2em;
    max-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none;
}

/* 热门推荐区块大图高度与底部栏目影片卡片一致 */
.hot-section .video-card-large .video-thumb {
    aspect-ratio: 3/4;
    width: 100%;
    height: auto;
    min-height: 0;
    position: relative;
    overflow: hidden;
    padding-top: 0 !important;
    background: #f5f5f5;
}
.hot-section .video-card-large .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0; top: 0;
}

.video-actors {
    text-align: center;
    font-size: 14px;
    color: #666;
    padding: 0 8px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .video-actors {
        display: none;
    }
}

.d-pc-only { display: block; }
@media (max-width: 900px) { .d-pc-only { display: none !important; } }

.related-section .video-title {
    font-size: 13px;
    padding: 4px 4px 2px 4px;
    margin: 0;
    min-height: unset;
    max-height: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

@media (max-width: 600px) {
  .player-toolbar {
    flex-direction: column;
    gap: 8px;
  }
  
  .player-toolbar button {
    width: 100%;
  }
}

/* 面包屑导航样式 - 统一修复 */
.breadcrumb-nav {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    margin-bottom: 20px;
}

.breadcrumb-nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
    color: #6c757d;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #6c757d;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #adb5bd;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 2px 0;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

/* 移除重复的面包屑样式 */
.container > .breadcrumb {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0;
}

.container > .breadcrumb a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.container > .breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .breadcrumb-nav .container {
        padding: 0 10px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 6px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        padding: 8px 0;
        margin-bottom: 12px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 4px;
        font-size: 12px;
    }
    
    /* 移动端长标题省略 */
    .breadcrumb-item.active {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* 猜你喜欢区域三列布局 */
.related-section .video-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px 10px !important;
    padding: 0 !important;
}
@media (max-width: 600px) {
  .related-section .video-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px 4px !important;
  }
}

/* Safari兼容性增强：播放器工具栏始终可见 */
.video-player-container {
    position: relative !important;
    min-height: 220px !important;
    overflow: visible !important;
}
.player-toolbar {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 99 !important;
    display: flex !important;
    pointer-events: auto !important;
}
@media screen and (max-width: 900px) {
  .player-toolbar {
    top: 8px !important;
    right: 8px !important;
  }
}

/* 播放时隐藏工具栏 */
.player-toolbar.hide {
    display: none !important;
}

/* 猜你喜欢区域：PC端自适应多列，移动端三列 */
.related-section .video-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    padding: 0 !important;
}
@media (max-width: 600px) {
  .related-section .video-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px 4px !important;
  }
}

/* 强力覆盖PC端猜你喜欢为6列，移动端3列 */
.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端播放器高度提升 */
.video-player-container {
    min-height: 480px !important;
}

/* 首页纯文字标题区块美化 */
.text-video-list {
    padding: 0 8px;
}
.text-video-item {
    font-size: 15px;
    color: #222;
    line-height: 2;
    border-bottom: 1px dashed #eee;
    padding: 4px 0;
    transition: color 0.2s;
}
.text-video-item:last-child {
    border-bottom: none;
}
.text-video-item a {
    color: #2196f3 !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.text-video-item a:hover {
    color: #ff5c38 !important;
    text-decoration: underline;
}

/* 首页纯文字标题区块每行4个，移动端2个 */
.text-video-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 12px;
    padding: 0 8px;
}
@media (max-width: 600px) {
    .text-video-list {
        display: none !important;
    }
}
.text-video-item {
    font-size: 15px;
    color: #222;
    line-height: 2;
    border-bottom: 1px dashed #eee;
    padding: 4px 0;
    transition: color 0.2s;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.text-video-item:last-child {
    border-bottom: none;
}

.text-video-list .text-video-item a,
.text-video-list .text-video-item a:visited,
.text-video-list .text-video-item a:active {
    color: #222 !important;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.text-video-list .text-video-item a:hover {
    color: #ff5c38 !important;
    text-decoration: underline;
}