:root {
    --navy: #071a33;
    --navy-soft: #102846;
    --blue: #1769aa;
    --blue-light: #eaf4ff;
    --gold: #d6a742;
    --ink: #172033;
    --muted: #64748b;
    --line: #d9e2ec;
    --surface: #ffffff;
    --page: #eef3f8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f5f5;
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body .trade-page {
    width: auto;
    margin: 0;
}

.trade-page .page-header {
    min-height: 38px;
}

.trade-hero {
    margin-bottom: 0;
}

.trade-hero p {
    margin: 7px 0 0;
    color: #e5e7eb;
    font-size: 0.88rem;
}

a {
    color: inherit;
}

.trade-page {
    width: min(1760px, calc(100% - 48px));
    margin: 24px auto 56px;
}

.trade-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 26px 32px;
    border-radius: 14px;
    background: linear-gradient(120deg, var(--navy), var(--navy-soft));
    color: #fff;
    box-shadow: 0 12px 30px rgba(7, 26, 51, 0.16);
}

.eyebrow {
    margin: 0 0 6px;
    color: #9ec9ef;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.trade-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
}

.subtitle {
    max-width: 720px;
    margin: 10px 0 0;
    color: #cedced;
}

.header-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.home-link,
.season-filter {
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
}

.home-link {
    display: grid;
    place-items: center;
    padding: 0 18px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.season-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px 7px 14px;
}

.season-filter label {
    color: #cedced;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.season-filter select {
    border: 0;
    border-radius: 6px;
    padding: 7px 28px 7px 10px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
}

.season-summary {
    display: flex;
    gap: 40px;
    margin: 18px 0;
    padding: 15px 22px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
}

.season-summary div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.summary-label {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.season-summary strong {
    color: var(--navy);
    font-size: 1.25rem;
}

.trade-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.trade-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 7px 20px rgba(29, 49, 75, 0.07);
}

.trade-meta {
    display: block;
    padding: 9px 18px;
    border-bottom: 1px solid var(--line);
    background: #f7f9fc;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
}

.trade-matchup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr);
    min-height: 245px;
}

.trade-team {
    padding: 20px;
}

.team-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 68px;
}

.team-heading img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.team-abbr {
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.team-heading h2 {
    margin: 2px 0 0;
    font-size: 1.05rem;
    line-height: 1.2;
}

.team-heading h2 a {
    text-decoration: none;
}

.team-heading h2 a:hover,
.player-asset a:hover {
    color: var(--blue);
}

.trade-divider {
    position: relative;
    display: grid;
    place-items: center;
}

.trade-divider::before {
    position: absolute;
    inset: 18px 50%;
    width: 1px;
    background: var(--line);
    content: "";
}

.trade-divider span {
    z-index: 1;
    padding: 7px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 0.61rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    writing-mode: vertical-rl;
}

.received-label {
    margin: 17px 0 8px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.asset-list {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.asset {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #e5ebf2;
    border-radius: 8px;
    background: #fbfcfe;
    font-size: 0.9rem;
    font-weight: 700;
}

.asset::before {
    width: 6px;
    height: 6px;
    margin-right: 10px;
    border-radius: 50%;
    background: #6b7280;
    content: "";
}

.pick-asset::before {
    background: #b88624;
}

.asset-icon {
    display: grid;
    flex: 0 0 27px;
    height: 27px;
    place-items: center;
    border-radius: 7px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 0.64rem;
    font-weight: 900;
}

.pick-asset .asset-icon {
    background: #fff3d6;
    color: #8d6411;
}

.player-asset a {
    text-decoration: none;
}

.player-asset small {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.empty-asset,
.empty-state {
    color: var(--muted);
    font-weight: 600;
}

.empty-state {
    padding: 60px 24px;
    border: 1px dashed #bcc9d7;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

@media (max-width: 1100px) {
    .trade-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .trade-page {
        width: min(100% - 24px, 1760px);
        margin-top: 12px;
    }

    .trade-header {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .header-actions {
        align-items: stretch;
    }

    .season-filter {
        flex: 1;
        justify-content: space-between;
    }

    .trade-matchup {
        grid-template-columns: 1fr;
    }

    .trade-divider {
        height: 42px;
    }

    .trade-divider::before {
        inset: 50% 18px auto;
        width: auto;
        height: 1px;
    }

    .trade-divider span {
        padding: 5px 8px;
        writing-mode: horizontal-tb;
    }

    .season-summary {
        gap: 18px;
        justify-content: space-between;
    }

    .season-summary div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}
