.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    margin: 40px 0 60px;
}

.hero-text {
    max-width: 520px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 79, 154, 0.15);
    border: 1px solid rgba(255, 79, 154, 0.35);
    border-radius: var(--radius-pill);
    font-size: 12px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-subtitle {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* --- GIF панель справа --- */
.hero-preview {
    position: relative;
    height: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0,0,0,0.65),
                0 0 40px rgba(255, 79, 154, 0.08);
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 79, 154, 0.20), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(126, 77, 255, 0.25), transparent 60%),
        #0b0718;
    border: 1px solid rgba(255,255,255,0.06);
}

/* затемнение + “стекло” */
.gif-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px) brightness(0.88);
    opacity: 0.33;
    pointer-events: none;
}

/* CRT-сканлинии */
.gif-scanlines {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.06) 0px,
        rgba(255,255,255,0.06) 1px,
        rgba(0,0,0,0) 2px,
        rgba(0,0,0,0) 4px
    );
    mix-blend-mode: soft-light;
    opacity: .18;
    animation: scanMove 12s linear infinite;
}

@keyframes scanMove {
    from { transform: translateY(0); }
    to   { transform: translateY(-100%); }
}

/* GIF */
.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    opacity: 0.92;
    animation: subtleFade 1.4s ease-out;
}

/* Плавное появление GIF */
@keyframes subtleFade {
    from {
        opacity: 0;
        transform: scale(1.04);
    }
    to {
        opacity: 0.92;
        transform: scale(1);
    }
}

/* Подсветка рамки при наведении */
.hero-preview:hover {
    box-shadow: 0 22px 60px rgba(255,79,154,0.4),
                0 0 60px rgba(126,77,255,0.35);
    transition: 0.35s ease;
}

/* --- Секции и карточки аниме --- */

.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 26px;
    margin-bottom: 20px;
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
}

/* чтобы все постеры были ровными */
.anime-card {
    display: flex;
    flex-direction: column;
}

.anime-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;  /* одинаковая пропорция */
    object-fit: cover;
    display: block;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.anime-card-body {
    padding: 12px 14px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.anime-card-body h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

/* Моб адаптив */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-preview {
        height: 200px;
        margin-top: 16px;
    }
}
