.vpm-markets-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}

@media (min-width: 768px) {
  .vpm-markets-page {
    padding: 32px 80px 24px;
  }
}

.vpm-markets-cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 640px) {
  .vpm-markets-cats {
    gap: 8px;
  }
}

.vpm-markets-cats__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 64px;
  padding: 8px 12px;
  border: 1px solid var(--vpm-hub-border);
  border-radius: 8px;
  background: var(--vpm-hub-surface);
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.vpm-markets-cats__btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.vpm-markets-cats__btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.vpm-markets-cats__btn--active {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--vpm-primary);
}

.vpm-markets-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vpm-markets-list__item {
  margin-bottom: 24px;
}

.vpm-markets-list__row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--vpm-hub-border);
  border-radius: 8px;
  background: var(--vpm-hub-surface);
  overflow: hidden;
  transition: background 150ms ease, border-color 150ms ease;
}

.vpm-markets-list__row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.vpm-markets-list__link {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.vpm-markets-list__logo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.vpm-markets-list__logo {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.vpm-markets-list__logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vpm-markets-list__logo-fallback[hidden] {
  display: none;
}

.vpm-markets-list__copy {
  flex: 1;
  min-width: 0;
}

.vpm-markets-list__symbol {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #fafafa;
}

.vpm-markets-list__name {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.65);
  overflow-wrap: anywhere;
}

.vpm-markets-list__star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--vpm-hub-border);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background 150ms ease;
}

.vpm-markets-list__star:hover {
  background: rgba(255, 255, 255, 0.06);
}

.vpm-markets-list__star .material-icons {
  font-size: 22px;
}

.vpm-markets-list__star[aria-pressed='true'] .material-icons {
  color: var(--vpm-primary);
}

.vpm-watchlist-page__list {
  margin-top: var(--vpm-space-2);
}

.vpm-watchlist-item__quote {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin-left: auto;
  padding-right: 8px;
  min-width: 88px;
}

.vpm-watchlist-item__price {
  font-size: var(--vpm-text-sm);
  font-weight: var(--vpm-weight-semibold);
  color: #fafafa;
}

[data-theme='light'] .vpm-watchlist-item__price {
  color: #111827;
}

[data-theme='light'] .vpm-markets-list__name {
  color: rgba(15, 23, 42, 0.65);
}

[data-theme='light'] .vpm-markets-cats__btn {
  background: #fff;
  border-color: #e5e7eb;
}

[data-theme='light'] .vpm-markets-cats__btn--active {
  background: rgba(249, 115, 22, 0.1);
}

[data-theme='light'] .vpm-markets-list__row {
  background: #fff;
  border-color: #e5e7eb;
}

[data-theme='light'] .vpm-markets-list__star {
  border-left-color: #e5e7eb;
}

[data-theme='light'] .vpm-markets-list__symbol {
  color: #111827;
}
