.videos-public-main,
body {
    background: linear-gradient(135deg, #ffffff 0%, #fff 52%, #fff 100%) !important;
}

.videos-public-main {
    width: min(92vw, 1680px) !important;
}

.videos-public-header {
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(215, 221, 228, 0.95) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 45px rgba(31, 41, 51, 0.08) !important;
}

.videos-public-back {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #1f2933 !important;
    padding-left: 6px !important;
}

.videos-public-back:hover,
.videos-public-back:focus-visible {
    background: rgba(221, 21, 21, 0.12) !important;
    color: #b31515 !important;
}

.videos-public-copy {
    flex: 1;
}

.videos-public-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
    align-items: center;
}

.videos-public-search-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.videos-public-kicker {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #000 !important;
    font-weight: 700;
}

.videos-public-title {
    margin: 0 !important;
    text-align: left !important;
    color: #000 !important;
    font-size: clamp(18px, 1.55vw, 22px) !important;
    line-height: 1.2;
}

.videos-public-description {
    margin: 14px 0 0;
    max-width: 980px;
    color: #000 !important;
    line-height: 1.7;
}

.videos-public-results {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(215, 221, 228, 0.95) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 45px rgba(31, 41, 51, 0.08) !important;
}

.videos-public-search-field {
    position: relative;
}

.videos-public-search-field i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #000 !important;
    pointer-events: none;
}

.videos-public-search-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px 12px 48px;
    border-radius: 16px;
    border: 1px solid #d7dde4;
    background: #f9fafb;
    font: inherit;
    color: #000;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.videos-public-search-input::placeholder {
    color: #8a94a6;
}

.videos-public-search-input:focus {
    outline: none;
    border-color: rgba(221, 21, 21, 0.55);
    box-shadow: 0 0 0 4px rgba(221, 21, 21, 0.12);
    background: #fff;
}

.videos-public-search-counter {
    color: #000 !important;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.videos-loading {
    color: #52606d;
    font-size: 15px;
}

.videos-grid .video-card {
    cursor: pointer;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 250, 0.96) 100%) !important;
    border: 1px solid #dfe5eb !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 30px rgba(31, 41, 51, 0.06) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.videos-grid .video-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 34px rgba(31, 41, 51, 0.12) !important;
    border-color: rgba(221, 21, 21, 0.18) !important;
}

.videos-grid .video-preview-container,
.videos-grid .video-player {
    height: 240px;
}

.videos-grid .video-player {
    pointer-events: none;
    object-fit: cover;
    border-radius: 22px 22px 0 0;
}

.videos-grid .video-info {
    height: 100%;
}

.videos-grid .video-titulo,
.videos-modal-content .modal-titulo {
    color: #1f2933 !important;
    font-size: 22px !important;
}

.videos-grid .video-detalle {
    margin-top: 10px;
    color: #000 !important;
}

.videos-grid .video-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #000 !important;
}

.videos-grid .video-meta .video-tamano {
    color: #000 !important;
}

.videos-grid .video-duracion,
.videos-modal-content .modal-meta .video-duracion {
    background: #eef2f6 !important;
    color: #000 !important;
    box-shadow: none !important;
}

.videos-grid .video-meta,
.videos-modal-content .modal-meta {
    border-top: 1px solid #e4e7eb !important;
}

.videos-grid .video-info::after {
    content: 'Abrir visor';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f2f5f8;
    color: #334e68;
    font-size: 13px;
    font-weight: 700;
}

.videos-nav-btn,
.videos-page-btn {
    border: 1px solid #d7dde4 !important;
    background: #fff !important;
    color: #253443 !important;
    border-radius: 14px !important;
    min-width: 42px;
    height: 42px;
    padding: 0 14px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: none !important;
}

.videos-page-btn:hover,
.videos-nav-btn:hover,
.videos-page-btn:focus-visible,
.videos-nav-btn:focus-visible {
    border-color: rgba(221, 21, 21, 0.35) !important;
    background: rgba(221, 21, 21, 0.1) !important;
    color: #b31515 !important;
    outline: none;
    transform: none !important;
}

.videos-page-btn.active {
    background: #dd1515 !important;
    border-color: #dd1515 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(221, 21, 21, 0.22) !important;
}

.videos-nav-btn:disabled,
.videos-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none !important;
}

#page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.modal#videoModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30050 !important;
    padding: 24px;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.82) !important;
}

.modal#videoModal.active {
    display: flex;
}

.videos-modal-content {
    width: min(94vw, 1360px);
    max-width: 1360px;
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #d7dde4 !important;
    border-radius: 24px !important;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28) !important;
}

.videos-modal-content .video-js,
.videos-modal-content .modal-video {
    width: 100% !important;
    min-height: min(66vh, 720px);
    height: auto !important;
    flex: 1;
    border-radius: 0 !important;
    background: #000 !important;
}

.videos-modal-content .modal-info {
    background: #fff !important;
    border: none !important;
    border-top: 1px solid #e4e7eb !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#videoModal .modal-close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 30060 !important;
    width: 48px;
    height: 48px;
    padding: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #1f2933 !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22) !important;
}

#videoModal .modal-close:hover,
#videoModal .modal-close:focus-visible {
    background: #fff !important;
    color: #b31515 !important;
}

.videos-modal-content .modal-detalle {
    color: #000 !important;
}

.videos-modal-content .modal-meta span {
    color: #000 !important;
}

@media (max-width: 900px) {
    .videos-public-header {
        grid-template-columns: 1fr !important;
    }

    .videos-public-heading-row {
        grid-template-columns: 1fr;
    }

    .videos-public-title {
        text-align: left !important;
    }

    .videos-public-search-inline {
        grid-template-columns: 1fr;
    }

    .modal#videoModal {
        padding: 12px;
    }

    .videos-modal-content .video-js,
    .videos-modal-content .modal-video {
        min-height: 42vh;
    }
}