.dtv {
  --dtv-primary: #b52328;
  --dtv-primary-hover: #901b20;
  --dtv-text: #24262a;
  --dtv-muted: #595d65;
  --dtv-surface: #ffffff;
  --dtv-soft: #f4f5f7;
  --dtv-border: #d9dce1;
  --dtv-error: #a51d22;
  --dtv-focus: #1752b7;
  --dtv-radius: 10px;
  color: var(--dtv-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  scrollbar-color: var(--dtv-muted) var(--dtv-soft);
  scrollbar-width: auto;
}
.dtv *, .dtv *::before, .dtv *::after { box-sizing: border-box; }
.dtv [hidden] { display: none !important; }
.dtv ::-webkit-scrollbar { width: 12px; height: 12px; }
.dtv ::-webkit-scrollbar-track { background: var(--dtv-soft); }
.dtv ::-webkit-scrollbar-thumb { background: var(--dtv-muted); border: 3px solid var(--dtv-soft); border-radius: var(--dtv-radius); }
.dtv ::-webkit-scrollbar-thumb:hover { background: var(--dtv-text); }
.dtv ::-webkit-scrollbar-thumb:active { background: var(--dtv-primary); }
.dtv :is(a,button,input,video):focus-visible { outline: 3px solid var(--dtv-focus); outline-offset: 4px; }
.dtv button, .dtv a, .dtv input[type=file] { cursor: pointer; }
.dtv button:disabled, .dtv input:disabled { cursor: wait; opacity: .6; }
.dtv .dtv-kicker { color: var(--dtv-primary); font-size: 13px; font-weight: 700; letter-spacing: .12em; margin: 0 0 12px; }
.dtv-control { max-width: 1100px; margin: 40px auto; padding: clamp(20px,4vw,48px); background: var(--dtv-surface); border: 1px solid var(--dtv-border); border-top: 4px solid var(--dtv-primary); border-radius: var(--dtv-radius); }
.dtv-control .dtv-header { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; margin-bottom: 36px; }
.dtv-control h2 { font-family: "Arial Narrow", Arial, sans-serif; font-size: clamp(28px,4vw,42px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; margin: 0 0 16px; }
.dtv-control h3 { font-size: 21px; line-height: 1.3; margin: 16px 0 8px; }
.dtv p { margin-top: 0; }
.dtv .dtv-link { flex-shrink: 0; color: var(--dtv-primary); text-decoration: underline; text-underline-offset: 4px; }
.dtv .dtv-link:hover { color: var(--dtv-primary-hover); }
.dtv-form { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: clamp(24px,5vw,64px); margin: 0; }
.dtv-fields label { display: block; font-weight: 700; margin: 0 0 8px; }
.dtv-fields label span { color: var(--dtv-muted); font-weight: 400; }
.dtv-fields input[type=text] { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--dtv-border); background: var(--dtv-surface); color: var(--dtv-text); border-radius: var(--dtv-radius); font: inherit; }
.dtv-fields input[type=file] { width: 100%; min-height: 48px; padding: 12px; border: 1px dashed var(--dtv-border); border-radius: var(--dtv-radius); background: var(--dtv-soft); color: var(--dtv-text); font: inherit; }
.dtv-fields input[type=file]:hover { border-color: var(--dtv-muted); }
.dtv-fields input::file-selector-button { margin-right: 12px; padding: 8px 12px; background: var(--dtv-surface); color: var(--dtv-text); border: 1px solid var(--dtv-border); border-radius: var(--dtv-radius); font: inherit; cursor: pointer; }
.dtv .dtv-help { color: var(--dtv-muted); font-size: 14px; margin: 8px 0 12px; }
.dtv .dtv-error { min-height: 22px; color: var(--dtv-error); font-size: 14px; margin: 4px 0 18px; }
.dtv [aria-invalid=true] { border-color: var(--dtv-error) !important; }
.dtv .dtv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dtv .dtv-button, .dtv .dtv-secondary { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 18px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.5; border: 1px solid var(--dtv-primary); border-radius: var(--dtv-radius); text-decoration: none; transition: background-color .15s; }
.dtv .dtv-button { color: var(--dtv-surface); background: var(--dtv-primary); }
.dtv .dtv-button:hover:not(:disabled) { color: var(--dtv-surface); background: var(--dtv-primary-hover); }
.dtv .dtv-secondary { color: var(--dtv-text); background: var(--dtv-surface); border-color: var(--dtv-border); }
.dtv .dtv-secondary:hover:not(:disabled) { background: var(--dtv-soft); border-color: var(--dtv-muted); }
.dtv .dtv-button:active:not(:disabled), .dtv .dtv-secondary:active:not(:disabled) { transform: translateY(1px); }
.dtv .dtv-notice { min-height: 52px; margin: 18px 0 0; overflow-wrap: anywhere; }
.dtv .dtv-notice.dtv-is-error { color: var(--dtv-error); }
.dtv .dtv-progress { margin-top: 20px; }
.dtv progress { width: 100%; accent-color: var(--dtv-primary); }
.dtv-preview { padding: 20px; background: var(--dtv-soft); border-radius: var(--dtv-radius); align-self: start; }
.dtv-preview-frame { position: relative; aspect-ratio: 9/16; border-radius: var(--dtv-radius); overflow: hidden; background: var(--dtv-border); }
.dtv-preview-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.dtv-preview-frame [data-preview-empty] { position: absolute; inset: 30% 20px auto; text-align: center; color: var(--dtv-text); pointer-events: none; }
.dtv [data-preview-title] { overflow-wrap: anywhere; }
.dtv-library { border-top: 1px solid var(--dtv-border); margin-top: 32px; padding-top: 20px; }
.dtv-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--dtv-border); padding: 16px 0; }
.dtv-row div { min-width: 0; }
.dtv-row strong { display: block; overflow-wrap: anywhere; }
.dtv-row span { display: block; font-size: 14px; color: var(--dtv-muted); }
.dtv-row button { flex-shrink: 0; }
.dtv-row-copy { flex: 1; }
.dtv .dtv-row-cover { flex-shrink: 0; width: 56px; height: 80px; object-fit: cover; object-position: center; border-radius: var(--dtv-radius); }
.dtv-row .dtv-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dtv-edit-form { padding: 24px; margin: 24px 0; background: var(--dtv-soft); border: 1px solid var(--dtv-border); border-radius: var(--dtv-radius); }
.dtv-edit-form h4 { font-size: 21px; line-height: 1.3; margin: 0 0 20px; }
.dtv-edit-layout { display: grid; grid-template-columns: minmax(0,1fr) 160px; gap: 24px; }
.dtv .dtv-edit-preview img { display: block; width: 100%; aspect-ratio: 9/16; object-fit: cover; object-position: center; border-radius: var(--dtv-radius); }
.dtv-edit-form progress { margin-top: 16px; }
.dtv-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; }
.dtv-card { min-width: 0; }
.dtv-card video { width: 100%; display: block; aspect-ratio: 9/16; object-fit: contain; background: var(--dtv-soft); border-radius: var(--dtv-radius); }
.dtv .dtv-card video[poster]:not([data-thor-started]),
.dtv .dtv-preview-frame video[poster]:not([data-thor-started]) { object-fit: cover; object-position: center; }
.dtv-card h3 { color: inherit; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.4; text-transform: uppercase; margin: 14px 0 0; overflow-wrap: anywhere; }
.dtv-empty { grid-column: 1/-1; }
.dtv-gallery [data-load-more] { margin-top: 12px; }
@media (max-width: 900px) { .dtv-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .dtv-control { margin: 20px auto; }
  .dtv-control .dtv-header { display: block; }
  .dtv-header .dtv-link { display: inline-block; margin-top: 8px; }
  .dtv-form { grid-template-columns: minmax(0,1fr); }
  .dtv-preview { max-width: 320px; width: 100%; margin: auto; }
  .dtv-row { align-items: flex-start; }
  .dtv-row { flex-wrap: wrap; }
  .dtv-row .dtv-row-actions { width: 100%; }
  .dtv-row button { max-width: none; }
  .dtv-edit-form { padding: 16px; }
  .dtv-edit-layout { grid-template-columns: minmax(0,1fr); }
  .dtv-edit-preview { max-width: 160px; }
  .dtv-grid { gap: 24px 14px; }
  .dtv-card h3 { font-size: 16px; }
}
@media (max-width: 380px) { .dtv-grid { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { .dtv *, .dtv *::before, .dtv *::after { transition: none !important; } }
@media (forced-colors: active) { .dtv { scrollbar-color: auto; } .dtv ::-webkit-scrollbar-thumb { background: ButtonText; } }
