﻿
.mwp-library-hero {
    background: #fafafa;
    padding: 25px 20px 40px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.mwp-library-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #231f20;
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.mwp-library-hero h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.mwp-library-hero .mwp-library-subtitle {
    color: #666;
    font-size: 1.02rem;
    max-width: 620px;
    margin: 0 auto 15px;
}

.mwp-library-hero-cta {
    max-width: 360px;
    margin: 0 auto 4px;
}

.mwp-library-search {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

    .mwp-library-search input {
        width: 100%;
        padding: 14px 20px 14px 48px;
        font-size: 1rem;
        border: 1px solid #ddd;
        border-radius: 30px;
        outline: none;
        transition: border-color 0.15s, box-shadow 0.15s;
        background: #fff;
    }

        .mwp-library-search input:focus {
            border-color: #231f20;
            box-shadow: 0 0 0 3px rgba(35,31,32,0.08);
        }

    .mwp-library-search .mwp-search-icon {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
        font-size: 1.05rem;
        pointer-events: none;
    }

.mwp-library-toolbar {
    padding: 24px 0 8px;
    gap: 12px;
}

.mwp-library-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mwp-filter-chip {
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

    .mwp-filter-chip:hover {
        border-color: #231f20;
    }

    .mwp-filter-chip.active {
        background: #231f20;
        border-color: #231f20;
        color: #fff;
    }

.mwp-library-count {
    font-size: 0.85rem;
    color: #888;
}

.mwp-library-grid {
    padding: 8px 0 50px;
}

.mwp-library-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}

    .mwp-library-card:hover {
        box-shadow: 0 10px 28px rgba(0,0,0,0.08);
        transform: translateY(-3px);
    }

.mwp-library-card-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #f0f0f0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    flex-shrink: 0;
}

    .mwp-library-card-thumb .mwp-placeholder-icon {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.4rem;
        color: #bbb;
        background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
    }

    .mwp-library-card-thumb .mwp-play-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.28);
        transition: background 0.2s;
    }

.mwp-library-card:hover .mwp-play-overlay {
    background: rgba(0,0,0,0.4);
}

.mwp-play-overlay i {
    font-size: 2.6rem;
    color: #fff;
    transition: transform 0.2s;
}

.mwp-library-card:hover .mwp-play-overlay i {
    transform: scale(1.08);
}

.mwp-related-thumb .mwp-mini-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.28);
}

    .mwp-related-thumb .mwp-mini-play i {
        font-size: 1.1rem;
        color: #fff;
    }

.mwp-library-card-type {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 30px;
    background: rgba(35,31,32,0.85);
    color: #fff;
}

.mwp-library-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mwp-library-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1a1a1a;
    line-height: 1.3;
}

.mwp-library-card-desc {
    font-size: 0.85rem;
    color: #666;
    flex-grow: 1;
    margin-bottom: 12px;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mwp-library-card-tags {
    margin-bottom: 12px;
}

    .mwp-library-card-tags .badge {
        background: #f0f4f8;
        color: #555;
        font-weight: 500;
        margin: 0 4px 4px 0;
    }

.mwp-library-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: #231f20;
    text-decoration: none;
    margin-top: auto;
    display: inline-block;
}

    .mwp-library-card-link i {
        transition: transform 0.15s;
    }

    .mwp-library-card-link:hover i {
        transform: translateX(3px);
    }

.mwp-library-empty {
    text-align: center;
    padding: 60px 20px;
}

    .mwp-library-empty i {
        font-size: 2.6rem;
        color: #ccc;
        margin-bottom: 14px;
    }

    .mwp-library-empty h4 {
        font-weight: 700;
        color: #333;
        margin-bottom: 6px;
    }

    .mwp-library-empty p {
        color: #888;
        margin-bottom: 18px;
    }

.mwp-library-benefits {
    background: #fafafa;
    padding: 56px 0;
    border-top: 1px solid #eee;
}

    .mwp-library-benefits h2 {
        text-align: center;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 38px;
        font-size: 1.6rem;
    }

.mwp-benefit-card {
    text-align: center;
    padding: 0 16px;
}

.mwp-benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #231f20;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}

.mwp-benefit-card h5 {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.mwp-benefit-card p {
    color: #666;
    font-size: 0.9rem;
}

.mwp-library-cta-panel {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 22px;
}

    .mwp-library-cta-panel .mwp-cta-title {
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 6px;
    }

    .mwp-library-cta-panel .mwp-cta-subtitle {
        font-size: 0.85rem;
        color: #666;
        margin-bottom: 16px;
    }

@media (max-width: 575.98px) {
    .mwp-library-hero {
        padding: 40px 16px 30px;
    }

        .mwp-library-hero h1 {
            font-size: 1.6rem;
        }

    .mwp-library-search input {
        padding-left: 44px;
    }
}

.mwp-library-detail .mwp-breadcrumbs {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    padding: 16px 0;
}

.mwp-library-detail .mwp-breadcrumbs a {
    color: #888;
    text-decoration: none;
}

    .mwp-library-detail .mwp-breadcrumbs a:hover {
        color: #231f20;
        text-decoration: underline;
    }

.mwp-library-detail .mwp-breadcrumbs .sep {
    margin: 0 6px;
    color: #ccc;
}

.mwp-library-video-wrapper {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
    margin-bottom: 24px;
}

    .mwp-library-video-wrapper iframe, .mwp-library-video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        background: #000;
    }

.mwp-library-thumb-fallback {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #f0f0f0;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

    .mwp-library-thumb-fallback .mwp-placeholder-icon {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        color: #bbb;
        background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
    }

.mwp-library-video-unavailable {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    border-radius: 10px;
    background: #f5f5f5;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 24px;
    text-align: center;
    padding: 20px;
}

.mwp-library-tag {
    font-size: 0.75rem;
    background: #f0f4f8;
    color: #555;
    border-radius: 12px;
    padding: 4px 12px;
    margin: 0 6px 6px 0;
    display: inline-block;
}

.mwp-library-cta-panel {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 22px;
    position: sticky;
    top: 24px;
}

    .mwp-library-cta-panel .mwp-cta-title {
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 6px;
    }

    .mwp-library-cta-panel .mwp-cta-subtitle {
        font-size: 0.85rem;
        color: #666;
        margin-bottom: 16px;
    }

.mwp-library-related-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

    .mwp-library-related-item:last-child {
        border-bottom: none;
    }

    .mwp-library-related-item:hover .mwp-related-title {
        text-decoration: underline;
    }

.mwp-related-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 56px;
    border-radius: 6px;
    background: #f0f0f0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

    .mwp-related-thumb .mwp-placeholder-icon {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        color: #bbb;
        background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
    }

.mwp-related-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.mwp-related-type {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 991.98px) {
    .mwp-library-cta-panel {
        position: static;
        margin-bottom: 28px;
    }
}

