.leetcode-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.leetcode-group-card,
.content a.leetcode-group-card {
  display: block;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.leetcode-group-card:hover,
.content a.leetcode-group-card:hover {
  color: var(--text);
  border-color: rgba(17, 129, 155, 0.45);
  transform: translateY(-1px);
}

.leetcode-group-card h3,
.content a.leetcode-group-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}

.leetcode-group-card p,
.content a.leetcode-group-card p {
  margin: 0 0 0.85rem;
  color: var(--text);
  opacity: 0.62;
  font-size: 0.92rem;
}

.leetcode-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.leetcode-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: #11819b;
  transition: width 0.25s ease;
}

.leetcode-progress-meta {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.55;
}

.leetcode-problem-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
}

.leetcode-problem-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.leetcode-problem-list a,
.content .leetcode-problem-list a {
  flex: 1;
  text-decoration: none;
  color: var(--text);
}

.leetcode-problem-list a:hover,
.content .leetcode-problem-list a:hover {
  color: #11819b;
}

.leetcode-diff {
  font-size: 0.8rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
}

.leetcode-diff.is-easy { color: #2e7d32; }
.leetcode-diff.is-medium { color: #ef6c00; }
.leetcode-diff.is-hard { color: #c62828; }

.leetcode-badge {
  font-size: 0.8rem;
  min-width: 3.5rem;
  text-align: right;
  opacity: 0.7;
  color: var(--text);
}

.leetcode-problem-list li.is-solved .leetcode-badge {
  color: #11819b;
  opacity: 1;
}

.leetcode-embed iframe {
  border: 0;
}

html[data-mode="dark"] .leetcode-group-card,
html[data-theme="dark"] .leetcode-group-card,
html[data-mode="dark"] .content a.leetcode-group-card,
html[data-theme="dark"] .content a.leetcode-group-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

html[data-mode="dark"] .leetcode-group-card:hover,
html[data-theme="dark"] .leetcode-group-card:hover,
html[data-mode="dark"] .content a.leetcode-group-card:hover,
html[data-theme="dark"] .content a.leetcode-group-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(17, 129, 155, 0.55);
}

html[data-mode="dark"] .leetcode-progress,
html[data-theme="dark"] .leetcode-progress {
  background: rgba(255, 255, 255, 0.1);
}

html[data-mode="dark"] .leetcode-problem-list li,
html[data-theme="dark"] .leetcode-problem-list li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-mode="dark"] .leetcode-diff,
html[data-theme="dark"] .leetcode-diff {
  background: rgba(255, 255, 255, 0.08);
}
