.tuio-preview {
  --tuio-preview-ink: #004269;
  --tuio-preview-green: #007a5f;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 0;
  color: var(--tuio-preview-ink);
  font-family: inherit;
}
.tuio-preview *, .tuio-preview-modal * { box-sizing: border-box; }
.tuio-preview [hidden], .tuio-preview-modal [hidden] { display: none !important; }
.tuio-preview__surface {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  border-radius: 16px;
  background: #073e35;
}
.tuio-preview__poster, .tuio-preview__loop {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.tuio-preview__poster { z-index: 0; }
.tuio-preview--still { max-width: 648px; }
.tuio-preview--still .tuio-preview__surface { aspect-ratio: 1296 / 732; background: #eaf7f2; }
.tuio-preview__badge {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 32px);
  padding: 7px 16px 7px 7px;
  border-radius: 32px;
  color: #004269;
  background: #ffffff;
  box-shadow: 0 5px 22px #00426925;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  pointer-events: none;
}
.tuio-preview__badge-play {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  background: #ed145b;
}
.tuio-preview__loop { z-index: 1; opacity: 0; }
.tuio-preview.is-showing-video .tuio-preview__loop { opacity: 1; }
.tuio-preview__open, .tuio-preview__fallback {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
  color: inherit;
  appearance: none;
  -webkit-tap-highlight-color: #ffffff25;
}
.tuio-preview__open:hover, .tuio-preview__fallback:hover { background: #ffffff05 !important; }
.tuio-preview__open:focus-visible, .tuio-preview__fallback:focus-visible {
  outline: 4px solid #ffffff;
  outline-offset: -7px;
  box-shadow: inset 0 0 0 3px #004269 !important;
}
.tuio-preview__controls {
  display: none;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  min-height: 52px;
}
.tuio-preview.is-enhanced .tuio-preview__controls { display: flex; }
.tuio-preview__watch, .tuio-preview__watch-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 0;
  padding: 10px 14px;
  margin: 0;
  border: 1px solid #b70d42;
  border-radius: 8px;
  background: #c7114b;
  color: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.tuio-preview__watch:hover, .tuio-preview__watch-fallback:hover { background: #a5103e; color: #ffffff; }
.tuio-preview__watch:focus-visible, .tuio-preview__watch-fallback:focus-visible { outline: 3px solid #004269; outline-offset: 3px; }
.tuio-preview__pause {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #bfd9d4;
  border-radius: 8px;
  background: #ffffff;
  color: #004269;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.tuio-preview__pause:hover { background: #eaf7f2; color: #004269; }
.tuio-preview__pause:focus-visible, .tuio-preview-modal button:focus-visible,
.tuio-preview-modal a:focus-visible { outline: 3px solid #ed145b; outline-offset: 3px; }
.tuio-preview__sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.tuio-preview-modal {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #004269;
  background: #ffffff;
  overflow: auto;
  font-family: inherit;
  box-shadow: 0 20px 80px #00000060;
}
.tuio-preview-modal::backdrop { background: #001c2ed9; }
.tuio-preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 12px 22px;
}
.tuio-preview-modal__title {
  margin: 0;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  color: #004269;
}
.tuio-preview-modal__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eaf7f2;
  color: #004269;
  font: 30px/1 Arial, sans-serif;
  cursor: pointer;
}
.tuio-preview-modal__close:hover { background: #d3eee5; color: #004269; }
.tuio-preview-modal__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 190px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000000;
}
.tuio-preview-modal__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 22px 18px;
}
.tuio-preview-modal__fallback { color: #004269; font-size: 14px; text-decoration: underline; }
.tuio-preview-modal__cta {
  display: inline-block;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 8px;
  background: #ed145b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.tuio-preview-modal__cta:hover { background: #c7114b; color: #ffffff; }
.tuio-preview-modal__status { margin: 0; padding: 0 22px; font-size: 14px; }
@media (max-width: 600px) {
  .tuio-preview__controls { display: flex; justify-content: space-between; }
  .tuio-preview__watch, .tuio-preview__watch-fallback { display: inline-flex; flex: 1 1 150px; }
  .tuio-preview__pause { flex: 0 1 auto; }
}
@media (max-width: 480px) {
  .tuio-preview__badge { right: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: 12px; gap: 8px; padding-right: 12px; }
  .tuio-preview__surface { border-radius: 10px; }
  .tuio-preview-modal { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 10px; }
  .tuio-preview-modal__header { padding: 8px 10px 8px 14px; }
  .tuio-preview-modal__footer { padding: 12px 14px 14px; }
  .tuio-preview-modal__video { max-height: calc(100dvh - 175px); }
}
@media (prefers-reduced-motion: reduce) {
  .tuio-preview *, .tuio-preview-modal * { scroll-behavior: auto; }
}
