/* ============================================
   TAC Academic Website - Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(20, 20, 30, 0.8);
    --bg-card-hover: rgba(30, 30, 45, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.05);

    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --success: #10b981;
    --error: #ef4444;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(99, 102, 241, 0.3);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --header-height: 70px;
    --container-max: 1400px;
    --section-padding: 60px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background gradient effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(99, 102, 241, 0.06), transparent);
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-content {
    max-width: var(--container-max);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    text-decoration: none;
}

.nav-btn:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-btn.active {
    color: var(--text-primary);
    background: var(--accent-gradient);
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
    padding-top: var(--header-height);
    min-height: 100vh;
}

.tab-content {
    display: block;
    padding: var(--section-padding) 40px;
    max-width: var(--container-max);
    margin: 0 auto;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.tab-content+.tab-content {
    border-top: 1px solid var(--border-color);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    text-align: center;
    padding: 80px 0;
}

.hero.hero-compact {
    padding: 40px 0 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-comparison {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
    letter-spacing: 0;
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ============================================
   Home Page Components
   ============================================ */

.home-section {
    max-width: 100%;
    margin: 0 auto 60px;
    padding: 0;
}

.home-section-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.4;
}

.home-section-desc {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    font-size: 1rem;
}

/* Capabilities Carousel */
.home-capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.home-cap-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.home-cap-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.home-cap-thumb {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.home-cap-icon {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.home-cap-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.home-cap-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Three-column Showcase Row */
.home-showcase-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-showcase-col {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    overflow: hidden;
}

.home-showcase-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.home-showcase-media {
    margin-bottom: 16px;
}

.home-spec {
    border-radius: 8px;
    overflow: hidden;
}

.home-video-wrap {
    border-radius: 8px;
    overflow: hidden;
}

.home-video-wrap video {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.home-audio {
    width: 100%;
    margin-top: 8px;
    height: 36px;
}

.home-vc-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.home-showcase-empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Event Chips (used in showcase) */
.home-event-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.home-event-chip {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-event-chip-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-event-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.home-event-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.home-event-desc {
    color: var(--text-secondary);
    flex: 1;
    min-width: 0;
}

/* Reasoning Showcase */
.home-reasoning-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.home-reasoning-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.home-reasoning-badge {
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-reasoning-type {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.home-reasoning-question {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.5;
}

/* Answer Choices */
.home-choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.home-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.home-choice.correct {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.home-choice-letter {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.home-choice.correct .home-choice-letter {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.home-choice-tag {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.correct-tag {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.model-tag {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

/* Reasoning Toggle Button */
.home-reasoning-toggle {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent-primary);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    transition: all 0.2s;
}

.home-reasoning-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
}

.home-reasoning-toggle.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
}

/* Reasoning Body */
.home-reasoning-body {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.home-reasoning-section {
    margin-bottom: 20px;
}

.home-reasoning-section:last-child {
    margin-bottom: 0;
}

.home-reasoning-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.home-reasoning-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* Shot List */
.home-shots {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-shot {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    gap: 10px;
    align-items: baseline;
}

.home-shot-type {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

.home-shot-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .home-showcase-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .home-capabilities {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 16px auto 0;
}

/* ============================================
   Examples Grid
   ============================================ */

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.example-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.example-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.example-video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.example-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.example-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.example-video-container:hover .example-video-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.example-content {
    padding: 24px;
}

.example-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.example-caption {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    max-height: 100px;
    overflow-y: auto;
}

.example-meta {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.meta-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
}

/* ============================================
   Captioning Cards (source page style)
   ============================================ */

.captioning-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.captioning-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.captioning-video-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #000;
    overflow: hidden;
}

.captioning-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.captioning-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.captioning-card:hover .captioning-video-overlay {
    opacity: 1;
}

.captioning-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.captioning-info {
    padding: 20px;
}

.captioning-events-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    color: #a5b4fc;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.captioning-caption {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.75;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 4px;
}

.captioning-caption::-webkit-scrollbar {
    width: 4px;
}

.captioning-caption::-webkit-scrollbar-track {
    background: transparent;
}

.captioning-caption::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.captioning-caption::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Speech tag styling within captions */
.caption-speech {
    color: #86efac;
    font-style: italic;
}

.caption-speech::before {
    content: '🗣 ';
    font-style: normal;
}


/* ============================================
   Benchmark Tabs
   ============================================ */

.benchmark-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.benchmark-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.benchmark-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.benchmark-tab.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.benchmark-examples {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Benchmark Example Card */
.benchmark-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.benchmark-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-glass);
}

.benchmark-type {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--accent-gradient);
    border-radius: 100px;
    font-weight: 500;
}

.benchmark-result {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-correct {
    color: var(--success);
}

.result-incorrect {
    color: var(--error);
}

.benchmark-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

@media (max-width: 900px) {
    .benchmark-card-body {
        grid-template-columns: 1fr;
    }
}

.benchmark-video-section {
    padding: 24px;
    border-right: 1px solid var(--border-color);
}

@media (max-width: 900px) {
    .benchmark-video-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.benchmark-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    background: #000;
}

.benchmark-question-section {
    padding: 24px;
}

.question-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.6;
}

.choices-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-item {
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.choice-item.correct {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
}

.choice-item.selected {
    border-color: var(--accent-primary);
}

/* Reasoning Section */
.reasoning-toggle {
    display: flex;
    justify-content: center;
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.reasoning-btn {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
    border: 1px solid rgba(99, 102, 241, 0.6);
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.reasoning-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border-color: var(--border-color);
    box-shadow: none;
}

.reasoning-btn:not(.active) {
    animation: pulse-glow 2s infinite;
}

.reasoning-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
    animation: none;
}



.reasoning-section {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-glass);
    display: none;
}

.reasoning-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.shot-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.shot-item {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.shot-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.shot-time {
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.shot-type {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--bg-glass);
    border-radius: 4px;
    color: var(--text-secondary);
}

.shot-content {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.model-reasoning {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.model-reasoning h4 {
    font-size: 0.875rem;
    margin-bottom: 12px;
    color: var(--accent-primary);
}

.model-reasoning p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* YouTube Embeds */
.youtube-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
}

.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Benchmark Category Badge */
.benchmark-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benchmark-category {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
}

/* Reasoning Tabs */
.reasoning-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.reasoning-tab-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.reasoning-tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.reasoning-tab-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.reasoning-tab-content {
    display: none;
}

.reasoning-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Raw Caption Styles */
.raw-caption {
    margin-bottom: 24px;
}

.raw-caption-text {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 500px;
    overflow-y: auto;
}

.caption-time {
    color: var(--accent-primary);
    font-weight: 500;
}

.caption-type {
    color: #f59e0b;
    font-weight: 500;
}

.caption-speech {
    color: var(--success);
    font-style: italic;
}

/* ============================================
   Audio Benchmark Placeholder
   ============================================ */

.audio-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}

.audio-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.7;
}

.audio-placeholder p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.audio-player-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.audio-player-wrapper audio {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
}

/* ============================================
   About Section
   ============================================ */

.about-content {
    max-width: 100%;
    margin: 0 auto;
}

.paper-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
}

.paper-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.abstract {
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
}

/* Results Section */
.results-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 40px;
    max-width: 100%;
    overflow-x: auto;
}

.results-section h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.results-table-container {
    margin-bottom: 40px;
}

.results-table-container:last-child {
    margin-bottom: 0;
}

.results-table-container h4 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--accent-primary);
}

.results-table-container h5 {
    font-size: 0.9375rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.table-caption {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-bottom: 20px;
    font-style: italic;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.table-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Results Table Styling */
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.results-table.compact {
    font-size: 0.75rem;
}

.results-table thead {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
}

.results-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.results-table th.metric {
    text-align: center;
    min-width: 60px;
}

.results-table th.best {
    color: var(--accent-primary);
}

.results-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.results-table td.metric {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
}

.results-table td.metric.best {
    color: var(--accent-primary);
}

.results-table td.metric.best strong {
    color: var(--accent-primary);
}

.results-table th.config,
.results-table td.config {
    font-size: 0.75rem;
    min-width: 40px;
}

.results-table td.config.dim {
    color: var(--text-muted);
    opacity: 0.6;
}

.results-table td.indent {
    padding-left: 24px;
    color: var(--text-muted);
}

.results-table td.model-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.results-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.05);
}

.results-table tbody tr.highlight-row {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.15));
}

.results-table tbody tr.highlight-row td {
    color: var(--text-primary);
    font-weight: 500;
}

.results-table tbody tr.highlight-row:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.2));
}

.results-table tbody tr.section-header td {
    background: var(--bg-glass);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
}

.results-table tbody tr.sub-row td {
    padding-top: 6px;
    padding-bottom: 6px;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

.authors-section {
    margin-bottom: 40px;
}

.authors-section h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.authors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.author {
    font-size: 1rem;
    color: var(--text-primary);
}

.affiliations {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.links-section {
    margin-bottom: 40px;
}

.links-section h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.resource-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.resource-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.resource-icon {
    font-size: 1.25rem;
}

.citation-section h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.citation-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.copy-btn {
    margin-top: 16px;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 0.875rem;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Modals
   ============================================ */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 40px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-card-hover);
}

.video-modal-content {
    width: auto;
    max-width: 900px;
}

.video-modal-content video {
    width: 100%;
    display: block;
}

.modal-caption {
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    max-height: 200px;
    overflow-y: auto;
}

.reasoning-modal-content {
    width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
}

/* ============================================
   Utilities
   ============================================ */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: var(--text-secondary);
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
        flex-direction: column;
        height: auto;
        padding: 16px 20px;
    }

    .header {
        height: auto;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin-top: 12px;
    }

    .nav-btn {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }

    .main-content {
        padding-top: 120px;
    }

    .tab-content {
        padding: 40px 20px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-card {
        padding: 20px 30px;
    }

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

    .benchmark-tabs {
        flex-wrap: wrap;
    }

    .resource-links {
        flex-direction: column;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   Video Captioning Section
   ============================================ */

.vc-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.vc-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.vc-filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.vc-filter-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
}

.vc-examples-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.vc-example-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: border-color 0.3s;
}

.vc-example-card:hover {
    border-color: var(--border-glow);
}

.vc-video-side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.vc-video {
    width: 100%;
    border-radius: var(--radius-md);
    background: #000;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.vc-events-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.vc-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 12px;
}

.vc-events-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.vc-events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 420px;
    padding-right: 6px;
}

.vc-event-item {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.vc-event-item.vc-active {
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.35);
    transform: scale(1.02);
    filter: brightness(1.3);
}

.vc-event-time {
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-mono);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vc-event-type-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 1px 6px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    font-family: var(--font-primary);
}

.vc-event-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Event cards for audio captioning */
.vc-event-card {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vc-event-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.vc-event-card.active {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
    transform: scale(1.02);
}

.vc-event-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
}

.vc-event-badge.music {
    background: rgba(59, 130, 246, 0.7);
}

.vc-event-badge.speech {
    background: rgba(16, 185, 129, 0.7);
}

.vc-event-badge.sfx {
    background: rgba(245, 158, 11, 0.7);
}

.vc-event-badge.visual {
    background: rgba(139, 92, 246, 0.7);
}

/* Caption overlay on mel spectrogram */
.ac-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.5;
    z-index: 15;
}

.ac-caption-overlay.visible {
    opacity: 1;
}

.ac-overlay-line {
    padding: 1px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.ac-overlay-type {
    font-weight: 600;
    margin-right: 4px;
}

.ac-overlay-type.music {
    color: #60a5fa;
}

.ac-overlay-type.speech {
    color: #34d399;
}

.ac-overlay-type.sfx {
    color: #fbbf24;
}

.show-more-btn {
    padding: 12px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.show-more-btn:hover {
    background: var(--accent-gradient);
    border-color: transparent;
}

/* Video wrapper for caption overlay positioning */
.vc-video-wrapper {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Caption overlay at bottom of video */
.vc-caption-overlay {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.5;
}

.vc-caption-overlay.visible {
    opacity: 1;
}

.vc-overlay-line {
    padding: 1px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.vc-overlay-type {
    color: #e8a850;
    font-weight: 600;
    margin-right: 4px;
}

/* JSON toggle button */
.vc-json-toggle-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-family: 'Courier New', monospace;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.vc-json-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.vc-json-toggle-btn.active {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* JSON view – full-width below the card */
.vc-json-view {
    margin-top: -8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: rgba(13, 17, 28, 0.85);
}

.vc-json-pre {
    margin: 0;
    padding: 18px 22px;
    max-height: 420px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #c9d1d9;
    background: transparent;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 900px) {
    .vc-example-card {
        grid-template-columns: 1fr;
    }

    .vc-events-list {
        max-height: 300px;
    }

    .vc-caption-overlay {
        font-size: 0.7rem;
    }
}

/* Audio Captioning Styles */

.ac-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ac-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ac-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.ac-filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.ac-examples-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ac-example-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.ac-visual-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ac-spec-wrapper {
    position: relative;
    width: 100%;
    height: 140px;
    background: #0d111c;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: crosshair;
}

.ac-melspec {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ac-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: #ff4444;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.5);
}

.ac-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ac-overlay-box {
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.ac-overlay-box.music {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.ac-overlay-box.speech {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.ac-overlay-box.sfx {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
}

.ac-overlay-box.visual {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.ac-audio {
    width: 100%;
    height: 40px;
    opacity: 0.9;
}

.ac-events-side {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 400px;
}

@media (max-width: 900px) {
    .ac-example-card {
        grid-template-columns: 1fr;
    }
}

.ac-caption-overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.85rem;
    z-index: 5;
}

.ac-caption-overlay.visible {
    opacity: 1;
}

/* ============================================
   Home Charts Section
   ============================================ */

.home-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.home-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    height: 360px;
    display: flex;
    flex-direction: column;
}

.home-chart-card h3 {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.chart-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
    min-height: 0;
}

@media (max-width: 900px) {
    .home-charts-row {
        grid-template-columns: 1fr;
    }
}

/* Event List Scrolling */
.home-event-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.home-event-list::-webkit-scrollbar {
    width: 4px;
}

.home-event-list::-webkit-scrollbar-track {
    background: transparent;
}

.home-event-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* ============================================
   Author & Affiliation Styles
   ============================================ */

.hero-authors {
    margin: 1.5rem auto 1rem;
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 900px;
    text-align: center;
}

.hero-authors .author {
    white-space: nowrap;
    display: inline-block;
}

.hero-authors sup {
    color: var(--accent-primary);
    font-weight: 600;
    margin-left: 1px;
    font-size: 0.75em;
}

.author-break {
    display: block;
    margin-top: 4px;
}

/* Responsive break for authors */
@media (max-width: 768px) {
    .author-break {
        display: none;
        /* Let it wrap naturally on mobile */
    }
}

.hero-affiliations {
    margin: 0.5rem auto 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    line-height: 1.5;
    max-width: 1000px;
}

.hero-affiliations .affiliation {
    display: inline-block;
}

.hero-affiliations sup {
    color: var(--accent-primary);
    font-weight: 600;
    margin-right: 4px;
    font-size: 0.75em;
}

.hero-contribution {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.hero-correspondence {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-correspondence a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px dotted var(--text-muted);
}

.hero-correspondence a:hover {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.btn-paper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-paper:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.btn-paper svg {
    color: var(--accent-secondary);
}