:root {
    --wr-ink: #18293a;
    --wr-muted: #66727d;
    --wr-line: rgba(23, 50, 74, 0.14);
    --wr-navy: #17324a;
    --wr-gold: #a8843f;
    --wr-paper: #fffdf8;
}

.wr-hit-page {
    color: var(--wr-ink);
    background: linear-gradient(180deg, #f5f2e9 0%, #eef2f3 60%, #f8f5ed 100%);
}

.wr-hit-layout {
    padding-bottom: 4rem;
}

.wr-hit-panel {
    overflow: hidden;
    padding: 0;
}

.wr-hit-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.25rem;
    padding: clamp(1.1rem, 3vw, 2rem);
    border-bottom: 1px solid var(--wr-line);
}

.wr-hit-kicker,
.wr-hit-sort span,
.wr-hit-filter span {
    display: block;
    color: var(--wr-gold);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wr-hit-heading h1 {
    margin: 0.25rem 0 0;
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
}

.wr-hit-heading p,
.wr-hit-note {
    margin: 0.65rem 0 0;
    color: var(--wr-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.wr-hit-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(155px, 1fr));
    align-items: end;
    gap: 0.75rem;
}

.wr-hit-sort,
.wr-hit-filter {
    min-width: 170px;
}

.wr-hit-sort select,
.wr-hit-filter select {
    width: 100%;
    min-height: 42px;
    margin-top: 0.35rem;
    border: 1px solid var(--wr-line);
    border-radius: 9px;
    padding: 0.55rem 0.7rem;
    color: var(--wr-ink);
    background: #fff;
    font: inherit;
}

.wr-hit-status {
    margin: 0;
    padding: 1rem 1.25rem;
    color: var(--wr-muted);
    font-size: 0.78rem;
}

.wr-hit-status[hidden] {
    display: none;
}

.wr-hit-status.is-error {
    color: #8b3324;
    background: #fff2ee;
}

.wr-hit-table-wrap {
    overflow-x: auto;
}

.wr-hit-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.wr-hit-table th,
.wr-hit-table td {
    border-bottom: 1px solid var(--wr-line);
    padding: 0.8rem 0.9rem;
    text-align: right;
    white-space: nowrap;
}

.wr-hit-table th {
    color: var(--wr-muted);
    background: #f7f5ef;
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wr-hit-table th button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    width: 100%;
    border: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.wr-hit-table th:nth-child(2) button {
    justify-content: flex-start;
}

.wr-hit-table th[aria-sort] button {
    color: var(--wr-navy);
}

.wr-hit-table th button:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--wr-gold);
    outline-offset: 4px;
}

.wr-hit-table th:nth-child(2),
.wr-hit-table td:nth-child(2) {
    text-align: left;
}

.wr-hit-rank {
    color: var(--wr-muted);
    font-weight: 800;
}

.wr-hit-player strong,
.wr-hit-rate strong {
    display: block;
    color: var(--wr-ink);
}

.wr-hit-player small,
.wr-hit-rate small {
    color: var(--wr-muted);
    font-size: 0.68rem;
}

.wr-hit-player .wr-hit-draft-status {
    display: block;
    margin-top: 0.18rem;
    color: #347052;
    font-weight: 800;
}

.wr-hit-player .wr-hit-draft-status.is-drafted {
    color: #8b5b35;
}

.wr-hit-empty {
    height: 8rem;
    color: var(--wr-muted);
    text-align: center !important;
}

.wr-hit-rate.no-sample strong {
    color: var(--wr-muted);
}

.wr-hit-note {
    margin: 0;
    padding: 1rem 1.25rem 1.25rem;
}

@media (max-width: 720px) {
    .wr-hit-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .wr-hit-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wr-hit-sort,
    .wr-hit-filter {
        min-width: 0;
    }

    .wr-hit-table th,
    .wr-hit-table td {
        padding: 0.72rem 0.7rem;
    }
}

@media (max-width: 430px) {
    .wr-hit-controls {
        grid-template-columns: 1fr;
    }
}
