/* Watch-page controls and discussion. All styles stay inside the plugin. */
.ofmux-embed [hidden] { display: none !important; }
.ofmux-embed .ofmux-watch-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.ofmux-embed .ofmux-watch-meta { gap: 12px; margin: 0; font-size: 13px; line-height: 1.5; }
.ofmux-embed .ofmux-watch-meta > * + *::before { content: "·"; margin-inline-end: 12px; }
.ofmux-embed .ofmux-actions { gap: 10px; margin: 0; }
.ofmux-embed .ofmux-reaction-group { display: inline-flex; align-items: center; border: 1px solid var(--ofmux-line); border-radius: 999px; overflow: hidden; }
.ofmux-embed .ofmux-action-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--ofmux-surface); color: inherit; font: inherit; font-size: 13px; font-weight: 600; line-height: 20px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.ofmux-embed .ofmux-reaction-group .ofmux-action-button { border-radius: 0; }
.ofmux-embed .ofmux-reaction-group .ofmux-action-button + .ofmux-action-button { border-inline-start: 1px solid var(--ofmux-line); }
.ofmux-embed .ofmux-action-button:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.ofmux-embed .ofmux-action-button[aria-pressed=true] { background: #25262b; color: #fff; }
.ofmux-embed .ofmux-action-count { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; opacity: .72; }
.ofmux-embed .ofmux-share-button { border: 1px solid var(--ofmux-line); }
.ofmux-embed .ofmux-icon { display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; mask: var(--ofmux-icon) center / contain no-repeat; }
.ofmux-embed .ofmux-icon-thumbs-up { --ofmux-icon: url("icons/thumbs-up.svg"); }
.ofmux-embed .ofmux-icon-thumbs-down { --ofmux-icon: url("icons/thumbs-down.svg"); }
.ofmux-embed .ofmux-icon-share-2 { --ofmux-icon: url("icons/share-2.svg"); }
.ofmux-embed .ofmux-action-feedback { font-size: 12px; line-height: 1.5; margin: 8px 0 0; overflow-wrap: anywhere; }
.ofmux-embed .ofmux-action-feedback:empty { display: none; }
.ofmux-embed .ofmux-watch-main > h1 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 650; letter-spacing: -.025em; line-height: 1.25; margin: 20px 0 12px; }
.ofmux-embed .ofmux-description { border-radius: 10px; margin: 24px 0 0; padding: 18px 20px; }
.ofmux-embed .ofmux-description h2 { font-size: 14px; font-weight: 650; margin: 0 0 8px; }
.ofmux-embed .ofmux-description > p { font-size: 14px; font-weight: 400; line-height: 1.65; margin: 0; overflow-wrap: anywhere; }
.ofmux-embed .ofmux-description .ofmux-tags { margin-top: 14px; }
.ofmux-embed .ofmux-discussion { max-width: 960px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ofmux-line); }
.ofmux-embed .ofmux-discussion-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; letter-spacing: -.02em; line-height: 1.4; margin: 0 0 24px; }
.ofmux-embed .ofmux-comment-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 2px 8px; border-radius: 6px; background: var(--ofmux-surface); font-size: 12px; font-weight: 500; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ofmux-embed .ofmux-avatar { display: block; flex-shrink: 0; width: 40px; height: 40px; max-width: none; margin: 0; padding: 0; object-fit: cover; border-radius: 50%; background: #e9eaed; }
.ofmux-embed .ofmux-avatar.is-default { padding: 10px; opacity: .8; }
.ofmux-embed .ofmux-comment-form { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 14px; margin: 0 0 24px; }
.ofmux-embed .ofmux-composer-fields { min-width: 0; }
.ofmux-embed .ofmux-comment-form label { display: flex; flex-direction: column; gap: 8px; width: auto; font-size: 13px; line-height: 1.5; font-weight: 600; }
.ofmux-embed .ofmux-comment-form textarea, .ofmux-embed .ofmux-comment-edit textarea { display: block; width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--ofmux-line); border-radius: 10px; padding: 12px 14px; background: transparent; font: inherit; font-size: 14px; font-weight: 400; line-height: 1.6; box-shadow: none; }
.ofmux-embed .ofmux-comment-form textarea:focus, .ofmux-embed .ofmux-comment-edit textarea:focus { border-color: currentColor; outline: 2px solid var(--ofmux-line); outline-offset: 2px; }
.ofmux-embed .ofmux-comment-form > .ofmux-avatar { margin-top: 28px; }
.ofmux-embed .ofmux-form-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ofmux-embed .ofmux-form-actions .ofmux-button { min-height: 38px; border-radius: 8px; padding: 8px 16px; font-size: 13px; line-height: 20px; }
.ofmux-embed .ofmux-button-primary { background: #25262b; border-color: #25262b; color: #fff; }
.ofmux-embed .ofmux-button-primary:hover { background: #414249; border-color: #414249; }
.ofmux-embed .ofmux-text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; border: 0; border-radius: 6px; padding: 6px 8px; background: transparent; color: inherit; font: inherit; font-size: 12px; line-height: 20px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ofmux-embed .ofmux-text-button:hover { background: var(--ofmux-surface); }
.ofmux-embed .ofmux-delete-comment { opacity: .65; }
.ofmux-embed .ofmux-delete-comment:hover { opacity: 1; color: #b42318; }
.ofmux-embed .ofmux-guest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ofmux-embed .ofmux-discussion-note { font-size: 13px; font-weight: 400; line-height: 1.6; opacity: .68; margin: 12px 0; }
.ofmux-embed .ofmux-discussion-feedback { font-size: 13px; font-weight: 500; line-height: 1.5; margin: 0 0 20px 54px; overflow-wrap: anywhere; }
.ofmux-embed .ofmux-discussion-feedback:empty { display: none; }
.ofmux-embed .ofmux-comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 14px; padding: 16px 0; border: 0; margin: 0; }
.ofmux-embed .ofmux-comment-content { min-width: 0; }
.ofmux-embed .ofmux-comment-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px; line-height: 1.5; }
.ofmux-embed .ofmux-comment-header strong { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.ofmux-embed .ofmux-comment-header time { font-size: 12px; font-weight: 400; opacity: .62; }
.ofmux-embed .ofmux-comment-text { width: auto; font-size: 15px; font-weight: 400; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.ofmux-embed .ofmux-comment-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 6px 0 0 -8px; }
.ofmux-embed .ofmux-comment-reactions { display: inline-flex; align-items: center; gap: 2px; margin-inline-end: 6px; }
.ofmux-embed .ofmux-comment-reaction { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 12px; line-height: 20px; text-decoration: none; cursor: pointer; font-variant-numeric: tabular-nums; }
.ofmux-embed .ofmux-comment-reaction .ofmux-icon { width: 16px; height: 16px; }
.ofmux-embed .ofmux-comment-reaction:hover { background: var(--ofmux-surface); }
.ofmux-embed .ofmux-comment-reaction[aria-pressed=true] { background: #25262b; color: #fff; }
.ofmux-embed .ofmux-comment-reaction:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ofmux-embed .ofmux-comment-reaction:disabled { opacity: .5; cursor: wait; }
.ofmux-embed .ofmux-comment.is-reply { margin-inline-start: 54px; border: 0; padding-inline-start: 0; }
.ofmux-embed .ofmux-comment.is-reply > .ofmux-avatar { width: 32px; height: 32px; margin-inline: 4px; }
.ofmux-embed .ofmux-comment .ofmux-reply-context { font-size: 12px; line-height: 1.5; opacity: .6; margin: 0 0 6px; }
.ofmux-embed .ofmux-comment-edit { margin: 10px 0; }
.ofmux-embed .ofmux-comments[aria-busy=true] { opacity: .6; pointer-events: none; }
@container (max-width: 520px) {
  .ofmux-embed .ofmux-watch-toolbar { align-items: flex-start; gap: 14px; }
  .ofmux-embed .ofmux-actions { gap: 8px; }
  .ofmux-embed .ofmux-action-button { min-height: 44px; padding-inline: 12px; gap: 6px; }
  .ofmux-embed .ofmux-comment-form, .ofmux-embed .ofmux-comment { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .ofmux-embed .ofmux-avatar { width: 32px; height: 32px; }
  .ofmux-embed .ofmux-avatar.is-default { padding: 8px; }
  .ofmux-embed .ofmux-comment.is-reply { margin-inline-start: 20px; }
  .ofmux-embed .ofmux-comment.is-reply > .ofmux-avatar { margin: 0; }
  .ofmux-embed .ofmux-discussion-feedback { margin-inline-start: 42px; }
  .ofmux-embed .ofmux-text-button { min-height: 40px; }
  .ofmux-embed .ofmux-comment-reaction { min-height: 40px; }
  .ofmux-embed .ofmux-guest-fields { grid-template-columns: 1fr; }
  .ofmux-embed .ofmux-description { padding: 16px; }
}
