.yt-tool {
  max-width: 900px;
  margin: 10px auto;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

.yt-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.yt-input {
  flex: 1;
  min-width: 220px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.yt-btn {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  cursor: pointer;
}

.yt-player-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

#player {
  width: 560px;
  height: 315px;
  background: #000;
  border-radius: 6px;
}

.controls {
  min-width: 260px;
  padding: 8px;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fafafa;
}

.small {
  font-size: 0.9rem;
}

ol.playlist {
  padding-left: 18px;
}

.pl-item {
  margin: 6px 0;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  flex-wrap: wrap;
}

.pl-left {
  flex: 1;
  min-width: 160px;
}

.pl-actions button {
  margin-left: 4px;
  padding: 4px 8px;
  font-size: 0.8rem;
}

.meta {
  color: #666;
  font-size: 0.8rem;
}

.site-footer {
  text-align: center;
  padding: 30px 0;
  color: #9ca3af;
}

.container {
  max-width: 900px;
  margin: auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* 追加：情報ボックスの装飾 */
.info-box {
  padding: 10px;
  background: #f9f9f9;
  border-left: 4px solid #2196f3;
  margin-bottom: 15px;
}

/* 追加：h2とfaviconのスタイル */
.section-title {
  margin: 0;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* 左寄せ */
  gap: 8px;
  /* 画像とテキストの間 */
}

.section-title .favicon {
  display: inline-block;
  width: 32px;
  height: 32px;
}

/* ========= ガイド ========= */

.tool-guide {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========= URL入力を目立たせる ========= */

#urlInput {
  font-size: 1.05rem;
  padding: 10px;
  border: 2px solid #2196f3;
}

/* ========= ボタン色分け ========= */

.yt-btn.primary {
  background: #2196f3;
  color: #fff;
  border-color: #2196f3;
}

.yt-btn.success {
  background: #4caf50;
  color: #fff;
  border-color: #4caf50;
}

.yt-btn.primary:hover,
.yt-btn.success:hover,
.yt-btn.danger:hover {
  opacity: 0.85;
}

/* 青のサブアクション */

.yt-btn.secondary {
  background: #e3f2fd;
  /* 薄い青 */
  color: #1565c0;
  /* 濃い青文字 */
  border-color: #90caf9;
}

.yt-btn.secondary:hover {
  background: #bbdefb;
}

.site-footer {
  text-align: center;
  padding: 30px 0;
  color: #9ca3af;
}

.nav-container {
  max-width: 900px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  color: #9ca3af;
  text-decoration: none;
}

.site-header nav a {
  color: #9ca3af;
  margin-left: 16px;
  text-decoration: none;
}