/* ===== XZFL Video Grid ===== */

.xzfl-video-grid-container {
    width: 100%;
}

/* List Layout */
.xzfl-video-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* List Item */
.xzfl-video-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.xzfl-video-item:hover {
    background-color: #f5f5f5;
}

/* Date */
.xzfl-item-date {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
    margin-bottom: 2px;
}

/* Title */
.xzfl-video-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Pagination ===== */
.xzfl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.xzfl-pagination a,
.xzfl-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #fff;
}
.xzfl-pagination a:hover {
    background: #f0f0f0;
    border-color: #bbb;
    color: #333;
}
.xzfl-pagination span.current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
    font-weight: 600;
}
.xzfl-pagination .dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 4px;
}

/* ===== Action Modal (download / QR) ===== */
.xzfl-action-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.xzfl-action-modal.active {
    opacity: 1;
}
.xzfl-action-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    text-align: center;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
}
.xzfl-action-modal.active .xzfl-action-card {
    transform: scale(1);
}
.xzfl-action-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}
.xzfl-action-close:hover {
    background: #e0e0e0;
    color: #333;
}
.xzfl-action-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 24px;
    padding: 0 20px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Action Buttons */
.xzfl-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}
.xzfl-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}
.xzfl-action-btn svg {
    flex-shrink: 0;
}
.xzfl-btn-download {
    background: #222;
    color: #fff;
}
.xzfl-btn-download:hover {
    background: #000;
}
.xzfl-btn-qrcode {
    background: #f0f2f5;
    color: #333;
}
.xzfl-btn-qrcode:hover {
    background: #e4e7eb;
}

/* QR Code Area (inside action modal) */
.xzfl-qr-area {
    display: none;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.xzfl-qr-area.visible {
    display: block;
}
.xzfl-qr-code {
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
}
.xzfl-qr-code img {
    display: block !important;
}
.xzfl-qr-hint {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .xzfl-action-card {
        padding: 24px 20px 20px;
    }
}
