/*
 * IDM YouTube System styles.
 *
 * Put this file at: wp-content/mu-plugins/idm-youtube.css
 * Loaded by idm-youtube-system.php via wp_enqueue_style().
 */

.idm-comment-lang-box {
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  border-radius: 0;
  padding: 14px 16px;
  margin: 22px 0;
  color: #bbbbbb;
  font-size: 13px;
}

.idm-lang-summary-bar {
  display: flex;
  width: 100%;
  height: 16px;
  background: #2b2b2b;
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 14px;
}

.idm-lang-summary-bar span {
  display: block;
  height: 100%;
  box-sizing: border-box;
}

.idm-lang-summary-bar span + span {
  border-left: 1px solid rgba(255,255,255,0.28);
}

.idm-lang-detail-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
}

.idm-lang-detail-text-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  color: #aaaaaa;
  font-size: 12px;
}

.idm-lang-detail-value {
  color: #aaaaaa;
  white-space: nowrap;
}

.idm-lang-history-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.idm-lang-history-sample {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.idm-lang-history-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: center;
}

.idm-lang-history-date {
  color: #777777;
  font-size: 11px;
  white-space: nowrap;
}

.idm-lang-history-bar {
  display: flex;
  width: 100%;
  height: 14px;
  background: #2b2b2b;
  overflow: hidden;
  border-radius: 0;
}

.idm-lang-history-bar span {
  display: block;
  height: 100%;
  box-sizing: border-box;
}

.idm-lang-history-bar span + span {
  border-left: 1px solid rgba(255,255,255,0.22);
}

.idm-lang-history-text {
  padding-left: 100px;
  color: #888888;
  font-size: 11px;
  line-height: 1.6;
}

.idm-lang-history-text-item {
  display: inline-block;
  margin-right: 10px;
  white-space: nowrap;
}

@media (max-width: 768px) {

  .idm-lang-history-row {
    grid-template-columns: 75px 1fr;
  }

  .idm-lang-history-text {
    padding-left: 85px;
  }
}

.idm-lang-history-text-item.is-sample {
  color: #666666;
  margin-left: 4px;
}

.idm-lang-history-bar span + span {
  border-left: 1px solid rgba(255,255,255,0.28);
}

:root {
  --idm-ja-color:    #666666;
  --idm-en-color:    #3b6b05;
  --idm-other-color: #505806;
  --idm-und-color:   #666666;
}

.idm-lang-ja {
  background: var(--idm-ja-color);
}

.idm-lang-en {
  background: var(--idm-en-color);
}

.idm-lang-other,
.idm-lang-generic {
  background: var(--idm-other-color);
}

.idm-lang-unclassified {
  background: var(--idm-und-color);
}

.idm-lang-history-text-item.lang-ja {
  color: var(--idm-ja-color);
}

.idm-lang-history-text-item.lang-en {
  color: var(--idm-en-color);
}

.idm-lang-history-text-item.lang-other-lang {
  color: var(--idm-other-color);
}

.idm-lang-history-text-item.lang-unclassified {
  color: var(--idm-und-color);
}

/* ---------- Top international comments bar ---------- */

.idm-comment-mini-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none !important;
  color: #999999 !important;
  font-size: 11.5px;
  line-height: 1.4;
}

.idm-comment-mini-title,
.idm-comment-mini-pct {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #aaaaaa;
  white-space: nowrap;
}

.idm-comment-mini-bar {
  display: block;
  width: 120px;
  height: 7px;
  background: #333333;
  overflow: hidden;
  border-radius: 0;
}

.idm-comment-mini-intl {
  display: block;
  height: 100%;
  background: #9a9a9a;
  border-radius: 0;
}

.idm-comment-intl-mini:hover {
  opacity: 0.85;
}

.idm-comment-mini-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none !important;
  color: #999999 !important;
}

.idm-comment-mini-bar {
  display: block;
  width: 120px;
  height: 8px;
  background: #333333;
  overflow: hidden;
  border-radius: 0;
}

.idm-comment-mini-intl {
  display: block;
  height: 100%;
  background: #9a9a9a;
  border-radius: 0;
}

.idm-comment-mini-wrap {
    margin-top: 13px;
}

