/* ==========================================================
   VOTING INSIGHTS (/voting.html)
   Built on the site's tokens in style.css (--pink, --purple,
   --cyan, --yellow, --green, --text, --muted, --border).
   Logical properties (inline-start/end) keep it right in RTL.
   ========================================================== */

.vi-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.vi-muted {
  color: var(--muted);
}

.vi-link {
  color: #6453e8;
  font-weight: 750;
}

.vi-link:hover {
  color: var(--pink);
}

.vi-link:focus-visible,
.vi-tab:focus-visible,
.vi-sort:focus-visible,
.vi-button:focus-visible,
.vi-jump a:focus-visible,
.vi-matrix-scroll:focus-visible,
.vi-field select:focus-visible,
.vi-search input:focus-visible {
  outline: 3px solid rgba(120,87,255,.45);
  outline-offset: 2px;
}


/* HERO */

.vi-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 36px;
  margin: 10px 0 22px;
  border-radius: 30px;
  border: 1px solid #e6e5f2;
  background:
    radial-gradient(circle at 100% 0%, rgba(0,205,232,.18), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(255,61,164,.16), transparent 36%),
    linear-gradient(135deg, #ffffff, #faf8ff);
  box-shadow: 0 15px 40px rgba(60,70,110,.08);
}

.vi-hero::after {
  content: "12";
  position: absolute;
  inset-inline-end: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 130px;
  font-weight: 1000;
  letter-spacing: -6px;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple), var(--pink), #ff7849);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .14;
  pointer-events: none;
}

.vi-eyebrow {
  display: inline-flex;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f2efff;
  color: var(--purple);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .02em;
}

.vi-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(36px, 5.5vw, 60px);
  letter-spacing: -1.5px;
  color: #17213b;
}

.vi-hero p {
  margin: 0;
  max-width: 600px;
  color: #4d5872;
  font-size: 17px;
  line-height: 1.55;
}

.vi-hero .vi-official-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}


/* TABS */

.vi-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #f3f3f8;
}

.vi-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 11px 22px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  color: #686e7c;
  white-space: nowrap;
}

.vi-tab:hover {
  background: rgba(255,255,255,.75);
}

.vi-tab.is-active {
  background: #ffffff;
  color: #212331;
  box-shadow: 0 3px 12px rgba(37,41,60,.09);
}


/* FILTERS */

.vi-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(45,60,100,.06);
  position: sticky;
  top: 8px;
  z-index: 20;
}

.vi-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
}

.vi-field-label {
  font-size: 12px;
  font-weight: 850;
  color: #4d5872;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.vi-field select {
  appearance: none;
  min-height: 42px;
  padding-block: 8px;
  padding-inline: 12px 34px;
  border-radius: 12px;
  border: 1px solid #dfe5ef;
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237857ff' stroke-width='2'/%3E%3C/svg%3E")
    no-repeat;
  background-position: right 12px center;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

html[dir="rtl"] .vi-field select {
  background-position: left 12px center;
}

.vi-field select:disabled {
  cursor: default;
  color: #8b93a7;
  background-color: #f7f8fb;
}

.vi-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  font-weight: 700;
  color: #4d5872;
  cursor: pointer;
}

.vi-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

.vi-inline-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}


/* STATES */

.vi-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 44px 20px;
  border-radius: 20px;
  border: 1px dashed #dcd8ee;
  background: #fbfaff;
  color: #5c6780;
  font-weight: 700;
  text-align: center;
}

.vi-state-error {
  border-color: #ffc2dd;
  background: #fff6fa;
  color: #a3245f;
}

.vi-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #e8e3ff;
  border-top-color: var(--purple);
  animation: vi-spin .8s linear infinite;
}

@keyframes vi-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .vi-spinner { animation-duration: 2.4s; }
}

.vi-progress {
  display: block;
  width: min(420px, 100%);
  margin: 12px auto 0;
  accent-color: var(--pink);
}

.vi-button {
  appearance: none;
  border: 0;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.vi-button-ghost {
  min-height: 42px;
  color: var(--purple);
  background: #f2efff;
}


/* NOTES */

.vi-notes {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #f5fcff;
  border: 1px solid #ccf3fa;
  color: #33415e;
  font-size: 14px;
  line-height: 1.5;
}

.vi-notes ul {
  margin: 6px 0 0;
  padding-inline-start: 20px;
}

.vi-notes li + li {
  margin-top: 4px;
}

.vi-footnote {
  margin: 10px 2px 0;
  font-size: 13px;
  color: var(--muted);
}

.vi-alltime-intro {
  margin: 0 0 12px;
  font-weight: 750;
  color: #33415e;
}


/* EDITION HEADER + JUMP LINKS */

.vi-edition {
  margin: 4px 0 14px;
}

.vi-edition h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -.5px;
}

.vi-edition-stage {
  color: #4d5872;
  font-weight: 800;
}

.vi-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vi-chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: #f2efff;
  color: #5b3fe0;
}

.vi-chip-jury { background: #f2efff; color: #5b3fe0; }
.vi-chip-televote { background: #ffeef7; color: #c41f78; }
.vi-chip-online { background: #e8fbff; color: #00839a; }
.vi-chip-kidsJury { background: #fff6d6; color: #8a6400; }
.vi-chip-combined { background: #eef3ff; color: #2f5fd0; }

.vi-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.vi-jump a {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  color: #4d5872;
}

.vi-jump a:hover {
  color: var(--pink);
  border-color: #ffc2dd;
}


/* SECTIONS + CARDS */

.vi-section {
  margin-top: 38px;
  scroll-margin-top: 110px;
}

.vi-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.vi-section-head p {
  margin: 4px 0 0;
}

.vi-section-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  color: #1b2540;
  letter-spacing: -.3px;
}

.vi-section > .vi-section-title {
  margin-bottom: 8px;
}

.vi-section > .vi-muted {
  margin: 0 0 14px;
}

.vi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 35px rgba(45,60,100,.07);
  min-width: 0;
}

.vi-card + .vi-card,
.vi-split + .vi-card,
.vi-stats + .vi-split,
.vi-split + .vi-split,
.vi-card + .vi-table-scroll {
  margin-top: 16px;
}

/* Grid children line up on their own - no stacking margin */
.vi-split > .vi-card,
.vi-split > .vi-table-scroll {
  margin-top: 0;
}

.vi-card-head {
  margin-bottom: 12px;
}

.vi-card-head h3 {
  margin: 8px 0 2px;
  font-size: 18px;
  color: #1d2741;
}

.vi-card-head p {
  margin: 0;
  font-size: 13px;
}

.vi-card-received { border-top: 5px solid var(--cyan); }
.vi-card-awarded { border-top: 5px solid var(--pink); }

.vi-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Side by side only when each table really fits */
.vi-split-tables {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr));
}

.vi-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.vi-badge-received { background: #e8fbff; color: #00788d; }
.vi-badge-awarded { background: #ffeef7; color: #c41f78; }
.vi-badge-douze {
  background: linear-gradient(135deg, #fff2a8, #ffd75b);
  color: #6e5000;
}
.vi-badge-warn {
  background: #fff3d6;
  color: #8a5a00;
  text-transform: none;
  letter-spacing: 0;
}

.vi-details > summary {
  cursor: pointer;
  list-style-position: inside;
}

.vi-details[open] > summary {
  margin-bottom: 10px;
}


/* STAT CARDS */

.vi-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.vi-stats-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}

.vi-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 28px rgba(45,60,100,.06);
}

.vi-stat:nth-child(4n+1) { border-bottom: 4px solid var(--pink); }
.vi-stat:nth-child(4n+2) { border-bottom: 4px solid var(--cyan); }
.vi-stat:nth-child(4n+3) { border-bottom: 4px solid var(--purple); }
.vi-stat:nth-child(4n+4) { border-bottom: 4px solid var(--yellow); }

.vi-stat-winner {
  background: linear-gradient(145deg, #fff 40%, #fff9df);
}

.vi-stat-label {
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #65708a;
}

.vi-stat-value {
  font-size: 32px;
  font-weight: 950;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vi-stat-value small {
  font-size: 15px;
  font-weight: 800;
}

.vi-stat-value .vi-na {
  -webkit-text-fill-color: initial;
}

.vi-stat-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px;
  color: var(--muted);
}

.vi-stat-winners {
  display: grid;
  gap: 4px;
  font-size: 17px;
}

.vi-profile-head {
  margin-bottom: 14px;
  font-size: 22px;
}


/* COUNTRY + FLAGS */

.vi-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 750;
  color: #1d2741;
}

a.vi-country:hover .vi-name {
  color: var(--pink);
}

.vi-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.vi-flag {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.vi-flag-small {
  width: 22px;
  height: 22px;
}

.vi-flag-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}

.vi-flag-empty {
  display: inline-block;
  border-radius: 50%;
  background: #eef0f6;
}


/* TABLES */

.vi-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #e5e9f1;
  border-radius: 16px;
  background: #fff;
}

.vi-table-scroll-tall {
  max-height: 460px;
  overflow-y: auto;
}

.vi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vi-table th,
.vi-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf0f5;
  text-align: start;
  vertical-align: middle;
}

.vi-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  color: #4d5872;
  background: linear-gradient(90deg, #faf7ff, #fff7fb, #f5fcff);
  white-space: nowrap;
}

.vi-table tbody th,
.vi-table tfoot th,
.vi-matrix tbody th,
.vi-matrix tfoot th {
  /* style.css styles every th as an uppercase header cell */
  font-size: inherit;
  font-weight: 700;
  text-transform: none;
  color: inherit;
  background: none;
}

.vi-table tbody tr:hover {
  background: #fafbff;
}

.vi-table tfoot th,
.vi-table tfoot td {
  background: #faf9fe;
  border-bottom: 0;
}

.vi-table-compact th,
.vi-table-compact td {
  padding: 8px 10px;
}

.vi-num {
  text-align: end !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vi-num.is-focus {
  background: rgba(120,87,255,.06);
}

.vi-place {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vi-place strong {
  font-size: 17px;
}

.vi-results-table .vi-podium-1 > td:first-child { box-shadow: inset 4px 0 0 #d8a800; }
.vi-results-table .vi-podium-2 > td:first-child { box-shadow: inset 4px 0 0 #9aa6b5; }
.vi-results-table .vi-podium-3 > td:first-child { box-shadow: inset 4px 0 0 #b46b30; }

html[dir="rtl"] .vi-results-table .vi-podium-1 > td:first-child { box-shadow: inset -4px 0 0 #d8a800; }
html[dir="rtl"] .vi-results-table .vi-podium-2 > td:first-child { box-shadow: inset -4px 0 0 #9aa6b5; }
html[dir="rtl"] .vi-results-table .vi-podium-3 > td:first-child { box-shadow: inset -4px 0 0 #b46b30; }

.vi-tie {
  margin-inline-start: 3px;
  color: var(--purple);
  font-weight: 900;
}

.vi-q {
  display: inline-flex;
  margin-inline-start: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #e6fbf3;
  color: #0f8a5f;
  font-size: 11px;
  font-weight: 900;
}

.vi-artist,
.vi-song {
  min-width: 120px;
  line-height: 1.3;
}

.vi-na {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: #f1f2f6;
  color: #6b7389;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.vi-flag-note {
  margin-inline-start: 2px;
  color: var(--pink);
  font-weight: 900;
  cursor: help;
}

.vi-ineligible {
  color: #9aa1b2;
}

.vi-row-dim th,
.vi-row-dim td {
  color: #8790a5;
}

.vi-empty-cell {
  padding: 30px !important;
  text-align: center !important;
  color: var(--muted);
}

.vi-sort {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.vi-sort.is-active {
  color: var(--purple);
}

.vi-sort-arrow {
  font-size: 10px;
  opacity: .7;
}

.vi-search input {
  width: min(260px, 100%);
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid #dfe5ef;
  background: #fff;
  color: var(--text);
}

.vi-aggregate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f0ff;
  color: #51409f;
  font-size: 14px;
}


/* MATRIX */

.vi-matrix-legend {
  margin-bottom: 12px;
}

.vi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: #4d5872;
}

.vi-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.vi-legend-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 4px;
  border-radius: 6px;
  border: 1px solid #ebe8f3;
  font-size: 11px;
  font-weight: 800;
}

.vi-matrix-scroll {
  max-width: 100%;
  max-height: 78vh;
  overflow: auto;
  border: 1px solid #eceaf2;
  border-radius: 16px;
  background: #fff;
}

.vi-matrix {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  min-width: 100%;
  font-size: 12px;
}

.vi-matrix th,
.vi-matrix td {
  border-inline-end: 1px solid #f0edf5;
  border-bottom: 1px solid #f0edf5;
  background: #fff;
}

.vi-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8f6fc;
}

.vi-matrix-corner {
  inset-inline-start: 0;
  z-index: 5 !important;
  min-width: 170px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #65708a;
  text-align: start;
  vertical-align: bottom;
}

.vi-matrix-col {
  min-width: 38px;
  height: 124px;
  padding: 6px 2px;
  vertical-align: bottom;
}

.vi-matrix-col-inner {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6px;
}

.vi-matrix-col-name {
  display: block;
  max-height: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  font-weight: 750;
  color: #33415e;
}

.vi-matrix tbody .vi-matrix-row,
.vi-matrix tfoot .vi-matrix-row {
  background: #fff;
}

.vi-matrix-row {
  position: sticky;
  inset-inline-start: 0;
  z-index: 2;
  min-width: 170px;
  max-width: 200px;
  padding: 5px 10px;
  text-align: start;
  white-space: nowrap;
  box-shadow: 1px 0 0 #e7e3f0;
}

html[dir="rtl"] .vi-matrix-row {
  box-shadow: -1px 0 0 #e7e3f0;
}

.vi-matrix-row .vi-country {
  max-width: 180px;
  font-size: 12.5px;
}

.vi-cell {
  min-width: 38px;
  height: 34px;
  padding: 2px 4px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  color: #4f5360;
}

.vi-matrix .vi-cell.is-points,
.vi-legend-cell.is-points {
  /* intensity 0..1 set per cell in --vi-i */
  background: rgba(120, 87, 255, calc(.08 + var(--vi-i, 0) * .5));
  color: #2c1f6b;
}

.vi-matrix .vi-cell.is-douze {
  background: linear-gradient(135deg, #fff2a8, #ffd75b);
  color: #6e5000;
  font-weight: 1000;
}

.vi-matrix .vi-cell.is-zero,
.vi-legend-cell.is-zero {
  color: #b2b7c4;
  font-weight: 600;
  background: #fff;
}

.vi-matrix .vi-cell.is-missing,
.vi-legend-cell.is-missing {
  color: #6b7389;
  font-size: 10px;
  background:
    repeating-linear-gradient(
      45deg,
      #f4f5f9,
      #f4f5f9 4px,
      #eceef4 4px,
      #eceef4 8px
    );
}

.vi-matrix .vi-cell.is-ineligible,
.vi-legend-cell.is-ineligible {
  color: #9aa1b2;
  background: #e9ebf1;
  font-size: 10px;
}

.vi-matrix .vi-cell.is-na-rule {
  background: #fafafd;
}

.vi-matrix .vi-cell.is-aggregate {
  background: #e8fbff;
  color: #00687a;
  font-weight: 850;
}

.vi-matrix-aggregate .vi-matrix-row {
  background: #f5fcff;
}

.vi-matrix-total,
.vi-matrix-total-head {
  background: #faf9fe !important;
  font-weight: 900;
  color: #33415e;
}

.vi-matrix tfoot th,
.vi-matrix tfoot td {
  background: #faf9fe;
  font-weight: 900;
}


/* 12 POINTS */

.vi-douze-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: douze;
}

.vi-douze-list li {
  counter-increment: douze;
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid #f0f1f6;
}

.vi-douze-list li:first-child {
  border-top: 0;
}

.vi-douze-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vi-douze-entry::before {
  content: counter(douze);
  min-width: 22px;
  font-weight: 900;
  color: #b1a6dd;
}

.vi-douze-entry .vi-country {
  flex: 1;
}

.vi-douze-count {
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff2a8, #ffd75b);
  color: #6e5000;
  font-size: 13px;
  white-space: nowrap;
}

.vi-douze-givers {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding-inline-start: 32px;
}


/* JURY VS PUBLIC */

.vi-gap {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.vi-gap.is-public { color: #c41f78; }
.vi-gap.is-jury { color: #5b3fe0; }


/* CHARTS */

.vi-chart {
  margin: 0;
  min-width: 0;
}

.vi-chart figcaption {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.vi-chart figcaption .vi-muted {
  font-size: 13px;
}

.vi-chart-canvas svg {
  display: block;
  width: 100%;
  height: auto;
}

.vi-chart-grid {
  stroke: #eef0f6;
  stroke-width: 1;
}

.vi-chart-axis {
  fill: #7d869b;
  font-size: 11px;
  font-family: inherit;
}

.vi-chart-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.vi-chart-line.is-received,
.vi-chart-dot.is-received { stroke: #00b8d4; }
.vi-chart-line.is-awarded,
.vi-chart-dot.is-awarded { stroke: var(--pink); }

.vi-chart-dot {
  fill: #fff;
  stroke-width: 2;
}

.vi-legend-swatch {
  display: inline-block;
  width: 16px;
  height: 4px;
  border-radius: 2px;
}

.vi-legend-swatch.is-received { background: #00b8d4; }
.vi-legend-swatch.is-awarded { background: var(--pink); }

.vi-chart .vi-legend {
  margin-top: 8px;
}

.vi-chart-data {
  margin-top: 10px;
  font-size: 13px;
}

.vi-chart-data > summary {
  cursor: pointer;
  color: #6453e8;
  font-weight: 750;
}

.vi-chart-data .vi-table-scroll {
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.vi-div-axis {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}

.vi-div-axis span:first-child { color: #5b3fe0; }
.vi-div-axis span:last-child { color: #c41f78; }

.vi-div-chart {
  display: grid;
  gap: 6px;
}

.vi-div-row {
  display: grid;
  grid-template-columns: minmax(80px, 140px) 1fr 44px;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}

.vi-div-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 750;
  color: #33415e;
}

.vi-div-track {
  position: relative;
  height: 16px;
  border-radius: 8px;
  background: #f5f6fa;
}

.vi-div-zero {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 50%;
  width: 2px;
  background: #c9cfdc;
}

.vi-div-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 8px;
}

.vi-div-bar.is-positive { background: linear-gradient(90deg, #ff8cc8, var(--pink)); }
.vi-div-bar.is-negative { background: linear-gradient(90deg, var(--purple), #a996ff); }

.vi-div-value {
  text-align: end;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}


/* PROFILE BARS + RECORDS */

.vi-bar-cell {
  position: relative;
  min-width: 120px;
}

.vi-bar {
  position: absolute;
  inset-block: 9px;
  inset-inline-start: 10px;
  max-width: calc(100% - 20px);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(120,87,255,.22), rgba(255,61,164,.22));
}

.vi-bar-value {
  position: relative;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.vi-records-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 16px;
}

.vi-records td {
  vertical-align: top;
}

.vi-record-song {
  display: block;
  margin-top: 3px;
  font-size: 13px;
}

.vi-record-meta {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}


/* RESPONSIVE */

@media (max-width: 900px) {
  .vi-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .vi-hero {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .vi-hero::after {
    font-size: 84px;
    inset-inline-end: 10px;
    top: 18px;
    transform: none;
  }

  .vi-hero p {
    font-size: 15px;
  }

  .vi-tabs {
    display: flex;
    width: 100%;
  }

  .vi-tab {
    flex: 1;
    padding: 10px 12px;
  }

  .vi-filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .vi-field {
    min-width: 0;
  }

  .vi-field select {
    width: 100%;
  }

  .vi-check {
    grid-column: 1 / -1;
  }

  .vi-section-head {
    align-items: stretch;
  }

  .vi-section-head > .vi-field,
  .vi-search,
  .vi-search input {
    width: 100%;
  }

  .vi-inline-fields {
    width: 100%;
  }

  .vi-inline-fields .vi-field {
    flex: 1 1 140px;
  }

  .vi-stats,
  .vi-stats-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .vi-stat {
    padding: 14px;
  }

  .vi-stat-value {
    font-size: 26px;
  }

  .vi-card {
    padding: 14px;
    border-radius: 18px;
  }

  .vi-table {
    font-size: 13px;
  }

  .vi-table thead th {
    white-space: normal;
  }

  .vi-bar-cell {
    min-width: 64px;
  }

  /* The song links to its artists - keep the points in view */
  .vi-col-artist {
    display: none;
  }

  .vi-matrix-row,
  .vi-matrix-corner {
    min-width: 120px;
    max-width: 130px;
  }

  .vi-matrix-row .vi-country {
    max-width: 112px;
  }

  .vi-div-row {
    grid-template-columns: minmax(70px, 100px) 1fr 38px;
  }
}

@media (max-width: 420px) {
  .vi-stats,
  .vi-stats-2 {
    grid-template-columns: 1fr;
  }
}
