.cc-panel {
  background: #0e201b;
  border: 1px solid #315146;
  border-radius: 18px;
  padding: clamp(16px, 3vw, 28px);
}
.cc-panel[hidden] { display: none; }
.cc-panel h2 { margin: 6px 0 10px; letter-spacing: -.02em; }
.cc-panel p { margin: 10px 0; }
.cc-note { color: #a3bdb1; font-size: 13px; line-height: 1.55; }
.cc-link, .cc-panel a, .cc-page a { color: #abf4c6; text-underline-offset: 3px; }
.cc-heading-row, .cc-film-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cc-heading-row { justify-content: space-between; }
.cc-film-actions { margin-top: 12px; }
.cc-action {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #57846b;
  border-radius: 9px;
  background: #16342a;
  color: #c4fbd5;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.cc-action:hover { background: #23513d; text-decoration: underline; }
.cc-featured { margin: 16px 0; }
.cc-featured h3, .cc-ranking-block h3 { margin: 0 0 8px; font-size: 16px; }
.cc-franchise-shelf { display: flex; gap: 14px; overflow-x: auto; padding: 4px 3px 10px; }
.cc-franchise-shelf a { flex: 0 0 163px; color: #ecf7ef; text-decoration: none; }
.cc-franchise-shelf .poster, .cc-series-poster {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid #355449;
  border-radius: 12px;
  box-sizing: border-box;
}
.cc-series-poster.cc-poster-wide { aspect-ratio: 4 / 3; object-fit: contain; }
.cc-franchise-shelf strong, .cc-franchise-shelf small { display: block; }
.cc-franchise-shelf strong { margin-top: 6px; }
.cc-franchise-shelf small { color: #a3bdb1; }
.cc-franchise-shelf a:hover strong { text-decoration: underline; }
.cc-ranking-block { margin: 20px 0 12px; }
.cc-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cc-table-wrap { width: 100%; overflow-x: auto; }
.cc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cc-table :is(th, td) {
  padding: 11px 9px;
  text-align: right;
  border-bottom: 1px solid #2b443a;
  font-variant-numeric: tabular-nums;
}
.cc-table thead { color: #a3bdb1; font-size: 12px; }
.cc-table th[scope="row"], .cc-table thead th:first-child, .cc-table:not(.cc-film-table) thead th:nth-child(2) { text-align: left; }
.cc-table th small { display: block; color: #a3bdb1; font-weight: 400; margin-top: 3px; }
.cc-table td { white-space: nowrap; }
.cc-rank { color: #a3bdb1; width: 32px; text-align: left !important; }
.cc-positive { color: #9af6ba; }
.cc-negative { color: #ffac9d; }
.cc-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
  margin: 14px 0;
}
.cc-related a {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid #35554a;
  border-radius: 12px;
  background: #122920;
  text-decoration: none;
}
.cc-related a:hover { border-color: #9af6ba; text-decoration: underline; }
.cc-related a span { color: #a3bdb1; font-size: 13px; }
.cc-page { margin: 0; background: #07100e; color: #ecf7ef; font: 16px/1.6 system-ui, sans-serif; }
.cc-shell { max-width: 1000px; padding: 0 clamp(16px, 4vw, 42px); margin: 0 auto; }
.cc-header, .cc-footer { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid #315146; }
.cc-header nav { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.cc-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; }
.cc-crumb { color: #a3bdb1; font-size: 13px; margin: 18px 0; }
.cc-intro { margin: 26px 0; }
.cc-series-intro:has(> .cc-series-poster) {
  display: grid;
  grid-template-columns: clamp(120px, 17vw, 190px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 3vw, 30px);
}
.cc-series-intro .cc-kicker { margin-top: 0; }
.cc-kicker { font-size: 12px; font-weight: 750; letter-spacing: .15em; color: #9af6ba; }
.cc-intro h1 { margin: 5px 0; font-size: clamp(30px, 5vw, 54px); line-height: 1.08; letter-spacing: -.035em; }
.cc-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 174px), 1fr)); gap: 10px; margin: 20px 0; }
.cc-stat-grid div { padding: 12px 16px; border: 1px solid #315146; border-radius: 12px; background: #10231d; }
.cc-stat-grid dt { font-size: 13px; color: #a3bdb1; }
.cc-stat-grid dd { font-weight: 750; font-size: 25px; margin: 0; }
.cc-franchise-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 138px), 1fr)); margin-top: 12px; }
.cc-inflation-controls:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cc-inflation-toggle {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #57846b;
  border-radius: 9px;
  background: #16342a;
  color: #c4fbd5;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cc-inflation-toggle:hover { background: #23513d; }
.cc-inflation-toggle[aria-pressed="true"] { background: #9af6ba; color: #10241b; }
.cc-inflation-toggle:focus-visible, .cc-spotlight:focus-visible { outline: 2px solid #9af6ba; outline-offset: 3px; }
.cc-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border: 1px solid #426c56;
  border-radius: 12px;
  background: #10231d;
  color: #ecf7ef;
  text-decoration: none;
}
.cc-spotlight:hover { background: #18382d; border-color: #72ba92; }
.cc-spotlight strong { display: block; color: #c4fbd5; font-size: clamp(16px, 2.5vw, 20px); line-height: 1.3; }
.cc-spotlight .cc-note { display: block; margin-top: 3px; }
.cc-spotlight-arrow { color: #9af6ba; font-size: 22px; }
.cc-universe-table { min-width: 540px; margin-top: 8px; }
.cc-table.cc-universe-table thead th:nth-child(2) { text-align: right; }
.cc-universe-table abbr { text-decoration: none; }
.cc-universe-table tbody tr:last-child { background: #16342a; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.cc-chips a, .cc-genre-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #426c56;
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
}
.cc-chips a:hover, .cc-genre-tag:hover { text-decoration: underline; }
.cc-chips a[aria-current="page"] { background: #9af6ba; color: #10241b; font-weight: 700; }
.cc-intro .cc-genre-tag { margin-top: 8px; }
.cc-page .cc-panel + .cc-panel, .cc-directory-genre { margin-top: 14px; }
.cc-archive-groups, .cc-archive-films {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 10px 20px;
  list-style: none;
  padding: 0;
}
.cc-archive-groups a { display: block; padding: 8px 0; }
.cc-archive-groups small { margin-left: 6px; color: #a3bdb1; }
.cc-archive-films a { overflow-wrap: anywhere; }
.budget-picker {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 6px 0 4px;
  padding: 6px;
  color: #ecf7ef;
  background: #0c1d17;
  border: 1px solid #57846b;
  border-radius: 7px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  text-overflow: ellipsis;
}
.budget-picker:focus-visible, .ranking-menu summary:focus-visible, .ranking-menu a:focus-visible {
  outline: 2px solid #9af6ba;
  outline-offset: 2px;
}
.budget-source-details summary { cursor: pointer; }
.budget-sources { color: #a3bdb1; font-size: 12px; }
.budget-sources ul { padding-left: 16px; }
.budget-sources li { margin: 4px 0; }
.ranking-menu { position: relative; }
.ranking-menu summary {
  list-style: none;
  padding: 7px 10px;
  border: 1px solid #426c56;
  border-radius: 9px;
  color: #c4fbd5;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.ranking-menu summary::-webkit-details-marker { display: none; }
.ranking-menu summary::after { content: " ▾"; }
.ranking-menu[open] summary { background: #16342a; }
.ranking-menu nav {
  position: absolute;
  z-index: 55;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 5px;
  border: 1px solid #426c56;
  border-radius: 10px;
  background: #0d1e1c;
  box-shadow: 0 12px 24px #0007;
}
.ranking-menu nav a {
  display: block;
  padding: 8px 11px;
  border-radius: 6px;
  color: #d7f8e1;
  font-size: 13px;
  text-decoration: none;
}
.ranking-menu nav a:hover { background: #18382d; text-decoration: underline; }
@media (max-width: 600px) {
  .top-right #mode-pill { display: none; }
  .budget-picker { font-size: 16px; }
}
.cc-budget-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}
.cc-budget-form label { display: grid; gap: 6px; align-content: end; font-size: 14px; }
.cc-budget-form input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px;
  background: #07100e;
  color: #ecf7ef;
  border: 1px solid #57846b;
  border-radius: 9px;
  font: inherit;
}
.cc-budget-form input:focus-visible { outline: 2px solid #9af6ba; outline-offset: 2px; }
.cc-genre-index { columns: 2; padding-left: 20px; }
.cc-genre-index li { break-inside: avoid; }
.cc-genre-details { border-top: 1px solid #315146; padding: 8px 0; scroll-margin-top: 14px; }
.cc-genre-details summary { cursor: pointer; font-weight: 700; padding: 5px 2px; }
.cc-method { margin: 16px 0; }
.cc-footer { border-bottom: 0; border-top: 1px solid #315146; margin-top: 24px; padding-bottom: 32px; }
@media (max-width: 540px) {
  .cc-series-intro:has(> .cc-series-poster) { grid-template-columns: 1fr; }
  .cc-series-poster { width: 126px; }
  .cc-genre-index { columns: 1; }
  .cc-franchise-shelf a { flex-basis: 134px; }
  .cc-table { font-size: 12px; }
  .cc-table :is(th, td) { padding: 8px 5px; }
  .cc-film-table { min-width: 470px; }
}

.cc-person-rank { display: inline-block; min-width: 1.6em; color: #a3bdb1; font-size: 12px; }
.cc-people-table th[scope="row"] small { padding-left: 1.6em; }
.cc-people-table abbr { text-decoration: none; font-weight: 750; }
@media (max-width: 420px) {
  .cc-people-table :is(th, td) { padding-inline: 5px; }
  .cc-people-table th[scope="col"]:last-child { max-width: 7ch; }
}

.marketing-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), max-content));
  gap: 5px 16px;
  align-items: end;
  margin-top: 12px;
}
.marketing-controls .small-line { margin: 0; }
.marketing-choice { color: #a3bdb1; font-size: 12px; }
.marketing-choice .budget-picker { margin: 4px 0 0; max-width: 300px; }
#reported-marketing-source { grid-row: 2; grid-column: 1 / -1; }
#reported-marketing-source:empty { display: none; }
@media (max-width: 600px) {
  .marketing-controls { grid-template-columns: minmax(0, 1fr); }
  #reported-marketing-source { grid-column: auto; }
}

.cc-person-link { font-size: 15px; }
.cc-person-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 3vw, 30px);
}
.cc-person-intro:has(.cc-person-portrait) { grid-template-columns: clamp(130px, 23vw, 220px) minmax(0, 1fr); }
.cc-person-intro .cc-kicker { margin: 0 0 8px; letter-spacing: .03em; }
.cc-person-portrait { margin: 0; }
.cc-person-portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 282px;
  object-fit: contain;
  background: #0e201b;
  border: 1px solid #315146;
  border-radius: 12px;
  box-sizing: border-box;
}
.cc-person-portrait figcaption { font-size: 10px; line-height: 1.4; color: #a3bdb1; margin-top: 4px; overflow-wrap: anywhere; }
.cc-person-stats { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 12px 0 0; }
.cc-person-stats div { padding: 8px 14px; background: #10231d; border: 1px solid #315146; border-radius: 9px; }
.cc-person-stats dt { color: #a3bdb1; font-size: 12px; }
.cc-person-stats dd { margin: 0; font-weight: 750; font-size: 21px; }
.cc-person-stats abbr, .cc-filmography abbr { text-decoration: none; }
.cc-filmography thead th { vertical-align: bottom; }
@media (max-width: 560px) {
  .cc-person-intro:has(.cc-person-portrait) { grid-template-columns: clamp(90px, 28vw, 130px) minmax(0, 1fr); }
  .cc-person-intro h1 { font-size: clamp(22px, 6vw, 34px); overflow-wrap: anywhere; }
  .cc-person-intro p { font-size: 13px; }
  .cc-person-stats { gap: 6px; }
  .cc-person-stats div { padding: 4px 7px; }
  .cc-person-stats dd { font-size: 16px; }
  .cc-filmography :is(th, td) { padding-inline: 4px; }
  .cc-filmography { font-size: 12px; }
  .cc-filmography th[scope="row"] { min-width: 8ch; }
}
