/* ===== Base & Typography ===== */
body {
    font-family: 'Inter', 'Noto Sans', sans-serif;
}

.publication-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

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

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

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

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

/* ===== Content Width ===== */
.container.is-max-desktop {
    max-width: 960px !important;
}

.container.is-max-widescreen {
    max-width: 1200px !important;
}

/* ===== Hero ===== */
.hero.is-light {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
}

.hero.is-light .hero-body {
    padding-bottom: 2rem;
}

.publication-venue .tag {
    font-weight: 600;
    font-size: 1rem !important;
    letter-spacing: 0.05em;
}

/* ===== Link Buttons ===== */
.link-block a {
    margin: 5px 12px;
    min-width: 110px;
    box-shadow: 0 0 5px rgba(126, 138, 138, 0.3);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.link-block a:hover {
    box-shadow: 0 2px 10px rgba(126, 138, 138, 0.5);
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.btn-arxiv {
    background-color: #c85454 !important;
    border-color: #c85454 !important;
    color: #fff !important;
}

.btn-github {
    background-color: #5b5f67 !important;
    border-color: #5b5f67 !important;
    color: #fff !important;
}

.btn-paper {
    background-color: #4a90d9 !important;
    border-color: #4a90d9 !important;
    color: #fff !important;
}

/* ===== Video Section ===== */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

.video-placeholder-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: rgba(255, 255, 255, 0.6);
}

.video-placeholder-main p {
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ===== Figures Section ===== */
.figures-section {
    background-color: #fafafa;
}

.figure-block {
    margin-bottom: 2rem;
}

.figure-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    background: #fff;
}

.figure-image img {
    width: 100%;
    display: block;
}

.figure-caption {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    color: #555;
    text-align: center;
    line-height: 1.5;
}

/* Image Placeholder */
.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
    color: #999;
}

.image-placeholder code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* ===== BibTeX ===== */
.bibtex-container {
    position: relative;
}

.bibtex-container pre {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid #e0e0e0;
    font-size: 0.85rem;
    overflow-x: auto;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

/* ===== Footer ===== */
.footer {
    padding: 2rem 1.5rem;
    background-color: #f5f5f5;
}

.footer p {
    font-size: 0.85rem;
    color: #888;
}

.footer a {
    color: hsl(204, 86%, 53%);
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
    .image-placeholder {
        min-height: 180px;
    }

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