/* ことばシンク固有：メイン画面の再現（疑似スクリーンショット）。色は k386.css の変数を使う。 */

.ks-win {
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 0.72rem;
  line-height: 1.45;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.ks-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #ececee; border-bottom: 1px solid #d9d9de; }
.ks-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d0d0d5; flex: none; }
.ks-bar b { flex: 1; text-align: center; font-weight: 600; color: #55555c; margin-right: 46px; }

.ks-steps { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px 4px; background: #f3eef6; }
.ks-step { padding: 3px 8px; border-radius: 6px; background: #fff; border: 1px solid #d9d0e0; white-space: nowrap; }
.ks-step--done { color: #6b6b72; }
.ks-step--done::before { content: "✓ "; color: #15803d; }
.ks-step--now { background: #86198f; border-color: #86198f; color: #fff; font-weight: 600; }
.ks-step--save { margin-left: auto; }
.ks-next { padding: 2px 10px 8px; background: #f3eef6; color: #701a75; border-bottom: 1px solid #ddd4e3; }

.ks-body { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 0; }
.ks-left { border-right: 1px solid #d9d9de; display: flex; flex-direction: column; }
.ks-video {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(255, 196, 120, 0.55), transparent 70%),
    linear-gradient(180deg, #2b2f55 0%, #6b4a77 48%, #d98c6a 70%, #2a2233 71%, #17141f 100%);
}
.ks-video::after {
  /* 街の影 */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 22%; height: 18%;
  background:
    linear-gradient(90deg, #1b1724 0 8%, transparent 8% 11%, #1b1724 11% 22%, transparent 22% 25%, #1b1724 25% 31%, transparent 31% 36%, #1b1724 36% 52%, transparent 52% 55%, #1b1724 55% 63%, transparent 63% 67%, #1b1724 67% 83%, transparent 83% 86%, #1b1724 86% 100%);
  clip-path: polygon(0 40%, 8% 40%, 8% 10%, 22% 10%, 22% 55%, 31% 55%, 31% 0, 52% 0, 52% 35%, 63% 35%, 63% 20%, 83% 20%, 83% 50%, 100% 50%, 100% 100%, 0 100%);
}
.ks-sub {
  position: absolute; left: 0; right: 0; bottom: 7%;
  text-align: center; color: #fff; font-weight: 600; font-size: 0.95rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
  z-index: 1;
}
.ks-transport { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #e2e2e6; }
.ks-seek { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #86198f 38%, #d8d8dd 38%); }
.ks-time { font-variant-numeric: tabular-nums; color: #55555c; }
.ks-edit { padding: 8px 10px 10px; }
.ks-edit__label { color: #6b6b72; margin-bottom: 4px; }
.ks-edit__src { color: #8a8a92; }
.ks-edit__box { background: #fff; border: 1px solid #cfcfd5; border-radius: 6px; padding: 6px 8px; }

.ks-right { display: flex; flex-direction: column; background: #fbfbfd; }
.ks-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 8px 10px 6px; border-radius: 6px; background: #e8e8ec; padding: 2px; }
.ks-tabs span { text-align: center; padding: 2px 0; border-radius: 5px; color: #55555c; }
.ks-tabs .is-on { background: #fff; color: #1d1d1f; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.ks-count { padding: 0 10px 6px; color: #8a8a92; }
.ks-count b { color: #701a75; font-weight: 600; }
.ks-row { margin: 0 8px 6px; padding: 6px 8px; border-radius: 7px; background: #fff; border: 1px solid #e3e3e8; }
.ks-row__time { display: flex; justify-content: space-between; color: #8a8a92; font-variant-numeric: tabular-nums; font-size: 0.66rem; }
.ks-row__src { color: #9a9aa2; }
.ks-row__ja { font-weight: 600; }
.ks-row--now { background: #eef0fb; border-color: #b9c0ea; }
.ks-badge { font-size: 0.62rem; padding: 0 5px; border-radius: 4px; background: #4651a8; color: #fff; }
.ks-badge--hint { background: #86198f; }

@media (max-width: 560px) {
  .ks-body { grid-template-columns: 1fr; }
  .ks-left { border-right: 0; border-bottom: 1px solid #d9d9de; }
  .ks-edit { display: none; }
  .ks-row:nth-of-type(n+4) { display: none; }
}

/* 実際の画面の写真 */
.ks-photo { border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06); }
