.wp-manga-teams-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.wp-manga-teams-search {
  display: flex;
  flex: 1 1 220px;
  gap: 8px;
  margin: 0;
}

.wp-manga-teams-search .search-field {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.wp-manga-teams-az {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 3px;
  text-decoration: none;
  line-height: 1.2;
  opacity: 0.7;
}

.wp-manga-teams-az.is-active,
.wp-manga-teams-az:hover,
body.text-ui-light .wp-manga-teams-az.is-active,
body.text-ui-light .wp-manga-teams-az:hover {
  opacity: 1;
  color: var(--primary-color);
}

.wp-manga-teams .row.wp-manga-teams-grid {
  display: grid;
  grid-template-columns: repeat(min(2, var(--wmt-cols, 4)), minmax(0, 1fr));
  row-gap: 24px;
}

.wp-manga-teams-col {
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
  margin-bottom: 0;
}

.wp-manga-teams .row.wp-manga-teams-grid .wp-manga-team-item {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .wp-manga-teams .row.wp-manga-teams-grid {
    grid-template-columns: repeat(var(--wmt-cols, 4), minmax(0, 1fr));
  }

  .wp-manga-teams .row.wp-manga-teams-grid.wp-manga-teams-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .wp-manga-teams .row.wp-manga-teams-grid.wp-manga-teams-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wp-manga-teams .row.wp-manga-teams-grid.wp-manga-teams-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wp-manga-teams .row.wp-manga-teams-grid.wp-manga-teams-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .wp-manga-teams .row.wp-manga-teams-grid.wp-manga-teams-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .wp-manga-teams .row.wp-manga-teams-grid.wp-manga-teams-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.wp-manga-teams-az.is-active {
  font-weight: 700;
}

.wp-manga-team-item {
  margin-bottom: 24px;
}

.wp-manga-team-item .item-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.wp-manga-team-item__placeholder {
  display: block;
  width: 100%;
  padding-top: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.wmt-gradient--0 {
  --wmt-g1: #312e81;
  --wmt-g2: #7c3aed;
  --wmt-g3: #fb7185;
}

.wmt-gradient--1 {
  --wmt-g1: #0f172a;
  --wmt-g2: #0284c7;
  --wmt-g3: #22d3ee;
}

.wmt-gradient--2 {
  --wmt-g1: #7c2d12;
  --wmt-g2: #ea580c;
  --wmt-g3: #fbbf24;
}

.wmt-gradient--3 {
  --wmt-g1: #064e3b;
  --wmt-g2: #059669;
  --wmt-g3: #a3e635;
}

.wmt-gradient--4 {
  --wmt-g1: #701a75;
  --wmt-g2: #db2777;
  --wmt-g3: #fda4af;
}

.wmt-gradient--5 {
  --wmt-g1: #1e1b4b;
  --wmt-g2: #4f46e5;
  --wmt-g3: #c4b5fd;
}

.wmt-gradient {
  background-color: var(--wmt-g1, #1e1b4b);
  background-image:
    radial-gradient(
      ellipse 85% 70% at 12% 8%,
      var(--wmt-g3) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 65% at 92% 18%,
      var(--wmt-g2) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 50% at 70% 95%,
      var(--wmt-g3) 0%,
      transparent 55%
    ),
    linear-gradient(
      145deg,
      var(--wmt-g1) 0%,
      var(--wmt-g2) 52%,
      var(--wmt-g3) 100%
    );
  background-size: cover;
}

.wp-manga-team-item__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-manga-team-item__chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wp-manga-teams-empty {
  margin: 16px 0;
}

.wp-manga-teams-pagination .nav-links,
.wp-manga-teams-pagination .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.wp-manga-teams-pagination .page-numbers a,
.wp-manga-teams-pagination .page-numbers span,
.wp-manga-teams-pagination .nav-links a,
.wp-manga-teams-pagination .nav-links span {
  display: inline-block;
  padding: 6px 10px;
}

/* Single team page — mock layout */
.wmt-single {
  --wmt-border: rgba(127, 127, 127, 0.35);
  --wmt-muted: rgba(127, 127, 127, 0.95);
  --wmt-card: rgba(127, 127, 127, 0.08);
  --wmt-chip: rgba(127, 127, 127, 0.12);
  padding-bottom: 48px;
}

body.text-ui-light .wmt-single {
  --wmt-border: rgba(255, 255, 255, 0.12);
  --wmt-muted: rgba(255, 255, 255, 0.55);
  --wmt-card: rgba(255, 255, 255, 0.04);
  --wmt-chip: rgba(0, 0, 0, 0.35);
}

.wmt-single__cover {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: #1a1a1a;
}

.wmt-single__cover:not(.has-image)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.38) 100%
  );
  pointer-events: none;
}

.wmt-single__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wmt-single__article {
  position: relative;
  margin-top: -48px;
  padding-bottom: 24px;
}

.wmt-single__profile {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-end;
  margin-bottom: 20px;
}

.wmt-single__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: #2a2a2a;
  border: 4px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 96px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--wmt-border);
}

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

body:not(.text-ui-light) .wmt-single__avatar {
  border-color: #fff;
}

.wmt-single__avatar-face {
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.wmt-single__identity {
  flex: 1 1 240px;
  padding-bottom: 6px;
}

.wmt-single__name {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.wmt-single__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wmt-single__chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--wmt-border);
  border-radius: 6px;
  background: var(--wmt-chip);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.wmt-single__chips i {
  opacity: 0.8;
  font-size: 12px;
}

.wmt-single__tab-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.wmt-single__tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.wmt-single__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--wmt-border);
  border-radius: 10px;
  background: var(--wmt-chip);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  margin: 0;
  color: inherit;
}

#wmt-tab-overview:checked ~ .wmt-single__tabs label[for="wmt-tab-overview"],
#wmt-tab-manga:checked ~ .wmt-single__tabs label[for="wmt-tab-manga"],
#wmt-tab-members:checked ~ .wmt-single__tabs label[for="wmt-tab-members"] {
  border-color: currentColor;
  background: transparent;
}

.wmt-single__panel {
  display: none;
}

#wmt-tab-overview:checked ~ .wmt-single__panels .wmt-single__panel--overview {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 16px;
  align-items: start;
}

#wmt-tab-manga:checked ~ .wmt-single__panels .wmt-single__panel--manga {
  display: block;
}

#wmt-tab-members:checked ~ .wmt-single__panels .wmt-single__panel--members {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wmt-single__sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wmt-card {
  border: 1px solid var(--wmt-border);
  border-radius: 12px;
  padding: 16px 18px 18px;
  background: var(--wmt-card);
}

.wmt-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wmt-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.wmt-card__meta {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--wmt-muted);
  white-space: nowrap;
}

.wmt-card__bio {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
}

.wmt-card__bio > *:last-child {
  margin-bottom: 0;
}

.wmt-card__facts {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.wmt-card__facts li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.wmt-card__facts i {
  margin-top: 3px;
  width: 16px;
  opacity: 0.8;
}

.wmt-card__facts a {
  word-break: break-all;
}

.wmt-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--wmt-border);
}

.wmt-stats__item {
  padding: 12px 8px 10px 0;
  border-bottom: 1px solid var(--wmt-border);
}

.wmt-stats__item:nth-child(odd) {
  padding-right: 12px;
  border-right: 1px solid var(--wmt-border);
}

.wmt-stats__item:nth-child(even) {
  padding-left: 12px;
}

.wmt-stats__item strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.wmt-stats__item span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--wmt-muted);
}

.wmt-activity {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wmt-activity__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--wmt-border);
  border-radius: 8px;
  background: var(--wmt-chip);
}

.wmt-activity__title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}

.wmt-activity__title a {
  color: inherit;
  text-decoration: none;
}

.wmt-activity__sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--wmt-muted);
}

.wmt-activity__time {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--wmt-muted);
  white-space: nowrap;
}

.wmt-manga-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wmt-manga {
  display: flex;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--wmt-border);
  border-radius: 10px;
}

.wmt-manga__cover {
  flex: 0 0 72px;
  width: 72px;
  height: 102px;
  border-radius: 6px;
  background: #444;
  overflow: hidden;
}

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

.wmt-manga__cover--a {
  background: linear-gradient(160deg, #f4c4cf, #8b3a4a);
}

.wmt-manga__cover--b {
  background: linear-gradient(160deg, #f2e3c4, #6b4a28);
}

.wmt-manga__cover--c {
  background: linear-gradient(160deg, #dfe7ee, #4a5a6a);
}

.wmt-manga__body {
  min-width: 0;
  flex: 1 1 auto;
}

.wmt-manga__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.wmt-manga__title a {
  color: inherit;
  text-decoration: none;
}

.wmt-manga__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.wmt-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.wmt-badge--ongoing {
  background: #2f6feb;
}

.wmt-badge--done {
  background: #2fa36b;
}

.wmt-manga__chap,
.wmt-manga__time {
  font-size: 12px;
  color: var(--wmt-muted);
}

.wmt-manga__excerpt {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--wmt-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.wmt-members {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wmt-member {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.wmt-member + .wmt-member {
  border-top: 1px solid var(--wmt-border);
}

.wmt-member__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wmt-chip);
  border: 1px solid var(--wmt-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 44px;
}

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

.wmt-member__info {
  min-width: 0;
  flex: 1 1 auto;
}

.wmt-request .wmt-approve-btn,
.wmt-leave-request .wmt-remove-btn {
  flex: 0 0 auto;
}

.wmt-members-empty {
  padding: 8px 0;
  color: var(--wmt-muted);
  font-size: 14px;
}

.wmt-join-btn,
.wmt-approve-btn,
.wmt-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.wmt-join-btn {
  position: relative;
  display: flex;
  width: 100%;
  margin-top: 16px;
  min-height: 42px;
}

.wmt-join-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

a.wmt-join-btn {
  text-decoration: none;
  box-sizing: border-box;
}

.wmt-edit {
  padding-top: 32px;
}

.wmt-edit-card {
  max-width: 640px;
  margin: 0 auto 48px;
}

.wmt-edit-notice {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--wmt-border);
  border-radius: 8px;
}

.wmt-edit-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wmt-edit-field {
  margin: 0;
}

.wmt-edit-field label,
.wmt-edit-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.wmt-edit-field input[type="text"],
.wmt-edit-field input[type="url"],
.wmt-edit-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--wmt-border);
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.wmt-edit-preview {
  margin-bottom: 8px;
}

.wmt-edit-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.wmt-edit-preview--avatar img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.wmt-edit-remove {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-weight: 400;
}

.wmt-join-btn.is-loading {
  pointer-events: none;
}

.wmt-join-btn.is-loading .wmt-join-btn__label {
  visibility: hidden;
}

.wmt-join-btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: wmt-spin 0.6s linear infinite;
}

.wmt-join-btn.is-loading .wmt-join-btn__spinner {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -8px 0 0 -8px;
}

@keyframes wmt-spin {
  to {
    transform: rotate(360deg);
  }
}

.wmt-member__name {
  font-weight: 700;
}

.wmt-member__role {
  font-size: 12px;
  color: var(--wmt-muted);
}

@media (max-width: 991px) {
  .wmt-single__cover {
    height: 160px;
  }

  #wmt-tab-overview:checked ~ .wmt-single__panels .wmt-single__panel--overview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .wmt-single__name {
    font-size: 22px;
  }

  .wmt-manga-list {
    grid-template-columns: 1fr;
  }

  .wmt-manga {
    flex-direction: column;
  }

  .wmt-manga__cover {
    width: 100%;
    height: 160px;
    flex-basis: auto;
  }
}

.wmt-register {
  display: inline-block;
}

.wmt-register-btn,
.wmt-register-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 16px;
  min-height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.wmt-register-btn:disabled,
.wmt-register-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wmt-register-submit.is-loading,
.wmt-register-btn.is-loading {
  pointer-events: none;
}

.wmt-register-submit.is-loading .wmt-register-btn__label,
.wmt-register-btn.is-loading .wmt-register-btn__label {
  visibility: hidden;
}

.wmt-register-btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: wmt-spin 0.6s linear infinite;
}

.wmt-register-submit.is-loading .wmt-register-btn__spinner,
.wmt-register-btn.is-loading .wmt-register-btn__spinner {
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -8px 0 0 -8px;
}

.wmt-register-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.wmt-register-modal[hidden] {
  display: none;
}

.wmt-register-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.wmt-register-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  padding: 24px 22px 20px;
  border-radius: 12px;
  border: 1px solid var(--wmt-border, rgba(127, 127, 127, 0.35));
  background: #fff;
  color: #111;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

body.text-ui-light .wmt-register-modal__dialog {
  background: #1b1b1b;
  color: #f5f5f5;
}

.wmt-register-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.wmt-register-modal__title {
  margin: 0 28px 16px 0;
  font-size: 20px;
  font-weight: 700;
}

.wmt-register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wmt-register-field {
  margin: 0;
}

.wmt-register-field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.wmt-register-field input,
.wmt-register-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--wmt-border, rgba(127, 127, 127, 0.35));
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

.wmt-register-hint {
  margin: 0;
  font-size: 13px;
  opacity: 0.8;
}

.wmt-register-error {
  margin: 0;
  font-size: 13px;
  color: #c0392b;
}

.wmt-register-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

body.page.single-wp-manga-team
  .c-page-content.wmt-single:not(.wmt-edit)
  .content-area {
  margin-top: 0;
}

body.page
  .page-content-listing.wp-manga-teams
  .page-listing-item
  .page-item-detail {
  margin-bottom: 0;
}

.wmt-single .wmt-single__name {
  color: #fff;
}

@media (max-width: 767px) {
  .wmt-single__profile {
    align-items: flex-start;
  }

  .wmt-single__chips {
    gap: 2px;
    margin-top: 40px;
  }
}
