:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --border: #d1d5db;
  --accent: #374151;
  --accent-soft: #f3f4f6;
  --code-bg: #eef2f6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}
.n1d4f-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.1rem 1.25rem 3.5rem;
}
.n1d4f-hdr {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.2rem;
  margin-bottom: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.n1d4f-brand {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.n1d4f-sub {
  margin: 0.32rem 0 0;
  font-size: 0.93rem;
  color: var(--muted);
}
.n1d4f-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.93rem;
}
.n1d4f-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.n1d4f-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.n1d4f-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  margin: 2.2rem 0 1rem;
}
.n1d4f-sec-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}
.n1d4f-sec-link {
  font-size: 0.86rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.n1d4f-sec-link:hover { text-decoration: underline; }
.n1d4f-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem 1.35rem;
  margin-bottom: 0.95rem;
}
.n1d4f-card h2, .n1d4f-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  line-height: 1.38;
}
.n1d4f-card a {
  color: var(--text);
  text-decoration: none;
}
.n1d4f-card a:hover { color: var(--accent); }
.n1d4f-meta {
  font-size: 0.81rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.n1d4f-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1rem 0.48rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 0.42rem;
}
.n1d4f-badge-ht { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.n1d4f-badge-tt { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.n1d4f-badge-loc { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.n1d4f-vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.2rem;
}
.n1d4f-vcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.n1d4f-vcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}
.n1d4f-vthumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}
.n1d4f-vthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.n1d4f-vdur {
  position: absolute;
  right: 7px;
  bottom: 7px;
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.n1d4f-vsrc {
  position: absolute;
  left: 7px;
  top: 7px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.n1d4f-vbody {
  padding: 0.85rem 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  flex: 1;
}
.n1d4f-vtitle {
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.n1d4f-vchan {
  font-size: 0.8rem;
  color: var(--muted);
}
.n1d4f-vwhy {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.n1d4f-toolbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.n1d4f-trow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.n1d4f-chip {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.81rem;
  font-weight: 500;
  cursor: pointer;
}
.n1d4f-chip:hover { border-color: var(--accent); color: var(--accent); }
.n1d4f-chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
.n1d4f-search {
  flex: 1;
  min-width: 190px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.38rem 0.7rem;
  font-size: 0.86rem;
  background: var(--bg);
  color: var(--text);
}
.n1d4f-stage {
  background: #0b1120;
  color: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.35rem;
  display: none;
  border: 1px solid #1e293b;
}
.n1d4f-stage.open { display: block; }
.n1d4f-player {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}
.n1d4f-player iframe, .n1d4f-player video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.n1d4f-sinfo {
  padding: 1rem 1.25rem 1.2rem;
}
.n1d4f-squote {
  margin-top: 0.7rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #f97316;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.n1d4f-squote a { color: #fdba74; }
.n1d4f-ambient {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1.05rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.n1d4f-ambient audio {
  height: 34px;
  max-width: 310px;
}
.n1d4f-tv {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  color: #f8fafc;
  display: none;
  flex-direction: column;
}
.n1d4f-tv.open { display: flex; }
.n1d4f-tv-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  background: #090d16;
  border-bottom: 1px solid #1e293b;
  font-size: 0.86rem;
}
.n1d4f-tv-main {
  flex: 1;
  min-height: 0;
  position: relative;
}
.n1d4f-tv-main iframe, .n1d4f-tv-main video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.n1d4f-tv-btn {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 0.28rem 0.68rem;
  font-size: 0.8rem;
  cursor: pointer;
}
.n1d4f-tv-btn:hover { background: #334155; }
.n1d4f-feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.n1d4f-feed-list li {
  padding: 0.88rem 1.15rem;
  border-bottom: 1px solid var(--border);
}
.n1d4f-feed-list li:last-child { border-bottom: none; }
.n1d4f-feed-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.n1d4f-feed-list a:hover { text-decoration: underline; }
.n1d4f-article h1 {
  font-size: 1.62rem;
  line-height: 1.3;
  margin: 0.3rem 0 0.6rem;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.95rem 1.1rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.5;
}
.n1d4f-ftr {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}
