/* Phrasal Styles */

.pv-intro {
  margin: 0 0 8px 0;
  line-height: 1.6;
}

/* --- TOP SELECTOR BOXES --- */

.pv-box-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.pv-box {
  border: 1px solid #888;
  padding: 0;
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
}

.pv-box-left {
  border-top-left-radius: 8px;
}

.pv-box-right {
  border-top-right-radius: 8px;
}

.pv-box-title {
  font-weight: 700;
  padding: 6px 8px;
  border-bottom: 1px solid #555;
  flex: 0 0 auto;
}

.pv-list {
  display: block;
  height: 92px;
  overflow-y: auto;
  position: relative;
  margin: 0;
  padding: 0 0 3px 0;   /* small breathing room at bottom */
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.pv-btn {
  display: block;
  width: 100%;
  border: none;
  border-top: 1px solid #444;
  background: transparent;
  color: inherit;
  padding: 0 8px;        /* remove vertical padding */
  line-height: 30px;     /* control row height here */
  margin: 0;
  cursor: pointer;
  font-size: 0.94rem;
  text-align: left;
}

.pv-btn:first-child {
  border-top: none;
}

.pv-btn.selected {
  background: rgba(255,255,255,0.12);
}

.pv-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* --- LOWER LARGE BOX --- */

.pv-action-box {
  border: 1px solid #888;
  margin-top: 10px;
  background: rgba(255,255,255,0.03);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  overflow: hidden;
}

.pv-action-head {
  display: grid;
  grid-template-columns: 1fr 90px;
  align-items: stretch;
  border-bottom: 1px solid #555;
}

.pv-action-text {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  min-height: 44px;
}

.pv-start-btn {
  border: none;
  border-left: 1px solid #555;
  background: rgba(255,255,255,0.08);
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.pv-start-btn.ready {
  background: #c8952f;
  color: #111;
}

.pv-result {
  min-height: 80px;
  padding: 10px 12px;
  line-height: 1.8;
}

/* --- SCROLLBAR --- */

.pv-list::-webkit-scrollbar {
  width: 8px;
}

.pv-list::-webkit-scrollbar-track {
  background: transparent;
}

.pv-list::-webkit-scrollbar-thumb {
  background: #666;
}

.pv-list::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* --- RESULT TEXT --- */

.pv-meaning {
  color: #d4a22a;
  text-align: right;
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.pv-eng {
  color: lightsalmon;
  font-weight: 500;
  font-size: 1.02rem;
  margin-top: 6px;
}

.pv-ja {
  color: #8ecbff;
  font-weight: 500;
  font-size: 1.02rem;
  margin-top: 6px;
}

.pv-plus {
  color: #333;
  padding: 0 2px;
}
