/* =========================================================
   recordTime.css
   レコードタイム
   ========================================================= */

.record-time-content {
    max-width: 780px;
    margin: 0 auto;
}

.record-time-racetrack-tabs {
    margin: 14px 0 18px;
}

.record-time-racetrack-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
}

.record-time-racetrack-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 6px 8px;
    background: #ffffff;
    color: var(--color-main-dark);
    border: 1px solid var(--color-main);
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.record-time-racetrack-overall {
    width: 100%;
}

.record-time-racetrack-tab:hover {
    background: rgba(12, 96, 64, .06);
    color: var(--color-main-dark);
}

.record-time-racetrack-tab.is-active {
    background: var(--color-main);
    color: #ffffff;
}

.record-time-sections {
    display: grid;
    gap: 20px;
}

.record-time-course-title {
    margin: 0 0 8px;
    padding-left: 9px;
    border-left: 4px solid var(--color-main);
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.4;
}

.record-time-table-card {
    padding: 0;
    overflow: hidden;
}

.record-time-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .76rem;
}

.record-time-distance-column {
    width: 9%;
}

.record-time-time-column {
    width: 10%;
}

.record-time-horse-column {
    width: 18%;
}

.record-time-sex-age-column {
    width: 7%;
}

.record-time-weight-column {
    width: 7%;
}

.record-time-jockey-column {
    width: 12%;
}

.record-time-owner-column {
    width: 15%;
}

.record-time-date-column {
    width: 22%;
}

.record-time-table th,
.record-time-table td {
    padding: 8px 5px;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
}

.record-time-table th:last-child,
.record-time-table td:last-child {
    border-right: 0;
}

.record-time-table tbody tr:last-child td {
    border-bottom: 0;
}

.record-time-table thead th {
    background: var(--color-section);
    color: var(--color-text);
    text-align: center;
    font-weight: 700;
    white-space: nowrap;
}

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

.record-time-table tbody tr:hover {
    background: #f2f8f5;
}

.record-time-distance,
.record-time-value,
.record-time-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.record-time-value {
    font-weight: 700;
}

.record-time-horse-information,
.record-time-wrap {
    min-width: 0;
    overflow-wrap: anywhere;
}

.record-time-horse-name {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}

.record-time-race-information a,
.record-time-race-information span {
    display: block;
    line-height: 1.35;
}

.record-time-race-information a {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.record-time-race-information span {
    margin-top: 2px;
    color: var(--color-text-light);
    font-size: .7rem;
    white-space: nowrap;
}

.record-time-table a:hover {
    text-decoration: underline;
}

.record-time-mobile-only,
.record-time-mobile-details {
    display: none;
}

.record-time-empty {
    margin: 0;
    padding: 24px 16px;
    background: var(--color-section);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    color: var(--color-text-light);
    text-align: center;
}

@media (max-width: 767.98px) {
    .record-time-header .section-title {
        font-size: 1.1rem;
    }

    .record-time-racetrack-tabs {
        margin: 12px 0 16px;
    }

    .record-time-racetrack-grid {
        gap: 5px;
        margin-top: 5px;
    }

    .record-time-racetrack-tab {
        min-height: 36px;
        padding: 5px 3px;
        font-size: .75rem;
    }

    .record-time-sections {
        gap: 18px;
    }

    .record-time-course-title {
        font-size: .95rem;
    }

    .record-time-table {
        font-size: .68rem;
    }

    .record-time-table th,
    .record-time-table td {
        padding: 7px 3px;
    }

    .record-time-pc-detail-column,
    .record-time-pc-detail-cell {
        display: none;
    }

    .record-time-distance-column {
        width: 16%;
    }

    .record-time-time-column {
        width: 17%;
    }

    .record-time-horse-column {
        width: 43%;
    }

    .record-time-date-column {
        width: 24%;
    }

    .record-time-mobile-only {
        display: inline;
    }

    .record-time-mobile-details {
        display: grid;
        gap: 1px;
        margin-top: 2px;
        color: var(--color-text-light);
        font-size: .62rem;
        line-height: 1.3;
    }

    .record-time-mobile-details span,
    .record-time-mobile-details a {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .record-time-race-information a {
        font-size: .62rem;
    }

    .record-time-race-information span {
        font-size: .6rem;
    }
}
