:root {
  --ci-blue: #2b2d86;
  --ci-cyan: #08aeea;
  --ci-ink: #08090f;
  --ci-muted: #757782;
  --ci-line: #d9dbe5;
  --ci-paper: #f1f1f4;
  --ci-card: #ffffff;
  --ci-green: #00e89d;
  --ci-red: #eb4f6b;
  --ci-radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ci-paper);
  color: var(--ci-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ci-paper);
}

a {
  color: inherit;
  text-decoration: none;
}

.ci-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 72px);
  background: rgba(241, 241, 244, 0.92);
  border-bottom: 1px solid rgba(43, 45, 134, 0.12);
  backdrop-filter: blur(16px);
}

.ci-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.ci-logo img {
  display: block;
  width: min(320px, 58vw);
  height: auto;
}

.ci-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ci-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 2px solid var(--ci-ink);
  background: #fff;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
}

main {
  width: min(1720px, calc(100% - 44px));
  margin: 0 auto;
}

.ci-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: clamp(34px, 5vw, 82px) 0 28px;
}

.ci-hero p {
  margin: 0 0 10px;
  color: var(--ci-blue);
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 1000;
  text-transform: uppercase;
}

.ci-hero h1 {
  margin: 0;
  color: var(--ci-ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(76px, 13vw, 190px);
  font-weight: 900;
  line-height: 0.82;
  text-transform: uppercase;
}

.ci-hero span {
  display: inline-flex;
  width: fit-content;
  margin-top: 28px;
  padding: 14px 20px;
  border: 2px solid var(--ci-ink);
  background: #fff;
  color: var(--ci-ink);
  font-size: clamp(13px, 1.2vw, 18px);
  font-weight: 950;
  text-transform: uppercase;
}

.ci-hero aside {
  min-width: 220px;
  padding: 20px 22px;
  background: var(--ci-ink);
  color: #fff;
  text-align: right;
}

.ci-hero aside strong,
.ci-hero aside em {
  display: block;
  font-style: normal;
}

.ci-hero aside strong {
  color: var(--ci-green);
  font-size: 13px;
  font-weight: 1000;
  text-transform: uppercase;
}

.ci-hero aside em {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
}

.ci-chart-list,
.ci-archive-list {
  display: grid;
  gap: 22px;
  padding: 24px 0 70px;
}

.ci-chart-row {
  display: grid;
  grid-template-columns: 92px 168px minmax(0, 1fr) 154px 176px;
  align-items: center;
  gap: 28px;
  min-height: 188px;
  padding: 18px 30px 18px 0;
  background: var(--ci-card);
  border-radius: var(--ci-radius);
  box-shadow: 0 1px 0 rgba(8, 9, 15, 0.05);
}

.ci-chart-row.is-top {
  grid-template-columns: 120px 390px minmax(0, 1fr) 190px 200px;
  min-height: 408px;
  padding-right: 42px;
}

.ci-rank {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ci-ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 58px;
  font-weight: 900;
}

.ci-chart-row.is-top .ci-rank {
  background: var(--ci-green);
  font-size: 78px;
}

.ci-cover {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: #e4e7ef;
}

.ci-cover img,
.ci-cover-placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.ci-cover img {
  object-fit: cover;
}

.ci-cover-placeholder {
  background:
    linear-gradient(135deg, rgba(43, 45, 134, 0.12), rgba(8, 174, 234, 0.18)),
    url("/assets/classifica-indie/logo-grande.png") center / 82% auto no-repeat;
}

.ci-copy {
  min-width: 0;
}

.ci-copy h2 {
  margin: 0;
  color: var(--ci-ink);
  font-size: clamp(24px, 2vw, 38px);
  line-height: 1.02;
  font-weight: 1000;
}

.ci-chart-row.is-top .ci-copy h2 {
  font-size: clamp(34px, 3.1vw, 58px);
}

.ci-copy p {
  margin: 10px 0 0;
  color: var(--ci-ink);
  font-size: clamp(18px, 1.35vw, 27px);
  line-height: 1.15;
}

.ci-copy small {
  display: block;
  margin-top: 8px;
  color: var(--ci-muted);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 750;
}

.ci-trend {
  display: flex;
  justify-content: center;
}

.ci-movement {
  display: inline-grid;
  justify-items: center;
  gap: 6px;
  min-width: 82px;
  color: var(--ci-muted);
  text-transform: uppercase;
}

.ci-movement b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  color: var(--ci-ink);
  font-size: 30px;
  font-weight: 1000;
  font-style: normal;
}

.ci-movement em {
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.ci-movement.is-up b,
.ci-movement.is-new b {
  color: var(--ci-green);
}

.ci-movement.is-down b {
  color: var(--ci-red);
}

.ci-movement.is-reentry b {
  color: var(--ci-cyan);
}

.ci-stats {
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--ci-ink);
}

.ci-stats div {
  display: grid;
  grid-template-columns: 1fr 58px;
  align-items: baseline;
  gap: 12px;
}

.ci-stats dt {
  color: var(--ci-muted);
  font-size: 17px;
  font-weight: 850;
  text-align: right;
  text-transform: uppercase;
}

.ci-stats dd {
  margin: 0;
  font-size: 22px;
  font-weight: 1000;
}

.ci-empty,
.ci-archive-row {
  display: grid;
  gap: 8px;
  padding: 28px 30px;
  background: #fff;
  border-radius: var(--ci-radius);
}

.ci-empty strong,
.ci-archive-row strong {
  font-size: 24px;
  font-weight: 1000;
}

.ci-empty span,
.ci-archive-row span,
.ci-archive-row em {
  color: var(--ci-muted);
  font-style: normal;
  font-weight: 750;
}

.ci-archive-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  align-items: center;
}

.ci-archive-row:hover {
  outline: 3px solid var(--ci-cyan);
}

.ci-footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 34px clamp(18px, 4vw, 72px);
  border-top: 1px solid var(--ci-line);
  color: var(--ci-muted);
  font-weight: 750;
}

.ci-footer small {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .ci-chart-row,
  .ci-chart-row.is-top {
    grid-template-columns: 76px 132px minmax(0, 1fr) 110px 132px;
    min-height: 156px;
    gap: 18px;
    padding-right: 20px;
  }

  .ci-chart-row.is-top {
    min-height: 240px;
  }

  .ci-rank,
  .ci-chart-row.is-top .ci-rank {
    font-size: 48px;
  }

  .ci-stats div {
    grid-template-columns: 1fr 42px;
  }
}

@media (max-width: 820px) {
  .ci-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .ci-header nav {
    width: 100%;
  }

  .ci-header nav a {
    flex: 1;
    justify-content: center;
  }

  main {
    width: min(100% - 24px, 720px);
  }

  .ci-hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .ci-hero aside {
    width: 100%;
    text-align: left;
  }

  .ci-hero span {
    width: 100%;
  }

  .ci-chart-row,
  .ci-chart-row.is-top {
    grid-template-columns: 62px 92px minmax(0, 1fr);
    grid-template-areas:
      "rank cover copy"
      "trend trend stats";
    min-height: 0;
    gap: 14px;
    padding: 14px;
  }

  .ci-rank {
    grid-area: rank;
    align-self: stretch;
    min-height: 92px;
    font-size: 40px;
    background: transparent;
  }

  .ci-chart-row.is-top .ci-rank {
    min-height: 92px;
    font-size: 44px;
  }

  .ci-cover {
    grid-area: cover;
  }

  .ci-copy {
    grid-area: copy;
  }

  .ci-copy h2,
  .ci-chart-row.is-top .ci-copy h2 {
    font-size: 22px;
  }

  .ci-copy p {
    font-size: 17px;
  }

  .ci-copy small {
    font-size: 13px;
  }

  .ci-trend {
    grid-area: trend;
    justify-content: flex-start;
    padding-left: 4px;
  }

  .ci-movement {
    grid-auto-flow: column;
    align-items: center;
    justify-items: start;
    gap: 10px;
  }

  .ci-movement b {
    min-width: 34px;
    height: 34px;
    font-size: 24px;
  }

  .ci-stats {
    grid-area: stats;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .ci-stats div {
    display: block;
    padding: 8px;
    background: #f5f6fa;
    border-radius: 8px;
  }

  .ci-stats dt,
  .ci-stats dd {
    text-align: left;
  }

  .ci-stats dt {
    font-size: 11px;
  }

  .ci-stats dd {
    font-size: 18px;
  }

  .ci-archive-row {
    grid-template-columns: 1fr;
  }

  .ci-footer {
    display: grid;
    padding: 28px 18px;
  }

  .ci-footer small {
    white-space: normal;
  }
}
