* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.top-nav {
    margin-bottom: 2rem;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.5rem;
}

.home-link {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 10rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-link:hover {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: #ffffff;
    background-clip: initial;
}

.nav-links {
    display: block;
}

/* Landing page */
.landing {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 4rem;
}

.landing-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.landing-subtitle {
    color: #888;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.landing-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.landing-card {
    display: block;
    background: #16213e;
    border: 1px solid #4c1d95;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.start-card:hover { border-color: #10b981; }
.waiver-card:hover { border-color: #8b5cf6; }
.pickem-card:hover { border-color: #f59e0b; }

.landing-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.landing-card-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.landing-card-desc {
    display: block;
    font-size: 0.85rem;
    color: #888;
}

.donate-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: #ffdd00;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.donate-btn:hover {
    background: #e6c800;
}

.support-link {
    text-align: center;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: inline-block;
    margin-right: 0.5rem;
}

.top-nav .home-link {
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    padding: 0.5rem 0.15em 0.5rem 0;
}

.nav-link:nth-child(1) {
    border-bottom: 2px solid transparent;
}

.nav-link:nth-child(1):hover,
.nav-link:nth-child(1).active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.nav-link:nth-child(2) {
    border-bottom: 2px solid transparent;
}

.nav-link:nth-child(2):hover,
.nav-link:nth-child(2).active {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
}

.nav-link:nth-child(3) {
    border-bottom: 2px solid transparent;
}

.nav-link:nth-child(3):hover,
.nav-link:nth-child(3).active {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

/* Pick 'Em page styles */
.pickem-grid {
    margin: 0;
}

.pickem-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #1a1a2e;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.away-team,
.home-team {
    font-weight: 700;
    font-size: 1rem;
    color: #ccc;
}

.away-team.picked,
.home-team.picked {
    color: #fff;
    background: rgba(139, 92, 246, 0.2);
    outline: 2px solid #8b5cf6;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.away-team {
    text-align: right;
}

.at-symbol {
    color: #555;
    font-size: 0.85rem;
}

.pick-badge {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: #065f46;
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
}

.pick-badge:empty {
    visibility: hidden;
}

.record {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4c1d95;
    text-align: right;
    color: #888;
}

.record strong {
    color: #8b5cf6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

.football-icon {
    height: 1em;
    vertical-align: -0.1em;
    display: inline;
}

.emoji {
    -webkit-text-fill-color: initial;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    font-style: normal;
}

.split-emoji {
    display: inline-block;
    position: relative;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    overflow: hidden;
}

.split-emoji .green-half,
.split-emoji .red-half {
    position: absolute;
    top: 0;
    width: 1em;
    height: 1em;
    overflow: hidden;
    font-size: 1em;
    line-height: 1;
}

.split-emoji .green-half {
    left: 0;
    clip-path: inset(0 50% 0 0);
}

.split-emoji .red-half {
    left: 0;
    clip-path: inset(0 0 0 50%);
}

.split-circle {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    border-radius: 50%;
    background: linear-gradient(90deg, #22c55e 50%, #ef4444 50%);
    vertical-align: middle;
}

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #8b5cf6, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #aaa;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.interaction-hint {
    color: #777;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-style: italic;
}

main {
    max-width: 800px;
    margin: 0 auto;
}

.week-card {
    background: #16213e;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #4c1d95;
    transition: transform 0.2s;
}

.week-card.current {
    border-color: #8b5cf6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.week-card h2 {
    color: #8b5cf6;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.section-label {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    color: #eee;
}

.section-label:first-of-type {
    margin-top: 0;
}

.players-grid {
    margin: 0;
}

.player-pick {
    display: grid;
    grid-template-columns: 50px 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #1a1a2e;
    border-radius: 8px;
    border-left: 3px solid transparent;
    margin-bottom: 0.5rem;
}

.player-pick.start {
    border-left-color: #10b981;
}

.player-pick.sit {
    border-left-color: #ef4444;
}

.player-pick.waiver {
    border-left-color: #8b5cf6;
}

.position {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: #4c1d95;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    text-align: center;
}

.position-qb {
    background: rgba(220, 38, 38, 0.55);
}

.position-rb {
    background: rgba(5, 150, 105, 0.55);
}

.position-wr {
    background: rgba(37, 99, 235, 0.55);
}

.position-te {
    background: rgba(217, 119, 6, 0.55);
}

.position-k {
    background: rgba(219, 39, 119, 0.55);
}

.position-def,
.position-dst {
    background: rgba(124, 58, 237, 0.55);
}

.player-name {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
}

.team-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.matchup-info {
    font-size: 0.85rem;
    color: #888;
}

.player-analysis {
    display: none;
    margin: -0.5rem 0 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(139, 92, 246, 0.05);
    border-left: 3px solid #8b5cf6;
    border-radius: 0 0 8px 8px;
}

.player-analysis.open {
    display: block;
}

.has-analysis {
    cursor: pointer;
}

.has-analysis:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

.player-pick.has-analysis .player-name::after,
.pickem-row.has-analysis .pick-badge::after {
    content: ' ▾';
    color: #8b5cf6;
    font-size: 0.75rem;
}

.player-pick.analysis-open .player-name::after,
.pickem-row.analysis-open .pick-badge::after {
    content: ' ▴';
}

.player-analysis strong {
    color: #8b5cf6;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.player-analysis p {
    margin: 0.35rem 0 0;
    color: #bbb;
    line-height: 1.5;
}

.waiver-note {
    font-size: 0.8rem;
    color: #a78bfa;
    font-style: italic;
    grid-column: 3 / -1;
}

.notes {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #4c1d95;
}

.notes h3 {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.notes p {
    color: #bbb;
    line-height: 1.6;
}

.record {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #4c1d95;
    text-align: right;
    color: #888;
}

.record strong {
    color: #8b5cf6;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: #555;
    font-size: 0.85rem;
}

.disclaimer {
    max-width: 900px;
    margin: 0 auto 1rem;
    color: #777;
    font-size: 0.68rem;
    font-style: italic;
    line-height: 1.5;
}

@media (max-width: 600px) {
    body {
        padding: 1rem 0.5rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .week-card {
        padding: 1.25rem;
    }

    .player-pick {
        grid-template-columns: 40px 1fr auto;
        gap: 0.5rem;
    }

    .matchup-info {
        grid-column: 2 / -1;
        font-size: 0.8rem;
    }

    .waiver-note {
        grid-column: 2 / -1;
    }
}
