/* Основные стили */
:root {
    --primary: #e63946;
    --secondary: #f1faee;
    --dark: #1d3557;
    --light: #a8dadc;
    --accent: #457b9d;
    --bg-dark: #0a0a0a;
    --bg-light: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #c1121f;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--primary);
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Шапка */
header {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.5)), url('../images/bg-header.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px 0 100px;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%230a0a0a" fill-opacity="1" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--primary);
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

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

.nav-links a:hover {
    color: var(--primary);
}

.hero {
    text-align: center;
    padding: 40px 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-gray);
}

/* Стили для страницы сезона */
.season-page {
    padding: 60px 0;
}

.season-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.season-poster img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.season-description h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.season-description p {
    margin-bottom: 20px;
    color: var(--text-gray);
    line-height: 1.8;
}

.season-meta {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    color: var(--light);
}

.season-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.season-meta i {
    color: var(--primary);
}

.episodes-list h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
    color: var(--text-light);
}

.episode-card {
    display: grid;
    grid-template-columns: 60px 1fr 200px;
    gap: 20px;
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.episode-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.episode-meta {
    font-size: 0.9rem;
    color: var(--light);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.episode-description {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.episode-preview img {
    width: 100%;
    border-radius: 5px;
    height: 120px;
    object-fit: cover;
}

/* Стили для страницы серии */
.episode-page {
    padding: 60px 0;
}

.episode-header {
    text-align: center;
    margin-bottom: 40px;
}

.episode-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.episode-header h1 span {
    color: var(--primary);
}

.episode-header h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light);
}

.episode-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    color: var(--light);
}

.episode-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.episode-meta i {
    color: var(--primary);
}

.player-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.episode-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.episode-description h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.episode-description p {
    margin-bottom: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

.episode-gallery h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

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

.gallery-grid img {
    width: 100%;
    border-radius: 5px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.episode-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

/* Подвал */
footer {
    background-color: #000;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
}

.social-links li {
    margin: 0 15px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 15px 10px;
}

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

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .season-info {
        grid-template-columns: 1fr;
    }
    
    .season-poster {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .episode-card {
        grid-template-columns: 1fr;
    }
    
    .episode-preview {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .episode-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .btn-outline {
        margin-left: 0;
    }
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

/* Кнопка наверх */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #c1121f;
    transform: translateY(-5px);
}