/* Sala de Prensa / Portal de Noticias — rediseño editorial corporativo
   Reutiliza el tema institucional global (institucional-theme.css: verde oscuro +
   blanco + naranja) definido en :root; aquí solo se mapean sus alias locales. */

.np-page {
    --np-primary: var(--inst-primary);
    --np-secondary: var(--inst-secondary);
    --np-accent: var(--inst-accent);
    --np-accent-hover: var(--inst-accent-hover);
    --np-bg: var(--inst-bg-light);
    --np-fg: var(--inst-primary);
    --np-card: var(--inst-white);
    --np-muted: var(--inst-muted);
    --np-muted-fg: var(--inst-muted-fg);
    --np-border: var(--inst-border);
    --np-destructive: #DC2626;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    color: var(--np-fg);
    background-color: var(--np-bg);
}

    .np-page h1, .np-page h2, .np-page h3, .np-page h4, .np-page h5 {
        font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
        color: var(--np-primary);
        font-weight: 700;
    }

.np-page a {
    text-decoration: none;
}

/* Masthead */
.np-masthead {
    background: linear-gradient(135deg, var(--np-primary) 0%, var(--np-secondary) 100%);
    padding: 70px 0 50px;
    position: relative;
}

.np-masthead::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--np-accent);
}

.np-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FDBA74;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.np-masthead h1 {
    color: #FFFFFF;
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
}

.np-masthead p {
    color: #D7E5DC;
    font-size: 16px;
    max-width: 640px;
    margin-bottom: 0;
}

.np-breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.np-breadcrumb li {
    color: #9DB8A8;
    font-size: 14px;
}

.np-breadcrumb li a {
    color: #E6F0EA;
    font-weight: 500;
}

.np-breadcrumb li a:hover {
    color: var(--np-accent);
}

.np-breadcrumb li.np-dot {
    color: #3F6B52;
}
/* ---------- Hero ---------- */
.pr-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 135deg, var(--inst-primary-dark) 0%, var(--inst-primary) 55%, var(--inst-secondary) 100% );
    padding: 36px 0 28px;
    color: var(--inst-white);
}

    .pr-hero::before, .pr-hero::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.09);
    }

    .pr-hero::before {
        width: 320px;
        height: 320px;
        top: -160px;
        right: -80px;
    }

    .pr-hero::after {
        width: 220px;
        height: 220px;
        bottom: -120px;
        left: 8%;
        background: rgba(255, 255, 255, 0.09);
    }

.pr-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}

    .pr-breadcrumb li {
        color: #BFE0CC;
        font-size: 14px;
    }

        .pr-breadcrumb li a {
            color: #EAF6EF;
            font-weight: 500;
        }

            .pr-breadcrumb li a:hover {
                color: var(--inst-accent);
            }

.pr-hero h1 {
    font-size: 2rem;
    margin-bottom: .5rem;
    position: relative;
    z-index: 1;
    color: var(--inst-white);
}

.pr-hero p {
    color: #D9EDE1;
    max-width: 700px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
    font-size: .95rem;
    margin-bottom: 0;
}

/* Section title */
.np-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 56px 0 28px;
}

.np-section-title h2 {
    font-size: 24px;
    margin: 0;
    position: relative;
    padding-left: 16px;
}

.np-section-title h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--np-accent);
    border-radius: 2px;
}

.np-section-title a {
    color: var(--np-secondary);
    font-weight: 600;
    font-size: 14px;
}

.np-section-title a:hover {
    color: var(--np-accent);
}

/* Featured story */
.np-featured {
    background: var(--np-card);
    border: 1px solid var(--np-border);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@media (max-width: 991px) {
    .np-featured {
        grid-template-columns: 1fr;
    }
}

.np-featured .np-featured-image {
    min-height: 320px;
    background-size: cover;
    background-position: center;
}

.np-featured .np-featured-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.np-featured h3 {
    font-size: 26px;
    margin: 14px 0;
    line-height: 1.3;
}

.np-featured p {
    color: var(--np-muted-fg);
    margin-bottom: 20px;
}

/* Pills / badges */
.np-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--np-muted);
    color: var(--np-secondary);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 100px;
    width: fit-content;
}

.np-badge-accent {
    background: var(--np-accent);
    color: #FFFFFF;
}
.np-card-meta {
   
    display: flex;
    align-items: center;
    gap: 10px;
    
  
}



    .np-card-meta i {
        margin-right: 4px;
        color: var(--np-accent);
    }
.np-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--np-muted-fg);
    font-size: 13px;
    margin-bottom: 0;
}

.np-meta i {
    margin-right: 4px;
}
.np-card-separator {
    border: none;
    border-top: 1px solid var(--inst-text-light);
    margin: 12px 0;
}
/* Grid of cards */
.np-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .np-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .np-grid { grid-template-columns: 1fr; }
}

.np-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 991px) {
    .np-layout { grid-template-columns: 1fr; }
}

.np-card {
    position: relative;
    background: var(--np-card);
    border: 1px solid var(--np-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 3px solid var(--np-primary);
    transition:  transform 200ms ease,  box-shadow 200ms ease,  border-top-color 200ms ease;
}
.np-card-image-wrapper {
    overflow: hidden;
}

.np-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.np-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var( --inst-muted);
    color: var(--inst-secondary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.np-author-info {
     display: flex;
     flex-direction: column;
     line-height: 1.2;
    
}
.np-author-name {
    font-weight: 600;
    color: var(--inst-secondary-light);
    font-size: 13px;
}
.np-author-date {
     font-size: 11px;
     color: var(--np-muted-fg);
     margin-top: 2px;
    
}
    .np-author-date i {
        color: var( --inst-secondary-light);
        margin-right: 4px;
    }


.np-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-top-color: var(--np-accent);
}

@media (prefers-reduced-motion: reduce) {
    .np-card:hover { transform: none; }
}
.np-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}
.np-card::before {
    content: "";
    display: block;
    height: 2px;
    background: var(--np-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: .3s ease;
}

.np-card:hover::before {
    transform: scaleX(1);
}
.np-card-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f5f5f5;
    transition: transform .4s ease;
}
.np-card:hover .np-card-image {
     transform: scale(1.06);
    
}
.np-card-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.np-card h3 {
    font-size: 16px;
    line-height: 1.4;
    margin: 0;
}

.np-card h3 a {
    color: var(--np-primary);
}

.np-card h3 a:hover {
    color: var(--np-secondary);
}

.np-card p {
    color: var(--np-muted-fg);
    font-size: 13px;
    margin: 0;
    flex: 1;
}

.np-read-more {
    color: var(--np-secondary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.np-read-more:hover {
    color: var(--np-accent);
}

.np-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.np-tags li {
    font-size: 12px;
    color: var(--np-muted-fg);
    background: var(--np-muted);
    padding: 3px 10px;
    border-radius: 100px;
}

/* Sidebar */
.np-widget {
    background: var(--np-card);
    border: 1px solid var(--np-border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
}

.np-widget h4 {
    font-size: 16px;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}

.np-widget h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: var(--np-accent);
    border-radius: 2px;
}

.np-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.np-category-list a,
.np-category-list button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--np-bg);
    color: var(--np-fg);
    font-size: 14.5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.np-category-list a:hover,
.np-category-list button:hover {
    background: var(--np-primary);
    color: #FFFFFF;
}

.np-category-list button.active {
    background: var(--np-primary);
    color: #FFFFFF;
}

.np-category-list span {
    background: var(--np-muted);
    color: var(--np-muted-fg);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 100px;
}

.np-category-list a:hover span,
.np-category-list button:hover span,
.np-category-list button.active span {
    background: var(--np-accent);
    color: #FFFFFF;
}

.np-recent-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--np-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    border-radius: 8px;
    padding: 10px;
}

    .np-recent-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
        background-color: #fff;
    }

.np-recent-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.np-recent-thumb {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    object-fit: contain;
    object-position: center center;
    background: #f5f5f5;
    border: 1px solid var(--np-border);
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
}

.np-recent-item:hover .np-recent-thumb {
    transform: scale(1.05);
}

.np-recent-item h5 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

    .np-recent-item h5 a {
        transition: color .2s ease;
    }

        .np-recent-item h5 a:hover {
            color: var(--np-secondary);
        }

.np-recent-item span {
    color: var(--np-muted-fg);
    font-size: 12.5px;
}

.np-cta-widget {
    background: linear-gradient(135deg, var(--np-primary) 0%, var(--np-secondary) 100%);
    border-radius: 10px;
    padding: 28px 24px;
    text-align: center;
    color: #FFFFFF;
}

.np-cta-widget p {
    color: #D7E5DC;
    font-size: 14px;
    margin-bottom: 16px;
}

.np-btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--np-accent);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 8px;
    border: none;
    transition: background 150ms ease, transform 150ms ease;
}

.np-btn-gold:hover {
    background: var(--np-accent-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .np-btn-gold:hover { transform: none; }
}

.np-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--np-secondary);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1.5px solid var(--np-border);
    transition: border-color 150ms ease, color 150ms ease;
}

.np-btn-outline:hover {
    border-color: var(--np-secondary);
    color: var(--np-secondary);
}

/* Filtro por categoría/tipo (portal de noticias y multimedia) */
.np-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.np-toolbar .np-filters {
    margin-bottom: 0;
}

.np-filter-pill {
    background: var(--np-card);
    border: 1.5px solid var(--np-border);
    color: var(--np-fg);
    font-weight: 600;
    font-size: 14px;
    padding: 9px 20px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 150ms ease;
}

.np-filter-pill:hover {
    border-color: var(--np-secondary);
    color: var(--np-secondary);
}

.np-filter-pill.active {
    background: var(--np-primary);
    border-color: var(--np-primary);
    color: #FFFFFF;
}

/* Media grid */
.np-media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .np-media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .np-media-grid { grid-template-columns: 1fr; }
}

.np-media-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    display: block;
}

.np-media-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 45%);
}

.np-media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.np-media-item:hover img {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .np-media-item:hover img { transform: none; }
}

.np-media-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    color: #FFFFFF;
    font-size: 13.5px;
    z-index: 2;
}

.np-media-caption strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.np-media-caption a {
    color: #FDBA74;
}

.np-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--np-accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.np-media-type {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.75);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 100px;
}

/* Empty state */
.np-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--np-muted-fg);
}

/* ---------- Aparición de tarjetas al hacer scroll (portal) ---------- */
.np-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.np-reveal.np-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .np-reveal { opacity: 1; transform: none; transition: none; }
}

/* Transición al filtrar/paginar (independiente del reveal de scroll) */
.np-item {
    transition: opacity 180ms ease;
}

.np-item.np-fading {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .np-item { transition: none; }
}

/* ---------- Paginación del portal de noticias ---------- */
.np-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.np-page-btn {
    min-width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1.5px solid var(--np-border);
    background: var(--np-card);
    color: var(--np-primary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 150ms ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.np-page-btn:hover {
    border-color: var(--np-secondary);
    color: var(--np-secondary);
}

.np-page-btn.active {
    background: var(--np-primary);
    border-color: var(--np-primary);
    color: #FFFFFF;
}

.np-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- Barra de meta del artículo (detalle de noticia) ---------- */
.np-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 0;
}

.np-article-meta .np-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    color: #EAF3EE;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 100px;
}

.np-article-meta .np-meta-chip i {
    color: var(--np-accent);
}

/* ---------- Hashtags del artículo ---------- */
.np-hashtags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.np-hashtags li {
    display: inline-flex;
    align-items: center;
    color: var(--np-secondary);
    background: var(--np-bg);
    border: 1.5px solid var(--np-border);
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 100px;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.np-hashtags li::before {
    content: "#";
    margin-right: 2px;
    color: var(--np-accent);
    font-weight: 700;
}

.np-hashtags li:hover {
    background: var(--np-primary);
    border-color: var(--np-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.np-hashtags li:hover::before {
    color: #FDBA74;
}

@media (prefers-reduced-motion: reduce) {
    .np-hashtags li:hover { transform: none; }
}

/* ---------- seccion meta del detalle  artículo ---------- */
.np-article-footer-meta {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--np-border);
}

.np-article-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.np-article-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--np-primary);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.np-article-author-info h5 {
    margin: 0 0 6px;
    color: var(--np-primary);
    font-size: 18px;
}

.np-article-author-details {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

    .np-article-author-details span {
        font-size: 13px;
        color: var(--np-muted-fg);
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .np-article-author-details i {
        color: var(--np-accent);
    }
/* ============================================================
   Biblioteca multimedia — layout con panel de colecciones,
   barra de herramientas (buscador + filtros) y galería tipo
   asset library con lightbox.
   ============================================================ */

.np-library-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

@media (max-width: 991px) {
    .np-library-layout { grid-template-columns: 1fr; }
}

.np-library-sidebar {
    position: sticky;
    top: 24px;
}

.np-collection-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.np-collection-list button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: none;
    border: none;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--np-fg);
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}

.np-collection-list button:hover {
    background: var(--np-bg);
}

.np-collection-list button.active {
    background: var(--np-primary);
    color: #FFFFFF;
}

.np-collection-list button span {
    background: var(--np-muted);
    color: var(--np-muted-fg);
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 100px;
}

.np-collection-list button.active span {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.np-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    background: var(--np-card);
    border: 1px solid var(--np-border);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.np-search-box {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.np-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--np-muted-fg);
}

.np-search-box input {
    width: 100%;
    border: 1px solid var(--np-border);
    border-radius: 100px;
    padding: 9px 16px 9px 38px;
    font-size: 14px;
    background: var(--np-bg);
    color: var(--np-fg);
}

.np-search-box input:focus {
    outline: none;
    border-color: var(--np-primary);
    background: #FFFFFF;
}

.np-result-count {
    font-size: 13px;
    color: var(--np-muted-fg);
    white-space: nowrap;
}

.np-result-count strong {
    color: var(--np-primary);
}

/* Library asset grid (distinto del np-media-grid de la página principal) */
.np-library-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 991px) { .np-library-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .np-library-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .np-library-grid { grid-template-columns: 1fr; } }

.np-asset-card {
    background: var(--np-card);
    border: 1px solid var(--np-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.np-asset-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .np-asset-card:hover { transform: none; }
}

.np-asset-thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
}

.np-asset-thumb .np-media-type {
    position: absolute;
    top: 10px;
    right: 10px;
}

.np-asset-thumb .np-play-badge {
    width: 46px;
    height: 46px;
    font-size: 18px;
}

.np-asset-body {
    padding: 10px 12px;
}

.np-asset-body strong {
    display: block;
    font-size: 13.5px;
    color: var(--np-fg);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-asset-body span {
    font-size: 12px;
    color: var(--np-muted-fg);
}

.np-library-grid[hidden], .np-asset-card[hidden] {
    display: none !important;
}
