.ttm-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 56px;
  color: #f2ece8;
  display: grid;
  gap: 20px;
}

.ttm-hero,
.ttm-section,
.ttm-filters {
  border: 1px solid rgba(142, 39, 31, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(138, 32, 25, 0.18), transparent 24%),
    linear-gradient(145deg, rgba(7, 8, 12, 0.99), rgba(18, 20, 27, 0.97), rgba(20, 11, 13, 0.96));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.ttm-hero,
.ttm-section,
.ttm-filters {
  padding: 24px;
}

.ttm-kicker {
  margin: 0 0 8px;
  color: #cf6c60;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
}

.ttm-lead,
.ttm-card__bio,
.ttm-card__handle,
.ttm-empty,
.ttm-count {
  color: rgba(239, 232, 227, 0.68);
}

.ttm-note {
  margin: -10px 0 2px;
  color: rgba(239, 232, 227, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.ttm-actions,
.ttm-section__head,
.ttm-card__head,
.ttm-card__stats,
.ttm-card__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ttm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ttm-section__eyebrow {
  margin: 0 0 6px;
  color: rgba(207, 108, 96, 0.84);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}

.ttm-section__summary {
  margin: 8px 0 0;
  color: rgba(239, 232, 227, 0.62);
  font-size: 14px;
  line-height: 1.45;
}

.ttm-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(152, 47, 38, 0.2);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 13, 18, 0.98), rgba(18, 19, 25, 0.94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ttm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.ttm-card--leader {
  border-color: rgba(231, 184, 86, 0.42);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(231, 184, 86, 0.12);
}

.ttm-card--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(214, 167, 74, 0.12), transparent 35%, transparent 65%, rgba(179, 64, 51, 0.12));
  pointer-events: none;
  z-index: 1;
}

.ttm-card--classic .ttm-card__cover {
  background: linear-gradient(145deg, rgba(23, 25, 33, 1), rgba(46, 16, 18, 1));
}

.ttm-card--ink .ttm-card__cover {
  background: linear-gradient(145deg, rgba(10, 10, 14, 1), rgba(33, 35, 45, 1));
}

.ttm-card--neon .ttm-card__cover {
  background: linear-gradient(145deg, rgba(29, 15, 37, 1), rgba(18, 38, 49, 1));
}

.ttm-card--ornate .ttm-card__cover {
  background: linear-gradient(145deg, rgba(37, 24, 16, 1), rgba(62, 29, 22, 1));
}

.ttm-card--luxe .ttm-card__cover {
  background: linear-gradient(145deg, rgba(24, 27, 34, 1), rgba(71, 36, 25, 1));
}

.ttm-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 1.4 / 1;
  background: linear-gradient(145deg, rgba(23, 25, 33, 1), rgba(46, 16, 18, 1));
}

.ttm-card__cover img,
.ttm-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ttm-card__void {
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(188, 67, 56, 0.24), transparent 42%);
}

.ttm-card__body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ttm-card__rank {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff2eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 3;
  backdrop-filter: blur(8px);
}

.ttm-card__rank.is-leader {
  background: linear-gradient(135deg, rgba(94, 49, 16, 0.92), rgba(165, 92, 34, 0.88));
  border-color: rgba(235, 188, 91, 0.4);
  color: #fff6d8;
}

.ttm-card__crown {
  font-size: 14px;
  color: #ffd76d;
}

.ttm-card__style-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: calc(100% - 110px);
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 244, 239, 0.94);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3;
  backdrop-filter: blur(8px);
}

.ttm-card__style-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #ffd9bf;
  font-size: 11px;
  line-height: 1;
}

.ttm-card__style-text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ttm-card--ink .ttm-card__style-tag {
  background: rgba(15, 19, 28, 0.84);
}

.ttm-card--neon .ttm-card__style-tag {
  background: rgba(34, 16, 44, 0.84);
  border-color: rgba(129, 93, 191, 0.24);
}

.ttm-card--neon .ttm-card__style-icon {
  color: #f0b5ff;
}

.ttm-card--ornate .ttm-card__style-tag {
  background: rgba(58, 31, 17, 0.82);
  border-color: rgba(202, 148, 86, 0.22);
}

.ttm-card--ornate .ttm-card__style-icon,
.ttm-card--luxe .ttm-card__style-icon {
  color: #ffd789;
}

.ttm-card--luxe .ttm-card__style-tag {
  background: rgba(44, 24, 18, 0.82);
  border-color: rgba(220, 173, 103, 0.24);
}

.ttm-card__avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #151922, #391619);
  color: #fff0ec;
  font-weight: 800;
}

.ttm-card__head h3,
.ttm-section__head h2,
.ttm-hero h1 {
  margin: 0;
}

.ttm-card__head a,
.ttm-section__head a,
.ttm-pill,
.ttm-page {
  color: #f3ece8;
  text-decoration: none;
}

.ttm-card__meta,
.ttm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ttm-badge,
.ttm-pill,
.ttm-page {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(157, 54, 43, 0.28);
  background: rgba(10, 12, 17, 0.82);
}

.ttm-pills {
  gap: 14px;
}

.ttm-pill--feature {
  display: inline-flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: min(100%, 280px);
  padding: 14px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(138, 32, 25, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(10, 12, 17, 0.96), rgba(20, 11, 13, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 36px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.ttm-pill--feature:hover {
  transform: translateY(-2px);
  border-color: rgba(190, 88, 69, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 44px rgba(0, 0, 0, 0.28);
}

.ttm-pill__label {
  display: block;
  color: #f4ece8;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}

.ttm-pill__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(142, 39, 31, 0.2);
  border: 1px solid rgba(187, 93, 73, 0.22);
  color: rgba(255, 225, 214, 0.92);
  font-size: 12px;
  white-space: nowrap;
}

.ttm-badge.is-featured {
  background: rgba(145, 46, 37, 0.28);
}

.ttm-badge.is-premium {
  background: rgba(133, 88, 30, 0.26);
  border-color: rgba(227, 180, 86, 0.26);
  color: #ffebba;
}

.ttm-badge.is-leader {
  background: rgba(184, 121, 38, 0.22);
  border-color: rgba(231, 184, 86, 0.34);
  color: #fff0ba;
}

.ttm-badge.is-verified {
  background: rgba(80, 24, 20, 0.28);
}

.ttm-card__styles {
  margin: 0;
  color: #ead5cf;
  font-weight: 600;
}

.ttm-card__stats {
  color: rgba(240, 235, 230, 0.76);
  font-size: 14px;
}

.ttm-prestige {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(106, 37, 25, 0.24);
  border: 1px solid rgba(192, 104, 74, 0.26);
  color: #ffd9c4;
}

.ttm-prestige__icon {
  color: #ffb680;
}

.ttm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(171, 61, 48, 0.36);
  background: linear-gradient(120deg, #222833, #8a352d);
  color: #fff4f0;
  text-decoration: none;
}

.ttm-button--ghost {
  background: rgba(10, 12, 17, 0.84);
}

.ttm-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.ttm-filters label,
.ttm-filter-field {
  display: grid;
  gap: 6px;
}

.ttm-filters input,
.ttm-filters select {
  width: 100%;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(98, 39, 35, 0.48);
  background: rgba(5, 7, 10, 0.9);
  color: #f0ece8;
  padding: 0 14px;
}

.ttm-filter-toggles {
  grid-column: 1 / span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ttm-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(157, 54, 43, 0.24);
  background: rgba(10, 12, 17, 0.82);
  color: #f2ece8;
}

.ttm-toggle input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: #a43e33;
}

.ttm-toggle span {
  color: inherit;
}

.ttm-filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ttm-filter-actions .ttm-button {
  min-width: 180px;
}

.ttm-pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ttm-page.is-active {
  background: linear-gradient(120deg, #2b303a, #a43e33);
}

@media (max-width: 980px) {
  .ttm-grid,
  .ttm-filters {
    grid-template-columns: 1fr;
  }

  .ttm-filter-toggles,
  .ttm-filter-actions {
    grid-column: auto;
  }

  .ttm-filter-actions .ttm-button {
    width: 100%;
    min-width: 0;
  }

  .ttm-pill--feature {
    width: 100%;
    min-width: 0;
  }
}
