/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Google Sans', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.header {
    text-align: center;
    padding: 80px 0 60px;
    border-bottom: 1px solid #e5e7eb;
}

.title h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.venue-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.venue {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4b5563;
}

.status {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 400;
    font-style: italic;
}

.title h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    font-weight: 400;
}

/* Authors Section */
.authors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin: 2rem 0 1rem;
    font-size: 1.1rem;
}

.author-block {
    display: inline-block;
}

.author-block a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.author-block a:hover {
    text-decoration: underline;
}

.author-block sup {
    color: #6b7280;
    font-size: 0.8em;
    margin-left: 2px;
}

/* Affiliations Section */
.affiliations {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin: 0.5rem 0 2rem;
    font-size: 0.95rem;
    color: #6b7280;
}

.affiliation {
    display: inline-block;
}

.affiliation sup {
    color: #4b5563;
    font-size: 0.8em;
    margin-right: 3px;
}

/* Links Section */
.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.link-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
}

.link-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    text-decoration: none;
    color: #ffffff;
}

.link-button:active {
    transform: translateY(0);
}

/* Content Sections */
.content {
    padding: 60px 0;
    font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

/* Abstract section */
section.hero .content,
section.hero .content p {
    font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.section {
    margin-bottom: 2px;
    font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.section h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.section h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    margin-top: 2rem;
    font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.section h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.8rem;
}

.section p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.section li {
    margin-bottom: 0.5rem;
    color: #4b5563;
    line-height: 1.6;
}

/* Method Grid */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.method-item {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.method-item h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.method-item p {
    color: #6b7280;
    margin-bottom: 0;
}

/* Results Container */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.result-item {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.result-item h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Comparison */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.comparison-item {
    text-align: center;
}

.comparison-item h5 {
    margin-bottom: 1rem;
}

.image-placeholder {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 3rem 2rem;
    color: #9ca3af;
    font-weight: 500;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ablation Grid */
.ablation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ablation-item {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.ablation-item h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.ablation-item p {
    margin-bottom: 1.5rem;
}

.ablation-chart {
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Experiments */
.experiments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experiment-item {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.experiment-item h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Implementation */
.implementation {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.implementation h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.implementation ul {
    margin-bottom: 2rem;
}

.hyperparams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.param-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.param-name {
    font-weight: 500;
    color: #374151;
}

.param-value {
    font-weight: 600;
    color: #2563eb;
    font-family: 'Courier New', monospace;
}

/* Citation */
.citation {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.citation p {
    margin-bottom: 1.5rem;
}

.citation-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.container.box {
    padding: 1rem 1.5rem !important;
}

section.hero .container.box {
    padding: 1rem 1.5rem !important;
}

section.hero .container.box h2 {
    margin-bottom: 0.75rem;
}

section.hero .container.box #bibtex-code {
    margin-top: 0.25rem;
}

.citation-box code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
}

#bibtex-code {
    padding: 0.5rem 0;
}

#bibtex-code pre {
    margin: 0;
    padding: 0;
}

#bibtex-code code {
    display: block;
    padding: 0.5rem 0.75rem;
    line-height: 1.2;
    font-size: 0.8rem;
}

/* Results Table */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 1rem 0;
}

.results-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.95rem;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    margin: 0;
}

.results-table thead th {
    background: #f3f4f6 !important;
    color: #374151 !important;
    font-weight: 600 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 10px 12px !important;
    text-align: center !important;
    white-space: nowrap;
    border: none !important;
}

.results-table tbody td,
.results-table tbody th {
    padding: 10px 12px !important;
    border-top: 1px solid #f1f5f9 !important;
    border-left: none !important;
    border-right: none !important;
}

.results-table tbody th {
    text-align: left !important;
    font-weight: 500 !important;
    color: #111827 !important;
    background: #f9fafb !important;
}

.results-table td.num {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
    color: #1f2937 !important;
}

.results-table td small {
    color: #6b7280;
}

.table-notes {
    margin-top: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Video Grid */
 .video-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 2rem;
     margin-top: 2rem;
 }

.video-card {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.video-card video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
    border-radius: 8px;
}

.video-card h4 {
    margin-top: 0.75rem;
}

.video-caption {
    margin: 30px auto 0;
    max-width: 800px;
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

.method-figure {
    margin: 40px auto 0;
    max-width: 1000px;
}

.method-figure h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 1.4em;
}

.figure-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.figure-container embed,
.figure-container img {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.figure-caption {
    margin: 15px 0 0;
    font-size: 1em;
    color: #6b7280;
    font-style: italic;
    text-align: center;
}

.subtoc {
    margin: 0.5rem 0 1rem;
    color: #6b7280;
}

.subtoc a {
    color: #2563eb;
    text-decoration: none;
}

.subtoc a:hover {
    text-decoration: underline;
}

/* Band Grid */
.band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.band-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
}

.band-item img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.band-label {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #374151;
}

/* Main TOC */
.toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 2rem;
}

.toc h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #374151;
}

.toc ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.25rem 1rem;
}

.toc a {
    color: #2563eb;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

/* Collapsible controls */
.collapse-controls {
	margin: 0.5rem 0 1rem;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.collapse-btn {
	background: #2563eb;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 0.4rem 0.75rem;
	font-size: 0.9rem;
	cursor: pointer;
}

.collapse-btn[data-action="collapse"] {
	background: #6b7280;
}

/* Collapsible sections */
details.collapsible {
	background: #ffffff;
	border: 3px solid #9ca3af;
	border-radius: 12px;
	padding: 0.25rem 0.5rem;
	margin: 0.1rem 0;
	transition: all 0.3s ease;
	font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

summary.collapsible-summary {
	list-style: none;
	cursor: pointer;
	padding: 0.75rem 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: background-color 0.2s ease;
	user-select: none;
	-webkit-user-select: none;
	font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

summary.collapsible-summary:hover {
	background-color: #f9fafb;
	border-radius: 8px;
}

summary.collapsible-summary::-webkit-details-marker {
	display: none;
}

summary.collapsible-summary::before {
	content: '▶';
	display: inline-block;
	margin-right: 0.5rem;
	transition: transform 0.3s ease;
	font-size: 0.8em;
	color: #6b7280;
}

details.collapsible[open] > summary.collapsible-summary::before {
	transform: rotate(90deg);
}

summary.collapsible-summary h3,
summary.collapsible-summary h4 {
	margin: 0;
	transition: color 0.2s ease;
}

summary.collapsible-summary:hover h3,
summary.collapsible-summary:hover h4 {
	color: #2563eb;
}

.collapsible-content {
	padding: 0 0.5rem;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
	font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

details.collapsible[open] .collapsible-content {
	max-height: 5000px;
	opacity: 1;
	padding: 0 0.5rem 0.75rem;
	transition: max-height 0.5s ease-in, opacity 0.4s ease-in 0.1s, padding 0.3s ease-in;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 60px 0 40px;
    }
    
    .title h1 {
        font-size: 2.5rem;
    }
    
    .venue {
        font-size: 1.5rem;
    }
    
    .status {
        font-size: 1rem;
    }
    
    .title h2 {
        font-size: 1.5rem;
    }
    
    .authors {
        font-size: 1rem;
        gap: 0.4rem 0.8rem;
    }
    
    .affiliations {
        font-size: 0.9rem;
        gap: 0.4rem 1rem;
    }
    
    .links {
        gap: 0.75rem;
    }
    
    .link-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .section h3 {
        font-size: 1.8rem;
    }
    
    .method-grid,
    .results-container,
    .ablation-grid,
    .video-grid,
    .experiments {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison {
        grid-template-columns: 1fr;
    }
    
    .metrics {
        grid-template-columns: 1fr;
    }
    
    .hyperparams {
        grid-template-columns: 1fr;
    }
    
    .param-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 50px 0 30px;
    }
    
    .title h1 {
        font-size: 2rem;
    }
    
    .venue {
        font-size: 1.3rem;
    }
    
    .status {
        font-size: 0.9rem;
    }
    
    .authors {
        font-size: 0.95rem;
    }
    
    .affiliations {
        font-size: 0.85rem;
    }
    
    .link-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .section {
        margin-bottom: 40px;
    }
    
    .section h3 {
        font-size: 1.6rem;
    }
    
    .method-item,
    .result-item,
    .ablation-item,
    .experiment-item,
    .implementation,
    .citation {
        padding: 1.5rem;
    }
} 