* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

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

/* Header */
header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.venue {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 20px;
}

.authors {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.author {
    margin: 0 10px;
    white-space: nowrap;
}

.author sup {
    font-size: 0.75em;
    margin-left: 2px;
}

.affiliations {
    font-size: 0.95rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.affiliation {
    margin: 0 15px;
    display: inline-block;
}

.affiliation sup {
    font-size: 0.8em;
    margin-right: 2px;
}

.links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.link-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    font-weight: 500;
}

.link-button:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.link-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Sections */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2d3748;
}

/* Teaser Figure */
.figure {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}

.figure figcaption {
    margin: 15px auto 0;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.6;
    text-align: left;
}

.fig-blue {
    color: #3182ce;
    font-weight: 600;
}

.fig-red {
    color: #e53e3e;
    font-weight: 600;
}

/* Observations */
.observation {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.observation h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.observation-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #4a5568;
    text-align: justify;
    margin-bottom: 30px;
}

.observation-figure {
    text-align: center;
}

.observation-figure img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

.observation-figure .architecture-img {
    max-width: 500px;
}

.observation-figure figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.5;
    text-align: left;
}

.section-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 50px auto;
    max-width: 900px;
}

/* Abstract */
.abstract {
    background: #f7fafc;
    padding: 40px;
    border-radius: 12px;
}

.abstract p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: justify;
}

/* Key Results */
.key-results {
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.result-item {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.result-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.result-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Method */
.method {
    background: #fff;
}

.method-content {
    font-size: 1.05rem;
}

.method ul {
    margin: 20px 0;
    padding-left: 30px;
}

.method li {
    margin-bottom: 10px;
}

/* Video Gallery */
.video-gallery {
    background: #f7fafc;
    padding: 40px;
    border-radius: 12px;
}

.gallery-description {
    text-align: center;
    margin-bottom: 30px;
    color: #718096;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #e2e8f0;
}

.video-thumbnail video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.video-prompt {
    font-size: 0.9rem;
    color: #718096;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: 50px auto;
    max-width: 1000px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    opacity: 0.8;
}

#modalVideo {
    width: 100%;
    display: block;
}

.modal-caption {
    padding: 20px;
    background: white;
}

.modal-caption h3 {
    margin-bottom: 10px;
    color: #2d3748;
}

.modal-caption p {
    color: #4a5568;
    line-height: 1.5;
}

/* BibTeX */
.bibtex {
    background: #2d3748;
    padding: 40px;
    border-radius: 12px;
    color: white;
}

.bibtex h2 {
    color: white;
}

.bibtex pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}

.bibtex code {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
    border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 1.8rem;
    }

    .authors {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .author {
        margin: 5px;
    }

    .affiliations {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .affiliation {
        margin: 2px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}