/* ---------- page bits (kept lightweight) ---------- */
.narrow { max-width: 760px; margin: 2rem auto; }
.preview-container { max-width: 1100px; margin: 0 auto 2rem; }
.card { background: #121318; padding: 1rem; border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.label { display:block; margin-bottom:.5rem; color:#9aa4b2; }
.label.sm { font-size:.9rem; }
.input { width:100%; padding:.9rem 1rem; border:1px solid #262a33; border-radius:10px; background:#0c0d12; color:#e6edf3; }
.btn { display:inline-flex; align-items:center; gap:.5rem; padding:.7rem 1rem; border-radius:12px; text-decoration:none; }
.btn-primary { background: linear-gradient(90deg,#29d3a5,#88f0b6); color:#0b0c10; font-weight:700; border:0; }
.hidden { display:none; }

.below-cta { display:flex; justify-content:center; margin-top: 12px; }

.actions-center{ display:flex; justify-content:center; gap:.75rem; flex-wrap:wrap; margin-top:.75rem; }
.btn { margin-top: 0; }

/* ---------- small helper for avg-tier badge wrapper ---------- */
.tier-card { margin-top:12px; }

/* ---------- LH graph sizing ---------- */
.lh-card { overflow: hidden; }
#lh-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    border-radius: 10px;
}

@media (max-width: 680px){
    #lh-image { max-height: 420px; }
}

/* ---------- high-contrast match summary ---------- */
.preview-title { margin: 0 0 .5rem; }
.summary-bar{
    display:grid; grid-template-columns: 1fr 1fr 1fr; gap:.75rem;
    background:#0c0d12; border:1px solid #1b1f2a; border-radius:10px;
    padding:.6rem .8rem; margin-bottom:.75rem;
}
.summary-chip{ display:flex; flex-direction:column; gap:2px; align-items:center; }
.summary-chip .label{ color:#9aa4b2; margin:0; font-size:.85rem; }
.summary-chip .value{ font-weight:700; }
.summary-chip .radiant{ color:#7bf0b8; font-weight:800; }
.summary-chip .dire{ color:#ff6b6b; font-weight:800; }
.summary-chip .sep{ opacity:.7; padding:0 6px; }

@media (max-width: 900px){
    .summary-bar{ grid-template-columns: 1fr; text-align:center; }
}

/* ---------- OpenDota-like table ---------- */
.side-header { margin: .9rem 0 .4rem; font-weight: 700; }
.od-table {
    width: 100%;
    border-collapse: collapse;
    background: #0c0d12;
    border: 1px solid #1b1f2a;
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed;
    display: table !important;
}
.od-table thead { display: table-header-group !important; }
.od-table tbody { display: table-row-group !important; }
.od-table tr    { display: table-row !important; }
.od-table th,
.od-table td { display: table-cell !important; vertical-align: middle; }

.od-table thead th {
    font-size: .85rem;
    font-weight: 700;
    color: #9aa4b2;
    padding: .55rem .6rem;
    border-bottom: 1px solid #1b1f2a;
}
.od-table thead th.num { text-align: right; }
.od-table tbody td {
    padding: .48rem .6rem;
    border-bottom: 1px solid #161b24;
    color: #e6edf3;
    vertical-align: middle;
}
.od-table tbody tr:last-child td { border-bottom: none; }

.od-table col.col-hero { width: auto; }
.od-table col.col-lvl  { width: 52px; }
.od-table col.col-k    { width: 46px; }
.od-table col.col-d    { width: 46px; }
.od-table col.col-a    { width: 46px; }
.od-table col.col-lh   { width: 64px; }
.od-table col.col-dn   { width: 64px; }
.od-table col.col-net  { width: 96px; }

/* NEW: action column for per-hero AI review */
.od-table col.col-action { width: 170px; }

/* Center the ACTION column header */
.od-table thead th.th-action {
    text-align: center !important;
}

/* And center the cells too (optional, looks cleaner) */
.od-table td.cell-action {
    text-align: center !important;
}

.cell-hero {
    display: flex;
    align-items: center;
    gap: .55rem;
}
.hero-icon.sm {
    width: 56px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
}
.hero-inline {
    display:flex;
    gap:6px;
    align-items:baseline;
    flex-wrap:wrap;
}
.hero-name { font-weight: 700; line-height: 1.1; }
.player-name { color: #9aa4b2; font-size: .9rem; line-height: 1.1; }

.cell-num { text-align: right; font-variant-numeric: tabular-nums; }
.th-k, .k { color: #66e6b0; }
.th-d, .d { color: #ff6b6b; }
.th-a, .a { color: #b7c0cf; }
.th-net, .net { color: #f2d36b; }

/* NEW: cell + button styling for "Request AI review" */
.cell-action {
    text-align: right;
}

.hero-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    border: 1px solid #2d3340;
    background: #141822;
    color: #e6edf3;
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.hero-action-btn:hover {
    background: #1a2130;
}
.hero-action-btn:disabled {
    opacity: .6;
    cursor: default;
}

@media (max-width: 1100px){
    .preview-container{ padding: 0 10px; }
}
