/* =========================================================
   Baseball Hot - Scout Report
========================================================= */

.scout-report-page-wrapper {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.scout-report-title-line {
    border: 0;
    height: 5px;
    background: rgb(5, 71, 0);
    margin: -10px 10px 14px 0;
    opacity: 1;
}

.scout-report-status {
    display: none;
    margin: 0 10px 14px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #dbe4db;
    color: #334155;
    font-weight: 800;
    line-height: 1.6;
}

.scout-report-status.active { display: block; }
.scout-report-status.error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}
.scout-report-status.success {
    background: #f0fff4;
    border-color: #bbf7d0;
    color: rgb(5, 71, 0);
}

.scout-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 10px 14px 0;
}

.scout-report-link-btn,
.scout-report-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: rgb(5, 71, 0);
    color: #fff !important;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none !important;
    cursor: pointer;
}

.scout-report-link-btn.secondary { background: #475569; }
.scout-report-main-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.scout-report-card {
    background: #ffffff;
    border: 1px solid #dbe4db;
    border-radius: 16px;
    padding: 18px;
    margin: 0 10px 16px 0;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.scout-report-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.scout-report-card-head h2 {
    margin: 0;
    color: rgb(5, 71, 0);
    font-size: 22px;
    font-weight: 900;
}

.scout-report-subtitle,
.scout-report-hint {
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.7;
}

.scout-report-player-summary {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 0 2px;
}

.scout-report-player-profile-centered {
    width: 100%;
    text-align: center;
    color: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scout-report-player-profile-name {
    color: #0f3d16;
    font-size: 48px;
    font-weight: 950;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

/* 球員基本資料：固定三欄，讓所有冒號落在同一條垂直線，也讓整組資料跟姓名置中 */
.scout-report-player-profile-row {
    display: grid;
    grid-template-columns: 92px 16px 92px;
    align-items: center;
    column-gap: 4px;
    width: 212px;
    margin: 0 auto 6px;
    font-size: 16px;
    line-height: 1.45;
}

.scout-report-player-profile-row .profile-label {
    text-align: right;
    color: #334155;
    font-weight: 900;
    white-space: nowrap;
}

.scout-report-player-profile-row .profile-colon {
    text-align: center;
    color: #334155;
    font-weight: 900;
}

.scout-report-player-profile-row .profile-value {
    text-align: left;
    color: #111827;
    font-weight: 950;
    min-width: 0;
    white-space: nowrap;
}

.scout-report-player-profile-row.team {
    margin-top: 8px;
}

.scout-report-control-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.scout-report-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 260px;
}

.scout-report-field span {
    color: #334155;
    font-size: 14px;
    font-weight: 900;
}

.scout-report-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfdccf;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.scout-report-hint { margin-top: 10px; }
.scout-report-count {
    color: #64748b;
    font-size: 14px;
    font-weight: 900;
}

.scout-report-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.scout-report-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 13px;
}

.scout-report-table th {
    background: rgb(5, 71, 0);
    color: #fff;
    padding: 9px 10px;
    border: 1px solid #d8ead8;
    text-align: center;
    white-space: nowrap;
}

.scout-report-table td {
    padding: 9px 10px;
    border: 1px solid #d8ead8;
    text-align: center;
    vertical-align: middle;
    color: #111827;
    font-weight: 800;
    white-space: nowrap;
}

.scout-report-table tbody tr:nth-child(even) td { background: #fbfefb; }
.scout-report-empty {
    color: #64748b !important;
    background: #f8fafc !important;
    padding: 16px !important;
}

.scout-report-inner-percent {
    color: #0f766e;
    font-size: 12px;
    font-weight: 950;
}

.scout-report-skill-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
    line-height: 1.2;
}

.scout-report-skill-main {
    color: #111827;
    font-size: 14px;
    font-weight: 950;
}

@media (max-width: 768px) {
    .scout-report-card { padding: 14px; }
    .scout-report-player-profile-name { font-size: 28px; }
    .scout-report-player-profile-row {
        grid-template-columns: 86px 16px 86px;
        width: 196px;
        font-size: 15px;
    }
    .scout-report-control-row { align-items: stretch; }
    .scout-report-field,
    .scout-report-main-btn { width: 100%; }
}
