/* =========================================================
   jockey.css
   騎手個別ページ
   ========================================================= */

.jockey-content {
    display: grid;
    gap: 20px;
    max-width: 780px;
    margin: 0 auto;
}

.jockey-content > .ad-inline {
    margin: 10px 0;
}

.jockey-season-section .section-body {
    margin-bottom: 0;
}

.jockey-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.jockey-title-line {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    white-space: nowrap;
}

.jockey-title-line .section-title {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.jockey-season-control {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.jockey-season-select {
    min-width: 132px;
    min-height: 38px;
    padding: 5px 34px 5px 12px;
    background-color: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.jockey-season-select:focus {
    border-color: var(--color-main);
    box-shadow: 0 0 0 3px rgba(12, 96, 64, .12);
    outline: 0;
}

.jockey-season-table-card,
.jockey-detail-table-card {
    padding: 0;
    overflow: hidden;
}

.jockey-season-table,
.jockey-detail-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .85rem;
}

.jockey-season-finish-column {
    width: 31%;
}

.jockey-season-start-column {
    width: 13%;
}

.jockey-season-rate-column {
    width: 15%;
}

.jockey-season-point-column {
    width: 26%;
}

.jockey-season-table th,
.jockey-season-table td,
.jockey-detail-table th,
.jockey-detail-table td {
    padding: 9px 8px;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
    vertical-align: middle;
}

.jockey-season-table th:last-child,
.jockey-season-table td:last-child,
.jockey-detail-table th:last-child,
.jockey-detail-table td:last-child {
    border-right: 0;
}

.jockey-season-table tbody tr:last-child td,
.jockey-detail-table tfoot tr:last-child th,
.jockey-detail-table tfoot tr:last-child td {
    border-bottom: 0;
}

.jockey-season-table thead th,
.jockey-detail-table thead th {
    background: var(--color-section);
    color: var(--color-text);
    font-weight: 700;
    white-space: nowrap;
}

.jockey-finish-counts,
.jockey-number,
.jockey-rate,
.jockey-detail-table td {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.jockey-finish-counts,
.jockey-rate {
    font-weight: 700;
}

.jockey-number:last-child {
    text-align: right;
}

.jockey-detail-tables {
    display: grid;
    gap: 12px;
}

.jockey-detail-table th:first-child {
    width: 26%;
    text-align: left;
    white-space: nowrap;
}

.jockey-detail-table thead th:first-child {
    text-align: center;
}

.jockey-detail-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.jockey-detail-table tfoot {
    background: #f2f8f5;
    font-weight: 700;
}

.jockey-detail-table tbody tr:hover {
    background: #f2f8f5;
}

@media (max-width: 767.98px) {
    .jockey-content {
        gap: 18px;
    }

    .jockey-header {
        gap: 8px;
    }

    .jockey-title-line {
        gap: 5px;
    }

    .jockey-title-line .section-title {
        font-size: 1.1rem;
    }

    .jockey-season-select {
        min-width: 116px;
        min-height: 36px;
        padding: 5px 28px 5px 9px;
        font-size: .82rem;
    }

    .jockey-season-table,
    .jockey-detail-table {
        font-size: .7rem;
    }

    .jockey-season-table th,
    .jockey-season-table td,
    .jockey-detail-table th,
    .jockey-detail-table td {
        padding: 7px 3px;
    }

    .jockey-season-table thead th:first-child {
        font-size: .62rem;
    }

    .jockey-season-finish-column {
        width: 32%;
    }

    .jockey-season-start-column {
        width: 13%;
    }

    .jockey-season-rate-column {
        width: 14%;
    }

    .jockey-season-point-column {
        width: 27%;
    }

    .jockey-detail-tables {
        gap: 10px;
    }
}
