/* 主要内容区 */
.main-content {
    display: flex;
    margin: 30px 0;
    gap: 30px;
}

.content {
    flex: 3;
}

.sidebar {
    flex: 1;
}

/* 特色电影区 */
.featured-movies {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.section-header h2 {
    font-size: 20px;
    color: #444;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-right: 10px;
    color: #ff9900;
}

.section-header a {
    font-size: 14px;
}

.featured-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.main-featured {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)), url('https://source.unsplash.com/random/600x400/?movie') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s;
}

.featured-item:hover {
    background: #f8f8f8;
}

.featured-item img {
    width: 80px;
    height: 110px;
    border-radius: 4px;
    object-fit: cover;
}

.movie-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.movie-info p {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.rating {
    color: #ff9900;
    font-weight: bold;
    font-size: 14px;
}

/* 最新电影 */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
}

.movie-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.movie-poster {
    height: 260px;
    width: 100%;
    background: #ddd;
    position: relative;
    overflow: hidden;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.05);
}

.movie-poster .rating-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 153, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.movie-details {
    padding: 15px;
}

.movie-title, .movie-title a {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    height: 44px;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 13px;
}

/* 侧边栏 */
.sidebar-section {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.trending-list, .upcoming-list, .top-rated-list {
    padding: 0;
    list-style: none;
}

.trending-list li, .upcoming-list li, .top-rated-list li {
    padding: 12px 20px;
    display: flex;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.trending-list li:last-child,
.upcoming-list li:last-child,
.top-rated-list li:last-child {
    border-bottom: none;
}

.trending-list li:hover,
.upcoming-list li:hover,
.top-rated-list li:hover {
    background: #f9f9f9;
}

.rank {
    font-weight: bold;
    color: #ff9900;
    min-width: 25px;
}

.sidebar-movie-title {
    font-size: 14px;
    margin-bottom: 3px;
}

.sidebar-movie-meta {
    font-size: 12px;
    color: #777;
    height: 28px;
    line-height: 28px;
    padding-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
}