/* 📰 News (sawavibe.com/news): same dark site look as movies / series */
.nw-page { max-width: 1240px; margin: 0 auto; padding: 18px 16px 40px; }
.nw-empty { padding: 40px 20px; text-align: center; color: #cbd5e0; background: rgba(255,255,255,.04); border-radius: 16px; font-size: 17px; }
.nw-empty a { color: #fb923c; }

/* ---------- Slider: the latest news ---------- */
.nw-slider { position: relative; border-radius: 22px; overflow: hidden; background: #0f172a; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.nw-slides { display: grid; }
.nw-slide { grid-area: 1 / 1; position: relative; display: block; aspect-ratio: 21 / 9; min-height: 300px; max-height: 470px; width: 100%;
    opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; background: #0f172a center / cover no-repeat; }
.nw-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.nw-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,10,22,.96) 0%, rgba(5,10,22,.55) 45%, rgba(5,10,22,.05) 75%); }
.nw-slide.noimg { background: radial-gradient(ellipse at 30% 30%, #1e3a5f, #0a1628 70%); }
.nw-slide-info { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 26px 30px 40px; display: flex; flex-direction: column; gap: 8px; max-width: 900px; }
.nw-slide-label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; font-weight: 700; color: #fde68a; }
.nw-slide h2 { font-size: 30px; line-height: 1.45; font-weight: 800; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.nw-slide p { color: #e2e8f0; font-size: 15px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-slide .nw-read { align-self: flex-start; margin-top: 4px; padding: 8px 20px; border-radius: 999px; font-weight: 800; font-size: 14px;
    background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 6px 16px rgba(234,88,12,.35); }
.nw-slide .nw-play-big { position: absolute; z-index: 2; top: 18px; left: 18px; padding: 6px 14px; border-radius: 999px; background: rgba(220,38,38,.9); font-weight: 800; font-size: 13px; }
.nw-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(0,0,0,.45); color: #fff; font-size: 30px; line-height: 40px; transition: background .2s; }
.nw-arrow:hover { background: rgba(234,88,12,.85); }
.nw-arrow.prev { right: 14px; } .nw-arrow.next { left: 14px; }
.nw-dots { position: absolute; z-index: 3; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.nw-dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.4); transition: width .3s, background .3s; }
.nw-dots button.active { width: 26px; background: #f97316; }
.nw-progress { position: absolute; z-index: 3; bottom: 0; right: 0; left: 0; height: 3px; background: rgba(255,255,255,.08); }
.nw-progress span { display: block; height: 100%; width: 0; background: #f97316; }

/* ---------- Category chips ---------- */
.nw-cats { display: flex; gap: 8px; overflow-x: auto; padding: 16px 2px 4px; scrollbar-width: none; }
.nw-cats::-webkit-scrollbar { display: none; }
.nw-cats a { flex-shrink: 0; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14); transition: background .2s, border-color .2s; white-space: nowrap; }
.nw-cats a small { font-size: 11px; color: #94a3b8; margin-inline-start: 2px; }
.nw-cats a:hover { border-color: var(--c, #f97316); }
.nw-cats a.on { background: var(--c, #ea580c); border-color: var(--c, #ea580c); }
.nw-cats a.on small { color: rgba(255,255,255,.85); }

/* ---------- Sections + cards ---------- */
.nw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; margin-top: 18px; align-items: start; }
.nw-section { margin-top: 26px; }
.nw-layout .nw-section:first-child { margin-top: 0; }
.nw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nw-head h2 { font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.nw-head h2::before { content: ""; width: 5px; height: 22px; border-radius: 4px; background: var(--c, #f97316); }
.nw-head a.all { color: #fb923c; font-weight: 700; font-size: 14px; white-space: nowrap; }
.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.nw-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
.nw-row .nw-card { scroll-snap-align: start; }
.nw-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    transition: transform .2s, border-color .2s, box-shadow .2s; }
.nw-card:hover { transform: translateY(-3px); border-color: rgba(249,115,22,.6); box-shadow: 0 12px 26px rgba(0,0,0,.35); }
.nw-card-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: #13233a center / cover no-repeat; font-size: 40px; }
.nw-play { position: absolute; bottom: 8px; left: 8px; width: 34px; height: 34px; border-radius: 50%; background: rgba(220,38,38,.92); color: #fff;
    font-style: normal; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.nw-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.nw-card-body b { font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-card-body small { color: #94a3b8; font-size: 12px; margin-top: auto; }
.nw-cat { align-self: flex-start; font-style: normal; font-size: 11.5px; font-weight: 800; padding: 1px 10px; border-radius: 999px; background: var(--c, #ea580c); color: #fff; }

/* Big first story + list */
.nw-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.nw-card.big .nw-card-img { aspect-ratio: 16 / 10; }
.nw-card.big .nw-card-body b { font-size: 20px; -webkit-line-clamp: 4; }
.nw-list { display: flex; flex-direction: column; gap: 10px; }
.nw-card.line { flex-direction: row; align-items: stretch; }
.nw-card.line .nw-card-img { width: 132px; flex-shrink: 0; aspect-ratio: auto; min-height: 88px; font-size: 26px; }
.nw-card.line .nw-card-body { padding: 8px 12px; gap: 4px; }
.nw-card.line .nw-card-body b { font-size: 14px; -webkit-line-clamp: 2; }
.nw-card.line .nw-play { width: 26px; height: 26px; font-size: 10px; bottom: 5px; left: 5px; }

/* Side: most read */
.nw-side { position: sticky; top: 14px; display: flex; flex-direction: column; gap: 16px; }
.nw-box { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 16px; }
.nw-box h3 { font-size: 17px; margin-bottom: 10px; }
.nw-most { list-style: none; counter-reset: most; display: flex; flex-direction: column; }
.nw-most li { counter-increment: most; border-bottom: 1px solid rgba(255,255,255,.07); }
.nw-most li:last-child { border-bottom: 0; }
.nw-most a { display: flex; gap: 10px; padding: 9px 0; font-size: 14px; line-height: 1.6; font-weight: 600; }
.nw-most a::before { content: counter(most); flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    background: rgba(249,115,22,.15); color: #fb923c; font-weight: 800; font-size: 13px; margin-top: 2px; }
.nw-most a:hover { color: #fdba74; }
.nw-side-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.nw-side-cats a { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.06); border-inline-start: 3px solid var(--c, #f97316); }

/* Category page */
.nw-cat-hero { display: flex; align-items: center; gap: 14px; margin: 6px 0 4px; }
.nw-cat-hero h1 { font-size: 30px; font-weight: 800; }
.nw-cat-hero span { width: 8px; height: 34px; border-radius: 6px; background: var(--c, #f97316); }
.nw-cat-hero small { color: #94a3b8; font-size: 14px; }
.nw-pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.nw-pager a, .nw-pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
    background: rgba(255,255,255,.06); font-weight: 700; }
.nw-pager span.on { background: #ea580c; }

/* ---------- Article ---------- */
.nw-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
.nw-crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: #94a3b8; margin-bottom: 10px; }
.nw-crumbs a { color: #fb923c; font-weight: 700; }
.nw-article h1 { font-size: 32px; line-height: 1.5; font-weight: 800; margin: 8px 0 10px; }
.nw-meta { display: flex; gap: 14px; flex-wrap: wrap; color: #94a3b8; font-size: 13px; margin-bottom: 16px; }
.nw-media { position: relative; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 16px 36px rgba(0,0,0,.4); margin-bottom: 8px; }
.nw-media img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.nw-media iframe, .nw-media video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.nw-media-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.nw-media-tabs button { border: 0; cursor: pointer; padding: 6px 14px; border-radius: 999px; font-family: inherit; font-weight: 700; font-size: 13px; color: #fff; background: rgba(255,255,255,.08); }
.nw-media-tabs button.on { background: #ea580c; }
.nw-lead { font-size: 18px; line-height: 1.95; font-weight: 700; color: #f1f5f9; margin: 18px 0 6px; padding-inline-start: 14px; border-inline-start: 4px solid #f97316; }
.nw-body { font-size: 17px; line-height: 2.05; color: #e2e8f0; margin-top: 14px; overflow-wrap: anywhere; }
.nw-body > * + * { margin-top: 14px; }
.nw-body h2 { font-size: 24px; line-height: 1.6; color: #fff; margin-top: 26px; }
.nw-body h3 { font-size: 20px; line-height: 1.6; color: #fff; margin-top: 22px; }
.nw-body a { color: #fb923c; text-decoration: underline; }
.nw-body img, .nw-body video { max-width: 100%; height: auto; border-radius: 14px; display: block; margin-inline: auto; }
.nw-body figure { margin: 18px 0; } .nw-body figcaption { text-align: center; color: #94a3b8; font-size: 13px; margin-top: 6px; }
.nw-body iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 14px; }
.nw-body blockquote { padding: 12px 18px; border-radius: 12px; background: rgba(255,255,255,.05); border-inline-start: 4px solid #f97316; font-style: italic; color: #f8fafc; }
.nw-body ul, .nw-body ol { padding-inline-start: 26px; }
.nw-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nw-body td, .nw-body th { border: 1px solid rgba(255,255,255,.15); padding: 8px; }
.nw-share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 26px 0 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.nw-share b { font-size: 14px; margin-inline-end: 4px; }
.nw-share a, .nw-share button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer;
    font-family: inherit; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,.08); }
.nw-share .wa { background: #16a34a; } .nw-share .fb { background: #1d4ed8; } .nw-share .tg { background: #0284c7; } .nw-share .x { background: #111827; border: 1px solid #334155; }

@media (max-width: 1000px) {
    .nw-layout, .nw-article-wrap { grid-template-columns: 1fr; }
    .nw-side { position: static; }
}
@media (max-width: 700px) {
    .nw-page { padding: 12px 10px 30px; }
    .nw-slider { border-radius: 16px; }
    .nw-slide { aspect-ratio: 4 / 3; min-height: 0; max-height: none; }
    .nw-slide-info { padding: 16px 16px 34px; gap: 6px; }
    .nw-slide h2 { font-size: 19px; }
    .nw-slide p { font-size: 13px; -webkit-line-clamp: 2; }
    .nw-slide .nw-read { padding: 6px 16px; font-size: 13px; }
    .nw-arrow { display: none; }
    .nw-top { grid-template-columns: 1fr; }
    .nw-head h2 { font-size: 18px; }
    .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .nw-grid .nw-card-body { padding: 9px 10px 11px; } .nw-grid .nw-card-body b { font-size: 13.5px; }
    .nw-row { grid-auto-columns: 72%; gap: 10px; }
    .nw-card.line .nw-card-img { width: 112px; }
    .nw-article h1 { font-size: 23px; }
    .nw-body { font-size: 16px; line-height: 1.95; }
    .nw-media { border-radius: 14px; margin-inline: -2px; }
    .nw-cat-hero h1 { font-size: 24px; }
}

/* ---------- ❤️ 💬 🔁 actions, comments, share to profile ---------- */
.nw-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.nw-act { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-weight: 800; font-size: 14.5px; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; white-space: nowrap; }
.nw-act:hover { background: rgba(255,255,255,.11); }
.nw-act small { font-size: 12.5px; color: #cbd5e1; font-weight: 700; }
.nw-act.like.on { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.55); }
.nw-act.like.pop .h { animation: nwPop .45s ease; }
.nw-act.share { background: linear-gradient(135deg, #f97316, #ea580c); border-color: transparent; }
.nw-act.share small { color: rgba(255,255,255,.85); }
@keyframes nwPop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.nw-comments { margin-top: 26px; }
.nw-comments h2 { font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.nw-comments h2 small { font-size: 14px; color: #94a3b8; }
.nc-form { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.nc-av { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; color: #ea580c; font-weight: 800; font-size: 18px; border: 2px solid rgba(255,255,255,.85); }
.nc-av img { width: 100%; height: 100%; object-fit: cover; }
.nc-input { flex: 1; min-width: 0; }
.nc-input textarea { width: 100%; resize: vertical; min-height: 64px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06);
    color: #fff; font-family: inherit; font-size: 15px; line-height: 1.7; }
.nc-input textarea:focus { outline: none; border-color: #f97316; }
.nc-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.nc-row button { border: 0; border-radius: 999px; padding: 8px 22px; background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; font-family: inherit; font-weight: 800; cursor: pointer; }
.nc-row button:disabled { opacity: .6; }
.nc-msg { color: #fca5a5; font-size: 13px; }
.nc-login { padding: 14px 16px; border-radius: 14px; background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.35); margin-bottom: 16px; font-size: 15px; }
.nc-login a { color: #fb923c; font-weight: 800; text-decoration: underline; }
.nc-list { display: flex; flex-direction: column; gap: 12px; }
.nc-item { display: flex; gap: 10px; align-items: flex-start; animation: ncIn .3s ease; }
@keyframes ncIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.nc-bubble { flex: 1; min-width: 0; padding: 9px 14px 11px; border-radius: 4px 16px 16px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.nc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.nc-top b { font-size: 14.5px; } .nc-top small { color: #94a3b8; font-size: 12px; }
.nc-del { margin-inline-start: auto; border: 0; background: none; cursor: pointer; font-size: 13px; opacity: .55; }
.nc-del:hover { opacity: 1; }
.nc-bubble p { font-size: 15px; line-height: 1.8; color: #e2e8f0; overflow-wrap: anywhere; }
.nc-empty { padding: 20px; text-align: center; color: #94a3b8; background: rgba(255,255,255,.03); border-radius: 14px; }
.nw-modal { position: fixed; inset: 0; z-index: 300; background: rgba(2,6,23,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.nw-modal[hidden] { display: none; }
.nw-modal-card { position: relative; width: 100%; max-width: 480px; background: #111c2e; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.nw-modal-card h3 { font-size: 19px; margin-bottom: 4px; padding-inline-end: 34px; }
.nw-modal-sub { color: #94a3b8; font-size: 13.5px; margin-bottom: 12px; }
.nw-x { position: absolute; top: 14px; left: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.nw-modal-card textarea { width: 100%; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: 15px; resize: vertical; }
.nw-share-prev { display: flex; gap: 10px; align-items: center; margin: 12px 0; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.05); }
.nw-share-prev span { flex-shrink: 0; width: 86px; aspect-ratio: 16 / 10; border-radius: 8px; background: #13233a center / cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.nw-share-prev b { font-size: 14px; line-height: 1.6; }
.nw-modal-acts { display: flex; gap: 8px; margin-top: 4px; }
.nw-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 12px; border: 0; cursor: pointer;
    font-family: inherit; font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, #f97316, #ea580c); }
.nw-btn.ghost { background: rgba(255,255,255,.1); }
.nw-btn:disabled { opacity: .6; }
@media (max-width: 480px) {
    .nw-act { font-size: 13px; padding: 9px 6px; gap: 4px; }
    .nw-modal { align-items: flex-end; padding: 0; }
    .nw-modal-card { border-radius: 20px 20px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
