/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow-x: visible;
}

/* Header Section */
.header {
    text-align: center;
    padding: 20px 20px;
}

.title {
    color: #2c3e50;
    margin-bottom: 20px;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 200px;
    height: auto;
    display: inline-block;
}

.authors {
    margin-bottom: 30px;
}

.author-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 15px;
}

.author {
    color: #555;
    white-space: nowrap;
    margin-right: 5px;
}

.author sup {
    vertical-align: super;
}

.affiliations {
    color: #777;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.affiliations span {
    white-space: nowrap;
    margin-right: 5px;
}

.contributions {
    color: #777;
    font-style: italic;
}

.contributions p {
    margin: 5px 0;
}


/* Section Styles */
.section {
    margin-bottom: 50px;
    padding: 0 20px;
    overflow-x: visible;
}

.section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

/* Abstract Section */
.abstract {
    line-height: 1.5;
    color: #555;
    text-align: justify;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 4px solid #3498db;
    border-radius: 5px;
}

/* Data Distribution Section */
.image-figure {
    width: 100%;
    margin-top: 30px;
    text-align: center;
}

.distribution-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

figcaption {
    margin-top: 15px;
    font-size: 0.95em;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Video Section */
.video-comparison-container {
    margin-top: 30px;
    width: 100%;
    overflow-x: visible;
}

.video-group {
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
    overflow-x: scroll !important;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f0f0f0;
    box-sizing: border-box;
    padding-bottom: 0;
    /* Force scrollbar to always be visible */
    scrollbar-gutter: stable;
}

.video-group::-webkit-scrollbar {
    height: 12px;
    -webkit-appearance: none;
    display: block !important;
    visibility: visible !important;
}

.video-group::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.video-group::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.video-group::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}


.video-comparison-table {
    width: 1250px;
    /* 5 columns * 160px = 800px */
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: visible;
    table-layout: fixed;
}

.video-comparison-table thead {
    background-color: #3498db;
    color: white;
}

.video-comparison-table th {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
}

.video-comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
}

.prompt-cell {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    text-align: left;
    font-weight: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    overflow: hidden;
}

.prompt-cell .video-description {
    font-size: 0.85em;
    text-align: left;
    margin-bottom: 10px;
    font-weight: normal;
}

.prompt-cell .video-filename {
    text-align: left;
}

.video-cell {
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    text-align: center;
}

.video-wrapper-small {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background-color: #000;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

/* Mel spectrogram image styling - same size as video */
.mel-spectrogram {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Same aspect ratio as video (16:9) */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 5px;
    margin-top: 8px;
    display: block;
}

.mel-spectrogram img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill; /* Stretch image to fill container, no aspect ratio preservation */
}


.highlight {
    color: #ff8c00;
    font-weight: 600;
}

.video-filename {
    font-size: 0.85em;
    color: #999;
    text-align: center;
    margin-top: 8px;
    font-family: 'Courier New', monospace;
}

/* Comparison Table Section */
.table-title {
    margin-top: 20px;
    margin-bottom: 15px;
}

.table-title-main {
    font-weight: 600;
    font-size: 0.95em;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.5;
}

.table-title-note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

.table-container {
    width: 100%;
    margin-top: 30px;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background-color: #3498db;
    color: white;
}

.comparison-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95em;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9em;
    color: #555;
    text-align: center;
}

.comparison-table tbody tr:hover {
    background-color: #f5f5f5;
}

.comparison-table tbody tr:last-child {
    background-color: #fff8e1;
    font-weight: 500;
}

.comparison-table tbody tr:last-child:hover {
    background-color: #ffe082;
}

.check-cell {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}

.check-yes {
    color: #1c991c !important;
}

.check-no {
    color: #ce2929;
}

.comparison-table .check-cell:not(.check-yes) {
    color: #ce2929;
}

.comparison-table th[rowspan] {
    vertical-align: middle;
}

.comparison-table td:first-child {
    font-weight: 500;
}


/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 2px solid #e0e0e0;
    color: #777;
    font-size: 0.9em;
}

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

    .section h2 {
        font-size: 1.5em;
    }

    .author-row {
        justify-content: flex-start;
        padding: 0 10px;
    }

    .author {
        font-size: 0.95em;
    }

    .affiliations {
        text-align: left;
        padding: 0 10px;
    }

    .contributions {
        text-align: left;
        padding: 0 10px;
    }


    .comparison-table {
        font-size: 0.85em;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
}