* { box-sizing: border-box; }
:root {
  --bg: #0f1117;
  --panel: #161922;
  --panel-2: #1c2030;
  --border: #2a2f44;
  --text: #e7e9ee;
  --muted: #8a90a3;
  --accent: #7c5cff;
  --accent-2: #20c997;
  --warn: #ffb454;
  --danger: #ff6b6b;
}
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  height: 100vh;
}
body { display: flex; }

aside#sidebar {
  width: 320px; min-width: 320px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 16px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.brand {
  margin: 0 0 4px 0;
  font-size: 28px; font-weight: 700;
  background: linear-gradient(90deg, #7c5cff, #20c997);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.5px;
}
aside h2 {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--muted); margin: 12px 0 4px 0;
}
input#search {
  width: 100%; padding: 10px 12px;
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; font-size: 14px;
  outline: none;
}
input#search:focus { border-color: var(--accent); }

#search-results, .actor-list, #groups { list-style: none; padding: 0; margin: 0; }

.actor-row {
  display: flex; align-items: center; gap: 10px;
  padding: 6px; border-radius: 6px; cursor: pointer;
  transition: background .12s;
}
.actor-row:hover { background: var(--panel-2); }
.actor-row img {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  background: var(--panel-2);
}
.actor-row .name { font-weight: 500; }
.actor-row .meta { font-size: 11px; color: var(--muted); }

.group-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 8px; border-radius: 6px; cursor: pointer;
}
.group-row:hover { background: var(--panel-2); }
.group-row .count {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 1px 8px; font-size: 11px; color: var(--muted);
}

.btn-primary, .btn-secondary, .btn-danger {
  border: 0; padding: 8px 12px; border-radius: 6px;
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: filter .15s, transform .05s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-primary:hover, .btn-secondary:hover, .btn-danger:hover { filter: brightness(1.15); }
.btn-primary:active, .btn-secondary:active, .btn-danger:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.footer {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--muted);
  display: flex; flex-direction: column; gap: 6px;
}

main#content {
  flex: 1; overflow-y: auto; padding: 24px 32px;
}
#welcome h2 { font-size: 24px; }
#welcome p { color: var(--muted); max-width: 600px; line-height: 1.6; }

.actor-header {
  display: flex; gap: 24px; margin-bottom: 24px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.actor-header img {
  width: 180px; height: 270px; border-radius: 12px;
  object-fit: cover; background: var(--panel-2);
}
.actor-header h1 {
  margin: 0 0 8px 0; font-size: 32px; font-weight: 700;
}
.actor-header .info { color: var(--muted); margin: 4px 0; font-size: 13px; }
.actor-header .bio {
  margin-top: 12px; line-height: 1.6;
  max-height: 180px; overflow: hidden;
  position: relative; padding-right: 6px;
}
.actor-header .bio.expanded { max-height: none; }
.actor-header .actions {
  margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap;
}

.filter-bar {
  display: flex; gap: 8px; margin-bottom: 16px; align-items: center;
  font-size: 13px;
}
.filter-bar select {
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); padding: 6px 10px; border-radius: 6px;
  font-family: inherit;
}
.filter-bar .summary { color: var(--muted); margin-left: auto; }

.credit {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px; padding: 10px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel);
  margin-bottom: 8px; align-items: center;
}
.credit:hover { background: var(--panel-2); }
.credit img {
  width: 60px; height: 90px; border-radius: 4px;
  object-fit: cover; background: var(--panel-2);
}
.credit .title { font-weight: 600; font-size: 15px; }
.credit .role { color: var(--muted); font-size: 12px; margin-top: 2px; }
.credit .year { color: var(--muted); font-size: 12px; }

.badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600; margin-left: 6px;
  vertical-align: middle;
}
.badge.owned { background: var(--accent-2); color: #022; }
.badge.queued { background: var(--warn); color: #221; }
.badge.tv { background: var(--accent); color: #fff; }
.badge.movie { background: #4a8cff; color: #fff; }

.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; min-width: 360px;
  max-width: 600px; max-height: 80vh; overflow-y: auto;
}
.modal h3 { margin-top: 0; }
.modal input[type=text] {
  width: 100%; padding: 10px; background: var(--panel-2);
  border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; font-family: inherit; font-size: 14px;
  margin-bottom: 12px;
}
.modal .row { display: flex; gap: 8px; justify-content: flex-end; }

.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--panel); border: 1px solid var(--border);
  border-left: 4px solid var(--accent-2);
  padding: 12px 16px; border-radius: 8px;
  z-index: 200; max-width: 360px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: slidein .25s ease-out;
}
.toast.error { border-left-color: var(--danger); }
@keyframes slidein {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* family-v1.1 */

.section-h {
  font-size: 18px; font-weight: 600; margin: 16px 0 12px 0;
  display: flex; align-items: center; gap: 12px;
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.relative-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  transition: transform .15s, border-color .15s;
}
.relative-card.clickable { cursor: pointer; }
.relative-card.clickable:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.relative-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 50%; background: var(--panel);
  margin-bottom: 8px;
}
.relative-card .rel-name { font-weight: 600; font-size: 13px; }
.relative-card .rel-type {
  display: inline-block; font-size: 10px; text-transform: uppercase;
  letter-spacing: .8px; color: var(--accent); margin-top: 4px; font-weight: 600;
}
.relative-card .rel-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }


/* connect-v1.2 */
.connect-header {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; padding: 16px 0 24px 0;
  border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.connect-actor { text-align: center; }
.connect-actor img {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--border);
}
.connect-actor div { margin-top: 8px; font-weight: 600; }
.connect-arrow { font-size: 36px; color: var(--accent); }
#connect-status { font-size: 16px; color: var(--muted); text-align: center; padding: 32px; }

.chain {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 8px; margin-top: 12px;
}
.chain-actor {
  text-align: center; cursor: pointer; padding: 8px;
  border-radius: 8px; transition: background .12s;
}
.chain-actor:hover { background: var(--panel-2); }
.chain-actor img {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent);
}
.chain-name { font-size: 12px; font-weight: 600; margin-top: 4px; max-width: 100px; }
.chain-link { display: flex; flex-direction: column; align-items: center; }
.chain-arrow { color: var(--accent); font-size: 18px; line-height: 1; }
.chain-credit {
  text-align: center; padding: 4px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 6px; max-width: 90px;
}
.chain-credit img { width: 60px; height: 90px; border-radius: 4px; object-fit: cover; }
.chain-credit-title { font-size: 10px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.chain-credit-year { font-size: 10px; color: var(--muted); }

.shared-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.shared-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; text-align: center;
}
.shared-card img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover;
  border-radius: 4px; background: var(--panel-2);
}
.shared-card .title { font-weight: 600; margin-top: 6px; font-size: 13px; }
.shared-card .year { color: var(--muted); font-size: 11px; margin: 2px 0 6px 0; }
.shared-card .role { font-size: 11px; color: var(--text); margin-top: 2px; line-height: 1.3; }


/* v1.3 birthdays + collaborators */
.bday-grid, .collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.bday-card, .collab-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  transition: transform .15s, border-color .15s;
}
.bday-card.clickable, .collab-card { cursor: pointer; }
.bday-card.clickable:hover, .collab-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.bday-card img, .collab-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 50%; background: var(--panel);
  margin-bottom: 8px;
}
.bday-name, .collab-name {
  font-weight: 600; font-size: 13px;
}
.bday-sub {
  font-size: 11px; color: var(--muted); margin-top: 2px;
}
.collab-count {
  display: inline-block; padding: 2px 10px; border-radius: 10px;
  font-size: 11px; font-weight: 600; margin-top: 6px;
  background: var(--accent); color: #fff;
}
.muted { color: var(--muted); padding: 12px 0; font-size: 13px; }


/* known-for-v1.4 */
.known-for-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
}
.known-card {
  flex: 0 0 150px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.known-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.known-card.owned { border-color: var(--accent-2); }
.known-card img {
  width: 100%; aspect-ratio: 2/3; object-fit: cover;
  border-radius: 4px; background: var(--panel);
}
.known-title { font-weight: 600; font-size: 13px; margin-top: 6px; line-height: 1.2; }
.known-year { color: var(--muted); font-size: 11px; margin-top: 2px; }
.known-card.owned .known-year { color: var(--accent-2); font-weight: 600; }


/* stats-news-v1.4 */
.stats-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  font-weight: 600;
}
.stat-value {
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
}
.stats-genres {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.genre-pill {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 12px;
}
.genre-pill .genre-pct {
  color: var(--muted);
  margin-left: 4px;
  font-size: 11px;
}
.typecast-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 5px 12px;
  background: linear-gradient(90deg, #7c5cff22, #20c99722);
  border: 1px solid var(--accent);
  border-radius: 14px;
  font-size: 13px;
}
.tc-label {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
}
.tc-genre { font-weight: 600; }

.badge.rating {
  background: #fbbf24;
  color: #221c00;
}
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.news-list li:last-child { border-bottom: none; }
.news-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.news-list a:hover { color: var(--accent); }
.news-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}


/* v1.5 trophy/gems/bingo/decade/breakthrough */
.known-card.breakthrough { border: 2px solid #fbbf24; box-shadow: 0 0 12px #fbbf2440; }
.break-flag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: #fbbf24; color: #221c00; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 8px; white-space: nowrap;
}
.known-card { position: relative; }
.break-aside {
  margin-top: 8px; font-size: 13px; color: var(--muted);
}
.break-aside a { color: #fbbf24; }

.trophy-h { font-size: 14px; margin: 0 0 8px 0; }
.trophy-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.trophy-card {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px; text-align: center;
}
.trophy-card.win { border-color: #fbbf24; background: linear-gradient(180deg, #fbbf2412, var(--panel-2)); }
.trophy-card.nom { opacity: 0.85; }
.trophy-icon { font-size: 28px; line-height: 1; margin-bottom: 4px; }
.trophy-award { font-size: 12px; font-weight: 600; line-height: 1.2; }
.trophy-work { font-size: 11px; color: var(--muted); margin-top: 2px; }
.trophy-year { font-size: 11px; color: var(--accent); margin-top: 2px; font-weight: 600; }

.gem-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.gem-card {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; cursor: pointer; transition: all .15s;
  position: relative;
}
.gem-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.gem-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; }
.gem-rating {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.7); color: #fbbf24; font-size: 12px;
  padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.gem-rating .gem-votes { color: #888; font-weight: 400; font-size: 10px; }
.gem-title { font-weight: 600; font-size: 13px; margin-top: 6px; line-height: 1.2; }
.gem-year { color: var(--muted); font-size: 11px; }

.bingo-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 6px; margin-top: 12px;
}
.bingo-cell {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px; cursor: pointer; position: relative;
  transition: all .15s;
}
.bingo-cell.empty { cursor: default; opacity: 0.3; }
.bingo-cell:not(.empty):hover { border-color: var(--accent); }
.bingo-cell img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px; }
.bingo-title {
  font-size: 9px; line-height: 1.1; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bingo-check {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 48px; color: var(--accent-2);
  text-shadow: 0 0 12px rgba(0,0,0,.8);
  pointer-events: none;
}
.bingo-cell.watched { background: var(--accent-2)22; border-color: var(--accent-2); }
.bingo-cell.bingo-line { animation: pulse 1.5s ease-in-out infinite; border-color: #fbbf24; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 #fbbf24aa; }
  50% { box-shadow: 0 0 12px 3px #fbbf24aa; }
}

.decade-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.decade-card {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; cursor: pointer; transition: all .15s;
  position: relative;
}
.decade-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.decade-card.owned { border-color: var(--accent-2); }
.decade-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; }
.decade-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}
.decade-badge.owned { background: var(--accent-2); color: #022; }
.decade-badge.queued { background: var(--warn); color: #221; }
.decade-title { font-weight: 600; font-size: 13px; margin-top: 6px; line-height: 1.2; }
.decade-meta { color: var(--muted); font-size: 11px; }


.known-role {
  font-size: 11px;
  color: var(--accent);
  font-style: italic;
  margin-top: 2px;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}


/* cast-crawler */
.cast-hero {
  display: flex; gap: 16px; align-items: flex-start;
}
.cast-poster {
  width: 140px; flex-shrink: 0; border-radius: 8px;
}
.cast-meta { flex: 1; }
.cast-meta h3 { margin: 0 0 6px 0; font-size: 22px; }
.cast-meta-row { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.cast-overview {
  font-size: 13px; line-height: 1.5; color: var(--text);
  margin: 8px 0 12px 0;
}
.cast-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.cast-card {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px; text-align: center;
  cursor: pointer; transition: transform .12s, border-color .12s;
}
.cast-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.cast-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 50%; background: var(--panel);
}
.cm-name { font-weight: 600; font-size: 12px; margin-top: 6px; line-height: 1.2; }
.cm-role { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.credit.clickable { cursor: pointer; }
.credit.clickable:hover { border-color: var(--accent); }


.badge.genre {
  background: var(--panel-2);
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 500;
  margin-left: 4px;
}


.decade-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.decade-pick button { padding: 10px 8px; font-weight: 600; }


.decade-tabs {
  display: flex; gap: 6px; margin-bottom: 16px; align-items: center;
}
.tab-btn {
  background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted); padding: 6px 14px; border-radius: 6px;
  font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tab-btn:hover:not(.active) { color: var(--text); }


.about-list {
  list-style: none; padding: 0; margin: 8px 0 0 0;
}
.about-list li {
  padding: 6px 0; font-size: 13px; line-height: 1.5;
}
.about-list a { color: var(--accent); }


.search-mode {
  display: flex; gap: 4px; margin-bottom: 6px;
}
.mode-btn {
  flex: 1; background: var(--panel-2); border: 1px solid var(--border);
  color: var(--muted); padding: 4px 8px; border-radius: 5px;
  font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  text-transform: uppercase; letter-spacing: .5px;
}
.mode-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.mode-btn:hover:not(.active) { color: var(--text); }
.movie-row img { border-radius: 4px !important; }


/* mobile sidebar v1 */
#sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 110;
  width: 42px;
  height: 42px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
#sidebar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .2s, opacity .2s;
}
body.sidebar-open #sidebar-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.sidebar-open #sidebar-toggle span:nth-child(2) { opacity: 0; }
body.sidebar-open #sidebar-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

#sidebar-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 90;
  opacity: 0;
  transition: opacity .2s;
}
body.sidebar-open #sidebar-scrim {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  body { display: block; }
  #sidebar-toggle { display: flex; }
  aside#sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 86%;
    max-width: 340px;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .25s ease-out;
    box-shadow: 4px 0 24px rgba(0,0,0,.6);
    padding-top: 64px; /* room for hamburger */
  }
  body.sidebar-open aside#sidebar {
    transform: translateX(0);
  }
  main#content {
    padding: 60px 16px 24px 16px; /* top room for hamburger */
    width: 100%;
  }
  .actor-header {
    flex-direction: column;
  }
  .actor-header img {
    width: 140px; height: 210px;
  }
  .known-for-grid, .family-grid, .gem-grid, .collab-grid, .shared-grid, .decade-grid, .trophy-grid, .bday-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  .credit { grid-template-columns: 50px 1fr auto; gap: 8px; }
  .credit img { width: 50px; height: 75px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bingo-grid { gap: 4px; }
  .bingo-title { font-size: 8px; }
}
