.ntw-widget {
    --ntw-accent: #e50914;
    --ntw-panel: #07111a;
    --ntw-card: #ffffff;
    --ntw-title: #ffffff;
    --ntw-secondary-title: #111827;
    --ntw-muted: #d8e0e7;
    --ntw-border: #29404e;
    --ntw-number: #ff1022;
    width: 100%;
    font-family: inherit;
}

.ntw-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(220px, .85fr) minmax(240px, .95fr);
    align-items: stretch;
    gap: 12px;
}

.ntw-card,
.ntw-popular {
    overflow: hidden;
    border-radius: 2px;
}

.ntw-card {
    position: relative;
    display: block;
    text-decoration: none;
}

.ntw-main {
    min-height: 420px;
    isolation: isolate;
    background: linear-gradient(135deg, #243746, #08131c);
}

.ntw-main__image,
.ntw-main__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ntw-main__image {
    z-index: -2;
    object-fit: cover;
}

.ntw-main__overlay {
    z-index: -1;
    background: linear-gradient(180deg, rgba(4, 12, 18, .12) 18%, rgba(4, 12, 18, .93) 100%);
}

.ntw-main__content {
    position: absolute;
    right: 28px;
    bottom: 25px;
    left: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--ntw-title);
}

.ntw-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    margin-bottom: 9px;
    background: var(--ntw-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ntw-main__title {
    max-width: 780px;
    font-size: clamp(28px, 3.05vw, 52px);
    font-weight: 850;
    line-height: .98;
    letter-spacing: -.035em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

.ntw-main__excerpt {
    max-width: 620px;
    margin-top: 12px;
    color: #f1f5f7;
    font-size: 14px;
    line-height: 1.35;
}

.ntw-meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    color: var(--ntw-muted);
    font-size: 11px;
    line-height: 1.3;
}

.ntw-meta__dot {
    color: var(--ntw-accent);
    font-weight: 900;
}

.ntw-secondary {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ntw-secondary-card {
    min-height: 196px;
    height: 100%;
    background: var(--ntw-card);
    color: var(--ntw-secondary-title);
}

.ntw-secondary-card__image {
    display: block;
    width: 100%;
    height: 55%;
    min-height: 0;
    object-fit: cover;
    background: linear-gradient(135deg, #b2c4d0, #405563);
}

.ntw-secondary-card__body {
    display: flex;
    min-height: 45%;
    padding: 10px 12px 12px;
    flex-direction: column;
    align-items: flex-start;
}

.ntw-secondary-card .ntw-category {
    padding: 4px 7px;
    margin: -25px 0 7px;
    font-size: 10px;
}

.ntw-secondary-card__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.05;
}

.ntw-secondary-card .ntw-meta {
    margin-top: auto;
    color: #65727b;
    font-size: 10px;
}

.ntw-popular {
    padding: 18px 18px 12px;
    background: var(--ntw-panel);
    color: var(--ntw-title);
}

.ntw-popular__heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.ntw-popular__title {
    flex: 0 0 auto;
    font-size: 19px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.ntw-popular__rule {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ntw-accent);
}

.ntw-popular-item {
    display: flex;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--ntw-border);
    color: inherit;
    text-decoration: none;
}

.ntw-popular-item:last-child {
    border-bottom: 0;
}

.ntw-popular-item__rank {
    flex: 0 0 22px;
    color: var(--ntw-number);
    font-size: 34px;
    font-weight: 900;
    line-height: .9;
}

.ntw-popular-item__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.ntw-popular-item__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--ntw-title);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.16;
}

.ntw-popular-item__views,
.ntw-popular__empty {
    color: var(--ntw-muted);
    font-size: 10px;
    line-height: 1.2;
}

.ntw-empty {
    padding: 24px;
    border: 1px dashed #b8c4cc;
    color: #5c6b74;
    text-align: center;
}

@media (max-width: 900px) {
    .ntw-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(220px, .85fr);
    }

    .ntw-popular {
        grid-column: 1 / -1;
    }

    .ntw-popular__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
    }
}

@media (max-width: 620px) {
    .ntw-layout {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ntw-main {
        min-height: 360px;
    }

    .ntw-main__content {
        right: 17px;
        bottom: 18px;
        left: 17px;
    }

    .ntw-main__title {
        font-size: clamp(28px, 9vw, 42px);
    }

    .ntw-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .ntw-secondary-card {
        min-height: 180px;
        height: auto;
    }

    .ntw-secondary-card__image {
        min-height: 85px;
    }

    .ntw-secondary-card__title {
        font-size: 13px;
    }

    .ntw-popular__list {
        grid-template-columns: 1fr;
    }
}