.we-credit-dialog[open] {
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 20px 24px 16px;
  border: 1px solid var(--border, #e4e4e7);
  border-radius: 12px;
  background: var(--popover, white);
  color: var(--foreground, #18181b);
  box-shadow: 0 4px 14px #0002;
}
.we-credit-dialog::backdrop { background: rgb(0 0 0 / 46%); backdrop-filter: blur(2px); }
.we-credit-dialog form { display: grid; gap: 16px; }
.we-credit-model { display:grid; gap:5px; }
.we-credit-model select { min-width:0; width:100%; padding:7px 10px; border:1px solid var(--border,#e4e4e7); border-radius:8px; background:var(--background,#fff); color:inherit; font:inherit; }
.we-credit-model select:hover { border-color:#93b3c9; }
.we-credit-model select:focus-visible { outline:2px solid #89aedf; outline-offset:2px; }
.we-credit-dialog header, .we-credit-dialog dl div { display: flex; align-items: center; justify-content: space-between; }
.we-credit-dialog h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 26px; }
.we-credit-dialog header button { padding: 0; border: 0; color: var(--muted-foreground); background: transparent; font-size: 22px; }
.we-credit-dialog p, .we-credit-dialog dt, .we-credit-dialog dd { margin: 0; }
.we-credit-description, .we-credit-dialog dt { color: var(--muted-foreground, #71717a); }
.we-credit-dialog form { font-size: 14px; line-height: 20px; }
.we-credit-dialog dl { margin: 0; padding: 10px 12px; border: 1px solid var(--border, #e4e4e7); border-radius: 8px; background: var(--muted, #fafafa); }
.we-credit-dialog dl div + div { margin-top: 8px; }
.we-credit-dialog dd { font-variant-numeric: tabular-nums; }
.we-credit-dialog footer { display: flex; justify-content: flex-end; gap: 12px; }
.we-credit-dialog footer button { min-height: 36px; padding: 6px 14px; border-radius: 8px; border: 1px solid var(--border, #e4e4e7); background: var(--background, #fff); }

.we-credit-dialog button { cursor: pointer; }
.we-credit-dialog button:disabled { opacity: .5; cursor: default; }
.we-credit-dialog button:focus-visible { outline: 2px solid #89aedf; outline-offset: 2px; }
.we-credit-error { color: var(--muted-foreground, #71717a); }
.we-credit-items {list-style:none; margin:0; padding:0; max-height:30vh; overflow:auto;}
.we-credit-items li {display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:4px 0;}
.we-credit-items li span:last-child {white-space:nowrap;}
.vp-dialog[open] { border: 0; }
.vp-dialog[aria-label="字幕擦除"] > [data-slot=dialog-content] { width:min(30rem, calc(100vw - 1.5rem)); }
.vp-dialog[aria-label="选择超分参数"] > [data-slot=dialog-content] { width:min(28rem, calc(100vw - 1.5rem)); }
.vp-dialog::backdrop { background:rgb(0 0 0 / 45%); backdrop-filter:blur(2px); }
.vp-dialog .vp-note { font-size:.8rem; color:var(--muted-foreground); }
.vp-dialog .vp-note:empty { display:none; }
.vp-select { position:relative; }
.vp-select select { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.vp-dialog h2[tabindex="-1"]:focus {outline:none;}
@media (hover:hover) {
  .vp-dialog .video-wrapper:not(:hover):not(:focus-within) .controls-bar {opacity:0;pointer-events:none;}
}

.vp-dialog[aria-label="字幕擦除"] .vp-note {
  margin:0;
  line-height:1.5;
  overflow-wrap:anywhere;
}
