/* ===============================
   Global – match Store look
================================ */
.library-page h2 {
    font-weight: 700;
    letter-spacing: .3px;
}

.library-page p.text-muted {
    font-size: 15px;
}

/* ===============================
   Card (Store Style)
================================ */
.library-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
}

.library-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(0,0,0,.15);
}

/* ===============================
   Thumbnail
================================ */
.library-thumb {
    position: relative;
    height: 220px;
    background: #f1f5f9;
}

.library-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Price badge (top right like store) */
.price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
}

.price-badge.free {
    background: #16a34a;
    color: #fff;
}

.price-badge.paid {
    background: #f59e0b;
    color: #111827;
}

/* Type badge */
.type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 999px;
}

/* ===============================
   Card body
================================ */
.library-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.library-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}

.library-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}

.library-rating {
    font-size: 13px;
    color: #f59e0b;
    margin-bottom: 10px;
}

/* ===============================
   Buttons (match store)
================================ */
.library-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.library-actions .btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
}

/* ===============================
   Preview modal
================================ */
.modal-content {
    border-radius: 18px;
}

.modal-body img {
    border-radius: 14px;
}

/* Watermark note */
.preview-lock {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
    text-align: center;
}

/* ===============================
   Mobile
================================ */
@media (max-width: 576px) {
    .library-thumb {
        height: 170px;
    }
}


/* ========================= */
/* ===== Video Player ===== */
/* ========================= */

.video-card {
    background: #000;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
}

.video-card iframe,
.video-card video {
    border-radius: 12px;
}

/* Empty */
.empty-video {
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: #111827;
    border-radius: 12px;
}

/* Sidebar */
.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.info-card p {
    font-size: 14px;
    color: #374151;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* الفيديو */
video {
    width: 100%;
    height: auto;
    display: block;
}

/* منع تحميل الفيديو */
video::-webkit-media-controls-download-button {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    overflow: hidden;
}

/* إخفاء بعض الكنترولز */
video::-webkit-media-controls {
    opacity: 0.85;
}

video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.7);
}
.library-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-icon {
    width: 64px;
    height: 64px;
    background: rgba(0,0,0,.6);
    border-radius: 50%;
    position: relative;
}

.play-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent white;
}
