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

body {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 2px solid #e74c3c;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

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

.nav-menu a:hover {
    color: #e74c3c;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../nevermore_academy_background_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 80px; /* Отступ для фиксированного хедера */
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-title {
    font-size: 2.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    color: #e74c3c;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: rgba(255,255,255,0.9);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #e74c3c;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 60px;
    color: rgba(255,255,255,0.8);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Seasons Container */
.seasons-container {
    margin-bottom: 60px;
}

.season-section {
    margin-bottom: 50px;
}

.season-header {
    font-size: 2rem;
    color: #e74c3c;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.episodes-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.episode-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.episode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
}

.episode-poster {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.episode-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.episode-card:hover .episode-poster img {
    transform: scale(1.1);
}

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

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

.play-icon {
    font-size: 3rem;
    color: #e74c3c;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.episode-info {
    padding: 20px;
}

.episode-number {
    font-size: 0.9rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 8px;
}

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

.episode-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.episode-rating {
    color: #f1c40f;
}

.episode-duration {
    color: rgba(255,255,255,0.7);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.3);
    border-color: #e74c3c;
}

.news-content {
    padding: 25px;
}

.news-category {
    display: inline-block;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #e74c3c;
}

.news-excerpt {
    color: rgba(255,255,255,0.8);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* SEO Content */
.seo-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    margin: 60px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-content h2 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.seo-content p {
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 40px 0;
    border-top: 2px solid #e74c3c;
    text-align: center;
}

.footer-content {
    color: rgba(255,255,255,0.8);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e74c3c;
}

/* Medium Desktop Screens */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-title {
        font-size: 2.1rem;
        line-height: 1.1;
        color: #e74c3c;
        font-weight: bold;
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 550px;
    }
}

/* Large Desktop Screens (HD and above) */
@media (min-width: 1200px) {
    .hero {
        height: 45vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 20px;
        line-height: 1.1;
        color: #e74c3c;
        font-weight: bold;
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
    
    .hero-description {
        font-size: 1.2rem;
        margin-bottom: 45px;
        max-width: 700px;
    }
    
    .cta-button {
        padding: 18px 35px;
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .container {
        max-width: 1400px;
    }
    
    .episodes-showcase {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .episode-card {
        max-width: 320px;
    }
    
    .episode-card h3 {
        font-size: 1.1rem;
    }
    
    .season-header {
        font-size: 2.2rem;
    }
}

/* Standard HD Screens (1920x1080) */
@media (min-width: 1600px) {
    .hero {
        height: 50vh;
        min-height: 450px;
    }
    
    .hero-title {
        font-size: 3.2rem;
        margin-bottom: 25px;
        line-height: 1.1;
        color: #e74c3c;
        font-weight: bold;
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 35px;
    }
    
    .hero-description {
        font-size: 1.3rem;
        margin-bottom: 50px;
        max-width: 800px;
    }
    
    .cta-button {
        padding: 20px 40px;
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 3.2rem;
    }
    
    .episodes-showcase {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
    
    .episode-card {
        max-width: 350px;
    }
    
    .episode-card h3 {
        font-size: 1.2rem;
    }
    
    .season-header {
        font-size: 2.5rem;
    }
    
    .container {
        max-width: 1600px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Hero Section для планшетов */
    .hero {
        height: 50vh;
        min-height: 400px;
        padding: 20px 0;
        margin-top: 70px; /* Меньший отступ для планшетов */
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
        color: #e74c3c;
        font-weight: bold;
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .seasons-grid {
        grid-template-columns: 1fr;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .seo-content {
        padding: 25px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section для мобильных */
    .hero {
        height: 60vh;
        min-height: 450px;
        padding: 30px 0;
        margin-top: 65px; /* Отступ для мобильных */
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.2;
        color: #e74c3c;
        font-weight: bold;
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
        padding: 0 10px;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 0.9rem;
        width: 80%;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .section {
        padding: 40px 0;
    }
}

@media (max-width: 360px) {
    /* Очень маленькие экраны */
    .hero {
        height: 70vh;
        min-height: 500px;
        padding: 20px 0;
        margin-top: 60px; /* Минимальный отступ для очень маленьких экранов */
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
        color: #e74c3c;
        font-weight: bold;
        text-shadow: 3px 3px 6px rgba(0,0,0,0.8);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
        padding: 0 5px;
    }
    
    .cta-button {
        padding: 10px 15px;
        font-size: 0.85rem;
        width: 90%;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
