/* =====================================================================
   style.css — 動画の容量・ビットレート計算 ツール固有の微調整のみ。
   共通スタイルは /_shared/shirugear.css に任せる（結果表示は sg-result）。
   ===================================================================== */

/* モード切替 */
.sg-modes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

/* 容量入力＋単位（横並び） */
.sg-inline {
  display: flex;
  gap: 8px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-inline__num {
  flex: 1 1 auto;
  min-width: 0;
}
.sg-inline__unit {
  flex: 0 0 auto;
  width: auto;
}

/* 時・分・秒 */
.sg-time {
  display: flex;
  gap: 10px;
  margin-top: var(--sg-space-1, 4px);
}
.sg-time__cell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 0;
}
.sg-time__cell .sg-input {
  text-align: right;
  min-width: 0;
}
.sg-time__unit {
  flex: 0 0 auto;
  color: var(--sg-muted, #555);
  font-size: 0.95rem;
}

/* 結果は折り返して読みやすく */
.sg-result__value {
  line-height: 1.5;
  word-break: break-word;
}

/* 結果の内訳（併記表示） */
.sg-detail {
  display: flex;
  flex-direction: column;
  margin-top: var(--sg-space-3, 12px);
  border-top: 1px solid var(--sg-border, #e5e7eb);
}
.sg-detail-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sg-space-3, 12px);
  padding: 6px 0;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.sg-detail-row__key {
  flex: 0 0 auto;
  color: var(--sg-muted, #555);
}
.sg-detail-row__val {
  flex: 1 1 auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* 解像度別ビットレート目安 */
.sg-chart {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px 16px;
}
.sg-chart-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--sg-border, #e5e7eb);
}
.sg-chart-row__key {
  flex: 0 0 auto;
  font-weight: 600;
}
.sg-chart-row__val {
  flex: 0 0 auto;
  color: var(--sg-muted, #555);
  font-variant-numeric: tabular-nums;
}
