/* Creator News Wire widget (assets/news-wire-widget.js). All classes prefixed nw-. */
.nw { margin: 8px 0 56px; border: 1px solid var(--line, #ebebeb); border-radius: var(--radius, 12px); background: #fff; overflow: hidden; }
.nw[hidden] { display: none; }
.nw-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line, #ebebeb); }
.nw-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.nw-title::before { content: ''; width: 3px; height: 16px; border-radius: 2px; background: var(--red, #b0000e); }
.nw-sym { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--red, #b0000e); background: var(--red-soft, #fbf1f1); padding: 3px 7px; border-radius: 5px; }
.nw-spacer { flex: 1; }
.nw-asof { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #737373); }
.nw-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--line, #ebebeb); }
.nw-filters button { border: 1px solid var(--line, #ebebeb); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 12px; font-weight: 500; color: #525252; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.nw-filters button:hover { border-color: var(--red, #b0000e); color: var(--red, #b0000e); }
.nw-filters button[aria-pressed="true"] { border-color: var(--red, #b0000e); color: var(--red, #b0000e); background: var(--red-soft, #fbf1f1); }
.nw-filters button:focus-visible { outline: 2px solid var(--red, #b0000e); outline-offset: 2px; }
.nw-rank { padding: 14px 18px 4px; border-bottom: 1px solid var(--line, #ebebeb); }
.nw-rank[hidden] { display: none; }
.nw-rank-title, .nw-sub { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #737373); }
.nw-sub { margin: 0; padding: 14px 18px 10px; border-bottom: 1px solid var(--line, #ebebeb); }
.nw-rank-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 28px; }
@media (min-width: 900px) { .nw-rank-list { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; } }
.nw-rank-list a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0 11px; border-bottom: 1px solid var(--line, #ebebeb); color: inherit; text-decoration: none; }
.nw-rank-list a:hover .nw-rname { color: var(--red-dark, #7f000a); }
.nw-rank-list a:focus-visible { outline: 2px solid var(--red, #b0000e); outline-offset: 2px; }
.nw-rk { flex: none; width: 22px; font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 600; color: var(--red, #b0000e); }
.nw-rbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nw-rname { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.nw-rflags { display: flex; align-items: center; gap: 4px; }
.nw-rflags img { width: 16px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; }
.nw-rmore { font-size: 10.5px; color: var(--muted, #737373); margin-left: 2px; }
.nw-rcount { flex: none; font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; font-size: 11px; color: var(--muted, #737373); text-align: right; }
.nw-rcount b { font-size: 13px; color: var(--ink, #0a0a0a); }
.nw-rcount span { display: block; font-family: inherit; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.nw-rbar { position: absolute; left: 34px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--red, #b0000e); max-width: calc(100% - 34px); }
.nw-rank-note { margin: 10px 0 10px; font-size: 11px; line-height: 1.5; color: #8a8a8a; }
/* Creator economy: an endless vertical feed of full-size story cards, one per screen (Shorts-style snap). */
.nw-card { position: relative; min-width: 0; border-radius: 12px; overflow: hidden; isolation: isolate; background: #1a0306; color: #fff; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 28px -14px rgba(0,0,0,.4); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.nw-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 24px 44px -18px rgba(127,0,10,.5); }
.nw-media, .nw-shade { position: absolute; inset: 0; }
.nw-media { overflow: hidden; z-index: -1; }
.nw-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: nw-kb0 18s ease-in-out infinite alternate paused; will-change: transform; transition: filter .4s; }
.nw-kb1 { animation-name: nw-kb1; } .nw-kb2 { animation-name: nw-kb2; } .nw-kb3 { animation-name: nw-kb3; }
.nw-card:hover .nw-img { filter: saturate(1.12) brightness(1.05); }
@keyframes nw-kb0 { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.2) translate(-3%, -2%); } }
@keyframes nw-kb1 { from { transform: scale(1.18) translate(3%, 2%); } to { transform: scale(1.04) translate(-1%, 0); } }
@keyframes nw-kb2 { from { transform: scale(1.06) translate(2%, -3%); } to { transform: scale(1.22) translate(-2%, 3%); } }
@keyframes nw-kb3 { from { transform: scale(1.2) translate(-3%, 1%); } to { transform: scale(1.05) translate(2%, -1%); } }
.nw-art { position: absolute; inset: -25%; display: none; align-items: center; justify-content: center; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.24), transparent 34%), radial-gradient(circle at 70% 72%, rgba(255,70,85,.4), transparent 40%), linear-gradient(155deg, #d1001c 0%, #8c000c 48%, #2a0005 100%); animation: nw-drift 14s ease-in-out infinite alternate paused; }
.nw-noimg .nw-art { display: flex; }
.nw-art span { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-size: clamp(120px, 16vw, 240px); line-height: 1; color: rgba(255,255,255,.16); transform: translateY(-12%); }
@keyframes nw-drift { from { transform: translate(-5%, -4%) rotate(-2deg); } to { transform: translate(5%, 4%) rotate(3deg); } }
.nw-card.nw-on:not(.nw-paused) .nw-img, .nw-card.nw-on:not(.nw-paused) .nw-art { animation-play-state: running; }
.nw-shade { background: linear-gradient(to bottom, rgba(0,0,0,.42) 0%, transparent 24%), linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 50%, transparent 100%); pointer-events: none; }
.nw-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; pointer-events: none; }
.nw-badge { padding: 4px 9px; border-radius: 999px; background: var(--red, #b0000e); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 2px 10px rgba(176,0,14,.5); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.nw-age { padding: 4px 8px; border-radius: 999px; background: rgba(0,0,0,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; letter-spacing: .03em; white-space: nowrap; }
.nw-low { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 10px; padding: 14px; }
.nw-bottom { flex: 1; min-width: 0; }
.nw-pub { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 11.5px; font-weight: 600; opacity: .92; }
.nw-mono { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--red, #b0000e); font-size: 10.5px; font-weight: 800; }
.nw-pub .nw-src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-card .nw-hl { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 800; line-height: 1.2; letter-spacing: .01em; text-transform: uppercase; overflow-wrap: anywhere; text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.nw-card .nw-hl { font-size: clamp(19px, 2.3vw, 27px); line-height: 1.12; letter-spacing: -.005em; -webkit-line-clamp: 6; }
.nw-card .nw-hl:hover { text-decoration: underline; text-decoration-color: var(--red, #b0000e); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.nw-read { display: inline-flex; margin-top: 10px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s; }
.nw-read:hover { background: var(--red, #b0000e); border-color: var(--red, #b0000e); }
.nw-rail { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nw-actw { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.nw-act { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.nw-act:hover { background: var(--red, #b0000e); border-color: var(--red, #b0000e); transform: scale(1.08); }
.nw-act svg { width: 16px; height: 16px; }
.nw-act-l { max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.nw-card a:focus-visible, .nw-card button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nw-feed-wrap { --nw-h: min(860px, calc(100svh - 34px - 40px)); position: relative; padding: 16px 18px 18px; }
.nw-feed-wrap[hidden] { display: none; }
.nw-feed { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; height: var(--nw-h); min-height: 420px; overflow-y: auto; overscroll-behavior-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none; }
.nw-feed::-webkit-scrollbar { display: none; }
.nw-short, .nw-feed-end { flex: none; height: 100%; aspect-ratio: 9 / 16; max-width: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.nw-short:hover { transform: none; }
.nw-feed-end { display: grid; place-items: center; box-sizing: border-box; margin: 0; padding: 24px; border: 1px dashed var(--line, #ebebeb); border-radius: 12px; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #737373); }
.nw-sentinel { flex: none; width: 1px; height: 1px; }
.nw-badge-alt { background: rgba(255,255,255,.92); color: var(--red, #b0000e); box-shadow: none; }
.nw-still { animation: none !important; }
.nw-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 72px; height: 72px; padding: 0 0 0 4px; border: 0; border-radius: 50%; background: var(--red, #b0000e); color: #fff; cursor: pointer; transform: translate(-50%, -50%); box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); transition: transform .2s, background .2s; }
.nw-play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--red-dark, #7f000a); }
.nw-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.nw-play svg { width: 30px; height: 30px; }
.nw-yt { cursor: pointer; }
.nw-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; opacity: 0; transition: opacity .3s; }
.nw-player.nw-ready { opacity: 1; }
.nw-preview .nw-player { pointer-events: none; }
.nw-live .nw-shade, .nw-live .nw-top, .nw-live .nw-low, .nw-live .nw-play { display: none; }
.nw-flag { width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.5); flex: none; }
.nw-nav { position: absolute; top: 50%; left: calc(50% + var(--nw-h) * 9 / 32 + 24px); display: flex; flex-direction: column; gap: 10px; transform: translateY(-50%); }
.nw-nav button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line, #ebebeb); border-radius: 50%; background: #fff; color: var(--ink, #0a0a0a); cursor: pointer; box-shadow: 0 6px 18px -10px rgba(0,0,0,.35); transition: background .2s, border-color .2s, color .2s; }
.nw-nav button:hover { background: var(--red, #b0000e); border-color: var(--red, #b0000e); color: #fff; }
.nw-nav button:disabled { opacity: .35; pointer-events: none; }
.nw-nav button:focus-visible { outline: 2px solid var(--red, #b0000e); outline-offset: 2px; }
.nw-nav svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .nw-nav { display: none; } }
@media (max-width: 560px) {
  .nw-feed-wrap { --nw-h: calc(100svh - 34px - 24px); padding: 12px 14px 14px; }
  .nw-feed { gap: 12px; }
  .nw-short { width: 100%; }
  .nw-card .nw-hl { font-size: clamp(18px, 5.6vw, 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .nw-img, .nw-art { animation: none !important; }
  .nw-card, .nw-act { transition: none; }
  .nw-card:hover { transform: none; }
}
.nw-list { list-style: none; margin: 0; padding: 0; }
.nw-item a { display: flex; gap: 16px; align-items: baseline; padding: 12px 18px; border-bottom: 1px solid var(--line, #ebebeb); color: inherit; text-decoration: none; transition: background .15s; }
.nw-item a:hover { background: var(--red-soft, #fbf1f1); }
.nw-item a:hover .nw-hl { color: var(--red-dark, #7f000a); }
.nw-item a:focus-visible { outline: 2px solid var(--red, #b0000e); outline-offset: -2px; }
.nw-time { flex: none; width: 72px; font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; font-size: 11px; color: var(--red, #b0000e); white-space: nowrap; }
.nw-text { flex: 1; min-width: 0; }
.nw-hl { display: block; font-size: 13.5px; font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.nw-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 11.5px; color: var(--muted, #737373); }
.nw-src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-cat { flex: none; font-size: 9.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted, #737373); border: 1px solid var(--line, #ebebeb); border-radius: 4px; padding: 1px 5px; }
.nw-empty { padding: 28px 18px; text-align: center; font-size: 13px; color: var(--muted, #737373); border-bottom: 1px solid var(--line, #ebebeb); }
.nw-sentinel { height: 1px; }
.nw-in { animation: nw-in .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes nw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .nw-in { animation: none; } }
.nw-foot { border-top: 1px solid var(--line, #ebebeb); margin-top: -1px;  padding: 10px 18px; font-size: 11px; color: #8a8a8a; }
@media (max-width: 560px) {
  .nw-head, .nw-filters, .nw-sub { padding: 12px 14px; }
  .nw-rank { padding: 12px 14px 2px; }
  .nw-item a { flex-direction: column; gap: 4px; padding: 12px 14px; }
  .nw-time { width: auto; }
  .nw-asof { width: 100%; order: 3; }
}
/* Wide layout from trending-widget.css: full width under the Music and Trending Index cards. */
@media (min-width: 1240px) {
  .wrap:has(> .ytt:not([hidden])) > .nw { grid-column: 1 / -1; grid-row: 5; margin: 0 0 56px; }
}

.nw-pick { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line, #ebebeb); }
.nw-pick[hidden] { display: none; }
.nw-pick-l { font-size: 12.5px; font-weight: 600; color: var(--ink, #0d0d0d); }
.nw-pick-flag { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.nw-select { appearance: none; -webkit-appearance: none; font: inherit; font-size: 12.5px; color: var(--ink, #0d0d0d); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23737373' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid var(--line, #ebebeb); border-radius: 8px; padding: 6px 28px 6px 10px; cursor: pointer; max-width: 100%; }
.nw-select:focus-visible { outline: none; border-color: var(--red, #b0000e); box-shadow: 0 0 0 3px var(--red-ring, rgba(176,0,14,.12)); }
@media (max-width: 560px) { .nw-pick { padding: 10px 14px; } }

.nw-card { border-radius: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 22px 48px -24px rgba(60,0,6,.5); }
.nw-card::after { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.08); pointer-events: none; }
.nw-badge { background: linear-gradient(135deg, #c21824 0%, var(--red-dark, #7f000a) 100%); font-weight: 700; letter-spacing: .12em; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 14px -6px rgba(127,0,10,.6); }
.nw-badge-alt { background: rgba(255,255,255,.92); box-shadow: none; }
.nw-play { background: linear-gradient(135deg, #c21824 0%, var(--red-dark, #7f000a) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 32px -12px rgba(60,0,6,.75); }
.nw-shorts[hidden] { display: none; }
.nw-shorts .nw-empty { margin: 0; }
/* Top of the page: Creator economy as a market-style news panel (lead story + scrolling headlines). */
.nw-front .nw-feed-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; padding: 16px 18px 18px; }
.nw-front .nw-nav { display: none; }
.nw-front .nw-lead, .nw-front .nw-feed { height: 520px; min-height: 0; }
.nw-front .nw-lead .nw-short { width: 100%; height: 100%; aspect-ratio: auto; }
.nw-front .nw-feed { display: block; scroll-snap-type: none; scrollbar-width: thin; padding-right: 6px; }
.nw-front .nw-feed::-webkit-scrollbar { display: block; width: 6px; }
.nw-front .nw-feed::-webkit-scrollbar-thumb { background: var(--line, #ebebeb); border-radius: 3px; }
.nw-front .nw-img { animation-duration: 7s; }
.nw-front .nw-feed-end { height: auto; aspect-ratio: auto; margin: 12px 0 0; padding: 16px; font-size: 10.5px; }
.nw-card.nw-row { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line, #ebebeb); background: none; color: var(--ink, #0a0a0a); box-shadow: none; cursor: default; overflow: visible; }
.nw-card.nw-row:first-child { padding-top: 0; }
.nw-card.nw-row::after { display: none; }
.nw-card.nw-row:hover { transform: none; box-shadow: none; }
.nw-row-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; isolation: isolate; background: #1a0306; box-shadow: 0 10px 22px -14px rgba(60,0,6,.55); }
.nw-row .nw-art span { font-size: 56px; }
.nw-row-meta { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 5px; font-size: 11px; font-weight: 600; color: var(--muted, #737373); }
.nw-row-age { flex: none; font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-weight: 500; color: var(--red, #b0000e); }
.nw-row-note { flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red, #b0000e); }
.nw-row .nw-flag { box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.nw-card.nw-row .nw-hl { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--ink, #0a0a0a); font-size: 14.5px; font-weight: 650; line-height: 1.3; letter-spacing: 0; text-transform: none; text-shadow: none; }
.nw-card.nw-row .nw-hl:hover { color: var(--red-dark, #7f000a); text-decoration: none; }
@media (max-width: 760px) {
  .nw-front .nw-feed-wrap { grid-template-columns: minmax(0, 1fr); padding: 12px 14px 14px; }
  .nw-front .nw-lead { height: min(460px, 115vw); }
  .nw-front .nw-feed { height: 480px; }
  .nw-card.nw-row { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .nw-card.nw-row .nw-hl { font-size: 14px; }
}
@media (min-width: 1240px) {
  .wrap:has(> .ytt:not([hidden])):has(> .nw-front:not([hidden])) { grid-template-rows: auto auto auto 1fr; }
  .wrap:has(> .ytt:not([hidden])) > .nw.nw-front { grid-column: 1; grid-row: 2; margin: 40px 0 0; }
  .wrap:has(> .ytt:not([hidden])):has(> .nw-front:not([hidden])) > .hero { grid-row: 3; }
  .wrap:has(> .ytt:not([hidden])):has(> .nw-front:not([hidden])) > #results { grid-row: 4; }
  .wrap:has(> .ytt:not([hidden])):has(> .nw-front:not([hidden])) > .ymu { grid-row: 5; }
  .wrap:has(> .ytt:not([hidden])):has(> .nw-front:not([hidden])):has(> .ymu:not([hidden])) > .ytt { grid-row: 2 / span 4; }
  .wrap:has(> .ytt:not([hidden])):has(> .nw-front:not([hidden])) > .nw:not(.nw-front):not(.nw-credits) { grid-row: 7; }
  .wrap:has(> .ytt:not([hidden])) > .nw.nw-credits { grid-column: 1 / -1; grid-row: 6; margin: 0 0 56px; }
}
/* Popular Shorts: how-to hint next to the country dropdown (arrow keys; swipe on touch screens). */
.nw-keys, .nw-swipe { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 500; color: var(--muted, #737373); }
.nw-kbd-pair { display: inline-flex; gap: 4px; }
.nw-keys kbd { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 5px; box-sizing: border-box; border: 1px solid #d6d6d6; border-bottom-width: 2px; border-radius: 6px; background: linear-gradient(#fff, #f4f4f4); color: var(--ink, #0a0a0a); font: 700 14px/1 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; box-shadow: 0 1px 0 rgba(0,0,0,.05); transition: transform .12s, background .12s, color .12s, border-color .12s; }
.nw-keys kbd.nw-kbd-on { transform: translateY(1px); border-bottom-width: 1px; background: var(--red, #b0000e); border-color: var(--red-dark, #7f000a); color: #fff; }
.nw-swipe { display: none; }
.nw-swipe svg { width: 18px; height: 18px; color: var(--red, #b0000e); animation: nw-swipe 1.6s ease-in-out infinite; }
@keyframes nw-swipe { 0%, 100% { transform: translateY(3px); opacity: .6; } 50% { transform: translateY(-3px); opacity: 1; } }
@media (hover: none) and (pointer: coarse) {
  .nw-keys { display: none; }
  .nw-swipe { display: inline-flex; }
}
@media (max-width: 560px) { .nw-keys, .nw-swipe { flex-basis: 100%; margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .nw-swipe svg { animation: none; } }
.nw-keys kbd svg { width: 14px; height: 14px; }
/* World News Wire: country picker in the header; reserved frame + shimmer until stories load. */
.nw-wpick { display: inline-flex; align-items: center; gap: 8px; }
.nw-wpick[hidden] { display: none; }
.nw-front:empty { min-height: 692px; }
@keyframes nw-shim { from { background-position: 100% 0; } to { background-position: 0 0; } }
.nw-front .nw-lead:empty, .nw-front .nw-feed:not(:has(.nw-card, .nw-feed-end)) { background: linear-gradient(100deg, #f2f2f2 40%, #fafafa 50%, #f2f2f2 60%) 0 0 / 300% 100%; border-radius: 16px; animation: nw-shim 1.3s linear infinite; }
@media (max-width: 760px) { .nw-front:empty { min-height: 1160px; } }
@media (prefers-reduced-motion: reduce) { .nw-front .nw-lead:empty, .nw-front .nw-feed:not(:has(.nw-card, .nw-feed-end)) { animation: none; } }
/* Touch screens: the Shorts scroll with the page (no inner scroll box). */
.nw-flow .nw-feed { height: auto; min-height: 0; overflow: visible; scroll-snap-type: none; }
.nw-flow .nw-short { height: auto; width: min(100%, calc((100svh - 96px) * 9 / 16)); aspect-ratio: 9 / 16; scroll-snap-align: none; }
.nw-flow .nw-nav { display: none; }
/* Popular Shorts grid: small tiles, muted preview on hover/tap, big player with sound in a dialog. */
.nw-credits .nw-feed.nw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px 14px; align-items: start; height: auto; min-height: 0; overflow: visible; scroll-snap-type: none; }
.nw-credits .nw-nav { display: none; }
.nw-ghint { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--muted, #737373); }
.nw-tile { min-width: 0; cursor: pointer; outline: none; animation: nw-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.nw-tile-media { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; isolation: isolate; background: #1a0306; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 16px 32px -20px rgba(60,0,6,.55); transition: transform .25s, box-shadow .25s; }
.nw-tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-tile:hover .nw-tile-media, .nw-tile:focus-visible .nw-tile-media { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 22px 40px -18px rgba(127,0,10,.55); }
.nw-tile:focus-visible .nw-tile-media { outline: 2px solid var(--red, #b0000e); outline-offset: 2px; }
.nw-tpv { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; pointer-events: none; opacity: 0; transition: opacity .3s; }
.nw-tpv.nw-ready { opacity: 1; }
.nw-tile-views { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 3px 7px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font: 600 10.5px/1.2 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; }
.nw-tile-play { position: absolute; top: 50%; left: 50%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, #c21824 0%, var(--red-dark, #7f000a) 100%); color: #fff; box-shadow: 0 10px 24px -10px rgba(60,0,6,.8); opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .2s, transform .2s; }
.nw-tile-play svg { width: 20px; height: 20px; margin-left: 3px; }
.nw-tile:hover .nw-tile-play, .nw-tile:focus-visible .nw-tile-play, .nw-pv .nw-tile-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.nw-tile.nw-pvlive .nw-tile-play, .nw-tile.nw-pvlive .nw-tile-views { opacity: 0; }
.nw-tile-body { padding: 9px 2px 0; }
.nw-tile-title { margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 13px; font-weight: 650; line-height: 1.3; color: var(--ink, #0a0a0a); overflow-wrap: anywhere; }
.nw-tile-ch { margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; color: var(--muted, #737373); }
@media (max-width: 560px) {
  .nw-credits .nw-feed.nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .nw-ghint { flex-basis: 100%; margin-left: 0; }
}
html.nw-lock { overflow: hidden; }
.nw-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(12,0,3,.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nw-modal[hidden] { display: none; }
.nw-modal-box { position: relative; height: min(88svh, 860px); aspect-ratio: 9 / 16; max-width: calc(100vw - 32px); }
.nw-modal-frame { width: 100%; height: 100%; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.nw-modal-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.nw-modal-x, .nw-modal-prev, .nw-modal-next { position: absolute; right: -56px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.nw-modal-x:hover, .nw-modal-prev:hover, .nw-modal-next:hover { background: var(--red, #b0000e); border-color: var(--red, #b0000e); }
.nw-modal-x { top: 0; }
.nw-modal-prev { top: calc(50% - 50px); }
.nw-modal-next { top: calc(50% + 8px); }
.nw-modal svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .nw-modal-box { height: auto; width: calc(100vw - 24px); max-height: calc(100svh - 90px); }
  .nw-modal-x { top: -52px; right: 0; }
  .nw-modal-prev, .nw-modal-next { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nw-tile { animation: none; } .nw-tile-media { transition: none; } }

/* World News: ticker-style ranks 01–10, the lead story being 01. */
.nw-front.nw-ranked .nw-feed { counter-reset: nw-rank 1; }
.nw-front.nw-ranked .nw-row { counter-increment: nw-rank; }
.nw-front.nw-ranked .nw-row-media::after, .nw-front.nw-ranked .nw-lead .nw-top::before { position: absolute; top: 6px; left: 6px; z-index: 3; min-width: 24px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 3px; background: #5a0008; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 1px 4px rgba(0,0,0,.35); color: #fff; font: 700 10.5px/16px ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; text-align: center; font-variant-numeric: tabular-nums; }
.nw-front.nw-ranked .nw-row-media::after { content: counter(nw-rank, decimal-leading-zero); }
.nw-front.nw-ranked .nw-lead .nw-top::before { content: '01'; position: static; min-width: 30px; height: 22px; font-size: 12.5px; line-height: 20px; }
.nw-front.nw-ranked .nw-lead .nw-badge { height: 22px; padding: 0 8px; box-sizing: border-box; border-radius: 3px; background: #5a0008; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 1px 4px rgba(0,0,0,.35); font: 600 10px/20px ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; }
.nw-front.nw-ranked .nw-lead .nw-badge::before { content: '▲ '; color: #ff5c66; }
.nw-front.nw-ranked .nw-lead .nw-age { height: 22px; padding: 0 8px; box-sizing: border-box; border-radius: 3px; line-height: 22px; }
/* World News header and footer grow once the stories load (country strip, longer source note);
   reserve their usual height so the page below doesn't jump on first load. */
#news-front .nw-head, #news-front .nw-foot { box-sizing: border-box; }
@media (min-width: 561px) { #news-front .nw-head { min-height: 53px; } #news-front .nw-foot { min-height: 73px; } }
@media (max-width: 560px) { #news-front .nw-head { min-height: 103px; } #news-front .nw-foot { min-height: 164px; } }
/* Popular Shorts ranked like the Trending/Music Index: top 5 as 9:16 cards, ranks 6+ as a list. */
.nw-shorts .nw-feed.ysh { display: block; height: auto; max-height: none; overflow: visible; padding: 0; }
.nw-shorts .nw-feed-wrap:has(.ysh) .nw-nav { display: none; }
.ysh-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 12px; overflow-x: auto; padding: 14px 18px 16px; border-bottom: 1px solid var(--line, #ebebeb); scroll-snap-type: x mandatory; scroll-padding-inline: 18px; scrollbar-width: thin; scrollbar-color: #e8c9cb transparent; }
.ysh-card { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: inherit; text-decoration: none; scroll-snap-align: start; }
.ysh-cth { position: relative; display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 9 / 16; background: #111; }
.ysh-cth img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.ysh-card:hover .ysh-cth img { transform: scale(1.04); }
.ysh-crk { position: absolute; left: 6px; top: 6px; padding: 4px 5px; border: 1px solid rgba(255,42,60,.6); border-radius: 4px; background: #7f000a; color: #fff; font: 700 11px/1 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; }
.ysh-cvw { position: absolute; right: 6px; bottom: 6px; padding: 3px 5px; border-radius: 3px; background: rgba(0,0,0,.74); color: #fff; font: 700 10px/1 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; font-style: normal; }
.ysh-ctt { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ysh-card:hover .ysh-ctt, .ysh-list a:hover .ysh-vt { color: var(--red, #b0000e); }
.ysh-cch, .ysh-ch { font-size: 11.5px; color: var(--muted, #737373); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ysh-list { list-style: none; margin: 0; padding: 0; }
.ysh-list li + li { border-top: 1px solid var(--line, #ebebeb); }
.ysh-list a { display: flex; align-items: center; gap: 12px; padding: 9px 18px; color: inherit; text-decoration: none; transition: background .15s; }
.ysh-list a:hover { background: var(--red-soft, #fbf1f1); }
.ysh-rk { flex: none; width: 24px; font: 600 12px/1 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; color: var(--muted, #737373); }
.ysh-th { flex: none; width: 27px; height: 48px; border-radius: 5px; object-fit: cover; background: #eee; }
.ysh-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ysh-vt { font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ysh-vol { flex: none; width: 110px; text-align: right; }
.ysh-num { font: 650 12.5px/1 ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink, #0d0d0d); }
.ysh-bar { display: block; height: 3px; margin: 6px 0 0 auto; border-radius: 2px; background: var(--red, #b0000e); opacity: .85; }
@media (max-width: 560px) { .ysh-cards { padding: 12px 14px 14px; scroll-padding-inline: 14px; grid-auto-columns: minmax(112px, 34%); } .ysh-list a { padding: 9px 14px; } .ysh-vol { width: 70px; } }
