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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.logo a {
    text-decoration: none;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-form {
    display: flex;
    background: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
}

.search-btn {
    padding: 12px 25px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: translateY(-1px);
}

.user-menu {
    display: flex;
    align-items: center;
}

.history-btn {
    text-decoration: none;
    color: #666;
    padding: 10px 15px;
    border-radius: 20px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.history-btn:hover {
    background: #e9ecef;
    color: #333;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #eee;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.nav-item.active a,
.nav-item a:hover {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
}

.update-info {
    color: #666;
    font-size: 14px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 20px;
}

.main {
    padding: 30px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.content-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.date {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

.more-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.more-link:hover {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.movie-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s;
}

.play-icon::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #333;
}

.movie-card:hover .play-icon {
    opacity: 1;
}

.status-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    margin-bottom: 8px;
}

.movie-title a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
}

.movie-title a:hover {
    color: #ff6b6b;
}

.movie-cast {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.recommend-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.recommend-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.recommend-list {
    list-style: none;
}

.recommend-list li {
    margin-bottom: 12px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 25px;
    transition: all 0.3s;
}

.recommend-list li:hover {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transform: translateX(5px);
}

.recommend-list a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.recommend-list li:hover a {
    color: white;
}

.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-top: 50px;
    padding: 40px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

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

.footer-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.link-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.link-list a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.link-list a:hover {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
}

.footer-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-info a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-info a:hover {
    color: #ff6b6b;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
        margin: 0;
    }
    
    .nav-list {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .content-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .recommend-section {
        padding: 20px;
    }
    
    .footer {
        padding: 30px 0;
    }
    
    .link-list {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .nav-item a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .movie-info {
        padding: 12px;
    }
    
    .movie-title a {
        font-size: 14px;
    }
    
    .movie-cast {
        font-size: 12px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

