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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
}

.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #334155;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3b82f6;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid #475569;
}

.btn-secondary:hover {
    background: #475569;
}

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

.main-content {
    margin-top: 80px;
    padding: 2rem 0;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23334155" width="1200" height="600"/><circle fill="%233b82f6" opacity="0.1" cx="200" cy="150" r="100"/><circle fill="%231d4ed8" opacity="0.1" cx="800" cy="300" r="150"/><circle fill="%233b82f6" opacity="0.05" cx="1000" cy="100" r="200"/></svg>');
    background-size: cover;
    border-radius: 1rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #475569;
    border-radius: 0.5rem 0 0 0.5rem;
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.search-btn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    color: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
}

.categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 2rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover, .category-btn.active {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

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

.content-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #334155;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(45deg, #334155, #475569);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.card-content {
    padding: 1rem;
}

.card-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.card-info {
    color: #94a3b8;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1e293b;
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #334155;
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #334155;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2rem;
}

.close-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #e2e8f0;
}

.video-container {
    width: 100%;
    height: 400px;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
    border: none;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.episode-card {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #334155;
}

.episode-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

.auth-modal .modal-content {
    max-width: 400px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
}

.spinner {
    border: 3px solid #334155;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.season-selector {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.season-btn {
    padding: 0.5rem 1rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 0.5rem;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
}

.season-btn:hover, .season-btn.active {
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
}

.dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
    display: none;
}

.dropdown.active {
    display: block;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown a:hover {
    background: rgba(59, 130, 246, 0.1);
}

.watchlist-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    margin: 0.5rem 0;
    transition: all 0.3s;
}

.watchlist-btn:hover {
    background: #3b82f6;
    color: white;
}

.watchlist-btn.added {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.player-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 0.5rem;
    border: 1px solid #334155;
}

.player-nav {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.player-nav-btn {
    flex: 1;
    text-align: center;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input, .search-btn {
        border-radius: 0.5rem;
    }
}