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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #94a3b8;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.header-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.btn-refresh, .btn-demo, .btn-primary {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-demo {
    background: rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
}

.btn-demo:hover {
    background: rgba(139, 92, 246, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    padding: 10px 20px;
    background: #2d3748;
    border: 1px solid #4a5568;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #374151;
    border-color: #4299e1;
    transform: translateY(-2px);
}

.loading-section {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-section {
    text-align: center;
    padding: 60px 20px;
}

.error-content {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.error-content h3 {
    color: #fca5a5;
    margin-bottom: 15px;
}

.error-content p {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.demo-banner {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-card h3 {
    color: #94a3b8;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-value {
    font-size: 2em;
    font-weight: 700;
    color: #f59e0b;
}

.summary-value.positive {
    color: #10b981;
}

.summary-value.negative {
    color: #ef4444;
}

.summary-subtitle {
    color: #64748b;
    font-size: 0.85em;
    margin-top: 5px;
}

.portfolio-score {
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.portfolio-score.grade-a {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.portfolio-score.grade-b {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.portfolio-score.grade-c {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

.portfolio-score.grade-d {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.portfolio-score h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
    opacity: 0.9;
}

.score-value {
    font-size: 3em;
    font-weight: 800;
    margin-bottom: 10px;
}

.score-description {
    opacity: 0.9;
    font-size: 0.95em;
    line-height: 1.6;
}

.overlap-analysis {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.overlap-analysis h2 {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.player-overlap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.player-overlap-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid #64748b;
}

.player-overlap-item.high-risk {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.player-overlap-item.medium-risk {
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.player-overlap-item.low-risk {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.player-name {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.overlap-stats {
    color: #94a3b8;
    font-size: 0.9em;
}

.overlap-percentage {
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 5px;
}

.recommendations {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.recommendations h3 {
    color: #60a5fa;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.recommendation-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.recommendation-item:last-child {
    border-bottom: none;
}

.recommendation-icon {
    display: inline-block;
    margin-right: 10px;
}

.parlay-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.parlay-list h2 {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.parlay-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

.parlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.parlay-title {
    font-weight: 600;
    font-size: 1.1em;
}

.parlay-payout {
    color: #10b981;
    font-weight: 700;
    font-size: 1.2em;
}

.parlay-legs {
    list-style: none;
    margin-bottom: 10px;
}

.parlay-legs li {
    padding: 8px 0;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.parlay-legs li:last-child {
    border-bottom: none;
}

.parlay-cost {
    color: #94a3b8;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    .header-controls {
        flex-direction: column;
    }

    .player-overlap-grid {
        grid-template-columns: 1fr;
    }
}

