/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Netflix Sans', Arial, sans-serif;
    background-color: #141414;
    color: #ffffff;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.nav-logo h1 {
    color: #e50914;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e50914;
}

/* Season Selector */
.season-selector {
    position: relative;
}

.season-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: space-between;
}

.season-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #e50914;
}

.season-label {
    font-weight: 500;
}

.season-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.season-selector:hover .season-dropdown,
.season-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.season-option {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.season-option:last-child {
    border-bottom: none;
}

.season-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.season-option.active {
    background: rgba(229, 9, 20, 0.2);
    border-left: 3px solid #e50914;
}

.season-option.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.season-option.coming-soon:hover {
    background: rgba(255, 255, 255, 0.05);
}

.season-number {
    font-weight: 500;
    color: #ffffff;
}

.season-status {
    font-size: 0.8rem;
    color: #b3b3b3;
}

.season-option.active .season-status {
    color: #e50914;
    font-weight: 600;
}

.season-option.coming-soon .season-status {
    color: #808080;
    font-style: italic;
}

.nav-search {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: #e50914;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    text-align: center;
}

.hero-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.05);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #b3b3b3;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #e50914;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #f40612;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(transparent, #141414);
    z-index: 1;
}

/* Episodes Section */
.episodes-section {
    padding: 80px 0;
    background-color: #141414;
}

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

.episodes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

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

.episode-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #e50914;
}

.episode-thumbnail {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.episode-thumbnail::before {
    content: '♪';
    font-size: 4rem;
    color: #e50914;
    opacity: 0.7;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(229, 9, 20, 0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.episode-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay::before {
    content: '▶';
    color: #ffffff;
    font-size: 1.5rem;
    margin-left: 3px;
}

.episode-info {
    padding: 20px;
}

.episode-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.episode-description {
    color: #b3b3b3;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.episode-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #808080;
}

.episode-duration {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Netflix Player Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.netflix-player {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0f0f0f 100%);
    margin: 0;
    padding: 0;
    border-radius: 0;
    width: 100%;
    height: 100vh;
    max-width: none;
    position: relative;
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Player Header */
.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    position: relative;
    z-index: 10;
}

.player-controls-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.player-title-info h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.episode-meta-info {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.episode-year, .episode-rating, .episode-duration {
    color: #b3b3b3;
    font-size: 0.9rem;
    font-weight: 500;
}

.episode-rating {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.player-controls-right {
    display: flex;
    gap: 15px;
}

/* Player Main Content */
.player-main {
    flex: 1;
    display: flex;
    padding: 40px;
    gap: 40px;
    align-items: center;
}

.player-poster {
    flex: 0 0 300px;
    height: 400px;
    position: relative;
}

.poster-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster-image::before {
    content: '♪';
    font-size: 6rem;
    color: #e50914;
    opacity: 0.7;
}

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

.player-poster:hover .poster-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.play-pause-btn {
    background: rgba(229, 9, 20, 0.9);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.play-pause-btn:hover {
    background: #e50914;
    transform: scale(1.1);
}

.player-info {
    flex: 1;
    color: #ffffff;
}

.episode-description {
    margin-bottom: 30px;
}

.episode-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}

.episode-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    gap: 10px;
}

.detail-label {
    color: #b3b3b3;
    font-weight: 500;
    min-width: 80px;
}

.detail-value {
    color: #ffffff;
}

/* Player Footer */
.player-footer {
    padding: 20px 40px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #e50914;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #e50914;
    border-radius: 50%;
    left: 0%;
    transition: left 0.1s ease;
    opacity: 0;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: #b3b3b3;
    font-size: 0.9rem;
}

.player-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 10px 15px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#speedBtn {
    background: rgba(229, 9, 20, 0.2);
    border-color: #e50914;
}

#speedBtn:hover {
    background: rgba(229, 9, 20, 0.3);
}

/* Responsive Player */
@media (max-width: 768px) {
    .player-header {
        padding: 15px 20px;
    }
    
    .player-main {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .player-poster {
        flex: none;
        width: 100%;
        max-width: 300px;
        height: 200px;
    }
    
    .player-footer {
        padding: 15px 20px;
    }
    
    .player-actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .player-title-info h3 {
        font-size: 1.4rem;
    }
    
    .episode-meta-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .player-controls-right {
        gap: 10px;
    }
    
    .player-btn {
        width: 35px;
        height: 35px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .search-input {
        width: 150px;
    }
    
    .main-logo {
        max-height: 220px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .episodes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(229, 9, 20, 0.3);
    border-top: 4px solid #e50914;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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