/* stream-command.css - PREMIUM GLASSMORPHIC VERSION */

/* CSS Variables for easy customization */
:root {
    --primary-green: #00a86b;
    --primary-dark: #1a1a1a;
    --gray-light: #f8f9fa;
    --gray-medium: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.12);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override global black background for Stream Command page */
body.app-page {
    background-color: #f8f9fa !important;
    overflow-y: visible !important; /* Allow natural scroll for sticky headers */
}

/* Stream Command Container */
.stream-command-container {
    max-width: 100%; /* Already correct */
    padding: 40px 20px;
    min-height: calc(100vh - 60px);
    background: #f8f9fa;
    position: relative;
    overflow-x: hidden; /* Add this to prevent double scrollbars */
}

/* Background Pattern - Subtle */
.stream-command-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 168, 107, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 168, 107, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Title with Premium Rainbow Animation */
.stream-command-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    background: linear-gradient(90deg, #f44336, #ff9800, #ffeb3b, #4caf50, #2196f3, #9c27b0, #f44336);
    background-size: 400% 100%;
    animation: rainbow 12s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(1.15) saturate(1.2);
    text-shadow: 0px 0px 4px rgba(255, 255, 255, 0.2);
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

/* Subtle hover lift animation */
.stream-command-title:hover {
    transform: translateY(-1px);
    transition: transform 0.2s ease-out;
}

/* Animated rainbow underline */
.stream-command-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #f44336, #ff9800, #ffeb3b, #4caf50, #2196f3, #9c27b0, #f44336);
    background-size: 400% 100%;
    animation: rainbow 12s ease-in-out infinite;
    opacity: 0.2;
}

/* Quick Stats Bar */
.quick-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.stat-card {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: all 0.3s var(--transition-smooth);
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-green);
}

.stat-value {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: var(--primary-green) !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-variant-numeric: tabular-nums !important;
    margin-bottom: 5px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.stat-label {
    font-size: 12px !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Filters Section Enhanced - Compact Version */
.filters-section {
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
    position: relative;
    overflow: hidden;
}

/* Filter background accent */
.filters-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), #00d084);
}

.filter-group {
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    position: relative;
}

.filter-group label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.filter-group.active label {
    color: var(--primary-green);
}

.filter-select {
    padding: 6px 28px 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666666' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    min-width: 120px;
}

.filter-select:hover {
    border-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(0, 168, 107, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.15);
}

/* Snapshot Button Styling */
.snapshot-group {
    margin-left: auto;
}

.snapshot-button {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.snapshot-button:hover {
    background: linear-gradient(135deg, #5b5ff0 0%, #7c3aed 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.snapshot-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.snapshot-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Reset Filters Button Styling - Isolated and Layout-Safe */
.reset-filters-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    min-width: 80px;
    text-align: center;
}

.reset-filters-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.reset-filters-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.reset-filters-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Toast notification styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #10b981;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
    font-family: 'Inter', sans-serif;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-notification.error {
    border-left-color: #ef4444;
}

.toast-notification.warning {
    border-left-color: #f59e0b;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1f2937;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

/* Snapshot Viewer Styles */
.subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

.snapshots-container {
    margin-top: 20px;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.empty-state p {
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green) 0%, #00d084 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.3);
}

.snapshots-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.snapshot-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.snapshot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.snapshot-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.snapshot-date {
    display: flex;
    flex-direction: column;
}

.date-primary {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    font-family: 'JetBrains Mono', monospace;
}

.date-secondary {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.snapshot-stats {
    display: flex;
    gap: 16px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-green);
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.tier-distribution {
    display: flex;
    gap: 2px;
    height: 8px;
    margin-bottom: 16px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
}

.tier-bar {
    flex: 1;
    position: relative;
}

.tier-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.snapshot-preview {
    margin-bottom: 16px;
}

.preview-pitchers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-pitcher {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.pitcher-name {
    font-weight: 500;
    color: #333;
}

.fintel-score {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.more-pitchers {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 8px;
    font-style: italic;
}

.snapshot-actions {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.view-details-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    background: #008856;
    transform: scale(1.05);
}

/* Snapshot Detail Modal */
.snapshot-modal {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
}

.snapshot-detail-header {
    margin-bottom: 20px;
    text-align: center;
}

.snapshot-detail-header h2 {
    color: var(--primary-green);
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
}

.snapshot-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(0, 168, 107, 0.1);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.pitchers-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

.pitchers-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.pitchers-detail-table th {
    background: #f8f8f8;
    color: #333;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.pitchers-detail-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.pitcher-name-cell {
    font-weight: 600;
    color: #333;
}

.fintel-cell {
    text-align: center;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 4px;
}

.tier-cell {
    text-align: center;
}

.tier-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.vegas-cell {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    color: #B8860B;
    font-weight: 600;
}

.status-cell {
    text-align: center;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.status-complete {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-pending {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

.results-cell {
    text-align: center;
}

.game-results {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-stat {
    font-size: 11px;
    color: #666;
}

.pending-results {
    color: #999;
    font-style: italic;
    font-size: 12px;
}

/* Responsive Design for Snapshot Viewer */
@media (max-width: 768px) {
    .snapshots-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .snapshot-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .snapshot-stats {
        justify-content: center;
    }
    
    .snapshot-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .pitchers-detail-table {
        font-size: 11px;
    }
    
    .pitchers-detail-table th,
    .pitchers-detail-table td {
        padding: 6px 4px;
    }
}

/* Table Container Enhanced */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.5s;
    position: relative;
    
    /* Enable horizontal scrolling when content overflows */
    overflow-x: auto;
    overflow-y: visible; /* Changed from auto - allow natural page scroll */

    max-width: 100%; /* Don't constrain width */
    width: 100%; /* Full width of parent */
}

/* Shift + Scroll Indicator */
.shift-scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.shift-scroll-indicator.visible {
    opacity: 1;
}

.shift-scroll-indicator span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Enhanced scrollbar for horizontal scrolling */
.table-container::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.table-container::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 0 0 12px 12px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

.table-container::-webkit-scrollbar-corner {
    background: #f8f8f8;
}

/* Conditional scrolling for large datasets */
.table-container.scrollable {
    max-height: calc(30 * 40px + 120px); /* ~30 rows + headers */
    overflow-y: auto;
}

/* MOBILE FIX: Override scrollable class on mobile for sticky headers */
@media (max-width: 900px) {
    .table-container.scrollable {
        max-height: none !important;
        overflow-y: visible !important;
    }
}

.table-container.scrollable .streaming-table thead {
    position: sticky;
    top: 0;
    z-index: 20;
}

.table-container.scrollable .category-header th {
    position: sticky;
    top: 0;
    z-index: 22;
}

.table-container.scrollable .column-header th {
    position: sticky;
    top: 42px; /* Height of category header */
    z-index: 21;
}

/* Universal performance mode optimizations for all datasets */
.table-container.performance-mode tbody tr:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #f8f9fa !important; /* Simple hover instead of gradient */
}

.table-container.performance-mode .fintel-cell,
.table-container.performance-mode td {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Loading overlay */
.table-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* ============================================
   DATA STATUS NOTIFICATION
   Slide-in notification for MLB season data status
   ============================================ */

.data-status-notification {
    position: fixed;
    left: -400px; /* Keep this - it's for slide-in animation */
    top: 80px;  /* CHANGE THIS - was 50% */
    transform: none;  /* CHANGE THIS - remove translateY(-50%) */
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid #00ff88;
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 320px;
    opacity: 0;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-status-notification.show {
    left: 0;
    opacity: 1;
}

.data-status-notification.fade-out {
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-icon {
    font-size: 24px;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    flex-shrink: 0;
}

.notification-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

/* Mobile responsive styles */
@media (max-width: 900px) {
    .data-status-notification {
        top: 20px !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateX(-50%) !important;
        opacity: 0;
        max-width: 200px;
        width: auto;
        border: 2px solid #00ff88;
        border-radius: 8px;
        padding: 8px 12px;
        text-align: center;
        transition: opacity 0.5s ease !important;
    }
    
    .data-status-notification.show {
        left: 50% !important;
        transform: translateX(-50%) !important;
        opacity: 1;
    }
    
    .data-status-notification.fade-out {
        left: 50% !important;
        opacity: 0;
        transform: translateX(-50%) !important;
    }
    
    .notification-icon {
        font-size: 16px;
    }
    
    .notification-text {
        font-size: 11px;
        line-height: 1.3;
    }
}


/* Table Styles Enhanced */
.streaming-table {
    border-collapse: collapse;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    table-layout: fixed; /* FIXED: Changed to fixed for stable column widths */
    width: auto; /* FIXED: Auto width based on column definitions, not stretched */
    max-width: 1390px; /* Reduced from 1400px (10px less for smaller FINTEL) */
    min-width: 1190px; /* Reduced from 1200px (10px less for smaller FINTEL) */
    margin: 0 auto; /* Center the table */
}

/* EXPLICIT COLUMN WIDTHS - PHASE 1 FIX */
/* Column 1: Date */
.streaming-table th:nth-child(1),
.streaming-table td:nth-child(1) { 
    width: 60px !important; 
    max-width: 60px !important;
}

/* Column 2: Pitcher Name - with text overflow */
.streaming-table th:nth-child(2),
.streaming-table td:nth-child(2) { 
    width: 160px !important; 
    max-width: 160px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Column 3: Team */
.streaming-table th:nth-child(3),
.streaming-table td:nth-child(3) { 
    width: 45px !important; 
    max-width: 45px !important;
}

/* Column 4: Opponent */
.streaming-table th:nth-child(4),
.streaming-table td:nth-child(4) { 
    width: 65px !important; 
    max-width: 65px !important;
}

/* Column 5: FINTEL - MORE COMPACT */
.streaming-table th:nth-child(5),
.streaming-table td:nth-child(5) { 
    width: 55px !important; 
    min-width: 55px !important;
    max-width: 55px !important;
    padding: 4px 2px !important;
}

/* Columns 6-7: Vegas O/U (Outs, K's) */
.streaming-table th:nth-child(6),
.streaming-table td:nth-child(6),
.streaming-table th:nth-child(7),
.streaming-table td:nth-child(7) { 
    width: 60px !important; 
    max-width: 60px !important;
}

/* Column 8: wOBA */
.streaming-table th:nth-child(8),
.streaming-table td:nth-child(8) { 
    width: 55px !important; 
    max-width: 55px !important;
}

/* Column 9: K% */
.streaming-table th:nth-child(9),
.streaming-table td:nth-child(9) { 
    width: 50px !important; 
    max-width: 50px !important;
}

/* Columns 10-12: Rankings (CBS, FP, PL) */
.streaming-table th:nth-child(10),
.streaming-table td:nth-child(10),
.streaming-table th:nth-child(11),
.streaming-table td:nth-child(11),
.streaming-table th:nth-child(12),
.streaming-table td:nth-child(12) { 
    width: 50px !important; 
    max-width: 50px !important;
}

/* Columns 13-14: Ownership (ESPN, Yahoo) */
.streaming-table th:nth-child(13),
.streaming-table td:nth-child(13),
.streaming-table th:nth-child(14),
.streaming-table td:nth-child(14) { 
    width: 60px !important; 
    max-width: 60px !important;
}

/* Columns 15-16: Actions (STATS, HIST) */
.streaming-table th:nth-child(15),
.streaming-table td:nth-child(15),
.streaming-table th:nth-child(16),
.streaming-table td:nth-child(16) { 
    width: 40px !important; 
    max-width: 40px !important;
}

/* Category Header Enhanced */
.category-header th {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    padding: 14px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    position: relative;
}

.category-header th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Column Headers Enhanced */
.column-header th {
    background: #f8f8f8;
    color: #1a1a1a;
    padding: 14px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
    border-left: none;
    border-right: none;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: all 0.2s ease;
}

/* Override uppercase transformation for wOBA column */
.column-header th[data-sort="woba"] {
    text-transform: none;
}

/* Sticky header shadow on scroll */
.column-header.scrolled th {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background: #f0f0f0;
    color: var(--primary-green);
}

.sort-indicator {
    opacity: 0.3;
    font-size: 10px;
    margin-left: 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.sortable:hover .sort-indicator {
    opacity: 0.6;
    transform: scale(1.2);
}

.sortable.sorted-asc .sort-indicator::before {
    content: '↑';
    color: var(--primary-green);
    opacity: 1;
}

.sortable.sorted-desc .sort-indicator::before {
    content: '↓';
    color: var(--primary-green);
    opacity: 1;
}

/* FINTEL Header Special */
.fintel-header {
    background: linear-gradient(135deg, var(--primary-green) 0%, #00d084 100%) !important;
    color: white !important;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.fintel-header::before {
    content: '★';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    opacity: 0.3;
    font-size: 16px;
}

/* Table Body Enhanced */
.streaming-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s var(--transition-smooth);
    transform: translateX(0);
}

.streaming-table tbody tr:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #ffffff 10%, #ffffff 90%, #f8f9fa 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}


/* Table cell backgrounds - enhanced for glow effect */
.streaming-table td {
    padding: 8px;
    text-align: center;
    color: #333;
    font-variant-numeric: tabular-nums;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: none;
    border-left: none;
    border-right: none;
    vertical-align: middle;
}

/* Pitcher Name Enhanced - PHASE 1 FIX */
.pitcher-name {
    font-weight: 600;
    color: #1a1a1a;
    text-align: left !important;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 12px;
    /* FIXED: Text overflow handling */
    max-width: 160px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: block !important;
}

/* Doubleheader Visual Indicators */
.doubleheader-game1 {
    background: rgba(100, 150, 255, 0.15) !important;
}

.doubleheader-game2 {
    background: rgba(255, 150, 100, 0.15) !important;
}

.pitcher-name.doubleheader-game1,
.pitcher-name.doubleheader-game2 {
    border-left: 3px solid transparent;
}

.pitcher-name.doubleheader-game1 {
    border-left-color: rgba(100, 150, 255, 0.6) !important;
}

.pitcher-name.doubleheader-game2 {
    border-left-color: rgba(255, 150, 100, 0.6) !important;
}

/* Superscript styling for doubleheader game numbers */
.pitcher-name sup {
    font-size: 0.7em;
    opacity: 0.8;
    margin-left: 2px;
    font-weight: 600;
}

.pitcher-name:hover {
    color: var(--primary-green);
    padding-left: 16px;
}

.pitcher-name:hover::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    animation: slideIn 0.3s forwards;
}

@keyframes slideIn {
    to {
        left: 0;
        opacity: 1;
    }
}

/* Pitcher tooltip */
.pitcher-name:hover::after {
    content: "Click for detailed analysis";
    position: absolute;
    bottom: 100%;
    left: 0;
    background: #333;
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    margin-bottom: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

/* FINTEL™ Clean Design - Removed Complex Effects */

/* Vegas O/U Props - Gold color (for all Vegas cells including dashes) */
.vegas-gold-text {
    background: transparent !important;
    color: #B8860B !important; /* Dark goldenrod text color */
    font-weight: 600;
}

/* Vegas shimmer animation (only for cells with actual data) */
.vegas-shimmer {
    position: relative;
    overflow: hidden;
}

.vegas-shimmer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 215, 0, 0.3) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* REMOVED: Vegas column hiding - columns now always visible for constant table structure */
/* Vegas columns maintain consistent width */
.vegas-column {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
}

/* Hover effect for Vegas props */
.streaming-table tbody tr:hover .vegas-gold-text {
    background: transparent !important;
    color: #B8860B !important;
    transform: scale(1.02);
}

/* Make the Vegas O/U header gold too */
.column-header th[data-sort="outs"],
.column-header th[data-sort="ks"] {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    font-weight: 700;
}

.column-header th[data-sort="outs"]:hover,
.column-header th[data-sort="ks"]:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

/* Ranking Badges for CBS/FP/PL columns */
.ranking-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 12px;
}

.ranking-badge.top-50 {
    background: rgba(0, 168, 107, 0.1);
    color: #00a86b;
}

.ranking-badge.top-100 {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.ranking-badge.unranked {
    background: rgba(214, 48, 49, 0.1);
    color: #d63031;
    font-weight: 600;
}

.ranking-badge:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.ranking-badge.top-50:hover {
    background: rgba(0, 168, 107, 0.2);
    transform: scale(1.05);
}

.ranking-badge.top-100:hover {
    background: rgba(255, 152, 0, 0.2);
    transform: scale(1.05);
}

.ranking-badge.unranked:hover {
    background: rgba(214, 48, 49, 0.2);
    transform: scale(1.05);
}

/* Status Enhanced */
.status-available,
.status-owned {
    font-size: 16px;
    position: relative;
    display: inline-block;
}

.status-available::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    animation: ripple 2s infinite;
    z-index: -1;
}

@keyframes ripple {
    0% { 
        width: 20px;
        height: 20px;
        opacity: 0.3;
    }
    100% { 
        width: 40px;
        height: 40px;
        opacity: 0;
    }
}

.status-owned {
    opacity: 0.5;
}

/* AI Chat Enhanced */
.ai-chat-placeholder {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
    position: relative;
    overflow: hidden;
}

.ai-chat-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f44336, #ff9800, #ffeb3b, #4caf50, #2196f3, #9c27b0);
    background-size: 300% 100%;
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ai-chat-placeholder h3 {
    color: #1a1a1a;
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
}

.ai-chat-placeholder p {
    color: #666;
    font-size: 16px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Mobile spacing for AI placeholder */
@media (max-width: 900px) {
    .ai-chat-placeholder {
        margin-top: 20px;
    }
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Design - PHASE 1 MOBILE FIX */
@media (max-width: 900px) {
    /* Prevent iOS zoom on input focus */
    #contactForm input[type="text"],
    #contactForm input[type="email"],
    #contactForm textarea {
        font-size: 16px !important;
    }
    
    /* Or globally for all inputs in modal */
    .about-modal input,
    .about-modal textarea {
        font-size: 16px !important;
    }
    
    .stream-command-title {
        font-size: 32px;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px 20px;
    }
    
    .filters-section {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    /* STICKY HEADERS FIX: Viewport-based sticky with horizontal scroll */
    .table-container {
        margin: 0;
        padding: 0;
        border-radius: 0;
        overflow-x: auto !important;    /* Horizontal scroll for table */
        overflow-y: visible !important; /* NO vertical scroll - let body handle */
        position: relative;
        max-width: 100vw;
        width: 100vw;
        left: 0;
        right: 0;
        /* No max-height - table scrolls with natural page flow */
    }
    
    /* STICKY HEADERS FIX: Prevent page-wide horizontal scroll */
    .stream-command-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow-x: hidden !important;  /* Prevent horizontal scroll */
        overflow-y: visible !important; /* Allow natural page scroll for sticky */
    }
    
    /* Prevent filters from scrolling horizontally with table */
    .filters-section {
        position: relative;
        z-index: 10;
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .streaming-table {
        font-size: 11px;
        min-width: 1050px; /* Ensure table maintains minimum width */
        width: auto; /* Allow table to size naturally */
        transform: scale(0.85);  /* Scale to 85% of original size */
        transform-origin: top left;  /* Scale from top-left corner */
    }
    
    .streaming-table tbody tr td.fintel-cell {
        min-width: 64px !important;
        height: 32px !important;
        padding: 0 16px !important;
        font-size: 14px !important;
        border-radius: 0 !important;
    }
    
    /* PHASE 1 FIX: REMOVED column hiding - all columns now visible */
    /* Ensure all columns remain visible and accessible */
    .streaming-table th,
    .streaming-table td {
        display: table-cell !important; /* Force all columns to display */
    }
    
    /* PHASE 1 BUG FIX: Prevent PERFORMANCE header wrapping */
    .streaming-table .category-header th {
        white-space: nowrap !important; /* Prevent text wrapping */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        min-width: auto !important; /* Override JavaScript width constraints */
    }
    
    /* PHASE 1 BUG FIX: Mobile-specific table width overrides */
    .streaming-table {
        table-layout: auto !important; /* Override fixed layout on mobile */
        width: auto !important; /* Override JavaScript width setting */
        min-width: 1050px !important; /* Maintain minimum width for scrolling */
    }
    
    /* PHASE 1 BUG FIX: Prevent JavaScript colgroup from breaking layout */
    .streaming-table colgroup {
        display: none !important; /* Hide JavaScript-generated colgroup on mobile */
    }
    
    /* PHASE 1 BUG FIX: Ensure Performance header is fully visible */
    .streaming-table .category-header th:last-child {
        min-width: 120px !important;
        padding-right: 15px !important; /* Increased from 10px */
        padding-left: 15px !important;  /* Increased from 4px - equal padding */
        padding-top: 14px !important;
        padding-bottom: 14px !important;
        letter-spacing: 0.3px !important;
        text-align: center !important;
    }
    
    /* Visual scroll indicator for mobile */
    .table-container::after {
        content: '→ Scroll for more';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 5px 10px;
        border-radius: 20px;
        font-size: 12px;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.3s ease;
        z-index: 100;
        white-space: nowrap;
    }
    
    /* Hide indicator when scrolled */
    .table-container.scrolled::after {
        opacity: 0;
    }
}

/* Clickable Column Styles */
.clickable-column {
    position: relative;
    cursor: pointer;
}

.clickable-column::after {
    content: '👆';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.clickable-column:hover::after {
    opacity: 0.6;
}

/* Clickable Cell Styles */
.clickable-cell {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.clickable-cell:hover {
    background: rgba(0, 168, 107, 0.1);
    transform: scale(1.02);
}

/* Unified Data Cell Styling */
.data-cell {
    padding: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    color: #333;
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
}

.data-cell.clickable {
    cursor: pointer;
    font-size: 18px;
    color: #666;
    font-weight: 700;
    transition: all 0.2s ease;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
}

.data-cell.clickable:hover {
    color: var(--primary-green);
    transform: scale(1.2);
    animation: pulse 0.3s ease;
    background: rgba(0, 168, 107, 0.1);
    border-color: rgba(0, 168, 107, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1.2); }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.modal-content {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.1);
}

/* Modal Body */
.modal-body {
    padding: 24px;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    overflow-y: auto;
    max-height: calc(80vh - 48px);
}

/* Modal Headers */
.modal-header {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-green) 0%, #00d084 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* FINTEL Modal Styles */
.fintel-breakdown {
    margin-bottom: 20px;
}

.fintel-component {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.component-name {
    flex: 0 0 120px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.component-weight {
    flex: 0 0 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.component-score {
    flex: 0 0 60px;
    font-weight: 700;
    text-align: center;
}

.component-arrow {
    flex: 0 0 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.component-points {
    flex: 0 0 60px;
    font-weight: 600;
    color: var(--primary-green);
    text-align: right;
}

.component-bar {
    flex: 1;
    margin: 0 12px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.component-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), #00d084);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.fintel-total {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.total-calculation {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.total-score {
    color: var(--primary-green);
    font-size: 24px;
}

/* STATS Modal Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-green);
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.stat-value.good {
    color: #00ff88;
}

.stat-value.average {
    color: #ffaa00;
}

.stat-value.poor {
    color: #ff5555;
}

/* HIST Modal Styles */
.hist-records {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hist-record {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.record-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.record-value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .fintel-component {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .component-name {
        flex: 0 0 100px;
    }
    
    .component-bar {
        flex: 1;
        min-width: 100px;
    }
}

/* FINTEL™ Smooth Expansion Animation System */
.fintel-expansion {
    /* No animation on the table row itself */
}

.fintel-expansion td {
    background: #fafbfc !important;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: #333;
    position: relative;
    border-radius: 8px;
    /* Dynamic border will be applied via JavaScript */
}

.expansion-wrapper {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                transform 0.3s ease;
    transform: translateY(-4px);
    max-width: 100%;
    box-sizing: border-box;
}

.expansion-wrapper.open {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

.expansion-content {
    padding: 16px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
}

.fintel-brand-label {
    position: absolute;
    top: 4px;
    left: 12px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 9px;
    font-weight: 600;
    padding: 2px 4px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3px;
    z-index: 10;
    /* Dynamic color will be applied via JavaScript */
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 16px;
    margin-bottom: 8px;
}

.component-line {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.component-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.2;
}

.component-bar {
    background: #e0e0e0;
    height: 3px;
    border-radius: 2px;
    overflow: hidden;
}

.component-fill {
    background: var(--primary-green);
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.total-display {
    text-align: right;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #e0e0e0;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 300px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

/* Responsive Design for Expansion */
@media (max-width: 768px) {
    .fintel-components-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .fintel-expansion td {
        padding: 16px;
    }
    
    .expansion-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .fintel-component {
        padding: 12px;
    }
    
    .component-name {
        font-size: 13px;
    }
    
    .component-score {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .fintel-components-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Print Styles */
@media print {
    .filters-section,
    .quick-stats,
    .ai-chat-placeholder,
    .modal-overlay,
    .fintel-expansion {
        display: none;
    }
    
    .streaming-table {
        font-size: 10px;
    }
}

/* Yahoo Ownership Badges - COMMENTED OUT (no longer used, Yahoo now displays as plain text like ESPN) */
/*
.ownership-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    min-width: 40px;
    text-align: center;
}

.high-ownership {
    background-color: #dc3545;
    color: white;
}

.medium-ownership {
    background-color: #ffc107;
    color: #212529;
}

.low-ownership {
    background-color: #28a745;
    color: white;
}

.very-low-ownership {
    background-color: #6c757d;
    color: white;
}
*/

/* FINTEL COLUMN - CLEAN RANKING BADGE STYLE */

/* Base FINTEL cell styling - PHASE 1 FIX ENHANCED */
.streaming-table tbody tr td.fintel-cell {
    width: 55px !important;
    min-width: 55px !important;
    max-width: 55px !important;
    padding: 4px 2px !important;
    
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    
    /* Remove any problematic effects */
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
    box-shadow: none !important;
    
    /* Remove outlines and borders */
    border: none !important;
    outline: none !important;
}


/* Elite/Strong Green (90-100) */
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="9"],
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="9"],
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score="100"],
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score="100"] {
    background: rgba(0, 168, 107, 0.1) !important;
    color: #008856 !important;
}

/* High Green (80-89) */
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="8"],
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="8"] {
    background: rgba(76, 175, 80, 0.1) !important;
    color: #388E3C !important;
}

/* Yellow/Amber (70-79) */
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="7"],
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="7"] {
    background: rgba(255, 193, 7, 0.1) !important;
    color: #F57C00 !important;
}

/* Orange (60-69) */
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="6"],
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="6"] {
    background: rgba(255, 152, 0, 0.1) !important;
    color: #E65100 !important;
}

/* Deep Orange (50-59) */
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="5"],
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="5"] {
    background: rgba(255, 87, 34, 0.1) !important;
    color: #E64A19 !important;
}

/* Red (40-49) */
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="4"],
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="4"] {
    background: rgba(214, 48, 49, 0.1) !important;
    color: #B71C1C !important;
}

/* Dark Red (0-39) */
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="0"],
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="0"],
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="1"],
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="1"],
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="2"],
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="2"],
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="3"],
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="3"] {
    background: rgba(214, 48, 49, 0.1) !important;
    color: #d63031 !important;
}

/* Clean hover effects - matching ranking badges with higher specificity */
.streaming-table tbody tr:nth-child(even) td.fintel-cell:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: scale(1.05) !important;
}

.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="9"]:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="9"]:hover,
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score="100"]:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score="100"]:hover {
    background: rgba(0, 168, 107, 0.2) !important;
}

.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="8"]:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="8"]:hover {
    background: rgba(76, 175, 80, 0.2) !important;
}

.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="7"]:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="7"]:hover {
    background: rgba(255, 193, 7, 0.2) !important;
}

.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="6"]:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="6"]:hover {
    background: rgba(255, 152, 0, 0.2) !important;
}

.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="5"]:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="5"]:hover {
    background: rgba(255, 87, 34, 0.2) !important;
}

.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="4"]:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="4"]:hover,
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="0"]:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="0"]:hover,
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="1"]:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="1"]:hover,
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="2"]:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="2"]:hover,
.streaming-table tbody tr:nth-child(even) td.fintel-cell[data-score^="3"]:hover,
.streaming-table tbody tr:nth-child(odd) td.fintel-cell[data-score^="3"]:hover {
    background: rgba(214, 48, 49, 0.2) !important;
}

/* Purple FINTEL header */
.fintel-header {
    background: linear-gradient(to bottom, #8B5CF6, #7C3AED) !important;
    color: #fff !important;
}

/* ============================================
   WEIGHT LOCK FEATURE STYLES - PHASE 1
   ============================================ */

/* Weights hint area for messages */
.weights-hint {
    padding: 8px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    display: none;
}

.weights-hint.error {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

.weights-hint.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ff9800;
    border: 1px solid rgba(255, 193, 7, 0.3);
    display: block;
}

.weights-hint.info {
    background: rgba(33, 150, 243, 0.1);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
    display: block;
}

/* Lock button styling */
.weight-lock {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 8px;
    min-width: 32px;
    text-align: center;
}

/* Unlocked state (gray) */
.weight-lock.unlocked {
    color: #999;
}

.weight-lock.unlocked:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

/* Locked state (gold) */
.weight-lock.locked {
    color: #FFD700;
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
}

.weight-lock.locked:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.1);
}

/* Visual feedback for locked weight controls */
.weight-control.locked input[type="range"],
.weight-control.locked input[type="number"] {
    opacity: 0.6;
    cursor: not-allowed;
}

.weight-control.locked label {
    color: #FFD700;
    font-weight: 600;
}

/* Smooth transitions for lock state changes */
.weight-control {
    transition: all 0.2s ease;
}

.weight-control.locked {
    background: rgba(255, 215, 0, 0.03);
    border-radius: 6px;
    padding: 2px;
}

/* FINTEL COLUMN COMPACT OVERRIDE - Place at END of file */
.streaming-table th:nth-child(5),
.streaming-table td:nth-child(5),
.streaming-table tbody tr td.fintel-cell,
.streaming-table .fintel-cell,
.streaming-table .fintel-header,
td.fintel-cell,
th.fintel-header {
    width: 55px !important;
    min-width: 55px !important;
    max-width: 55px !important;
    padding: 4px 2px !important;
    box-sizing: border-box !important;
}

/* Force FINTEL header to be compact */
.streaming-table thead tr th:nth-child(5) {
    width: 55px !important;
    min-width: 55px !important;
    max-width: 55px !important;
    padding: 4px 2px !important;
}

/* FORCE FINTEL COLUMN TO 55PX - ULTIMATE OVERRIDE */
.streaming-table th:nth-child(5),
.streaming-table td:nth-child(5),
.streaming-table tbody tr td:nth-child(5),
.streaming-table thead tr th:nth-child(5),
td.fintel-cell,
th.fintel-header {
    width: 55px !important;
    min-width: 55px !important;
    max-width: 55px !important;
    padding: 4px 2px !important;
    box-sizing: border-box !important;
}

/* FINTEL Column Optimization - Ultra Compact Layout */
.streaming-table {
    table-layout: fixed;
    width: 650px;
    max-width: 650px;
    margin: 0 auto;
}

/* Force column widths */
.streaming-table th:nth-child(1), .streaming-table td:nth-child(1) { width: 40px !important; }
.streaming-table th:nth-child(2), .streaming-table td:nth-child(2) { width: 120px !important; }
.streaming-table th:nth-child(3), .streaming-table td:nth-child(3) { width: 40px !important; }
.streaming-table th:nth-child(4), .streaming-table td:nth-child(4) { width: 40px !important; }
.streaming-table th:nth-child(5), .streaming-table td:nth-child(5) { width: 60px !important; }
.streaming-table th:nth-child(6), .streaming-table td:nth-child(6) { width: 40px !important; }
.streaming-table th:nth-child(7), .streaming-table td:nth-child(7) { width: 40px !important; }
.streaming-table th:nth-child(8), .streaming-table td:nth-child(8) { width: 40px !important; }
.streaming-table th:nth-child(9), .streaming-table td:nth-child(9) { width: 40px !important; }
.streaming-table th:nth-child(10), .streaming-table td:nth-child(10) { width: 30px !important; }
.streaming-table th:nth-child(11), .streaming-table td:nth-child(11) { width: 30px !important; }
.streaming-table th:nth-child(12), .streaming-table td:nth-child(12) { width: 30px !important; }
.streaming-table th:nth-child(13), .streaming-table td:nth-child(13) { width: 40px !important; }
.streaming-table th:nth-child(14), .streaming-table td:nth-child(14) { width: 40px !important; }
.streaming-table th:nth-child(15), .streaming-table td:nth-child(15) { width: 35px !important; }
.streaming-table th:nth-child(16), .streaming-table td:nth-child(16) { width: 35px !important; }


/* About Modal Styles */
.about-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.about-modal[style*="block"] {
    display: flex !important;
    opacity: 1;
}

.about-modal-content {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.about-modal[style*="block"] .about-modal-content {
    transform: scale(1);
}

.about-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.about-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Modal Header - NARROWER purple gradient */
.modal-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    padding: 20px 50px 20px 25px; /* Reduced from 30px to 20px */
    text-align: center;
    border-radius: 16px 16px 0 0;
}

.about-modal-content .modal-header {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
    color: white;
    padding: 20px 50px 20px 25px;
    text-align: center;
    border-radius: 16px 16px 0 0;
}

.about-modal-content .modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
    color: white !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    padding: 0;
    cursor: pointer;  /* ADD THIS LINE */
}

.hero-line {
    font-size: 20px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.hero-section {
    background: linear-gradient(135deg, #fafbfc, #f8f9fa);
    padding: 24px;
    border-bottom: 1px solid #e8e8e8;
}

/* Remove green text - use gray */
.hero-section p {
    color: #4B5563; /* Gray instead of green */
    line-height: 1.6;
    margin: 0;
}

.about-section {
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.about-section h3 {
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.subhead {
    color: #6B7280;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Factors Grid */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.factor-card {
    background: #fafbfc;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.factor-card:hover {
    border-color: #8B5CF6;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.factor-percentage {
    display: block;
    font-size: 28px;
    color: #B8860B; /* Gold bronze */
    font-weight: bold;
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.factor-card strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
}

.factor-card small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 11px;
}

/* Benefits */
.benefits-section {
    background: #f8f9fa;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    line-height: 1.5;
    color: #4B5563; /* Gray text */
}

.benefits-list li strong {
    color: #1a1a1a; /* Dark gray for emphasis */
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #8B5CF6; /* Purple checkmarks */
    font-weight: bold;
}

/* Coming Soon Section */
.coming-soon-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(124, 58, 237, 0.03));
    border-left: 3px solid #8B5CF6;
}

.coming-soon-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.coming-features {
    color: #6B7280;
    font-size: 13px;
    line-height: 1.8;
    font-weight: 400;
}

/* Score Visual */
.score-visual {
    padding: 24px;
    background: #fafbfc;
}

.score-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.score-bar:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.score-bar .range {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
}

.score-bar .label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Score colors matching your FINTEL column */
.score-bar.elite {
    background: linear-gradient(90deg, #00B368, #00D787);
    color: white;
}

.score-bar.strong {
    background: linear-gradient(90deg, #388E3C, #4CAF50);
    color: white;
}

.score-bar.average {
    background: linear-gradient(90deg, #F57C00, #FFA500);
    color: white;
}

.score-bar.avoid {
    background: linear-gradient(90deg, #d32f2f, #F44336);
    color: white;
}

/* Data Sources */
.data-sources-section {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e8e8e8;
}

.sources-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #9CA3AF;
    margin: 0;
    font-weight: 600;
}

.sources-list {
    font-size: 13px;
    color: #4B5563;
    margin: 8px 0 0 0;
    font-weight: 500;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 25px;
    text-align: center;
    background: linear-gradient(135deg, #fafbfc, #f8f9fa);
    border-radius: 0 0 16px 16px;
}

.cta-main {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
}

.cta-sub {
    color: #6B7280;
    font-size: 14px;
    margin-top: 8px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .about-modal-content {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        overflow-y: auto !important;
        overscroll-behavior: none !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }
    
    /* Lock body scroll when modal open */
    body.modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        overscroll-behavior: none !important;
        touch-action: none !important;
    }
    
    /* Remove rounded corners from purple header on mobile */
    .about-modal-content .modal-header {
        border-radius: 0 !important;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
    
    .hero-line {
        font-size: 18px;
    }
    
    .factors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Scrollbar */
.about-modal-content::-webkit-scrollbar {
    width: 8px;
}

.about-modal-content::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 0 8px 8px 0;
}

.about-modal-content::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.about-modal-content::-webkit-scrollbar-thumb:hover {
    background: #8B5CF6;
}

/* Score Update Animation - Phase 4 */
.score-updated {
    animation: highlightChange 0.5s ease-out;
}

@keyframes highlightChange {
    0% { 
        background-color: #ffeb3b;
        transform: scale(1.1);
    }
    50% {
        background-color: #fff59d;
        transform: scale(1.05);
    }
    100% { 
        background-color: transparent;
        transform: scale(1);
    }
}

/* Glossary Styling */
.glossary-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 20px;
}

.glossary-section:last-child {
    border-bottom: none;
}

.glossary-title {
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.glossary-item {
    margin-bottom: 20px;
}

.glossary-item strong {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.glossary-item p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* Remove any green text that might be inherited */
#glossary-content * {
    color: inherit !important;
}

/* Disable hover effects for STATS and HIST column headers (columns 15 & 16) */
.column-header th:nth-child(15).clickable-column,
.column-header th:nth-child(16).clickable-column {
    cursor: default !important;
}

.column-header th:nth-child(15).clickable-column::after,
.column-header th:nth-child(16).clickable-column::after {
    display: none !important;
}

/* Disable hand emoji for FINTEL column header but keep sorting */
.column-header th:nth-child(5).fintel-header.clickable-column::after {
    display: none !important;
}

/* Data Freshness Icon Styles */
.data-freshness-icon {
    color: #4A9EFF;
    cursor: pointer;
    animation: pulse-glow 2s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.data-freshness-icon svg {
    width: 20px;
    height: 20px;
}

.data-freshness-icon:hover {
    color: #6BB6FF;
    animation: none;
}

/* Mobile */
@media (max-width: 768px) {
    .data-freshness-icon svg {
        width: 18px;
        height: 18px;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(74, 158, 255, 0.5);
    }
    50% {
        opacity: 0.6;
        text-shadow: 0 0 10px rgba(74, 158, 255, 0.8);
    }
}

/* Popup styles */
.data-freshness-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.data-freshness-popup h3 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
}

.data-freshness-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-freshness-popup li {
    padding: 8px 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

.data-freshness-popup strong {
    color: #fff;
}

.data-freshness-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
}

.data-freshness-popup-close:hover {
    color: #fff;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

/* Mobile responsive styles for Data Freshness popup */
@media (max-width: 768px) {
    .data-freshness-popup {
        font-size: 0.85em !important;
        padding: 16px !important;
    }
    
    .data-freshness-popup h3 {
        font-size: 1.2em !important;
    }
    
    .data-freshness-popup p,
    .data-freshness-popup ul li {
        font-size: 0.9em !important;
        line-height: 1.4 !important;
    }
}
