/* ============================================================
   MOD-174-16 · YouTube publish date, view count and refresh UI
============================================================ */

.mod17416-youtube-meta,
.mod17416-list-youtube-meta {
  color: #66758b;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.55;
}

.mod17416-youtube-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.mod17416-meta-separator { color: #a1abba; padding: 0 4px; }
.mod17416-view-count { cursor: help; }

/* MOD-174-17: public education source metadata is distinct from FineTS dates. */
.mod17417-youtube-source-meta {
  display: grid;
  min-width: 0;
  gap: 2px;
  justify-items: end;
  color: #596980;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.mod17417-youtube-source-meta > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mod17417-youtube-source-meta time { color: #334155; }
.mod17417-youtube-view-count { color: #334155; cursor: help; }

.mod17418-view-meta {
  display: grid;
  min-width: 0;
  gap: 3px;
  justify-items: end;
  color: #596980;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.mod17418-finets-view-count {
  color: #2454a6;
  overflow-wrap: anywhere;
}

.mod17414-table { min-width: 760px; }
.mod17414-table th:nth-child(1) { width: 58px; }
.mod17414-table th:nth-child(2) { width: auto; }
.mod17414-table th:nth-child(3) { width: 112px; }
.mod17414-table th:nth-child(4) { width: 230px; }
.mod17414-title-cell > div { align-items: center; }
.mod17414-title-copy { min-width: 0; }
.mod17414-title-copy > strong { display: block; }
.mod17414-channel { color: #596980; font-size: .76rem; margin: 4px 0 0; }
.mod17414-exact-url {
  color: #77869a;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .67rem;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.mod17414-url-link.btn { display: inline-flex; text-decoration: none; width: auto; }
.mod17414-card-thumbnail { aspect-ratio: 16 / 9; border-radius: 9px; margin-top: 12px; object-fit: cover; width: 100%; }

.mod17416-original-title { color: #1f5faf; display: block; font-size: .72rem; margin-top: 7px; }
.mod17416-source-metadata > div { min-width: min(190px, 100%); }
.mod17416-source-metadata dd { overflow-wrap: anywhere; }

.mod17416-list-youtube-meta {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.mod17410-table.is-compact .mod17410-title-cell .mod17407-title { text-align: left; }
.mod17416-group-title { min-width: 0; }
.mod17416-group-title > span:first-child { display: block; }

.mod17416-drawer-youtube {
  background: #f7faff;
  border: 1px solid #d9e6f7;
  border-radius: 10px;
  margin-top: 10px;
  padding: 12px;
}
.mod17416-drawer-youtube h3 { color: #29476f; font-size: .82rem; font-weight: 850; margin: 0 0 7px; }
.mod17416-drawer-youtube > a { display: block; font-size: .7rem; overflow-wrap: anywhere; }
.mod17416-drawer-youtube dl { display: grid; gap: 7px; margin: 11px 0; }
.mod17416-drawer-youtube dl > div { display: grid; gap: 6px; grid-template-columns: 120px minmax(0, 1fr); }
.mod17416-drawer-youtube dt { color: #75849a; font-size: .68rem; }
.mod17416-drawer-youtube dd { color: #29405f; font-size: .7rem; font-weight: 750; margin: 0; overflow-wrap: anywhere; }
.mod17416-refresh-status { color: #27704f; font-size: .7rem; margin: 8px 0 0; }
.mod17416-refresh-status:empty { display: none; }
.mod17416-refresh-status.is-error { color: #a3332b; }

@media (max-width: 991.98px) {
  .mod17417-youtube-source-meta,
  .mod17418-view-meta {
    justify-items: start;
    text-align: left;
  }
  .mod17414-table-wrap { display: none; }
  .mod17414-cards { display: grid; gap: 12px; margin-top: 16px; }
  .mod17414-card { background: #fff; border: 1px solid #e0e6ef; border-radius: 13px; min-width: 0; padding: 16px; }
  .mod17414-card.is-selected { background: #edf5ff; border-color: #9dc4fa; }
  .mod17414-card-top { align-items: center; display: flex; justify-content: space-between; }
  .mod17414-card h3 { color: #243650; font-size: 1rem; line-height: 1.45; margin: 13px 0 4px; }
  .mod17414-card-channel { color: #617087; font-size: .83rem; margin: 0; }
  .mod17414-card-url { background: #f5f8fd; border-radius: 9px; margin-top: 12px; padding: 12px; }
  .mod17414-prefill dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .mod17417-youtube-source-meta,
  .mod17418-view-meta {
    justify-items: end;
    max-width: 13rem;
    text-align: right;
  }
  .mod17414-prefill dl { grid-template-columns: 1fr; }
  .mod17416-source-metadata { display: grid !important; gap: 8px !important; grid-template-columns: 1fr; }
  .mod17416-source-metadata > div { display: grid !important; gap: 2px !important; min-width: 0; }
  .mod17416-drawer-youtube dl > div { grid-template-columns: 1fr; }
}
