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

body {
    font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #0c1445 0%, #1a237e 50%, #283593 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.star:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.star:nth-child(2) {
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

.star:nth-child(3) {
    top: 60%;
    left: 70%;
    animation-delay: 2s;
}

.star:nth-child(4) {
    top: 80%;
    right: 20%;
    animation-delay: 0.5s;
}

.star:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

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

.header {
    background: rgba(12, 20, 69, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #fff;
}

.logo-icon {
    font-size: 2.5rem;
}

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

.logo-main {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #64b5f6, #42a5f5, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 0.9rem;
    color: #90caf9;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.5rem;
    min-width: 300px;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-button {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.user-area {
    display: flex;
    gap: 1rem;
}

.user-btn {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #2196f3;
}

.main-nav {
    padding: 1rem 0;
    position: relative;
}

.nav-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.hero-section {
    padding: 2rem 0;
    position: relative;
}

.hero-slider {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(12, 20, 69, 0.8), rgba(26, 35, 126, 0.6));
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    z-index: 2;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.slide-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
}

.slide-desc {
    font-size: 1.2rem;
    color: #e3f2fd;
    margin-bottom: 2rem;
    max-width: 600px;
}

.slide-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-play {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: #fff;
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.6);
}

.btn-info {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: rgba(33, 150, 243, 0.8);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2196f3;
    transform: scale(1.2);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #64b5f6, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: #90caf9;
    font-size: 1.1rem;
}

.categories-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
    border-radius: 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-item:hover {
    transform: translateY(-10px);
    background: rgba(33, 150, 243, 0.2);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.3);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.category-item p {
    color: #90caf9;
    margin-bottom: 1.5rem;
}

.category-link {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid #64b5f6;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-link:hover {
    background: #64b5f6;
    color: #fff;
}

.featured-content {
    padding: 4rem 0;
}

.content-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    transform: translateY(-2px);
}

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

.content-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.card-poster {
    position: relative;
    overflow: hidden;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

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

.play-icon {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.card-info {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

.quality {
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
}

.card-details {
    padding: 1rem;
}

.card-details h4 {
    margin-bottom: 0.5rem;
}

.card-details h4 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.card-details h4 a:hover {
    color: #64b5f6;
}

.card-details p {
    color: #90caf9;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #b3e5fc;
}

.ranking-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.05);
    margin: 2rem 0;
    border-radius: 20px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rank-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-item:hover {
    background: rgba(33, 150, 243, 0.2);
    transform: translateX(10px);
}

.rank-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(45deg, #ff9800, #f57c00);
}

.rank-item:nth-child(1) .rank-number {
    background: linear-gradient(45deg, #ffd700, #ffb300);
}

.rank-item:nth-child(2) .rank-number {
    background: linear-gradient(45deg, #c0c0c0, #9e9e9e);
}

.rank-item:nth-child(3) .rank-number {
    background: linear-gradient(45deg, #cd7f32, #8d6e63);
}

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

.rank-info {
    flex: 1;
}

.rank-info h4 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.rank-info h4 a:hover {
    color: #64b5f6;
}

.rank-info p {
    color: #90caf9;
    font-size: 0.9rem;
    margin: 0.3rem 0;
}

.rank-stats {
    color: #b3e5fc;
    font-size: 0.8rem;
}

.latest-updates {
    padding: 4rem 0;
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.update-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(33, 150, 243, 0.3);
}

.update-time {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(33, 150, 243, 0.9);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 2;
}

.update-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.update-info {
    padding: 1rem;
}

.update-info h4 a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

.update-info h4 a:hover {
    color: #64b5f6;
}

.update-info p {
    color: #90caf9;
    font-size: 0.9rem;
    margin: 0.5rem 0 1rem;
}

.watch-btn {
    background: linear-gradient(45deg, #2196f3, #1976d2);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

.footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #64b5f6;
}

.footer-section h3 {
    color: #64b5f6;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: #90caf9;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.footer-links a:hover {
    color: #64b5f6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #90caf9;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        min-width: 100%;
    }
    
    .user-area {
        order: -1;
    }
    
    .nav-container {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(12, 20, 69, 0.95);
        backdrop-filter: blur(20px);
        padding: 1rem;
        border-radius: 0 0 20px 20px;
    }
    
    .nav-container.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .slide-content {
        padding: 2rem 1rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-desc {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .content-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .slider-controls {
        gap: 1rem;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
