* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #fff;
    min-height: 100vh;
}

.header {
    background: rgba(15, 20, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 107, 107, 0.3);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.search-box input {
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
    background: #2a2f4a;
    color: #fff;
    width: 300px;
    outline: none;
    font-size: 16px;
}

.search-box input:focus {
    background: #3a3f5a;
    box-shadow: 0 0 0 2px #ff6b6b;
}

.filters {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    border: none;
    background: #2a2f4a;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn.active {
    background: #ff6b6b;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    border-left: 4px solid #ff6b6b;
    padding-left: 20px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.movie-card {
    background: #151a36;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.25);
}

.movie-poster {
    position: relative;
    padding-top: 150%;
    background-size: cover;
    background-position: center;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 107, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 24px;
}

.movie-card:hover .play-overlay {
    opacity: 1;
}

.movie-info {
    padding: 15px;
}

.movie-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.movie-year {
    font-size: 14px;
    color: #ff8e53;
}

.movie-type {
    display: inline-block;
    padding: 3px 8px;
    background: #ff6b6b;
    border-radius: 5px;
    font-size: 11px;
    margin-top: 8px;
}

.back-btn {
    padding: 8px 20px;
    background: #2a2f4a;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.back-btn:hover {
    background: #ff6b6b;
}

.player-container {
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0;
}

.player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.player-selector {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 15px;
    background: #1a1f3a;
    border-radius: 12px;
    align-items: center;
}

.player-selector strong {
    margin-right: 10px;
}

.player-btn {
    padding: 10px 24px;
    background: #2a2f4a;
    border: none;
    color: white;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
}

.player-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
}

/* Сезоны и серии */
.seasons-container {
    margin-top: 30px;
    padding: 20px;
    background: #1a1f3a;
    border-radius: 16px;
}

.seasons-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ff8e53;
}

.season-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.season-btn {
    padding: 10px 24px;
    background: #2a2f4a;
    border: none;
    color: white;
    border-radius: 40px;
    cursor: pointer;
    font-size: 14px;
}

.season-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding: 5px;
}

.episodes-grid::-webkit-scrollbar {
    width: 6px;
}

.episodes-grid::-webkit-scrollbar-track {
    background: #2a2f4a;
    border-radius: 10px;
}

.episodes-grid::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 10px;
}

.episode-btn {
    padding: 10px 8px;
    background: #2a2f4a;
    border: none;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
}

.episode-btn:hover, .episode-btn.active {
    background: #ff6b6b;
}

.current-episode-info {
    margin-top: 15px;
    padding: 12px;
    background: #ff6b6b22;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.footer {
    background: #0f142e;
    padding: 30px;
    text-align: center;
    margin-top: 50px;
}

.loader {
    text-align: center;
    padding: 60px;
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    .nav {
        flex-direction: column;
    }
    .search-box input {
        width: 100%;
    }
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    .section-title {
        font-size: 22px;
    }
}