.story-gap-section { background: linear-gradient(180deg, rgba(233,241,255,.46), rgba(255,255,255,.28)); }
.story-gap-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.story-gap-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
  padding: 20px;
  border-radius: 15px;
}
.story-gap-side.foreign { background: var(--world-soft); border: 1px solid #cbe9dd; }
.story-gap-side.domestic { background: var(--us-soft); border: 1px solid #f1d2cf; }
.story-gap-side.unmatched { background: var(--surface-2); border-color: var(--line); }
.story-gap-label { font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; color: #455469; }
.story-gap-side strong { display: block; margin: 6px 0 2px; font-size: clamp(30px,4vw,44px); line-height: 1; letter-spacing: -.04em; }
.story-gap-side.unmatched strong { font-size: clamp(22px,3vw,30px); }
.story-gap-side small { color: var(--muted); font-size: 13px; }
.story-gap-result {
  min-width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 18px;
  border-radius: 15px;
  background: var(--navy);
  color: #fff;
}
.story-gap-result strong { font-size: 30px; line-height: 1; }
.story-gap-result span { max-width: 145px; margin-top: 7px; color: #c8d5e5; font-size: 12px; line-height: 1.35; }
.story-gap-result.muted { background: var(--surface-2); color: var(--text); }
.story-gap-result.muted span { color: var(--muted); }

.story-filter {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.74);
  box-shadow: var(--shadow-soft);
}
.story-filter-head { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; }
.story-filter-head strong { font-size: 14px; }
.story-filter-head span { color: var(--muted); font-size: 12px; text-align: right; }
.story-filter-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.story-filter-button {
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: #405069;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.story-filter-button:hover { border-color: #9ab6d5; background: var(--accent-soft); }
.story-filter-button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.story-filter-result { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.story-list-empty { padding: 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  .story-gap-card { grid-template-columns: 1fr; padding: 12px; }
  .story-gap-side { min-height: 112px; padding: 17px; }
  .story-gap-result { min-height: 94px; }
  .story-gap-result span { max-width: 250px; }
  .story-filter { padding: 14px; }
  .story-filter-head { align-items: start; flex-direction: column; gap: 4px; }
  .story-filter-head span { text-align: left; }
  .story-filter-options { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
  .story-filter-button { flex: 0 0 auto; }
}
