.buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.video-list, .album-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.video-item, .album-item {
    flex: 1 1 calc(20% - 20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    box-sizing: border-box;

    /* Thêm khung */
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    padding: 10px;

    /* shadow nhẹ */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.video-item:hover, .album-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}


.video-item .preview, .album-item .preview {
    width: 100%;
    height: 220px; /* khung lớn hơn */
    overflow: hidden;
    border-radius: 8px;
}

.video-item .preview img,
.album-item .preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item .title, .album-item .title {
    font-weight: bold;
    margin-top: 8px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.video-item .date, .album-item .date {
    font-size: 0.9em;
    color: #666;
    margin-top: 3px;
}

@media screen and (max-width: 1024px) {
    .video-item, .album-item { flex: 1 1 calc(33.33% - 15px); }
}

@media screen and (max-width: 768px) {
    .video-item, .album-item { flex: 1 1 calc(50% - 10px); }
}

@media screen and (max-width: 480px) {
    .video-item, .album-item { flex: 1 1 100%; }
}

.card-body {
    width: 100% !important;
}

.text-truncate{
    white-space: pre-wrap;
    font-size: 18px;
    font-weight: 800;
}