/* news scene: ranked headline feed on the left, auto-swiping carousel in a phone frame on the right */
.news { width: 100%; overflow: hidden; border-radius: 18px; padding: 14px; display: grid; gap: 12px; font-family: var(--sans); color: var(--ink); --rh: 58px; --gx: 250px; --gy: 60px; }
.news-rs, .news-rs * { transition: none !important; animation: none !important; }
.news svg { display: block; }
.news-main { display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 14px; align-items: stretch; }

/* feed */
.news-feed { min-width: 0; padding: 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line-2); transition: border-color .5s; }
.news-feed.is-busy { border-color: rgba(240,80,60,.35); } .news-feed.is-done { border-color: rgba(61,214,140,.3); }
.news-fh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.news-fh > div { min-width: 0; line-height: 1.2; } .news-fh b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; }
.news-fh small { display: block; margin-top: 3px; font: 500 10px var(--mono); color: var(--dim); white-space: nowrap; transition: color .4s; }
.news-feed.is-busy .news-fh small { color: var(--mute); } .news-feed.is-busy .news-fh small::after { content: '...'; } .news-feed.is-done .news-fh small { color: var(--ok); }
.news-list { position: relative; height: calc(var(--rh) * 5 - 6px); }
.news-row { position: absolute; left: 0; right: 0; top: calc(var(--p, 0) * var(--rh)); height: calc(var(--rh) - 6px); display: grid; grid-template-columns: 20px minmax(0, 1fr) 38px; align-items: center; gap: 8px; padding: 0 10px 0 8px; border-radius: 11px; background: var(--paper-2); border: 1px solid var(--line-2); opacity: 0; transform: translateY(-14px) scale(.97); transition: top .75s var(--ease), opacity .4s, transform .55s var(--ease), border-color .4s, background .4s, box-shadow .4s; }
.news-row.is-in { opacity: 1; transform: none; }
.news-row.is-top { z-index: 2; transform: scale(1.025); border-color: rgba(245,185,66,.6); background: #211E17; box-shadow: 0 14px 30px -14px #000, 0 0 0 4px rgba(245,185,66,.07); }
.news-rk { font: 500 12px var(--mono); color: var(--dim); text-align: center; transition: color .4s; }
.news-row.is-first .news-rk { color: var(--amber); }
.news-hl { min-width: 0; } .news-hl b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; font-weight: 500; line-height: 1.25; letter-spacing: -.005em; }
.news-hl small { display: block; position: relative; height: 11px; margin-top: 3px; font-size: 9.5px; line-height: 11px; color: var(--dim); white-space: nowrap; }
.news-hl small span, .news-hl small em { position: absolute; left: 0; top: 0; transition: opacity .35s; } .news-hl small em { font-style: normal; font-weight: 600; color: var(--amber); opacity: 0; }
.news-row.is-top .news-hl small span { opacity: 0; } .news-row.is-top .news-hl small em { opacity: 1; }
.news-sc { display: grid; gap: 4px; justify-items: end; opacity: 0; transition: opacity .4s; } .news-row.is-sc .news-sc { opacity: 1; }
.news-sc b { font: 500 12px var(--mono); line-height: 1; color: var(--ink); }
.news-sc i { display: block; width: 100%; height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.news-sc u { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--mute); transition: width .8s var(--ease) .1s, background .4s; } .news-row.is-sc .news-sc u { width: var(--s); }
.news-row.is-first .news-sc u { background: var(--amber); }
.news-ghost { position: absolute; z-index: 6; left: 36px; top: 10px; max-width: 170px; font-size: 11.5px; font-weight: 600; line-height: 1.25; color: #fff; text-shadow: 0 0 16px rgba(245,185,66,.8); opacity: 0; pointer-events: none; transform-origin: left top; }
.news-ghost.is-fly { animation: news-fly .9s var(--ease) both; }
@keyframes news-fly { 0% { opacity: 0; transform: none; } 20% { opacity: 1; } 75% { opacity: .8; } 100% { opacity: 0; transform: translate(var(--gx), var(--gy)) scale(.8); filter: blur(4px); } }

/* phone */
.news-side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.news-phone { width: 100%; padding: 5px; border-radius: 24px; background: linear-gradient(145deg, #3d3d41, #151517 40%, #0c0c0d 70%, #2f2f33); box-shadow: inset 0 0 0 1px #5d5d63, 0 30px 50px -24px #000; }
.news-screen { border-radius: 19px; overflow: hidden; background: #fff; color: #0F1419; font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Geist', sans-serif; }
.news-ph { display: flex; align-items: center; gap: 7px; padding: 8px 10px 7px; }
.news-ph i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #0B1020; box-shadow: 0 0 0 1.500px #fff, 0 0 0 3px #E1306C; }
.news-ph i img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.news-ph b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; font-weight: 600; margin-left: 2px; } .news-ph span { flex: none; margin-left: auto; width: 14px; height: 3px; border-radius: 2px; background: radial-gradient(circle, #0F1419 1.500px, transparent 1.600px) 0 0 / 5px 3px; }
.news-view { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #0B1020; }
.news-skel { position: absolute; inset: 0; background: #ECEAE5; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; transition: opacity .4s; }
.news-skel u { display: block; height: 12px; border-radius: 4px; background: linear-gradient(100deg, #DEDBD4 30%, #F3F1EC 50%, #DEDBD4 70%) 0 0 / 220% 100%; animation: news-shim 1.2s linear infinite; } .news-skel u:nth-child(2) { width: 80%; } .news-skel u:nth-child(3) { width: 55%; }
.news-skel small { margin-top: auto; font-size: 9.5px; color: #8B8880; }
@keyframes news-shim { from { background-position: 120% 0; } to { background-position: -100% 0; } }
.news-track { position: absolute; inset: 0; width: 400%; display: flex; opacity: 0; transform: scale(1.06); filter: blur(8px); transition: transform .75s var(--ease), opacity .5s, filter .7s; }
.news-phone.is-post .news-track { opacity: 1; filter: none; transform: none; } .news-phone.is-post .news-skel { opacity: 0; }
.news-phone.is-post.is-s1 .news-track { transform: translateX(-25%); } .news-phone.is-post.is-s2 .news-track { transform: translateX(-50%); } .news-phone.is-post.is-s3 .news-track { transform: translateX(-75%); }
.news-sl { flex: 0 0 25%; min-width: 0; height: 100%; background: #0B1020; }
.news-sl img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-pa { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px 10px 10px; }
.news-pa svg { width: 16px; height: 16px; fill: none; stroke: #0F1419; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .news-pa svg:last-child { margin-left: auto; }
.news-dots { position: absolute; left: 50%; top: 13px; display: flex; gap: 3px; transform: translateX(-50%); }
.news-dots i { width: 4.500px; height: 4.500px; border-radius: 50%; background: #C9CDD2; transition: background .3s, transform .3s; }
.news-phone:not(.is-s1):not(.is-s2):not(.is-s3) .news-dots i:nth-child(1), .news-phone.is-s1 .news-dots i:nth-child(2), .news-phone.is-s2 .news-dots i:nth-child(3), .news-phone.is-s3 .news-dots i:nth-child(4) { background: #0095F6; transform: scale(1.2); }

.news-pub { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px 0 7px; border-radius: 999px; background: var(--ok); color: #06140D; font-size: 11px; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(-6px) scale(.92); transition: opacity .4s, transform .5s var(--ease); }
.news-pub.on { opacity: 1; transform: none; } .news-pub br { display: none; }
.news-pub svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.news-out { justify-self: center; display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 16px 6px 10px; border-radius: 999px; background: var(--ok-bg); border: 1px solid rgba(61,214,140,.3); font-size: 13.5px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); }
.news-out.on { opacity: 1; transform: none; } .news-out b { font-weight: 600; color: var(--ok); }
.news-out svg { flex: none; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ok); fill: none; stroke: #06140D; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
  .news { padding: 10px; gap: 10px; --rh: 46px; --gx: 30px; --gy: 290px; }
  .news-main { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .news-feed { padding: 10px; border-radius: 14px; } .news-fh { margin-bottom: 9px; }
  .news-row { grid-template-columns: 16px minmax(0, 1fr) 34px; gap: 7px; padding: 0 8px 0 6px; }
  .news-hl b { -webkit-line-clamp: 1; font-size: 11px; } .news-ghost { left: 30px; top: 8px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .news-side { flex-direction: row; justify-content: center; align-items: center; gap: 12px; }
  .news-phone { width: 160px; flex: none; } .news-ph { gap: 6px; padding: 8px 8px 7px; } .news-ph b { font-size: 10.5px; margin-left: 1px; }
  .news-pa { gap: 6px; padding: 7px 8px 9px; } .news-pa svg { width: 14px; height: 14px; } .news-dots { top: 12px; left: 56%; }
  .news-pub br { display: inline; }
  .news-pub { height: auto; max-width: 138px; font-size: 10.5px; padding: 8px 10px 8px 7px; gap: 4px; border-radius: 14px; white-space: normal; line-height: 1.25; align-items: flex-start; transform: translateX(-6px) scale(.92); }
  .news-out { font-size: 12px; padding-right: 13px; }
}
