.movie-library-v4 {
    display: grid;
    gap: 18px;
}

.movie-v4-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.movie-v4-eyebrow {
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.movie-v4-hero h1 {
    margin: 4px 0 6px;
    color: #08152d;
    font-size: 30px;
}

.movie-v4-hero p {
    margin: 0;
    color: #74839a;
}

.movie-v4-hero-actions {
    display: flex;
    gap: 9px;
}

.movie-v4-stats {
    display: grid;
    grid-template-columns: repeat(
        6,
        minmax(0, 1fr)
    );
    gap: 12px;
}

.movie-v4-stat,
.movie-v4-panel,
.movie-v4-bulkbar,
.movie-v4-table-card {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
}

.movie-v4-stat {
    padding: 18px;
}

.movie-v4-stat span {
    color: #56657b;
    font-size: 13px;
    font-weight: 700;
}

.movie-v4-stat strong {
    display: block;
    margin: 9px 0 4px;
    color: #07152e;
    font-size: 28px;
    line-height: 1;
}

.movie-v4-stat small {
    color: #91a0b5;
}

.movie-v4-panel {
    padding: 18px;
}

.movie-v4-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

.movie-v4-panel-head h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.movie-v4-panel-head p {
    margin: 0;
    color: #8998ad;
    font-size: 13px;
}

.movie-v4-result {
    padding: 7px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #46566d;
    font-size: 12px;
    font-weight: 700;
}

.movie-v4-filter {
    display: grid;
    grid-template-columns:
        minmax(220px, 2fr)
        repeat(4, minmax(125px, 1fr))
        90px
        auto;
    gap: 10px;
    align-items: end;
}

.movie-v4-filter label {
    display: grid;
    gap: 6px;
}

.movie-v4-filter label > span {
    color: #526078;
    font-size: 12px;
    font-weight: 700;
}

.movie-v4-filter input,
.movie-v4-filter select,
.movie-v4-bulk-actions select {
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid #d4dfec;
    border-radius: 8px;
    background: #fff;
}

.movie-v4-filter-actions,
.movie-v4-bulk-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.movie-v4-bulkbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.movie-v4-selectall {
    display: flex;
    align-items: center;
    gap: 7px;
}

#movieSelectedCount {
    color: #2563eb;
    font-size: 13px;
}

.movie-v4-bulk-actions {
    margin-left: auto;
}

.movie-v4-bulk-actions select {
    min-width: 190px;
}

.movie-v4-table-card {
    overflow: hidden;
}

.movie-v4-table-wrap {
    overflow-x: auto;
}

.movie-v4-table {
    width: 100%;
    min-width: 1280px;
    border-collapse: collapse;
}

.movie-v4-table th {
    padding: 11px 10px;
    background: #f7f9fc;
    border-bottom: 1px solid #dfe7f1;
    color: #52637a;
    font-size: 12px;
    text-align: left;
    white-space: nowrap;
}

.movie-v4-table td {
    padding: 10px;
    border-bottom: 1px solid #edf1f6;
    color: #17233a;
    font-size: 13px;
    vertical-align: middle;
}

.movie-v4-table tbody tr:hover {
    background: #fbfdff;
}

.movie-v4-id {
    color: #718096 !important;
    white-space: nowrap;
}

.movie-v4-title-cell {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 280px;
}

.movie-v4-cover {
    width: 44px;
    height: 60px;
    flex: 0 0 44px;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef4ff;
    color: #2563eb;
    font-weight: 800;
}

.movie-v4-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-v4-title {
    color: #0c1830;
    font-weight: 800;
    text-decoration: none;
}

.movie-v4-title:hover,
.movie-v4-action:hover {
    color: #2563eb;
}

.movie-v4-sub,
.movie-v4-meta,
.movie-v4-muted {
    color: #8998ad;
    font-size: 11px;
}

.movie-v4-sub,
.movie-v4-meta {
    margin-top: 3px;
}

.movie-v4-category,
.movie-v4-source-type,
.movie-v4-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.movie-v4-category {
    background: #edf4ff;
    color: #2563eb;
}

.movie-v4-source-type {
    background: #f3f5f8;
    color: #52637a;
}

.movie-v4-status.enabled {
    background: #eafaf0;
    color: #079447;
}

.movie-v4-status.disabled {
    background: #f1f5f9;
    color: #64748b;
}

.movie-v4-action {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.movie-v4-pagination {
    padding: 14px 16px;
}

.movie-v4-empty {
    padding: 50px !important;
    color: #8493a8 !important;
    text-align: center;
}

.btn-danger {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    color: #fff !important;
}

@media (max-width: 1400px) {
    .movie-v4-stats {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .movie-v4-filter {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .movie-v4-hero,
    .movie-v4-bulkbar {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-v4-stats,
    .movie-v4-filter {
        grid-template-columns: 1fr 1fr;
    }

    .movie-v4-bulk-actions {
        margin-left: 0;
        flex-wrap: wrap;
    }
}
