/* ===== CSS Variables ===== */
:root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #121212;
    --bg-tertiary: #000000;
    --bg-card: rgba(15, 15, 15, 0.98);
    --bg-glass: rgba(25, 25, 25, 0.95);
    --bg-glass-hover: rgba(35, 35, 35, 0.98);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    /* Orange accent like player card */
    --accent-primary: #F5A244;
    --accent-orange: #F5A244;
    --accent-orange-glow: rgba(245, 162, 68, 0.5);
    --accent-secondary: #FFC671;
    --accent-gradient: linear-gradient(90deg, #F5A244 0%, #FFC671 100%);
    --accent-gradient-vertical: linear-gradient(180deg, #FFC671 0%, #F5A244 100%);
    --accent-gradient-soft: linear-gradient(90deg, rgba(245, 162, 68, 0.32) 0%, rgba(245, 162, 68, 0.08) 100%);
    --accent-success: #4ade80;
    --accent-teal: #2dd4bf;
    --accent-warning: #fbbf24;
    --accent-danger: #ef4444;
    
    /* Bar colors from player card */
    --bar-high: #F5A244;
    --bar-mid: #FFC671;
    --bar-low: #2dd4bf;
    --bar-bg: #3a3a3a;
    
    --border-color: rgba(245, 162, 68, 0.5);
    --border-orange: rgba(245, 162, 68, 0.9);
    --border-subtle: rgba(255, 255, 255, 0.1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.7);
    --shadow-orange: 0 0 24px rgba(245, 162, 68, 0.45);
    
    --sidebar-width: 260px;
    --nav-height: 52px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.2s ease;
}

@font-face {
    font-family: "Rubber";
    src: url("../assets/fonts/Rubber.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AdvancedLedBoard";
    src: url("../assets/fonts/advanced_led_board-7.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Mobile Navigation ===== */
.mobile-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--bg-secondary);
    border-bottom: 3px solid var(--border-orange);
    z-index: 1000;
    padding: 0 12px;
    align-items: center;
    justify-content: space-between;
}

.nav-toggle, .chat-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--accent-orange);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.nav-toggle:hover, .chat-toggle:hover {
    background: var(--accent-gradient-soft);
    border-color: var(--accent-orange);
}

.hamburger {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent-gradient);
    position: relative;
    border-radius: 1px;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--accent-gradient);
    left: 0;
    border-radius: 1px;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo--brand {
    gap: 10px;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logo-img--glow {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 12px rgba(245, 162, 68, 0.8));
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-orange);
    letter-spacing: 0.5px;
}

.logo-text--scanner {
    font-family: "AdvancedLedBoard", "Rubber", "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
    font-weight: 400;
    background: linear-gradient(90deg, #00FFFF 0%, #8B5CF6 50%, #A855F7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.8px;
    position: relative;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(0, 255, 255, 0.6),
            0 0 20px rgba(0, 255, 255, 0.4),
            0 0 30px rgba(139, 92, 246, 0.3);
        filter: brightness(1);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(168, 85, 247, 0.8),
            0 0 30px rgba(139, 92, 246, 0.6),
            0 0 45px rgba(0, 255, 255, 0.4);
        filter: brightness(1.1);
    }
}

/* ===== Sidebar ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 3px solid var(--border-orange);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
}

.sidebar.open {
    transform: translateX(0);
}

.sidebar-header {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 3px solid var(--border-orange);
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.sidebar-title {
    display: flex;
    flex-direction: column;
}

.title-main {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-orange);
}

/* Sidebar title gradient (aqua-based blue-purple) */
.title-main.title-gradient {
    font-family: "AdvancedLedBoard", "Rubber", "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    background: linear-gradient(90deg, #00FFFF 0%, #8B5CF6 50%, #A855F7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.8px;
    animation: glowPulse 3s ease-in-out infinite;
}

.title-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-header span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-orange);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    margin-bottom: 2px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-item:hover {
    background: var(--accent-gradient-soft);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.nav-item.active {
    background: var(--accent-gradient-soft);
    color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.nav-item.active svg {
    stroke: var(--accent-orange);
}

/* Menu icons — player silhouettes (larger than SVG icons) */
.nav-icon-img {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity var(--transition);
    filter: brightness(1.8);
}
.nav-item.active .nav-icon-img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(58%) sepia(85%) saturate(1458%) hue-rotate(346deg) brightness(98%) contrast(92%);
}
.nav-item:hover .nav-icon-img {
    opacity: 0.9;
}

.nav-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
}

.api-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    transition: background 0.3s ease;
}

.status-text {
    color: var(--text-muted);
}

.user-team {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Sidebar Overlay ===== */
.sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Main Content ===== */
.main-content {
    margin-left: 0;
    min-height: 100vh;
    padding: 12px;
    padding-top: calc(var(--nav-height) + 12px);
}

.content-section {
    display: none;
    animation: fadeIn 0.2s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Section Header ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.section-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

/* ===== Search Container ===== */
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ===== Buttons ===== */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.refresh-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.expand-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.expand-btn:hover {
    color: var(--text-primary);
}

/* ===== Chat Section ===== */
.chat-container {
    max-width: 800px;
    margin: 0 auto;
    height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
}

.chat-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex: 1;
}

.chat-logo {
    max-width: 150px;
    opacity: 0.6;
}

.chat-header {
    text-align: center;
    padding: 32px 16px;
}

.chat-header h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.chat-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    background: var(--bg-glass);
}

.message.user .message-content {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.message-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== DDAI Response Color Formatting ===== */
/* Base text color for assistant messages - medium grey */
.message.assistant .message-content {
    color: #9CA3AF;
}

.message.assistant .message-content p {
    color: #9CA3AF;
}

/* Headers and player names - Orange */
.message.assistant .message-content h1,
.message.assistant .message-content h2,
.message.assistant .message-content h3,
.message.assistant .message-content h4,
.message.assistant .message-content .ddai-header,
.message.assistant .message-content .player-name,
.message.assistant .message-content .player-link,
.message.assistant .message-content strong:first-child {
    color: #F5A244;
}

/* Recommendations and strategic info - Aqua */
.message.assistant .message-content .ddai-recommendation,
.message.assistant .message-content .ddai-action,
.message.assistant .message-content .ddai-strategy,
.message.assistant .message-content em {
    color: #00FFFF;
}

/* Bold text within paragraphs (stats, emphasis) */
.message.assistant .message-content strong {
    color: #F5A244;
    font-weight: 600;
}

/* Links (player names) */
.message.assistant .message-content a,
.message.assistant .message-content a:visited {
    color: #F5A244;
    text-decoration: none;
    border-bottom: 1px dotted #F5A244;
}

.message.assistant .message-content a:hover {
    color: #FFB86C;
    border-bottom-color: #FFB86C;
}

/* Lists in responses */
.message.assistant .message-content ul,
.message.assistant .message-content ol {
    color: #9CA3AF;
    margin: 8px 0;
    padding-left: 20px;
}

.message.assistant .message-content li {
    margin-bottom: 4px;
}

/* Code/stat blocks */
.message.assistant .message-content code {
    color: #00FFFF;
    background: rgba(0, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
}

/* ===== Chat Card Previews ===== */
.chat-card-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}

.card-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(245, 162, 68, 0.15), rgba(245, 162, 68, 0.05));
    border: 1px solid var(--accent-orange);
    border-radius: var(--border-radius-sm);
    color: #F5A244;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.card-preview-btn:hover {
    background: linear-gradient(135deg, rgba(245, 162, 68, 0.25), rgba(245, 162, 68, 0.1));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 162, 68, 0.2);
}

.card-preview-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.card-preview-btn.goalie {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 255, 255, 0.05));
    border-color: #00FFFF;
    color: #00FFFF;
}

.card-preview-btn.goalie:hover {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.25), rgba(0, 255, 255, 0.1));
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

/* Expanded card preview within message */
.chat-card-expanded {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius);
    max-height: 300px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.chat-card-expanded:hover {
    border-color: var(--accent-orange);
}

.chat-card-expanded::after {
    content: 'Click to expand';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 12px 8px;
    background: linear-gradient(to top, var(--bg-primary) 50%, transparent);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.chat-card-expanded iframe {
    width: 100%;
    height: 280px;
    border: none;
    pointer-events: none;
    transform: scale(0.6);
    transform-origin: top left;
    width: 166%;
}

/* ===== Full Screen Card Modal ===== */
.card-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
}

.card-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.card-modal-container {
    position: relative;
    width: 95vw;
    max-width: 500px;
    height: 90vh;
    max-height: 800px;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-orange);
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-modal-overlay.active .card-modal-container {
    transform: translateY(0);
}

/* Swipe indicator for mobile */
.card-modal-swipe-indicator {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
    z-index: 10;
    display: none;
}

/* Swipe hint text */
.card-modal-swipe-hint {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    z-index: 10;
    display: none;
    white-space: nowrap;
}

.card-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
}

.card-modal-close:hover {
    background: rgba(245, 162, 68, 0.8);
    border-color: var(--accent-orange);
    transform: scale(1.1);
}

.card-modal-content {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 15px;
    padding-top: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-modal-content iframe {
    width: 100%;
    flex: 1;
    border: none;
    min-height: 600px;
    max-height: calc(100vh - 60px);
}

.card-iframe-wrapper {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ddai-summary {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(245, 162, 68, 0.35);
    background: rgba(15, 17, 23, 0.8);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.ddai-summary-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-orange);
    margin-bottom: 6px;
}

.ddai-summary-body {
    font-size: 0.9rem;
    color: #9CA3AF;
    line-height: 1.45;
}

.ddai-summary-body.ddai-summary-loading {
    color: var(--text-muted);
}

.ddai-injury-warning {
    background: rgba(245, 54, 54, 0.12);
    border: 1px solid rgba(245, 54, 54, 0.3);
    border-radius: 6px;
    padding: 0.4rem 0.65rem;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    color: #f87171;
    font-weight: 600;
}

.ddai-summary-highlight {
    color: var(--accent-orange);
    font-weight: 600;
}

.ddai-section-header {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: 0.7rem;
    margin-bottom: 0.15rem;
    letter-spacing: 0.02em;
}

.ddai-summary-negative {
    color: #00FFFF;
    font-weight: 600;
}

.ddai-summary-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
}

.ddai-tile {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.ddai-tile--highlight {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.35), rgba(245, 162, 68, 0.18));
    border-color: rgba(74, 222, 128, 0.6);
    color: #eafff1;
}

.ddai-tile-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.ddai-tile-value {
    font-size: 1rem;
    font-weight: 600;
}

.ddai-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    align-items: center;
    justify-content: space-between;
}

/* ── Inline Card Chat ───────────────────────────────────── */

.ddai-chat-toggle-btn {
    background: rgba(242, 134, 44, 0.15);
    border: 1px solid rgba(242, 134, 44, 0.35);
    color: #f2862c;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    margin-left: auto;
}

.ddai-chat-toggle-btn:hover {
    background: rgba(242, 134, 44, 0.25);
    border-color: #f2862c;
}

.ddai-card-chat {
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.ddai-card-chat-messages {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ddai-card-chat-msg {
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 90%;
    word-wrap: break-word;
}

.ddai-card-chat-msg-user {
    align-self: flex-end;
    background: rgba(242, 134, 44, 0.2);
    border: 1px solid rgba(242, 134, 44, 0.3);
    color: #fff;
}

.ddai-card-chat-msg-assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d0d0d0;
}

.ddai-card-chat-typing {
    font-style: italic;
    color: #888;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ddai-card-chat-input-row {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.ddai-card-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 7px 10px;
    color: #e0e0e0;
    font-size: 0.75rem;
    outline: none;
    transition: border-color 0.2s;
}

.ddai-card-chat-input:focus {
    border-color: rgba(242, 134, 44, 0.5);
}

.ddai-card-chat-send {
    background: #f2862c;
    color: #111017;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.ddai-card-chat-send:hover {
    background: #ff9f3d;
}

.ddai-card-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ddai-summary-opponents {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ddai-opponents-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.ddai-opponents-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ddai-opponents-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 64px;
    gap: 4px;
}

.ddai-opponents-day {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.ddai-opponents-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.ddai-opponents-logo--empty {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.ddai-opponents-code {
    font-size: 0.7rem;
    font-weight: 600;
    color: #f5f5f5;
    letter-spacing: 0.08em;
}

.ddai-opponents-empty {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.ddai-meta-pill {
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
    white-space: nowrap;
}

.ddai-meta-pill--highlight {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.35), rgba(245, 162, 68, 0.2));
    border-color: rgba(74, 222, 128, 0.6);
    color: #eafff1;
}

.ddai-meta-pill--pp1 {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.35), rgba(74, 222, 128, 0.15));
    border-color: rgba(74, 222, 128, 0.75);
    color: #eafff1;
}

.card-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    gap: 16px;
}

.card-modal-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .card-modal-container {
        width: 100vw;
        height: 100vh;
        max-width: none;
        max-height: none;
        border-radius: 0;
        border: none;
    }
    
    .card-modal-close {
        position: fixed !important;
        top: 12px !important;
        right: 12px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 28px !important;
        background: rgba(20, 20, 30, 0.95) !important;
        border: 3px solid var(--accent-orange) !important;
        z-index: 999999 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent;
    }
    
    .card-modal-close svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .card-modal-content {
        padding: 8px;
        padding-top: 65px;
    }
    
    .card-modal-content iframe {
        min-height: calc(100vh - 75px);
        max-height: calc(100vh - 75px);
    }
    
    .card-modal-swipe-indicator {
        display: block;
        animation: swipePulse 2s ease-in-out infinite;
    }
    
    .card-modal-swipe-hint {
        display: block;
    }
    
    @keyframes swipePulse {
        0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
        50% { opacity: 0.9; transform: translateX(-50%) translateY(3px); }
    }
    
    .chat-card-previews {
        flex-direction: column;
    }
    
    .card-preview-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .card-modal-swipe-indicator {
        display: none;
    }
}

.chat-input-container {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-top: 3px solid var(--border-orange);
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    resize: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(245, 162, 68, 0.35);
}

.send-btn {
    padding: 12px 20px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--border-radius-sm);
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn:hover {
    background: var(--accent-gradient-vertical);
    transform: scale(1.02);
}

/* ===== Player/Goalie Hub ===== */
.player-hub-content, .goalie-hub-content {
    display: grid;
    gap: 24px;
}

.player-table-container {
    background: var(--bg-secondary);
    border: 3px solid var(--border-orange);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.glass-table-wrapper {
    max-height: 300px;
    overflow-y: auto;
}

.player-table-container.expanded .glass-table-wrapper {
    max-height: 70vh;
}

.player-card-container {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    min-height: 200px;
}

.card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--text-muted);
}

.recent-performance, .ai-advice, .goalie-stats {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
}

.recent-performance h3, .ai-advice h3, .goalie-stats h3 {
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 600;
}

.performance-table-wrapper {
    overflow-x: auto;
}

.advice-content {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.advice-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ===== Week Schedule ===== */
.week-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}

.week-nav {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.week-nav:hover {
    background: var(--bg-glass-hover);
}

.week-label {
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.day-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.day-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}

.day-checkbox:has(input:checked) {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    border-color: var(--accent-primary);
}

.day-checkbox input {
    display: none;
}

.schedule-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(140px, 1fr));
    gap: 12px;
    min-width: 100%;
}

.schedule-day {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.schedule-day-header {
    padding: 12px;
    background: var(--bg-secondary);
    text-align: center;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.schedule-day-header .date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.schedule-games {
    padding: 12px;
    min-height: 100px;
}

.schedule-game {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.schedule-game:last-child {
    margin-bottom: 0;
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.game-vs {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* ===== Insights Section ===== */
.insights-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.tab-btn {
    padding: 10px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: var(--transition);
}

.tab-btn:hover {
    background: var(--bg-glass-hover);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-color: transparent;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    margin-bottom: 8px;
}

.tab-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.matchup-cards, .breakout-cards, .goalie-stream-cards, .waiver-cards {
    display: grid;
    gap: 12px;
}

.insight-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.insight-card:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.insight-card .team-logo {
    width: 40px;
    height: 40px;
}

.insight-card-content {
    flex: 1;
}

.insight-card-content h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.insight-card-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.insight-card-meta {
    text-align: right;
}

.insight-card-meta .stat {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-success);
}

.insight-card-meta .label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== Matchup Analysis ===== */
.matchup-analysis-content {
    display: grid;
    gap: 24px;
}

.team-info-card, .matchup-comparison, .matchup-recommendations {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.team-info-card h3, .matchup-comparison h3, .matchup-recommendations h3 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.comparison-item {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-align: center;
}

.comparison-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comparison-values {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.comparison-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.comparison-value.you { color: var(--accent-primary); }
.comparison-value.opponent { color: var(--accent-danger); }

/* ===== 3D Scatterplot ===== */
.scatter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.control-group {
    flex: 1;
    min-width: 200px;
}

.control-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.multi-select-input, .team-select, .color-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.selected-players {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.player-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 20px;
    font-size: 0.8rem;
}

.player-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.scatter-container {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    min-height: 500px;
}

#scatterPlot {
    width: 100%;
    height: 600px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .main-content {
        padding: 16px;
        padding-top: calc(var(--nav-height) + 16px);
    }

    .chat-container {
        height: calc(100vh - var(--nav-height) - 32px);
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: 100%;
    }

    .schedule-grid {
        grid-template-columns: repeat(7, 140px);
    }
}

@media (max-width: 768px) {
    .player-hub-content, .goalie-hub-content {
        grid-template-columns: 1fr;
    }

    .message-content {
        max-width: 85%;
    }

    .insights-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .scatter-controls {
        flex-direction: column;
    }

    .control-group {
        min-width: 100%;
    }

    #scatterPlot {
        height: 400px;
    }
}

@media (max-width: 480px) {
    :root {
        --nav-height: 52px;
    }

    .section-header h1 {
        font-size: 1.4rem;
    }

    .chat-header h1 {
        font-size: 1.25rem;
    }

    .insights-tabs {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        justify-content: center;
    }
}

/* ===== 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: rgba(255, 255, 255, 0.2);
}

/* ===== Loading States ===== */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===== Utility Classes ===== */
.text-success { color: var(--accent-success); }
.text-warning { color: var(--accent-warning); }
.text-danger { color: var(--accent-danger); }
.text-muted { color: var(--text-muted); }

.hidden { display: none !important; }

/* ===== Home Page Styles ===== */

/* Performers Grid */
.performers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .performers-grid {
        grid-template-columns: 1fr;
    }
}

/* Glass Card - Player Card Style */
.glass-card {
    background: var(--bg-secondary);
    border: 3px solid var(--border-orange);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-orange);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.5);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-family: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0.2px;
}

.fire-emoji {
    font-size: 1rem;
}

.title-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 12px rgba(245, 162, 68, 0.45);
}

.title-text--scanner {
    font-family: "Rubber", "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
    font-weight: 500;
    letter-spacing: 0.6px;
}

.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--accent-orange);
}

.title-icon--glow {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent-gradient-soft);
    box-shadow: 0 0 12px rgba(245, 162, 68, 0.5);
}

.title-icon svg {
    width: 18px;
    height: 18px;
}

.title-logo-wrap {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.title-logo {
    width: 30px;
    height: 30px;
    display: inline-block;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(245, 162, 68, 0.75));
}

.title-logo--glow {
    filter: drop-shadow(0 0 14px rgba(245, 162, 68, 0.85));
}

.title-logo--small {
    width: 26px;
    height: 26px;
}

.window-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: var(--accent-gradient-soft);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-wrapper {
    max-height: 800px;
    overflow-y: auto;
}

/* Insights Card */
.insights-card {
    margin-bottom: 24px;
}

/* Tabs */
.tabs-container {
    width: 100%;
}

.tabs-nav {
    display: flex;
    gap: 6px;
    background: transparent;
    overflow-x: auto;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tab-btn {
    flex: 0 0 auto;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.12s ease;
    white-space: nowrap;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.tab-btn.active {
    color: var(--accent-orange);
    background: rgba(245, 162, 68, 0.14);
    border-color: rgba(245, 162, 68, 0.5);
}

.tabs-content {
    padding: 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.insight-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Insight List Items — extension-style tiles */
.insight-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    background: #17161d;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: border-color 0.12s ease;
}

/* Clickable insight items */
.insight-item--clickable {
    cursor: pointer;
}

.insight-item--clickable:hover {
    border-color: rgba(242, 134, 44, 0.5);
}

.insight-item--clickable:active {
    transform: scale(0.995);
}

.insight-item strong {
    color: var(--text-primary);
    font-size: 0.92rem;
}

.insight-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.insight-name {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insight-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.insight-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.insight-score {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.insight-score-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent-orange);
    text-shadow: 0 0 8px rgba(245, 162, 68, 0.35);
}

.insight-score-val.pos { color: #4ade80; text-shadow: 0 0 8px rgba(74, 222, 128, 0.35); }
.insight-score-val.neg { color: #f87171; text-shadow: 0 0 8px rgba(248, 113, 113, 0.35); }

.insight-score-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.66rem;
    color: var(--text-muted);
}

/* legacy classes (kept for any tab still using the old markup) */
.insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.insight-stats {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
}

.insight-detail {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.insight-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f2862c;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 16px 0 8px;
}

.tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 1px;
}

.tag-green { background: rgba(74, 222, 128, 0.16); color: #4ade80; }
.tag-orange { background: rgba(242, 134, 44, 0.18); color: #f2862c; }
.tag-blue { background: rgba(96, 165, 250, 0.16); color: #60a5fa; }
.tag-yellow { background: rgba(250, 204, 21, 0.16); color: #facc15; }
.tag-red { background: rgba(239, 68, 68, 0.16); color: #f87171; }

/* ── Trade Tracker (compact rows with logos) ──────────────────────────── */

.trade-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trade-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.trade-row:hover {
    background: rgba(255, 255, 255, 0.07);
}

.trade-date {
    color: #666;
    font-size: 0.7rem;
    flex-shrink: 0;
    min-width: 72px;
    font-variant-numeric: tabular-nums;
}

.trade-logos {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.trade-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 2px;
}

.trade-arrow-icon {
    color: #555;
    font-size: 12px;
    margin: 0 1px;
}

.trade-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.trade-player {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trade-pos {
    color: #888;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.trade-rating {
    color: #f2862c;
    font-weight: 700;
    font-size: 0.85rem;
    margin-left: auto;
    flex-shrink: 0;
    min-width: 36px;
    text-align: right;
}

.insight-reasons {
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 4px;
    display: block;
}

.insight-rating {
    color: var(--accent-success);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Section Headers */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    font-family: "Space Grotesk", "Inter", "Segoe UI", system-ui, sans-serif;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 12px rgba(245, 162, 68, 0.4);
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 16px 0;
}

/* Cache Banner */
.cache-banner {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 0.72rem;
    color: #60a5fa;
}

/* Matchup Row Layout (3-column like Streamlit) */
.matchup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.matchup-row {
    display: grid;
    grid-template-columns: 50px 1fr 70px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Clickable matchup rows */
.matchup-row--clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.matchup-row--clickable:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateX(4px);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}

.matchup-row--clickable:active {
    transform: translateX(2px);
}

.matchup-team-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.matchup-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.matchup-name {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.matchup-name strong {
    color: var(--accent-primary);
}

.matchup-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.matchup-stats strong {
    color: var(--text-primary);
}

.matchup-sample {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.matchup-opponent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.matchup-opponent img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.vs-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--text-muted);
}

.error-msg, .empty-msg {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.error-msg {
    color: var(--accent-danger);
}

/* Stat Highlight */
.stat-highlight {
    font-weight: 600;
    color: var(--accent-primary);
}

/* Hub Content Layout */
.hub-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
}

@media (max-width: 1200px) {
    .hub-content {
        grid-template-columns: 1fr;
    }
}

.player-card-preview, .goalie-card-preview {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.preview-hint {
    color: var(--text-muted);
    font-style: italic;
}

/* Week Selector */
.week-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.week-nav {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.week-nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

.week-display {
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

/* Schedule Grid */
.schedule-grid {
    padding: 20px;
    overflow-x: auto;
}

/* ===== Skater Hub Styles ===== */

/* Hub Search Container */
.hub-search-container {
    display: flex;
    justify-content: center;
    padding: 20px 20px 10px;
}

.hub-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hub-search-input {
    width: 100%;
    padding: 12px 44px 12px 44px;
    background: rgba(25, 25, 25, 0.95);
    border: 2px solid transparent;
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-clip: padding-box;
    position: relative;
}

/* Aqua-to-purple gradient border (matches Data Draft logo) */
.hub-search-input::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(90deg, #00FFFF, #8B5CF6, #A855F7);
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hub-search-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
}

.hub-search-input:focus::before {
    opacity: 1;
}

/* Gradient loading animation for NL queries */
.hub-search-input.nl-loading {
    animation: nl-gradient-spin 1.5s linear infinite;
}

@keyframes nl-gradient-spin {
    0%   { border-image: linear-gradient(0deg, #00FFFF, #8B5CF6, #A855F7, #00FFFF) 1; }
    25%  { border-image: linear-gradient(90deg, #00FFFF, #8B5CF6, #A855F7, #00FFFF) 1; }
    50%  { border-image: linear-gradient(180deg, #00FFFF, #8B5CF6, #A855F7, #00FFFF) 1; }
    75%  { border-image: linear-gradient(270deg, #00FFFF, #8B5CF6, #A855F7, #00FFFF) 1; }
    100% { border-image: linear-gradient(360deg, #00FFFF, #8B5CF6, #A855F7, #00FFFF) 1; }
}

.hub-search-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.search-clear-btn:hover {
    color: var(--accent-orange);
}

/* ── NL Results Banner & Dynamic Table ─────────────────────────────── */

.nl-results-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    margin: 0 0 8px 0;
    background: linear-gradient(90deg, rgba(0, 255, 255, 0.08), rgba(139, 92, 246, 0.08));
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

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

.nl-clear-btn {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #A855F7;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.nl-clear-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.5);
}

.nl-results-table td {
    font-size: 0.85rem;
    padding: 6px 8px;
}

/* Filter Toggle */
.filter-toggle-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(25, 25, 25, 0.95);
    border: 2px solid rgba(245, 162, 68, 0.3);
    border-radius: 20px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-toggle-btn:hover {
    border-color: var(--accent-orange);
    background: rgba(245, 162, 68, 0.1);
}

.filter-toggle-btn.active {
    border-color: var(--accent-orange);
    background: rgba(245, 162, 68, 0.15);
}

.filter-toggle-btn .filter-icon {
    width: 16px;
    height: 16px;
}

.filter-count {
    background: var(--accent-orange);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.filter-clear-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--accent-danger);
    border-radius: 16px;
    color: var(--accent-danger);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-clear-btn:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* Filter Panel */
.filter-panel {
    background: rgba(15, 15, 15, 0.98);
    border: 1px solid rgba(245, 162, 68, 0.2);
    border-radius: var(--border-radius);
    margin: 0 20px 15px;
    padding: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.filter-panel.collapsed {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
    margin-bottom: 0;
    border: none;
}

.filter-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-row.sliders-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .filter-row.sliders-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .filter-row.sliders-row {
        grid-template-columns: 1fr;
    }
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group.full-width {
    flex: 1 1 100%;
}

.filter-label {
    display: block;
    color: var(--accent-orange);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

/* Position Pills */
.position-pills, .line-usage-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.position-pill, .line-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 162, 68, 0.3);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.position-pill:hover, .line-pill:hover {
    border-color: var(--accent-orange);
    background: rgba(245, 162, 68, 0.1);
}

.position-pill.active, .line-pill.active {
    background: rgba(245, 162, 68, 0.25);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

/* Rating Type Toggle (Combined vs Completeness) */
.rating-type-toggle {
    display: inline-flex;
    gap: 2px;
    margin-left: 6px;
    vertical-align: middle;
}
.rating-type-btn {
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(245, 162, 68, 0.2);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
}
.rating-type-btn:hover {
    border-color: var(--accent-orange);
    background: rgba(245, 162, 68, 0.1);
}
.rating-type-btn.active {
    background: rgba(245, 162, 68, 0.25);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

/* Filter Select */
.filter-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(245, 162, 68, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-orange);
}

/* Native <select> dropdowns — keep the options list readable on the dark theme
   (otherwise option text renders light-grey on a white native panel). */
select {
    color-scheme: dark;
}
select option {
    background: #17161d;
    color: #e8e8f0;
}

/* Range Sliders */
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-label {
    color: var(--accent-orange);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.range-slider {
    position: relative;
    height: 6px;
    background: var(--bar-bg);
    border-radius: 3px;
    margin: 8px 0;
}

.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-orange);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 0 8px rgba(245, 162, 68, 0.5);
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent-orange);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: none;
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Results Info */
.results-info {
    padding: 8px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

#skaterResultCount {
    color: var(--accent-orange);
    font-weight: 500;
}

/* Skater Table Card */
.skater-table-card {
    margin: 0 20px 20px;
    max-height: calc(100vh - 350px);
    overflow: auto;
}

.skater-table-card .table-wrapper {
    overflow-x: auto;
}

/* Goalie Table Card */
.goalie-table-card {
    margin: 0 20px 20px;
    max-height: calc(100vh - 350px);
    overflow: auto;
}

.goalie-table-card .table-wrapper {
    max-height: none;
    overflow-x: auto;
}

/* Card Modal (Enhanced) */
.card-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card-modal-overlay.active {
    display: flex;
}

.card-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 2px solid var(--accent-orange);
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-orange);
}

.card-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(245, 162, 68, 0.5);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.card-modal-close:hover {
    background: var(--accent-danger);
    border-color: var(--accent-danger);
}

.card-modal-body {
    padding: 0;
}

.card-modal-body .card-wrapper {
    width: 100%;
}

/* Line Badge in Table */
.line-badge {
    display: inline-block;
    padding: 1px 3px;
    font-size: 0.55rem;
    font-weight: 600;
    border-radius: 2px;
    margin-right: 1px;
    white-space: nowrap;
}

.line-badge.L1 { background: rgba(245, 162, 68, 0.25); color: var(--accent-orange); }
.line-badge.L2 { background: rgba(247, 177, 95, 0.2); color: var(--accent-secondary); }
.line-badge.L3 { background: rgba(180, 150, 100, 0.2); color: #b4967a; }
.line-badge.L4 { background: rgba(150, 130, 100, 0.15); color: #968264; }
.line-badge.D1 { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.line-badge.D2 { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.line-badge.D3 { background: rgba(168, 85, 247, 0.1); color: #d8b4fe; }
.line-badge.PP1 { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.line-badge.PP2 { background: rgba(74, 222, 128, 0.15); color: #86efac; }
.line-badge.INJ { background: rgba(239, 68, 68, 0.25); color: #ef4444; }

/* Classification Badge — Player Hub rows (pre-breakout sleeper, etc.) */
.classification-badge {
    display: inline-block;
    padding: 1px 4px;
    font-size: 0.55rem;
    font-weight: 600;
    border-radius: 3px;
    margin-left: 4px;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
}
.classification-badge.pre-breakout {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(52, 211, 153, 0.15));
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Skater Hub Table Compact Styles */
.skater-hub-table,
.goalie-hub-table {
    font-size: 0.85rem;
    width: 100%;
    table-layout: auto;
}

.skater-hub-table th,
.goalie-hub-table th {
    padding: 8px 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    position: relative;
}

.skater-hub-table th:hover,
.goalie-hub-table th:hover {
    color: var(--accent-orange);
}

.skater-hub-table td,
.goalie-hub-table td {
    padding: 6px 4px;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skater-hub-table td:first-child,
.goalie-hub-table td:first-child {
    text-align: left;
}

.skater-hub-table .player-cell,
.goalie-hub-table .player-cell {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 80px;
    max-width: 160px;
}

.goalie-hub-table .player-cell {
    max-width: 140px;
}

.skater-hub-table .team-logo-small,
.goalie-hub-table .team-logo-small {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.skater-hub-table .player-name,
.goalie-hub-table .player-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.goalie-hub-table .rating-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-left: auto;
    flex-shrink: 0;
}

.skater-hub-table .line-cell {
    min-width: 44px;
    max-width: 52px;
    padding: 4px 2px !important;
    text-align: center;
}

/* Compact stat columns */
.skater-hub-table .stat-col,
.goalie-hub-table .stat-col {
    min-width: 26px;
    max-width: 34px;
}

.skater-hub-table th:nth-child(2),
.skater-hub-table td:nth-child(2) {
    width: 48px;
}

.skater-hub-table th:nth-child(3),
.skater-hub-table td:nth-child(3) {
    width: 36px;
}

.skater-hub-table .rating-high,
.goalie-hub-table .rating-high {
    color: #4ade80;
    font-weight: 600;
}

.skater-hub-table .rating-medium,
.goalie-hub-table .rating-medium {
    color: var(--accent-orange);
}

/* Extra columns (SOG, HIT, BLK / GAA, GSAx, SS%) - show on wider screens */
.skater-hub-table .extra-col,
.goalie-hub-table .extra-col {
    display: table-cell;
}

/* Tooltip styles for column headers */
.skater-hub-table th[title],
.goalie-hub-table th[title] {
    position: relative;
}

.skater-hub-table th[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.skater-hub-table th[title]:hover::before,
.goalie-hub-table th[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    z-index: 100;
}

/* Mobile Table Optimization */
@media (max-width: 500px) {
    .skater-hub-table .extra-col,
    .goalie-hub-table .extra-col {
        display: none;
    }
}

@media (max-width: 500px) {
    .skater-hub-table,
    .goalie-hub-table {
        font-size: 0.75rem;
    }
    
    .skater-hub-table th,
    .skater-hub-table td,
    .goalie-hub-table th,
    .goalie-hub-table td {
        padding: 6px 4px;
    }
    
    .skater-hub-table th,
    .goalie-hub-table th {
        font-size: 0.65rem;
    }
    
    .skater-hub-table .team-logo-small,
    .goalie-hub-table .team-logo-small {
        width: 16px;
        height: 16px;
    }
    
    .skater-hub-table .player-cell {
        min-width: 80px;
    }
    
    .line-badge {
        padding: 2px 6px;
        font-size: 0.6rem;
        line-height: 1.1;
    }
    
    .skater-table-card {
        margin: 0 10px 10px;
    }
}

/* Inline Card Container in Chat */
.inline-card-container {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}
.inline-card-container .loading-spinner {
padding: 40px;
    text-align: center;
    color: #888;
}

/* Digest text content from LLM */
.digest-content {
    padding: 16px 20px;
    line-height: 1.65;
    color: #d4d4d4;
    max-height: 500px;
    overflow-y: auto;
}
.digest-content p { margin: 0 0 12px 0; }
.digest-content strong { color: #f2862c; }
.digest-content li { margin: 4px 0 4px 16px; list-style: disc; }
.digest-content ul { margin: 8px 0; padding-left: 0; }

