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

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.app-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-area {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    gap: 15px;
}

.brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: #ff6b6b;
    transform: translateY(-2px);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::before {
    width: 100%;
}

.search-zone {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-zone:focus-within {
    border-color: #ff6b6b;
    box-shadow: 0 5px 25px rgba(255, 107, 107, 0.3);
}

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

.search-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 10px;
}

.banner-area {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.banner-item.active {
    opacity: 1;
}

.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.3), rgba(238, 90, 36, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-text {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.banner-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideUp 1s ease-out;
}

.banner-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideUp 1s ease-out 0.3s both;
}

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: slideUp 1s ease-out 0.6s both;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 15px 40px;
    border: 2px solid white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: #ff6b6b;
    transform: translateY(-3px);
}

.content-main {
    flex: 1;
    background: white;
}

.hot-section,
.category-section,
.latest-section,
.ranking-section,
.features-section {
    padding: 80px 0;
}

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

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 2px;
}

.more-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.more-link:hover {
    color: #ee5a24;
    transform: translateX(5px);
}

.movie-carousel {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.movie-carousel::-webkit-scrollbar {
    display: none;
}

.movie-item {
    flex: 0 0 250px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.movie-item:hover {
    transform: translateY(-10px);
}

.movie-poster {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.movie-item:hover .movie-poster img {
    transform: scale(1.1);
}
.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-item:hover .movie-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 107, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-top: 80px;
    transition: all 0.3s ease;
}

.play-icon:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

.movie-info {
    text-align: center;
    color: white;
}

.movie-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.movie-year {
    font-size: 0.9rem;
    opacity: 0.8;
}

.category-section {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image {
    transform: scale(1.05);
}

.category-content {
    padding: 25px;
    text-align: center;
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.category-count {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
}

.category-link {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.category-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.latest-section {
    background: #f8f9fa;
}

.latest-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.latest-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.latest-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.latest-thumb {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.latest-details {
    flex: 1;
}

.latest-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.latest-desc {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.latest-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.latest-tag {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.latest-episodes {
    color: #888;
    font-size: 0.9rem;
}

.latest-rating {
    color: #ffa500;
    font-weight: 600;
}

.latest-play {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.latest-play:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.ranking-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ranking-section .section-title {
    color: white;
}

.ranking-section .section-title::after {
    background: white;
}

.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.ranking-tab {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ranking-tab:hover,
.ranking-tab.active {
    background: white;
    color: #667eea;
    border-color: white;
}

.ranking-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.ranking-list {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.ranking-list.active {
    display: flex;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.ranking-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.ranking-poster {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.ranking-info {
    flex: 1;
}

.ranking-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.ranking-desc {
    opacity: 0.8;
    margin-bottom: 5px;
}

.ranking-stats {
    font-size: 0.9rem;
    opacity: 0.7;
}

.features-section {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.feature-desc {
    color: #666;
    line-height: 1.6;
}

.site-footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    padding: 20px;
}

.footer-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-image {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    object-fit: cover;
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

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

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-info p {
    color: #ccc;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .search-input {
        width: 250px;
    }
    
    .banner-title {
        font-size: 3rem;
    }
    
    .section-container {
        padding: 0 15px;
    }
    
    .movie-carousel {
        gap: 20px;
    }
    
    .movie-item {
        flex: 0 0 220px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .search-zone {
        display: none;
    }
    
    .banner-area {
        height: 60vh;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1.2rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .movie-carousel {
        gap: 15px;
    }
    
    .movie-item {
        flex: 0 0 180px;
    }
    
    .movie-poster {
        height: 250px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .latest-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .latest-thumb {
        width: 100px;
        height: 140px;
    }
    
    .ranking-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .ranking-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 70px;
        padding: 0 10px;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .banner-area {
        height: 50vh;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .section-container {
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .movie-item {
        flex: 0 0 150px;
    }
    
    .movie-poster {
        height: 200px;
    }
    
    .latest-thumb {
        width: 80px;
        height: 110px;
    }
    
    .latest-title {
        font-size: 1.1rem;
    }
    
    .ranking-item {
        padding: 15px;
        gap: 15px;
    }
    
    .ranking-poster {
        width: 50px;
        height: 70px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .footer-column {
        padding: 10px;
    }
}

