.collection-graphic-panel {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(420px, 1.4fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 14px;
  overflow: hidden;
}

.graphic-copy > p:last-child {
  max-width: 34rem;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.collection-graphic {
  display: grid;
  grid-template-columns: 176px minmax(260px, 1fr);
  align-items: center;
  gap: 26px;
}

.collection-ring {
  --uploaded-angle: 0deg;
  --owned-angle: 0deg;
  position: relative;
  display: grid;
  width: 176px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    #48d487 0 var(--uploaded-angle),
    #5ca0ff var(--uploaded-angle) var(--owned-angle),
    #ffad45 var(--owned-angle) 360deg
  );
  box-shadow: 0 12px 28px rgb(0 0 0 / 28%);
}

.format-ring {
  --dvd-angle: 0deg;
  --bluray-angle: 0deg;
  background: conic-gradient(
    #a083ff 0 var(--dvd-angle),
    #3eaeff var(--dvd-angle) var(--bluray-angle),
    #737e89 var(--bluray-angle) 360deg
  );
}

.collection-ring::before {
  content: "";
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 24px rgb(0 0 0 / 20%);
}

.ring-center {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ring-center strong,
.ring-center span {
  display: block;
}

.ring-center strong {
  font-size: 30px;
  letter-spacing: -.04em;
}

.ring-center span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.graphic-legend {
  display: grid;
  gap: 8px;
}

.graphic-legend > div {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #111419;
}

.graphic-legend span:not(.legend-swatch) {
  color: #c4ccd5;
  font-size: 12px;
}

.graphic-legend strong {
  font-size: 16px;
}

.legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgb(255 255 255 / 4%);
}

.legend-swatch.uploaded-owned { background: #48d487; }
.legend-swatch.owned-only { background: #5ca0ff; }
.legend-swatch.missing { background: #ffad45; }
.legend-swatch.dvd { background: #a083ff; }
.legend-swatch.bluray { background: #3eaeff; }
.legend-swatch.other { background: #737e89; }

@media (max-width: 850px) {
  .collection-graphic-panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .collection-graphic {
    grid-template-columns: 160px minmax(230px, 1fr);
  }

  .collection-ring { width: 160px; }
}

@media (max-width: 650px) {
  .collection-graphic-panel {
    gap: 14px;
    margin-bottom: 8px;
  }

  .collection-graphic {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 15px;
  }

  .collection-ring { width: 148px; }
  .ring-center strong { font-size: 26px; }
  .graphic-legend { width: 100%; }
}
