@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap");

:root {
  --blue: #2563eb;
  --blue-dark: #1746ad;
  --blue-soft: #eff6ff;
  --blue-pale: #f7faff;
  --ink: #172033;
  --muted: #667085;
  --line: #e5eaf2;
  --paper: #ffffff;
  --page: #f7f9fc;
  --sans: "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--page); font-family: var(--sans); }
a { color: inherit; }
button, input, select { font: inherit; }

.site-header { width: min(1080px, calc(100% - 40px)); height: 72px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; color: #16213a; text-decoration: none; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--blue); border-radius: 9px; font-size: 11px; box-shadow: 0 6px 16px rgba(37, 99, 235, .2); }
.live-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.live-status span { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(34, 197, 94, .11); }

main { width: min(1080px, calc(100% - 40px)); margin: 0 auto; outline: none; }
.eyebrow, .section-label { margin: 0 0 18px; color: var(--blue); font-size: 10px; font-weight: 500; letter-spacing: .12em; }

.filters { display: grid; grid-template-columns: minmax(250px, 1fr) 170px 170px auto; gap: 14px; align-items: end; margin: 20px 0; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.filters label { display: grid; gap: 6px; }
.filters label > span { color: var(--muted); font-size: 11px; }
.filters input, .filters select { width: 100%; height: 40px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid #d8deea; border-radius: 8px; outline: none; }
.filters input:focus, .filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.result-count { margin: 0 0 11px; color: var(--muted); font-size: 12px; white-space: nowrap; }

.event-list { padding: 0 0 80px; }
.radar-section { margin-top: 30px; }
.radar-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 2px 14px; }
.radar-heading h1 { margin: 0; color: #172b54; font-size: 22px; letter-spacing: -.025em; }
.radar-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.radar-heading strong { color: var(--blue); font-size: 24px; font-weight: 500; }
.radar-in-progress { margin-top: 44px; }
.radar-in-progress .radar-heading h1 { color: #40516e; }
.radar-in-progress .radar-heading strong { color: #7b8aa4; }
.date-group { margin-bottom: 20px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 22px rgba(31, 50, 90, .035); }
.date-heading { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 0 22px; background: var(--blue-pale); border-bottom: 1px solid #dce7fb; }
.date-title { display: flex; align-items: center; gap: 10px; }
.date-prefix { color: var(--blue); font-size: 10px; font-weight: 600; }
.date-number { color: #172b54; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.weekday { padding: 3px 8px; color: var(--blue-dark); background: #e7f0ff; border-radius: 999px; font-size: 10px; }
.date-count { color: var(--muted); font-size: 11px; }
.date-events { padding: 0 22px; }
.in-progress-list { margin-bottom: 0; }
.event-card { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; align-items: center; min-height: 90px; padding: 16px 2px; border-bottom: 1px solid var(--line); text-decoration: none; animation: rise .35s both; animation-delay: var(--delay); transition: color .18s ease, transform .18s ease; }
.event-card:last-child { border-bottom: 0; }
.event-card::before { content: ""; width: 5px; height: 5px; margin-left: 4px; background: var(--blue); border-radius: 50%; position: absolute; left: 0; }
.event-card:hover { color: var(--blue-dark); transform: translateX(4px); }
.event-card time { padding-left: 20px; color: var(--blue); font-size: 12px; }
.event-main .event-source { margin: 0 0 6px; color: var(--blue); font-size: 11px; font-weight: 600; }
.event-main h2 { margin: 0 0 6px; font-size: 16px; line-height: 1.45; letter-spacing: -.015em; }
.event-main p { margin: 0; color: var(--muted); font-size: 12px; }
.event-meta { display: flex; gap: 6px; }
.event-meta span, .detail-kicker span { padding: 5px 9px; color: var(--blue-dark); background: var(--blue-soft); border: 1px solid #d8e6ff; border-radius: 999px; font-size: 10px; white-space: nowrap; }
.empty { padding: 80px 20px; text-align: center; background: #fff; border: 1px dashed #cad4e4; border-radius: 14px; }
.empty span { color: var(--blue); font-size: 38px; }
.empty h2 { margin: 12px 0 5px; font-size: 20px; }
.empty p { color: var(--muted); }

.detail-page { padding: 28px 0 80px; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--blue); text-decoration: none; font-size: 13px; }
.detail-hero { padding: 30px 34px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 22px rgba(31, 50, 90, .035); }
.detail-kicker { display: flex; gap: 7px; margin-bottom: 20px; }
.detail-hero h1 { max-width: 880px; margin: 0; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.28; letter-spacing: -.035em; }
.detail-time { margin: 20px 0 0; color: var(--blue); font-size: 13px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding-top: 24px; }
.detail-content { align-self: start; padding: 26px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; line-height: 1.9; box-shadow: 0 6px 22px rgba(31, 50, 90, .035); }
.source-content { display: grid; gap: 14px; color: #25324a; overflow-wrap: anywhere; }
.source-content p { margin: 0; line-height: 1.9; }
.summary-section { padding: 0 0 0 14px; border-left: 2px solid #d8e6ff; }
.summary-section h3 { margin: 0 0 5px; color: var(--blue-dark); font-size: 13px; font-weight: 700; line-height: 1.5; }
.summary-section p { color: #34425c; }
.original-content { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.original-content .section-label { margin-bottom: 20px; }
.original-body { display: grid; gap: 12px; color: #34425c; }
.original-body p { margin: 0; line-height: 1.9; }
.original-heading { margin: 14px 0 0; padding: 9px 12px; color: var(--blue-dark); background: var(--blue-pale); border-left: 3px solid var(--blue); border-radius: 0 6px 6px 0; font-size: 15px; line-height: 1.6; }
.original-step { padding-left: 14px; border-left: 2px solid #d8e6ff; }
.detail-facts { align-self: start; padding: 24px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 22px rgba(31, 50, 90, .035); }
.detail-facts dl { margin: 0; }
.detail-row { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-row dt { color: var(--muted); font-size: 13px; line-height: 1.6; }
.detail-row dd { margin: 0; font-size: 13px; line-height: 1.6; }
.detail-inline-link { color: var(--blue); font-weight: 600; text-decoration: none; }
.detail-inline-link:hover { color: var(--blue-dark); text-decoration: underline; }
.source-button { display: block; margin-top: 22px; padding: 13px 16px; color: #fff; background: var(--blue); border-radius: 8px; text-align: center; text-decoration: none; font-weight: 700; }
.source-button:hover { background: var(--blue-dark); }
.source-link { display: block; margin-top: 14px; color: var(--blue); text-align: center; font-size: 12px; text-decoration: none; }
.secondary-label { margin-top: 28px; }
.source-note { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.not-found, .loading { min-height: 65vh; display: grid; align-content: center; justify-items: start; }
.not-found h1, .loading h1 { margin: 0 0 24px; font-size: clamp(38px, 6vw, 68px); letter-spacing: -.05em; }
.not-found p { color: var(--muted); }
.not-found a { color: var(--blue); }

footer { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 34px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }

@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 24px, 1080px); }
  .site-header { height: 64px; }
  .filters { grid-template-columns: 1fr 1fr; padding: 16px; }
  .search-field, .result-count { grid-column: 1 / -1; }
  .date-heading { padding: 0 16px; }
  .date-events { padding: 0 16px; }
  .event-card { grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
  .event-meta { grid-column: 2; justify-self: start; }
  .event-main h2 { font-size: 15px; }
  .detail-hero { padding: 24px 20px; }
  .detail-layout { grid-template-columns: 1fr; gap: 36px; }
  footer { display: block; }
}
