/* NewsEarly Reader 2.4.0 — "Clean modern" pieces. Scoped to .nes-r so the theme is untouched. */
.nes-r {
	--r-red: var(--ne-brand, #D92B26);
	--r-ink: var(--ne-ink-base, #121418);
	--r-slate: #5B616B;
	--r-line: #E3E5E9;
	--r-mist: #F4F4F2;
	--r-card: #FFFFFF;
	--r-head: var(--ne-font-brand, system-ui,) "Hind Guntur", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
	--r-body: "Hind", "Hind Guntur", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--r-body);
	color: var(--r-ink);
	box-sizing: border-box;
}
.nes-r *, .nes-r *::before, .nes-r *::after { box-sizing: border-box; }
.nes-r svg { flex: none; }
.nes-r button { font: inherit; cursor: pointer; }
.nes-r :focus-visible { outline: 3px solid var(--r-red); outline-offset: 2px; }

/* ---------- article top ---------- */
.nes-r-article { display: flex; flex-direction: column; gap: 12px; margin: 0 0 22px; }
.nes-r-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--r-slate); }
.nes-r-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; font-weight: 600; font-size: 13px; line-height: 1.2; }
.nes-r-chip svg { width: 16px; height: 16px; }
.nes-r-chip--ok { background: #E7F4EC; color: #17663A; }
.nes-r-player { display: flex; align-items: center; gap: 12px; background: var(--r-ink); color: #fff; border-radius: 16px; padding: 10px 12px; }
.nes-r-player[hidden] { display: none; }
.nes-r-play { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--r-red); color: #fff; display: grid; place-items: center; padding: 0; }
.nes-r-play .nes-r-i-pause, .is-playing .nes-r-i-play { display: none; }
.is-playing .nes-r-i-pause { display: block; }
.nes-r-pinfo { flex: 1; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.nes-r-plabel { font-size: 14px; font-weight: 600; line-height: 1.2; }
.nes-r-bar { display: block; height: 4px; border-radius: 2px; background: #3A3F48; overflow: hidden; }
.nes-r-bar span { display: block; height: 100%; width: 0; background: #fff; transition: width .3s; }
.nes-r-speed { min-width: 48px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid #5B616B; background: transparent; color: #fff; font-size: 13px; font-weight: 600; }
.nes-r-msg { margin: 0; font-size: 14px; color: #8A1C18; background: #FCECEB; padding: 10px 12px; border-radius: 10px; }
.nes-r-msg[hidden] { display: none; }
.nes-r-sum { border: 1px solid var(--r-line); background: #FAFAFB; border-radius: 14px; padding: 14px 16px; }
.nes-r-kicker { display: block; font-family: var(--r-head); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--r-red); margin-bottom: 6px; }
.nes-r-sum p { margin: 0 !important; font-size: 16px; line-height: 1.6; color: var(--r-ink); }

/* mini player */
.nes-r-mini { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 99998; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--r-line); border-radius: 16px; box-shadow: 0 12px 32px -8px rgba(16, 24, 40, .28); padding: 8px 8px 8px 14px; }
.nes-r-mini[hidden] { display: none; }
.nes-r-mini-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nes-r-mini-t b { font-family: var(--r-head); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nes-r-mini-t small { font-size: 12px; color: var(--r-slate); }
.nes-r-mini-play, .nes-r-mini-x { width: 44px; height: 44px; border-radius: 22px; border: 0; display: grid; place-items: center; padding: 0; }
.nes-r-mini-play { background: var(--r-ink); color: #fff; }
.nes-r-mini-play .nes-r-i-pause, .nes-r-mini.is-playing .nes-r-i-play { display: none; }
.nes-r-mini.is-playing .nes-r-i-pause { display: block; }
.nes-r-mini-x { background: transparent; color: var(--r-slate); }

/* ---------- section heads ---------- */
.nes-r-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.nes-r-h2 { flex: 1; margin: 0 !important; font-family: var(--r-head) !important; font-size: 20px !important; line-height: 1.2 !important; font-weight: 700 !important; color: var(--r-ink) !important; }
.nes-r-more { font-size: 14px; font-weight: 600; color: var(--r-red) !important; text-decoration: none !important; }

/* ---------- hero ---------- */
.nes-r-hero { margin: 0 0 24px; }
.nes-r-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nes-r-track::-webkit-scrollbar { display: none; }
.nes-r-slide { flex: 0 0 92%; scroll-snap-align: center; }
.nes-r-slide-a { position: relative; display: block; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden; background: #2A303B; color: #fff !important; text-decoration: none !important; }
.nes-r-slide-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; max-width: none !important; }
.nes-r-noimg { background: linear-gradient(135deg, #3B4252, #121418); }
.nes-r-slide-a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); }
.nes-r-slide-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.nes-r-pill { background: var(--r-red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; line-height: 1.3; }
.nes-r-slide-h { font-family: var(--r-head); font-weight: 700; font-size: 21px; line-height: 1.25; text-shadow: 0 1px 2px rgba(0,0,0,.3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nes-r-slide-m { font-size: 13px; color: #E5E7EB; }
.nes-r-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.nes-r-dots span { width: 6px; height: 6px; border-radius: 3px; background: #CDD1D6; transition: width .2s, background .2s; }
.nes-r-dots span.is-on { width: 22px; background: var(--r-red); }
@media (min-width: 768px) {
	.nes-r-slide { flex-basis: 70%; }
	.nes-r-slide-h { font-size: 28px; }
	.nes-r-slide-txt { padding: 26px; }
}

/* ---------- lists ---------- */
.nes-r-latest, .nes-r-trend { margin: 0 0 24px; }
.nes-r-list { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.nes-r-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0 !important; margin: 0 !important; border-bottom: 1px solid var(--r-line); list-style: none !important; }
.nes-r-row:last-child { border-bottom: 0; }
.nes-r-thumb { flex: 0 0 104px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--r-mist); display: block; }
.nes-r-thumb img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }
.nes-r-rtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nes-r-cat { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--r-red); }
.nes-r-rh { font-family: var(--r-head); font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--r-ink) !important; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nes-r-rh:hover { color: var(--r-red) !important; }
.nes-r-rm { font-size: 12px; color: var(--r-slate); }
.nes-r-save { flex: none; width: 44px; height: 44px; margin: -6px -8px 0 0; border: 0; border-radius: 22px; background: transparent; color: var(--r-slate); display: grid; place-items: center; padding: 0; }
.nes-r-save[aria-pressed="true"] { color: var(--r-red); }
.nes-r-save[aria-pressed="true"] svg path { fill: currentColor; }
.nes-r-list--num { counter-reset: none; }
.nes-r-n { flex: 0 0 34px; font-family: var(--r-head); font-size: 26px; font-weight: 800; line-height: 1; color: var(--r-red); opacity: .9; }

/* ---------- floating bottom bar (phones only) ---------- */
.nes-r-nav { display: none; }
@media (max-width: 767px) {
	.nes-r-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 99997; display: flex; gap: 2px; padding: 6px; background: var(--r-ink); border-radius: 999px; box-shadow: 0 10px 28px -6px rgba(0,0,0,.35); }
	.nes-r-nav-a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; min-height: 48px; padding: 4px 10px; border-radius: 999px; color: #C9CDD3 !important; text-decoration: none !important; font-size: 11px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
	.nes-r-nav-a svg { width: 19px; height: 19px; }
	.nes-r-nav-a.is-on { background: var(--r-red); color: #fff !important; }
	body:has(.nes-r-nav) { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
	body:has(.nes-r-nav) .nes-r-mini { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
	.nes-r * { transition: none !important; scroll-behavior: auto !important; }
}
