@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --nova-bg: #ffffff;
    --nova-text: #111111;
    --nova-muted: #666666;
    --nova-soft: #f6f6f6;
    --nova-line: #ececec;
    --nova-coral: #ff5a52;
    --nova-blue: #1357ff;
    --nova-green: #87bd00;
    --nova-purple: #8a49ff;
    --nova-radius: 18px;
    --nova-shadow: 0 18px 60px rgba(0,0,0,.07);
}

.nova-news-page,
.nova-news-page * {
    box-sizing: border-box;
}

.nova-news-page {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--nova-text);
    background: var(--nova-bg);
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 42px 32px;
}

.nova-news-page a {
    color: inherit;
    text-decoration: none;
}

.nova-header {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--nova-line);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(18px);
    z-index: 10;
}

.nova-logo {
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: clamp(24px, 2.2vw, 34px);
    white-space: nowrap;
}

.nova-logo span {
    color: var(--nova-coral);
}

.nova-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.2vw, 38px);
    font-weight: 600;
    font-size: 14px;
}

.nova-nav a {
    padding: 32px 0 28px;
    border-bottom: 3px solid transparent;
}

.nova-nav .active {
    border-color: var(--nova-coral);
}

.nova-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nova-icon-btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

.nova-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.nova-btn:hover {
    transform: translateY(-2px);
}

.nova-btn-coral {
    background: var(--nova-coral);
    color: white !important;
    box-shadow: 0 12px 28px rgba(255,90,82,.22);
}

.nova-btn-outline {
    border: 1.5px solid #111;
    background: #fff;
}

.nova-hero {
    display: grid;
    grid-template-columns: 1.12fr .9fr;
    gap: 18px;
    margin-top: 24px;
}

.nova-featured {
    min-height: 590px;
    border-radius: var(--nova-radius);
    overflow: hidden;
    position: relative;
    background: #05070a;
    box-shadow: var(--nova-shadow);
}

.nova-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: .85;
}

.nova-featured:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.05) 100%);
}

.nova-featured-overlay {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: clamp(34px, 5vw, 68px);
    color: white;
}

.nova-featured h1 {
    font-size: clamp(38px, 4vw, 66px);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 28px 0 24px;
}

.nova-featured p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,.86);
}

.nova-meta {
    color: var(--nova-muted);
    font-size: 13px;
    font-weight: 600;
    margin-top: 20px;
}

.nova-featured .nova-meta {
    color: rgba(255,255,255,.88);
}

.nova-side-stories {
    display: grid;
    gap: 12px;
}

.nova-mini-story {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: #f8f8f8;
    border-radius: var(--nova-radius);
    overflow: hidden;
    min-height: 188px;
    border: 1px solid var(--nova-line);
}

.nova-mini-story > div {
    padding: 24px;
}

.nova-mini-story img,
.nova-card-img img,
.nova-topic-card img,
.nova-rank img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nova-mini-story h3 {
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: -.03em;
    margin: 10px 0;
}

.nova-mini-story p {
    color: var(--nova-muted);
    line-height: 1.45;
    margin: 0;
}

.nova-tag {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -.01em;
    color: var(--nova-coral);
}

.nova-tag.blue { color: var(--nova-blue); }
.nova-tag.green { color: var(--nova-green); }
.nova-tag.purple { color: var(--nova-purple); }
.nova-tag.coral { color: var(--nova-coral); }

.nova-trending {
    margin: 26px 0 42px;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: #fafafa;
    border: 1px solid var(--nova-line);
    border-radius: 16px;
    padding: 12px 24px;
}

.nova-trending a {
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 13px;
    color: #444;
    background: white;
}

.nova-trending .nova-more {
    margin-left: auto;
    border: 0;
    color: var(--nova-coral);
    background: transparent;
}

.nova-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 38px;
}

.nova-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nova-section-title h2,
.nova-most-read h2 {
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: -.03em;
    margin: 0 0 24px;
}

.nova-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.nova-card {
    background: #fff;
    border: 1px solid var(--nova-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,.035);
}

.nova-card-img {
    display: block;
    aspect-ratio: 1 / .9;
    overflow: hidden;
}

.nova-card-body {
    padding: 20px;
}

.nova-card h3 {
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -.035em;
    margin: 10px 0 12px;
}

.nova-card p {
    color: var(--nova-muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.nova-center {
    text-align: center;
    margin: 26px 0 34px;
}

.nova-most-read {
    padding-left: 0;
}

.nova-rank {
    display: grid;
    grid-template-columns: 42px 78px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--nova-line);
    align-items: start;
}

.nova-rank > span {
    color: var(--nova-coral);
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -.05em;
}

.nova-rank img {
    width: 78px;
    height: 78px;
    border-radius: 10px;
}

.nova-rank h4 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.nova-rank .nova-meta {
    margin-top: 10px;
}

.nova-popular-link {
    display: inline-block;
    margin-top: 22px;
    color: var(--nova-coral) !important;
    font-weight: 800;
}

.nova-topic-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 20px 0 48px;
}

.nova-topic-card {
    background: #fff;
    border: 1px solid var(--nova-line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.035);
}

.nova-topic-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 800;
}

.nova-topic-card img {
    aspect-ratio: 16 / 7;
    border-radius: 12px;
}

.nova-topic-card h3 {
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -.035em;
    margin: 18px 0 0;
}

.nova-newsletter {
    display: grid;
    grid-template-columns: 150px 1.1fr 1fr 1.2fr;
    gap: 26px;
    align-items: center;
    background: #f7f7f7;
    border: 1px solid var(--nova-line);
    border-radius: 18px;
    padding: 34px;
    margin: 20px 0 10px;
}

.nova-mail-icon {
    width: 108px;
    height: 78px;
    border-radius: 24px;
    background: #dfff50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    transform: rotate(-6deg);
}

.nova-newsletter h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.05;
    letter-spacing: -.055em;
}

.nova-newsletter p {
    color: var(--nova-muted);
    line-height: 1.45;
    margin: 0;
}

.nova-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 6px;
}

.nova-form input {
    min-height: 46px;
    border: 0;
    padding: 0 16px;
    outline: none;
    font-family: inherit;
}

.nova-form button {
    border: 0;
    border-radius: 11px;
    background: var(--nova-blue);
    color: white;
    font-weight: 900;
    padding: 0 20px;
    cursor: pointer;
}

.nova-footer {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding: 38px 18px 16px;
}

.nova-footer p,
.nova-footer a {
    display: block;
    color: var(--nova-muted);
    font-size: 14px;
    line-height: 1.7;
}

.nova-footer h4 {
    text-transform: uppercase;
    font-size: 13px;
    margin: 0 0 12px;
}

.nova-social {
    color: #111 !important;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .nova-news-page {
        padding: 0 22px 28px;
    }
    .nova-nav {
        display: none;
    }
    .nova-hero,
    .nova-content-grid,
    .nova-newsletter {
        grid-template-columns: 1fr;
    }
    .nova-news-grid,
    .nova-topic-row,
    .nova-footer {
        grid-template-columns: repeat(2, 1fr);
    }
    .nova-featured {
        min-height: 520px;
    }
}

@media (max-width: 680px) {
    .nova-news-page {
        padding: 0 14px 24px;
    }
    .nova-header {
        min-height: 72px;
    }
    .nova-actions .nova-icon-btn {
        display: none;
    }
    .nova-btn {
        min-height: 38px;
        padding: 0 14px;
    }
    .nova-hero {
        margin-top: 16px;
    }
    .nova-featured {
        min-height: 520px;
    }
    .nova-featured-overlay {
        padding: 28px;
    }
    .nova-mini-story,
    .nova-news-grid,
    .nova-topic-row,
    .nova-footer {
        grid-template-columns: 1fr;
    }
    .nova-mini-story img {
        min-height: 180px;
    }
    .nova-trending .nova-more {
        margin-left: 0;
    }
    .nova-newsletter {
        padding: 24px;
    }
    .nova-form {
        grid-template-columns: 1fr;
    }
    .nova-form button {
        min-height: 46px;
    }
}
