.settings-view {
  margin-top: 28px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.55fr);
  gap: 24px;
}

.settings-card {
  display: grid;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.settings-card h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

.settings-card p,
.settings-status {
  color: var(--muted);
  font-size: 14px;
}

.field {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select {
  width: 180px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
}

.field .number-control {
  width: 180px;
  height: 46px;
  background: var(--panel);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.settings-actions button {
  height: 44px;
  padding: 0 18px;
  border: 1px solid #111827;
  border-radius: 8px;
  color: white;
  background: #111827;
  font-weight: 800;
}

.settings-actions .secondary {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

body.dark-theme .settings-actions button {
  color: #0f1218;
  background: #f3f6fb;
}

body.dark-theme .settings-actions .secondary {
  color: var(--text);
  background: #1d2330;
}

.provider-option {
  display: grid;
  grid-template-columns: 18px 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.provider-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.provider-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: white;
  background: #111827;
  font-size: 15px;
  font-weight: 950;
}

body.dark-theme .provider-mark {
  color: #0f1218;
  background: #f3f6fb;
}

.provider-copy {
  min-width: 0;
}

.provider-copy strong,
.provider-copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-copy strong {
  font-size: 15px;
}

.provider-copy b {
  display: inline-grid;
  place-items: center;
  min-height: 20px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  vertical-align: 1px;
}

.provider-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.league-blacklist-card {
  align-content: start;
}

.league-blacklist-list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.league-blacklist-list:empty {
  display: none;
}

.league-blacklist-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 34px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--soft);
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.league-blacklist-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-blacklist-chip svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.league-blacklist-chip:hover {
  border-color: color-mix(in srgb, var(--red) 42%, var(--line));
  background: color-mix(in srgb, var(--red) 12%, transparent);
}

.league-blacklist-chip:hover svg {
  color: var(--red);
}
