body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #0ea5e9 100%);
    color: #f1f5f9;
    margin: 0;
    padding: 0;
}

.modern-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 0 48px 0;
}

.modern-header {
    text-align: center;
    margin-bottom: 32px;
}

.modern-header h1 {
    font-size: 2.5rem;
    color: #fbbf24;
    letter-spacing: 2px;
    text-shadow: 1px 2px 8px #0f172a;
}

.modern-form {
    background: rgba(30, 41, 59, 0.95);
    border-radius: 16px;
    max-width: 900px;
    margin: 0 auto 32px auto;
    padding: 30px 40px 20px 40px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
}

.modern-player-fields {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 24px;
}

.modern-player-input {
    position: relative;
    min-width: 250px;
    flex: 0 1 250px;
}

.modern-label {
    font-weight: bold;
    color: #fbbf24;
    letter-spacing: 1px;
    margin-bottom: 6px;
    display: block;
}

.modern-input {
    border: 1px solid #64748b;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 1rem;
    margin-bottom: 8px;
    background: #f1f5f9;
    color: #1e293b;
    transition: border 0.2s;
    width: 100%;
}

.modern-input:focus {
    border: 1.5px solid #0ea5e9;
    outline: none;
}

.modern-form-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 12px;
}

.modern-btn {
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 12px 36px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: background 0.2s, color 0.2s;
}
.modern-btn.primary {
    background: linear-gradient(90deg, #0ea5e9 0%, #fbbf24 100%);
    color: #1e293b;
}
.modern-btn.primary:hover {
    background: linear-gradient(90deg, #fbbf24 0%, #0ea5e9 100%);
    color: #0f172a;
}
.modern-btn.secondary {
    background: #334155;
    color: #fbbf24;
}
.modern-btn.secondary:hover {
    background: #0ea5e9;
    color: #fff;
}

.modern-comparison-section {
    margin-top: 40px;
    width: 100vw;
    max-width: 100vw;
    min-height: 70vh;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 2vw;
    padding-right: 2vw;
    box-sizing: border-box;
}
.modern-stats-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    justify-items: center;
    align-items: stretch;
    margin-bottom: 32px;
    padding-bottom: 8px;
    width: 100%;
    max-width: 100vw;
}
.modern-stats-card {
    background: rgba(15, 23, 42, 0.97);
    border-radius: 16px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
    padding: 18px 12px;
    width: 100%;
    max-width: 260px;
    min-width: 180px;
    min-height: 320px;
    color: #f1f5f9;
    border: 2px solid #0ea5e9;
    position: relative;
    transition: box-shadow 0.15s, border-color 0.15s, z-index 0.15s;
    z-index: 1;
}
.modern-stats-card:hover {
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.28);
    border-color: #fbbf24;
    z-index: 2;
}
.modern-card-header h2 {
    color: #fbbf24;
    margin-bottom: 18px;
    font-size: 1.3rem;
    text-align: center;
    letter-spacing: 1px;
}
.modern-team {
    color: #38bdf8;
    font-size: 1rem;
    font-weight: 500;
}
.modern-draft-info h3,
.modern-career-info h3,
.modern-season-info h3 {
    color: #fbbf24;
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-align: left;
}
.modern-draft-info ul,
.modern-career-info ul,
.modern-season-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.modern-draft-info li,
.modern-career-info li,
.modern-season-info li {
    padding: 7px 0;
    border-bottom: 1px solid #334155;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
}
.modern-draft-info li:last-child,
.modern-career-info li:last-child,
.modern-season-info li:last-child {
    border-bottom: none;
}
.modern-category {
    margin-bottom: 8px;
}
.modern-stat-item {
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: background 0.3s;
    background: #1e293b;
    color: #fbbf24;
}
.modern-stat-value {
    font-weight: bold;
    color: #38bdf8;
}
.modern-no-season {
    color: #94a3b8;
    text-align: center;
    margin-top: 40px;
}
.modern-coords {
    color: #38bdf8;
    font-size: 0.95em;
}

@media (max-width: 1200px) {
    .modern-stats-comparison {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
    }
    .modern-stats-card {
        max-width: 98vw;
        min-width: 180px;
        padding: 18px 8px;
    }
}
.suggestions-box {
    position: absolute;
    background: #1e293b;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
    z-index: 10;
    width: 100%;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    color: #fbbf24;
}

.suggestion-item:hover {
    background: #0ea5e9;
    color: #1e293b;
}

.stat-item {
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: background 0.3s, color 0.3s;
    background: #1e293b;
    color: #fbbf24;
}

/* JS will override these for best/worst/middle */
.stat-item.best {
    background: hsl(142, 71%, 50%);
    color: #fff;
}
.stat-item.worst {
    background: hsl(0, 71%, 80%);
    color: #000;
}
.stat-item.middle {
    background: #e5e7eb;
    color: #000;
}
.stat-item.tied {
    background: #14b8a6;
    color: #fff;
}

.stats-comparison {
    display: flex;
    flex-direction: row;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

@media (max-width: 900px) {
    .stats-comparison {
        flex-direction: row;
        gap: 24px;
        overflow-x: auto;
        /* Cards will scroll horizontally on mobile */
    }
    .stats-card {
        width: 80vw;
        min-width: 220px;
    }
}
