/* Общие настройки */
body {
    background-color: #0b0f19;
    color: #f8fafc;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ХЕДЕР - ИСПРАВЛЕННЫЙ */
header {
    background: #161d2f;
    padding: 12px 0;
    border-bottom: 1px solid #2d3748;
}

.header-flex {
    display: flex;
    justify-content: space-between; /* Распределяем: Лого - Меню - Поиск */
    align-items: center;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3b82f6;
    font-weight: bold;
    font-size: 20px;
    min-width: 200px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    color: #94a3b8;
    font-size: 15px;
}

.nav-menu span {
    cursor: pointer;
    transition: 0.2s;
}

.nav-menu span:hover {
    color: #3b82f6;
}

/* Блок поиска в одну линию */
.search-block {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    justify-content: flex-end;
}

.search-input {
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    width: 180px;
}

.search-btn {
    background: #2563eb;
    color: white;
    padding: 8px 22px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

/* ПЛЕЕР */
.fake-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.fake-player img {
    width: 100%;
    display: block;
    opacity: 0.5;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.fake-player:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: #2563eb;
}

.play-button::after {
    content: '';
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent white;
    margin-left: 5px;
}

/* БЛОКИ КОНТЕНТА */
.content-box {
    background: #161d2f;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #2d3748;
}

.info-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
}

.poster {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* КОММЕНТАРИИ */
.comment {
    background: #1e293b;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #3b82f6;
}

.comment-author {
    color: #3b82f6;
    font-weight: bold;
    font-size: 15px;
}

footer {
    text-align: center;
    padding: 40px 0;
    color: #475569;
    font-size: 14px;
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 900px) {
    .header-flex {
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
    }

    .logo-block {
        font-size: 18px;
        min-width: auto;
        margin-bottom: 5px;
    }

    .nav-menu {
        display: none;
    }

    .search-block {
        width: 100%;
        justify-content: space-between;
        min-width: 0;
        margin-top: 5px;
    }

    .search-input {
        width: 100%;
        max-width: none;
    }

    .content-box {
        padding: 18px;
        margin-bottom: 18px;
    }

    .fake-player {
        margin: 18px 0;
        border-radius: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .poster {
        max-width: 260px;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 600px) {
    .search-block {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .search-btn {
        width: 100%;
        text-align: center;
    }

    .content-box h3 {
        font-size: 16px;
    }

    .comment {
        padding: 12px;
    }

    .comment-author {
        font-size: 14px;
    }
}