/* 全局样式 - 暗黑风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

/* 搜索栏 - 顶部居中 */
.search-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid #444;
    border-radius: 25px;
    padding: 8px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.search-bar input {
    width: 300px;
    height: 35px;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    padding: 0 10px;
}

.search-bar input::placeholder {
    color: #888;
}

.search-bar button {
    width: 80px;
    height: 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.search-bar button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

/* 主容器 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px 40px 20px;
}

/* 影片列表 */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.movie-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #2d2d2d;
    transition: all 0.3s ease;
    cursor: pointer;
}

.movie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.movie-item a {
    display: block;
    text-decoration: none;
    color: #e0e0e0;
}

.movie-cover {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: #1a1a1a;
}

.movie-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-item:hover .movie-cover img {
    transform: scale(1.1);
}

.movie-info {
    padding: 12px;
    background: #2d2d2d;
}

.movie-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.movie-remarks {
    color: #667eea;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .search-bar {
        width: 90%;
    }
    
    .search-bar input {
        width: 200px;
    }
    
    .container {
        padding-top: 120px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .movie-title {
        font-size: 13px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-item {
    animation: fadeIn 0.5s ease forwards;
}

.movie-item:nth-child(1) { animation-delay: 0.1s; }
.movie-item:nth-child(2) { animation-delay: 0.2s; }
.movie-item:nth-child(3) { animation-delay: 0.3s; }
.movie-item:nth-child(4) { animation-delay: 0.4s; }
.movie-item:nth-child(5) { animation-delay: 0.5s; }
.movie-item:nth-child(6) { animation-delay: 0.6s; }
