/*
 * move3模板 - 优酷风格设计
 * 基于优酷网UI风格和交互设计
 */

:root {
    --primary-color: #2B2F3D;      /* 主色调：深蓝灰色 */
    --secondary-color: #09BB07;    /* 次色调：明亮绿色 */
    --accent-color: #FF5F00;       /* 强调色：橙色 */
    --text-color: #333;            /* 文本色：深灰 */
    --text-light: #777;            /* 浅文本：中灰 */
    --text-lighter: #aaa;          /* 更浅文本：浅灰 */
    --light-bg: #F6F7FA;           /* 浅背景色 */
    --dark-bg: #20232C;            /* 深背景色 */
    --border-color: #e0e0e0;       /* 边框色：浅灰 */
    --hover-color: #f5f5f5;        /* 悬停色：更浅的灰 */
    --shadow-color: rgba(0, 0, 0, 0.1); /* 阴影色 */
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); /* 卡片阴影 */
}

/* 全局样式 */
body {
    font-family: 'Poppins', 'Noto Sans SC', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: var(--accent-color);
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
}

/* 主导航栏 */
.main-header {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    box-shadow: 0 2px 8px var(--shadow-color);
    padding: 0.5rem 0;
}

.youku-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
}

.navbar-menu {
    display: flex;
    flex-grow: 1;
}

.menu-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    font-weight: 500;
    position: relative;
}

.menu-item:hover,
.menu-item.active {
    color: white;
}

.menu-item.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.navbar-actions {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    margin-right: 1rem;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: white;
    padding: 0.5rem 1rem;
    padding-right: 2.5rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
    width: 250px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem;
}

.search-btn:hover {
    color: white;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background-color: var(--dark-bg);
    z-index: 1050;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.mobile-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    cursor: pointer;
}

.mobile-menu-body {
    padding: 1rem;
}

.mobile-search {
    margin-bottom: 1.5rem;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.7rem 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-item i {
    margin-right: 0.8rem;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: white;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* 页面主容器 */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding-bottom: 3rem;
}

/* Banner区域 */
.banner-section {
    margin-bottom: 2rem;
}

.banner-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0.3;
    z-index: -1;
}

.banner-content {
    position: relative;
    padding: 4rem 0;
    color: white;
}

.banner-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    z-index: -1;
}

.banner-info {
    max-width: 700px;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.banner-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 3px;
    font-size: 0.85rem;
}

.banner-desc {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.banner-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #e55500;
    border-color: #e55500;
}

/* 主要内容容器 */
.main-container {
    padding: 2rem 0;
}

/* 内容分区通用样式 */
.content-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-left: 0.8rem;
    margin: 0;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-more {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.section-more i {
    margin-left: 0.3rem;
    font-size: 0.8rem;
}

/* 特色内容网格 */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.featured-main {
    grid-column: 1;
}

.featured-list {
    grid-column: 2;
}

.featured-card {
    display: block;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-large .featured-img-wrapper {
    height: 300px;
}

.featured-small .featured-img-wrapper {
    height: 180px;
}

.featured-img-wrapper {
    position: relative;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-img {
    transform: scale(1.05);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover .featured-overlay {
    opacity: 1;
}

.play-icon {
    color: white;
    font-size: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.featured-info {
    padding: 1rem;
}

.featured-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.featured-rating,
.featured-update {
    display: flex;
    align-items: center;
}

.featured-rating i,
.featured-update i {
    margin-right: 0.3rem;
}

.featured-rating {
    color: #ffc107;
}

.featured-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* 视频卡片 */
.video-card {
    display: block;
    position: relative;
    margin-bottom: 1rem;
    background-color: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.play-btn {
    color: white;
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
}

.video-info {
    padding: 0.8rem;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    max-height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.8rem;
}

.video-rating {
    color: #ffc107;
}

.video-rating i,
.video-year i,
.video-author i {
    margin-right: 0.3rem;
}

/* 榜单样式 */
.ranking-container {
    margin-top: 1rem;
}

.ranking-list {
    background-color: white;
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.ranking-list-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 0.8rem;
}

.ranking-list-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: 1.5px;
}

.ranking-items {
    display: flex;
    flex-direction: column;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #f0f0f0;
    color: var(--text-light);
    border-radius: 4px;
    font-weight: 600;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.ranking-num.ranking-top {
    background-color: var(--accent-color);
    color: white;
}

.ranking-thumb {
    width: 80px;
    height: 45px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.ranking-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-info {
    flex: 1;
    min-width: 0;
}

.ranking-title {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.ranking-meta {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

.ranking-category {
    background-color: #f0f0f0;
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    margin-right: 0.8rem;
}

.ranking-views {
    display: flex;
    align-items: center;
}

.ranking-views i {
    margin-right: 0.3rem;
    font-size: 0.75rem;
}

/* 页脚 */
.youku-footer {
    background-color: var(--primary-color);
    color: #f0f0f0;
    padding: 3rem 0 1.5rem;
}

.footer-top {
    margin-bottom: 2rem;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: white;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.social-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.app-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.app-buttons {
    display: flex;
    gap: 0.8rem;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: background-color 0.2s ease;
}

.app-btn i {
    margin-right: 0.5rem;
}

.app-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-info a:hover {
    color: white;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e55500;
    transform: translateY(-3px);
}

/* 详情页样式 */
.detail-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.detail-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.detail-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    width: 100%;
}

.detail-poster {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.detail-poster img {
    width: 100%;
    vertical-align: middle;
    border-radius: 8px;
}

.detail-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

.detail-info {
    padding-bottom: 1rem;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.score-stars {
    display: flex;
    gap: 0.3rem;
    color: #ffc107;
    font-size: 1.2rem;
}

.score-count {
    margin-left: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.detail-data {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.8rem 2rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.item-value {
    font-weight: 500;
}

.item-value a {
    color: var(--accent-color);
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-play {
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-play:hover {
    background-color: #e55500;
    color: white;
}

.btn-favorite,
.btn-share {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-favorite:hover,
.btn-share:hover,
.btn-favorite.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-favorite.active {
    color: #ff3366;
}

.detail-container {
    padding: 2rem 0;
}

/* 详情页内容区 */
.detail-section {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.detail-summary {
    position: relative;
}

.summary-content {
    line-height: 1.7;
    color: var(--text-color);
    position: relative;
}

.summary-hidden {
    display: none;
}

.summary-content.expanded .summary-hidden {
    display: inline;
}

.expand-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--accent-color);
    padding: 0.5rem 0;
    font-weight: 500;
    margin-top: 0.5rem;
    cursor: pointer;
}

.episodes-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.episode-sort {
    display: flex;
    align-items: center;
}

.sort-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
}

.sort-btn.active {
    color: var(--accent-color);
    font-weight: 500;
}

.sort-divider {
    color: var(--border-color);
    margin: 0 0.5rem;
}

.episode-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.episode-item:hover,
.episode-item.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.episode-number {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.3rem 0;
}

.episode-title {
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* 侧边栏小部件 */
.sidebar-widget {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.widget-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.widget-content {
    padding: 1.5rem;
}

.hot-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hot-item:last-child {
    border-bottom: none;
}

.hot-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #f0f0f0;
    color: var(--text-light);
    border-radius: 4px;
    font-weight: 600;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.hot-rank.top-rank {
    background-color: var(--accent-color);
    color: white;
}

.hot-thumb {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-right: 1rem;
    flex-shrink: 0;
}

.hot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-info {
    flex: 1;
    min-width: 0;
}

.hot-title {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.hot-views {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.hot-views i {
    margin-right: 0.3rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background-color: var(--accent-color);
    color: white;
}

/* 相关卡片区域 */
.related-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.related-card {
    display: block;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.related-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-img {
    transform: scale(1.05);
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-card:hover .related-overlay {
    opacity: 1;
}

.related-info {
    padding: 0.8rem;
}

.related-title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    max-height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-meta {
    color: var(--text-light);
    font-size: 0.8rem;
}

.related-meta span {
    display: flex;
    align-items: center;
}

.related-meta i {
    margin-right: 0.3rem;
    color: #ffc107;
}

/* 播放页样式 */
.player-wrapper {
    background-color: var(--dark-bg);
    color: white;
    padding: 1.5rem 0;
}

.player-container {
    width: 100%;
    margin: 0 auto;
}

.video-player {
    position: relative;
    width: 100%;
    background-color: black;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.5rem;
}

.video-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-content iframe,
.video-content video,
.video-content object,
.video-content embed {
    width: 100%;
    height: 100%;
}

.no-video-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.no-video-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-video-message p {
    margin-bottom: 0.5rem;
}

.player-info {
    padding: 1rem 0;
}

.video-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.video-title {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.video-title a {
    color: white;
}

.chapter-title {
    color: rgba(255, 255, 255, 0.8);
}

.video-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover,
.action-btn.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.action-btn.active {
    color: #ff3366;
}

.video-data {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.data-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chapter-container {
    padding: 2rem 0;
}

/* 播放页剧集网格 */
.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.chapter-section {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

/* 列表页样式 */
.list-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
}

.list-header-content {
    text-align: center;
}

.list-main-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.list-meta {
    opacity: 0.8;
}

.filter-bar {
    background-color: white;
    padding: 1.5rem 0;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    margin-bottom: 1rem;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    width: 80px;
    color: var(--text-light);
    font-weight: 500;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-option {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-option:hover,
.filter-option.active {
    background-color: var(--accent-color);
    color: white;
}

.list-content {
    padding: 1rem 0 3rem;
}

.pagination-wrapper {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.pagination {
    --bs-pagination-active-bg: var(--accent-color);
    --bs-pagination-active-border-color: var(--accent-color);
}

.no-results {
    background-color: white;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.no-results-content {
    max-width: 600px;
    margin: 0 auto;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.no-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.no-results-tips {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
    margin-top: 1.5rem;
}

.no-results-tips h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.no-results-tips ul {
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.no-results-tips li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* 搜索页样式 */
.search-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
}

.search-form-wrapper {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.search-form-large .form-control {
    height: 50px;
    font-size: 1.1rem;
}

.search-form-large .btn {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.search-info {
    text-align: center;
}

.search-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.search-count {
    opacity: 0.8;
}

.search-container {
    padding: 2rem 0;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-result-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-item-link {
    display: block;
    padding: 1.5rem;
}

.search-thumb {
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 6px;
}

.search-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-result-item:hover .search-overlay {
    opacity: 1;
}

.search-info-content {
    padding: 0 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.search-item-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.search-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.search-meta-item i:first-child {
    color: var(--accent-color);
}

.search-item-desc {
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-suggestions {
    padding: 1rem 0;
}

.search-suggestions h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.tag-item {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: white;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.tag-item:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 响应式样式 */
@media (max-width: 991.98px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-main,
    .featured-list {
        grid-column: 1;
    }

    .featured-large .featured-img-wrapper {
        height: 220px;
    }

    .ranking-container .row > div:first-child {
        margin-bottom: 2rem;
    }

    .detail-poster {
        max-width: 230px;
        margin: 0 auto 2rem;
    }

    .detail-title {
        font-size: 2rem;
    }

    .detail-banner {
        min-height: auto;
    }

    .detail-content {
        padding: 2rem 0;
    }

    .related-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .mobile-toggle {
        display: block;
    }

    .banner-title {
        font-size: 1.8rem;
    }

    .banner-content {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .detail-score {
        flex-wrap: wrap;
    }

    .detail-data {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        flex-wrap: wrap;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .search-info-content {
        padding: 1rem 0 0;
    }

    .search-item-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .banner-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-play,
    .btn-outline-light {
        width: 100%;
        justify-content: center;
    }

    .featured-small .featured-img-wrapper {
        height: 150px;
    }

    .detail-title {
        font-size: 1.5rem;
    }

    .related-cards {
        grid-template-columns: 1fr;
    }

    .episode-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }

    .category-tags {
        gap: 0.5rem;
    }

    .category-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .no-results {
        padding: 2rem 1rem;
    }

    .search-item-link .row {
        flex-direction: column;
    }

    .search-thumb {
        margin-bottom: 1rem;
    }

    .search-info-content {
        padding: 0;
    }

    .col-4.col-md-3.col-lg-2 {
        width: 100%;
        margin-bottom: 1rem;
    }

    .col-8.col-md-9.col-lg-10 {
        width: 100%;
    }
}

/* 懒加载样式 */
.lazy {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy.loaded {
    opacity: 1;
}