/* 分类页/细分页共用样式 */
.type-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.type-header {
    margin: 14px 0 24px;
}

.type-title {
    font-size: 30px;
    color: #222;
    line-height: 1.3;
    margin-bottom: 10px;
}

.type-subtitle {
    font-size: 14px;
    color: #666;
}

.active-filters {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef5ff;
    border: 1px solid #d6e6ff;
    color: #0059b3;
    font-size: 12px;
}

.filter-panel {
    padding: 18px;
    border-radius: 6px;
    background: #fafafa;
    border: 1px solid #ededed;
    margin-bottom: 28px;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    min-width: 44px;
    color: #666;
    font-size: 14px;
    line-height: 34px;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.25s;
}

.filter-tag:hover {
    border-color: #0066cc;
    color: #0066cc;
    text-decoration: none;
}

.filter-tag.active {
    border-color: #0066cc;
    background: #0066cc;
    color: #fff;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.vod-section,
.recommend-section,
.seo-intro,
.hot-search-section {
    margin-bottom: 34px;
}

.vod-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.vod-item {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vod-item:hover {
    transform: translateY(-3px);
}

.vod-pic {
    position: relative;
    width: 100%;
    padding-bottom: 145%;
    border-radius: 4px;
    background: #ddd;
    overflow: hidden;
    margin-bottom: 10px;
}

.vod-pic img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
}

.vod-pic img.loaded {
    opacity: 1;
}

.vod-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ff6b6b;
    color: #fff;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 11px;
    line-height: 1;
}

.vod-name {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.vod-meta {
    font-size: 12px;
    color: #999;
}

.recommend-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.recommend-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    background: #f8f8f8;
    border: 1px solid #ececec;
    text-decoration: none;
}

.recommend-link:hover {
    border-color: #0066cc;
    background: #eef5ff;
    text-decoration: none;
}

.recommend-name {
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommend-meta {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

.seo-intro {
    padding: 18px;
    border-radius: 6px;
    background: #fafafa;
}

.seo-intro p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.seo-intro p:last-child {
    margin-bottom: 0;
}

.hot-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 13px;
    text-decoration: none;
}

.hot-tag:hover {
    border-color: #0066cc;
    color: #0066cc;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .vod-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .type-page-container {
        padding: 15px;
    }

    .type-title {
        font-size: 24px;
    }

    .filter-row {
        flex-direction: column;
        gap: 6px;
    }

    .filter-label {
        min-width: 0;
        line-height: 1.4;
    }

    .vod-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .section-title {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .vod-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recommend-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filter-options {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 6px;
        padding-bottom: 2px;
    }

    .filter-options::-webkit-scrollbar {
        display: none;
    }

    .filter-tag {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .type-page-container,
    .filter-panel,
    .filter-row {
        max-width: 100%;
        overflow-x: hidden;
    }

    .filter-options {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
        box-sizing: border-box;
    }

    .filter-tag {
        flex: 0 0 auto;
    }
}

/* Dark theme polish */
body[data-theme="dark"] .type-header {
    padding: 18px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, #17191c 0%, #131417 100%);
}

body[data-theme="dark"] .type-title {
    color: #f2f2f2;
}

body[data-theme="dark"] .type-subtitle {
    color: #9aa1a8;
}

body[data-theme="dark"] .filter-panel {
    background: #17191c;
    border-color: #2a2d33;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

body[data-theme="dark"] .filter-label {
    color: #aeb4bc;
}

body[data-theme="dark"] .filter-tag,
body[data-theme="dark"] .hot-tag {
    background: #1f2328;
    border-color: #32363d;
    color: #d6dbe2;
}

body[data-theme="dark"] .filter-tag:hover,
body[data-theme="dark"] .hot-tag:hover {
    background: #252a31;
    border-color: var(--cta);
    color: #fff;
}

body[data-theme="dark"] .recommend-link {
    background: #171a1f;
    border-color: #2e3239;
}

body[data-theme="dark"] .recommend-link:hover {
    background: #1e232b;
}

body[data-theme="dark"] .recommend-name {
    color: #e6e9ed;
}

body[data-theme="dark"] .recommend-meta,
body[data-theme="dark"] .seo-intro p {
    color: #9da4ac;
}

body[data-theme="dark"] .seo-intro {
    background: #17191c;
    border: 1px solid #2a2d33;
}

body[data-theme="dark"] .section-title {
    color: #f0f0f0;
}