body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header { text-align: center; margin-bottom: 40px; padding-top: 30px; }
h1 { font-size: 2.2em; margin-bottom: 10px; }
.authors { font-size: 1.1em; color: #555; }
.links { margin-top: 20px; display: flex; justify-content: center; gap: 15px; }
.btn { padding: 8px 20px; background-color: #24292e; color: white; text-decoration: none; border-radius: 20px; }
.btn:hover { background-color: #555; }

section {
    margin-bottom: 60px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

h2 { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-top: 0; }

/* 2-Column Grid Layout */
.video-grid-2 {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* Space between columns */
    margin-top: 20px;
}

.video-wrapper {
    flex: 1; /* Makes both columns 50% width */
    text-align: center;
    position: relative; /* Essential for the absolute positioning inside */
}

/* Hover Switch Specifics */
.hover-switch-container video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* The base video stays normal to give the container height */
.base-vid {
    display: block;
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* The hover video sits directly on top of the base video, invisible by default */
.hover-vid {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none; /* Prevents flickering when mouse moves over it */
}

/* When the container is hovered, flip the opacities */
.hover-switch-container:hover .base-vid { opacity: 0; }
.hover-switch-container:hover .hover-vid { opacity: 1; }

.standard-vid {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.caption {
    margin-top: 10px;
    font-size: 0.95em;
    font-weight: bold;
    color: #444;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .video-grid-2 { flex-direction: column; }
}

/* Image Styling for Method and Benchmark */
.responsive-img {
    width: 100%;
    max-width: 900px; /* Keeps images from getting too massive on big screens */
    display: block;
    margin: 20px auto; /* Centers the image */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* QA Container Styling */
.qa-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f1f5f9; /* Soft grayish-blue background */
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.qa-text {
    margin: 0 0 8px 0;
    font-size: 0.95em;
}

.gt {
    color: #047857; /* A subtle green to indicate Ground Truth */
}

/* Model Results Grid (2x2 Layout) */
.model-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for the 4 models */
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #cbd5e1;
}

.model-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.model-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px; /* Slight rounding for logos */
    object-fit: contain;
}

.model-name {
    font-weight: bold;
    color: #334155;
}

/* Optional: Highlight your model's correct answer */
.highlight-model {
    background-color: #ecfdf5;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #10b981;
}

/* Mobile Responsiveness for QA Grid */
@media (max-width: 600px) {
    .model-results {
        grid-template-columns: 1fr; /* Stacks the 4 models vertically on small phones */
    }
}

.benchmark-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
    padding-bottom: 40px;
}

.benchmark-section p {
    max-width: 700px;
    margin: 0 auto 24px auto;
    color: #555;
}

.benchmark-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    margin-bottom: 32px;
    padding-bottom: 24px;
}

.benchmark-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.benchmark-img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.video-hint {
    margin: -8px 0 18px 0;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
}