﻿/****************************************
         * Общие стили страницы
         ****************************************/
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Заголовок и хлебные крошки */
.page-header {
    margin-bottom: 20px;
}

    .page-header h1 {
        font-size: 28px;
        margin: 0 0 10px 0;
    }

.breadcrumbs a {
    color: #666;
    text-decoration: none;
    margin-right: 5px;
}

    .breadcrumbs a:hover {
        text-decoration: underline;
    }


/****************************************
         * Секция сортировки и карточки
         ****************************************/
/* Остальные стили остаются без изменений */
.sort-panel {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .sort-panel label {
        font-size: 14px;
    }

    .sort-panel select {
        padding: 5px;
        font-size: 14px;
    }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.video-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .video-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

.video-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-info {
    padding: 10px;
}

.video-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.video-price {
    font-size: 14px;
    margin-bottom: 10px;
}

.btn-primary {
    display: inline-block;
    padding: 8px 12px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

    .btn-primary:hover {
        background-color: #0056b3;
    }

/****************************************
         * Пагинация
         ****************************************/
.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

    .pagination a {
        background: none;
        color: inherit;
        text-decoration: none;
        padding: 5px;
        margin: 0 5px;
        cursor: pointer;
        border: none;
    }

        .pagination a:hover {
            text-decoration: underline;
        }

        .pagination a.active {
            font-weight: bold;
            text-decoration: underline;
        }

/****************************************
         * Адаптивность
         ****************************************/
@media (max-width: 480px) {
    .top-search-bar {
        flex-direction: column;
        align-items: stretch;
    }

        .top-search-bar .search-group {
            margin-right: 0;
            margin-bottom: 10px;
        }

        .top-search-bar .controls {
            justify-content: center;
        }
}
