:root {
    --primary-color: #0571D0;
    --accent-color: #FF9A8A;
    --background: linear-gradient(135deg, #000000 0%, #1a1a2e 20%, #16213e 40%, #0f3460 60%, #0a4a8a 80%, #0571D0 100%);
    --surface-white: #ffffff;
    --surface-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --card-gradient: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-on-accent: #ffffff;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e0;
    --shadow-light: 0 2px 6px 0 rgba(5, 113, 208, 0.2), 0 1px 4px 0 rgba(5, 113, 208, 0.12);
    --shadow-medium: 0 6px 12px -1px rgba(5, 113, 208, 0.3), 0 4px 8px -1px rgba(5, 113, 208, 0.15);
    --shadow-large: 0 15px 25px -3px rgba(5, 113, 208, 0.4), 0 8px 12px -2px rgba(5, 113, 208, 0.2);
    --gradient-blue: linear-gradient(135deg, #0571D0 0%, #1e88e5 50%, #42a5f5 100%);
    --gradient-success: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
    --gradient-warning: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

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

.header {
    margin-bottom: 60px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.header-logo-container {
    background: var(--surface-gradient);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.header-logo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    transition: all 0.3s ease;
    display: block;
    box-shadow: var(--shadow-medium);
    object-fit: contain;
    background: white;
    padding: 8px;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-text h1 {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 20px;
    color: var(--text-on-accent);
    font-weight: 400;
    opacity: 0.9;
    margin: 0;
    text-align: center;
    align-self: center;
}

.GVL {
    background: var(--surface-gradient);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.GVL h2 {
    font-size: 28px;
    font-weight: 600;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.3;
}

.metric-description {
    background: var(--surface-gradient);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.metric-description h2 {
    font-size: 28px;
    font-weight: 600;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.3;
}

.formula {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 24px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 16px;
    margin: 24px 0;
    text-align: center;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    font-weight: 500;
    box-shadow: var(--shadow-light);
}

.description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
}

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

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

.link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2d3748;
    color: #ffffff;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #4a5568;
}

.link-btn:hover:not(.disabled) {
    background: #4a5568;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.link-btn.disabled {
    background: #718096;
    color: #a0aec0;
    cursor: not-allowed;
    opacity: 0.6;
}

.link-btn svg {
    flex-shrink: 0;
}

.episode-demo {
    background: var(--surface-gradient);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 48px;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.episode-demo h2 {
    font-size: 28px;
    font-weight: 600;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.3;
}

.episode-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.episode-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.episode-btn:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.episode-btn.active {
    background: var(--gradient-blue);
    color: white;
    border-color: var(--primary-color);
}

.episode-container {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-light);
}

.episode-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.frame-info {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.slider-container {
    flex: 1;
    min-width: 200px;
}

.frame-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--border-light);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.frame-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-blue);
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

.frame-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-blue);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-light);
}

.play-btn {
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

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

.episode-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.episode-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.episode-image {
    width: 100%;
    height: 400px; /* Match the chart container height */
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease, opacity 0.2s ease;
    background: var(--border-light);
    object-fit: cover;
}

.episode-image.loading {
    opacity: 0.7;
}

.episode-image.loaded {
    opacity: 1;
}

.episode-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.chart-container {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.chart-title {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-size: 16px;
}

.filters {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 32px;
    background: var(--card-gradient);
    border-radius: 16px;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.filter-group select {
    padding: 12px 16px;
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    min-width: 160px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

.filter-group select:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(5, 113, 208, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.table-container {
    background: var(--surface-gradient);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-large);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-secondary);
}

.sortable {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.sortable:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.sortable.sort-asc::after {
    content: '↑';
    margin-left: 8px;
    color: var(--primary-color);
}

.sortable.sort-desc::after {
    content: '↓';
    margin-left: 8px;
    color: var(--primary-color);
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

td {
    font-weight: 400;
    font-size: 14px;
}

td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.model-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.voc-score {
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
}

.footer {
    text-align: center;
    margin-top: 60px;
    color: var(--text-on-accent);
    opacity: 0.9;
    font-size: 14px;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.contact-section h3 {
    color: var(--text-on-accent);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-on-accent);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.contact-link svg {
    flex-shrink: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .container {
        padding: 24px 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .header-text {
        align-items: center;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 36px;
        text-align: center;
    }
    
    .episode-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .episode-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .filters {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .filter-group select {
        width: 100%;
        min-width: unset;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 800px;
    }

    .contact-links {
        gap: 16px;
    }
    
    .footer-content {
        gap: 16px;
    }
} 