* {
    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-color: #f5f5f5;
}

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

.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    text-decoration: none;
}

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

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #e74c3c;
}

.search {
    display: flex;
}

.search input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    width: 200px;
    outline: none;
}

.search button {
    padding: 8px 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search button:hover {
    background: #c0392b;
}

.main {
    padding: 20px 0;
}

.notice {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.notice-content {
    color: #e74c3c;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
}

.featured, .hot-content, .category-section {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.featured h2, .hot-content h2, .category-block h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    border-left: 4px solid #e74c3c;
    padding-left: 15px;
}

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

.movie-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.movie-item a {
    position: relative;
    display: block;
}

.movie-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
}

.tag, .featured-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
}

.movie-item h3 {
    margin: 10px 0 5px;
    font-size: 14px;
}

.movie-item h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.movie-item h3 a:hover {
    color: #e74c3c;
}

.movie-item p {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.tabs {
    margin-top: 20px;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.category-block {
    margin-bottom: 40px;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.category-nav a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.category-nav a:hover {
    color: #e74c3c;
}

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

.featured-movie {
    position: relative;
}

.featured-movie img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-movie .title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    font-weight: bold;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 3px;
}

.ranking h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.ranking ol {
    list-style: none;
    counter-reset: ranking;
}

.ranking li {
    counter-increment: ranking;
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
}

.ranking li::before {
    content: counter(ranking);
    position: absolute;
    left: 0;
    top: 0;
    background: #e74c3c;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    text-align: center;
    line-height: 18px;
}

.ranking li:nth-child(1)::before { background: #f39c12; }
.ranking li:nth-child(2)::before { background: #95a5a6; }
.ranking li:nth-child(3)::before { background: #e67e22; }

.ranking a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.ranking a:hover {
    color: #e74c3c;
}

.movie-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.variety-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.variety-list a {
    color: #333;
    text-decoration: none;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s;
}

.variety-list a:hover {
    background: #e74c3c;
    color: white;
}

.links, .partners {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.links h2, .partners h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
    border-left: 4px solid #e74c3c;
    padding-left: 15px;
}

.link-list, .partner-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.link-list a, .partner-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.link-list a:hover, .partner-list a:hover {
    color: #e74c3c;
}

.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

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

.back-to-top:hover {
    background: #c0392b;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search input {
        width: 150px;
    }
    
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .movie-list {
        grid-template-columns: 1fr;
    }
    
    .variety-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-nav {
        justify-content: center;
    }
    
    .tab-nav {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .movie-grid {
        grid-template-columns: 1fr;
    }
    
    .variety-list {
        grid-template-columns: 1fr;
    }
    
    .nav ul {
        gap: 10px;
    }
    
    .search {
        width: 100%;
    }
    
    .search input {
        flex: 1;
    }
    
    .featured, .hot-content, .category-section, .links, .partners {
        padding: 15px;
    }
}

