/* БАЗОВЫЕ СТИЛИ - ЧЕРНЫЙ МИНИМАЛИЗМ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ШАПКА - ЧЕРНЫЙ МИНИМАЛИЗМ */
.header {
    background: rgba(10, 10, 10, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 28px;
    background: linear-gradient(45deg, #ff3366, #ff9933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    font-weight: 500;
    font-size: 15px;
    color: #aaa;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav a:hover,
.nav a.active {
    color: #ffffff;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff3366, #ff9933);
    border-radius: 1px;
}

/* ПОИСКОВАЯ СЕКЦИЯ - ТЕМНАЯ */
.search-section {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.9) 100%);
    padding: 40px 0 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-box {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
}

.search-form {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-input {
    flex: 1;
    padding: 18px 25px;
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: #ffffff;
    transition: all 0.3s;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 51, 102, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
    background: rgba(50, 50, 50, 0.8);
}

.search-input::placeholder {
    color: #777;
}

.search-button {
    background: linear-gradient(135deg, #ff3366, #ff9933);
    color: white;
    border: none;
    padding: 0 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 51, 102, 0.3);
}

/* СТАТИСТИКА */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #aaa;
    padding: 20px 0 20px;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.stats-count {
    background: rgba(255, 51, 102, 0.15);
    color: #ff3366;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.content-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #ff3366, #ff9933);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 51, 102, 0.2);
}

/* РЕЗУЛЬТАТЫ ПОИСКА */
.search-results-info {
    color: #aaa;
    font-size: 17px;
    margin: 25px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 3px solid #ff3366;
}

.search-results-info strong {
    color: #ffffff;
    font-weight: 600;
}

.back-link {
    color: #ff3366;
    text-decoration: none;
    margin-left: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.back-link:hover {
    color: #ff9933;
    text-decoration: underline;
}

/* НЕТ РЕЗУЛЬТАТОВ */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-results-icon {
    font-size: 80px;
    margin-bottom: 25px;
    opacity: 0.2;
    background: linear-gradient(45deg, #ff3366, #ff9933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.no-results h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #aaa;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ПОДСКАЗКИ */
.suggestions-title {
    text-align: center;
    color: #aaa;
    margin-bottom: 20px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.suggestion-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
    font-weight: 500;
}

.suggestion-tag:hover {
    background: rgba(255, 51, 102, 0.15);
    color: #ffffff;
    border-color: rgba(255, 51, 102, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.1);
}

/* СЕТКА ФИЛЬМОВ */
.movies-section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: #ffffff;
    position: relative;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff3366, #ff9933);
    margin: 15px auto 0;
    border-radius: 2px;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* КАРТОЧКА ФИЛЬМА */
.movie-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.movie-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 51, 102, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    background: rgba(40, 40, 40, 0.9);
}

.movie-card:hover .movie-poster::after {
    opacity: 0.8;
}

.movie-poster {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.movie-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.movie-poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 51, 102, 0.2), rgba(255, 153, 51, 0.2));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.movie-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.movie-card:hover .movie-poster-img {
    transform: scale(1.05);
}

.movie-icon {
    font-size: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

/* БЕЙДЖ ДЛЯ СЕРИАЛОВ */
.series-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff3366, #ff9933);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.movie-info {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.movie-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    color: #aaa;
    font-size: 14px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.movie-year {
    font-weight: 500;
    color: #ff3366;
    background: rgba(255, 51, 102, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
}

.movie-genre {
    background: rgba(255, 255, 255, 0.05);
    color: #cccccc;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.movie-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.movie-rating {
    color: #ffd700;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.movie-type {
    color: #888;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ПОДВАЛ */
.footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 60px 0 40px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff3366, transparent);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-content p {
    color: #777;
    font-size: 16px;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: #ff3366;
}

.copyright {
    margin-top: 30px;
    color: #555;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* АНИМАЦИИ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movie-card {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-play-state: paused;
}

.movie-card.visible {
    animation-play-state: running;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .movie-poster {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        gap: 25px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .movie-poster {
        height: 320px;
    }
    
    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-button {
        padding: 18px;
        width: 100%;
    }
    
    .stats-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .content-filters {
        width: 100%;
        justify-content: center;
    }
    
    .filter-btn {
        flex: 1;
        justify-content: center;
        min-width: 140px;
    }
    
    .search-box {
        padding: 25px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .movie-poster {
        height: 280px;
    }
    
    .movie-info {
        padding: 20px;
    }
    
    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .search-input {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .movie-poster {
        height: 240px;
    }
    
    .movie-title {
        font-size: 18px;
    }
    
    .movie-info {
        padding: 15px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .no-results {
        padding: 60px 15px;
    }
    
    .no-results h2 {
        font-size: 26px;
    }
    
    .no-results p {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .movies-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 30px auto;
    }
    
    .movie-poster {
        height: 200px;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav a {
        font-size: 14px;
    }
    
    .search-results-info {
        font-size: 15px;
    }
}