/* Sheets - Multi-League Sports Betting Analytics */
/* Design System adapted from Dante's Research Site */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

:root {
    /* Dark theme colors from dante's site */
    --zinc-950: #09090b;
    --zinc-900: #18181b;
    --zinc-800: #27272a;
    --zinc-700: #3f3f46;
    --zinc-600: #52525b;
    --zinc-500: #71717a;
    --zinc-400: #a1a1aa;
    --zinc-300: #d4d4d8;

    /* Accent colors */
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --purple-600: #9333ea;
    --purple-500: #a855f7;
    --green-500: #22c55e;
    --green-400: #4ade80;

    /* Hit rate colors */
    --perfect-green: #22c55e;
    --excellent-yellow: #eab308;
    --good-red: #ef4444;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    line-height: 1.6;
    color: #ffffff;
    background-color: var(--zinc-950);
    background: linear-gradient(135deg, #0f0f23, #1a1a2e, #16213e 50%, #0f0f23);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.league-nav {
    height: 5rem;
    border-bottom: 1px solid rgba(39, 39, 42, 0.3);
    background: linear-gradient(90deg, rgba(9, 9, 11, 0.9), rgba(24, 24, 27, 0.9));
    backdrop-filter: blur(24px);
    box-shadow: 0 1px rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.league-nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
}

.logo-icon svg {
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #ffffff;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #71717a;
    line-height: 1;
}

.league-menu {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-left: 2rem;
}

.league-link {
    color: var(--zinc-400);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(39, 39, 42, 0.5);
    background-color: rgba(24, 24, 27, 0.4);
}

.league-link:hover {
    background-color: rgba(39, 39, 42, 0.6);
    color: #ffffff;
}

.league-link.active {
    border-color: rgba(59, 130, 246, 0.6);
    background-color: rgba(37, 99, 235, 0.8);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3), inset 0 1px rgba(255, 255, 255, 0.1);
}

/* ========================================
   MAIN CONTENT AREA
   ======================================== */

.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

.content {
    width: 100%;
}

/* ========================================
   GLASS CARDS & PREMIUM DESIGN
   ======================================== */

.glass-card {
    border: 1px solid rgba(39, 39, 42, 0.3);
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.4), rgba(24, 24, 27, 0.6));
    backdrop-filter: blur(24px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05),
                0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}

.premium-card {
    border: 1px solid rgba(63, 63, 70, 0.4);
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6), rgba(24, 24, 27, 0.8));
    backdrop-filter: blur(24px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
                0 12px 40px rgba(0, 0, 0, 0.4),
                inset 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

/* ========================================
   VIEW SECTIONS
   ======================================== */

.view {
    display: none;
}

.view--active {
    display: block;
}

.view__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view__header h2 {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #fff, #e4e4e7, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.league-logo-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.league-logo-large {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 4px 12px rgba(255, 255, 255, 0.15));
    transition: all 0.3s ease;
}

.league-logo-large:hover {
    filter: brightness(1.2) drop-shadow(0 6px 16px rgba(255, 255, 255, 0.25));
    transform: scale(1.05);
}

.sheets-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: linear-gradient(to right, var(--blue-600), var(--purple-600));
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn:hover {
    transform: scale(1.05);
    background: linear-gradient(to right, var(--blue-500), var(--purple-500));
}

.btn--ghost {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-500);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    box-shadow: none;
}

.btn--ghost:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--blue-500);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn--small {
    padding: 0.625rem 1.25rem;
    font-size: 0.813rem;
}

.btn--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.5);
}

.btn--danger:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}

#export-spreadsheet-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#export-spreadsheet-btn svg {
    display: block;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: rgba(24, 24, 27, 0.95);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: slideDown 0.2s ease;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: transparent;
    border: none;
    color: #ffffff;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-item:first-child {
    border-radius: 0.625rem 0.625rem 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 0.625rem 0.625rem;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--blue-400);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Inline Warning */
.inline-warning {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    color: #fca5a5;
    animation: slideDown 0.3s ease;
}

.inline-warning svg {
    flex-shrink: 0;
    color: #ef4444;
}

.inline-warning span {
    flex: 1;
    font-size: 0.938rem;
    font-weight: 500;
}

/* Inline Success */
.inline-success {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    margin: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    border-radius: 0.75rem;
    color: #86efac;
    animation: slideDown 0.3s ease;
}

.inline-success svg {
    flex-shrink: 0;
    color: #22c55e;
}

.inline-success span {
    flex: 1;
    font-size: 0.938rem;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   FILTERS SECTION
   ======================================== */

.sheets-filters {
    display: flex;
    gap: 1.25rem;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                inset 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.sheets-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 160px;
    flex: 1;
}

.sheets-filter-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blue-400);
    opacity: 0.9;
}

.sheets-filter-select {
    padding: 0.625rem 1rem;
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sheets-filter-select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.5rem;
}

.sheets-filter-select:hover {
    border-color: var(--blue-500);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.sheets-filter-select:focus {
    outline: none;
    border-color: var(--blue-500);
}

/* Range Slider Styles */
.sheets-filter-group--range {
    min-width: 200px;
}

.range-slider-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.range-manual-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.range-number-input {
    width: 70px;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.range-number-input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.range-number-input:hover {
    border-color: var(--blue-500);
}

/* Remove spinner buttons from number inputs */
.range-number-input::-webkit-outer-spin-button,
.range-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.range-number-input[type=number] {
    -moz-appearance: textfield;
}

.range-separator {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.range-inputs {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
}

.range-slider {
    position: absolute;
    width: 100%;
    height: 3px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.range-slider::-webkit-slider-track {
    width: 100%;
    height: 3px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 1.5px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.range-slider::-moz-range-track {
    width: 100%;
    height: 3px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 1.5px;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: all;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--blue-500);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border-radius: 0;
}

.range-slider::-moz-range-thumb {
    pointer-events: all;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--blue-500);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border-radius: 0;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6);
}

.range-slider::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.6);
}

.range-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
    border-top-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
                0 4px 12px rgba(59, 130, 246, 0.2);
}

.range-slider::-moz-range-thumb:active {
    transform: scale(1.05);
    border-top-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15),
                0 4px 12px rgba(59, 130, 246, 0.2);
}

/* ========================================
   LOADING & ERROR STATES
   ======================================== */

.sheets-loading,
.sheets-error {
    padding: 3rem;
    text-align: center;
    border-radius: 1rem;
}

.sheets-loading {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03), rgba(59, 130, 246, 0.01));
}

.sheets-error {
    color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.05));
    border: 1px solid rgba(239, 68, 68, 0.3);
    font-weight: 500;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top: 4px solid var(--blue-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--zinc-400);
    font-size: 1.1rem;
}

.hidden {
    display: none !important;
}

/* ========================================
   SHEETS CONTENT & SUMMARY
   ======================================== */

.sheets-content {
    margin-top: 1rem;
}

.sheets-summary {
    margin-bottom: 1.25rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
    border-left: 4px solid var(--blue-500);
    border-radius: 0.5rem;
    font-size: 0.938rem;
    font-weight: 600;
    color: #ffffff;
}

/* ========================================
   TABLE DESIGN
   ======================================== */

.sheets-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6), rgba(24, 24, 27, 0.8));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
                0 12px 40px rgba(0, 0, 0, 0.4),
                inset 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(63, 63, 70, 0.4);
    backdrop-filter: blur(24px);
}

/* Scrollbar styling */
.sheets-table-wrapper::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.sheets-table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.4));
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.sheets-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.6));
}

.sheets-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

.sheets-table thead {
    background: linear-gradient(135deg, #1e3a5f, #152a47);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sheets-table th {
    padding: 1rem 1.25rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue-400);
    border-bottom: 2px solid var(--blue-500);
    white-space: nowrap;
    background: inherit;
}

.sheets-table th:first-child {
    border-top-left-radius: 1rem;
}

.sheets-table th:last-child {
    border-top-right-radius: 1rem;
}

.sheets-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(63, 63, 70, 0.3);
    transition: all 0.15s ease;
    text-align: center;
}

.sheets-table td:nth-last-child(-n+2) {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.sheets-table td:first-child,
.sheets-table th:first-child {
    padding-left: 1.25rem;
}

/* Set minimum widths for team and opponent columns */
.sheets-table th[data-column="team"],
.sheets-table td[data-column="team"] {
    min-width: 60px;
    max-width: 80px;
    white-space: nowrap;
}

.sheets-table th[data-column="opponent"],
.sheets-table td[data-column="opponent"] {
    min-width: 80px;
    max-width: 100px;
    white-space: nowrap;
}

.sheets-table tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sheets-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ========================================
   STREAK QUALITY INDICATORS
   ======================================== */

/* 5-level hit rate color coding */

/* Dark Green - 95-100% */
.sheets-table tbody tr.streak-perfect {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.04));
    border-left: 4px solid #22c55e;
}

.sheets-table tbody tr.streak-perfect:hover {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.08));
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.25);
}

/* Light Green - 90-94% */
.sheets-table tbody tr.streak-excellent {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.12), rgba(74, 222, 128, 0.04));
    border-left: 4px solid #4ade80;
}

.sheets-table tbody tr.streak-excellent:hover {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.18), rgba(74, 222, 128, 0.08));
    box-shadow: 0 4px 16px rgba(74, 222, 128, 0.25);
}

/* Yellow - 85-89% */
.sheets-table tbody tr.streak-good {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.12), rgba(234, 179, 8, 0.04));
    border-left: 4px solid #eab308;
}

.sheets-table tbody tr.streak-good:hover {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.18), rgba(234, 179, 8, 0.08));
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.25);
}

/* Orange - 80-84% */
.sheets-table tbody tr.streak-fair {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.12), rgba(249, 115, 22, 0.04));
    border-left: 4px solid #f97316;
}

.sheets-table tbody tr.streak-fair:hover {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.18), rgba(249, 115, 22, 0.08));
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.25);
}

/* Red - 70-79% */
.sheets-table tbody tr.streak-poor {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04));
    border-left: 4px solid #ef4444;
}

.sheets-table tbody tr.streak-poor:hover {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.08));
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

/* Hit rate span color coding */
.hit-rate {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

.hit-rate--perfect {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.hit-rate--excellent {
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.hit-rate--good {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.hit-rate--fair {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.hit-rate--poor {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

/* ========================================
   COLUMN SPECIFIC STYLING
   ======================================== */

.streak-game {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    font-size: 0.813rem;
    font-weight: 500;
    color: var(--zinc-400);
    opacity: 0.8;
    white-space: nowrap;
    min-width: 160px;
    max-width: 180px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    overflow: hidden;
}

.team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    filter: brightness(0.95) contrast(1.1);
    transition: all 0.2s ease;
}

.sheets-table tbody tr:hover .team-logo {
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.1);
}

.streak-player {
    font-weight: 700;
    font-size: 0.938rem;
    color: #ffffff;
    letter-spacing: -0.01em;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.streak-team {
    font-weight: 700;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    font-size: 0.875rem;
    padding: 0.25rem 0.625rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.375rem;
    display: inline-block;
}

.streak-market {
    font-size: 0.813rem;
    color: var(--zinc-400);
    font-weight: 500;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.streak-line {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    color: var(--blue-400);
}

.streak-line strong {
    color: #3b82f6;
}

.streak-odds {
    font-weight: 600;
    font-size: 0.938rem;
    text-align: center;
    color: var(--green-400);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
}

.streak-defrank {
    font-weight: 600;
    font-size: 0.938rem;
    text-align: left;
    color: var(--purple-500);
}

.streak-context {
    font-size: 0.813rem;
    font-style: italic;
    color: var(--zinc-400);
    opacity: 0.9;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

.streak-hitrate {
    font-weight: 800;
    font-size: 1.125rem;
    text-align: center;
    color: var(--blue-400);
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.streak-perfect .streak-hitrate {
    color: #22c55e;
    text-shadow: 0 2px 12px rgba(34, 197, 94, 0.4);
}

.streak-excellent .streak-hitrate {
    color: #eab308;
    text-shadow: 0 2px 12px rgba(234, 179, 8, 0.4);
}

.streak-good .streak-hitrate {
    color: #ef4444;
    text-shadow: 0 2px 12px rgba(239, 68, 68, 0.4);
}

.streak-record {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 0.375rem;
    display: inline-block;
    max-width: 80px;
}

.streak-hit {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--perfect-green);
    padding: 0.25rem 0.625rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 0.375rem;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.streak-miss {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--good-red);
    padding: 0.25rem 0.625rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.375rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========================================
   SHEET TITLE
   ======================================== */

.sheet-title-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sheet-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
    cursor: text;
    min-width: 120px;
    text-align: left;
}

.sheet-title:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.sheet-title.editing {
    background-color: rgba(59, 130, 246, 0.15);
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

.btn--icon {
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn--icon svg {
    width: 16px;
    height: 16px;
}

/* ========================================
   TABLE SORTING
   ======================================== */

.sortable-table th[data-sort] {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.sortable-table th[data-sort]:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.sortable-table th[data-sort].sorted-asc,
.sortable-table th[data-sort].sorted-desc {
    background-color: rgba(59, 130, 246, 0.15);
    color: var(--blue-400);
}

.sort-icon {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    color: var(--blue-400);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(90deg, rgba(9, 9, 11, 0.9), rgba(24, 24, 27, 0.9));
    border-top: 1px solid rgba(39, 39, 42, 0.3);
    color: var(--zinc-400);
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.powered-by {
    color: #71717a;
    opacity: 0.6;
}

.algobets-brand {
    display: inline-block;
    border: 2px solid #3b82f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.algobets-brand::before {
    content: 'ALGO';
    color: #3b82f6;
}

.algobets-brand::after {
    content: 'BETS';
    color: white;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .sheets-filters {
        padding: 1rem;
        gap: 1rem;
    }

    .sheets-filter-group {
        min-width: 140px;
    }

    .sheets-table {
        font-size: 0.813rem;
    }

    .sheets-table th,
    .sheets-table td {
        padding: 0.75rem 1rem;
    }

    .sheets-table tbody tr:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .league-nav .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .league-menu {
        justify-content: center;
        width: 100%;
    }

    .view__header {
        flex-direction: column;
        text-align: center;
    }

    .view__header h2 {
        font-size: 1.75rem;
    }

    .league-logo-large {
        height: 60px;
    }

    .sheets-filters {
        flex-direction: column;
        gap: 0.75rem;
    }

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

    .sheets-table {
        font-size: 0.75rem;
    }

    .sheets-table th,
    .sheets-table td {
        padding: 0.5rem 0.75rem;
    }

    .streak-player {
        font-size: 0.875rem;
    }

    .streak-hitrate {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .league-nav {
        height: auto;
    }

    .league-link {
        padding: 0.5rem 1rem;
        font-size: 0.813rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.813rem;
    }

    .view__header h2 {
        font-size: 1.5rem;
    }

    .league-logo-large {
        height: 50px;
    }
}

/* ========================================
   NFL LEADERBOARD STYLES
   ======================================== */

.leaderboard-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.leaderboard-tabs {
    display: flex;
    gap: 0.5rem;
    background: rgba(39, 39, 42, 0.5);
    padding: 0.25rem;
    border-radius: 0.5rem;
}

.leaderboard-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--zinc-400);
    text-decoration: none;
    transition: all 0.2s ease;
}

.leaderboard-tab:hover {
    color: var(--zinc-300);
    background: rgba(63, 63, 70, 0.5);
}

.leaderboard-tab--active {
    background: var(--blue-600);
    color: white;
}

.leaderboard-subtitle {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.leaderboard-subtitle h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--zinc-300);
}

.leaderboard-selectors {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
}

.game-count-selector,
.alt-lines-selector,
.threshold-display-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.game-count-selector label,
.alt-lines-selector label,
.threshold-display-selector label {
    font-size: 0.875rem;
    color: var(--zinc-400);
    font-weight: 500;
}

.game-count-dropdown,
.alt-lines-dropdown,
.threshold-display-dropdown {
    padding: 0.5rem 0.75rem;
    background-color: var(--zinc-800);
    border: 1px solid var(--zinc-700);
    border-radius: 0.375rem;
    color: var(--zinc-300);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.game-count-dropdown:hover,
.alt-lines-dropdown:hover,
.threshold-display-dropdown:hover {
    background-color: var(--zinc-700);
    border-color: var(--zinc-600);
}

.game-count-dropdown:focus,
.alt-lines-dropdown:focus,
.threshold-display-dropdown:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.leaderboard-glossary {
    margin-bottom: 1.5rem;
}

.glossary-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid var(--zinc-700);
    border-radius: 0.5rem;
    color: var(--zinc-300);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.glossary-toggle:hover {
    background: rgba(39, 39, 42, 0.8);
    border-color: var(--zinc-600);
    color: var(--zinc-200);
}

.glossary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--blue-600);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.glossary-content {
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid var(--zinc-700);
    border-radius: 0.5rem;
    backdrop-filter: blur(12px);
}

.glossary-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--zinc-200);
    margin-bottom: 1.5rem;
}

.glossary-section {
    margin-bottom: 1.5rem;
}

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

.glossary-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-400);
    margin-bottom: 0.75rem;
}

.glossary-section p {
    font-size: 0.875rem;
    color: var(--zinc-400);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.glossary-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.glossary-section ul li {
    font-size: 0.875rem;
    color: var(--zinc-400);
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.glossary-section ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--blue-500);
    font-weight: 700;
}

.glossary-section ul li strong {
    color: var(--zinc-300);
}

.glossary-note {
    font-style: italic;
    color: var(--zinc-500);
    font-size: 0.813rem;
    margin-top: 0.5rem;
}

.color-perfect { color: #10b981; font-weight: 700; }
.color-excellent { color: #22c55e; font-weight: 600; }
.color-good { color: #84cc16; font-weight: 600; }
.color-moderate { color: #eab308; }
.color-low { color: #f97316; }
.color-minimal { color: #ef4444; }
.color-zero { color: var(--zinc-600); opacity: 0.7; }

.leaderboard-content {
    width: 100%;
}

.leaderboard-summary {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.leaderboard-summary p {
    font-size: 0.875rem;
    color: var(--zinc-400);
}

.inactive-count {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--zinc-700);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    color: var(--zinc-300);
}

.btn--small {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.leaderboard-table-wrapper {
    overflow-x: visible;
    border-radius: 1rem;
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.leaderboard-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.75rem;
}

.leaderboard-table th {
    padding: 0.6rem 0.3rem;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--zinc-400);
    border-bottom: 2px solid var(--zinc-700);
    white-space: nowrap;
    background: rgba(24, 24, 27, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
}

.leaderboard-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.leaderboard-table th.sortable:hover {
    color: var(--zinc-200);
    background: rgba(39, 39, 42, 0.9);
}

.leaderboard-table th.sorted-asc,
.leaderboard-table th.sorted-desc {
    color: var(--blue-400);
    background: rgba(59, 130, 246, 0.1);
}

.leaderboard-table th .sort-arrow {
    font-size: 0.6rem;
    margin-left: 0.25rem;
}

.leaderboard-table th.col-player {
    text-align: left;
    width: 12%;
}

.leaderboard-table th.col-stat {
    width: 6%;
}

.leaderboard-table th.col-game {
    width: 6%;
}

.leaderboard-table th.col-line {
    width: 5%;
}

.leaderboard-table th.col-odds {
    width: 4%;
}

.leaderboard-table th.col-l10 {
    width: 5%;
}

.leaderboard-table th.col-hitrate {
    width: 5%;
}

.leaderboard-table th.col-hitratepct {
    width: 5%;
}

.leaderboard-table th.col-defrank {
    width: 5%;
}

.leaderboard-table th.col-pct {
    width: 3.5%;
    padding: 0.6rem 0.2rem;
}

.leaderboard-table td {
    padding: 0.6rem 0.3rem;
    border-bottom: 1px solid rgba(63, 63, 70, 0.3);
    text-align: center;
    transition: all 0.15s ease;
    font-size: 0.75rem;
}

.leaderboard-table tbody tr {
    transition: all 0.2s ease;
}

.leaderboard-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.leaderboard-table tbody tr.inactive-player {
    display: none;
}

.leaderboard-table tbody tr.inactive-player.show {
    display: table-row;
    opacity: 0.6;
}

.lb-rank {
    font-weight: 700;
    color: var(--zinc-500);
    font-size: 0.875rem;
}

.lb-player {
    text-align: left !important;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
}

.player-team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.player-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--zinc-200);
}

.player-team {
    font-size: 0.688rem;
    color: var(--zinc-500);
}

.lb-stat {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--blue-400);
}

.lb-game {
    font-size: 0.75rem;
    color: var(--zinc-400);
}

.lb-line {
    font-weight: 600;
    color: var(--blue-400);
    font-size: 0.813rem;
}

.lb-odds {
    font-weight: 600;
    color: var(--green-400);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    font-size: 0.813rem;
}

.lb-l10 {
    font-weight: 600;
    color: var(--zinc-300);
    font-size: 0.813rem;
}

.lb-hitrate {
    font-weight: 700;
    color: var(--zinc-300);
    font-size: 0.813rem;
}

.lb-hitratepct {
    font-weight: 700;
    color: var(--purple-500);
    font-size: 0.813rem;
}

.lb-defrank {
    font-weight: 600;
    color: var(--zinc-400);
    font-size: 0.813rem;
}

.lb-pct {
    font-weight: 600;
    font-size: 0.75rem;
}

/* Streak color coding - gradient from green (high) to red (low) */
.pct-perfect {
    color: #10b981 !important;  /* Bright green - perfect streak */
    font-weight: 700;
}

.pct-excellent {
    color: #22c55e !important;  /* Green - excellent streak (90%+) */
    font-weight: 600;
}

.pct-good {
    color: #84cc16 !important;  /* Lime green - good streak (80%+) */
    font-weight: 600;
}

.pct-moderate {
    color: #eab308 !important;  /* Yellow - moderate streak (60%+) */
}

.pct-low {
    color: #f97316 !important;  /* Orange - low streak (40%+) */
}

.pct-minimal {
    color: #ef4444 !important;  /* Red - minimal streak (1-39%) */
}

.pct-zero {
    color: var(--zinc-600) !important;  /* Gray - no streak */
    opacity: 0.5;
}

/* ========================================
   LINE MOVEMENTS PAGE
   ======================================== */

/* Header Button */
.line-movements-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #000000;
    color: #ef4444;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.813rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: 2px solid #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
}

.line-movements-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #dc2626;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    transform: translateY(-1px);
}

.line-movements-btn.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: #dc2626;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.logout-btn {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-btn svg {
    display: block;
}

/* Hero Section */
.line-movements-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.pulse-icon {
    animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--zinc-400);
    font-weight: 500;
}

/* Controls */
.line-movements-controls {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--zinc-800);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-select {
    flex: 1;
    min-width: 180px;
    padding: 0.75rem 1rem;
    background: var(--zinc-900);
    border: 1px solid var(--zinc-700);
    border-radius: 0.5rem;
    color: var(--zinc-300);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:hover {
    background: var(--zinc-800);
    border-color: var(--zinc-600);
}

.filter-select:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Stats Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: rgba(39, 39, 42, 0.5);
    padding: 1.5rem 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--zinc-800);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.stat-card:hover {
    background: rgba(39, 39, 42, 0.8);
    border-color: var(--zinc-700);
    transform: translateY(-2px);
}

.stat-card--large {
    border-color: rgba(239, 68, 68, 0.3);
}

.stat-card--medium {
    border-color: rgba(147, 51, 234, 0.3);
}

.stat-card--small {
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: break-word;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--zinc-400);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.75rem;
    flex-shrink: 0;
}

/* Movements Container */
.movements-container {
    display: grid;
    gap: 1rem;
}

/* Movement Cards */
.movement-card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    border-left: 4px solid var(--zinc-700);
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.movement-card:hover {
    background: rgba(24, 24, 27, 0.9);
    transform: translateX(4px);
}

.movement-card--large {
    border-left-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.movement-card--medium {
    border-left-color: #9333ea;
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.1);
}

.movement-card--small {
    border-left-color: #3b82f6;
}

.movement-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.movement-logos-top {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.movement-league-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.movement-team-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.movement-magnitude {
    font-size: 2rem;
    flex-shrink: 0;
}

.movement-player-info {
    flex: 1;
}

.movement-player-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.movement-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.league-badge,
.team-badge,
.time-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.league-badge {
    background: var(--blue-600);
    color: white;
}

.league-badge-nfl { background: #013369; }
.league-badge-nba { background: #17408B; }
.league-badge-mlb { background: #041E42; }
.league-badge-nhl { background: #000000; }
.league-badge-wnba { background: #FE5000; }
.league-badge-ncaaf { background: #BA0C2F; }

.team-badge {
    background: var(--zinc-800);
    color: var(--zinc-300);
}

.time-badge {
    background: var(--zinc-900);
    color: var(--zinc-500);
}

.movement-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.movement-right-side {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.movement-market {
    font-size: 0.875rem;
    color: var(--zinc-400);
    font-weight: 500;
}

.movement-line-change {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(39, 39, 42, 0.5);
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.old-line {
    color: var(--zinc-500);
    text-decoration: line-through;
    font-size: 1rem;
}

.old-line strong {
    color: #ffffff;
}

.change-arrow {
    font-size: 1.25rem;
    font-weight: 900;
}

.change-arrow.increase {
    color: #22c55e;
}

.change-arrow.decrease {
    color: #ef4444;
}

.new-line {
    color: white;
    font-size: 1.25rem;
}

.new-line strong {
    color: #ffffff;
}

.change-value {
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 800;
}

.change-value.increase {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.change-value.decrease {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Movement Odds */
.movement-odds {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(59, 130, 246, 0.3);
}

.odds-old {
    color: var(--zinc-500);
    text-decoration: line-through;
    font-size: 0.875rem;
}

.odds-arrow {
    color: #22c55e;
    font-size: 1.25rem;
    padding: 0 0.5rem;
    font-weight: 900;
}

.odds-new {
    color: #3b82f6;
    font-size: 1rem;
    font-weight: 800;
}

/* Line Movements Ticker */
.line-movements-ticker {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    position: relative;
}

.ticker-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ticker-controls-left,
.ticker-controls-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ticker-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue-400);
    letter-spacing: 0.05em;
}

.ticker-league-filter,
.ticker-speed-filter {
    display: flex;
    gap: 0.5rem;
}

.ticker-league-btn,
.ticker-speed-btn {
    padding: 0.25rem 0.75rem;
    background: rgba(24, 24, 27, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    color: var(--zinc-400);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ticker-league-btn:hover,
.ticker-speed-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: var(--blue-400);
}

.ticker-league-btn.active,
.ticker-speed-btn.active {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    color: var(--blue-300);
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ticker-content {
    display: flex;
    gap: 2rem;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(24, 24, 27, 0.6);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    white-space: nowrap;
}

.ticker-item.increase {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
}

.ticker-item.decrease {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.ticker-league {
    font-weight: 700;
    color: var(--blue-400);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.ticker-player {
    font-weight: 600;
    color: var(--zinc-100);
}

.ticker-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
}

.ticker-change.increase {
    color: #22c55e;
}

.ticker-change.decrease {
    color: #ef4444;
}

.ticker-arrow {
    font-size: 1rem;
}

.ticker-market {
    color: var(--zinc-400);
    font-size: 0.75rem;
}

/* View Controls */
.view-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

/* List View */
.movements-container--list {
    display: block;
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
}

.movements-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    overflow: hidden;
}

.movements-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.movements-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--zinc-300);
    border-bottom: 2px solid var(--zinc-700);
    white-space: nowrap;
}

.movements-table tbody tr {
    border-bottom: 1px solid var(--zinc-800);
    transition: background 0.2s ease;
}

.movements-table tbody tr:hover {
    background: rgba(39, 39, 42, 0.5);
}

.movement-row--large {
    border-left: 4px solid #ef4444;
}

.movement-row--medium {
    border-left: 4px solid #9333ea;
}

.movement-row--small {
    border-left: 4px solid #3b82f6;
}

.movements-table td {
    padding: 1rem;
    color: var(--zinc-300);
    font-size: 0.875rem;
    white-space: nowrap;
}

.player-cell {
    font-weight: 700;
    color: white;
}

.movements-table td:nth-child(4) {
    /* Market column */
    color: #60a5fa;
    font-weight: 600;
}

.movements-table td:nth-child(5) {
    /* Old Line column */
    color: var(--zinc-500);
    text-decoration: line-through;
}

.movements-table td:nth-child(6) {
    /* New Line column */
    color: #22c55e;
    font-weight: 700;
    font-size: 1rem;
}

.league-badge--small,
.team-badge--small {
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
}

.change-cell {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.change-cell .change-arrow {
    margin-right: 0.25rem;
    font-size: 1.25rem;
}

.change-cell.increase .change-arrow {
    color: #22c55e;
}

.change-cell.decrease .change-arrow {
    color: #ef4444;
}

.change-cell .change-value.increase {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 800;
}

.change-cell .change-value.decrease {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 800;
}

.odds-cell {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
}

.odds-cell .odds-old {
    color: var(--zinc-500);
    text-decoration: line-through;
}

.odds-cell .odds-arrow {
    padding: 0 0.25rem;
    font-size: 0.875rem;
    color: #22c55e;
}

.odds-cell .odds-new {
    color: #3b82f6;
    font-weight: 800;
}

.magnitude-cell {
    font-size: 1.25rem;
    text-align: center;
}

.time-cell {
    color: var(--zinc-500);
    font-size: 0.75rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--zinc-300);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--zinc-500);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .filters {
        flex-direction: column;
    }

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

    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .movement-line-change {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   LOGIN PAGE
   ======================================== */

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--zinc-900);
    border: 1px solid var(--zinc-800);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--zinc-400);
    font-size: 0.875rem;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--zinc-300);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--zinc-800);
    border: 1px solid var(--zinc-700);
    border-radius: 0.5rem;
    color: var(--zinc-100);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn--block {
    width: 100%;
}

.login-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--zinc-800);
}

.login-footer p {
    color: var(--zinc-500);
    font-size: 0.75rem;
}

/* ========================================
   LANDING PAGE
   ======================================== */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.03em;
    position: relative;
    animation: slide-up 0.8s ease-out;
    line-height: 1.2;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.description {
    font-size: 1.125rem;
    color: #d4d4d8;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    animation: slide-up 0.8s ease-out 0.2s both;
}

/* Leagues Grid */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
    margin-bottom: 4rem;
    justify-items: center;
}

.leagues-grid .league-card:last-child {
    grid-column: 2 / 3;
}

.league-card {
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.6) 0%, rgba(24, 24, 27, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fade-in 0.6s ease-out both;
    width: 100%;
    max-width: 350px;
}

.league-card:nth-child(1) { animation-delay: 0.1s; }
.league-card:nth-child(2) { animation-delay: 0.2s; }
.league-card:nth-child(3) { animation-delay: 0.3s; }
.league-card:nth-child(4) { animation-delay: 0.4s; }
.league-card:nth-child(5) { animation-delay: 0.5s; }
.league-card:nth-child(6) { animation-delay: 0.6s; }
.league-card:nth-child(7) { animation-delay: 0.7s; }

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.league-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.league-card:hover::before {
    opacity: 1;
}

.league-card.active:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(59, 130, 246, 0.3),
        0 0 60px rgba(59, 130, 246, 0.2);
}

.league-card.coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
}

.league-card.coming-soon:hover {
    transform: none;
}

.league-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.league-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.league-card:hover .league-logo {
    transform: scale(1.15);
}

.league-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.league-card p {
    color: #a1a1aa;
    font-size: 0.938rem;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(113, 113, 122, 0.2);
    color: #a1a1aa;
    border: 1px solid rgba(113, 113, 122, 0.3);
}

.status-badge.available {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.3) 100%);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

.league-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.season-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.season-badge.in-season {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.3) 100%);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.season-badge.off-season {
    background: rgba(113, 113, 122, 0.2);
    color: #a1a1aa;
    border: 1px solid rgba(113, 113, 122, 0.3);
}

/* Features Section */
.features-section {
    margin-top: 4rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(39, 39, 42, 0.5);
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #d4d4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
}

.features-grid .feature:nth-child(4),
.features-grid .feature:nth-child(5) {
    grid-column: span 1;
}

.features-grid .feature:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 2;
}

.features-grid .feature:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(39, 39, 42, 0.4) 0%, rgba(24, 24, 27, 0.6) 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 1rem;
    transition: all 0.3s ease;
    animation: fade-in 0.8s ease-out both;
    width: 100%;
    max-width: 350px;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }
.feature:nth-child(5) { animation-delay: 0.5s; }

.feature:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.feature p {
    color: #a1a1aa;
    font-size: 0.938rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .description {
        font-size: 1rem;
    }

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

    .leagues-grid .league-card:last-child {
        grid-column: auto;
    }

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

    .features-grid .feature:nth-child(4),
    .features-grid .feature:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ========================================
   PARLAYS PAGE STYLES
   ======================================== */

/* Stats Summary */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Parlays Filters */
.parlays-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Parlay Grid */
.parlays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.parlays-grid::-webkit-scrollbar {
    width: 12px;
    background: rgba(0, 0, 0, 0.3);
}

.parlays-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.4));
    border-radius: 6px;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.parlays-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.6));
}

/* Parlay Card */
.parlay-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
}

.parlay-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.parlay-card--perfect {
    border-left: 4px solid #22c55e;
}

.parlay-card--excellent {
    border-left: 4px solid #3b82f6;
}

.perfect-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.parlay-header {
    padding: 20px;
    background: rgba(59, 130, 246, 0.05);
    border-bottom: 1px solid #334155;
}

.parlay-matchup {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.parlay-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge--perfect {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge--excellent {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
}

.badge--good {
    background: rgba(132, 204, 22, 0.1);
    color: #84cc16;
}

.badge--above-average {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.badge--average {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
}

.badge--below-average {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.badge--context {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

/* Legs */
.parlay-legs {
    padding: 20px;
}

.leg {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(59, 130, 246, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    transition: background 0.2s;
}

.leg:hover {
    background: rgba(59, 130, 246, 0.08);
}

.leg:last-child {
    margin-bottom: 0;
}

.leg-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #3b82f6;
    color: #fff;
    border-radius: 50%;
    font-size: 0.813rem;
    font-weight: 700;
    flex-shrink: 0;
}

.leg-content {
    flex: 1;
}

.leg-player {
    font-size: 0.938rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.leg-market {
    font-size: 0.813rem;
    color: #94a3b8;
}

.leg-team-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-left: 6px;
}

/* Insights */
.parlay-insights {
    padding: 15px 20px 20px 20px;
    border-top: 1px solid #334155;
}

.insight {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #94a3b8;
    font-size: 0.813rem;
}

.insight svg {
    color: #3b82f6;
    flex-shrink: 0;
}

/* Responsive for Parlays */
@media (max-width: 768px) {
    .parlays-grid {
        grid-template-columns: 1fr;
    }

    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .parlays-filters {
        flex-direction: column;
    }
}

/* Parlay Team Logos */
.parlay-matchup-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.parlay-team-logos {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.parlay-team-logos img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.vs-separator {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Leg Line and Odds Display */
.leg-line {
    color: #3b82f6;
    font-weight: 700;
    margin-left: 6px;
}

.leg-odds {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: 6px;
    font-family: 'Courier New', monospace;
}

/* Alt Lines Filters */
.alt-lines-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Alt Lines Grid */
.alt-lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Alt Line Card */
.alt-line-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    border-left: 4px solid #334155;
}

.alt-line-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(100, 116, 139, 0.2);
}

/* Card color variants based on hit rate */
.alt-line-card--perfect {
    border-left-color: #22c55e;
}

.alt-line-card--perfect:hover {
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.2);
}

.alt-line-card--perfect .alt-line-header {
    background: rgba(34, 197, 94, 0.05);
}

.alt-line-card--excellent {
    border-left-color: #4ade80;
}

.alt-line-card--excellent:hover {
    box-shadow: 0 12px 24px rgba(74, 222, 128, 0.2);
}

.alt-line-card--excellent .alt-line-header {
    background: rgba(74, 222, 128, 0.05);
}

.alt-line-card--good {
    border-left-color: #eab308;
}

.alt-line-card--good:hover {
    box-shadow: 0 12px 24px rgba(234, 179, 8, 0.2);
}

.alt-line-card--good .alt-line-header {
    background: rgba(234, 179, 8, 0.05);
}

.alt-line-card--fair {
    border-left-color: #f97316;
}

.alt-line-card--fair:hover {
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.2);
}

.alt-line-card--fair .alt-line-header {
    background: rgba(249, 115, 22, 0.05);
}

.alt-line-card--poor {
    border-left-color: #ef4444;
}

.alt-line-card--poor:hover {
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.2);
}

.alt-line-card--poor .alt-line-header {
    background: rgba(239, 68, 68, 0.05);
}

.alt-line-header {
    padding: 20px;
    border-bottom: 1px solid #334155;
    position: relative;
}

.alt-line-player-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.alt-line-team-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
}

.alt-line-player-info {
    flex: 1;
}

.alt-line-player-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.alt-line-player-position {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 600;
}

.alt-line-player-headshot {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #22c55e;
}

.alt-line-market-type {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alt-line-body {
    padding: 20px;
}

.alt-line-bet-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.alt-line-bet-details {
    flex: 1;
}

.alt-line-bet-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.alt-line-bet-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.alt-line-direction {
    font-size: 0.875rem;
    color: #e2e8f0;
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.alt-line-odds-section {
    text-align: right;
}

.alt-line-odds {
    font-size: 1.75rem;
    font-weight: 700;
    color: #22c55e;
    font-family: 'Courier New', monospace;
}

.alt-line-book {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 4px;
}

.alt-line-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.alt-line-stat {
    text-align: center;
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    border: 1px solid #334155;
}

.alt-line-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 4px;
}

.alt-line-stat-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alt Line Footer */
.alt-line-footer {
    padding: 12px 20px;
    border-top: 1px solid #334155;
    background: rgba(0, 0, 0, 0.2);
}

.alt-line-footer-text {
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
    line-height: 1.5;
}

/* Perfect streak badge */
.alt-line-perfect-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 5-level color coding for badges */
.hit-rate-badge--perfect {
    background: linear-gradient(135deg, #22c55e, #16a34a); /* Dark Green - 95-100% */
    animation: pulse 2s infinite;
}

.hit-rate-badge--excellent {
    background: linear-gradient(135deg, #4ade80, #22c55e); /* Light Green - 90-94% */
}

.hit-rate-badge--good {
    background: linear-gradient(135deg, #eab308, #ca8a04); /* Yellow - 85-89% */
}

.hit-rate-badge--fair {
    background: linear-gradient(135deg, #f97316, #ea580c); /* Orange - 80-84% */
}

.hit-rate-badge--poor {
    background: linear-gradient(135deg, #ef4444, #dc2626); /* Red - 70-79% */
}

/* Responsive */
@media (max-width: 768px) {
    .alt-lines-grid {
        grid-template-columns: 1fr;
    }

    .alt-lines-filters {
        flex-direction: column;
    }

    .alt-line-bet-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .alt-line-odds-section {
        text-align: center;
    }
}

/* View Toggle Button */
#view-toggle {
    padding: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
}

#view-toggle svg {
    display: block;
}

/* Table Controls */
.table-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.table-controls-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Card Group Selector */
.card-group-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.card-group-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background-color: rgba(24, 24, 27, 0.5);
}

.card-group-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
}

.card-group-btn--active {
    background-color: var(--blue-600);
    color: white;
    border-color: var(--blue-600);
}

.card-group-btn--active:hover {
    background-color: var(--blue-700);
    border-color: var(--blue-700);
}

/* Dedupe Toggle Button */
#dedupe-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(59, 130, 246, 0.2);
}

#dedupe-toggle-btn.btn--active {
    background-color: rgba(234, 179, 8, 0.15);
    border-color: rgba(234, 179, 8, 0.5);
    color: #eab308;
}

#dedupe-toggle-btn svg {
    display: block;
}

#column-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#column-toggle-btn svg {
    display: block;
}

/* Column Toggle Menu */
.column-toggle-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: #18181b;
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.column-toggle-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.column-toggle-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.column-toggle-item input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.column-toggle-item input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.column-toggle-item span {
    color: #e4e4e7;
    font-size: 0.875rem;
}

.column-toggle-item input[type="checkbox"]:disabled + span {
    color: #71717a;
}

/* Hidden Column */
.hidden-column {
    display: none !important;
}


/* Add to Parlay Button */
.add-to-parlay-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.add-to-parlay-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: scale(1.1);
}

.add-to-parlay-btn.added {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
}

.add-to-parlay-btn.added:hover {
    background: rgba(34, 197, 94, 0.3);
}

.add-to-parlay-btn svg {
    color: #3b82f6;
}

.add-to-parlay-btn.added svg {
    color: #22c55e;
}

/* Parlay Builder Panel */
.parlay-builder {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #18181b;
    border-left: 1.5px solid rgba(59, 130, 246, 0.3);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 200;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.parlay-builder.open {
    right: 0;
}

.parlay-builder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #27272a;
}

.parlay-builder-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #e4e4e7;
}

.close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #71717a;
    transition: color 0.2s;
    padding: 0.25rem;
}

.close-btn:hover {
    color: #e4e4e7;
}

.parlay-builder-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.parlay-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem;
    color: #71717a;
}

.parlay-empty svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.parlay-empty p {
    font-size: 0.875rem;
    line-height: 1.5;
}

.parlay-picks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.parlay-pick {
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    transition: border-color 0.2s;
}

.parlay-pick:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.parlay-pick-remove {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #71717a;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s;
}

.parlay-pick-remove:hover {
    color: #ef4444;
}

.parlay-pick-info {
    flex: 1;
    min-width: 0;
}

.parlay-pick-player {
    font-weight: 600;
    color: #e4e4e7;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.parlay-pick-details {
    font-size: 0.875rem;
    color: #a1a1aa;
    margin-bottom: 0.25rem;
}

.parlay-pick-stats {
    font-size: 0.75rem;
    color: #71717a;
}

.parlay-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #27272a;
}

.parlay-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #e4e4e7;
    font-size: 0.875rem;
}

.parlay-summary-row strong {
    font-size: 1rem;
    color: #3b82f6;
}

/* Parlay Builder Toggle */
.parlay-builder-toggle {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 100;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(34, 197, 94, 0.7));
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.parlay-builder-toggle:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 1), rgba(34, 197, 94, 0.9));
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(34, 197, 94, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.2);
}

.parlay-builder-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
}

.parlay-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    min-width: 20px;
    text-align: center;
}

/* Picks Count Badge */
.picks-count-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    min-width: 20px;
    text-align: center;
    margin-left: 0.5rem;
}

/* Remove Pick Button (Inline) */
.remove-pick-btn-inline {
    background: rgba(239, 68, 68, 0.1);
    border: 1.5px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.remove-pick-btn-inline:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1);
}

.remove-pick-btn-inline svg {
    color: #ef4444;
}

/* Fullscreen Toggle Button */
.fullscreen-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(59, 130, 246, 0.7));
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.fullscreen-toggle:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(59, 130, 246, 0.9));
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.2);
}

.fullscreen-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Fullscreen Mode */
.view--fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: #09090b;
    overflow: auto;
    padding: 20px;
}

.view--fullscreen .sheets-table-wrapper {
    max-height: calc(100vh - 200px);
}

.view--fullscreen .view__header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #09090b;
    padding-bottom: 20px;
}
