/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-left h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.header-left p {
    color: #7f8c8d;
    font-size: 1.1em;
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.stats-info {
    font-size: 14px;
    color: #666;
    text-align: right;
}

.stats-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.stats-link:hover {
    text-decoration: underline;
}

/* 电影详情页面中的导演、编剧、主演链接样式 */
.detail-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.detail-item a:hover {
    text-decoration: underline;
    color: #5a6fd8;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-register {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.btn-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 搜索区域 */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-tips {
    color: #7f8c8d;
    font-size: 0.9em;
}

/* 高级筛选区域 */
.filter-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ecf0f1;
}

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

.filter-label {
    min-width: 100px;
    font-weight: 600;
    color: #2c3e50;
    margin-right: 20px;
}

.filter-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
    flex: 1;
    overflow: hidden;
    position: relative;
    max-width: calc(100% - 120px);
    min-height: 40px;
}

.filter-options.expanded {
    flex-wrap: wrap;
    max-width: none;
    overflow: visible;
}

.filter-option {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.8);
    color: #666;
    border: 1px solid #e1e5e9;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-option:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #667eea;
}

.filter-option.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.filter-more {
    color: #7f8c8d;
    font-weight: 600;
    margin-left: 10px;
    cursor: pointer;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e1e5e9;
    border-radius: 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.filter-more:hover {
    color: #667eea;
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 5px;
    padding-top: 5px;
}

/* 分类区域 */
.category-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.category-title {
    font-size: 1.5em;
    color: #2c3e50;
    font-weight: 600;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* 统计卡片 - 移到底部 */
.stats-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 1.1em;
    font-weight: 500;
}

/* 新的热门分类卡片样式 */
.stat-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: left;
}

.stat-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stat-item {
    font-size: 0.9em;
    color: #34495e;
    padding: 4px 8px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.stat-item:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
    color: #2980b9;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* 电影网格 */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.movie-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.movie-poster {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.1);
}

.movie-info {
    padding: 12px;
}

.movie-title {
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 首页电影卡片中的标题样式（单行，超出显示省略号） */
.movie-card .movie-title {
    height: 1.3em; /* 改为单行高度 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 改为顶部对齐 */
}

.movie-card .movie-title-chinese {
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    min-height: 1.3em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 强制单行显示 */
    display: block; /* 改为块级元素 */
}

.movie-card .movie-title-english {
    display: none; /* 隐藏英文标题，只显示中文标题 */
}

.movie-card .movie-title-default {
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* 强制单行显示 */
    min-height: 1.3em;
}

.movie-card .movie-title-empty {
    display: none; /* 隐藏空标题 */
}

/* 列表页电影标题样式（多行，不显示省略号） */
.list-container .movie-title,
.list-items .movie-title {
    height: auto; /* 自适应高度 */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.list-container .movie-title-chinese,
.list-items .movie-title-chinese {
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    min-height: 1.3em;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal; /* 允许换行 */
    overflow: visible; /* 不隐藏溢出内容 */
}

.list-container .movie-title-english,
.list-items .movie-title-english {
    font-size: 0.8em;
    font-weight: 500;
    color: #7f8c8d;
    line-height: 1.2;
    font-style: italic;
    min-height: 1.2em;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal; /* 允许换行 */
    overflow: visible; /* 不隐藏溢出内容 */
}

.list-container .movie-title-default,
.list-items .movie-title-default {
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    min-height: 1.3em;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal; /* 允许换行 */
    overflow: visible; /* 不隐藏溢出内容 */
}

.list-container .movie-title-empty,
.list-items .movie-title-empty {
    min-height: 1.2em;
    visibility: hidden;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8em;
    color: #7f8c8d;
    margin-bottom: 6px;
}

.movie-year {
    font-weight: 500;
}

.movie-rating {
    background: #f39c12;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: 600;
    margin-left: auto; /* 确保评分靠右 */
}



.movie-genre {
    font-size: 0.7em;
    color: #95a5a6;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-actions {
    display: flex;
    gap: 6px;
}

.movie-actions .btn {
    padding: 4px 8px;
    font-size: 0.7em;
    margin: 0;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.pagination .btn {
    padding: 8px 16px;
    margin: 0;
}

.pagination .current {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    pointer-events: none;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

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

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

/* 消息提示 */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.message {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    animation: slideIn 0.3s ease;
}

.message.error {
    border-left-color: #e74c3c;
}

.message.success {
    border-left-color: #27ae60;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 30px;
}

/* 电影详情模态框 */
.movie-modal .modal-content {
    max-width: 800px;
}

.movie-detail {
    display: flex;
    gap: 30px;
}

.movie-detail .movie-poster {
    flex: 0 0 200px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.movie-detail .movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-detail .movie-info {
    flex: 1;
}

.movie-detail .movie-info h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #2c3e50;
}

.movie-detail .movie-info p {
    margin-bottom: 8px;
    color: #7f8c8d;
}

.movie-detail .movie-actions {
    margin-top: 20px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-left h1 {
        font-size: 2em;
    }
    
    .header-right {
        justify-content: center;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .filter-options {
        width: 100%;
        max-width: none;
    }
    
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .movie-poster {
        height: 150px;
    }
    
    .movie-detail {
        flex-direction: column;
    }
    
    .movie-detail .movie-poster {
        flex: 0 0 auto;
        height: 250px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .movie-poster {
        height: 120px;
    }
    
    .movie-info {
        padding: 8px;
    }
    
    .movie-title {
        font-size: 0.8em;
    }
    
    .movie-actions .btn {
        padding: 3px 6px;
        font-size: 0.6em;
    }
}

/* 下载链接样式 */
.download-links-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.download-links-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
}

.download-links-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-link {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.link-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.link-title {
    font-weight: bold;
    color: #333;
    flex: 1;
    min-width: 200px;
}

.link-size {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.link-time {
    background: #f3e5f5;
    color: #7b1fa2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.link-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.link-resolution {
    background: #e8f5e8;
    color: #388e3c;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.link-format {
    background: #fff3e0;
    color: #f57c00;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.link-group {
    background: #fce4ec;
    color: #c2185b;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.link-r-id {
    background: #f1f8e9;
    color: #689f38;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-family: monospace;
}

/* 移除不再使用的link-actions样式 */

.link-direct {
    background: #667eea;
    color: white;
}

.link-direct:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.link-download {
    background: #28a745;
    color: white;
}

.link-download:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* 电影详情页面样式 */
.movie-detail-page {
    max-width: 1400px;
    margin: 0 auto;
}

/* 海报评分区域样式 */
.poster-ratings {
    margin-top: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.rating-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.rating-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #333;
}

.rating-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* 豆瓣图标放大2号 */
.rating-link svg[p-id="8887"] {
    width: 20px !important;
    height: 20px !important;
}

/* IMDB图标放大1号 */
.rating-link svg[p-id="10725"] {
    width: 18px !important;
    height: 18px !important;
}

.no-rating {
    color: #999;
    font-size: 14px;
    font-style: italic;
}

/* 信息区域 */
.info-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
}

/* 下载区域 */
.download-section {
    margin-bottom: 20px;
    width: 100%;
}

.download-links-container {
    margin: 0 auto;
    width: 100%;
}

.movie-detail-container {
    margin: 0 auto;
    width: 100%;
}

.movie-detail-page .movie-detail {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: flex-start;
    width: 100%;
}

.movie-detail-page .movie-poster {
    flex-shrink: 0;
    flex-grow: 0;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 250px;
    height: auto;
    min-width: 250px;
    max-width: 250px;
    overflow: visible;
    position: static;
    background: transparent;
    padding: 0;
    margin: 0;
}

.movie-poster-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
    flex-shrink: 0;
}

.movie-detail-page .movie-poster img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    object-fit: contain;
}

.movie-detail-page .movie-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
}

.movie-detail-page .movie-info h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 4px;
    font-weight: 700;
}

.english-title {
    font-size: 1.1em;
    color: #7f8c8d;
    margin-bottom: 8px;
    font-style: italic;
    font-weight: 400;
}



.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.meta-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.movie-description {
    background: rgba(102, 126, 234, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.movie-description p {
    line-height: 1.6;
    color: #555;
    font-size: 1.1em;
}

.movie-detail-page .movie-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.movie-detail-page .movie-actions .btn {
    padding: 15px 30px;
    font-size: 1.1em;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .movie-detail-page .movie-detail {
        flex-direction: column;
        gap: 20px;
    }
    
    .movie-detail-page .movie-poster {
        width: auto;
        height: auto;
    }
    
    .movie-detail-page .movie-info h2 {
        font-size: 2em;
    }
    
    .movie-meta {
        gap: 10px;
    }
    
    .meta-item {
        font-size: 0.8em;
        padding: 6px 12px;
    }
    
    .movie-detail-page .movie-actions {
        justify-content: center;
    }
}

/* 电影详细信息样式 */
.movie-details {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    border-left: 4px solid #667eea;
    width: 100%;
}

.detail-item {
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    width: 100%;
}

.detail-item:last-child {
    margin-bottom: 0;
}

/* 按格式类型分组的下载链接样式 */
.format-group {
    margin-bottom: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #667eea;
    width: 100%;
}

.format-group-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.format-group-title .format-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 600;
}

.format-group-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.format-group .download-link {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    border-left: 3px solid #667eea;
}

.format-group .download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 不同格式类型的颜色 */
/* 4K - 红色 */
.format-group[data-format="4K"] {
    border-left-color: #e74c3c;
}

.format-group[data-format="4K"] .format-group-title {
    border-bottom-color: #e74c3c;
}

.format-group[data-format="4K"] .format-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

/* 蓝光原盘 - 紫色 */
.format-group[data-format="蓝光原盘"] {
    border-left-color: #9b59b6;
}

.format-group[data-format="蓝光原盘"] .format-group-title {
    border-bottom-color: #9b59b6;
}

.format-group[data-format="蓝光原盘"] .format-badge {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* Remux - 紫色 */
.format-group[data-format="Remux"] {
    border-left-color: #9b59b6;
}

.format-group[data-format="Remux"] .format-group-title {
    border-bottom-color: #9b59b6;
}

.format-group[data-format="Remux"] .format-badge {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* BluRay系列 - 紫色 */
.format-group[data-format="BluRay-1080P"] {
    border-left-color: #9b59b6;
}

.format-group[data-format="BluRay-1080P"] .format-group-title {
    border-bottom-color: #9b59b6;
}

.format-group[data-format="BluRay-1080P"] .format-badge {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.format-group[data-format="BluRay-3D"] {
    border-left-color: #9b59b6;
}

.format-group[data-format="BluRay-3D"] .format-group-title {
    border-bottom-color: #9b59b6;
}

.format-group[data-format="BluRay-3D"] .format-badge {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.format-group[data-format="BluRay-720P"] {
    border-left-color: #9b59b6;
}

.format-group[data-format="BluRay-720P"] .format-group-title {
    border-bottom-color: #9b59b6;
}

.format-group[data-format="BluRay-720P"] .format-badge {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* WEB系列 - 黄色 */
.format-group[data-format="WEB-1080P"] {
    border-left-color: #f3b547;
}

.format-group[data-format="WEB-1080P"] .format-group-title {
    border-bottom-color: #f3b547;
}

.format-group[data-format="WEB-1080P"] .format-badge {
    background: linear-gradient(135deg, #f3b547 0%, #f39c12 100%);
}

.format-group[data-format="WEB-720P"] {
    border-left-color: #f3b547;
}

.format-group[data-format="WEB-720P"] .format-group-title {
    border-bottom-color: #f3b547;
}

.format-group[data-format="WEB-720P"] .format-badge {
    background: linear-gradient(135deg, #f3b547 0%, #f39c12 100%);
}

/* 其他格式 - 黄色 */
.format-group[data-format="其他"] {
    border-left-color: #f3b547;
}

.format-group[data-format="其他"] .format-group-title {
    border-bottom-color: #f3b547;
}

.format-group[data-format="其他"] .format-badge {
    background: linear-gradient(135deg, #f3b547 0%, #f39c12 100%);
}

/* 列表页面标题链接样式 */
.title-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

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

/* 消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.message.success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.message.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 用户认证相关样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.username {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.btn-logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
}

/* 登录注册表单样式优化 */
.login-form,
.register-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.form-actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-actions .btn-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.form-actions .btn-success:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-1px);
}

.form-actions .btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.form-actions .btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
    transform: translateY(-1px);
}

 