/* Set detail page */
.mp-scroll-sentinel {
  grid-column: 1 / -1;
  height: 1px;
}

* { box-sizing: border-box; }

body:has(.mp-set-detail) {
  margin: 0;
  padding: 0;
  background: #f4f4f8;
  font-family: "Inter", system-ui, sans-serif;
}

.mp-set-detail {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Header ── */
.mp-set-detail__header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  background: rgba(244, 244, 248, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mp-set-detail__back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f5a623;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.1s ease;
}

.mp-set-detail__back:active {
  animation: icon-btn-pop 0.25s ease forwards;
}

.mp-set-detail__title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  text-align: center;
}

.mp-set-detail__title--left {
  min-width: 0;
  text-align: left;
}

.mp-set-detail__header-actions {
  display: flex;
  gap: 8px;
}

.mp-set-detail__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #f5a623;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.mp-set-detail__icon-btn:active {
  animation: icon-btn-pop 0.25s ease forwards;
}

/* ── Progress Section ── */
.mp-set-detail__progress-section {
  background: #fff;
  padding: 20px 16px 16px;
  margin-bottom: 8px;
}

.mp-set-detail__progress-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mp-set-detail__progress-label {
  margin: 0 0 4px;
  font-size: 0.75rem;
  color: #aaa;
  font-weight: 500;
}

.mp-set-detail__progress-value {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mp-set-detail__progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f5a623;
  display: inline-block;
}

.mp-set-detail__progress-pct {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
}

.mp-set-detail__progress-right {
  text-align: right;
}

.mp-set-detail__set-value {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
}

.mp-set-detail__bar {
  height: 5px;
  background: #f0f0f4;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
}

.mp-set-detail__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f5a623, #f7c96e);
  border-radius: 99px;
}

.mp-set-detail__complete-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-set-detail__complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fff5e6;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #888;
}

.mp-set-detail__complete-badge svg {
  color: #f5a623;
}

.mp-set-detail__complete-badge strong {
  color: #f5a623;
}

.mp-set-detail__set-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
}

/* ── Series detail (modal) ── */
.mp-series-detail__header-spacer {
  width: 38px;
  flex-shrink: 0;
}

.mp-series-detail__remaining {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #888;
}

.mp-series-detail__remaining svg {
  color: #ccc;
  flex-shrink: 0;
  margin-top: 2px;
}

.mp-series-detail__remaining strong {
  color: #1a1a2e;
}

.mp-series-detail__sets {
  padding: 4px 18px 24px;
}

/* ── Search bar no set (fundo cinza claro) ── */
.mp-search--set {
  background: #fff;
  border: 1px solid #e8e8f0;
  margin: 12px 16px 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.mp-search--set .mp-search__filter {
  color: #555;
  border-left-color: #e8e8f0;
}

/* ── Card Grid ── */
.mp-set-detail__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 10px 100px;
}

@keyframes card-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.mp-card-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 5/7;
  background: linear-gradient(90deg, #e8e8f0 25%, #f4f4fa 50%, #e8e8f0 75%);
  background-size: 200% 100%;
  animation: card-shimmer 1.4s ease-in-out infinite;
  position: relative;
}

.mp-card-thumb__badge {
  display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 12px 0 8px 0;
  background: #fff;
  color: #1a1a2e;
  font-size: 0.8rem;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.mp-card-thumb__badge--visible {
  display: flex;
}

.mp-card-thumb__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


.mp-card-thumb__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  font-size: 0.6rem;
  color: #aaa;
  font-weight: 500;
}
