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

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

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 10px 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;
}

.logo a {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

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

.search-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-form button {
    padding: 12px 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.search-form button:hover {
    background: #ff5252;
}

.user-menu .login-btn {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid white;
    border-radius: 20px;
    transition: all 0.3s;
}

.user-menu .login-btn:hover {
    background: white;
    color: #667eea;
}

.main-nav {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #ff6b6b;
    border-radius: 2px;
}

.category-nav {
    background: rgba(255,255,255,0.05);
    padding: 10px 0;
}

.category-list {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.category-link {
    padding: 8px 15px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s;
    font-size: 14px;
}

.category-link:hover,
.category-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.main-content {
    padding: 30px 0;
}

.player-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.player-wrapper {
    position: relative;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.player-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: white;
    background: linear-gradient(45deg, #333, #555);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255,107,107,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
}

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

.movie-info {
    padding: 20px 0;
}

.movie-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.category-tag {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.meta-info p {
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.5;
}

.meta-info strong {
    color: #667eea;
    font-weight: 600;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ff6b6b;
}

.playlist-section,
.synopsis-section,
.recommended-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.playlist-group {
    margin-bottom: 25px;
}

.playlist-title {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 15px;
    font-weight: 600;
}

.playlist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.episode-link {
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.episode-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.episode-link.active {
    background: #ff6b6b;
    color: white;
    border-color: #ff6b6b;
}

.synopsis-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.synopsis-content p {
    margin-bottom: 15px;
}

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

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

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

.movie-poster {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.movie-card-info {
    padding: 15px;
}

.movie-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.movie-card-meta {
    font-size: 13px;
    color: #666;
}

.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

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

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

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s;
}

.footer-links a:hover {
    background: rgba(255,255,255,0.1);
}

.footer-info p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.8);
}

.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.mobile-nav-list {
    display: flex;
    list-style: none;
    justify-content: space-around;
}

.mobile-nav-link {
    display: block;
    padding: 12px 8px;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: #667eea;
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        order: 3;
        width: 100%;
        margin: 0;
    }

    .nav-list,
    .category-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .nav-list::-webkit-scrollbar,
    .category-list::-webkit-scrollbar {
        height: 3px;
    }

    .nav-list::-webkit-scrollbar-thumb,
    .category-list::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 2px;
    }

    .nav-link,
    .category-link {
        white-space: nowrap;
    }

    .player-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .movie-title {
        font-size: 24px;
    }

    .playlist-section,
    .synopsis-section,
    .recommended-section {
        padding: 20px;
    }

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

    .mobile-nav {
        display: block;
    }

    .main-content {
        padding-bottom: 80px;
    }

    .main-nav {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 24px;
    }

    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .playlist {
        flex-direction: column;
    }

    .episode-link {
        text-align: center;
    }
}

.loading {
    opacity: 0.6;
    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); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}