/* DyMoS component overrides — layered on top of MPD's bulma + index.css */

/* === Teaser === */
.teaser .hero-body { padding-top: 1rem; padding-bottom: 2rem; }

.teaser-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.teaser-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.teaser-block-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.teaser-row-video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}
.teaser-row-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.teaser-row-labels > span {
  text-align: center;
  padding: 0.15rem 0.25rem;
}
.teaser-row-labels > .is-ours {
  color: #f97316;
  font-weight: 700;
}
.teaser-bar { margin-top: 0.25rem; }

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.teaser-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.1rem 1.1rem 0.9rem;
}
.teaser-a-body, .teaser-b-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-caption {
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
}

.teaser-dyn-block { display: flex; flex-direction: column; gap: 0.5rem; }
.teaser-dyn-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.teaser-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.row-label {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  line-height: 1.2;
  order: 2;
}
.row-label-vertical span {
  writing-mode: horizontal-tb;
  transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.row-label-ours { color: #f97316; }
.row-label-ours span { font-weight: 700; }

.teaser-prompt {
  text-align: center;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  margin-top: 0.6rem;
  line-height: 1.5;
}

.teaser-cont-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.teaser-cont-block { display: flex; flex-direction: column; gap: 0.35rem; }
.teaser-cont-label {
  text-align: center;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
  font-size: 0.82rem; color: var(--text-secondary);
  font-weight: 600;
}

.static-dynamic-arrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.sd-static, .sd-dynamic {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: 0 0 auto;
}
.sd-static  { color: #3b82f6; }
.sd-dynamic { color: #ef4444; }
.sd-bar {
  flex: 1;
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ef4444 100%);
}

/* === Teaser arrow carousel === */
.teaser-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.teaser-carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.teaser-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 0.15rem;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.55);
  color: #fff;
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0 0.15rem;
  cursor: pointer;
  transition: var(--transition);
}
.carousel-arrow:hover {
  background: var(--primary-color);
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow-md);
}
.carousel-arrow-prev { left: 0.4rem; }
.carousel-arrow-next { right: 0.4rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.6rem;
}
.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--text-light);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dot:hover { background: var(--text-secondary); }
.carousel-dot.is-active {
  background: var(--primary-color);
  transform: scale(1.25);
}

/* === Video grid (Baseline Comparisons) === */
.grid { display: grid; gap: 0.75rem; width: 100%; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }

.video-cell {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.video-cell video {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
/* Hide videos that are still loading inside a sync group, fade in together */

.cell-label {
  margin-top: 0.4rem; text-align: center;
  font-size: 0.88rem; font-weight: 600; color: var(--text-secondary);
}
.cell-label-ours {
  color: #f97316;
  font-weight: 700;
}

.method-compare {
  margin: 1.25rem 0 1.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.method-compare:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.method-compare:first-of-type { margin-top: 0.5rem; }
.method-compare figcaption {
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cap-line { line-height: 1.5; }
.cap-prompt {
  color: var(--text-primary);
  text-align: center;
  font-size: 1.05rem;
  margin-top: 0.4rem;
}
.prompt-text { font-style: italic; }

.meta-badges {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  align-items: center; justify-content: center;
}
.badge {
  display: inline-block;
  background: var(--background-accent);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
  border: 1px solid var(--border-color);
}

/* === Continuous slider section === */
#continuous-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
@media (max-width: 900px) {
  #continuous-container { grid-template-columns: 1fr; }
}

.video-slider {
  margin: 0;
  padding: 1.25rem 1.25rem 1.4rem;
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}
.video-slider:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.video-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0;
  overflow: hidden;
}
.video-stack video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.video-stack video.hidden { display: none; }

.slider-caption {
  display: flex; flex-direction: column; gap: 0.3rem;
  font-size: 0.9rem; color: var(--text-secondary);
  align-items: center;
  text-align: center;
}

.slider-row {
  display: flex; align-items: center; gap: 1.25rem;
  margin-top: 0.75rem;
}
.end-label {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.end-label-static  { color: #3b82f6; }
.end-label-dynamic { color: #ef4444; }

.slider-track-wrapper {
  --thumb-size: 20px;
  --slider-gradient: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ef4444 100%);
  position: relative; flex: 1 1 auto; width: 100%;
}
.slider-input {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 10px;
  background: var(--slider-gradient);
  border-radius: 9999px;
  outline: none; cursor: pointer; margin: 0; display: block;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.08);
}
.slider-input::-webkit-slider-runnable-track {
  height: 10px;
  background: transparent;
  border-radius: 9999px;
}
.slider-input::-moz-range-track {
  height: 10px;
  background: var(--slider-gradient);
  border-radius: 9999px;
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: var(--thumb-size); height: var(--thumb-size);
  margin-top: -5px;
  border-radius: 50%; background: #fff;
  border: 3px solid #facc15;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.45);
  transition: var(--transition);
}
.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  border-color: #eab308;
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.6);
}
.slider-input::-moz-range-thumb {
  width: var(--thumb-size); height: var(--thumb-size);
  border-radius: 50%; background: #fff;
  border: 3px solid #facc15; cursor: pointer;
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.45);
}

.tick-row {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  height: 1rem;
  pointer-events: none;
}
.tick {
  position: absolute; top: 0; transform: translateX(-50%);
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
  font-size: 0.72rem; color: var(--text-light); white-space: nowrap;
}

/* === Overview bullets (matches MPD figure-bullets style) === */
.figure-bullets {
  text-align: left;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 720px) {
  .figure-bullets { grid-template-columns: 1fr; }
}
.figure-bullets > div {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 0.75rem 0.9rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.figure-bullets .check {
  color: #ef4444;
  font-weight: 700;
  margin-right: 0.4rem;
}

/* Pull the teaser closer to the header */
.publication-header .hero-body { padding-bottom: 1.5rem; }
.teaser .hero-body { padding-top: 0.5rem; }
