/* /roll — IG-style procedural photo feed.
   Same palette and panel grammar as /space, narrower column. */

.roll-page > main { padding-top: 2.6em; }

.roll {
  max-width: 460px;
  margin: 0.6em auto 4em;
  padding: 0 0.8em;
}
.roll--explore { max-width: 820px; }

/* ----------------------------------------------------------------------- */
/* profile header */

.roll__hdr {
  background: #fff;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  padding: 0.8em;
  margin-bottom: 0.8em;
}
.roll__hdr-top {
  display: flex;
  align-items: center;
  gap: 1em;
}
.roll__avatar {
  width: 80px;
  height: 80px;
  border: 2px solid #000;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 3px 3px 0 #000;
  flex-shrink: 0;
}
.roll__avatar svg { display: block; width: 100%; height: 100%; }
.roll__name {
  margin: 0.5em 0 0;
  font-size: 1.5em;
  font-weight: normal;
  letter-spacing: 0.04em;
  word-break: break-word;
  text-align: left;
  border-bottom: 0;
  line-height: 1.1;
}
.roll__name::before,
.roll__name::after { content: none; }
.roll__tag {
  margin: 0.15em 0 0;
  font-size: 0.85em;
  opacity: 0.7;
}
.roll__counts {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 0.8em;
  letter-spacing: 0.04em;
  min-width: 0;
}
.roll__counts li {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}
.roll__counts li::before { content: none; }
.roll__counts b {
  font-weight: normal;
  font-size: 1.25em;
  margin: 0;
}
.roll__counts span {
  margin: 0;
  font-size: 0.7em;
  opacity: 0.7;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .roll__avatar { width: 64px; height: 64px; }
  .roll__name { font-size: 1.2em; }
  .roll__counts b { font-size: 1.1em; }
}

/* ----------------------------------------------------------------------- */
/* feed */

.roll__feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}
.roll__feed li { padding: 0; }
.roll__feed li::before { content: none; }
.roll__feed-sentinel { height: 1px; }

.post {
  background: #fff;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  display: flex;
  flex-direction: column;
}
.post__head {
  background: #000;
  color: #fff;
  font-size: 0.85em;
  letter-spacing: 0.06em;
  padding: 0.18em 0.5em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.post__head a, .post__head a:visited { color: #fff; text-decoration: none; }
.post__head a:hover { background: #fff; color: #000; }
.post__head-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__head-when { margin-left: auto; opacity: 0.7; font-size: 0.85em; white-space: nowrap; }

.post__img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: pointer;
}

.post__actions {
  display: flex;
  gap: 0.8em;
  padding: 0.4em 0.6em 0.2em;
  font-size: 0.95em;
  letter-spacing: 0.03em;
}
.post__actions a, .post__actions a:visited { color: #000; text-decoration: none; }
.post__actions a:hover { background: #000; color: #fff; }

.post__caption {
  padding: 0.1em 0.6em 0.5em;
  font-size: 0.95em;
  line-height: 1.3;
  word-break: break-word;
}
.post__caption b { font-weight: normal; margin-right: 0.4em; }
.post__caption a { text-decoration: none; }
.post__caption a:hover { background: #000; color: #fff; }

/* ----------------------------------------------------------------------- */
/* explore mode (no ?artist= param) */

.roll__explore-grid {
  list-style: none;
  margin: 0;
  padding: 0.6em 0.6em 0.7em;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6em;
}
.roll__explore-grid li { padding: 0; min-width: 0; }
.roll__explore-grid li::before { content: none; }
.roll__explore-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.25em;
  padding: 0.2em;
  border: 1px solid transparent;
  min-width: 0;
}
.roll__explore-grid a:hover { background: #000; color: #fff; border-color: #000; }
.roll__explore-grid__pic {
  width: 56px;
  height: 56px;
  border: 1px solid #000;
  background: #000;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  flex-shrink: 0;
}
.roll__explore-grid__pic svg { display: block; width: 100%; height: 100%; }
.roll__explore-grid__name {
  font-size: 0.85em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: stretch;
  min-width: 0;
}
@media (max-width: 720px) {
  .roll__explore-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .roll__explore-grid { grid-template-columns: repeat(3, 1fr); }
}

.roll__intro-actions {
  margin: 0.5em 0 0;
  font-size: 0.95em;
}

/* ----------------------------------------------------------------------- */
/* shared modal + btn — same as space.css. Kept inline so /roll loads
   independently of /space's stylesheet. */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.modal__win {
  position: relative;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 6px 6px 0 #000;
  min-width: 18em;
  max-width: 26em;
  margin: 1em;
}
.modal__h {
  background: #000;
  color: #fff;
  padding: 0.2em 0.6em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95em;
}
.modal__body { padding: 0.7em 0.8em; }
.modal__msg { margin: 0 0 0.8em; font-size: 1em; line-height: 1.3; }
.modal__actions { display: flex; justify-content: flex-end; }

.btn-inv,
.btn-inv:visited {
  display: inline-block;
  padding: 0.05em 0.7em;
  background: #000;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  font: inherit;
  border: 2px solid #000;
  cursor: pointer;
  margin-right: 0.4em;
}
.btn-inv:hover { background: #00c800; color: #000; }

/* shared-post modal — opens automatically when arriving via #post=<seed>
   so the recipient sees the specific photo, not the whole feed. */
.modal__win--share { max-width: 26em; width: 26em; }
@media (max-width: 480px) {
  .modal__win--share { width: auto; max-width: calc(100vw - 2em); }
}
.modal__body--share { padding: 0; }
.modal__share-host .post {
  border: 0;
  box-shadow: none;
  border-bottom: 2px solid #000;
}

/* list-style modal — used by likes / comments popups on /roll. */
.modal__win--list { max-width: 30em; width: 30em; }
@media (max-width: 480px) {
  .modal__win--list { width: auto; max-width: calc(100vw - 2em); }
}
.modal__body--list { padding: 0; }
.modal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 60vh;
  overflow-y: auto;
}
.modal__list li::before { content: none; }
.modal__row { padding: 0; }
.modal__row + .modal__row { border-top: 1px solid #000; }
.modal__row-link {
  display: flex;
  gap: 0.6em;
  align-items: center;
  padding: 0.45em 0.7em;
  color: #000;
  text-decoration: none;
}
.modal__row-link:hover { background: #00c800; color: #000; }
.modal__row-av {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  image-rendering: pixelated;
  display: block;
}
.modal__row-av svg { display: block; width: 100%; height: 100%; }
.modal__row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
}
.modal__row-name {
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.modal__row-sub {
  font-size: 0.85em;
  opacity: 0.75;
  overflow-wrap: anywhere;
}
.modal__list-foot {
  display: flex;
  justify-content: flex-end;
  padding: 0.5em 0.7em;
  border-top: 2px solid #000;
}
