/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 容器 */
[class~="container"] {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 链接样式 */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b35;
}

/* 图片优化 */
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 头部样式 */
[class~="header"] {
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

[class~="header-content"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

/* Logo */
[class~="logo"] img {
    height: 40px;
    width: auto;
}

/* 主导航 */
[class~="nav-menu"] {
    flex: 1;
    margin-left: 40px;
}

[class~="main-nav"] {
    display: flex;
    list-style: none;
    gap: 30px;
}

[class~="main-nav"] a {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

[class~="main-nav"] a:hover,
[class~="main-nav"] a[class~="active"] {
    background-color: #ff6b35;
    color: #ffffff;
}

/* 搜索区域 */
[class~="search-container"] {
    display: flex;
    align-items: center;
}

[class~="search-form"] {
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #555;
    transition: border-color 0.3s ease;
}

[class~="search-form"]:focus-within {
    border-color: #ff6b35;
}

[class~="search-input"] {
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 14px;
    width: 250px;
    outline: none;
}

[class~="search-input"]::placeholder {
    color: #999;
}

[class~="search-btn"] {
    padding: 10px 15px;
    border: none;
    background: #ff6b35;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

[class~="search-btn"]:hover {
    background-color: #e55a2b;
}

/* 移动端菜单按钮 */
[class~="mobile-menu-btn"] {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
}

/* 移动端菜单 */
[class~="mobile-menu"] {
    display: none;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    padding: 20px 0;
}

[class~="mobile-menu"] ul {
    list-style: none;
}

[class~="mobile-menu"] a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    transition: background-color 0.3s ease;
}

[class~="mobile-menu"] a:hover {
    background-color: #333;
}

/* 搜索弹窗 */
[class~="search-panel"] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

[class~="panel-overlay"] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

[class~="panel-content"] {
    position: relative;
    background-color: #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

[class~="panel-title"] {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

[class~="hot-keywords"] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

[class~="hot-keywords"] a {
    background-color: #333;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

[class~="hot-keywords"] a:hover {
    background-color: #ff6b35;
    transform: translateY(-2px);
}

[class~="close-btn"] {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

[class~="close-btn"]:hover {
    color: #ff6b35;
}

/* 主要内容区域 */
[class~="main-content"] {
    padding: 30px 0;
}

[class~="video-section"] {
    margin-bottom: 50px;
}

[class~="section-header"] {
    margin-bottom: 25px;
}

[class~="section-title"] {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    border-left: 4px solid #ff6b35;
    padding-left: 15px;
}

/* 视频网格容器 - 内容由 ul[class~="pic-list"] 负责布局 */
[class~="video-grid"] {
    display: block;
}

[class~="video-item"] {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 0; /* 防止内容溢出 */
}

[class~="video-item"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

[class~="video-link"] {
    display: block;
    text-decoration: none;
    color: inherit;
}

[class~="video-thumb"] {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

[class~="video-thumb"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

[class~="video-item"]:hover [class~="video-thumb"] img {
    transform: scale(1.05);
}

/* 优化视频信息标签位置 */
[class~="duration"] {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[class~="quality"] {
    position: absolute;
    top: 6px;
    left: 6px;
    background-color: #ff6b35;
    color: #ffffff;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

[class~="vip-mark"] {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

/* 优化视频标题 */
[class~="video-title"] {
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* 优化视频统计信息 - 解决间距问题 */
[class~="video-stats"] {
    padding: 0 10px 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
}

[class~="views"] {
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}

[class~="views"]::before {
    content: "👁";
    font-size: 10px;
}

[class~="rating"] {
    color: #4CAF50;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

[class~="rating"]::before {
    content: "⭐";
    font-size: 10px;
}

/* 关键词区块 */
[class~="keywords-section"] {
    margin-bottom: 50px;
}

[class~="keywords-grid"] {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

[class~="keyword-tag"] {
    background-color: #333;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #555;
}

[class~="keyword-tag"]:hover {
    background-color: #ff6b35;
    border-color: #ff6b35;
    transform: translateY(-2px);
}

/* 页脚 */
[class~="footer"] {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    padding: 40px 0;
    margin-top: 60px;
}

[class~="footer-links"] {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

[class~="footer-links"] a {
    color: #999;
    transition: color 0.3s ease;
}

[class~="footer-links"] a:hover {
    color: #ff6b35;
}

[class~="footer-notice"] {
    text-align: center;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 25px;
}

[class~="footer-notice"] p {
    margin-bottom: 8px;
}

[class~="footer-keywords"] {
    text-align: center;
    font-size: 13px;
    color: #666;
}

[class~="footer-keywords"] a {
    color: #999;
    transition: color 0.3s ease;
}

[class~="footer-keywords"] a:hover {
    color: #ff6b35;
}

/* 响应式设计 */
@media (max-width: 768px) {
    [class~="container"] {
        padding: 0 15px;
    }

    [class~="header-content"] {
        flex-direction: column;
        gap: 15px;
    }

    [class~="nav-menu"] {
        display: none;
    }

    [class~="mobile-menu-btn"] {
        display: block;
    }

    [class~="search-input"] {
        font-size: 16px;
    }

    [class~="section-title"] {
        font-size: 20px;
    }

    [class~="footer-links"] {
        flex-direction: column;
        gap: 15px;
    }

    [class~="keywords-grid"] {
        gap: 10px;
    }

    [class~="keyword-tag"] {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    [class~="search-input"] {
        font-size: 16px;
    }

    [class~="section-title"] {
        font-size: 18px;
    }

    [class~="panel-content"] {
        margin: 20px;
        padding: 20px;
    }

    [class~="hot-keywords"] {
        gap: 8px;
    }

    [class~="hot-keywords"] a {
        padding: 6px 12px;
        font-size: 12px;
    }

    [class~="video-title"] {
        font-size: 13px;
    }

    [class~="video-stats"] {
        font-size: 11px;
        gap: 8px;
    }
}

/* 平板电脑适配 */
@media (min-width: 769px) and (max-width: 1023px) {
    [class~="video-grid"] {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1400px) {
    [class~="container"] {
        max-width: 1400px;
    }

}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[class~="video-item"] {
    animation: fadeInUp 0.6s ease forwards;
}

[class~="video-item"]:nth-child(2) { animation-delay: 0.1s; }
[class~="video-item"]:nth-child(3) { animation-delay: 0.2s; }
[class~="video-item"]:nth-child(4) { animation-delay: 0.3s; }
[class~="video-item"]:nth-child(5) { animation-delay: 0.4s; }
[class~="video-item"]:nth-child(6) { animation-delay: 0.5s; }

/* 无障碍访问 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 聚焦样式 */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
} 
/* === 影片宫格布局修复 (pic-list grid) === */
ul[class~="pic-list"] {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
ul[class~="pic-list"] > li {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    min-width: 0;
}
ul[class~="pic-list"] > li:hover { transform: translateY(-3px); }
ul[class~="pic-list"] a[class~="pic-img"] {
    display: block;
    position: relative;
    text-decoration: none;
}
ul[class~="pic-list"] a[class~="pic-img"] img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}
ul[class~="pic-list"] [class~="score"] {
    position: absolute;
    bottom: 4px; right: 4px;
    background: rgba(0,0,0,0.7);
    color: #f90;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 3px;
}
ul[class~="pic-list"] [class~="tips"] {
    position: absolute;
    top: 4px; left: 4px;
    background: rgba(255,107,53,0.9);
    color: #fff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 3px;
}
ul[class~="pic-list"] [class~="title"] { display: none; }
ul[class~="pic-list"] h3[class~="name"] {
    padding: 6px 8px;
    margin: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
ul[class~="pic-list"] h3[class~="name"] a { color: #ccc; text-decoration: none; }
ul[class~="pic-list"] h3[class~="name"] a:hover { color: #ff6b35; }
@media (max-width: 1400px) { ul[class~="pic-list"] { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1100px) { ul[class~="pic-list"] { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { ul[class~="pic-list"] { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px)  { ul[class~="pic-list"] { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px)  { ul[class~="pic-list"] { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* === 面包屑导航 === */
[class~="breadcrumb"] { background-color: #1a1a1a; border-radius: 8px; padding: 15px 20px; margin-bottom: 30px; font-size: 14px; }
[class~="breadcrumb-nav"] { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
[class~="breadcrumb-nav"] a { color: #ff6b35; text-decoration: none; }
[class~="breadcrumb-nav"] a:hover { color: #ffffff; }
[class~="breadcrumb-nav"] span { color: #666; }
[class~="breadcrumb-current"] { color: #ffffff; font-weight: 500; }

/* === 页面标题 === */
[class~="page-title"] { color: #fff; font-size: 28px; margin-bottom: 30px; }

/* === 分页 === */
[class~="pagination"] { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 40px 0; flex-wrap: wrap; }
[class~="pagination"] a, [class~="pagination"] span { padding: 10px 15px; background-color: #333; color: #ffffff; border-radius: 6px; text-decoration: none; min-width: 40px; text-align: center; transition: all 0.3s ease; }
[class~="pagination"] a:hover { background-color: #ff6b35; transform: translateY(-2px); }
[class~="pagination"] [class~="current"] { background-color: #ff6b35; font-weight: bold; }

/* === 筛选栏 === */
[class~="filter-bar"] { background-color: #1a1a1a; border-radius: 8px; padding: 15px 20px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 15px; align-items: flex-start; }
[class~="filter-label"] { color: #ccc; font-size: 14px; white-space: nowrap; padding-top: 5px; }
[class~="filter-options"] { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
[class~="filter-options"] a { padding: 5px 12px; background: #333; color: #ccc; border-radius: 4px; font-size: 13px; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
[class~="filter-options"] a:hover, [class~="filter-options"] a[class~="active"] { background: #ff6b35; color: #fff; }
[class~="filter-options"] li { list-style: none; }
[class~="filter-options"] li a { display: inline-block; padding: 5px 12px; background: #333; color: #ccc; border-radius: 4px; font-size: 13px; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
[class~="filter-options"] li a:hover, [class~="filter-options"] li a[class~="active"] { background: #ff6b35; color: #fff; }

/* === 选集列表 === */
[class~="episode-list"] { background-color: #1a1a1a; border-radius: 12px; padding: 20px; margin-bottom: 30px; }
[class~="episode-title"] { font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 15px; }
[class~="episode-grid"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
[class~="episode-btn"] { display: block; padding: 10px; background-color: #333; color: #fff; text-align: center; border-radius: 6px; text-decoration: none; transition: all 0.3s ease; font-size: 13px; }
[class~="episode-btn"]:hover, [class~="episode-btn"][class~="active"] { background-color: #ff6b35; transform: translateY(-1px); }

/* === 搜索结果 === */
[class~="search-results"] { margin-bottom: 30px; }
[class~="result-count"] { color: #999; margin-bottom: 20px; font-size: 14px; }

/* === 排行榜 === */
[class~="rank-tabs"] { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
[class~="rank-tab"] { padding: 12px 24px; background: #333; color: #fff; border-radius: 25px; text-decoration: none; transition: all 0.3s; }
[class~="rank-tab"]:hover, [class~="rank-tab"][class~="active"] { background: #ff6b35; }
[class~="rank-section"] { background-color: #1a1a1a; border-radius: 12px; padding: 25px; margin-bottom: 30px; }
[class~="rank-section"] h2 { color: #fff; font-size: 20px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #ff6b35; }
[class~="rank-item"] { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #333; }
[class~="rank-item"]:last-child { border-bottom: none; }
[class~="rank-num"] { width: 30px; height: 30px; background: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; margin-right: 15px; flex-shrink: 0; }
[class~="rank-num"][class~="top1"] { background: linear-gradient(135deg, #ffd700, #ff8c00); }
[class~="rank-num"][class~="top2"] { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); }
[class~="rank-num"][class~="top3"] { background: linear-gradient(135deg, #cd7f32, #b87333); }
[class~="rank-info"] { flex: 1; }
[class~="rank-title"] { color: #fff; font-size: 16px; margin-bottom: 5px; }
[class~="rank-title"] a { color: #fff; text-decoration: none; }
[class~="rank-title"] a:hover { color: #ff6b35; }
[class~="rank-meta"] { color: #999; font-size: 13px; }

/* === 列表页说明文字 === */
[class~="section-desc"] { color: #999; font-size: 14px; margin-top: 8px; }
[class~="section-desc"] strong { color: #ff6b35; }

/* === 图片懒加载占位 === */
[class~="lazyload"] { opacity: 0; transition: opacity 0.3s ease; }
[class~="lazyloaded"] { opacity: 1; }
img[class~="lazyload"] { background: #333; }

/* === 响应式补充 === */
@media (max-width: 768px) {
    [class~="breadcrumb"] { padding: 10px 15px; font-size: 13px; }
    [class~="filter-bar"] { padding: 10px 15px; gap: 10px; }
    [class~="filter-bar"] select { padding: 6px 10px; font-size: 13px; }
    [class~="episode-grid"] { grid-template-columns: repeat(5, 1fr); }
    [class~="rank-section"] { padding: 15px; }
    [class~="rank-item"] { padding: 10px 0; }
    [class~="pagination"] { gap: 6px; margin: 25px 0; }
    [class~="pagination"] a, [class~="pagination"] span { padding: 8px 12px; font-size: 13px; min-width: 36px; }
}

@media (max-width: 480px) {
    [class~="episode-grid"] { grid-template-columns: repeat(4, 1fr); }
    [class~="filter-bar"] { flex-direction: column; align-items: stretch; }
    [class~="filter-bar"] select { width: 100%; }
}

/* ===== Footer Enhanced ===== */
[class~="footer-links"] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    justify-content: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 16px;
}
[class~="footer-links"] a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}
[class~="footer-links"] a:hover { color: #ff6b35; }
[class~="footer-bottom"] { text-align: center; }
[class~="copyright"] { color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 8px; }
[class~="disclaimer"] { color: rgba(255,255,255,0.4); font-size: 12px; line-height: 1.6; margin-bottom: 8px; max-width: 800px; margin-left: auto; margin-right: auto; }
[class~="icp-info"] { color: rgba(255,255,255,0.4); font-size: 12px; }
[class~="icp-info"] a { color: rgba(255,255,255,0.4); text-decoration: none; }
[class~="icp-info"] a:hover { color: rgba(255,255,255,0.7); }

/* ===== Back to Top ===== */
[class~="back-to-top"] {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: #ff6b35;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}
[class~="back-to-top"][class~="visible"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
[class~="back-to-top"]:hover {
    background: #ff8c5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255,107,53,0.5);
}

/* ===== Card Meta (Hits + Category + Date) ===== */
[class~="pic-list"] li a[class~="pic-img"] { position: relative; display: block; overflow: hidden; }
[class~="hits"] {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.4;
    pointer-events: none;
    z-index: 2;
}
[class~="card-meta"] {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 0 4px;
}
[class~="vod-class"] {
    font-size: 11px;
    color: #ff6b35;
    background: rgba(255,107,53,0.12);
    padding: 1px 6px;
    border-radius: 3px;
    white-space: nowrap;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
}
[class~="vod-date"] {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}
[class~="movie-alias"] { font-size: 13px; color: rgba(255,255,255,0.5); margin: 4px 0 8px; }
[class~="movie-alias"] span { color: rgba(255,255,255,0.7); }

/* === 首页侧边栏双栏布局 (本周热播榜) === */
[class~="content-sidebar"] {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 30px;
    align-items: start;
}
[class~="sidebar-col"] {
    position: sticky;
    top: 80px;
}
[class~="rank-sidebar"] {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
}
[class~="rank-sidebar"] [class~="section-title"] {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
}
@media (max-width: 900px) {
    [class~="content-sidebar"] {
        grid-template-columns: 1fr;
    }
    [class~="sidebar-col"] {
        position: static;
    }
}

/* === 播放器 (play page) - 放入stylesheet确保CSP安全 === */
[class~="video-player"] { background-color: #000; border-radius: 12px; overflow: hidden; margin-bottom: 30px; width: 100%; }
[class~="player-container"] { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: #000; }
[class~="player-container"] video,
[class~="player-container"] iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
[class~="video-info"] { background-color: #1a1a1a; border-radius: 12px; padding: 25px; margin-bottom: 30px; }
[class~="video-info"] h1 { font-size: 24px; font-weight: bold; color: #fff; margin-bottom: 15px; }
[class~="video-meta"] { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; font-size: 14px; color: #999; }
[class~="video-meta"] span { display: flex; align-items: center; gap: 5px; }
[class~="video-desc"] { color: #ccc; line-height: 1.6; margin-bottom: 20px; }
[class~="video-actions"] { display: flex; gap: 15px; flex-wrap: wrap; }
[class~="action-btn"] { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background-color: #333; color: #fff; border: none; border-radius: 25px; cursor: pointer; text-decoration: none; font-size: 14px; transition: all 0.3s ease; }
[class~="action-btn"]:hover { background-color: #ff6b35; transform: translateY(-2px); }

/* === 选集列表 (<ul> + <li><a> 结构) === */
ul[class~="episode-grid"] { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 10px; }
ul[class~="episode-grid"] li { display: block; }
ul[class~="episode-grid"] li a { display: block; padding: 10px; background-color: #333; color: #fff; text-align: center; border-radius: 6px; text-decoration: none; transition: all 0.3s ease; font-size: 13px; }
ul[class~="episode-grid"] li a:hover, ul[class~="episode-grid"] li a[class~="current"], ul[class~="episode-grid"] li a[class~="active"] { background-color: #ff6b35; }

/* === 筛选栏响应式 === */
@media (max-width: 768px) {
    [class~="filter-bar"] { flex-direction: column; gap: 10px; }
    [class~="filter-options"] a { padding: 4px 10px; font-size: 12px; }
}
@media (max-width: 480px) {
    [class~="filter-bar"] { padding: 10px 15px; }
}

/* === 播放页响应式 === */
@media (max-width: 768px) {
    [class~="video-info"] { padding: 15px; }
    [class~="video-info"] h1 { font-size: 20px; }
    ul[class~="episode-grid"] { grid-template-columns: repeat(5, 1fr); }
}

/* ===== 搜索页面 ===== */
[class~="search-header"] { background-color: #1a1a1a; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
[class~="search-header-inner"] { display: flex; align-items: center; gap: 20px; }
[class~="search-title"] { color: #fff; font-size: 18px; margin: 0; white-space: nowrap; }
[class~="search-box-inline"] { flex: 1; max-width: 500px; }
[class~="search-box-inline"] input { width: 100%; padding: 12px 20px; border: none; border-radius: 25px; font-size: 14px; background: #333; color: #fff; }
[class~="search-box-inline"] input:focus { outline: 2px solid #ff6b35; }
[class~="result-info"] { color: #999; font-size: 13px; padding: 10px 0; }

/* 搜索页面双栏布局 */
[class~="search-layout"] { display: flex; gap: 20px; }
[class~="search-main"] { flex: 1; min-width: 0; }
[class~="search-sidebar"] { width: 260px; flex-shrink: 0; }

/* 搜索结果六宫格 */
[class~="result-grid"] { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }

/* 搜索结果卡片 */
[class~="result-grid"] [class~="movie-card"] { background-color: #1a1a1a; border-radius: 8px; overflow: hidden; text-decoration: none; display: block; transition: transform 0.3s ease; }
[class~="result-grid"] [class~="movie-card"]:hover { transform: translateY(-3px); }
[class~="result-grid"] [class~="movie-poster"] { position: relative; aspect-ratio: 2/3; overflow: hidden; }
[class~="result-grid"] [class~="movie-poster"] img { width: 100%; height: 100%; object-fit: cover; }
[class~="result-grid"] [class~="movie-score"] { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.8); color: #f90; font-size: 11px; padding: 2px 5px; border-radius: 3px; }
[class~="result-grid"] [class~="movie-badge"] { position: absolute; top: 4px; left: 4px; background: rgba(255,107,53,0.9); color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 3px; }
[class~="result-grid"] [class~="movie-play-overlay"] { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
[class~="result-grid"] [class~="movie-card"]:hover [class~="movie-play-overlay"] { opacity: 1; }
[class~="result-grid"] [class~="movie-play-overlay"] svg { width: 40px; height: 40px; fill: #fff; }
[class~="result-grid"] [class~="movie-info"] { padding: 8px; }
[class~="result-grid"] [class~="movie-title"] { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
[class~="result-grid"] [class~="movie-meta"] { font-size: 11px; color: #888; }
[class~="result-grid"] [class~="movie-meta"] span { margin-right: 6px; }

/* 搜索侧边栏 */
[class~="sidebar-section"] { background-color: #1a1a1a; border-radius: 10px; padding: 15px; margin-bottom: 15px; }
[class~="sidebar-title"] { color: #fff; font-size: 14px; font-weight: bold; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #ff6b35; }

/* 热门搜索标签（{热门搜索} 输出 <li><i>rank</i><a>name</a></li> 结构）*/
ul[class~="hot-search-tags"] { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
ul[class~="hot-search-tags"] li { display: inline-flex; }
ul[class~="hot-search-tags"] li i { display: none; }
ul[class~="hot-search-tags"] li a { display: inline-block; padding: 5px 10px; background: #333; color: #ccc; border-radius: 15px; text-decoration: none; font-size: 12px; transition: all 0.2s; }
ul[class~="hot-search-tags"] li a:hover { background: #ff6b35; color: #fff; }

/* 排行榜（{本月热播榜} 输出 <a><i>rank</i><h3>title</h3></a> 结构）*/
[class~="rank-list"] { display: flex; flex-direction: column; }
[class~="rank-list"] a { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #2a2a2a; color: #fff; text-decoration: none; }
[class~="rank-list"] a:last-child { border-bottom: none; }
[class~="rank-list"] a i { width: 20px; height: 20px; min-width: 20px; background: #ff6b35; color: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; font-style: normal; }
[class~="rank-list"] a:nth-child(n+4) i { background: #555; }
[class~="rank-list"] a h3 { flex: 1; margin: 0; font-size: 12px; font-weight: normal; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[class~="rank-list"] a:hover h3 { color: #ff6b35; }

/* 搜索页响应式 */
@media (max-width: 1200px) { [class~="result-grid"] { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 992px) {
    [class~="search-layout"] { flex-direction: column; }
    [class~="search-sidebar"] { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
    [class~="sidebar-section"] { margin-bottom: 0; }
    [class~="result-grid"] { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    [class~="result-grid"] { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    [class~="search-sidebar"] { grid-template-columns: 1fr; }
    [class~="search-header-inner"] { flex-direction: column; align-items: stretch; }
    [class~="search-box-inline"] { max-width: none; }
}
@media (max-width: 500px) { [class~="result-grid"] { grid-template-columns: repeat(2, 1fr); } }

/* site-slogan: 随机口号展示栏 */
[class~="site-slogan"] {
    text-align: center;
    padding: 6px 16px;
    font-size: 13px;
    opacity: 0.65;
    background: transparent;
    pointer-events: none;
}
[class~="site-slogan"] p {
    margin: 0;
    line-height: 1.4;
}


/* Logo text fallback */
[class~="logo-text"] {
    font-size: 1.5rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

/* ===== Detail Page Styles (added v-next) ===== */
[class~="detail-main"] { padding: 20px 0; }
[class~="detail-container"] { display: flex; gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 15px; flex-wrap: wrap; }
[class~="detail-poster"] { flex-shrink: 0; width: 200px; }
[class~="detail-poster"] img { width: 100%; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
[class~="detail-info"] { flex: 1; min-width: 0; }
[class~="detail-title"] { font-size: 1.8rem; font-weight: bold; margin-bottom: 16px; }
[class~="detail-meta"] { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 16px; font-size: 0.95rem; }
[class~="meta-item"] { display: inline-block; }
[class~="detail-synopsis"] { margin-bottom: 20px; line-height: 1.8; }
[class~="detail-synopsis"] h3 { font-size: 1.1rem; font-weight: bold; margin-bottom: 8px; }
[class~="detail-play-btn"] { margin: 20px 0; }
[class~="btn-play-now"] { display: inline-block; padding: 12px 32px; background: #e53935; color: #fff !important; border-radius: 4px; text-decoration: none; font-size: 16px; font-weight: bold; transition: background 0.2s; }
[class~="btn-play-now"]:hover { background: #c62828; }
[class~="detail-episodes"] { max-width: 1200px; margin: 24px auto; padding: 0 15px; }
[class~="detail-episodes"] h3 { font-size: 1.1rem; font-weight: bold; margin-bottom: 12px; }
[class~="detail-related"] { max-width: 1200px; margin: 24px auto; padding: 0 15px; }
[class~="detail-related"] h3 { font-size: 1.1rem; font-weight: bold; margin-bottom: 12px; }
[class~="breadcrumb"] { max-width: 1200px; margin: 12px auto; padding: 0 15px; font-size: 13px; color: #888; }
[class~="breadcrumb"] a { color: #666; text-decoration: none; }
[class~="breadcrumb"] a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    [class~="detail-container"] { flex-direction: column; }
    [class~="detail-poster"] { width: 140px; margin: 0 auto; }
    [class~="detail-title"] { font-size: 1.4rem; }
    [class~="btn-play-now"] { width: 100%; text-align: center; box-sizing: border-box; }
}
