.potm {
  --potm-card: #0f1419;
  --potm-line: rgba(255, 255, 255, 0.09);
  --potm-text: #e9eef3;
  --potm-muted: #8fa0b3;
  --potm-accent: #1fc8db;
  --potm-gold: #f5b301;
}

.potm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.potm-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--potm-line);
  border-radius: 14px;
  background: var(--potm-card);
  color: var(--potm-text);
  text-align: left;
}

.potm-card__img {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  background: rgba(31, 200, 219, 0.08);
}

.potm-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.potm-card__badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9, 12, 15, 0.82);
  color: var(--potm-gold);
  font-size: 0.75rem;
  font-weight: 700;
}

.potm-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.potm-card__title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.potm-card__meta {
  margin: 0;
  color: var(--potm-muted);
  font-size: 0.88rem;
}

.potm-card__meta a {
  color: var(--potm-accent);
  text-decoration: none;
}

.potm-card__meta a:hover {
  text-decoration: underline;
}

.potm-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.potm-card__link {
  padding: 6px 12px;
  border: 1px solid var(--potm-line);
  border-radius: 999px;
  background: transparent;
  color: var(--potm-text);
  font: inherit;
  font-size: 0.82rem;
  text-decoration: none;
  cursor: pointer;
}

.potm-card__link:hover {
  border-color: var(--potm-accent);
  color: var(--potm-accent);
}

.potm-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}

.potm-card--featured .potm-card__img {
  aspect-ratio: auto;
  min-height: 280px;
}

.potm-card--featured .potm-card__body {
  justify-content: center;
  padding: 24px;
}

.potm-card--featured .potm-card__title {
  font-size: 1.4rem;
}

.potm-home {
  max-width: 980px;
  margin: 32px auto 0;
}

.potm-home__more {
  display: inline-block;
  margin-top: 16px;
  color: var(--potm-accent);
  font-weight: 600;
  text-decoration: none;
}

.potm-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.potm-page__head {
  margin: 24px 0 28px;
}

.potm-page__head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.potm-page__head p {
  max-width: 640px;
  margin: 0;
  color: var(--potm-muted);
}

.potm-page__featured {
  margin-bottom: 28px;
}

.potm-page__empty {
  padding: 40px 16px;
  border: 1px dashed var(--potm-line);
  border-radius: 14px;
  color: var(--potm-muted);
  text-align: center;
}

.potm-page__cta {
  margin-top: 36px;
  color: var(--potm-muted);
}

.potm-page__cta a {
  color: var(--potm-accent);
}

@media (max-width: 720px) {
  .potm-card--featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .potm-card--featured .potm-card__img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .potm-card--featured .potm-card__body {
    padding: 16px;
  }
}

.potm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--potm-text);
  font-weight: 700;
  text-decoration: none;
}

.potm-brand img {
  border-radius: 50%;
}

.potm[hidden],
.potm [hidden] {
  display: none;
}
