#tp-ytcd .tp-ytcd-tagline { margin: 0 0 28px; }

#tp-ytcd {
  --ytcd-accent: #0090c5;
  --ytcd-border: #ddd;
  --ytcd-soft: #f5f5f5;
  margin-inline: 15px;
  color: #1f292a;
}

#tp-ytcd [hidden] { display: none !important; }
#tp-ytcd .tp-ytcd-sort-options,
#tp-ytcd .tp-ytcd-export {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#tp-ytcd label { display: grid; gap: 4px; min-width: 0; font-weight: 600; }
#tp-ytcd .tp-ytcd-check { display: flex; align-items: center; margin-top: 8px; }
#tp-ytcd .tp-ytcd-check input { width: 24px; height: 24px; vertical-align: middle; margin: 0 0.5em 0 0; }

#tp-ytcd-load .tp-ytcd-check { justify-content: center; margin-top: 14px; }
#tp-ytcd-load .tp-ytcd-captcha,
#tp-ytcd-load .tp-ytcd-guest-messages,
#tp-ytcd-load .tp-ytcd-guest-messages + .tp-ytcd-primary { margin-top: 24px; }
#tp-ytcd-load .tp-ytcd-primary { margin-top: 16px; }

#tp-ytcd-filters input:not([type="checkbox"]) {
  box-sizing: border-box;
  min-width: 0;
  min-height: 38px;
  height: auto;
  margin: 0;
  padding: 6px 10px;
  font: inherit;
  line-height: 1.35;
  color: inherit;
  background: #fff;
  border: 1px solid var(--ytcd-border);
  border-radius: 5px;
  box-shadow: none;
}

#tp-ytcd-filters input:not([type="checkbox"]) { width: 100%; }
#tp-ytcd-video {
  width: min(100%, 424px);
  border-radius: 0;
}

#tp-ytcd :is(.tp-ytcd-primary, [data-export]) {
  min-height: 44px;
  height: auto;
  padding: 14px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  background: var(--ytcd-accent);
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

#tp-ytcd button:not(:disabled), #tp-ytcd summary { cursor: pointer; }
#tp-ytcd button:disabled { opacity: 0.6; }
#tp-ytcd :is(button, summary, a):focus-visible { outline: 2px solid var(--ytcd-accent); outline-offset: 2px; }

#tp-ytcd .tp-ytcd-panel {
  margin: 0 0 24px;
  padding-inline: clamp(12px, 4vw, 24px);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

#tp-ytcd .tp-ytcd-export { justify-content: center; }
#tp-ytcd [data-export] { box-sizing: border-box; width: min(100%, 168px); }
#tp-ytcd .tp-ytcd-sort-options button {
  min-height: 34px;
  height: auto;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  /* The shared theme sets the default button background with !important. */
  background: #b6bec6 !important;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

#tp-ytcd .tp-ytcd-sort-options [aria-pressed="true"] {
  background: var(--ytcd-accent) !important;
}
#tp-ytcd-cap { padding-inline: 20px; background: var(--ytcd-soft); }
#tp-ytcd a { text-underline-offset: 2px; }
#tp-ytcd #tp-ytcd-cap a { color: #f98700; }

#tp-ytcd .tp-ytcd-advanced { position: relative; margin-top: 20px; }
#tp-ytcd-filters summary { width: fit-content; font-weight: 650; }
#tp-ytcd .tp-ytcd-filter-groups { display: grid; gap: 16px; }
#tp-ytcd-filters fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
#tp-ytcd .tp-ytcd-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
}
#tp-ytcd .tp-ytcd-fields .tp-ytcd-check { min-height: 38px; margin: 0; }
#tp-ytcd button#tp-ytcd-clear-filters {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
}
#tp-ytcd button:is(.tp-ytcd-clear, .tp-ytcd-read-more) {
  height: auto;
  background: transparent !important;
  color: #006d94;
  box-shadow: none;
  font: inherit;
  text-decoration: underline;
  text-transform: none;
}
#tp-ytcd button#tp-ytcd-clear-export-filters,
#tp-ytcd button.tp-ytcd-reply-filter { padding: 0; }

@media (max-width: 560px) {
  #tp-ytcd .tp-ytcd-fields { grid-template-columns: minmax(0, 1fr); }
}
#tp-ytcd .tp-ytcd-table-wrap { overflow-x: auto; }
#tp-ytcd table { width: 100%; min-width: 450px; border-collapse: separate; border-spacing: 0; margin: 0; font-size: 0.9em; }
#tp-ytcd th, #tp-ytcd td { padding: 8px; vertical-align: top; text-align: left; border: 0; }
/* The shared theme removes table cell borders with !important. */
#tp-ytcd td { border-bottom: 1px solid var(--ytcd-border) !important; }
#tp-ytcd th { background: var(--ytcd-soft); white-space: nowrap; }
#tp-ytcd :is(th, td):first-child { width: 54%; }
#tp-ytcd td:nth-child(2) { overflow-wrap: anywhere; }
#tp-ytcd th:nth-child(n+3) { width: 1%; }
#tp-ytcd td time, #tp-ytcd .tp-ytcd-number { white-space: nowrap; }
#tp-ytcd .tp-ytcd-number { text-align: right; font-variant-numeric: tabular-nums; }
#tp-ytcd tbody tr { background: #fff; }
#tp-ytcd tbody:not(.tp-ytcd-threads) tr:nth-child(even),
#tp-ytcd tbody .tp-ytcd-stripe { background: var(--ytcd-soft); }
#tp-ytcd .tp-ytcd-reply { display: flex; align-items: baseline; gap: 6px; }
#tp-ytcd .tp-ytcd-comment-preview { min-width: 0; }
#tp-ytcd .tp-ytcd-comment-text { overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.5; }
#tp-ytcd .tp-ytcd-comment-text:not(.is-expanded) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  max-height: 6em;
  overflow: hidden;
}
#tp-ytcd button.tp-ytcd-read-more {
  padding: 3px 0;
  font-weight: 600;
}
#tp-ytcd .tp-ytcd-reply-arrow { flex: none; }
#tp-ytcd .tp-ytcd-threads .tp-ytcd-reply-cell { padding-inline-start: 18px; }
#tp-ytcd .tp-ytcd-thread-start:not(:first-child) td { border-top: 2px solid var(--ytcd-border) !important; }
#tp-ytcd .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#tp-ytcd .tp-turnstile-status-error,
#tp-ytcd .tp-turnstile-status-notice { color: #ff0000; }

#tp-ytcd-loading:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(17, 17, 17, 0.6);
}

.tp-ytcd-loading-card {
  box-sizing: border-box;
  width: 260px;
  max-width: 100%;
  padding-inline: 28px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.tp-ytcd-loading-card i { font-size: 30px; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) {
  .tp-ytcd-loading-card .fa-spin,
  #tp-ytcd-export-status .fa-spin { animation: none; }
}

@media (pointer: coarse) {
  #tp-ytcd-video, #tp-ytcd-filters input:not([type="checkbox"]), #tp-ytcd .tp-ytcd-sort-options button { min-height: 44px; }
  #tp-ytcd .tp-ytcd-check { min-height: 36px; }
}
