/* US-32 host profile (kindacritic/ui_host.py). Tokens only: colours and sizes come from
 * kindacritic/assets/tokens.css. The score numerals keep the accent through .score; charts
 * use the chart blue through the histogram's own classes in overview.css. */

/* Header: portrait and name on the left, achievements top right on desktop. */
.host-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px;
             align-items: center; margin: 30px 0 22px; min-width: 0; }
.host-id { display: flex; align-items: center; gap: 26px; min-width: 0; }
.host-id .art.face { width: 132px; flex: 0 0 132px; }
.host-name { min-width: 0; }
.host-name h1 { margin: 0; }
.host-counts { margin-top: 12px; }
.host-badges { min-width: 0; max-width: 100%; }

/* Overview and favourites share a row on desktop and stack on phones. */
.host-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px;
             align-items: stretch; min-width: 0; }
.host-grid > * { min-width: 0; }

.host-ov h2, .host-fav h2, .host-recent h2 { margin-top: 0; }
.host-ov-stats { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 28px;
                 padding-bottom: 16px; border-bottom: 1px solid var(--hairline); }
.host-eras { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.host-era { min-width: 0; }
.host-hist-h { margin: 18px 0 4px; font-size: 14px; font-weight: 700; }
.host-hist { min-width: 0; }
.host-hist .ov-chart { max-width: 440px; }
.host-era-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--hairline); }

/* Four favourites: a row of four covers on desktop, a 2 by 2 grid on phones. */
.fav-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fav { display: block; min-width: 0; color: var(--ink); text-decoration: none; }
.fav:hover { text-decoration: none; }
.fav:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-md); }
.fav .art.poster { width: 100%; }
.fav-title { display: block; margin-top: 8px; font-size: 14px; line-height: 1.3; font-weight: 600;
             overflow-wrap: anywhere; }
.fav .score { margin-top: 4px; }

/* Recent scores keeps the v1 tables, full width below the grid. */
.host-recent { margin-top: 20px; min-width: 0; }
.host-recent h2 { margin-bottom: 10px; }

@media (max-width: 900px) {
  .host-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .host-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 18px 0 16px; }
  .host-id { gap: 16px; }
  .host-id .art.face { width: 84px; flex: 0 0 84px; }
  .host-grid { gap: 14px; }
  .fav-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .host-ov-stats { gap: 14px 20px; }
}

/* A card that links to the host's personal Top 100: portrait, label, a spoiler-free line. */
.host-list { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px;
             align-items: center; margin: 0 0 14px; padding: 14px 16px; color: var(--ink); }
.host-list:hover { text-decoration: none; border-color: var(--ink-muted); }
.host-list-face .art { width: 52px; }
.host-list-title { display: block; font-size: 17px; }
.host-list-line { display: block; margin-top: 2px; }
.host-list-go { color: var(--accent); font-size: 20px; }
