/* Adreviso skin: the original comparison mechanics remain isolated from site CSS. */
:root {
  color-scheme: light;
  --bg: #fff;
  --bg-soft: #f4f7fc;
  --panel: #fff;
  --panel-border: #dce5f0;
  --text: #122340;
  --muted: #536780;
  --accent: #2769e8;
  --accent-strong: #174fba;
  --danger: #b92d40;
  --shadow: 0 8px 28px #18356208;
}
body {
  min-height: 0;
  background: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.app-shell {
  width: 100%;
  padding: 2px 0 12px;
}
.panel {
  border-radius: 14px;
  border: 1px solid #dce4ee;
  padding: 24px;
  box-shadow: none;
  backdrop-filter: none;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.upload-card,
.url-form,
.source-list,
.video-card,
.controls {
  background: #f7f9fd;
  border-color: var(--panel-border);
  border-radius: 14px;
}
.upload-card {
  border: 1px dashed #94b4e7;
  align-content: center;
  text-align: center;
  background: #f3f7ff;
}
.upload-drag-hint {
  justify-content: center;
  opacity: 1;
}
button {
  color: white;
  border-radius: 9px;
  font-size: 13px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.upload-card:focus-visible,
.compare-handle:focus-visible {
  outline: 3px solid #76a6ff;
  outline-offset: 3px;
}
textarea,
select,
option {
  color: var(--text);
  background: white;
  border-color: #c9d6e8;
}
.ghost-button,
.icon-btn,
.remove-btn {
  background: #e9eff8;
  color: #294268;
}
.ghost-button.active,
.audio-btn.active {
  background: #deebff;
  color: #1759c6;
}
.source-name,
.video-title {
  color: var(--text);
}
.source-item {
  background: #fff;
  border: 1px solid #e0e7f1;
}
.source-meta {
  min-width: 0;
}
.source-name {
  overflow-wrap: anywhere;
}
.source-details {
  flex-wrap: wrap;
}
.video-meta-pill {
  color: #425b7d;
  background: #e9eff7;
  border-color: #dce5f0;
}
.source-type,
.status-badge {
  background: #e8f0ff;
  color: #2059b4;
}
.compare-toggle-btn {
  color: #425b7d;
  background: #e9eff7;
}
.compare-toggle-btn.active {
  color: white;
  background: #2769e8;
}
.compare-header,
.video-card-header {
  background: #f7f9fd;
  border-color: #e0e7f1;
}
.compare-block-reason {
  display: block;
  color: #84602d;
  margin-top: 6px;
}
.compare-handle {
  touch-action: none;
}
.compare-handle::after {
  background: #fff;
  border: 2px solid #2769e8;
}
.playback-dock {
  position: relative;
  bottom: auto;
  width: 100%;
  margin: 16px 0;
  background: #edf3fc;
  border-color: #cbdaf1;
  padding: 12px 16px;
  transition: none;
}
.playback-dock.is-floating {
  box-shadow: 0 -6px 30px #18356226;
}
.playback-dock[hidden] {
  display: none;
}
.video-details-button {
  border: 1px solid #c9d6e8;
  background: #e9eff8;
  color: #294268;
  padding: 4px 8px;
}
#videoDetailsDialog {
  position: fixed;
  top: var(--compare-modal-top, 50%);
  left: 50%;
  bottom: auto;
  margin: 0;
  transform: translate(-50%, -50%);
  width: min(800px, calc(100% - 24px));
  max-height: var(--compare-modal-height, 85vh);
  padding: 20px;
  border: 1px solid #c9d6e8;
  border-radius: 14px;
  background: white;
  color: #122340;
  overflow: auto;
}
#videoDetailsDialog::backdrop {
  background: #14274199;
}
.video-details-heading {
  overflow-wrap: anywhere;
  padding-right: 52px;
}
.video-details-header { position: sticky; top: -20px; background: white; z-index: 1; padding-top: 8px; }
.video-details-filename { overflow-wrap: anywhere; }
.video-meta-error { display: block; color: #a3293c; font-size: 12px; font-weight: normal; }
.video-details-table caption { text-align: left; font-weight: 700; padding: 16px 7px 6px; }
.video-details-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: #e9eff8;
  color: #294268;
}
.video-details-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
.video-details-table th,
.video-details-table td {
  padding: 7px;
  text-align: left;
  border-bottom: 1px solid #dce5f0;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.video-details-table th {
  width: 40%;
  color: #536780;
}
.video-details-json {
  display: inline-block;
  margin: 12px 0;
}
.playback-dock-inner {
  width: 100%;
}
.timeline-tooltip {
  background: #11213d;
  color: white;
  left: 0;
  right: auto;
  transform: none;
  width: min(320px, 100%);
}
.timeline-label { position: relative; }
.timeline-help { position: static; }
.video-grid {
  max-width: 100%;
  overflow: hidden;
}
.video-card {
  max-width: 100%;
}
.video-stage,
.compare-stage {
  background: #101827;
}
.video-error-overlay {
  position: absolute;
  inset: 0;
  overflow: auto;
  background: #f9fafc;
  color: #263954;
  padding: 18px;
}
.video-error-title {
  color: #b9273b;
}
.video-error-desc,
.convert-privacy-note {
  color: #536780;
}
.convert-progress-wrap {
  background: #e5edf8;
  color: #253b5d;
}
.convert-progress-label {
  position: static;
  display: block;
  color: #253b5d;
}
.toast {
  background: #142741;
  color: white;
}
.toast-container {
  position: fixed;
  top: 12px;
  bottom: auto;
  right: 12px;
  max-width: calc(100vw - 24px);
}
.modal-overlay {
  background: #14274188;
}
.modal-dialog,
.confirm-dialog,
.confirm-modal {
  background: #fff;
  color: #122340;
}
.hint {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 0;
}
.view-controls {
  padding: 12px;
}
input {
  accent-color: #2769e8;
}
@media (max-width: 760px) {
  .panel {
    padding: 14px;
    border-radius: 12px;
  }
  .sources {
    grid-template-columns: 1fr;
  }
  .source-item {
    flex-wrap: wrap;
    gap: 8px;
  }
  .source-meta {
    flex: 1;
    min-width: 180px;
  }
  .source-actions {
    margin-left: auto;
  }
  .source-details {
    gap: 5px !important;
  }
  .video-card-header,
  .compare-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .comparison-header-tools {
    flex-wrap: wrap;
  }
  .comparison-view-controls,
  .preview-size,
  .layout-mode {
    min-width: 0;
    width: 100%;
  }
  .compare-center {
    flex-wrap: wrap;
  }
  .compare-meta {
    max-width: 100%;
  }
  .compare-title-row {
    justify-content: space-between;
  }
  .video-meta-pill {
    font-size: 10px;
  }
  .url-row {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .url-row textarea {
    flex: none;
    width: 100%;
    min-height: 96px;
  }
  .url-row button {
    width: 100%;
    align-self: stretch;
  }
  .primary-controls {
    justify-content: center;
  }
  .playback-dock-inner {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.compare-input-error {
  color: #a3293c;
  background: #fff1f3;
  border: 1px solid #edcbd1;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
}
.compare-input-error[hidden] {
  display: none;
}
.confirm-title {
  color: #122340;
}
.confirm-body {
  color: #536780;
}
#toast-container {
  top: 12px;
  bottom: auto;
  right: 12px;
  max-width: calc(100vw - 24px);
}
.toast-body,
.toast-close {
  color: white;
}
@media (max-width: 860px) {
  .comparison-panel {
    width: 100%;
    margin: 0 0 14px;
  }
}
