.compare-page {
  padding-top: 28px;
  padding-bottom: 56px;
}

.compare-hero {
  margin-bottom: 28px;
}

.compare-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  opacity: 0.72;
  margin-bottom: 10px;
}

.compare-main-title {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  font-weight: 900;
}

.compare-lead {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.compare-grid {
  display: grid;
  gap: 22px;
}

.compare-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.compare-diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.compare-mini-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 20px 20px 18px;
}

.compare-mini-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.compare-mini-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.8;
}

.compare-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compare-row {
  display: grid;
  grid-template-columns: 64px 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.compare-play {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  color: #1b1630;
  background: linear-gradient(180deg, #ffb257, #ff8b39);
  box-shadow: 0 12px 28px rgba(255, 150, 71, 0.28);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.compare-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 150, 71, 0.34);
}

.compare-play:active {
  transform: translateY(0);
}

.compare-word-block {
  min-width: 0;
}

.compare-word-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.compare-word {
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1;
  font-weight: 900;
}

.compare-ipa {
  color: #8ed2ff;
  font-size: clamp(18px, 2.6vw, 28px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.compare-meaning {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.compare-vs {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(122, 89, 132, 0.48);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.sentence-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.sentence-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sentence-en {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 8px;
}

.sentence-ja {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.sentence-ipa {
  color: #8ed2ff;
  font-size: 16px;
  line-height: 1.7;
  word-break: break-word;
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.compare-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}

.compare-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.compare-btn-primary {
  color: #1a1730;
  background: linear-gradient(180deg, #ffb257, #ff8b39);
  box-shadow: 0 14px 30px rgba(255, 150, 71, 0.24);
}

.compare-btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.back-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.back-link:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .compare-row {
    grid-template-columns: 56px 1fr;
  }

  .compare-vs {
    justify-self: start;
  }

  .compare-row > .compare-vs {
    margin-left: 72px;
  }

  .compare-diff-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .compare-page {
    padding-top: 18px;
    padding-bottom: 42px;
  }

  .compare-main-title {
    font-size: 42px;
  }

  .compare-lead {
    font-size: 16px;
  }

  .compare-row {
    gap: 14px;
    padding: 16px;
  }

  .sentence-row {
    grid-template-columns: 56px 1fr;
    gap: 14px;
    padding: 16px;
  }

  .sentence-en {
    font-size: 20px;
  }

  .compare-word {
    font-size: 24px;
  }

  .compare-ipa {
    font-size: 18px;
  }

  .compare-row > .compare-vs {
    margin-left: 0;
  }
}

@media (max-width: 640px) {

  .compare-row{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }

  .compare-vs{
    align-self:center;
    margin:6px 0;
  }

}

.compare-vs{
  font-weight:700;
  font-size:14px;
  opacity:0.8;
}

.compare-row{
  cursor:pointer;
}

.compare-row,
.sentence-row {
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.compare-row:hover,
.sentence-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.compare-row:active,
.sentence-row:active {
  transform: scale(0.99);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.compare-row,
.sentence-row {
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.compare-row.is-pressed,
.sentence-row.is-pressed {
  transform: scale(0.99);
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10) inset,
    0 10px 24px rgba(0,0,0,0.18);
}