* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}


/* 页眉样式 */

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin-left: 8px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ffd700;
}


/* 主要内容区域 */

.main-content {
    padding: 5px 0;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}


/* 热播区域 - 选项卡 */

.hot-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
}

.tab-nav button {
    background: none;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-nav button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


/* 影片网格 */

.movie-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}


/* PC端一行6个 */

@media (min-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}


/* 平板一行3个 */

@media (min-width: 768px) and (max-width: 1199px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* 移动端一行2个 */

@media (max-width: 767px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.movie-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}


/* .movie-poster {
    width: 100%;
    height: 60%;
    padding-bottom: 140%;
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
} */

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.movie-info {
    padding: 12px;
}

.movie-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
}


/* 排名区域 */

.ranking-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 767px) {
    .ranking-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ranking-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.ranking-category h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #667eea;
    text-align: center;
}

.ranking-list {
    list-style: none;
    padding: 0;
}

.ranking-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

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

.ranking-list .rank-1 {
    color: #ff6b6b;
    font-weight: bold;
}

.ranking-list .rank-2 {
    color: #ffa726;
    font-weight: bold;
}

.ranking-list .rank-3 {
    color: #ffcc02;
    font-weight: bold;
}


/* 页脚样式 */

.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: #95a5a6;
    font-size: 14px;
}


/* 在现有样式基础上添加以下内容 */


/* 转圈加载动画占位图 */

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}


/* 转圈加载动画 */

.loading-spinner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: absolute;
    top: 0;
    left: 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* 图片加载失败时的样式 */

.movie-poster img.error {
    display: none;
}

.movie-poster img.error+.loading-spinner {
    display: flex;
}


/* 在现有样式末尾添加列表页特有样式 */


/* 列表页筛选区域 */

.filter-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: bold;
    color: #666;
    font-size: 13px;
    min-width: 50px;
}

.filter-group select,
.filter-group input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    min-width: 100px;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #667eea;
}

.filter-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.filter-btn:hover {
    background: #5a6fd8;
}


/* 分页样式 */

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination .page-item {
    margin: 0 3px;
}

.pagination .page-link {
    color: #667eea;
    border: 1px solid #ddd;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.3s;
}

.pagination .page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination .page-item.active .page-link {
    background: #667eea;
    color: white;
    border-color: #667eea;
}


/* 列表页标题样式 */

.list-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}


/* 在现有样式末尾添加详情页特有样式 */


/* 影片详情区域 */

.movie-detail {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.detail-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.movie-poster-large {
    width: 100%;
    max-width: 150px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.movie-info-detail h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.movie-meta-detail {
    margin-bottom: 20px;
}

.meta-item {
    display: inline-block;
    margin-right: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.meta-item strong {
    color: #333;
}

.movie-description {
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-play {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-play:hover {
    background: #5a6fd8;
    color: white;
}

.btn-favorite {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-favorite:hover {
    background: #ff5252;
}


/* 猜你喜欢区域 */

.recommend-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.recommend-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.recommend-content {
    display: none;
}

.recommend-content.active {
    display: block;
}

.refresh-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.refresh-btn:hover {
    background: #218838;
}

.refresh-btn::before {
    content: "🔄";
    font-size: 14px;
}


/* 相关推荐区域 */

.related-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-poster {
    width: 100%;
    height: 0;
    padding-bottom: 60%;
    position: relative;
}

.related-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.related-info {
    padding: 10px;
}

.related-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-meta {
    font-size: 11px;
    color: #666;
}


/* 在现有样式末尾添加播放页特有样式 */


/* 播放页布局 */

.play-page {
    background: #1a1a1a;
    color: white;
    min-height: 100vh;
}

.play-page .header {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.play-page .main-content {
    padding: 20px 0;
}


/* 播放器区域 */

.player-section {
    background: #000;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.video-container {
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    text-align: center;
    flex-direction: column;
}

.video-placeholder .play-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}


/* 播放控制区域 */

.play-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #333;
}

.episode-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.episode-selector label {
    color: #ccc;
    font-size: 14px;
}

.episode-selector select {
    padding: 8px 12px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    min-width: 120px;
}

.episode-selector select:focus {
    outline: none;
    border-color: #667eea;
}

.quality-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quality-btn {
    padding: 6px 12px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
}

.quality-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}


/* 播放列表区域 */

.playlist-section {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.playlist-title {
    font-size: 20px;
    font-weight: bold;
    color: white;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}


/* 线路选择 */

.line-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.line-btn {
    padding: 8px 16px;
    border: 1px solid #444;
    background: #333;
    color: #ccc;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
}

.line-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}


/* 剧集列表 */

.episode-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.episode-item {
    background: #333;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    color: #ccc;
}

.episode-item:hover {
    background: #444;
    border-color: #667eea;
}

.episode-item.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}


/* 滚动条样式 */

.episode-list::-webkit-scrollbar {
    width: 6px;
}

.episode-list::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}

.episode-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.episode-list::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}


/* 加载状态 */

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #ccc;
}

.loading::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* 错误状态 */

.error-message {
    background: #ff6b6b;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}


/* 在现有样式末尾添加播放页更多样式 */


/* 播放器功能按钮 */

.player-functions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #333;
    flex-wrap: wrap;
    gap: 15px;
}

.function-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.function-btn {
    background: #444;
    color: #ccc;
    border: 1px solid #555;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.function-btn:hover {
    background: #555;
    color: white;
}

.function-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.function-btn::before {
    font-size: 14px;
}

.play-btn::before {
    content: "▶";
}

.pause-btn::before {
    content: "⏸";
}

.fullscreen-btn::before {
    content: "⛶";
}

.volume-btn::before {
    content: "🔊";
}

.settings-btn::before {
    content: "⚙";
}


/* 播放进度条 */

.progress-container {
    width: 100%;
    background: #333;
    border-radius: 10px;
    padding: 10px 0;
    margin: 15px 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #555;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.progress-fill {
    height: 100%;
    background: #667eea;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s;
}

.progress-handle {
    width: 16px;
    height: 16px;
    background: #667eea;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    left: 0%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: transform 0.3s;
}

.progress-handle:hover {
    transform: translateX(-50%) scale(1.2);
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: #ccc;
    font-size: 12px;
    margin-top: 8px;
}


/* 播放页猜你喜欢和相关推荐 */

.play-recommend-section {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.play-related-section {
    background: #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}


/* 播放页影片网格 */

.play-movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .play-movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .play-movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .play-movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.play-movie-item {
    background: #333;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.play-movie-item:hover {
    transform: translateY(-5px);
}

.play-movie-poster {
    width: 100%;
    height: 0;
    padding-bottom: 140%;
    position: relative;
}

.play-movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.play-movie-info {
    padding: 12px;
}

.play-movie-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.play-movie-meta {
    font-size: 11px;
    color: #ccc;
}


/* 播放页刷新按钮 */

.play-refresh-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.play-refresh-btn:hover {
    background: #218838;
}

.play-refresh-btn::before {
    content: "🔄";
    font-size: 14px;
}


/* 播放页推荐选项卡 */

.play-recommend-tabs {
    display: flex;
    border-bottom: 2px solid #444;
    margin-bottom: 25px;
}

.play-recommend-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.play-recommend-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: bold;
}

.play-recommend-content {
    display: none;
}

.play-recommend-content.active {
    display: block;
}


/* 在现有样式中，确保详情页相关推荐也有懒加载样式 */


/* 转圈加载动画占位图 */

.loading-spinner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: absolute;
    top: 0;
    left: 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* 图片加载失败时的样式 */

.movie-poster img.error,
.play-movie-poster img.error,
.related-poster img.error {
    display: none;
}

.movie-poster img.error+.loading-spinner,
.play-movie-poster img.error+.loading-spinner,
.related-poster img.error+.loading-spinner {
    display: flex;
}


/* 详情页相关推荐样式 */

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-poster {
    width: 100%;
    height: 0;
    padding-bottom: 140%;
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
}

.related-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.related-info {
    padding: 10px;
}

.related-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.3;
    height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-meta {
    font-size: 11px;
    color: #666;
}


/* 在现有样式中添加NEW角标样式 */


/* NEW角标样式 */

.new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse-new 2s infinite;
}

@keyframes pulse-new {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}


/* 确保所有海报容器都有相对定位 */

.movie-poster,
.play-movie-poster,
.related-poster {
    position: relative;
}


/* 为首页、列表页、详情页、播放页的所有图片添加NEW角标 */

.movie-item .movie-poster::before,
.play-movie-item .play-movie-poster::before,
.related-item .related-poster::before {
    content: "NEW";
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse-new 2s infinite;
}


/* 为详情页的大海报也添加NEW角标 */

.movie-poster-large {
    position: relative;
}

.movie-poster-large::before {
    content: "NEW";
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse-new 2s infinite;
}


/* 响应式调整NEW角标大小 */

@media (max-width: 768px) {
    .movie-item .movie-poster::before,
    .play-movie-item .play-movie-poster::before,
    .related-item .related-poster::before {
        font-size: 9px;
        padding: 2px 5px;
        top: 6px;
        left: 6px;
    }
    .movie-poster-large::before {
        font-size: 11px;
        padding: 3px 7px;
        top: 12px;
        left: 12px;
    }
}

@media (max-width: 576px) {
    .movie-item .movie-poster::before,
    .play-movie-item .play-movie-poster::before,
    .related-item .related-poster::before {
        font-size: 8px;
        padding: 2px 4px;
        top: 5px;
        left: 5px;
    }
    .movie-poster-large::before {
        font-size: 10px;
        padding: 3px 6px;
        top: 10px;
        left: 10px;
    }
}


/* 在现有样式中，统一相关推荐样式 */


/* 统一所有海报容器的样式 */

.movie-poster,
.play-movie-poster,
.related-poster {
    width: 100%;
    height: 0;
    padding-bottom: 66%;
    position: relative;
    background: #f0f0f0;
    overflow: hidden;
}

.movie-poster img,
.play-movie-poster img,
.related-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}


/* 统一所有影片项的样式 */

.movie-item,
.play-movie-item,
.related-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-item:hover,
.play-movie-item:hover,
.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}


/* 统一所有影片信息的样式 */

.movie-info,
.play-movie-info,
.related-info {
    padding: 12px;
}

.movie-title,
.play-movie-title,
.related-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
    height: 15px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.play-movie-meta,
.related-meta {
    font-size: 12px;
    color: #666;
    display: flex;
    justify-content: space-between;
}


/* 播放页特殊样式（暗色主题） */

.play-page .movie-item,
.play-page .play-movie-item,
.play-page .related-item {
    background: #333;
}

.play-page .movie-title,
.play-page .play-movie-title,
.play-page .related-title {
    color: white;
}

.play-page .movie-meta,
.play-page .play-movie-meta,
.play-page .related-meta {
    color: #ccc;
}


/* 详情页相关推荐网格布局 */

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 首页和列表页的影片网格 */

.movie-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}


/* PC端一行6个 */

@media (min-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}


/* 平板一行3个 */

@media (min-width: 768px) and (max-width: 1199px) {
    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* 移动端一行2个 */

@media (max-width: 767px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* 播放页的影片网格 */

.play-movie-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .play-movie-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .play-movie-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .play-movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* NEW角标样式 - 统一所有图片 */

.movie-item .movie-poster::before,
.play-movie-item .play-movie-poster::before,
.related-item .related-poster::before,
.movie-poster-large::before {
    content: "NEW";
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse-new 2s infinite;
}

.movie-poster-large::before {
    top: 15px;
    left: 15px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}

@keyframes pulse-new {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}


/* 响应式调整NEW角标大小 */

@media (max-width: 768px) {
    .movie-item .movie-poster::before,
    .play-movie-item .play-movie-poster::before,
    .related-item .related-poster::before {
        font-size: 9px;
        padding: 2px 5px;
        top: 6px;
        left: 6px;
    }
    .movie-poster-large::before {
        font-size: 11px;
        padding: 3px 7px;
        top: 12px;
        left: 12px;
    }
}

@media (max-width: 576px) {
    .movie-item .movie-poster::before,
    .play-movie-item .play-movie-poster::before,
    .related-item .related-poster::before {
        font-size: 8px;
        padding: 2px 4px;
        top: 5px;
        left: 5px;
    }
    .movie-poster-large::before {
        font-size: 10px;
        padding: 3px 6px;
        top: 10px;
        left: 10px;
    }
}


/* 在页眉样式部分添加搜索框样式 */


/* 页眉搜索框 */

.header-search {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-container {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* 响应式调整 */

@media (max-width: 768px) {
    .header-search {
        order: 3;
        max-width: 100%;
        margin: 15px 0 0 0;
    }
    .header .container {
        flex-wrap: wrap;
    }
    .nav-menu {
        order: 2;
        margin-left: 0;
    }
}


/* 在现有样式中添加影片链接样式 */


/* 影片链接样式 */

.movie-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-link:hover {
    text-decoration: none;
    color: inherit;
}

.movie-link:hover .movie-item,
.movie-link:hover .related-item,
.movie-link:hover .play-movie-item {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}


/* 确保链接不影响原有样式 */

.movie-link:focus {
    outline: none;
}

.movie-link:active {
    transform: scale(0.98);
}


/* 在现有样式中添加移动端下拉菜单样式 */


/* 在现有样式中添加移动端下拉菜单样式 */


/* 移动端菜单按钮 - 确保默认隐藏 */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}


/* 移动端下拉菜单样式 */

@media (max-width: 768px) {
    /* 强制显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: block !important;
        position: relative;
        z-index: 1001;
    }
    /* 隐藏PC端导航菜单 */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px 0;
        margin: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .nav-menu a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background 0.3s;
    }
    .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffd700;
    }
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    /* 页眉容器相对定位，为下拉菜单提供定位参考 */
    .header .container {
        position: relative;
    }
    /* 搜索框在移动端换行显示 */
    .header-search {
        order: 3;
        max-width: 100%;
        margin: 15px 0 0 0;
    }
    .header .container {
        flex-wrap: wrap;
    }
}


/* 移动端菜单按钮动画 */

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
/* 在现有样式中添加logo图片样式 */

/* 方式1：纯图片logo */
.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* 方式2：图片+文字组合logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 32px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .logo-img {
        height: 52px;
    }
    
    .logo-icon {
        height: 28px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}
/* 在现有样式中添加面包屑样式 */

/* 面包屑导航样式 */
.breadcrumb {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: #ccc;
    font-weight: bold;
}

.breadcrumb-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-link:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #666;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .breadcrumb {
        padding: 12px 15px;
        margin-bottom: 20px;
    }
    
    .breadcrumb-list {
        font-size: 13px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin: 0 8px;
    }
}

/* 移动端隐藏影片描述 */

@media (max-width: 768px) {
    .movie-description {
        display: none;
    }
    /* 或者使用更温和的方式，只显示部分描述 */
    .movie-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 3em;
        line-height: 1.5;
    }
}


/* 如果需要在小屏幕下完全隐藏，使用这个版本 */

/*@media (max-width: 576px) {*/
/*    .movie-description {*/
/*        display: none;*/
/*    }*/
/*}*/

/* 在现有样式中添加返回顶部按钮样式 */

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}