

.browse {
  padding: var(--panel-pad);
}

.browse__title {
  margin-top: 6px;
  max-width: 760px;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.browse__search-wrap {
  max-width: 760px;
  margin-top: 34px;
}

.browse__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
}

.browse__count {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  height: 100%;

  min-height: 225px;
  padding: 18px;
  border-radius: var(--r-md);
  background: var(--surface-sunken);
  text-align: left;
  cursor: pointer;
  --wave: var(--accent-soft);
  --wave-ink: var(--ink);
}

.catalog-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 12px;
}

.catalog-card__arrow {
  color: var(--ink-soft);
  transition:
    translate 320ms var(--ease-wave),
    color 320ms var(--ease-wave);
}

.catalog-card:hover .catalog-card__arrow,
.catalog-card:focus-visible .catalog-card__arrow {
  translate: 3px -3px;
  color: var(--accent);
}

.catalog-card .tile {
  transition: scale 380ms var(--ease-wave);
}

.catalog-card:hover .tile,
.catalog-card:focus-visible .tile {
  scale: 1.06;
}

.catalog-card__name {
  font-size: 15px;
}

.catalog-card__publisher {
  color: var(--ink-soft);
  font-size: 11px;
  transition: color 300ms var(--ease-wave);
}

.catalog-card:hover .catalog-card__publisher,
.catalog-card:focus-visible .catalog-card__publisher {
  color: var(--ink-soft);
}

.catalog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.catalog-card__tag {
  min-height: 26px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  transition:
    background-color 300ms var(--ease-wave),
    color 300ms var(--ease-wave);
}

.catalog-card__tag--license {
  background: var(--accent-soft);
  color: var(--accent);
}

.catalog-card:hover .catalog-card__tag,
.catalog-card:focus-visible .catalog-card__tag {
  background: var(--surface);
  color: var(--ink-soft);
}

.catalog-card:hover .catalog-card__tag--license,
.catalog-card:focus-visible .catalog-card__tag--license {
  background: var(--accent);
  color: var(--on-dark);
}

.browse__notice {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--r-card);
  background: var(--accent-soft);
}

.browse__notice-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--r-pill);
  corner-shape: round;
  background: var(--surface);
  color: var(--accent);
}

.browse__notice-icon .icon {
  font-size: 20px;
}

.browse__notice-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.browse__notice-title {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.browse__notice-text {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.browse__notice-text q {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}

.browse__fallback-label {
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .browse__notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

.catalog-card--skeleton {
  cursor: default;
  pointer-events: none;
}

.sk {
  display: block;
  border-radius: 8px;
  background:
    linear-gradient(
      90deg,
      var(--surface-muted) 0%,
      var(--surface) 42%,
      var(--surface-muted) 78%
    );
  background-size: 220% 100%;
  animation: sk-shimmer 1.25s linear infinite;
}

.sk--tile {
  width: 48px;
  height: 48px;
  border-radius: var(--r-tile);
  corner-shape: var(--corner);
}

.sk--arrow {
  width: 17px;
  height: 17px;
  border-radius: 4px;
}

.sk--name {
  width: 62%;
  height: 22px;
}

.sk--publisher {
  width: 44%;
  height: 16px;
}

.sk--tag {
  width: 54px;
  height: 26px;
  border-radius: var(--r-pill);
  corner-shape: round;
}

.sk--tag-wide {
  width: 68px;
}

@keyframes sk-shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk {
    animation: none;
  }
}
