/* ============================================================
   NOTICIAS SIDEBAR v2.0 — Estilos del panel lateral
   ============================================================ */

.ns-sidebar-wrap {
    width: calc(100% + 25px);
    background: rgba(35, 38, 42, 0.55);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.ns-sidebar-header {
    padding: 12px 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    background: #000000;
}

.ns-sidebar-header span {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ns-sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
    max-height: calc(6 * 93px);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.ns-sidebar-scroll::-webkit-scrollbar { width: 4px; }
.ns-sidebar-scroll::-webkit-scrollbar-track { background: transparent; }
.ns-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
}
.ns-sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.22);
}

.ns-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 14px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.18s ease;
}

.ns-item:hover {
    background: rgba(255,255,255,0.06);
    text-decoration: none;
}

.ns-item:last-child { border-bottom: none; }

.ns-thumb {
    width: 54px;
    min-width: 54px;
    height: 44px;
    border-radius: 4px;
    overflow: hidden;
    background: #3a3f46;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ns-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ns-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #555;
}

.ns-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.ns-title {
    font-size: 14.5px;
    font-weight: 500;
    color: #d8dce2;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ns-item:hover .ns-title { color: #ffffff; }

.ns-meta {
    font-size: 10px;
    color: #5f6570;
}

.ns-empty {
    padding: 1rem;
    color: #888;
    font-size: 13px;
}

/* ============================================================
   EXCLUSIVAS — fuente más grande al tener solo 2 ítems
   ============================================================ */

.ns-exclusivas-wrap {
    background: #000000;
}

.ns-exclusivas-wrap .ns-item {
    padding: 18px 14px;
}

.ns-exclusivas-wrap .ns-item .ns-info .ns-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    -webkit-line-clamp: 3;
}

.ns-exclusivas-wrap .ns-meta {
    font-size: 12px;
}

.ns-exclusivas-wrap .ns-thumb {
    width: 68px;
    min-width: 68px;
    height: 58px;
}

@media screen and (max-width: 768px) {
    .ns-sidebar-wrap {
        display: flex !important;
        height: auto !important;
        width: 100% !important;
    }

    .ns-sidebar-scroll {
        max-height: calc(4 * 93px);
    }
}

/* ============================================================
   TICKER BAR — barra exclusivas superpuesta al slider
   ============================================================ */

.ns-ticker-bar {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    height: 46px;
    width: 100%;
    overflow: hidden;
    padding-left: 50px;
}

.ns-ticker-label {
    flex-shrink: 0;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.15);
    height: 100%;
    display: flex;
    align-items: center;
}

.ns-ticker-items {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 18px;
    overflow: hidden;
}

.ns-ticker-bar .ns-ticker-item {
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
    transition: color 0.18s;
}

.ns-ticker-bar .ns-ticker-item:hover {
    color: #FFD700 !important;
    text-decoration: underline;
}

.ns-ticker-item + .ns-ticker-item::before {
    content: '•';
    color: rgba(255,255,255,0.3);
    margin-right: 32px;
}

@media screen and (max-width: 768px) {
    .ns-ticker-bar {
        height: auto;
        flex-wrap: wrap;
        padding: 8px 12px;
    }

    .ns-ticker-label {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        width: 100%;
        height: auto;
        padding: 0 0 6px;
        margin-bottom: 6px;
    }

    .ns-ticker-items {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 0;
    }

    .ns-ticker-item {
        white-space: normal;
        max-width: 100%;
    }

    .ns-ticker-item + .ns-ticker-item::before { display: none; }
}
