/* ==================== 顶部搜索栏 ==================== */
/*.top-search-bar {*/
/*    background-color: #ffffff;*/
/*    padding: 12px 16px;*/
/*    position: sticky;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    z-index: 100;*/
/*    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);*/
/*    border-bottom: 1px solid #f0f0f0;*/
/*}*/


.search-wrapper {
    display: flex;
    align-items: center;
    max-width: 100%;
}

/* ==================== 百科卡片 ==================== */
.encyclopedia-card {
    overflow: hidden !important;
    min-height: auto !important;
    height: auto !important;
    max-height: 500px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: relative;
    padding-bottom: 26px;            /* 为左下角标签留空间 */
}
.encyclopedia-card .content-wrapper {
    display: none;                   /* 废弃原有结构 */
}

/* 标题 */
.encyclopedia-main-title {
    font-size: 18px !important;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a !important;
    padding: 14px 16px 6px !important;
    margin: 0 !important;
    white-space: normal !important;
    word-break: break-word;
}

/* 左图右文弹性容器 */
.encyclopedia-wrapper {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 6px 16px 6px;
}

/* 图片容器 */
.encyclopedia-thumb {
    width: 90px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: #f5f6f8;
    border-radius: 6px;
    min-height: 60px;
}

/* 右侧文字区 */
.encyclopedia-info {
    flex: 1;
    min-width: 0;
}

/* 描述文字：最多8行，溢出省略 */
.encyclopedia-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    word-break: break-word;
}

/* 左下角百度百科字样 */
.encyclopedia-source {
    position: absolute;
    left: 16px;
    bottom: 8px;
    font-size: 11px;
    color: #bbb;
    line-height: 1;
}

/* 隐藏无关元素 */
.encyclopedia-card .report-btn,
.encyclopedia-card .video-desc,
.encyclopedia-card .media-section,
.encyclopedia-card .episodes-row,
.encyclopedia-card .video-footer {
    display: none !important;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .encyclopedia-main-title {
        font-size: 16px !important;
        padding: 12px 14px 4px !important;
    }
    .encyclopedia-wrapper {
        padding: 4px 14px 4px;
        gap: 10px;
    }
    .encyclopedia-thumb {
        width: 70px;
        min-height: 50px;
    }
    .encyclopedia-desc {
        font-size: 13px;
        -webkit-line-clamp: 6;
    }
}

/* ==================== 大家都在搜 / 相关搜索 ==================== */
.search-suggest-section {
    margin: 10px 8px 6px;
    background: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.suggest-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.suggest-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 两列：每个卡片占一半宽度 */
.suggest-grid.two-cols .suggest-item {
    width: calc(50% - 4px);
    box-sizing: border-box;
}

/* 卡片项 */
.suggest-item {
    background: #f5f6f8;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-item:active {
    background: #e8e9eb;
}

/* ==================== 搜索页面全部样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    font-style: normal !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f6f8;
    color: #333;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

.category-nav {
    background-color: #ffffff;
    padding: 0;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #f0f0f0;
}

.category-list {
    display: flex;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 1;
    color: #666;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    padding: 18px 0;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid transparent;
}

.category-item.active {
    color: #f39800;
    font-weight: 600;
    border-bottom: 3px solid #f39800;
}

.category-item:not(.active) {
    cursor: default;
}

.category-item:not(.active):hover {
    color: #666;
}

.search-container {
    display: flex;
    align-items: center;
    flex: 1;
    background-color: #f8f9fa;
    border-radius: 24px;
    padding: 0 16px;
    height: 44px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
}

.search-container:focus-within {
    background-color: #ffffff;
    border-color: #f39800;
    box-shadow: 0 0 0 3px rgba(243, 152, 0, 0.08);
    transform: translateY(-1px);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    font-weight: 400;
    outline: none;
    color: #1a1a1a;
    height: 100%;
    padding: 0;
    caret-color: #f39800;
}

.search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-btn {
    display: none !important;
}

.clear-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.clear-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.clear-btn svg {
    width: 20px;
    height: 20px;
    fill: #999;
}

.search-btn {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    background-color: #f39800;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(243, 152, 0, 0.2);
}

.search-btn:hover {
    background-color: #e68900;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(243, 152, 0, 0.25);
}

.results-container {
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
    min-height: calc(100vh - 180px);
}

.card {
    background-color: #fff;
    margin: 0 8px 6px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.title {
    font-size: 18px;
    font-weight: bold;
    font-family: "Heiti SC", "黑体", "Microsoft YaHei", "微软雅黑", sans-serif;
    color: #1a1a1a;
    padding: 14px 16px 6px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.video-card {
    padding-bottom: 0;
}

.content-wrapper {
    padding: 0 16px;
    flex: 1;
    min-height: 150px;
}

.meta-info {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.meta-line {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

.year {
    color: #666;
    margin-right: 10px;
    font-size: 14px;
    font-weight: 400;
}

.category {
    background-color: #f0f2f5;
    padding: 3px 8px;
    border-radius: 10px;
    margin-right: 6px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.status {
    background-color: #f0f2f5;
    color: #666;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

/* ========== 媒体区域绝对定位布局 ========== */
.media-section {
    position: relative;
    margin-bottom: 8px;      /* 缩小底部间距 */
    min-height: 140px;
}
.video-desc {
    margin-right: 112px;  /* 封面宽度100px + 12px间距 */
    min-width: 0;
    overflow: hidden;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.video-desc .director,
.video-desc .actors {
    margin-bottom: 6px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-height: 1.4em;
    max-height: 1.4em;
    word-break: break-word;
}

.video-desc .intro {
    margin-bottom: 6px;
    color: #333;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;          /* 桌面端显示5行，充分利用封面高度 */
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    word-break: break-word;
    overflow-wrap: break-word;
    /* 移除 max-height，由 line-clamp 控制 */
}

.video-desc .director span,
.video-desc .actors span {
    color: #333;
    font-weight: 500;
}

.thumb-img {
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #f5f6f8;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    flex-shrink: 0;
}

.thumb-img::before {
    content: '加载中...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 11px;
    z-index: 1;
}

.thumb-img.loaded::before {
    display: none;
}

.thumb-img.error::before {
    content: '封面加载失败';
    color: #f39800;
    font-size: 10px;
    white-space: nowrap;
}

.thumb-img.no-image::before {
    content: '暂无封面';
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

.thumb-img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.report-btn {
    position: sticky;
    right: 0;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 0;        /* 已无 padding，直接靠边 */
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 5;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    font-size: 18px;
    color: #666;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.video-footer-item.max-click {
    color: #D98719 !important;
}
.report-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.9);
}

/* 集数行与播放按钮区域 */
.episodes-row {
    padding: 0 16px 8px;     /* 稍微缩小底部内边距 */
    margin-top: 4px;         /* 缩小上间距，约一行文字 */
}

/* 无集数时，进一步去掉上间距，让按钮紧贴媒体区 */
.episodes-row.no-episodes {
    margin-top: 0;
    padding-top: 0;
}

.episodes-row.no-episodes .play-btn {
    margin-top: 0 !important;
}

/* 集数按钮容器 */
.episodes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

/* 单个集数按钮 */
.ep-btn {
    background-color: #f8f9fa;
    color: #333;
    font-size: 13px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-weight: 400;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    flex: 0 0 calc( (100% - 24px) / 5 );   /* 5列，4个gap共24px */
    box-sizing: border-box;
    min-width: 0;
}

.ep-btn:hover {
    background-color: #f0f2f5;
    transform: translateY(-1px);
}

/* 播放按钮 */
.play-btn {
    background-color: #f8f9fa;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    width: 100%;
    color: #555;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 4px;                /* 紧贴上方内容 */
}

.play-btn:hover {
    background-color: #f0f2f5;
    border-color: #d0d0d0;
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* ========== 底部信息栏（单行完整显示，不省略） ========== */
.video-footer {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 10px 0 10px 16px;   /* 右内边距改为 0 */
    min-height: 40px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.video-footer::-webkit-scrollbar {
    display: none;
}

.video-footer-item {
    white-space: nowrap;
    flex-shrink: 0;                  /* 不压缩文字项，完整显示 */
    font-size: 0.75rem;
    line-height: 1.2;
}
.video-source {
    color: #A8A8A8 !important;
    text-decoration: none;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    flex-shrink: 0;
    cursor: pointer;
}

.video-source:hover {
    color: #A8A8A8 !important;
    text-decoration: underline;
}

.pure-play {
    color: #A8A8A8 !important;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.max-click {
    color: #D98719 !important;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.time-info {
    color: #A8A8A8 !important;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.quan-wang {
    color: #A8A8A8 !important;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.pagination {
    background-color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2px 8px 8px 8px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.page-btn {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    height: 36px;
    min-width: 36px;
}

.page-btn:hover:not(.disabled) {
    color: #f39800;
    text-decoration: underline;
    background-color: transparent;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: #999;
}

.current-page-info {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    padding: 0 2px;
}

.bottom-search {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.error-message {
    padding: 20px;
    text-align: center;
    color: #f39800;
    background-color: #fff;
    margin: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
    background-color: #fff;
    border-radius: 8px;
    margin: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.initial-state {
   
    text-align: center;
    padding: 60px 20px;
    color: #f39800;
    font-size: 18px;
    background-color: #fff;
    border-radius: 8px;
    margin: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.results-container::-webkit-scrollbar {
    width: 6px;
}

.results-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.results-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

/* 举报功能模态框样式 */
.report-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.report-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.report-modal {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.report-modal-overlay.active .report-modal {
    transform: translateY(0);
}

.report-menu {
    padding: 24px 20px;
}

.report-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.report-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    width: 100%;
    background: none;
    text-align: left;
    font-size: 16px;
    color: #333;
}

.report-option:hover {
    background-color: #f5f5f5;
}

.report-option.report-feedback {
    color: #f39800;
    font-weight: 500;
}

.report-option.not-interested {
    color: #666;
}

.report-option.cancel-option {
    color: #999;
    border-top: 1px solid #f0f0f0;
    margin-top: 12px;
    padding-top: 20px;
    margin-bottom: 0;
}

.report-form {
    padding: 24px 20px;
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.form-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.report-checkboxes {
    margin-bottom: 24px;
}

.checkbox-group {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.checkbox-input {
    margin-right: 12px;
    margin-top: 2px;
    accent-color: #f39800;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    flex: 1;
}

.checkbox-note {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.textarea-container {
    margin-bottom: 24px;
}

.textarea-label {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.report-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.2s;
}

.report-textarea:focus {
    outline: none;
    border-color: #f39800;
    box-shadow: 0 0 0 2px rgba(243, 152, 0, 0.1);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.form-buttons {
    display: flex;
    gap: 12px;
}

.form-button {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.back-button {
    background-color: #f5f5f5;
    color: #666;
}

.back-button:hover {
    background-color: #e8e8e8;
}

.submit-button {
    background-color: #f39800;
    color: #fff;
}

.submit-button:hover {
    background-color: #e68900;
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.report-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 16px;
}

.success-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.success-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.ok-button {
    background-color: #f39800;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.clickable-area {
    cursor: pointer;
}

.no-click {
    cursor: default;
}

.no-click-area {
    cursor: default;
    pointer-events: none;
}








/* 强制消除无集数卡片的空白 */
.card .episodes-row.no-episodes {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 6px !important;
}

.card .episodes-row.no-episodes .play-btn {
    margin-top: 2px !important;
}

/* 同时收紧媒体区底部间距，让整体更紧凑 */
.card .media-section {
    margin-bottom: 8px !important;
}
.card.no-episodes-card {
    min-height: auto !important;
}
/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .category-nav { padding: 0; }
    .category-item { font-size: 16px; padding: 16px 0; border-bottom-width: 2px; }
    .video-card .category { font-size: 11px; }
    .video-card .status { font-size: 11px; }
    .search-container { height: 40px; padding: 0 14px; }
    .search-input { font-size: 16px; }
    .search-btn { font-size: 16px; padding: 7px 16px; }
    .clear-btn { width: 32px; height: 32px; }
    .card { min-height: 350px; }
    .thumb-img { width: 90px; height: 126px; }
    .video-desc { margin-right: 102px; }
    .title { font-size: 17px; }
    .report-btn { font-size: 16px; width: 28px; height: 28px; bottom: 8px; right: 8px; }
    .pagination { padding: 16px 0; margin: 2px 8px 8px 8px; }
    .pagination-nav { gap: 3px; }
    .page-btn { font-size: 13px; padding: 6px 10px; height: 32px; min-width: 32px; }
    .current-page-info { font-size: 13px; padding: 0 1px; }
    .bottom-search { display: none !important; }
        .video-footer {
        padding: 8px 0 8px 14px;
        min-height: 36px;
    }
}
    .video-footer-item { font-size: 11px; }
    .video-source { font-size: 11px; }
    .pure-play, .time-info, .quan-wang { font-size: 11px; }
    .max-click { font-size: 12px; }
    .report-modal { width: 95%; max-height: 85vh; }
    .report-menu, .report-form { padding: 20px 16px; }
    .report-title, .form-title { font-size: 17px; margin-bottom: 16px; }
    .report-option { padding: 14px; font-size: 15px; margin-bottom: 6px; }
    .checkbox-label { font-size: 14px; }
    .report-textarea { min-height: 100px; font-size: 14px; }
    .form-button { padding: 12px; font-size: 15px; }

    .video-desc .intro {
        -webkit-line-clamp: 4;       /* 平板展示4行 */
    }

    .episodes { gap: 5px; margin-bottom: 6px; }
    .ep-btn {
        height: 32px;
        font-size: 12px;
        flex: 0 0 calc( (100% - 20px) / 5 );
    }
    .episodes-row.no-episodes {
        padding: 0 14px 6px;
    }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    .category-nav { padding: 0; }
    .category-item { font-size: 15px; padding: 14px 0; border-bottom-width: 2px; }
    .video-card .category { font-size: 10px; }
    .video-card .status { font-size: 10px; }
    .search-container { height: 38px; padding: 0 12px; }
    .search-input { font-size: 15px; }
    .search-btn { font-size: 15px; padding: 6px 14px; }
    .card { min-height: 330px; }
    .thumb-img { width: 80px; height: 112px; }
    .video-desc { margin-right: 92px; }
    .title { font-size: 16px; padding: 12px 14px 5px; }
    .content-wrapper { padding: 0 14px; }
    .report-btn { font-size: 15px; width: 26px; height: 26px; bottom: 6px; right: 6px; }
    .play-btn { height: 38px; font-size: 15px; }
    @media (max-width: 480px) {
    .video-footer {
        padding: 8px 0 8px 12px;
        min-height: 34px;
    }
}
    .video-footer-item { font-size: 0.65rem;  }
    .video-source { font-size: 10px; }
    .pure-play, .time-info, .quan-wang { font-size: 10px; }
    .max-click { font-size: 11px; }
    .pagination { padding: 14px 0; margin: 2px 8px 8px 8px; }
    .pagination-nav { gap: 2px; }
    .page-btn { font-size: 12px; padding: 5px 8px; height: 30px; min-width: 30px; }
    .current-page-info { font-size: 12px; padding: 0; }
    .bottom-search { display: none !important; }
    .report-modal { width: 98%; max-height: 90vh; }
    .report-menu, .report-form { padding: 18px 14px; }
    .report-title, .form-title { font-size: 16px; margin-bottom: 14px; }
    .report-option { padding: 12px; font-size: 14px; }
    .checkbox-input { width: 16px; height: 16px; }
    .checkbox-label { font-size: 13px; }
    .form-subtitle { font-size: 13px; }
    .report-textarea { min-height: 80px; font-size: 13px; padding: 10px; }
    .form-button { padding: 10px; font-size: 14px; }

    .video-desc .intro {
        -webkit-line-clamp: 3;       /* 小屏手机展示3行 */
    }

    .episodes { gap: 4px; margin-bottom: 4px; }
    .ep-btn {
        height: 30px;
        font-size: 11px;
        flex: 0 0 calc( (100% - 16px) / 5 );
    }
    .episodes-row.no-episodes {
        padding: 0 12px 6px;
        margin-top: 2px;
    }
}

/* ==================== 官网卡片 ==================== */
.official-card {
    overflow: hidden;
    min-height: auto;
    height: auto;
    cursor: pointer;
    padding: 14px 16px;
}

.official-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.official-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
}

.official-platform {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    margin-left: 8px;
    background-color: #999;
}

/* 各平台标识颜色 */
.platform-iqiyi  { background-color: #00be06; }   /* 爱奇艺绿 */
.platform-youku  { background-color: #00a0e9; }   /* 优酷蓝 */
.platform-tencent { background-color: #ff6c00; }  /* 腾讯橙 */
.platform-mango   { background-color: #ff6600; }  /* 芒果橙 */
.platform-douban  { background-color: #00b51d; }  /* 豆瓣绿 */

.official-body {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.official-thumb {
    width: 100px;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    background-color: #f5f6f8;
    flex-shrink: 0;
}

.official-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

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

.official-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.official-tags span {
    display: inline-block;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    color: #666;
    margin-right: 6px;
    margin-bottom: 4px;
}

.official-director,
.official-actors {
    font-size: 13px;
    color: #333;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==================== 官网卡片（新版） ==================== */
.official-card {
    background: #fff;
    padding: 14px 16px;
    min-height: auto;
    height: auto;
    cursor: pointer;
}

.official-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* 封面图（左） */
.official-thumb {
    width: 100px;
    height: 140px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    background-color: #f5f6f8;
    flex-shrink: 0;
}

.official-thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
}

/* 右侧信息区 */
.official-info {
    flex: 1;
    min-width: 0;
}

/* 标题 + 类型标签 */
.official-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.official-title-text {
    font-size: 17px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.3;
    word-break: break-word;
}

.official-type-tag {
    display: inline-block;
    background: #f0f2f5;
    color: #666;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 通用信息行 */
.official-row {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 4px;
    word-break: break-word;
}

.official-label {
    color: #666;
    font-weight: 500;
}

/* 简介行 */
.official-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
    margin-bottom: 6px;
}

/* 平台行（logo + 名称） */
.official-platform-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.official-platform-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.official-platform-name {
    font-size: 13px;
    color: #888;
}