body {
  font-family: 'Noto Sans', sans-serif;
}


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}


.publication-title {
}

.publication-banner {
  max-height: parent;

}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

.publication-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

.container {
  width: 100%;
  /* Adjust this percentage value to increase or decrease the width */
  max-width: 1600px;
  /* Optional: Set a maximum width for the container */
  margin: 0 auto;
  /* Center the container */
}

.columns {
  display: flex;
  flex-wrap: wrap;
}

.column {
  flex-basis: 20%;
  /* Each column occupies 20% of the container's width */
  box-sizing: border-box;
  /* Include padding and border in the element's total width and height */
  padding: 10px;
  /* Add padding to each column */
}

.example {
  width: 80%;
  margin: auto;
}

.example-gifs {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  position: relative;
}

.example-gifs>div {
  width: 50%;
  text-align: center;
}

.example-gifs>div>img {
  max-width: 350px;
}

.center {
  text-align: center;
}

.example-prompt {
  font-size: 1.3em;
}

hr {
  color: darkgray;
  background-color: #AAA;
}

.example-input {
  width: 175px;
}

/* Video grid */
.video-grid {
  margin-top: 1.5rem;
}

.video-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 1rem;
}

.video-header {
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
}

.label-cell {
  text-align: center;
  padding: 6px 4px;
  background: #f5f5f5;
  border-radius: 4px;
  font-size: 0.95rem;
}

.video-cell video {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

.video-prompt {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #333;
}

@media (max-width: 768px) {
  .video-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* PhyMotion-specific additions */
.phymotion {
  font-variant: small-caps;
  font-weight: 700;
  color: #467191;
  letter-spacing: 0.02em;
}

pre {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
}

.caption {
  font-size: 0.92rem;
}

.footer {
  background: #f0f0f0;
  padding: 2rem 0;
}

/* ---------- 4D viewer (sim-dist-inspired) ---------- */
.viewer-section {
  background: radial-gradient(circle at top left, rgba(118, 150, 122, 0.15), transparent 30%),
              linear-gradient(180deg, #f3f5ef 0%, #e9ece4 100%);
}

/* 1.2× wider than Bulma's is-max-desktop (≈ 960px → ≈ 1152px) */
.viewer-container {
  max-width: 1152px !important;
  margin: 0 auto;
}

.viewer-lead {
  text-align: center;
  color: #5e6f80;
  margin: 0 auto 28px;
  line-height: 1.6;
  font-size: 15px;
}

.axis-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 16px;
}

@media (max-width: 560px) {
  .axis-picker { grid-template-columns: 1fr; }
}

.axis-picker button {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(16, 32, 48, 0.10);
  background: rgba(255, 255, 255, 0.72);
  color: #2d3e52;
  cursor: pointer;
  backdrop-filter: blur(8px);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.15s;
  text-align: left;
}
.axis-picker button:hover {
  border-color: #467191;
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(16, 32, 48, 0.08);
}
.axis-picker button.active {
  background: linear-gradient(180deg, #5481a4, #467191);
  color: #fff;
  border-color: #325b7a;
  box-shadow: 0 10px 26px rgba(70, 113, 145, 0.32);
}

.axis-picker .axis-icon {
  font-size: 22px;
  color: #467191;
  margin-bottom: 4px;
}
.axis-picker button.active .axis-icon {
  color: #fff;
}
.axis-picker .axis-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.axis-picker .axis-desc {
  font-size: 12px;
  color: #5e6f80;
  font-weight: 400;
}
.axis-picker button.active .axis-desc {
  color: rgba(255, 255, 255, 0.86);
}

.scene-label {
  text-align: justify;
  color: #2d3e52;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 auto 20px;
  font-weight: 400;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(16, 32, 48, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(8px);
}
.scene-label strong { font-weight: 600; color: #1a2a3d; }
.scene-label em { color: #467191; font-style: normal; font-weight: 500; }

.axis-figure {
  display: block;
  width: 100%;
  margin: 0 auto 24px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(16, 32, 48, 0.1);
  background: #fff;
  padding: 18px;
  border: 1px solid rgba(16, 32, 48, 0.06);
}


.viewer-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(16, 32, 48, 0.12);
  backdrop-filter: blur(14px);
  padding: 18px;
}

.viewer-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px;
  width: 100%;
}

@media (max-width: 700px) {
  .viewer-grid { grid-template-columns: 1fr !important; }
}

.viewer-panel { display: flex; flex-direction: column; min-width: 0; }

.viewer-label {
  font-size: 10.5px;
  color: #5e6f80;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.viewer-video,
#three-canvas {
  width: 100%;
  border-radius: 14px;
  display: block;
  aspect-ratio: 832 / 480;
}

.viewer-video {
  background: #000;
  box-shadow: 0 6px 20px rgba(16, 32, 48, 0.12);
}

#three-canvas {
  background:
    radial-gradient(circle at top, rgba(118, 150, 122, 0.18), transparent 70%),
    linear-gradient(160deg, #eef1ea, #d3d9d2);
  cursor: grab;
  box-shadow: 0 6px 20px rgba(16, 32, 48, 0.08);
}
#three-canvas:active { cursor: grabbing; }

.transport {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(16, 32, 48, 0.08);
  border-radius: 14px;
}

.reset-view-btn {
  appearance: none;
  border: 1px solid rgba(70, 113, 145, 0.3);
  background: #fff;
  color: #467191;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s, color 0.15s;
}
.reset-view-btn:hover {
  border-color: #467191;
  background: #f0f4f7;
}
.reset-view-btn:active { transform: rotate(-30deg); }

/* ---------- Main results table ---------- */
.main-table-container {
  max-width: 1400px !important;
  margin: 0 auto;
}
.main-table-lead {
  color: #5e6f80;
  text-align: center;
  margin: 0 auto 24px;
  max-width: 880px;
  line-height: 1.55;
  font-size: 14px;
}
.main-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(16, 32, 48, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 32, 48, 0.06);
}
.results-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: collapse;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #2d3e52;
}
/* Numeric data cells stay narrow */
.results-table tbody td,
.results-table thead th { white-space: nowrap; }
.results-table thead th {
  padding: 5px 5px;
  font-weight: 600;
  color: #3a4a5e;
  text-align: center;
  border-bottom: 1px solid rgba(16, 32, 48, 0.12);
  white-space: nowrap;
  background: #f7f8f5;
}
.results-table thead .group-header {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e6f80;
  font-style: italic;
  border-bottom: 1px solid rgba(16, 32, 48, 0.08);
}
.results-table thead .group-vbench    { background: #f0f4e8; }
.results-table thead .group-videoalign{ background: #eef1f7; }
.results-table thead .group-videophy  { background: #f5efe8; }
.results-table thead .group-ours      { background: #e8f0f4; color: #467191; }
.results-table .th-method {
  text-align: left !important;
  padding-left: 12px !important;
}
.results-table tbody td {
  padding: 4px 5px;
  text-align: center;
  border-bottom: 1px solid rgba(16, 32, 48, 0.05);
  line-height: 1.2;
}
.results-table tbody td.method {
  text-align: left;
  padding-left: 12px;
  font-weight: 500;
  white-space: nowrap;
  color: #1a2a3d;
}
.results-table tbody tr:hover { background: #fafbf6; }

.results-table .section-row td {
  background: #eff3ec;
  color: #2d3e52;
  text-align: left;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(16, 32, 48, 0.08);
}
.results-table .section-row em { font-style: italic; font-weight: 500; }

.results-table .ours-row.section-row td { background: #e8f0f4; color: #467191; }
.results-table tr.ours-row:not(.section-row) {
  background: rgba(232, 240, 244, 0.4);
}
.results-table tr.ours-row:not(.section-row):hover {
  background: rgba(232, 240, 244, 0.7);
}

.results-table .r-bold      { font-weight: 700; color: #1a2a3d; }
.results-table .r-underline { text-decoration: underline; text-decoration-thickness: 1px; }
.results-table .delta {
  display: block;
  font-size: 10.5px;
  margin-top: 1px;
  font-weight: 400;
}
.results-table .delta.pos { color: #2f7a4a; }
.results-table .delta.neg { color: #b04848; }

/* Narrow screens: keep horizontal scroll usable */
@media (max-width: 900px) {
  .results-table { font-size: 12px; }
  .results-table tbody td, .results-table thead th { padding: 6px 4px; }
}

/* ---------- Human preference (Elo + heatmap) ---------- */
.hp-lead {
  text-align: center;
  color: #5e6f80;
  max-width: 880px;
  margin: 0 auto 28px;
  line-height: 1.55;
  font-size: 14px;
}
.hp-lead em { color: #467191; font-style: normal; font-weight: 500; }

.hp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
}
.hp-elo {
  flex: 0 1 420px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
.hp-heatmap {
  flex: 0 1 540px;
  min-width: 0;
  max-width: 100%;
}
.hp-elo .elo-table { width: 100%; }
.hp-heatmap img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hp-elo .elo-table {
  font-size: 13px;
}
.hp-elo .elo-table thead th {
  background: #f7f8f5;
  font-weight: 600;
  padding: 8px 10px;
}
.hp-elo .elo-table tbody td {
  padding: 6px 10px;
}
.hp-elo .elo-table tr.elo-divider td {
  padding: 0;
  border-bottom: 1px solid rgba(16, 32, 48, 0.18);
  background: transparent;
}
.hp-elo .elo-table tr.ours-row td {
  background: rgba(232, 240, 244, 0.6);
}
.hp-elo .elo-table tr.ours-row td .best {
  font-weight: 700;
  color: #1a2a3d;
}
.hp-elo .elo-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 8px;
  color: #5e6f80;
  font-size: 13px;
  font-weight: 400;
}
.hp-elo .elo-table caption strong { color: #2d3e52; font-weight: 600; }

.hp-heatmap img {
  box-shadow: 0 8px 24px rgba(16, 32, 48, 0.08);
  border: 1px solid rgba(16, 32, 48, 0.08);
}

.play-btn {
  appearance: none;
  border: 1px solid #325b7a;
  background: linear-gradient(180deg, #5481a4, #467191);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(70, 113, 145, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.play-btn:hover {
  background: linear-gradient(180deg, #5e8eb2, #4f7c9d);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(70, 113, 145, 0.32);
}
.play-btn .icon { font-size: 10px; }

input#scrub {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right,
    #467191 0%, #467191 var(--pct, 0%),
    rgba(16, 32, 48, 0.1) var(--pct, 0%), rgba(16, 32, 48, 0.1) 100%);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  margin: 0;
}
input#scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #467191;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(16, 32, 48, 0.2);
  transition: transform 0.1s;
}
input#scrub::-webkit-slider-thumb:hover { transform: scale(1.15); }
input#scrub::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #467191;
  cursor: pointer;
}

.frame-readout {
  font-size: 12px;
  color: #5e6f80;
  font-variant-numeric: tabular-nums;
  min-width: 56px;
  text-align: right;
  font-weight: 600;
}

.viewer-tip {
  text-align: center;
  color: #88909a;
  font-size: 12px;
  margin: 14px 0 0;
  letter-spacing: 0.02em;
}


.table-wrap {
  width: 100%;
  overflow-x: visible;
  margin: 1.5rem 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}
/* Re-enable horizontal scroll only on truly narrow screens */
@media (max-width: 800px) {
  .table-wrap { overflow-x: auto; }
}

/* Note: the primary .results-table rule (font/family/sizing) is defined
   earlier in this file. This block intentionally avoids re-declaring those. */

.results-table caption {
  caption-side: top;
  text-align: left;
  padding: 1rem 1rem 0.75rem;
  font-size: 14px;
  color: #374151;
}

.results-table th,
.results-table td {
  padding: 0.65rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.results-table th:first-child,
.results-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 1;
  font-weight: 600;
}

.results-table thead th {
  background: #f9fafb;
  font-weight: 700;
  border-bottom: 1px solid #d1d5db;
}

.results-table thead tr:first-child th {
  font-size: 13px;
  color: #374151;
  text-transform: none;
}

.results-table tbody tr:hover {
  background: #f9fafb;
}

.section-row td {
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
  text-align: left;
  border-top: 1.5px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
}

.ours-section td {
  background: #eef2ff;
  color: #3730a3;
}

.ours-row {
  background: #fafaff;
}

.best {
  font-weight: 800;
}

.second {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.delta {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
}

.delta.pos {
  color: #047857;
}

.delta.neg {
  color: #b91c1c;
}

@media (max-width: 768px) {
  .results-table {
    font-size: 13px;
  }

  .results-table th,
  .results-table td {
    padding: 0.55rem 0.6rem;
  }

  .results-table caption {
    font-size: 13px;
  }
}