/* ---------- Page layout ---------- */

body {
    font-family: Arial, sans-serif;
    background: #fafafa;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1, h2 {
    text-align: center;
}

.authors, .links {
    text-align: center;
    margin-bottom: 20px;
}

.links a {
    text-decoration: none;
    margin: 0 10px;
}

.teaser {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    border-radius: 6px;
}

.abstract {
    text-align: justify;
}

.image-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.image-grid img {
    max-width: 45%;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.chapters button {
    all: unset;                 /* remove browser defaults */
    box-sizing: border-box;
    cursor: pointer;
}


/* ---------- Video Player ---------- */



.label {
    position: absolute;
    top: 12px;                 /* move to top */
    padding: 8px 16px;            /* bigger box */
    background: rgba(0,0,0,0.65);
    color: white;
    font-weight: 700;
    font-size: 12px;              /* bigger text */
    border-radius: 6px;
    z-index: 5;
    pointer-events: none;         /* don't block slider */
    letter-spacing: 0.5px;
}


.label-left {
    left: 12px;                   /* bottom-left corner */
}

.label-right {
    right: 12px;                  /* bottom-right corner */
}




/* ---------- Video Player ---------- */


.video-player {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px auto;
    max-width: 700px;
}


.video-player video {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.controls {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.controls button {
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
}

.controls input[type="range"] {
    flex: 1;
}





/* ---------- Video comparison ---------- */

.comparison-container {
    width: 700px;          /* unified visual size */
    max-width: 100%;
    margin: 30px auto;
}

.video-wrapper {
    position: relative;
}

/* Both videos */
.video-bottom,
.video-top {
    width: 100%;
    height: auto;
    display: block;
}

/* Top video clipped horizontally */
.video-top {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

/* Slider */
.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: white;
    border-left: 1px solid black;
    border-right: 1px solid black;
    z-index: 3;
    pointer-events: none;
}
