/* 文章内容页样式 */

/* 视频挂载样式 */
.iframe_video {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: var(--border-radius);
    margin: 1.5rem auto;
    box-shadow: var(--box-shadow);
}

.iframe_cross {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%
}

.iframe_cross iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0
}

/* 文章内容区域 */
.article-content-section {
    margin: 2rem 0;
    min-width: 0;
    overflow: hidden;
}

.article-main {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    min-width: 0;
    overflow: hidden;
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--background-color);
    min-width: 0;
    overflow: hidden;
}

.article-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.article-meta span {
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.article-body {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    overflow-wrap: break-word;
    word-break: break-word;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--background-color);
}

.article-body h3 {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin: 1.5rem 0 1rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.article-body img:hover {
    transform: scale(1.02);
}

.article-body iframe {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
    box-shadow: var(--box-shadow);
    display: block;
}

/* 哔哩哔哩播放器：限制最大宽度居中 */
.article-body iframe.iframe_video,
.article-body iframe[src*="bilibili"] {
    max-width: 800px;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 1.5rem auto;
    display: block;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--light-text);
}

.article-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 2px solid var(--background-color);
    margin-top: 2rem;
}

.article-nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background-color: var(--background-color);
}

.article-nav a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.article-nav a i {
    margin: 0 0.5rem;
}

.article-nav .prev-article i {
    margin-right: 0.5rem;
}

.article-nav .next-article i {
    margin-left: 0.5rem;
}

/* 侧边栏 */
.sidebar-widget {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
    min-width: 0;
    overflow: hidden;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--background-color);
    display: flex;
    align-items: center;
}

.widget-title i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* 相关文章 */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article {
    display: flex;
    gap: 1rem;
    transition: var(--transition);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.related-article:hover {
    background-color: var(--background-color);
    transform: translateX(5px);
}

.related-article img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.related-article .related-article-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.related-article h4 {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    color: var(--text-color);
    transition: var(--transition);
}

.related-article:hover h4 {
    color: var(--primary-color);
}

.related-article .related-article-meta {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* 影视类相关文章 - popular-card 网格样式 */
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    min-width: 0;
}

/* 侧边栏内卡片标题适当缩小 */
.related-articles-grid .popular-card-title {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
}

.related-articles-grid .popular-card-body {
    padding: 0.7rem 0.8rem 0.8rem;
}

.related-articles-grid .popular-card-summary-overlay p {
    font-size: 0.7rem;
    -webkit-line-clamp: 2;
}

/* ========== 影视分类侧边栏：本周热门 ========== */
.weekly-hot-body {
    padding: 0;
}

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

.weekly-hot-list li {
    border-bottom: 1px dashed #eef1f5;
}

.weekly-hot-list li:last-child {
    border-bottom: none;
}

.weekly-hot-list li a {
    display: flex;
    align-items: center;
    padding: 0.55rem 0;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    gap: 0.6rem;
}

.weekly-hot-list li a:hover {
    color: var(--primary-color);
}

.weekly-hot-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #b0b0b0;
}

.weekly-hot-rank-1 { background: #e74c3c; }
.weekly-hot-rank-2 { background: #e67e22; }
.weekly-hot-rank-3 { background: #f39c12; }

.weekly-hot-title {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weekly-hot-loading {
    text-align: center;
    padding: 1rem;
    color: #999;
    font-size: 0.85rem;
}

/* ========== 影视分类侧边栏：周排行榜 ========== */
.weekly-rank-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.weekly-rank-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.weekly-rank-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
    gap: 0.5rem;
}

.weekly-rank-link:hover {
    background: #f8f9fc;
    color: var(--primary-color);
    margin: 0 -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 4px;
}

.weekly-rank-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
}

.weekly-rank-num-1 { background: #e74c3c; }
.weekly-rank-num-2 { background: #e67e22; }
.weekly-rank-num-3 { background: #f39c12; }
.weekly-rank-num-other { background: #b0b0b0; }

.weekly-rank-title-text {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weekly-rank-views {
    flex-shrink: 0;
    font-size: 0.72rem;
    color: #999;
    margin-left: 0.3rem;
}

.weekly-rank-loading {
    text-align: center;
    padding: 1rem;
    color: #999;
    font-size: 0.85rem;
}

/* 热门文章 */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-article {
    display: flex;
    gap: 1rem;
    transition: var(--transition);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    min-width: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.popular-article:hover {
    background-color: var(--background-color);
    transform: translateX(5px);
}

.popular-article img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.popular-article .popular-article-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.popular-article h4 {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    color: var(--text-color);
    transition: var(--transition);
}

.popular-article:hover h4 {
    color: var(--primary-color);
}

.popular-article .popular-article-meta {
    font-size: 0.8rem;
    color: var(--light-text);
}

/* 近期文章 */
.recent-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-article {
    display: flex;
    gap: 1rem;
    transition: var(--transition);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: inherit;
}

.recent-article:hover {
    background-color: var(--background-color);
    transform: translateX(5px);
}

.recent-article .rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.recent-article:nth-child(1) .rank {
    background-color: #FFD700;
}

.recent-article:nth-child(2) .rank {
    background-color: #C0C0C0;
}

.recent-article:nth-child(3) .rank {
    background-color: #CD7F32;
}

.recent-article:nth-child(4) .rank {
    background-color: #FF6347;
}

.recent-article:nth-child(5) .rank {
    background-color: #9370DB;
}

.recent-article:nth-child(6) .rank {
    background-color: #17a2b8;
}

.recent-article:nth-child(7) .rank {
    background-color: #007bff;
}

.recent-article:nth-child(8) .rank {
    background-color: #fd7e14;
}

.recent-article:nth-child(9) .rank {
    background-color: #e83e8c;
}

.recent-article:nth-child(10) .rank {
    background-color: #20c997;
}

.recent-article h4 {
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.3;
    color: var(--text-color);
    transition: var(--transition);
}

.recent-article:hover h4 {
    color: var(--primary-color);
}

/* 分类列表 */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-link {
    display: inline-block;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--secondary-color);
}

.category-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-main {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-meta {
        gap: 1rem;
        font-size: 0.8rem;
    }
    
    .article-body {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .article-body h2 {
        font-size: 1.3rem;
    }
    
    .article-body h3 {
        font-size: 1.1rem;
    }
    
    .article-body iframe {
        aspect-ratio: 4 / 3;
        max-width: 100% !important;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-nav a {
        justify-content: center;
    }
    
    .sidebar-widget {
        padding: 1.25rem;
    }
    
    .related-article img {
        width: 70px;
        height: 50px;
    }
    
    .related-article h4 {
        font-size: 0.8rem;
    }

    .related-articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .related-articles-grid .popular-card-title {
        font-size: 0.75rem;
    }

    .related-articles-grid .popular-card-body {
        padding: 0.6rem 0.65rem 0.65rem;
    }

    .related-articles-grid .popular-card-summary-overlay p {
        font-size: 0.65rem;
    }

    .popular-article h4 {
        font-size: 0.8rem;
    }

    .weekly-hot-list li a {
        padding: 0.5rem 0;
    }

    .weekly-hot-title {
        font-size: 0.8rem;
    }

    .weekly-rank-link {
        padding: 0.45rem 0;
    }

    .weekly-rank-title-text {
        font-size: 0.8rem;
    }
}

/* 下载资源样式 */
.download-resources-section .card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.download-resources-section .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3a7bd5 100%);
    color: white;
}

.download-resources-section .card-header h5 {
    color: white;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-item {
    transition: var(--transition);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    background: #fff;
}

.resource-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.15);
    border-color: var(--primary-color);
    border-left-color: var(--secondary-color);
}

.resource-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f0f5ff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.resource-icon-wrapper:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(74, 144, 226, 0.2);
    background: #e8f0fe;
}

.resource-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.resource-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    word-break: break-all;
}

.resource-title-badge {
    display: inline-block;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 4px;
    max-width: 100%;
    word-break: break-all;
}

.resource-password code {
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.resource-open-btn {
    min-width: 100px;
    flex-shrink: 0;
}

/* 响应式下载资源 */
@media (max-width: 768px) {
    .download-resources-section {
        margin-top: 1.5rem !important;
    }

    .download-resources-section .card-header {
        padding: 0.7rem 1rem;
    }

    .download-resources-section .card-header h5 {
        font-size: 0.95rem;
    }

    .download-resources-section .card-body {
        padding: 0.75rem;
    }

    .resource-list {
        gap: 0.5rem;
    }

    .resource-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0.6rem 0.7rem !important;
        margin-bottom: 0 !important;
        gap: 0.6rem;
        border-left-width: 3px;
    }

    .resource-icon-wrapper {
        width: 38px;
        height: 38px;
        border-radius: 8px;
        margin-right: 0 !important;
    }

    .resource-icon {
        width: 24px;
        height: 24px;
    }

    .resource-fallback-icon {
        font-size: 20px !important;
    }

    .resource-title-badge {
        font-size: 0.7rem;
        padding: 1px 8px;
    }

    .resource-info {
        flex: 1;
        min-width: 0;
    }

    .resource-name {
        font-size: 0.82rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .resource-password {
        margin-top: 0.2rem !important;
    }

    .resource-password code {
        font-size: 0.75rem;
        padding: 0.15rem 0.4rem !important;
    }

    .resource-open-btn {
        min-width: auto;
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
        border-radius: 20px;
        white-space: nowrap;
        margin-left: 0 !important;
    }

    .resource-open-btn i {
        margin-right: 0.2rem !important;
    }
}

@media (max-width: 480px) {
    .resource-item {
        padding: 0.5rem 0.6rem !important;
        gap: 0.5rem;
    }

    .resource-icon-wrapper {
        width: 34px;
        height: 34px;
        border-radius: 6px;
    }

    .resource-icon {
        width: 20px;
        height: 20px;
    }

    .resource-fallback-icon {
        font-size: 18px !important;
    }

    .resource-name {
        font-size: 0.78rem;
    }

    .resource-open-btn {
        padding: 0.3rem 0.55rem;
        font-size: 0.7rem;
        border-radius: 18px;
    }

    .resource-open-btn i {
        margin-right: 0 !important;
    }
}

/* 近期文章 - 文章主体部分 */
.article-recent {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.recent-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary-color);
}

.recent-title i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.article-recent .recent-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.article-recent .recent-article {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
}

.article-recent .recent-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.article-recent .recent-article .rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    align-self: flex-start;
}

.article-recent .recent-article:nth-child(1) .rank {
    background-color: #FFD700;
}

.article-recent .recent-article:nth-child(2) .rank {
    background-color: #C0C0C0;
}

.article-recent .recent-article:nth-child(3) .rank {
    background-color: #CD7F32;
}

.article-recent .recent-article:nth-child(4) .rank {
    background-color: #FF6347;
}

.article-recent .recent-article:nth-child(5) .rank {
    background-color: #9370DB;
}

.article-recent .recent-article:nth-child(6) .rank {
    background-color: #17a2b8;
}

.article-recent .recent-article:nth-child(7) .rank {
    background-color: #007bff;
}

.article-recent .recent-article:nth-child(8) .rank {
    background-color: #fd7e14;
}

.article-recent .recent-article:nth-child(9) .rank {
    background-color: #e83e8c;
}

.article-recent .recent-article:nth-child(10) .rank {
    background-color: #20c997;
}

.article-recent .recent-article h4 {
    font-size: 1rem;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    color: var(--text-color);
    transition: var(--transition);
}

.article-recent .recent-article:hover h4 {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-recent .recent-articles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .article-main {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .article-body {
        font-size: 0.95rem;
    }
    
    .article-body iframe {
        aspect-ratio: 4 / 3;
        max-width: 100% !important;
    }

    .sidebar-widget {
        padding: 1rem;
    }
    
    .widget-title {
        font-size: 1.1rem;
    }
    
    .related-article {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .related-article img {
        width: 100%;
        height: 120px;
    }

    .related-articles-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .related-articles-grid .popular-card-title {
        font-size: 0.7rem;
    }

    .related-articles-grid .popular-card-body {
        padding: 0.5rem 0.55rem 0.55rem;
    }

    .related-articles-grid .popular-card-summary-overlay p {
        font-size: 0.6rem;
    }

    .weekly-hot-title {
        font-size: 0.78rem;
    }

    .weekly-rank-title-text {
        font-size: 0.78rem;
    }
}

/* 版权声明样式 */
.article-copyright {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.copyright-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--light-text);
    overflow-wrap: break-word;
    word-break: break-word;
}

.copyright-content p {
    margin-bottom: 0.75rem;
}

.copyright-content p:last-child {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-copyright {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .copyright-content {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .article-copyright {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .copyright-content {
        font-size: 0.8rem;
    }
}

/* ==================== 影视信息卡片样式 ==================== */
.video-card-detail {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

/* 顶部：封面+信息区 */
.video-card-header {
    display: flex;
    padding: 24px;
    gap: 24px;
}

.video-card-poster-wrap {
    flex-shrink: 0;
    position: relative;
    width: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.video-card-poster {
    display: block;
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.video-card-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    backdrop-filter: blur(6px);
}

.video-card-rating.score-high { background: linear-gradient(135deg, #f7971e, #ffd200); }
.video-card-rating.score-mid { background: linear-gradient(135deg, #667eea, #764ba2); }
.video-card-rating.score-low { background: linear-gradient(135deg, #a8a8a8, #6c6c6c); }

.video-card-rating i {
    margin-right: 3px;
    font-size: 0.75rem;
}

/* 信息区 */
.video-card-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.3;
}

.video-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.video-card-tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 4px 14px;
    border-radius: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.video-card-crew {
    margin-bottom: 14px;
}

.video-card-row {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
}

.video-card-row i {
    width: 18px;
    margin-right: 6px;
    opacity: 0.5;
    margin-top: 3px;
    font-size: 0.8rem;
}

.video-card-row .label {
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.video-card-row .value {
    color: rgba(255, 255, 255, 0.85);
}

.video-card-intro-wrap {
    position: relative;
    max-height: 66px;
    overflow: hidden;
}

.video-card-intro {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部：播放/下载操作栏 */
.video-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.video-card-action-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.video-card-action-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

.video-card-action-label i {
    margin-right: 4px;
    opacity: 0.6;
}

.video-card-action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.video-card-action-btns .btn {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 5px 16px;
    transition: all 0.2s;
}

.video-card-action-btns .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.video-card-action-btns .btn-outline-primary {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.video-card-action-btns .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.video-card-action-btns .btn-success {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    border: none;
}

.video-card-action-btns .btn-outline-success {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(56, 239, 125, 0.4);
}

.video-card-action-btns .btn-outline-success:hover {
    background: rgba(56, 239, 125, 0.15);
    border-color: rgba(56, 239, 125, 0.6);
    color: #fff;
}

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
    .video-card-poster-wrap {
        width: 180px;
    }
    .video-card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .video-card-header {
        padding: 16px;
        gap: 16px;
    }
    .video-card-poster-wrap {
        width: 140px;
    }
    .video-card-title {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }
    .video-card-tag {
        font-size: 0.72rem;
        padding: 3px 10px;
    }
    .video-card-row {
        font-size: 0.82rem;
    }
    .video-card-intro {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
    .video-card-intro-wrap {
        max-height: 48px;
    }
    .video-card-actions {
        padding: 12px 16px;
        gap: 12px;
    }
    .video-card-action-label {
        font-size: 0.78rem;
    }
    .video-card-action-btns .btn {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}

@media (max-width: 576px) {
    .video-card-header {
        flex-direction: column;
        align-items: center;
        padding: 14px;
        gap: 14px;
    }
    .video-card-poster-wrap {
        width: 160px;
    }
    .video-card-meta {
        text-align: center;
        align-items: center;
    }
    .video-card-tags {
        justify-content: center;
    }
    .video-card-row {
        justify-content: center;
    }
    .video-card-title {
        font-size: 1.1rem;
    }
    .video-card-actions {
        flex-direction: column;
        gap: 12px;
        padding: 12px 14px;
    }
    .video-card-action-group {
        justify-content: center;
    }
}
