.video-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    grid-auto-rows: min-content;
    animation: fadeIn 0.5s ease-in-out;
}

.video-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(251, 114, 153, 0.1) 0%, rgba(251, 114, 153, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-card:hover::before {
    opacity: 1;
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s;
}

.video-card a {
    color: #18191c;
    text-decoration: none;
    transition: color 0.3s;
}

.video-card a:hover {
    color: #fb7299;
}

.video-meta {
    font-size: 14px;
    color: #61666d;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}

.video-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-stat-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.video-stat-value {
    font-size: 13px;
}

.video-category {
    display: inline-block;
    padding: 2px 8px;
    background: #fb7299;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.dark-mode .video-card {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .video-card:hover {
    background: #262626;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.page-item {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-item:hover:not(:disabled) {
    background: #fb7299;
    color: white;
    border-color: #fb7299;
}

.page-item.active {
    background: #fb7299;
    color: white;
    border-color: #fb7299;
}

.page-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dark-mode .page-item {
    background: #1e1e1e;
    border-color: #333;
    color: #ddd;
}

.dark-mode .page-item:hover:not(:disabled) {
    background: #fb7299;
    color: white;
    border-color: #fb7299;
}

.dark-mode .page-item.active {
    background: #fb7299;
    color: white;
    border-color: #fb7299;
}