body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
    margin: 0;
    background: #ffffff;
    color: #111;
    line-height: 1.6;
    }
    
    /* Header */
    .header {
    text-align: center;
    padding: 60px 20px 30px;
    border-bottom: 1px solid #eee;
    }
    
    .header h1 {
    font-size: 32px;
    max-width: 900px;
    margin: 0 auto 20px;
    }
    
    .authors {
    color: #444;
    margin-bottom: 10px;
    }
    
    .links a {
    margin: 0 10px;
    text-decoration: none;
    color: #1a73e8;
    }
    
    /* Sections */
    .section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    }
    
    .section h2 {
    margin-bottom: 20px;
    font-size: 24px;
    }
    
    /* TLDR */
    .tldr {
    font-weight: 600;
    font-size: 18px;
    background: #f6f8fa;
    padding: 15px;
    border-left: 4px solid #1a73e8;
    }
    
    /* Figures */
    .figure {
    width: 100%;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #eee;
    }
    
    .caption {
    font-size: 14px;
    color: #555;
    margin-top: 5px;
    }
    
    /* Videos */
    .video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    }
    
    .video-card video {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
    }
    
    .video-card p {
    text-align: center;
    font-size: 14px;
    }
    
    /* Table */
    table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    }
    
    th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    }
    
    th {
    background: #f6f6f6;
    }
    
    /* Bibtex */
    pre.bibtex {
    background: #f7f7f7;
    padding: 15px;
    overflow-x: auto;
    border-radius: 6px;
    font-size: 13px;
    }
    
    /* Footer */
    .footer {
    text-align: center;
    padding: 40px;
    color: #777;
    border-top: 1px solid #eee;
    }
    
    /* Mobile */
    @media (max-width: 768px) {
    .video-grid {
    grid-template-columns: 1fr;
    }

    @media (max-width: 768px) {
      .video-row {
        grid-template-columns: 1fr;
      }
    }
    
    .header h1 {
    font-size: 24px;
    }
    }

    .video-pair-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
      }
      
      /* Example headings */
      .example-title {
        font-size: 20px;
        margin: 10px 0 5px;
        font-weight: 600;
        color: #111;
      }
      
      /* row layout */
      .video-row {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        align-items: start;
      }
      
      /* video styling */
      .video-card video {
        width: 100%;
        border-radius: 8px;
        border: 1px solid #ddd;
      }
      
      /* BIG unified labels */
      .label {
        text-align: center;
        margin-top: 8px;
        font-weight: 700;
        font-size: 16px;
        color: #000; /* both same color */
      }
      
      /* optional spacing */
      .video-card {
        padding: 5px;
      }

      .table-wrapper {
        overflow-x: auto;
      }
      
      .results-table {
        border-collapse: collapse;
        width: 100%;
        font-size: 12px;
      }
      
      .results-table th,
      .results-table td {
        border: 1px solid #ddd;
        padding: 6px;
        text-align: center;
        white-space: nowrap;
      }
      
      .results-table th {
        background: #f6f6f6;
        font-weight: 600;
      }
      
      .group td {
        text-align: left;
        font-weight: 700;
        background: #fafafa;
      }
      
      .batch {
        font-weight: 700;
        background: #f9f9f9;
        vertical-align: middle;
      }
      .table-note {
        font-size: 12px;
        color: #666;
        margin-top: 6px;
        line-height: 1.3;
      }

      .video-row.two-videos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        
        /* key part ↓ */
        max-width: calc((100% - 40px) * 2 / 3 + 20px);
        margin: 0 auto;
      
        gap: 20px;
      }

      .video-card {
        display: flex;
        flex-direction: column;
        align-items: center; /* Keeps everything centered */
        width: 100%;
    }
    
    .video-card video {
        width: 100%;       /* Fill the card width */
        display: block;    /* Removes bottom whitespace/gap */
        border-radius: 8px 8px 0 0; /* Optional: round only top corners */
    }
    
    .align-matrix {
        width: 100%;       /* Force image to match video width */
        height: auto;      /* Maintain image aspect ratio */
        display: block;
        margin-top: 0;     /* Flush against the video */
        border: 1px solid #ddd;
        border-top: none;  /* Avoid double border between video and image */
        border-radius: 0 0 8px 8px; /* Optional: round only bottom corners */
    }
    
    .label {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
