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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

.main-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-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    min-height: 70px;
}

.brand-section {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.site-title a {
    color: #764ba2;
    text-decoration: none;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-subtitle {
    font-size: 12px;
    color: #666;
    margin-top: -5px;
}

.primary-nav {
    flex: 1;
    margin: 0 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    justify-content: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #764ba2;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

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

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

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

.search-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #764ba2;
}

.main-content {
    flex: 1;
    padding: 0;
}

.hero-banner {
    margin-bottom: 40px;
}

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

.featured-movie {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px;
}

.movie-title {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: bold;
}

.movie-desc {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.watch-btn {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.watch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(118, 75, 162, 0.4);
}

.content-sections {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    margin: 20px;
    border-radius: 20px;
    padding: 40px 0;
}

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

.section-block {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

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

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.movie-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.movie-poster {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.movie-info {
    padding: 15px;
}

.movie-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.movie-year,
.movie-quality {
    display: inline-block;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    margin-right: 5px;
    background: #f0f0f0;
    color: #666;
}

.movie-quality {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.tv-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

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

.tv-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tv-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.tv-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.tv-details {
    padding: 15px 20px;
    flex: 1;
}

.tv-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.tv-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.tv-meta {
    display: flex;
    gap: 15px;
}

.tv-status,
.tv-rating {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #f0f0f0;
    color: #666;
}

.tv-rating {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.variety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

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

.variety-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.variety-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.variety-poster {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.variety-info {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variety-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.variety-type {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.section-more {
    text-align: center;
}

.more-link {
    color: #764ba2;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

.more-link:hover {
    color: #667eea;
}

.site-footer {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    margin-top: auto;
}

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

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #667eea;
}

.footer-desc {
    color: #ccc;
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 8px;
}

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

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: #999;
    font-size: 14px;
}

.footer-domains {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.footer-domains a {
    color: #667eea;
    text-decoration: none;
}

.footer-domains a:hover {
    color: #764ba2;
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .primary-nav {
        order: 3;
        margin: 0;
        width: 100%;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .search-area {
        order: 2;
        width: 100%;
    }
    
    .search-form {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        flex: 1;
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .featured-movie {
        height: 250px;
    }
    
    .movie-overlay {
        padding: 20px;
    }
    
    .movie-title {
        font-size: 24px;
    }
    
    .movie-desc {
        font-size: 14px;
    }
    
    .content-sections {
        margin: 10px;
        padding: 20px 0;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .movie-poster {
        height: 180px;
    }
    
    .tv-link {
        flex-direction: column;
    }
    
    .tv-thumb {
        width: 100%;
        height: 120px;
    }
    
    .variety-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-domains {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 22px;
    }
    
    .nav-list {
        gap: 10px;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 10px 20px;
    }
    
    .banner-container {
        padding: 20px 10px;
    }
    
    .featured-movie {
        height: 200px;
    }
    
    .movie-title {
        font-size: 20px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 20px;
        padding-left: 15px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .movie-poster {
        height: 160px;
    }
    
    .movie-info {
        padding: 10px;
    }
    
    .movie-name {
        font-size: 14px;
    }
    
    .tv-details {
        padding: 12px 15px;
    }
    
    .tv-title {
        font-size: 16px;
    }
    
    .variety-grid {
        grid-template-columns: 1fr;
    }
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.6s ease-out;
}

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

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.movie-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.movie-card:hover::before {
    opacity: 1;
}

.search-form:focus-within {
    box-shadow: 0 4px 20px rgba(118, 75, 162, 0.2);
    transform: translateY(-1px);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern.png') repeat;
    opacity: 0.1;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

