/* YouTube metadata extractor — no video/audio download UI */

.ym-board {
  margin-bottom: 28px;
}

.ym-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .ym-form__row {
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }
}

.ym-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  outline: none;
}

.ym-input:focus {
  border-color: var(--theme);
}

.ym-extract-btn {
  min-height: 48px;
  min-width: 120px;
  justify-content: center;
}

.ym-status {
  min-height: 1.35em;
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.ym-status.is-error {
  color: #be123c;
}

.ym-status.is-ok {
  color: var(--theme-deep);
}

.ym-result {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.ym-result[hidden] {
  display: none !important;
}

.ym-overview {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  align-items: start;
}

@media (min-width: 720px) {
  .ym-overview {
    grid-template-columns: minmax(0, 30%) minmax(0, 70%);
    gap: 18px;
  }
}

.ym-thumb-wrap {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.ym-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.ym-thumb[hidden],
.ym-thumb-dl[hidden] {
  display: none !important;
}

.ym-thumb-dl {
  width: 100%;
  justify-content: center;
}

.ym-overview__meta {
  min-width: 0;
}

.ym-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--theme-dim);
  color: var(--theme-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ym-badge[hidden] {
  display: none !important;
}

.ym-title {
  margin: 0 0 8px;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.ym-channel,
.ym-stats {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

.ym-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.ym-section[hidden] {
  display: none !important;
}

.ym-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ym-section__head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.ym-copybox {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}

.ym-copybox--pre {
  white-space: pre-wrap;
  font-family: inherit;
  max-height: 280px;
  overflow: auto;
}

.btn.is-copied {
  border-color: var(--theme);
  color: var(--theme-deep);
}
