/* Стили для страницы категории */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 51, 102, 0.2);
}

.category-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title .icon {
    font-size: 28px;
}

.category-count {
    font-size: 18px;
    color: #ff3366;
    background: rgba(255, 51, 102, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Стили для пагинации */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    padding: 20px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 12px;
}

.page-link {
    background: linear-gradient(135deg, #ff3366, #ff9933);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 51, 102, 0.3);
}

.page-info {
    color: #aaa;
    font-size: 15px;
}

/* Фиксы для карточек */
.movie-card {
    background: rgba(40, 40, 40, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.movie-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    background: rgba(50, 50, 50, 0.9);
}

.movie-poster {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #1a1a1a;
}

.movie-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster-img {
    transform: scale(1.05);
}

.movie-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    opacity: 0.3;
}

.series-badge {
    position: absolute;
    /*top: 15px;*/
    right: 15px;
    background: rgba(255, 51, 102, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.movie-info {
    padding: 20px;
    background: rgba(30, 30, 30, 0.8);
}

.movie-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.movie-year {
    color: #ff3366;
    font-size: 14px;
    font-weight: 600;
}

.movie-genre {
    color: #aaa;
    font-size: 14px;
}

.movie-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.movie-rating {
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
}

.movie-type {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.movie-type.movie {
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
}

.movie-type.series {
    background: rgba(0, 150, 255, 0.2);
    color: #0096ff;
}

.movie-type.cartoon {
    background: rgba(0, 200, 83, 0.2);
    color: #00c853;
}

.movie-type.clip {
    background: rgba(155, 39, 176, 0.2);
    color: #9c27b0;
}
/* ============================================ */
/* КАРТОЧКА ВИДЕО (как на YouTube) */
/* ============================================ */
.movie-card {
    display: block;
    text-decoration: none;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
}

.movie-card:hover .play-overlay {
    opacity: 1;
}

/* ГОРИЗОНТАЛЬНОЕ ПРЕВЬЮ (16:9) */
.movie-preview {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.movie-preview-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.movie-card:hover .movie-preview-img {
    transform: scale(1.03);
}

/* БЕЙДЖ ТИПА КОНТЕНТА */
.preview-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ОВЕРЛЕЙ С КНОПКОЙ ПРОСМОТРА */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 51, 102, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 51, 102, 0.4);
    transition: transform 0.3s ease;
}

.movie-card:hover .play-button {
    transform: scale(1.1);
}

/* ИНФОРМАЦИЯ ПОД ПРЕВЬЮ */
.movie-info {
    padding: 12px 4px 8px 4px;
}

.movie-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #888;
}

.movie-year {
    color: #aaa;
}

.movie-genre {
    color: #666;
}

.movie-views {
    color: #666;
}

/* РЕСПОНСИВ ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {
    .movie-title {
        font-size: 13px;
    }
    .movie-meta {
        font-size: 12px;
    }
    .play-button {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .play-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .preview-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
}