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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
    color: #e8e8e8;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.title-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.title {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.last-updated {
    color: #a0a0a0;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.3px;
}

.description {
    margin: 20px 0;
    padding: 15px 20px;
    background: rgba(42, 49, 66, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.description-text {
    color: #c8c8c8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

.description-note {
    color: #fbbf24;
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0 0 0;
    font-weight: 400;
    font-style: italic;
    opacity: 0.9;
}

.description-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    color: #c8c8c8;
    font-size: 13px;
    line-height: 1.8;
}

.description-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.description-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.description-details {
    margin-top: 12px;
}

.description-summary {
    color: #667eea;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.description-summary:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.description-summary::-webkit-details-marker {
    display: none;
}

.description-summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s ease;
    font-size: 10px;
}

.description-details[open] .description-summary::before {
    transform: rotate(90deg);
}

.description-content {
    margin-top: 12px;
    padding: 15px;
    background: rgba(31, 38, 54, 0.5);
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.prop-info {
    margin-bottom: 12px;
}

.prop-info:last-child {
    margin-bottom: 0;
}

.prop-title {
    color: #e8e8e8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.prop-info p {
    color: #c8c8c8;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.prop-info .tip {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fbbf24;
}

.filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-label {
    color: #a0a0a0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown {
    padding: 10px 20px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #2a3142;
    color: #e8e8e8;
    min-width: 150px;
    transition: all 0.3s ease;
}

.dropdown:hover {
    border-color: rgba(102, 126, 234, 0.6);
    background: #353d52;
}

.dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #2a3142;
    color: #e8e8e8;
}

.btn:hover {
    background: #353d52;
    transform: translateY(-2px);
}

.btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.platform-toggle {
    display: flex;
    gap: 5px;
    background: #2a3142;
    padding: 5px;
    border-radius: 10px;
    flex-shrink: 0;
}

.platform-toggle .btn {
    padding: 8px 16px;
    background: transparent;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.platform-toggle .btn.active {
    background: #667eea;
}

.table-container {
    background: rgba(42, 49, 66, 0.5);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: visible;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    position: relative;
}

/* Scrollbar styling for better visibility */
.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(31, 38, 54, 0.5);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px; /* Ensure table doesn't get too cramped */
}

@media (max-width: 1400px) {
    table {
        min-width: 700px;
    }
    
    th, td {
        padding: 14px 10px;
        font-size: 13px;
    }
    
    .player-name {
        font-size: 13px;
    }
    
    .ev-cell {
        font-size: 15px;
    }
}

@media (max-width: 1200px) {
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .stat-value {
        font-size: 22px;
    }
}

thead {
    background: rgba(31, 38, 54, 0.9);
}

th {
    padding: 18px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a0a0a0;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

td {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

tr:hover {
    background: rgba(102, 126, 234, 0.1);
}

.player-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.player-stats {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.line-value {
    font-weight: 600;
    color: #e8e8e8;
}

.side-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.side-over {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.side-under {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.hit-rate {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.hit-rate-high {
    background: rgba(52, 211, 153, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.hit-rate-medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.hit-rate-low {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.trend-arrow {
    font-size: 14px;
    font-weight: 700;
}

.trend-up {
    color: #34d399;
}

.trend-down {
    color: #f87171;
}

.trend-stable {
    color: #fbbf24;
}

.ev-cell {
    font-weight: 700;
    font-size: 16px;
}

.ev-high {
    color: #34d399;
}

.ev-medium {
    color: #fbbf24;
}

.ev-low {
    color: #f87171;
}

.kelly-cell {
    color: #a0a0a0;
    font-weight: 500;
}

.sigma-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 4px;
}

.sigma-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.sigma-med {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.sigma-low {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

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

.rec-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.rec-1 {
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.rec-0 {
    background: #6b7280;
}

.picks-count {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 15px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(42, 49, 66, 0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    color: #a0a0a0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

.tooltip {
    position: relative;
    cursor: help;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    table {
        min-width: 500px;
    }

    th, td {
        padding: 10px 6px;
        font-size: 11px;
    }

    .title {
        font-size: 24px;
    }

    .last-updated {
        font-size: 12px;
    }

    .description {
        margin: 15px 0;
        padding: 12px 15px;
    }

    .description-text {
        font-size: 13px;
    }

    .description-list {
        font-size: 12px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .platform-toggle {
        width: 100%;
        display: flex;
    }

    .platform-toggle .btn {
        padding: 8px 12px;
        font-size: 13px;
        flex: 1;
    }

    .filter-group {
        width: 100%;
    }

    .dropdown {
        width: 100%;
    }

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

    .stat-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 20px;
    }

    .player-name {
        font-size: 12px;
    }

    .player-stats {
        flex-wrap: wrap;
        gap: 4px;
    }

    .side-badge, .hit-rate, .sigma-badge {
        font-size: 9px;
        padding: 2px 6px;
    }

    .ev-cell {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    table {
        min-width: 400px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 20px;
    }

    .last-updated {
        font-size: 11px;
    }

    .description {
        margin: 12px 0;
        padding: 10px 12px;
    }

    .description-text {
        font-size: 12px;
    }

    .description-list {
        font-size: 11px;
    }

    th, td {
        padding: 8px 4px;
        font-size: 10px;
    }

    .platform-toggle .btn {
        padding: 8px 8px;
        font-size: 12px;
    }

    .player-name {
        font-size: 11px;
    }

    .ev-cell {
        font-size: 12px;
    }

    .stat-value {
        font-size: 18px;
    }
}

/* Disclaimer Section */
.disclaimer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer-text {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    opacity: 0.7;
}

/* Contact Section */
.contact {
    margin-top: 20px;
    padding: 15px 0;
    text-align: center;
}

.contact-text {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    opacity: 0.8;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Tab Container */
.tab-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #667eea;
    background-color: transparent;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.tab-button:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.tab-button.active {
    background-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-button.active:hover {
    background-color: #764ba2;
    border-color: #764ba2;
}

@media (max-width: 768px) {
    .disclaimer {
        margin-top: 30px;
        padding: 15px 0;
    }

    .disclaimer-text {
        font-size: 11px;
        padding: 0 10px;
    }

    .contact {
        margin-top: 15px;
        padding: 10px 0;
    }

    .contact-text {
        font-size: 11px;
        padding: 0 10px;
    }
}

