:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #0a0c0b;
  color: #f3f5f1;
  --surface: #141714;
  --surface-2: #1a1e1a;
  --line: #2d332e;
  --muted: #9da49d;
  --green: #b7e3a5;
  --green-dark: #182317;
  --orange: #f1bc7b;
  --red: #f08d86;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0%, #263627 0, #0a0c0b 31%); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1240px, calc(100% - 34px)); margin: 0 auto; padding: 38px 0 80px; }
.hero, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow, .section-kicker { margin: 0 0 8px; color: var(--green); font-size: 11px; letter-spacing: .19em; font-weight: 700; }
h1 { margin: 0; font-size: clamp(42px, 7vw, 76px); letter-spacing: -.06em; line-height: .95; }
h2 { margin: 0 0 7px; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.025em; }
h3 { margin: 0; line-height: 1.35; }
p { color: var(--muted); line-height: 1.65; }
.intro { max-width: 690px; margin-bottom: 0; }
.hero-status { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: #c6ccc6; background: rgba(20, 23, 20, .8); white-space: nowrap; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(183, 227, 165, .72); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 34px 0; }
.summary-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(20, 23, 20, .84); }
.summary-card p { margin: 0 0 11px; font-size: 13px; }
.summary-card strong { display: block; font-size: 27px; letter-spacing: -.03em; }
.summary-card span { display: block; margin-top: 7px; color: #737a73; font-size: 12px; }
.tabs { display: flex; gap: 7px; overflow-x: auto; padding: 0 0 12px; margin: 0 0 24px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab, button, .link-button { border: 1px solid #363d37; border-radius: 10px; padding: 10px 14px; color: #d9ded8; background: #131613; cursor: pointer; text-decoration: none; white-space: nowrap; }
.tab.active, .primary { background: #e8f4e3; color: #111610; border-color: #e8f4e3; }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-left: 3px; border-radius: 999px; background: #292f2a; font-size: 11px; }
.tab.active .tab-count { background: #cddbc8; }
.panel { display: none; }
.panel.active { display: block; }
.section-heading { margin-bottom: 18px; }
.section-heading p { margin: 0; }
.secondary { background: transparent; }
.secondary:hover, .ghost:hover { border-color: #667267; color: #fff; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(150px, .7fr)); gap: 12px; padding: 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(20, 23, 20, .76); }
label { display: grid; gap: 7px; color: #cdd2cc; font-size: 13px; }
input, select { width: 100%; padding: 10px 11px; border: 1px solid #394039; border-radius: 9px; background: #0d100d; color: #f1f3ef; }
input:focus, select:focus { outline: 2px solid rgba(183, 227, 165, .22); border-color: #6f896b; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(20, 23, 20, .9); transition: transform .18s ease, border-color .18s ease; }
.video-card:hover { transform: translateY(-2px); border-color: #455046; }
.video-media { position: relative; aspect-ratio: 16 / 9; background: #202520; overflow: hidden; }
.video-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.duration-badge { position: absolute; right: 9px; bottom: 9px; padding: 4px 7px; border-radius: 6px; background: rgba(0, 0, 0, .8); font-size: 11px; }
.video-body { padding: 16px; }
.video-category { margin: 0 0 8px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.video-title { min-height: 48px; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-channel { margin: 8px 0 13px; font-size: 12px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.metric { padding: 9px; border-radius: 9px; background: #0d100d; }
.metric-label { display: block; margin-bottom: 3px; color: #777e77; font-size: 10px; }
.metric strong { font-size: 13px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.ghost, .favorite, .link-button { padding: 8px 10px; font-size: 12px; background: transparent; }
.favorite { margin-left: auto; }
.favorite.active { color: var(--green); border-color: #526b4f; background: var(--green-dark); }
.danger { color: var(--red); }
.preview-slot { margin-top: 12px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #050605; }
.preview-slot iframe { width: 100%; height: 100%; border: 0; }
.hidden { display: none !important; }
.empty-state { padding: 34px; border: 1px dashed #394039; border-radius: 15px; text-align: center; background: rgba(20, 23, 20, .45); }
.empty-state p { margin-bottom: 0; }
.case-list, .trend-list { display: grid; gap: 14px; }
.case-card, .trend-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(20, 23, 20, .84); }
.case-card { position: relative; padding-left: 72px; }
.case-number { position: absolute; left: 22px; top: 15px; font-size: 25px; }
.reason-list { color: #c6ccc5; line-height: 1.75; padding-left: 22px; }
.case-insight { padding: 12px 14px; border-left: 3px solid var(--green); background: #101410; color: #c7d6c3; }
.source-link { display: inline-block; color: var(--green); text-decoration: none; font-size: 13px; }
.platform-pill, .health-status { display: inline-block; padding: 5px 8px; margin-bottom: 10px; border-radius: 999px; background: #242a24; color: #c6ccc6; font-size: 11px; }
.trend-date { font-size: 12px; }
.watch-form { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: end; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(20, 23, 20, .76); }
.notice { min-height: 24px; color: var(--green); }
.watch-list { display: grid; gap: 10px; }
.watch-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(20, 23, 20, .8); }
.watch-card p { margin: 3px 0 0; font-size: 12px; }
.health-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.health-card { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: rgba(20, 23, 20, .84); }
.health-status.good { color: var(--green); background: #172217; }
.health-status.paused { color: var(--orange); background: #261d12; }
.health-status.neutral { color: #bec4bd; }
.skeleton-card { padding-bottom: 18px; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.skeleton { background: linear-gradient(90deg, #171b17 25%, #242924 50%, #171b17 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton.media { aspect-ratio: 16 / 9; }
.skeleton.line { height: 14px; margin: 17px 16px 0; border-radius: 5px; }
.skeleton.line.short { width: 56%; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 980px) {
  .summary-grid, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
  .health-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 22px, 1240px); padding-top: 24px; }
  .hero, .section-heading { display: grid; }
  .hero-status { width: fit-content; }
  .summary-grid, .video-grid, .filter-bar, .watch-form { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading .secondary { width: fit-content; }
  .case-card { padding-left: 20px; padding-top: 62px; }
  .case-number { left: 20px; }
  .watch-card { align-items: flex-start; flex-direction: column; }
}
